sql#

Creates subclasses of sqlalchemy constructs.

We do this so that we can use textual expressions in Object Relational Mapping (ORM) clauses vs always having to use explicit expressions as well as applying our own default custom filters functions based on the unique AstroPath database schema. See SQL and _create_dynamic_filter() for information on these respectively.

sql Classes#

APFilters

The custom sqlalchemy filters we apply.

SQL

An SQL base class that wraps select().

sql Functions#

_parse_dynamic_filter_as_bitwise(sql, val, fname, *, ...)

Write better docstrings for docstrings sake.

_parse_dynamic_filter_as_list(sql, val, fname, *, ...)

Write better docstrings for docstrings sake.

_create_dynamic_filter(name)

Create a dynamic ORM filter().

sql Contents#

AP_FILTER_SPEC = '_filter'#