create_async_engine()and propagated that ... am I missing something?
cannot drop sequence sequence_ticket_number because other objects depend on it
ticket_number = db.Column( db.Integer, sequence_ticket_number, server_default=sequence_ticket_number.next_value(), autoincrement=True, nullable=False)
I have a O2M relationship that I set to
Now I want to use the relationship
User.addresses in a query:
result = await async_session.execute(User.addresses.statement)
But it complains saying
AttributeError: 'InstrumentedList' object has no attribute 'statement'
I don't want to change the
lazy so that I don't accidentally call it.
Another question: How to
selectinload on the same table?
User - O2M - Addresses
User - M2O (FK) - Group
This doesn't work:
you should not chain them since aggresses is not part of Group. they should be separated by comma, since are both "top level" (of user)