NitroSQLite
nitro-sqlite-kyselyFunctions

openNitroSQLiteExecutor

TypeScript

Source 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

NitroSQLiteDialectOptions

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.

On this page