destinations.dataset
ReadableDBAPIRelation Objects
class ReadableDBAPIRelation(SupportsReadableRelation)
__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
cursor
@contextmanager
def cursor() -> Generator[SupportsReadableRelation, Any, Any]
Gets a DBApiCursor for the current relation
ReadableDBAPIDataset Objects
class ReadableDBAPIDataset(SupportsReadableDataset)
Access to dataframes and arrowtables in the destination dataset via dbapi
__getitem__
def __getitem__(table_name: str) -> SupportsReadableRelation
access of table via dict notation
__getattr__
def __getattr__(table_name: str) -> SupportsReadableRelation
access of table via property notation