Open lycantropos opened 4 years ago
I can see that like:
sqltext
field is an SQLAlchemy expression, we can convert it to plaint string based on dialect using statement compiler like
dialect.statement_compiler(dialect, None).process(constraint.sqltext,
include_table=False,
literal_binds=True)
lark
parser generator and SQL language BNF).x BETWEEN start AND end
will become start <= x <= end
).AST.Lambda
with parameters corresponding to columns using compile
.lambda
in strategy.filter
.
We should add support for check constraints (both their generating & handling in records creation).