File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,12 @@ jdb.async.serverExists('__npm_test_server', function(exists) {
3838 console . log ( "Can't create the test table (with no primary keys)" ) ;
3939 throw err ;
4040 }
41-
4241 console . log ( 'Test table created ! (with no primary keys)' ) ;
42+
43+ console . log ( 'Sync start... Insertion in test table (with no primary keys)' ) ;
44+ var insert = database . query ( '__npm_test_table_npk.insert(\'hello\', 0)' ) ;
45+ console . log ( 'Sync end for test table (with no primary keys)... Result = ' + insert ) ;
46+
4347 console . log ( 'Async start... Replacements in test table (with no primary keys)' ) ;
4448 database . async . query ( '__npm_test_table_npk.replace(\'nice\', 2)' , function ( err , res ) {
4549 if ( err ) {
@@ -49,10 +53,6 @@ jdb.async.serverExists('__npm_test_server', function(exists) {
4953 } ) ;
5054 console . log ( 'Async not ended... But this message will output (normally... is async...)' ) ;
5155
52- console . log ( 'Sync start... Insertion in test table (with no primary keys)' ) ;
53- var insert = database . query ( '__npm_test_table_npk.insert(\'hello\', 0)' ) ;
54- console . log ( 'Sync end for test table (with no primary keys)... Result = ' + insert ) ;
55-
5656 // database.query('__npm_test_table_npk.delete()');
5757
5858 // database.query('__npm_test_table_npk.truncate()');
You can’t perform that action at this time.
0 commit comments