Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.59 KB

File metadata and controls

60 lines (41 loc) · 1.59 KB

JNDB

Kind: global class

new JNDB(table, [path])

Creates an instance of JDB.

Param Type Default Description
table string table to be used for saving/retrieving data from
[path] string "'.'"

JNDB.insert(key, value)

inserts a K,V pair into the selected table,automatically updates/replaces as needed

Kind: instance method of JDB

Param Type
key string | number
value *

JNDB.array() ⇒ Array.<any>

converts the DB into array form where format is [{table:string,rows:{}}]

Kind: instance method of JDB

JNDB.obtain(key) ⇒ *

Kind: instance method of JDB

Param Type
key string | number

JNDB.remove(key)

Kind: instance method of JDB

Param Type
key string | number