Merge pull request #1011 from anandkumarpatel/patch-1

nodejs/macos example:Add missing connect statement
This commit is contained in:
Umachandar Jayachandran
2022-05-16 11:18:27 -07:00
committed by GitHub
3 changed files with 14 additions and 5 deletions
@@ -44,4 +44,7 @@ connection.on('connect', function(err) {
exec('SELECT SUM(Price) FROM Table_with_5M_rows');
},
]);
});
});
// Initialize the connection.
connection.connect();
@@ -20,4 +20,7 @@ connection.on('connect', function(err) {
} else {
console.log('Connected');
}
});
});
// Initialize the connection.
connection.connect();
@@ -123,7 +123,10 @@ connection.on('connect', function(err) {
} else {
console.log("Done!");
}
}
)
})
}
});
});
// Initialize the connection.
connection.connect();