Elffuss BraidHub

kikocis/lancedb public

85830ec79fd2 · 1.0 KiBRenderedRawPermalink
1[**@lancedb/lancedb**](../README.md) • **Docs**
2
3***
4
5[@lancedb/lancedb](../globals.md) / ColumnAlteration
6
7# Interface: ColumnAlteration
8
9A definition of a column alteration. The alteration changes the column at
10`path` to have the new name `name`, to be nullable if `nullable` is true,
11and to have the data type `data_type`. At least one of `rename` or `nullable`
12must be provided.
13
14## Properties
15
16### nullable?
17
18> `optional` **nullable**: `boolean`
19
20Set the new nullability. Note that a nullable column cannot be made non-nullable.
21
22***
23
24### path
25
26> **path**: `string`
27
28The path to the column to alter. This is a dot-separated path to the column.
29If it is a top-level column then it is just the name of the column. If it is
30a nested column then it is the path to the column, e.g. "a.b.c" for a column
31`c` nested inside a column `b` nested inside a column `a`.
32
33***
34
35### rename?
36
37> `optional` **rename**: `string`
38
39The new name of the column. If not provided then the name will not be changed.
40This must be distinct from the names of all other columns in the table.