React native nitro sqliteFunctions
API Reference / react-native-nitro-sqlite / open
Function: open()
TypeScriptSource 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
Database name, optional directory, connection mode, and read-only setting.
Returns
A connection bound to the opened native handle.