[@types/oracledb] missing property fetchTypeHandler in type ExecuteOptions #68759
Replies: 5 comments 3 replies
-
Thanks for the discussion about "oracledb", some useful links for everyone: Pinging the DT module owners: @connorjayfitzgerald, @dannyb648, @jacobwheale. |
Beta Was this translation helpful? Give feedback.
-
Hi @doberkofler - this will be in 6.3.0 which I'm working on. Been delayed dealing with 6.2.1s fallout |
Beta Was this translation helpful? Give feedback.
-
looks like it's there now in 6.3.0 |
Beta Was this translation helpful? Give feedback.
-
interestingly, |
Beta Was this translation helpful? Give feedback.
-
@dannyb648 As @ritschwumm already noted, version 6.3.0 still cannot be used as intended Using Fetch Type Handlers. The following example is valid and can be run but generates a type error: const result = await connection.execute(
`SELECT * from myTable`,
[],
{
resultSet: true,
outFormat: oracledb.OUT_FORMAT_OBJECT,
// @ts-expect-error
// eslint-disable-next-line @typescript-eslint/consistent-return
fetchTypeHandler: (metaData) => {
if (metaData.dbType === oracledb.DB_TYPE_CLOB) {
return {type: oracledb.STRING};
}
},
}
); |
Beta Was this translation helpful? Give feedback.
-
The type definition of ExecuteOptions does not contain the property fetchTypeHandler as specified in the documentation.
https://node-oracledb.readthedocs.io/en/latest/user_guide/sql_execution.html
Beta Was this translation helpful? Give feedback.
All reactions