mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
In LanceDB Enterprise, we've adopted these conventions to give some "canonical" metadata paths. This lets us display them in a certain way in the UI or let agents standardize on them, to assume they'll find info in a certain place. This PR (only comments/docs) just documents those choices.
43 lines
804 B
Markdown
43 lines
804 B
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / FieldMetadataUpdate
|
|
|
|
# Interface: FieldMetadataUpdate
|
|
|
|
A per-field metadata update, addressed by dot-path.
|
|
|
|
## Properties
|
|
|
|
### metadata
|
|
|
|
```ts
|
|
metadata: Record<string, null | string>;
|
|
```
|
|
|
|
Metadata key/value pairs. Merged into the field's existing metadata by
|
|
default; a value of `null` deletes that key. See
|
|
[Table.updateFieldMetadata](../classes/Table.md#updatefieldmetadata) for the conventional `lancedb:*` keys.
|
|
|
|
***
|
|
|
|
### path
|
|
|
|
```ts
|
|
path: string;
|
|
```
|
|
|
|
Dot-separated path to the field. For a top-level column this is just its
|
|
name; for a nested field it's the path, e.g. "a.b.c".
|
|
|
|
***
|
|
|
|
### replace?
|
|
|
|
```ts
|
|
optional replace: boolean;
|
|
```
|
|
|
|
If true, replace the field's entire metadata map instead of merging.
|