How to use the websql/lib/sqlite/SQLiteDatabase function in websql

To help you get started, we’ve selected a few websql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github axemclion / IndexedDBShim / src / nodeWebSQL.js View on Github external
function wrappedSQLiteDatabase (name) {
    const db = new SQLiteDatabase(name);
    if (CFG.sqlBusyTimeout) {
        db._db.configure('busyTimeout', CFG.sqlBusyTimeout); // Default is 1000
    }
    if (CFG.sqlTrace) {
        db._db.configure('trace', CFG.sqlTrace);
    }
    if (CFG.sqlProfile) {
        db._db.configure('profile', CFG.sqlProfile);
    }
    return db;
}

websql

WebSQL Database API, implemented for Node using sqlite3

Apache-2.0
Latest version published 3 years ago

Package Health Score

55 / 100
Full package analysis