mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #8736 from aleung/oracledb
oracledb.d.ts : access object property in result rows
This commit is contained in:
@@ -23,6 +23,7 @@ OracleDB.getConnection(
|
||||
console.error(err.message); return;
|
||||
}
|
||||
console.log(result.rows);
|
||||
console.log(result.rows[0].department_id); // when outFormet is OBJECT
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -93,7 +93,7 @@ declare module 'oracledb' {
|
||||
/** Metadata information - just columns names for now. */
|
||||
metaData?: Array<IMetaData>;
|
||||
/** When not using ResultSet, query results comes here. */
|
||||
rows?: Array<Array<any>> | Array<Object>;
|
||||
rows?: Array<Array<any>> | Array<any>;
|
||||
/** When using ResultSet, query results comes here. */
|
||||
resultSet?: IResultSet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user