Skip to content

Instantly share code, notes, and snippets.

@Danwakeem
Created July 24, 2018 16:53
Show Gist options
  • Save Danwakeem/cc56ee0c298c72902313a103bf1a3a79 to your computer and use it in GitHub Desktop.
Save Danwakeem/cc56ee0c298c72902313a103bf1a3a79 to your computer and use it in GitHub Desktop.
IBM_DB DSN Test
const Pool = require("ibm_db").Pool;
const ool = new Pool();
const dsn = process.env.dsn;
const client = new Pool({ minPoolSize: 0, maxPoolSize: 0, connectionTimeout: 60 });
client.init(0, dsn);
client.open(dsn, () => console.log('Opened'));
client.open(dsn, () => console.log('Opened'));
client.open(dsn, () => console.log('Opened'));
client.open(dsn, () => console.log('Opened'));
client.open(dsn, () => console.log('Opened'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment