ORM Python Module¶
ORM for index server.
-
class
pacifica.uniqueid.orm.
OrmSync
[source]¶ Special module for syncing the orm.
This module should incorporate a schema migration strategy.
The supported versions migrating forward must be in a versions array containing tuples for major and minor versions.
The version tuples are directly translated to method names in the
OrmSync
class for the update between those versions.Example Version Control:
class OrmSync: versions = [ (0, 1), (0, 2), (1, 0), (1, 1) ] def update_0_1_to_0_2(): pass def update_0_2_to_1_0(): pass
The body of an update method should follow peewee migration practices. http://docs.peewee-orm.com/en/latest/peewee/playhouse.html#migrate
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pacifica.uniqueid.orm.
UniqueIndex
(*args, **kwargs)[source]¶ Auto-generated by pwiz maps a python record to a mysql table.
-
DoesNotExist
¶ alias of
UniqueIndexDoesNotExist
-
-
class
pacifica.uniqueid.orm.
UniqueIndexBase
(*args, **kwargs)[source]¶ UniqueIndex base model for database setup.
-
DoesNotExist
¶ alias of
UniqueIndexBaseDoesNotExist
-