SQLAlchemy

Database queries using :python
web | etc

See also | alembic-python

Notes

Contain query sessions with Alchemy.closing()

with Alchemy.closing(self.session_class()) as sa_session:
	sa_session.query(...)
	if flag:
		return value

# session closed automatically, even if value returned

do_something_else()

Reference: Jono M, TODO: find link



Backlinks: alembic-python

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "SQLAlchemy in Grasmere notebook, including code snippets" (why? how?)