relax-sqlite3
v2.0.5
Published
```javascript const DB = require('relax-sqlite3'); const db = new DB({ dbFilePath: './database/test.db', initSqlFiles: ['./database/init.sql'], tableSchema: { table1: ['column1', 'column2'], t2: ['c1', 'c2', 'c3'] }, ve
Downloads
3
Readme
Usage
const DB = require('relax-sqlite3');
const db = new DB({
dbFilePath: './database/test.db',
initSqlFiles: ['./database/init.sql'],
tableSchema: {
table1: ['column1', 'column2'],
t2: ['c1', 'c2', 'c3']
},
verbose: false,
logger: {
error: console.error,
info: console.log,
debug: console.log
}
});
const rows = db.select('table1');
console.log(rows);