> Not as much of an issue but inserts are also not handled.
the Query object doesn't do INSERTs, INSERTs are controlled by
creating an instance of your mapped class with the desired values upon
it. I would imagine if tenant_id is required, you simply make that a
NOT NULL column in your table (which it would be anyway) then have
tenant_id be the first argument positional argument on all __init__()
methods. Or use the "init" mapper event which is called alongside
__init__(). There are lots of other ways to get at INSERTs too as
well as UPDATE/DELETE within the normal ORM flush process (e.g. not
bulk update() or delete()) using the mapper or session hooks.. How
you organize these depends on the coding patterns you seek to use
(e.g. explicit call everywhere, pulling from a thread local registry,
etc.)