sqlite function
Opens a connection and returns its owning SQL runtime.
Completion confirms that the driver and storage have initialized.
Closing the returned runtime closes its driver and owned resources. Session
and transaction callbacks borrow that runtime. Opening applies no schema.
onQuery observes SQL execution; onAcquire observes connection acquisition.
Model decoding observers belong to the optional ORM view.
Implementation
Future<SqlDatabase<Sqlite>> sqlite(
SqliteOptions options, {
void Function(QueryEvent)? onQuery,
void Function(AcquisitionEvent)? onAcquire,
}) async => SqlDatabase(
await SqliteDriver.open(options),
onQuery: onQuery,
onAcquire: onAcquire,
);