react-native-nitro-sqlite-kyselyFunctions
createNitroSQLiteDialect
TypeScriptSource files: TypeScript
createNitroSQLiteDialect(options): Dialect
Create a Kysely SQLite dialect for React Native and NitroUI. The first query opens an
independent Nitro SQLite handle. Kysely serializes queries and holds the
handle for the duration of a transaction or connection callback.
Queries reject on open, bind or SQLite errors. Streaming is unsupported.
Await outstanding work, then call Kysely.destroy() to close the handle.
Parameters
options
Database name and optional Nitro SQLite file options.
Returns
Dialect
A dialect for the dialect option of a new Kysely instance.