knex
Version:
A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser
22 lines (13 loc) • 366 B
JavaScript
import {EventEmitter} from 'events'
export default class Connection extends EventEmitter {
constructor(connection) {
super()
this.connection = connection
// Flag indicating whether the connection is "managed",
// and should be released to the pool upon completion
this.managed = false
}
execute() {
return this._execute()
}
}