NitroSQLite
react-native-nitro-sqlite-mikro-ormClasses

NitroSQLiteDriver

TypeScript

Source files: TypeScript

MikroORM SQLite driver for React Native and NitroUI. Set dbName to the database file name and use driverOptions to pass Nitro SQLite open options.

Each ORM connection opens a dedicated native handle on first use and releases it when the ORM closes. SQLite queries run asynchronously. Use the entity manager passed to a transaction callback for every operation in that transaction. Await outstanding queries, dumps and transactions before closing the ORM. A replica keeps its explicit database name, driver options, and connection setup hook across reconnects. Omitted settings use the current ORM defaults. The Nitro SQLite API returns complete results, so this driver cannot stream query rows.

Extends

  • AbstractSqlDriver<NitroSQLiteConnection>

Constructors

Constructor

new NitroSQLiteDriver(config): NitroSQLiteDriver

Defined in: packages/integrations/react-native/mikro-orm/src/index.ts:34

Parameters

config

Configuration

The MikroORM configuration for this database.

Returns

NitroSQLiteDriver

Overrides

AbstractSqlDriver<NitroSQLiteConnection>.constructor

On this page