NitroSQLite
React native nitro sqlite vecFunctions

API Reference / react-native-nitro-sqlite-vec / isVecAvailable

Function: isVecAvailable()

Declaration: TypeScript · View source on GitHub

isVecAvailable(db): boolean

Check whether the version query succeeds on this connection.

Parameters

db

NitroSQLiteConnection

Open NitroSQLite connection. The check runs synchronously.

Returns

boolean

false if the version query throws for any reason, including a closed connection.