Elffuss BraidHub

kikocis/lancedb public

main · 1.3 KiBRenderedRawPermalink
1[vectordb](../README.md) / [Exports](../modules.md) / ColumnAlteration
2
3# Interface: ColumnAlteration
4
5A definition of a column alteration. The alteration changes the column at
6`path` to have the new name `name`, to be nullable if `nullable` is true,
7and to have the data type `data_type`. At least one of `rename` or `nullable`
8must be provided.
9
10## Table of contents
11
12### Properties
13
14- [nullable](ColumnAlteration.md#nullable)
15- [path](ColumnAlteration.md#path)
16- [rename](ColumnAlteration.md#rename)
17
18## Properties
19
20### nullable
21
22• `Optional` **nullable**: `boolean`
23
24Set the new nullability. Note that a nullable column cannot be made non-nullable.
25
26#### Defined in
27
28[index.ts:638](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L638)
29
30___
31
32### path
33
34• **path**: `string`
35
36The path to the column to alter. This is a dot-separated path to the column.
37If it is a top-level column then it is just the name of the column. If it is
38a nested column then it is the path to the column, e.g. "a.b.c" for a column
39`c` nested inside a column `b` nested inside a column `a`.
40
41#### Defined in
42
43[index.ts:633](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L633)
44
45___
46
47### rename
48
49• `Optional` **rename**: `string`
50
51#### Defined in
52
53[index.ts:634](https://github.com/lancedb/lancedb/blob/92179835/node/src/index.ts#L634)