m_librarian.db module¶
-
class
m_librarian.db.
Author
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
addBook
(obj)¶
-
books
¶
-
count
¶
-
count_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
full_name_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
fullname
¶
-
j
= author¶
-
misc_name
¶
-
name
¶
-
q
= author¶
-
removeBook
(obj)¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'count': <IntCol b5e1ba4cL count>, 'misc_name': <UnicodeCol b5e7c28cL misc_name>, 'name': <UnicodeCol b5e7c7ecL name>, 'surname': <UnicodeCol b5e6790cL surname>}¶
-
columnList
= [<SOUnicodeCol surname not null>, <SOUnicodeCol name not null>, <SOUnicodeCol misc_name not null>, <SOIntCol count not null>]¶
-
columns
= {'count': <SOIntCol count not null>, 'misc_name': <SOUnicodeCol misc_name not null>, 'name': <SOUnicodeCol name not null>, 'surname': <SOUnicodeCol surname not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e1ba2cL {'unique': True, 'name': 'full_name_idx', 'columns': (<UnicodeCol b5e6790cL surname>, <UnicodeCol b5e7c7ecL name>, <UnicodeCol b5e7c28cL misc_name>)}>, <DatabaseIndex b5e1ba8cL {'name': 'count_idx', 'columns': (<IntCol b5e1ba4cL count>,)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= [<sqlobject.joins.RelatedJoin object>]¶
-
joins
= [<sqlobject.joins.SORelatedJoin object>]¶
-
soClass
¶ alias of
m_librarian.db.Author
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'author'¶
-
-
surname
¶
-
-
class
m_librarian.db.
Book
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
addAuthor
(obj)¶
-
addGenre
(obj)¶
-
archive
¶
-
archive_file_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
archive_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
date
¶
-
date_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
deleted
¶
-
deleted_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
extension
¶
-
extensionID
¶
-
extension_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
file
¶
-
file_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
genres
¶
-
j
= book¶
-
language
¶
-
languageID
¶
-
language_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
lib_id
¶
-
q
= book¶
-
removeAuthor
(obj)¶
-
removeGenre
(obj)¶
-
ser_no
¶
-
ser_no_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
series
¶
-
series_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
size
¶
-
size_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'archive': <StringCol b5e29bccL archive>, 'date': <DateCol b5e29c8cL date>, 'deleted': <BoolCol b5e29c4cL deleted>, 'extensionID': <ForeignKey b5e29c6cL extension>, 'file': <UnicodeCol b5e29becL file>, 'languageID': <ForeignKey b5e29cacL language>, 'lib_id': <StringCol b5e29c2cL lib_id>, 'ser_no': <IntCol b5e29bacL ser_no>, 'series': <UnicodeCol b5e29b8cL series>, 'size': <IntCol b5e29c0cL size>, 'title': <UnicodeCol b5e294acL title>}¶
-
columnList
= [<SOUnicodeCol title not null>, <SOUnicodeCol series not null>, <SOIntCol ser_no>, <SOStringCol archive not null>, <SOUnicodeCol file not null>, <SOIntCol size not null>, <SOStringCol lib_id not null>, <SOBoolCol deleted not null>, <SOForeignKey extensionID connected to Extension not null>, <SODateCol date not null>, <SOForeignKey languageID connected to Language>]¶
-
columns
= {'archive': <SOStringCol archive not null>, 'date': <SODateCol date not null>, 'deleted': <SOBoolCol deleted not null>, 'extensionID': <SOForeignKey extensionID connected to Extension not null>, 'file': <SOUnicodeCol file not null>, 'languageID': <SOForeignKey languageID connected to Language>, 'lib_id': <SOStringCol lib_id not null>, 'ser_no': <SOIntCol ser_no>, 'series': <SOUnicodeCol series not null>, 'size': <SOIntCol size not null>, 'title': <SOUnicodeCol title not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e29cccL {'name': 'title_idx', 'columns': (<UnicodeCol b5e294acL title>,)}>, <DatabaseIndex b5e29b6cL {'name': 'series_idx', 'columns': (<UnicodeCol b5e29b8cL series>,)}>, <DatabaseIndex b5e29d0cL {'name': 'ser_no_idx', 'columns': (<IntCol b5e29bacL ser_no>,)}>, <DatabaseIndex b5e29d4cL {'name': 'archive_idx', 'columns': (<StringCol b5e29bccL archive>,)}>, <DatabaseIndex b5e29d8cL {'unique': True, 'name': 'archive_file_idx', 'columns': (<StringCol b5e29bccL archive>, <UnicodeCol b5e29becL file>)}>, <DatabaseIndex b5e29dacL {'name': 'file_idx', 'columns': (<UnicodeCol b5e29becL file>,)}>, <DatabaseIndex b5e29decL {'name': 'size_idx', 'columns': (<IntCol b5e29c0cL size>,)}>, <DatabaseIndex b5e29e2cL {'name': 'deleted_idx', 'columns': (<BoolCol b5e29c4cL deleted>,)}>, <DatabaseIndex b5e29e6cL {'name': 'extension_idx', 'columns': (<ForeignKey b5e29c6cL extension>,)}>, <DatabaseIndex b5e29eacL {'name': 'date_idx', 'columns': (<DateCol b5e29c8cL date>,)}>, <DatabaseIndex b5e29eecL {'name': 'language_idx', 'columns': (<ForeignKey b5e29cacL language>,)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= [<sqlobject.joins.RelatedJoin object>, <sqlobject.joins.RelatedJoin object>]¶
-
joins
= [<sqlobject.joins.SORelatedJoin object>, <sqlobject.joins.SORelatedJoin object>]¶
-
soClass
¶ alias of
m_librarian.db.Book
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'book'¶
-
-
title
¶
-
title_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
-
class
m_librarian.db.
Extension
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
classmethod
byName
(val, connection=None)¶
-
count
¶
-
count_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
j
= extension¶
-
name
¶
-
q
= extension¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'count': <IntCol b5e3728cL count>, 'name': <UnicodeCol b5e37c0cL name>}¶
-
columnList
= [<SOUnicodeCol name not null>, <SOIntCol count not null>]¶
-
columns
= {'count': <SOIntCol count not null>, 'name': <SOUnicodeCol name not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e37c2cL {'name': 'count_idx', 'columns': (<IntCol b5e3728cL count>,)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= []¶
-
joins
= []¶
-
soClass
¶ alias of
m_librarian.db.Extension
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'extension'¶
-
-
classmethod
-
class
m_librarian.db.
Genre
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
addBook
(obj)¶
-
books
¶
-
classmethod
byName
(val, connection=None)¶
-
count
¶
-
count_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
j
= genre¶
-
name
¶
-
q
= genre¶
-
removeBook
(obj)¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'count': <IntCol b5e3d0ccL count>, 'name': <UnicodeCol b5e3d08cL name>, 'title': <UnicodeCol b5e3d0acL title>}¶
-
columnList
= [<SOUnicodeCol name not null>, <SOUnicodeCol title not null>, <SOIntCol count not null>]¶
-
columns
= {'count': <SOIntCol count not null>, 'name': <SOUnicodeCol name not null>, 'title': <SOUnicodeCol title not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e3d06cL {'name': 'title_idx', 'columns': (<UnicodeCol b5e3d0acL title>,)}>, <DatabaseIndex b5e3d12cL {'name': 'count_idx', 'columns': (<IntCol b5e3d0ccL count>,)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= [<sqlobject.joins.RelatedJoin object>]¶
-
joins
= [<sqlobject.joins.SORelatedJoin object>]¶
-
soClass
¶ alias of
m_librarian.db.Genre
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'genre'¶
-
-
title
¶
-
title_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
-
class
m_librarian.db.
Language
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
classmethod
byName
(val, connection=None)¶
-
count
¶
-
count_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
j
= language¶
-
name
¶
-
q
= language¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'count': <IntCol b5e3d86cL count>, 'name': <UnicodeCol b5e3d78cL name>}¶
-
columnList
= [<SOUnicodeCol name not null>, <SOIntCol count not null>]¶
-
columns
= {'count': <SOIntCol count not null>, 'name': <SOUnicodeCol name not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e3d88cL {'name': 'count_idx', 'columns': (<IntCol b5e3d86cL count>,)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= []¶
-
joins
= []¶
-
soClass
¶ alias of
m_librarian.db.Language
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'language'¶
-
-
classmethod
-
class
m_librarian.db.
AuthorBook
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
book
¶
-
bookID
¶
-
book_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
j
= author_book¶
-
main_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
q
= author_book¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'authorID': <ForeignKey b5e2938cL author>, 'bookID': <ForeignKey b5e293ccL book>}¶
-
columnList
= [<SOForeignKey authorID connected to Author not null>, <SOForeignKey bookID connected to Book not null>]¶
-
columns
= {'authorID': <SOForeignKey authorID connected to Author not null>, 'bookID': <SOForeignKey bookID connected to Book not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e2934cL {'name': 'author_idx', 'columns': (<ForeignKey b5e2938cL author>,)}>, <DatabaseIndex b5e2936cL {'name': 'book_idx', 'columns': (<ForeignKey b5e293ccL book>,)}>, <DatabaseIndex b5e2940cL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5e2938cL author>, <ForeignKey b5e293ccL book>)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= []¶
-
joins
= []¶
-
soClass
¶ alias of
m_librarian.db.AuthorBook
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'author_book'¶
-
-
-
class
m_librarian.db.
BookGenre
(**kw)[source]¶ Bases:
sqlobject.main.SQLObject
-
book
¶
-
bookID
¶
-
book_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
genre
¶
-
genreID
¶
-
genre_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
j
= book_genre¶
-
main_idx
= <sqlobject.index.SODatabaseIndex object>¶
-
q
= book_genre¶
-
class
sqlmeta
(instance)¶ Bases:
sqlobject.main.sqlmeta
-
childName
= None¶
-
columnDefinitions
= {'bookID': <ForeignKey b5e3762cL book>, 'genreID': <ForeignKey b5e375ccL genre>}¶
-
columnList
= [<SOForeignKey bookID connected to Book not null>, <SOForeignKey genreID connected to Genre not null>]¶
-
columns
= {'bookID': <SOForeignKey bookID connected to Book not null>, 'genreID': <SOForeignKey genreID connected to Genre not null>}¶
-
idName
= 'id'¶
-
indexDefinitions
= [<DatabaseIndex b5e3754cL {'name': 'book_idx', 'columns': (<ForeignKey b5e3762cL book>,)}>, <DatabaseIndex b5e374acL {'name': 'genre_idx', 'columns': (<ForeignKey b5e375ccL genre>,)}>, <DatabaseIndex b5e375acL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5e3762cL book>, <ForeignKey b5e375ccL genre>)}>]¶
-
indexes
= [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]¶
-
joinDefinitions
= []¶
-
joins
= []¶
-
soClass
¶ alias of
m_librarian.db.BookGenre
-
style
= <sqlobject.styles.MixedCaseUnderscoreStyle object>¶
-
table
= 'book_genre'¶
-
-