mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Merge pull request #1011 from anandkumarpatel/patch-1
nodejs/macos example:Add missing connect statement
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user