mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
MsNodeSql: fixed QueryCallback and tests
This commit is contained in:
@@ -17,12 +17,12 @@ function test_streaming() {
|
||||
function test_explicit() {
|
||||
var conn_str = "Driver={SQL Server Native Client 11.0};Server={(localdb)\\v11.0};Database={DBName};Trusted_Connection={Yes};";
|
||||
|
||||
sql.open(conn_str, function (err, conn) {
|
||||
sql.open(conn_str, function (err?: Error, connection?: sql.Connection) {
|
||||
if (err) {
|
||||
console.log("Error opening the connection!");
|
||||
return;
|
||||
}
|
||||
conn.queryRaw("SELECT * FROM TestTable", function (err, results) {
|
||||
connection.queryRaw("SELECT * FROM TestTable", function (err?: Error, results?: sql.QueryRawResult, more?: boolean) {
|
||||
if (err) {
|
||||
console.log("Error running query!");
|
||||
return;
|
||||
|
||||
Vendored
+1
-1
@@ -20,7 +20,7 @@ declare module "msnodesql" {
|
||||
}
|
||||
|
||||
interface QueryCallback {
|
||||
(err?: Error, results?: any[], more?: boolean): void;
|
||||
(err?: Error, results?: QueryRawResult, more?: boolean): void;
|
||||
}
|
||||
|
||||
interface QueryRawCallback {
|
||||
|
||||
Reference in New Issue
Block a user