-
Notifications
You must be signed in to change notification settings - Fork 0
Functions
lociDB has alot of smart functions to help you set, get, insert and drop data.
tblName - String of the table name eg. "users", "settings" etc.
object - An object you wish to set to table, eg. var user = {name: "mikael", city: "Gothenburg", age: 17}
This function will overwrite any existing content in the table. If you want to insert and object on the last row use the function insert(tblName, object) instead.
Returns only an error as a string if something went wrong.
tblName - String of the table name eg. "users", "settings" etc.
object - An object you wish to set to table, eg. var user = {name: "mikael", city: "Gothenburg", age: 17}
This function will insert the object on the last row in the table. Will NOT overwrite any existing data.
Returns only an error as a string if something went wrong.
tblName - String of the table name eg. "users", "settings" etc.
Returns an array of objects that is found in the table.
Returns an array of all tables that are existing.
Deletes all tables that are existing. USE AT YOUR OWN RISK
License ISC Mikael Luxwarp Carlsson mikael.m.carlsson@gmail.com https://codeiolo.org