TradePatio uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy.

Module 'db'

Module 'db'

It is used to work with the database. Each script has an independent namespace. It is not possible to transfer data between scripts.

Functions:

set(key: string, obj: table) (may throw an error)

Puts Lua object in database.

 

get(key: string) return: table (may throw an error)

Gets the object from the database by the Lua key.