0.7.3 fix imports (?) in .sqlalchemy, add experimental .glue, docs for .sqlalchemy

This commit is contained in:
Yusur 2025-10-18 14:48:32 +02:00
parent 7e80c84de6
commit 10e6c202f0
9 changed files with 184 additions and 70 deletions

45
docs/sqlalchemy.rst Normal file
View file

@ -0,0 +1,45 @@
sqlalchemy helpers
==================
.. currentmodule:: suou.sqlalchemy
SUOU provides several helpers to make sqlalchemy learning curve less steep.
In fact, there are pre-made column presets for a specific purpose.
Columns
-------
.. autofunction:: id_column
.. warning::
``id_column()`` expects SIQ's!
.. autofunction:: snowflake_column
.. autofunction:: match_column
.. autofunction:: secret_column
.. autofunction:: bool_column
.. autofunction:: unbound_fk
.. autofunction:: bound_fk
Column pairs
------------
.. autofunction:: age_pair
.. autofunction:: author_pair
.. autofunction:: parent_children
Misc
----
.. autofunction:: BitSelector
.. autofunction:: match_constraint
.. autofunction:: a_relationship
.. autofunction:: declarative_base
.. autofunction:: want_column