Skip to content

DozenLimeStone/SimpleSQLiteAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A game changer if you want to use sqlite.

Supports JSON / Object and BigInt formats and correctly encodes, decodes them. Accepts multiple variables for input when searching ( i should just make it an object, it would be easier )

List of functions:

  • function load_db(sqlpath)
  • async function sql_get(keyname,keyvalue,tablename,contents="*",param="")
    --> accepts "key1,key2" as format in keyname
    --> accepts mutliple keyvalues [value1,value2] as format in keyvalue
  • async function sql_get_all(tablename,contents="*",param="")
  • async function sql_update(keyname,keyvalue,tablename,contents)
    --> here keyname and keyvalue is used for searching
  • async function sql_insert(tablename,contents)
  • async function sql_delete(keyname,keyvalue,tablename)

Note: You need to call load_db() at the top of the file as is shown in example.js

About

Made in Javascript. Very simple.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published