NitroSQLite
React native nitro sqliteVariables

API Reference / react-native-nitro-sqlite / typeORMDriver

Variable: typeORMDriver

TypeScript

Source files: TypeScript

const typeORMDriver: object

Adapter for TypeORM's React Native driver. Application code should use open(). openDatabase reports success or failure through callbacks and returns the connection on success, or null when opening fails.

Type Declaration

openDatabase

openDatabase: (options, ok, fail) => TypeOrmNitroSQLiteConnection | null

Open a database for TypeORM.

Parameters

options

Database name and optional relative directory.

location?

string

name

string

ok

(db) => void

Receives the adapter connection on success.

fail

(msg) => void

Receives the opening error on failure.

Returns

TypeOrmNitroSQLiteConnection | null