NitroSQLite
React native nitro sqlite vecFunctions

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

Function: createVectorTable()

TypeScript

Source files: TypeScript

createVectorTable(db, table, options): void

Create a vec0 virtual table if it does not already exist. Executes synchronously. An existing table is left as it is, even if its definition differs from options.

Parameters

db

NitroSQLiteConnection

Open NitroSQLite connection with sqlite-vec enabled.

table

string

Trusted SQL table identifier, interpolated into the statement.

options

CreateVectorTableOptions

Vector dimensions, storage type, metric, and trusted column identifier.

Returns

void