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

NitroSQLiteDriver

TypeScript

Source files: TypeScript

MikroORM SQLite driver for React Native. 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's connection setup hook overrides the current ORM default on every reconnect.

Extends

  • AbstractSqlDriver<NitroSQLiteConnection>

Constructors

Constructor

new NitroSQLiteDriver(config): NitroSQLiteDriver

Defined in: index.ts:33

Parameters

config

Configuration

The MikroORM configuration for this database.

Returns

NitroSQLiteDriver

Overrides

AbstractSqlDriver<NitroSQLiteConnection>.constructor

On this page