0 var sqlite = require('sqlite3').verbose()
1 , db = new sqlite.Database( 'test.db' )
2 , fs = require( 'fs' );
3
4 fs.readFile( 'test.sql', 'utf-8', ( err, data ) => {
5
6 db.serialize( () => {
7
8 db.each( data, (...x) => {
9 console.log( x );
10 } );
11 } );
12
13 } );