Elffuss BraidHub

kikocis/lancedb public

0bc068462dda · 5.0 KiBSourceRawPermalink

vectordb / Exports / Connection

Interface: Connection

A LanceDB Connection that allows you to open tables and create new ones.

Connection could be local against filesystem or remote against a server.

Implemented by

Table of contents

Properties

Methods

Properties

uri

• uri: string

Defined in

index.ts:183

Methods

createTable

▸ createTable<T>(«destructured»): Promise<Table<T>>

Creates a new Table, optionally initializing it with new data.

Type parameters

Name
T

Parameters

NameType
«destructured»CreateTableOptions<T>

Returns

Promise<Table<T>>

Defined in

index.ts:207

▸ createTable(name, data): Promise<Table<number[]>>

Creates a new Table and initialize it with new data.

Parameters

NameTypeDescription
namestringThe name of the table.
dataRecord<string, unknown>[]Non-empty Array of Records to be inserted into the table

Returns

Promise<Table<number[]>>

Defined in

index.ts:221

▸ createTable(name, data, options): Promise<Table<number[]>>

Creates a new Table and initialize it with new data.

Parameters

NameTypeDescription
namestringThe name of the table.
dataRecord<string, unknown>[]Non-empty Array of Records to be inserted into the table
optionsWriteOptionsThe write options to use when creating the table.

Returns

Promise<Table<number[]>>

Defined in

index.ts:233

▸ createTable<T>(name, data, embeddings): Promise<Table<T>>

Creates a new Table and initialize it with new data.

Type parameters

Name
T

Parameters

NameTypeDescription
namestringThe name of the table.
dataRecord<string, unknown>[]Non-empty Array of Records to be inserted into the table
embeddingsEmbeddingFunction<T>An embedding function to use on this table

Returns

Promise<Table<T>>

Defined in

index.ts:246

▸ createTable<T>(name, data, embeddings, options): Promise<Table<T>>

Creates a new Table and initialize it with new data.

Type parameters

Name
T

Parameters

NameTypeDescription
namestringThe name of the table.
dataRecord<string, unknown>[]Non-empty Array of Records to be inserted into the table
embeddingsEmbeddingFunction<T>An embedding function to use on this table
optionsWriteOptionsThe write options to use when creating the table.

Returns

Promise<Table<T>>

Defined in

index.ts:259


dropTable

▸ dropTable(name): Promise<void>

Drop an existing table.

Parameters

NameTypeDescription
namestringThe name of the table to drop.

Returns

Promise<void>

Defined in

index.ts:270


openTable

▸ openTable<T>(name, embeddings?): Promise<Table<T>>

Open a table in the database.

Type parameters

Name
T

Parameters

NameTypeDescription
namestringThe name of the table.
embeddings?EmbeddingFunction<T>An embedding function to use on this table

Returns

Promise<Table<T>>

Defined in

index.ts:193


tableNames

▸ tableNames(): Promise<string[]>

Returns

Promise<string[]>

Defined in

index.ts:185