sql
SqlLike = Union[Composable, IntoSql]
module-attribute
SQL or a type convertible to SQL
IntoSql
sql_filter(value)
sql_join_filter(value, delimiter, attribute=None)
Similar to jinja's join filter, but for SQL
Parameters:
-
value
(
Iterable[SqlLike]
) –sequence to join
-
delimiter
(
str
) –join delimiter
-
attribute
(
Optional[str]
, default:None
) –extract objects' attribute,
like
{{ users|join(', ', attribute='username') }}