sqlobject.versioning.test.test_version module

class sqlobject.versioning.test.test_version.Base(**kw)[source]

Bases: sqlobject.inheritance.InheritableSQLObject

childName
j = base
name
q = base
so_value
class sqlmeta(instance)

Bases: sqlobject.inheritance.InheritableSQLMeta

childClasses = {'VChild': <class 'sqlobject.versioning.test.test_version.VChild'>, 'Child': <class 'sqlobject.versioning.test.test_version.Child'>}
childName = None
columnDefinitions = {'so_value': <IntCol b33650acL so_value>, 'name': <StringCol b3365a2cL name>, 'childName': <StringCol b3473b2cL childName>}
columnList = [<SOStringCol name>, <SOIntCol so_value default=0>, <SOStringCol childName default=None>]
columns = {'so_value': <SOIntCol so_value default=0>, 'name': <SOStringCol name>, 'childName': <SOStringCol childName default=None>}
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
parentClass = None
soClass

alias of Base

table = 'base'
Base.versions
class sqlobject.versioning.test.test_version.Child(**kw)[source]

Bases: sqlobject.versioning.test.test_version.Base

childName
j = child
name
q = child
so_value
class sqlmeta(instance)

Bases: sqlobject.declarative.sqlmeta

childClasses = {}
childName = 'Child'
columnDefinitions = {'toy': <StringCol b33c614cL toy>, 'childName': <StringCol b54ce68cL childName>}
columnList = [<SOStringCol toy>, <SOStringCol childName default=None>]
columns = {'toy': <SOStringCol toy>, 'childName': <SOStringCol childName default=None>}
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
parentClass

alias of Base

soClass

alias of Child

table = 'child'
Child.toy
class sqlobject.versioning.test.test_version.Extra(**kw)[source]

Bases: sqlobject.main.SQLObject

j = extra
name
q = extra
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'name': <StringCol b336a1ecL name>}
columnList = [<SOStringCol name>]
columns = {'name': <SOStringCol name>}
idName = 'id'
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
soClass

alias of Extra

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'extra'
Extra.versions
class sqlobject.versioning.test.test_version.Government(**kw)[source]

Bases: sqlobject.inheritance.InheritableSQLObject

childName
j = government
name
q = government
class sqlmeta(instance)

Bases: sqlobject.inheritance.InheritableSQLMeta

childClasses = {'Monarchy': <class 'sqlobject.versioning.test.test_version.Monarchy'>}
childName = None
columnDefinitions = {'name': <StringCol b33de3ecL name>, 'childName': <StringCol b589d6ccL childName>}
columnList = [<SOStringCol name>, <SOStringCol childName default=None>]
columns = {'name': <SOStringCol name>, 'childName': <SOStringCol childName default=None>}
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
parentClass = None
soClass

alias of Government

table = 'government'
class sqlobject.versioning.test.test_version.HasAltId(**kw)[source]

Bases: sqlobject.main.SQLObject

altid
classmethod byAltid(val, connection=None)
j = has_alt_id
name
q = has_alt_id
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'name': <StringCol b336ab6cL name>, 'altid': <IntCol b336ad8cL altid>}
columnList = [<SOStringCol name>, <SOIntCol altid alternate ID>]
columns = {'name': <SOStringCol name>, 'altid': <SOIntCol altid alternate ID>}
idName = 'id'
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
soClass

alias of HasAltId

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'has_alt_id'
HasAltId.versions
class sqlobject.versioning.test.test_version.HasForeign(**kw)[source]

Bases: sqlobject.main.SQLObject

foreign
foreignID
j = has_foreign
q = has_foreign
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'foreignID': <ForeignKey b33e3bacL foreign>}
columnList = [<SOForeignKey foreignID connected to Base>]
columns = {'foreignID': <SOForeignKey foreignID connected to Base>}
idName = 'id'
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
soClass

alias of HasForeign

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'has_foreign'
HasForeign.versions
class sqlobject.versioning.test.test_version.Monarchy(**kw)[source]

Bases: sqlobject.versioning.test.test_version.Government

childName
j = monarchy
monarch
name
q = monarchy
class sqlmeta(instance)

Bases: sqlobject.declarative.sqlmeta

childClasses = {}
childName = 'Monarchy'
columnDefinitions = {'monarch': <StringCol b58180ecL monarch>, 'childName': <StringCol b33c3c4cL childName>}
columnList = [<SOStringCol monarch>, <SOStringCol childName default=None>]
columns = {'monarch': <SOStringCol monarch>, 'childName': <SOStringCol childName default=None>}
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
parentClass

alias of Government

soClass

alias of Monarchy

table = 'monarchy'
Monarchy.versions
class sqlobject.versioning.test.test_version.MyClass(**kw)[source]

Bases: sqlobject.main.SQLObject

j = my_class
name
q = my_class
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'name': <StringCol b39245acL name>}
columnList = [<SOStringCol name>]
columns = {'name': <SOStringCol name>}
idName = 'id'
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
soClass

alias of MyClass

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'my_class'
MyClass.versions
class sqlobject.versioning.test.test_version.VChild(**kw)[source]

Bases: sqlobject.versioning.test.test_version.Base

childName
j = vchild
name
q = vchild
so_value
class sqlmeta(instance)

Bases: sqlobject.declarative.sqlmeta

childClasses = {}
childName = 'VChild'
columnDefinitions = {'weapon': <StringCol b336798cL weapon>, 'childName': <StringCol b3367b4cL childName>}
columnList = [<SOStringCol weapon>, <SOStringCol childName default=None>]
columns = {'weapon': <SOStringCol weapon>, 'childName': <SOStringCol childName default=None>}
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
parentClass

alias of Base

soClass

alias of VChild

table = 'vchild'
VChild.versions
VChild.weapon
sqlobject.versioning.test.test_version.setup()[source]
sqlobject.versioning.test.test_version.test_altid()[source]
sqlobject.versioning.test.test_version.test_extra()[source]
sqlobject.versioning.test.test_version.test_foreign_keys()[source]
sqlobject.versioning.test.test_version.test_get_changed()[source]
sqlobject.versioning.test.test_version.test_inheritable_versioning()[source]
sqlobject.versioning.test.test_version.test_next()[source]
sqlobject.versioning.test.test_version.test_restore()[source]
sqlobject.versioning.test.test_version.test_versioning()[source]