m_librarian.db module

class m_librarian.db.Author(**kw)[исходный код]
Базовые классы: 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)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'count': <IntCol b5ded80cL count>, 'misc_name': <UnicodeCol b5dedd6cL misc_name>, 'name': <UnicodeCol b5dd4eacL name>, 'surname': <UnicodeCol b5dd4dccL 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 b5d9804cL {'unique': True, 'name': 'full_name_idx', 'columns': (<UnicodeCol b5dd4dccL surname>, <UnicodeCol b5dd4eacL name>, <UnicodeCol b5dedd6cL misc_name>)}>, <DatabaseIndex b5d9808cL {'name': 'count_idx', 'columns': (<IntCol b5ded80cL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = [<sqlobject.joins.RelatedJoin object>]
joins = [<sqlobject.joins.SORelatedJoin object>]
soClass

псевдоним класса m_librarian.db.Author

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'author'
surname
class m_librarian.db.Book(**kw)[исходный код]
Базовые классы: sqlobject.main.SQLObject
addAuthor(obj)
addGenre(obj)
archive
archive_file_idx = <sqlobject.index.SODatabaseIndex object>
archive_idx = <sqlobject.index.SODatabaseIndex object>
authors
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)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'archive': <StringCol b5d8faccL archive>, 'date': <DateCol b5da530cL date>, 'deleted': <BoolCol b5da52ccL deleted>, 'extensionID': <ForeignKey b5da52ecL extension>, 'file': <UnicodeCol b5d8fdacL file>, 'languageID': <ForeignKey b5da532cL language>, 'lib_id': <StringCol b5da52acL lib_id>, 'ser_no': <IntCol b5d8faecL ser_no>, 'series': <UnicodeCol b5d8fdccL series>, 'size': <IntCol b5da526cL size>, 'title': <UnicodeCol b5da514cL 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 b5da534cL {'name': 'title_idx', 'columns': (<UnicodeCol b5da514cL title>,)}>, <DatabaseIndex b5da528cL {'name': 'series_idx', 'columns': (<UnicodeCol b5d8fdccL series>,)}>, <DatabaseIndex b5da536cL {'name': 'ser_no_idx', 'columns': (<IntCol b5d8faecL ser_no>,)}>, <DatabaseIndex b5da538cL {'name': 'archive_idx', 'columns': (<StringCol b5d8faccL archive>,)}>, <DatabaseIndex b5da53acL {'unique': True, 'name': 'archive_file_idx', 'columns': (<StringCol b5d8faccL archive>, <UnicodeCol b5d8fdacL file>)}>, <DatabaseIndex b5da53ccL {'name': 'file_idx', 'columns': (<UnicodeCol b5d8fdacL file>,)}>, <DatabaseIndex b5da53ecL {'name': 'size_idx', 'columns': (<IntCol b5da526cL size>,)}>, <DatabaseIndex b5da542cL {'name': 'deleted_idx', 'columns': (<BoolCol b5da52ccL deleted>,)}>, <DatabaseIndex b5da546cL {'name': 'extension_idx', 'columns': (<ForeignKey b5da52ecL extension>,)}>, <DatabaseIndex b5da54acL {'name': 'date_idx', 'columns': (<DateCol b5da530cL date>,)}>, <DatabaseIndex b5da54ecL {'name': 'language_idx', 'columns': (<ForeignKey b5da532cL 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

псевдоним класса m_librarian.db.Book

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'book'
title
title_idx = <sqlobject.index.SODatabaseIndex object>
class m_librarian.db.Extension(**kw)[исходный код]
Базовые классы: sqlobject.main.SQLObject
classmethod byName(val, connection=None)
count
count_idx = <sqlobject.index.SODatabaseIndex object>
j = extension
name
q = extension
class sqlmeta(instance)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'count': <IntCol b5db21ecL count>, 'name': <UnicodeCol b5db216cL 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 b5db222cL {'name': 'count_idx', 'columns': (<IntCol b5db21ecL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса m_librarian.db.Extension

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'extension'
class m_librarian.db.Genre(**kw)[исходный код]
Базовые классы: 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)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'count': <IntCol b5db26acL count>, 'name': <UnicodeCol b5db262cL name>, 'title': <UnicodeCol b5db268cL 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 b5db264cL {'name': 'title_idx', 'columns': (<UnicodeCol b5db268cL title>,)}>, <DatabaseIndex b5db270cL {'name': 'count_idx', 'columns': (<IntCol b5db26acL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = [<sqlobject.joins.RelatedJoin object>]
joins = [<sqlobject.joins.SORelatedJoin object>]
soClass

псевдоним класса m_librarian.db.Genre

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'genre'
title
title_idx = <sqlobject.index.SODatabaseIndex object>
class m_librarian.db.Language(**kw)[исходный код]
Базовые классы: sqlobject.main.SQLObject
classmethod byName(val, connection=None)
count
count_idx = <sqlobject.index.SODatabaseIndex object>
j = language
name
q = language
class sqlmeta(instance)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'count': <IntCol b5db2e4cL count>, 'name': <UnicodeCol b5db2e2cL 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 b5db2e6cL {'name': 'count_idx', 'columns': (<IntCol b5db2e4cL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса m_librarian.db.Language

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'language'
class m_librarian.db.AuthorBook(**kw)[исходный код]
Базовые классы: sqlobject.main.SQLObject
author
authorID
author_idx = <sqlobject.index.SODatabaseIndex object>
book
bookID
book_idx = <sqlobject.index.SODatabaseIndex object>
j = author_book
main_idx = <sqlobject.index.SODatabaseIndex object>
q = author_book
class sqlmeta(instance)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'authorID': <ForeignKey b5d98a4cL author>, 'bookID': <ForeignKey b5d98a2cL 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 b5d9828cL {'name': 'author_idx', 'columns': (<ForeignKey b5d98a4cL author>,)}>, <DatabaseIndex b5d98aacL {'name': 'book_idx', 'columns': (<ForeignKey b5d98a2cL book>,)}>, <DatabaseIndex b5d98aecL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5d98a4cL author>, <ForeignKey b5d98a2cL book>)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса m_librarian.db.AuthorBook

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'author_book'
class m_librarian.db.BookGenre(**kw)[исходный код]
Базовые классы: 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)
Базовые классы: sqlobject.main.sqlmeta
childName = None
columnDefinitions = {'bookID': <ForeignKey b5dabc0cL book>, 'genreID': <ForeignKey b5dabbacL 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 b5dabb2cL {'name': 'book_idx', 'columns': (<ForeignKey b5dabc0cL book>,)}>, <DatabaseIndex b5daba8cL {'name': 'genre_idx', 'columns': (<ForeignKey b5dabbacL genre>,)}>, <DatabaseIndex b5dabb8cL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5dabc0cL book>, <ForeignKey b5dabbacL genre>)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса m_librarian.db.BookGenre

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'book_genre'
m_librarian.db.open_db(db_uri=None)[исходный код]
m_librarian.db.init_db()[исходный код]
m_librarian.db.insert_name(table, name, **kw)[исходный код]
m_librarian.db.insert_author(surname, name, misc_name)[исходный код]
m_librarian.db.update_counters(pbar_cb=None)[исходный код]