| 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 | |
| 21 | If this is true and the table already exists and the mode is "create" |
| 22 | then no error will be raised. |
| 23 | |
| 24 | *** |
| 25 | |
| 26 | ### mode |
| 27 | |
| 28 | > **mode**: `"overwrite"` \| `"create"` |
| 29 | |
| 30 | The mode to use when creating the table. |
| 31 | |
| 32 | If this is set to "create" and the table already exists then either |
| 33 | an error will be thrown or, if existOk is true, then nothing will |
| 34 | happen. Any provided data will be ignored. |
| 35 | |
| 36 | If 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 | |
| 50 | Configuration for object storage. |
| 51 | |
| 52 | Options already set on the connection will be inherited by the table, |
| 53 | but can be overridden here. |
| 54 | |
| 55 | The available options are described at https://lancedb.github.io/lancedb/guides/storage/ |
| 56 | |
| 57 | *** |
| 58 | |
| 59 | ### useLegacyFormat? |
| 60 | |
| 61 | > `optional` **useLegacyFormat**: `boolean` |
| 62 | |
| 63 | If true then data files will be written with the legacy format |
| 64 | |
| 65 | The default is true while the new format is in beta |