| 1 | [vectordb](README.md) / Exports |
| 2 | |
| 3 | # vectordb |
| 4 | |
| 5 | ## Table of contents |
| 6 | |
| 7 | ### Enumerations |
| 8 | |
| 9 | - [MetricType](enums/MetricType.md) |
| 10 | - [WriteMode](enums/WriteMode.md) |
| 11 | |
| 12 | ### Classes |
| 13 | |
| 14 | - [DefaultWriteOptions](classes/DefaultWriteOptions.md) |
| 15 | - [LocalConnection](classes/LocalConnection.md) |
| 16 | - [LocalTable](classes/LocalTable.md) |
| 17 | - [OpenAIEmbeddingFunction](classes/OpenAIEmbeddingFunction.md) |
| 18 | - [Query](classes/Query.md) |
| 19 | |
| 20 | ### Interfaces |
| 21 | |
| 22 | - [AwsCredentials](interfaces/AwsCredentials.md) |
| 23 | - [CleanupStats](interfaces/CleanupStats.md) |
| 24 | - [CompactionMetrics](interfaces/CompactionMetrics.md) |
| 25 | - [CompactionOptions](interfaces/CompactionOptions.md) |
| 26 | - [Connection](interfaces/Connection.md) |
| 27 | - [ConnectionOptions](interfaces/ConnectionOptions.md) |
| 28 | - [CreateTableOptions](interfaces/CreateTableOptions.md) |
| 29 | - [EmbeddingFunction](interfaces/EmbeddingFunction.md) |
| 30 | - [IndexStats](interfaces/IndexStats.md) |
| 31 | - [IvfPQIndexConfig](interfaces/IvfPQIndexConfig.md) |
| 32 | - [Table](interfaces/Table.md) |
| 33 | - [UpdateArgs](interfaces/UpdateArgs.md) |
| 34 | - [UpdateSqlArgs](interfaces/UpdateSqlArgs.md) |
| 35 | - [VectorIndex](interfaces/VectorIndex.md) |
| 36 | - [WriteOptions](interfaces/WriteOptions.md) |
| 37 | |
| 38 | ### Type Aliases |
| 39 | |
| 40 | - [VectorIndexParams](modules.md#vectorindexparams) |
| 41 | |
| 42 | ### Functions |
| 43 | |
| 44 | - [connect](modules.md#connect) |
| 45 | - [isWriteOptions](modules.md#iswriteoptions) |
| 46 | |
| 47 | ## Type Aliases |
| 48 | |
| 49 | ### VectorIndexParams |
| 50 | |
| 51 | Ƭ **VectorIndexParams**: [`IvfPQIndexConfig`](interfaces/IvfPQIndexConfig.md) |
| 52 | |
| 53 | #### Defined in |
| 54 | |
| 55 | [index.ts:996](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L996) |
| 56 | |
| 57 | ## Functions |
| 58 | |
| 59 | ### connect |
| 60 | |
| 61 | ▸ **connect**(`uri`): `Promise`\<[`Connection`](interfaces/Connection.md)\> |
| 62 | |
| 63 | Connect to a LanceDB instance at the given URI. |
| 64 | |
| 65 | Accpeted formats: |
| 66 | |
| 67 | - `/path/to/database` - local database |
| 68 | - `s3://bucket/path/to/database` or `gs://bucket/path/to/database` - database on cloud storage |
| 69 | - `db://host:port` - remote database (SaaS) |
| 70 | |
| 71 | #### Parameters |
| 72 | |
| 73 | | Name | Type | Description | |
| 74 | | :------ | :------ | :------ | |
| 75 | | `uri` | `string` | The uri of the database. If the database uri starts with `db://` then it connects to a remote database. | |
| 76 | |
| 77 | #### Returns |
| 78 | |
| 79 | `Promise`\<[`Connection`](interfaces/Connection.md)\> |
| 80 | |
| 81 | **`See`** |
| 82 | |
| 83 | [ConnectionOptions](interfaces/ConnectionOptions.md) for more details on the URI format. |
| 84 | |
| 85 | #### Defined in |
| 86 | |
| 87 | [index.ts:141](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L141) |
| 88 | |
| 89 | ▸ **connect**(`opts`): `Promise`\<[`Connection`](interfaces/Connection.md)\> |
| 90 | |
| 91 | Connect to a LanceDB instance with connection options. |
| 92 | |
| 93 | #### Parameters |
| 94 | |
| 95 | | Name | Type | Description | |
| 96 | | :------ | :------ | :------ | |
| 97 | | `opts` | `Partial`\<[`ConnectionOptions`](interfaces/ConnectionOptions.md)\> | The [ConnectionOptions](interfaces/ConnectionOptions.md) to use when connecting to the database. | |
| 98 | |
| 99 | #### Returns |
| 100 | |
| 101 | `Promise`\<[`Connection`](interfaces/Connection.md)\> |
| 102 | |
| 103 | #### Defined in |
| 104 | |
| 105 | [index.ts:147](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L147) |
| 106 | |
| 107 | ___ |
| 108 | |
| 109 | ### isWriteOptions |
| 110 | |
| 111 | ▸ **isWriteOptions**(`value`): value is WriteOptions |
| 112 | |
| 113 | #### Parameters |
| 114 | |
| 115 | | Name | Type | |
| 116 | | :------ | :------ | |
| 117 | | `value` | `any` | |
| 118 | |
| 119 | #### Returns |
| 120 | |
| 121 | value is WriteOptions |
| 122 | |
| 123 | #### Defined in |
| 124 | |
| 125 | [index.ts:1022](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1022) |