Skip to main content

schema

superduper.components.schema

Source code

get_schema​

get_schema(db,
schema: Union[superduper.components.schema.Schema,
str]) -> Optional[superduper.components.schema.Schema]
ParameterDescription
dbDatalayer instance.
schemaSchema to get. If a string, it will be loaded from the database.

Handle schema caching and loading.

Schema​

Schema(self,
identifier: str,
db: dataclasses.InitVar[typing.Optional[ForwardRef('Datalayer')]] = None,
uuid: str = None,
*,
artifacts: 'dc.InitVar[t.Optional[t.Dict]]' = None,
fields: Mapping[str,
superduper.components.datatype.DataType]) -> None
ParameterDescription
identifierIdentifier of the leaf.
dbDatalayer instance.
uuidUUID of the leaf.
artifactsA dictionary of artifacts paths and DataType objects
fieldsA mapping of field names to types or Encoders

A component carrying the DataType of columns.