sqlobject.tests.test_indexes module

class sqlobject.tests.test_indexes.AddressIndexGet2(**kw)[source]

Bases: sqlobject.main.SQLObject

j = address_index_get2
person
personID
pk = <sqlobject.index.SODatabaseIndex object>
q = address_index_get2
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'personID': <ForeignKey b468c88c person>, 'type': <StringCol b468c9ac type>, 'street': <StringCol b468c76c street>}
columnList = [<SOForeignKey personID connected to PersonIndexGet2 not null>, <SOStringCol type not null>, <SOStringCol street not null>]
columns = {'personID': <SOForeignKey personID connected to PersonIndexGet2 not null>, 'type': <SOStringCol type not null>, 'street': <SOStringCol street not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b468cf2c {'unique': True, 'name': 'pk', 'columns': (<ForeignKey b468c88c person>, <StringCol b468c9ac type>)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

alias of AddressIndexGet2

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'address_index_get2'
street
type
class sqlobject.tests.test_indexes.PersonIndexGet(**kw)[source]

Bases: sqlobject.main.SQLObject

age
classmethod byAge(val, connection=None)
firstName
j = person_index_get
lastName
nameIndex = <sqlobject.index.SODatabaseIndex object>
q = person_index_get
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'firstName': <StringCol b4a34f2c firstName>, 'age': <IntCol b4a3492c age>, 'lastName': <StringCol b4a3490c lastName>}
columnList = [<SOStringCol firstName>, <SOStringCol lastName>, <SOIntCol age alternate ID>]
columns = {'firstName': <SOStringCol firstName>, 'age': <SOIntCol age alternate ID>, 'lastName': <SOStringCol lastName>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b4109f6c {'unique': True, 'name': 'nameIndex', 'columns': (<StringCol b4a34f2c firstName>, <StringCol b4a3490c lastName>)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

alias of PersonIndexGet

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'person_index_get'
class sqlobject.tests.test_indexes.PersonIndexGet2(**kw)[source]

Bases: sqlobject.main.SQLObject

addresses
age
classmethod byName(val, connection=None)
j = person_index_get2
name
q = person_index_get2
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'age': <IntCol b45e944c age>, 'name': <StringCol b45e902c name>}
columnList = [<SOStringCol name alternate ID>, <SOIntCol age>]
columns = {'age': <SOIntCol age>, 'name': <SOStringCol name alternate ID>}
idName = 'id'
indexDefinitions = []
indexes = []
joinDefinitions = [<sqlobject.joins.MultipleJoin object>]
joins = [<sqlobject.joins.SOMultipleJoin object>]
soClass

alias of PersonIndexGet2

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'person_index_get2'
class sqlobject.tests.test_indexes.SOIndex1(**kw)[source]

Bases: sqlobject.main.SQLObject

j = so_index1
name
nameIndex = <sqlobject.index.SODatabaseIndex object>
nameIndex2 = <sqlobject.index.SODatabaseIndex object>
nameIndex3 = <sqlobject.index.SODatabaseIndex object>
number
q = so_index1
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'number': <IntCol b431e68c number>, 'name': <StringCol b431ee6c name>}
columnList = [<SOStringCol name>, <SOIntCol number>]
columns = {'number': <SOIntCol number>, 'name': <SOStringCol name>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b431e82c {'unique': True, 'name': 'nameIndex', 'columns': ('name',)}>, <DatabaseIndex b431e88c {'columns': (<StringCol b431ee6c name>, <IntCol b431e68c number>), 'name': 'nameIndex2'}>, <DatabaseIndex b431e18c {'columns': ({'column': <SOStringCol name>, 'length': 3},), 'name': 'nameIndex3'}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

alias of SOIndex1

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'so_index1'
class sqlobject.tests.test_indexes.SOIndex2(**kw)[source]

Bases: sqlobject.main.SQLObject

j = so_index2
name
nameIndex = <sqlobject.index.SODatabaseIndex object>
q = so_index2
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'name': <StringCol b40a4a0c name>}
columnList = [<SOStringCol name>]
columns = {'name': <SOStringCol name>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b49987ac {'columns': ({'expression': 'lower(name)'},), 'name': 'nameIndex'}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

alias of SOIndex2

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'so_index2'
sqlobject.tests.test_indexes.test_index_get_1()[source]
sqlobject.tests.test_indexes.test_index_get_2()[source]
sqlobject.tests.test_indexes.test_indexes_1()[source]
sqlobject.tests.test_indexes.test_indexes_2()[source]