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 b5c67facL count>, 'misc_name': <UnicodeCol b5c0d08cL misc_name>, 'name': <UnicodeCol b5bffb0cL name>, 'surname': <UnicodeCol b5c67eccL 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 b5bb92ecL {'unique': True, 'name': 'full_name_idx', 'columns': (<UnicodeCol b5c67eccL surname>, <UnicodeCol b5bffb0cL name>, <UnicodeCol b5c0d08cL misc_name>)}>, <DatabaseIndex b5bb932cL {'name': 'count_idx', 'columns': (<IntCol b5c67facL 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 b5bc744cL archive>, 'date': <DateCol b5bc750cL date>, 'deleted': <BoolCol b5bc74ccL deleted>, 'extensionID': <ForeignKey b5bc74ecL extension>, 'file': <UnicodeCol b5bc746cL file>, 'languageID': <ForeignKey b5bc752cL language>, 'lib_id': <StringCol b5bc74acL lib_id>, 'ser_no': <IntCol b5bc742cL ser_no>, 'series': <UnicodeCol b5bc740cL series>, 'size': <IntCol b5bc748cL size>, 'title': <UnicodeCol b5bc732cL 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 b5bc754cL {'name': 'title_idx', 'columns': (<UnicodeCol b5bc732cL title>,)}>, <DatabaseIndex b5bc73ecL {'name': 'series_idx', 'columns': (<UnicodeCol b5bc740cL series>,)}>, <DatabaseIndex b5bc758cL {'name': 'ser_no_idx', 'columns': (<IntCol b5bc742cL ser_no>,)}>, <DatabaseIndex b5bc75ccL {'name': 'archive_idx', 'columns': (<StringCol b5bc744cL archive>,)}>, <DatabaseIndex b5bc760cL {'unique': True, 'name': 'archive_file_idx', 'columns': (<StringCol b5bc744cL archive>, <UnicodeCol b5bc746cL file>)}>, <DatabaseIndex b5bc762cL {'name': 'file_idx', 'columns': (<UnicodeCol b5bc746cL file>,)}>, <DatabaseIndex b5bc766cL {'name': 'size_idx', 'columns': (<IntCol b5bc748cL size>,)}>, <DatabaseIndex b5bc76acL {'name': 'deleted_idx', 'columns': (<BoolCol b5bc74ccL deleted>,)}>, <DatabaseIndex b5bc76ecL {'name': 'extension_idx', 'columns': (<ForeignKey b5bc74ecL extension>,)}>, <DatabaseIndex b5bc772cL {'name': 'date_idx', 'columns': (<DateCol b5bc750cL date>,)}>, <DatabaseIndex b5bc776cL {'name': 'language_idx', 'columns': (<ForeignKey b5bc752cL 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 b5bd326cL count>, 'name': <UnicodeCol b5bd31ecL 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 b5bd32acL {'name': 'count_idx', 'columns': (<IntCol b5bd326cL 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 b5bd372cL count>, 'name': <UnicodeCol b5bd310cL name>, 'title': <UnicodeCol b5bd374cL 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 b5bd362cL {'name': 'title_idx', 'columns': (<UnicodeCol b5bd374cL title>,)}>, <DatabaseIndex b5bd37ccL {'name': 'count_idx', 'columns': (<IntCol b5bd372cL 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 b5bd3eacL count>, 'name': <UnicodeCol b5bd3dccL 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 b5bd3eccL {'name': 'count_idx', 'columns': (<IntCol b5bd3eacL 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 b5bb9cccL author>, 'bookID': <ForeignKey b5bb952cL 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 b5bb978cL {'name': 'author_idx', 'columns': (<ForeignKey b5bb9cccL author>,)}>, <DatabaseIndex b5bb9d2cL {'name': 'book_idx', 'columns': (<ForeignKey b5bb952cL book>,)}>, <DatabaseIndex b5bb9d4cL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5bb9cccL author>, <ForeignKey b5bb952cL 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 b5bd0b6cL book>, 'genreID': <ForeignKey b5bd0aacL 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 b5bd0bccL {'name': 'book_idx', 'columns': (<ForeignKey b5bd0b6cL book>,)}>, <DatabaseIndex b5bd0c2cL {'name': 'genre_idx', 'columns': (<ForeignKey b5bd0aacL genre>,)}>, <DatabaseIndex b5bd0becL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5bd0b6cL book>, <ForeignKey b5bd0aacL 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'¶
-
-