Comment vérifier si la table SQLite existe dans Nodejs
const sqlite3 = require( 'sqlite3' );
const db = new sqlite3.Database( './db.sqlite' );
db.get( 'SELECT name FROM sqlite_master WHERE type=table AND name=?', tbl, ( err, row ) => {
if ( err ) { console.error( err ); }
} );
Enthusiastic Emu