SqlDatabase<B extends Backend> constructor

SqlDatabase<B extends Backend>(
  1. Driver<B> driver, {
  2. void onQuery(
    1. QueryEvent
    )?,
  3. void onAcquire(
    1. AcquisitionEvent
    )?,
})

Takes ownership of driver; close the root database to release it.

Implementation

SqlDatabase(this.driver, {this.onQuery, this.onAcquire})
  : _changeListeners = {},
    _connection = null,
    _transaction = false,
    _control = null;