Skip to main content
Version: devel

dlt.destinations.utils

get_resource_for_adapter

def get_resource_for_adapter(data: Any) -> DltResource

View source on GitHub

Helper function for adapters. Wraps data in a DltResource if it's not a DltResource already. Alternatively if data is a DltSource, throws an error if there are multiple resource in the source or returns the single resource if available.

info_schema_null_to_bool

def info_schema_null_to_bool(v: str) -> bool

View source on GitHub

Converts INFORMATION SCHEMA truth values to Python bool

parse_db_data_type_str_with_precision

def parse_db_data_type_str_with_precision(
db_type: str) -> Tuple[str, Optional[int], Optional[int]]

View source on GitHub

Parses a db data type with optional precision or precision and scale information

get_pipeline_state_query_columns

def get_pipeline_state_query_columns() -> TTableSchema

View source on GitHub

We get definition of pipeline state table without columns we do not need for the query

get_deterministic_temp_table_name

def get_deterministic_temp_table_name(table_name: str, op: str) -> str

View source on GitHub

Returns table name suitable for deterministic temp table. Such table will survive disconnects and is supposed to be dropped before being filled again so we need deterministic name with very low collision prob with "data" tables

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.