I want to use SQLAInterface(model class, session=None) as a stateful data-access object for SQLAlchemy…
I want to use SQLAInterface(model class, session=None) as a stateful data-access object for SQLAlchemy…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). For a normal session, interface.add(book) should add the model instance and commit immediately, so a later query…
The task
For a normal session, `interface.add(book)` should add the model instance and commit immediately, so a later query in the same database can find the new row. If I call `interface.add(book, commit=False)`, the item should be added to the session without committing, so I can commit the transaction myself later.…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.