exosql v0.2.10 ExoSQL.Builtins View Source
Builtin functions.
There are two categories, normal functions and aggregate functions. Aggregate functions receive as first parameter a ExoSQL.Result with a full table, and the rest of parameters are the function calling parameters, unsolved.
These expressions must be first simplified with
ExoSQL.executor.simplify_expr_columns
and then executed on the rows with
ExoSQL.Expr.run_expr
.
Link to this section Summary
Link to this section Functions
Convert datetime to string.
If no format is given, it is as to_string, which returns the ISO 8601. Format allows these substitutions (subset from SQLITE):
%d day of month: 00 %H hour: 00-24 %m month: 01-12 %M minute: 00-59 %s seconds since 1970-01-01 %S seconds: 00-59 %Y year: 0000-9999 %i ISO 8601 format %% %