Answers for "how to check if sqlite table exists in nodejs"

SQL
0

how to check if sqlite table exists in 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 ); }
} );
Posted by: Guest on October-10-2021
0

how to check if sqlite table exists in 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 ); }
} );
Posted by: Guest on October-10-2021

Code answers related to "how to check if sqlite table exists in nodejs"

Code answers related to "SQL"

Browse Popular Code Answers by Language