DatabaseModule.borrowed constructor
DatabaseModule.borrowed(
- SqlDatabase database
Installs a caller-owned database without closing it on context disposal.
Use this for request modules that borrow a process-owned connection or database pool.
Implementation
DatabaseModule.borrowed(this.database) : _closeOnDispose = false;