NitroSQLite
React native nitro sqliteFunctions

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

Function: open()

TypeScript

Source files: TypeScript

open(options): NitroSQLiteConnection

Open a database and return a managed connection. The default connection is addressed by its name, and opening it twice throws. Set connection to 'independent' to open another native handle to the same file. Async calls on each connection run in call order.

Parameters

options

NitroSQLiteConnectionOptions

Database name, optional directory, connection mode, and read-only setting.

Returns

NitroSQLiteConnection

A connection bound to the opened native handle.