-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
- What versions are you using?
6.1.0
-
Is it an error or a hang or a crash?
crash -
What error(s) or behavior you are seeing?
error: Failed to connect
at connect (node:net:222:18)
at /home/danielsrod/projects/personal/bun-databases/node_modules/oracledb/lib/thin/sqlnet/ntTcp.js:181:22
- Include a runnable Node.js script that shows the problem.
import oracledb, {
BindParameters,
ExecuteOptions,
BIND_IN,
STRING,
NUMBER,
PoolAttributes,
OUT_FORMAT_OBJECT,
BIND_OUT,
Pool,
Connection,
Result,
createPool,
getConnection,
} from 'oracledb';
const options: PoolAttributes = {
user: '',
password: '',
connectionString: ``,
};
const connection: Pool = await createPool(options);
const db: Connection = await getConnection(options);
const sql: string = `
`;
const binds: BindParameters = {
}
const execOptions: ExecuteOptions = {
autoCommit: true,
outFormat: OUT_FORMAT_OBJECT,
};
const result: Result<unknown> = await db.execute(sql, binds, execOptions);
console.log(result.rows);
process.exit(0);