oracledb.d.ts : access object property in result rows

This commit is contained in:
Leo Liang
2016-03-27 16:33:22 +08:00
parent b10e5ade29
commit c67a3b8d61
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
}
);
}
+1 -1
View File
@@ -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;
}