dlt.common.data_writers.escape
escape_snowflake_literal
def escape_snowflake_literal(v: Any) -> Any
Escape string literals for Snowflake using standard SQL escaping.
Snowflake uses '' to escape single quotes (not backslash escaping).
format_datetime_literal
def format_datetime_literal(v: pendulum.DateTime,
precision: int = 6,
no_tz: bool = False) -> str
Converts v to ISO string, optionally without timezone spec (in UTC) and with given precision
format_bigquery_datetime_literal
def format_bigquery_datetime_literal(v: pendulum.DateTime,
precision: int = 6,
no_tz: bool = False) -> str
Returns BigQuery-adjusted datetime literal by prefixing required TIMESTAMP indicator.
Also works for Presto-based engines.
format_clickhouse_datetime_literal
def format_clickhouse_datetime_literal(v: pendulum.DateTime,
precision: int = 6,
no_tz: bool = False) -> str
Returns clickhouse compatibel function