pub(crate) fn sqlite_date_trunc_to_sql(
unparser: &Unparser<'_>,
date_trunc_args: &[Expr],
) -> Result<Option<Expr>>Expand description
SQLite does not support timestamp/date scalars like to_timestamp, from_unixtime, date_trunc, etc.
This uses the strftime function to format the timestamp as a string depending on the truncation unit.
ยงErrors
- If the number of arguments is not 2 - truncation unit and the column or expression to convert.
- If the scalar function cannot be converted to SQL.