common.data_writers.escape
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