GitHub

KeyDeclaration

API reference for KeyDeclaration.

A key of several fields (or a single field carried as a mapping): derive makes the primary key from the key fields' values, by default the JSON array of their JSON encodings.

Attributes

AttributeTypeDescription
fieldstuple[str, ...]
deriveCallable[[Row], str] | None = None

Functions

__init__

__init__(fields, derive=None) -> None
ParameterTypeDescription
fieldstuple[str, ...]
deriveCallable[[Row], str] | None = None