DatabaseModule.owned constructor

DatabaseModule.owned(
  1. SqlDatabase database
)

Installs a database that closes when the application context is disposed.

Do not use this for per-request server modules that share one database.

Implementation

DatabaseModule.owned(this.database) : _closeOnDispose = true;