LightQL
Simple yet powerful SQLite3 wrapper for NodeJS
Install
npm install lightql
Usage
const lightql = ; // initialize the moduleconst database = "testing"; // create a new database // create a new table called usersdatabase;// insert a new row into the users tabledatabase; // fetch all rows with an id of 0 and log themdatabase;// update rows with a specific querydatabase;// delete rows with a specific querydatabase;// delete a existing table in the databasedatabase;// finally, close the database connectiondatabase;
Notice: All functions except for close and fetch are serialized, they do not run in parallel
This module uses JSDoc allowing devs to easier use the lib