destinations.dataset.relation
BaseReadableDBAPIRelation Objects
class BaseReadableDBAPIRelation(SupportsReadableRelation)
__init__
def __init__(*, readable_dataset: "ReadableDBAPIDataset") -> None
Create a lazy evaluated relation to for the dataset of a destination
cursor
@contextmanager
def cursor() -> Generator[SupportsReadableRelation, Any, Any]
Gets a DBApiCursor for the current relation
ReadableDBAPIRelation Objects
class ReadableDBAPIRelation(BaseReadableDBAPIRelation)
__init__
def __init__(*,
readable_dataset: "ReadableDBAPIDataset",
provided_query: Any = None,
table_name: str = None,
limit: int = None,
selected_columns: Sequence[str] = None) -> None
Create a lazy evaluated relation to for the dataset of a destination
query
@property
def query() -> Any
build the query
compute_columns_schema
def compute_columns_schema() -> TTableSchemaColumns
provide schema columns for the cursor, may be filtered by selected columns