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 b3c09f6cL person>, 'street': <StringCol b371b48cL street>, 'type': <StringCol b370bdacL type>}
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>, 'street': <SOStringCol street not null>, 'type': <SOStringCol type not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b362dc8cL {'unique': True, 'name': 'pk', 'columns': (<ForeignKey b3c09f6cL person>, <StringCol b370bdacL 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 = {'lastName': <StringCol b364094cL lastName>, 'age': <IntCol b3640eacL age>, 'firstName': <StringCol b36407ccL firstName>}
columnList = [<SOStringCol firstName>, <SOStringCol lastName>, <SOIntCol age alternate ID>]
columns = {'lastName': <SOStringCol lastName>, 'age': <SOIntCol age alternate ID>, 'firstName': <SOStringCol firstName>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b36408acL {'unique': True, 'name': 'nameIndex', 'columns': (<StringCol b36407ccL firstName>, <StringCol b364094cL 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 b41f6a8cL age>, 'name': <StringCol b41f650cL 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 = {'name': <StringCol b362dfacL name>, 'number': <IntCol b36293acL number>}
columnList = [<SOStringCol name>, <SOIntCol number>]
columns = {'name': <SOStringCol name>, 'number': <SOIntCol number>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b362968cL {'unique': True, 'name': 'nameIndex', 'columns': ('name',)}>, <DatabaseIndex b364552cL {'name': 'nameIndex2', 'columns': (<StringCol b362dfacL name>, <IntCol b36293acL number>)}>, <DatabaseIndex b364554cL {'name': 'nameIndex3', 'columns': ({'column': <SOStringCol name>, 'length': 3},)}>]
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 b3640b8cL name>}
columnList = [<SOStringCol name>]
columns = {'name': <SOStringCol name>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b3640e4cL {'name': 'nameIndex', 'columns': ({'expression': 'lower(name)'},)}>]
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]