Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mysql = require('db-mysql');
- new mysql.Database({
- hostname: 'localhost',
- user: 'user',
- password: 'password',
- database: 'test'
- }).connect(function(error) {
- if (error) {
- return console.log('CONNECTION error: ' + error);
- }
- this.query("CALL p_stored_test(123)").
- execute(function(error, rows, cols) {
- if (error) {
- console.log('ERROR: ' + error);
- return;
- }
- console.log(rows.length + ' ROWS found');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement