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
Could I request that the Database class expose a property Mapped: bool that holds the property that the database has been mapped? One exception is generated if the user tries to construct a db_session without generating a mapping; however, another exception is thrown if the method Database.generate_mapping() is called more than once on a single Database instance. I constantly have to remember in which file I generated the mapping, and so I believe that it is better to always in principle check if a mapping has been generated in the header of any file in which I use Pony entities.
The text was updated successfully, but these errors were encountered:
Could I request that the
Database
class expose a propertyMapped: bool
that holds the property that the database has been mapped? One exception is generated if the user tries to construct adb_session
without generating a mapping; however, another exception is thrown if the methodDatabase.generate_mapping()
is called more than once on a singleDatabase
instance. I constantly have to remember in which file I generated the mapping, and so I believe that it is better to always in principle check if a mapping has been generated in the header of any file in which I use Pony entities.The text was updated successfully, but these errors were encountered: