@lancedb/lancedb β’ Docs
@lancedb/lancedb / connect
Function: connect()
connect(uri, opts)
connect(
uri
,opts
?):Promise
<Connection
>
Connect to a LanceDB instance at the given URI.
Accepted formats:
/path/to/database
- local databases3://bucket/path/to/database
orgs://bucket/path/to/database
- database on cloud storagedb://host:port
- remote database (LanceDB cloud)
Parameters
β’ uri: string
The uri of the database. If the database uri starts
with db://
then it connects to a remote database.
β’ opts?: Partial
<ConnectionOptions
| RemoteConnectionOptions
>
Returns
Promise
<Connection
>
See
ConnectionOptions for more details on the URI format.
Examples
connect(opts)
connect(
opts
):Promise
<Connection
>
Connect to a LanceDB instance at the given URI.
Accepted formats:
/path/to/database
- local databases3://bucket/path/to/database
orgs://bucket/path/to/database
- database on cloud storagedb://host:port
- remote database (LanceDB cloud)
Parameters
β’ opts: Partial
<ConnectionOptions
| RemoteConnectionOptions
> & object
Returns
Promise
<Connection
>
See
ConnectionOptions for more details on the URI format.