You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In most cases, I could use sqlalchemy_utils.functions import get_mapper to get the mapper of a table.
But for association tables - I cannot do that as they do not have any Model associated with it
After digging a bit deeper - I realized: Book.__versioning_mapper__ can be used to access the manager.
When I try to do the same for book_author.__versioning_manager__ - it says the property does not exist.
Looks like ModelBuilder.__call__() is adding the manager.
But TableBuilder.__call__() is not adding the manager so there is no way to go from AssociationTable -> Manager as of now
Currently - I am able to get the versioning manager used for a Model using:
sqlalchemy_continuum.utils.get_versioning_manager()
But this does not work for Tables.
In most cases, I could use
sqlalchemy_utils.functions import get_mapper
to get the mapper of a table.But for association tables - I cannot do that as they do not have any Model associated with it
Example application to try this with:
The text was updated successfully, but these errors were encountered: