Elffuss BraidHub

kikocis/lancedb public

main · 1.3 KiBRenderedRawPermalink
1[**@lancedb/lancedb**](../README.md) • **Docs**
2
3***
4
5[@lancedb/lancedb](../globals.md) / CreateTableOptions
6
7# Interface: CreateTableOptions
8
9## Properties
10
11### embeddingFunction?
12
13> `optional` **embeddingFunction**: [`EmbeddingFunctionConfig`](../namespaces/embedding/interfaces/EmbeddingFunctionConfig.md)
14
15***
16
17### existOk
18
19> **existOk**: `boolean`
20
21If this is true and the table already exists and the mode is "create"
22then no error will be raised.
23
24***
25
26### mode
27
28> **mode**: `"overwrite"` \| `"create"`
29
30The mode to use when creating the table.
31
32If this is set to "create" and the table already exists then either
33an error will be thrown or, if existOk is true, then nothing will
34happen. Any provided data will be ignored.
35
36If this is set to "overwrite" then any existing table will be replaced.
37
38***
39
40### schema?
41
42> `optional` **schema**: `SchemaLike`
43
44***
45
46### storageOptions?
47
48> `optional` **storageOptions**: `Record`<`string`, `string`>
49
50Configuration for object storage.
51
52Options already set on the connection will be inherited by the table,
53but can be overridden here.
54
55The available options are described at https://lancedb.github.io/lancedb/guides/storage/
56
57***
58
59### useLegacyFormat?
60
61> `optional` **useLegacyFormat**: `boolean`
62
63If true then data files will be written with the legacy format
64
65The default is true while the new format is in beta