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 b5c4518cL count>, 'misc_name': <UnicodeCol b5c456ecL misc_name>, 'name': <UnicodeCol b5c3262cL name>, 'surname': <UnicodeCol b5c3254cL 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 b5bec88cL {'unique': True, 'name': 'full_name_idx', 'columns': (<UnicodeCol b5c3254cL surname>, <UnicodeCol b5c3262cL name>, <UnicodeCol b5c456ecL misc_name>)}>, <DatabaseIndex b5bec8ccL {'name': 'count_idx', 'columns': (<IntCol b5c4518cL 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 b5bf7accL archive>, 'date': <DateCol b5bf7b8cL date>, 'deleted': <BoolCol b5bf7b4cL deleted>, 'extensionID': <ForeignKey b5bf7b6cL extension>, 'file': <UnicodeCol b5bf7aecL file>, 'languageID': <ForeignKey b5bf7bacL language>, 'lib_id': <StringCol b5bf7b2cL lib_id>, 'ser_no': <IntCol b5bf7aacL ser_no>, 'series': <UnicodeCol b5bf7a8cL series>, 'size': <IntCol b5bf7b0cL size>, 'title': <UnicodeCol b5bf7a4cL 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 b5bf7bccL {'name': 'title_idx', 'columns': (<UnicodeCol b5bf7a4cL title>,)}>, <DatabaseIndex b5bf79ccL {'name': 'series_idx', 'columns': (<UnicodeCol b5bf7a8cL series>,)}>, <DatabaseIndex b5bf7c0cL {'name': 'ser_no_idx', 'columns': (<IntCol b5bf7aacL ser_no>,)}>, <DatabaseIndex b5bf7c4cL {'name': 'archive_idx', 'columns': (<StringCol b5bf7accL archive>,)}>, <DatabaseIndex b5bf7c8cL {'unique': True, 'name': 'archive_file_idx', 'columns': (<StringCol b5bf7accL archive>, <UnicodeCol b5bf7aecL file>)}>, <DatabaseIndex b5bf7cacL {'name': 'file_idx', 'columns': (<UnicodeCol b5bf7aecL file>,)}>, <DatabaseIndex b5bf7cecL {'name': 'size_idx', 'columns': (<IntCol b5bf7b0cL size>,)}>, <DatabaseIndex b5bf7d2cL {'name': 'deleted_idx', 'columns': (<BoolCol b5bf7b4cL deleted>,)}>, <DatabaseIndex b5bf7d6cL {'name': 'extension_idx', 'columns': (<ForeignKey b5bf7b6cL extension>,)}>, <DatabaseIndex b5bf7dacL {'name': 'date_idx', 'columns': (<DateCol b5bf7b8cL date>,)}>, <DatabaseIndex b5bf7decL {'name': 'language_idx', 'columns': (<ForeignKey b5bf7bacL 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 b5c0838cL count>, 'name': <UnicodeCol b5c089ecL 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 b5c08a0cL {'name': 'count_idx', 'columns': (<IntCol b5c0838cL 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 b5c08eccL count>, 'name': <UnicodeCol b5c08e4cL name>, 'title': <UnicodeCol b5c08eacL 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 b5c08e6cL {'name': 'title_idx', 'columns': (<UnicodeCol b5c08eacL title>,)}>, <DatabaseIndex b5c08f2cL {'name': 'count_idx', 'columns': (<IntCol b5c08eccL 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 b5c0d64cL count>, 'name': <UnicodeCol b5c0d56cL 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 b5c0d66cL {'name': 'count_idx', 'columns': (<IntCol b5c0d64cL 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 b5bf72ccL author>, 'bookID': <ForeignKey b5bf730cL 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 b5bf728cL {'name': 'author_idx', 'columns': (<ForeignKey b5bf72ccL author>,)}>, <DatabaseIndex b5bf72acL {'name': 'book_idx', 'columns': (<ForeignKey b5bf730cL book>,)}>, <DatabaseIndex b5bf732cL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5bf72ccL author>, <ForeignKey b5bf730cL 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 b5c0836cL book>, 'genreID': <ForeignKey b5c0830cL 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 b5c0828cL {'name': 'book_idx', 'columns': (<ForeignKey b5c0836cL book>,)}>, <DatabaseIndex b5c081ecL {'name': 'genre_idx', 'columns': (<ForeignKey b5c0830cL genre>,)}>, <DatabaseIndex b5c082ecL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b5c0836cL book>, <ForeignKey b5c0830cL 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)[исходный код]