grai_source_redshift
adapters

build_grai_metadata

@multimethod
def build_grai_metadata(current: Any, desired: Any) -> None

Arguments:

current (Any): desired (Any):

Returns:

build_grai_metadata_from_column

@build_grai_metadata.register
def build_grai_metadata_from_column(current: Column,
                                    version: Literal["v1"] = "v1"
                                    ) -> ColumnMetadata

Arguments:

current (Column):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_grai_metadata_from_column

@build_grai_metadata.register
def build_grai_metadata_from_column(
        current: LateBindingViewColumn,
        version: Literal["v1"] = "v1") -> ColumnMetadata

Arguments:

current (Column):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_grai_metadata_from_node

@build_grai_metadata.register
def build_grai_metadata_from_node(current: Table,
                                  version: Literal["v1"] = "v1"
                                  ) -> TableMetadata

Arguments:

current (Table):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_grai_metadata_from_edge

@build_grai_metadata.register
def build_grai_metadata_from_edge(current: Edge,
                                  version: Literal["v1"] = "v1"
                                  ) -> GenericEdgeMetadataV1

Arguments:

current (Edge):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_app_metadata

@multimethod
def build_app_metadata(current: Any, desired: Any) -> None

Arguments:

current (Any): desired (Any):

Returns:

build_metadata_from_column

@build_app_metadata.register
def build_metadata_from_column(current: Union[Column, LateBindingViewColumn],
                               version: Literal["v1"] = "v1") -> Dict

Arguments:

current (Column):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_metadata_from_edge

@build_app_metadata.register
def build_metadata_from_edge(current: Edge,
                             version: Literal["v1"] = "v1") -> Dict

Arguments:

current (Edge):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_metadata_from_node

@build_app_metadata.register
def build_metadata_from_node(current: Table,
                             version: Literal["v1"] = "v1") -> Dict

Arguments:

current (Table):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_metadata

def build_metadata(obj, version)

Arguments:

obj: version:

Returns:

adapt_to_client

@multimethod
def adapt_to_client(current: Any, desired: Any)

Arguments:

current (Any): desired (Any):

Returns:

adapt_column_to_client

@adapt_to_client.register
def adapt_column_to_client(current: Union[Column, Table,
                                          LateBindingViewColumn],
                           source: SourceSpec,
                           version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current (Column):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

make_name

def make_name(node1: ID, node2: ID) -> str

Arguments:

node1 (ID): node2 (ID):

Returns:

adapt_edge_to_client

@adapt_to_client.register
def adapt_edge_to_client(current: Edge, source: SourceSpec,
                         version: Literal["v1"]) -> SourcedEdgeV1

Arguments:

current (Edge):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

adapt_list_to_client

@adapt_to_client.register
def adapt_list_to_client(objs: Sequence, source: SourceSpec,
                         version: Literal["v1"]) -> List

Arguments:

objs (Sequence): version (Literal["v1"]):

Returns: