grai_schemas
v1
metadata
edges

EdgeMetadataTypeLabels Objects

class EdgeMetadataTypeLabels(Enum)

BaseEdgeMetadataV1 Objects

class BaseEdgeMetadataV1(GraiBaseModel)

Class definition of BaseEdgeMetadataV1

Attributes:

  • type - Object type of the Metadata e.g. NodeV1, EdgeV1, etc.
  • version - Schema version of the metadata
  • edge_type - The type of edge e.g. TableToColumn, ColumnToColumn, etc.
  • edge_attributes - Attributes specific to the edge type
  • tags - Tags associated with the edge

MalformedEdgeMetadataV1 Objects

class MalformedEdgeMetadataV1(MalformedMetadata, BaseEdgeMetadataV1)

Class definition of MalformedEdgeMetadataV1

Attributes:

  • edge_type - The literal "Malformed"
  • edge_attributes - Attributes specific to the edge type

edge_type

type: ignore

edge_attributes

type: ignore

GenericEdgeMetadataV1 Objects

class GenericEdgeMetadataV1(BaseEdgeMetadataV1)

Class definition of GenericEdgeMetadataV1

Attributes:

  • edge_type - The literal "Generic"
  • edge_attributes - Attributes specific to the edge type

TableToColumnAttributes Objects

class TableToColumnAttributes(GenericAttributes)

Class definition of TableToColumnAttributes

Attributes:

  • version - Schema version of the attributes

TableToColumnMetadata Objects

class TableToColumnMetadata(BaseEdgeMetadataV1)

Class definition of TableToColumnMetadata

Attributes:

  • edge_type - The literal "TableToColumn"
  • edge_attributes - Attributes specific to the edge type

TableToTableAttributes Objects

class TableToTableAttributes(GenericAttributes)

Class definition of TableToTableAttributes

Attributes:

  • version - Schema version of the attributes

TableToTableMetadata Objects

class TableToTableMetadata(BaseEdgeMetadataV1)

Class definition of TableToTableMetadata

Attributes:

  • edge_type - The literal "TableToTable"
  • edge_attributes - Attributes specific to the edge type

ColumnToColumnAttributes Objects

class ColumnToColumnAttributes(GenericAttributes)

Class definition of ColumnToColumnAttributes

Attributes:

  • version - Schema version of the attributes
  • preserves_data_type - Whether the data type is conserved between the source and destination columns
  • preserves_nullable - Whether the nullability is conserved between the source and destination columns
  • preserves_unique - Whether uniqueness is conserved between the source and destination columns

ColumnToColumnMetadata Objects

class ColumnToColumnMetadata(BaseEdgeMetadataV1)

Class definition of ColumnToColumnMetadata

Attributes:

  • edge_type - The literal "ColumnToColumn"
  • edge_attributes - Attributes specific to the edge type