mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-26 06:39:57 +00:00
* improve the docstring for NodeJS connect functions and `ConnectOptions` parameters. * Simplify `npm run build` steps.
3.2 KiB
3.2 KiB
vectordb / Exports
vectordb
Table of contents
Enumerations
Classes
Interfaces
- AwsCredentials
- CleanupStats
- CompactionMetrics
- CompactionOptions
- Connection
- ConnectionOptions
- CreateTableOptions
- EmbeddingFunction
- IndexStats
- IvfPQIndexConfig
- Table
- UpdateArgs
- UpdateSqlArgs
- VectorIndex
- WriteOptions
Type Aliases
Functions
Type Aliases
VectorIndexParams
Ƭ VectorIndexParams: IvfPQIndexConfig
Defined in
Functions
connect
▸ connect(uri): Promise<Connection>
Connect to a LanceDB instance at the given URI.
Accpeted formats:
/path/to/database- local databases3://bucket/path/to/databaseorgs://bucket/path/to/database- database on cloud storagedb://host:port- remote database (SaaS)
Parameters
| Name | Type | Description |
|---|---|---|
uri |
string |
The uri of the database. If the database uri starts with db:// then it connects to a remote database. |
Returns
Promise<Connection>
See
ConnectionOptions for more details on the URI format.
Defined in
▸ connect(opts): Promise<Connection>
Connect to a LanceDB instance with connection options.
Parameters
| Name | Type | Description |
|---|---|---|
opts |
Partial<ConnectionOptions> |
The ConnectionOptions to use when connecting to the database. |
Returns
Promise<Connection>
Defined in
isWriteOptions
▸ isWriteOptions(value): value is WriteOptions
Parameters
| Name | Type |
|---|---|
value |
any |
Returns
value is WriteOptions