grai_source_cube
adapters

build_grai_metadata

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

Arguments:

current: desired:

Returns:

build_grai_metadata_from_dimension

@build_grai_metadata.register
def build_grai_metadata_from_dimension(
        current: DimensionNode, version: Literal["v1"]) -> ColumnMetadata

Arguments:

current: version:

Returns:

build_grai_metadata_from_measure

@build_grai_metadata.register
def build_grai_metadata_from_measure(current: MeasureNode,
                                     version: Literal["v1"]) -> ColumnMetadata

Arguments:

current: version:

Returns:

build_grai_metadata_from_node

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

Arguments:

current: version:

Returns:

build_app_metadata

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

Arguments:

current: desired:

Returns:

build_metadata_from_node

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

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata_from_edge

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

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata

def build_metadata(obj, version)

Arguments:

obj: version:

Returns:

unsupported_arguments

@adapt_to_client.register
def unsupported_arguments(current: Any, source: Any, version: Any) -> None

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_source_to_client

@adapt_to_client.register
def adapt_source_to_client(current: SourceNode, source: SourceSpec,
                           version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_column_to_client

@adapt_to_client.register
def adapt_column_to_client(current: Union[MeasureNode, DimensionNode,
                                          CubeNode], source: SourceSpec,
                           version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

make_name

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

Arguments:

node1: node2:

Returns:

adapt_edge_to_client

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

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_seq_to_client

@adapt_to_client.register
def adapt_seq_to_client(
        objs: Union[Sequence, List, Tuple], source: SourceSpec,
        version: Literal["v1"]) -> List[Union[SourcedNodeV1, SourcedEdgeV1]]

Arguments:

objs: source: version:

Returns: