Class s.d.m.Patch(object):

Part of stoqlib.database.migration View In Hierarchy

A Database Patch
Instance Variablesfilenamepatch filename
leveldatabase level
Method __init__ Create a new Patch object.
Method __cmp__ Undocumented
Method apply Apply the patch
Method get_version Returns the patch version
def __init__(self, filename, migration):
Create a new Patch object.
Parametersfilename@param migration
def __cmp__(self, other):
def apply(self, conn):
Apply the patch
ParametersconnA database connection
def get_version(self):
Returns the patch version
Returnsa tuple with the patch generation and level
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.