Skip to content

vectordb / Exports / ConnectionOptions

Interface: ConnectionOptions

Table of contents

Properties

Properties

apiKey

Optional apiKey: string

API key for the remote connections

Can also be passed by setting environment variable LANCEDB_API_KEY

Defined in

index.ts:110


awsCredentials

Optional awsCredentials: AwsCredentials

User provided AWS crednetials.

If not provided, LanceDB will use the default credentials provider chain.

Deprecated

Pass aws_access_key_id, aws_secret_access_key, and aws_session_token through storageOptions instead.

Defined in

index.ts:90


awsRegion

Optional awsRegion: string

AWS region to connect to. Default is defaultAwsRegion

Deprecated

Pass region through storageOptions instead.

Defined in

index.ts:96


hostOverride

Optional hostOverride: string

Override the host URL for the remote connection.

This is useful for local testing.

Defined in

index.ts:120


readConsistencyInterval

Optional readConsistencyInterval: number

(For LanceDB OSS only): The interval, in seconds, at which to check for updates to the table from other processes. If None, then consistency is not checked. For performance reasons, this is the default. For strong consistency, set this to zero seconds. Then every read will check for updates from other processes. As a compromise, you can set this to a non-zero value for eventual consistency. If more than that interval has passed since the last check, then the table will be checked for updates. Note: this consistency only applies to read operations. Write operations are always consistent.

Defined in

index.ts:133


region

Optional region: string

Region to connect

Defined in

index.ts:113


storageOptions

Optional storageOptions: Record\<string, string>

User provided options for object storage. For example, S3 credentials or request timeouts.

The various options are described at https://lancedb.github.io/lancedb/guides/storage/

Defined in

index.ts:103


uri

uri: string

LanceDB database URI.

  • /path/to/database - local database
  • s3://bucket/path/to/database or gs://bucket/path/to/database - database on cloud storage
  • db://host:port - remote database (LanceDB cloud)

Defined in

index.ts:81