feat: The ability to use an existing odbc connection
By setting the odbcConnection parameter of the transportOptions it will use the existing connection instead of creating and managing its own connection. This is useful to be able to run SQL queries in the same job. An example would be if a program created files in the QTEMP library and you need to retrieve the records.
In the initialization I am creating the pool:
this.odbcPool = await odbc.pool('DSN=<dsn name>');
I obtain a connection:
this._odbcConnection = await this.odbcPool.connect();
finally, I pass it to the itoolkit Connection:
const connection = new Connection({
transport: 'odbc',
transportOptions: {
odbcConnection: this._odbcConnection,
},
});
My apologies for the lack of signOffs. I have realized that I have forgotten about the contributors document and I have now configured my tools for signOff and gpg.
:wave: Hi! This pull request has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.