| 1 | [vectordb](../README.md) / [Exports](../modules.md) / ConnectionOptions |
| 2 | |
| 3 | # Interface: ConnectionOptions |
| 4 | |
| 5 | ## Table of contents |
| 6 | |
| 7 | ### Properties |
| 8 | |
| 9 | - [apiKey](ConnectionOptions.md#apikey) |
| 10 | - [awsCredentials](ConnectionOptions.md#awscredentials) |
| 11 | - [awsRegion](ConnectionOptions.md#awsregion) |
| 12 | - [hostOverride](ConnectionOptions.md#hostoverride) |
| 13 | - [region](ConnectionOptions.md#region) |
| 14 | - [uri](ConnectionOptions.md#uri) |
| 15 | |
| 16 | ## Properties |
| 17 | |
| 18 | ### apiKey |
| 19 | |
| 20 | • `Optional` **apiKey**: `string` |
| 21 | |
| 22 | #### Defined in |
| 23 | |
| 24 | [index.ts:81](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L81) |
| 25 | |
| 26 | ___ |
| 27 | |
| 28 | ### awsCredentials |
| 29 | |
| 30 | • `Optional` **awsCredentials**: [`AwsCredentials`](AwsCredentials.md) |
| 31 | |
| 32 | User provided AWS crednetials. |
| 33 | |
| 34 | If not provided, LanceDB will use the default credentials provider chain. |
| 35 | |
| 36 | #### Defined in |
| 37 | |
| 38 | [index.ts:75](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L75) |
| 39 | |
| 40 | ___ |
| 41 | |
| 42 | ### awsRegion |
| 43 | |
| 44 | • `Optional` **awsRegion**: `string` |
| 45 | |
| 46 | AWS region to connect to. Default is defaultAwsRegion. |
| 47 | |
| 48 | #### Defined in |
| 49 | |
| 50 | [index.ts:78](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L78) |
| 51 | |
| 52 | ___ |
| 53 | |
| 54 | ### hostOverride |
| 55 | |
| 56 | • `Optional` **hostOverride**: `string` |
| 57 | |
| 58 | Override the host URL for the remote connections. |
| 59 | |
| 60 | This is useful for local testing. |
| 61 | |
| 62 | #### Defined in |
| 63 | |
| 64 | [index.ts:91](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L91) |
| 65 | |
| 66 | ___ |
| 67 | |
| 68 | ### region |
| 69 | |
| 70 | • `Optional` **region**: `string` |
| 71 | |
| 72 | Region to connect |
| 73 | |
| 74 | #### Defined in |
| 75 | |
| 76 | [index.ts:84](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L84) |
| 77 | |
| 78 | ___ |
| 79 | |
| 80 | ### uri |
| 81 | |
| 82 | • **uri**: `string` |
| 83 | |
| 84 | LanceDB database URI. |
| 85 | |
| 86 | - `/path/to/database` - local database |
| 87 | - `s3://bucket/path/to/database` or `gs://bucket/path/to/database` - database on cloud storage |
| 88 | - `db://host:port` - remote database (SaaS) |
| 89 | |
| 90 | #### Defined in |
| 91 | |
| 92 | [index.ts:69](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L69) |