pub(crate) fn sqlite_from_unixtime_to_sql(
unparser: &Unparser<'_>,
from_unixtime_args: &[Expr],
) -> Result<Option<Expr>>Expand description
SQLite does not support timestamp/date scalars like to_timestamp, from_unixtime, date_trunc, etc.
This remaps from_unixtime to datetime(expr, 'unixepoch'), expecting the input to be in seconds.
It supports no other arguments, so if any are supplied it will return an error.
ยงErrors
- If the number of arguments is not 1 - the column or expression to convert.
- If the scalar function cannot be converted to SQL.