nitro-sqlite-kyselyFunctions
openNitroSQLiteExecutor
TypeScriptSource files: TypeScript
openNitroSQLiteExecutor(options): IGenericSqlite
Open the async executor used by the Kysely dialect and MikroORM. Custom kysely-generic-sqlite drivers can use it to manage their own connection leases.
Parameters
options
Database name and optional Nitro SQLite file options.
Returns
IGenericSqlite
An executor that owns an independent handle. Its owner must serialize
transactions and call close() after the last operation.
Throws
If the file cannot be opened. Queries reject on unsupported binds and SQLite errors.