NitroSQLite
React native nitro sqliteFunctions

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

Function: open()

Declaration: TypeScript · View source on GitHub

open(options): NitroSQLiteConnection

Open or create a database and return a managed connection. Async calls on that connection run in call order. A second managed connection with the same name throws until the first is closed or deleted.

Parameters

options

NitroSQLiteConnectionOptions

Database name and optional directory relative to the platform database directory.

Returns

NitroSQLiteConnection

A connection bound to the named database.