gazette.utils.orm

Functions

bool_is(→ sqlalchemy.sql.ColumnElement[bool])

Returns a SqlAlchemyStatements checking for boolean values of JSON

Module Contents

gazette.utils.orm.bool_is(column: sqlalchemy.sql.ColumnElement[bool | None], value: bool) sqlalchemy.sql.ColumnElement[bool][source]

Returns a SqlAlchemyStatements checking for boolean values of JSON attibutes. Missing values are interpreted as False.