Change result type of columns() and tables() callback definition of Database. Add ODBCResult.fetchSync() definition

This commit is contained in:
Evghenii Vasilovici
2018-05-17 10:26:56 +02:00
parent 131650c616
commit 1405d1c619
+3 -2
View File
@@ -104,9 +104,9 @@ export class Database implements Options {
rollbackTransactionSync(): Database;
columns(catalog: string | null, schema: string | null, table: string | null, column: string | null, cb: (error: Error, res: ODBCResult) => void): void;
columns(catalog: string | null, schema: string | null, table: string | null, column: string | null, cb: (error: Error, res: any[]) => void): void;
tables(catalog: string | null, schema: string | null, table: string | null, type: string | null, cb: (error: Error, res: ODBCResult) => void): void;
tables(catalog: string | null, schema: string | null, table: string | null, type: string | null, cb: (error: Error, res: any[]) => void): void;
describe(obj: DescribeObject, cb: (error: Error, res: any[]) => void): void;
@@ -187,6 +187,7 @@ export class ODBCStatement {
export class ODBCResult {
fetchMode: number;
fetchSync(): any[];
fetchAllSync(): any[];
moreResultsSync(): any[];
closeSync(): void;