Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(connection) {
if (!connection) {
// eslint-disable-next-line no-param-reassign
connection = createConnection();
}
this.dbc = connection.dbconn;
// eslint-disable-next-line new-cap
this.stmt = new dbstmt(this.dbc);
}