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 b56f282cL count>, 'misc_name': <UnicodeCol b56f2d6cL misc_name>, 'surname': <UnicodeCol b56e094cL surname>, 'name': <UnicodeCol b56e0a2cL name>}
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>, 'surname': <SOUnicodeCol surname not null>, 'name': <SOUnicodeCol name not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b569afacL {'unique': True, 'name': 'full_name_idx', 'columns': (<UnicodeCol b56e094cL surname>, <UnicodeCol b56e0a2cL name>, <UnicodeCol b56f2d6cL misc_name>)}>, <DatabaseIndex b569afecL {'name': 'count_idx', 'columns': (<IntCol b56f282cL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = [<sqlobject.joins.RelatedJoin object>]
joins = [<sqlobject.joins.SORelatedJoin object>]
soClass

псевдоним класса 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 = {'extensionID': <ForeignKey b56ac1acL extension>, 'title': <UnicodeCol b56ac04cL title>, 'deleted': <BoolCol b56ac18cL deleted>, 'series': <UnicodeCol b56a046cL series>, 'languageID': <ForeignKey b56ac1ecL language>, 'ser_no': <IntCol b56ac0ecL ser_no>, 'file': <StringCol b56ac12cL file>, 'lib_id': <StringCol b56ac16cL lib_id>, 'date': <DateCol b56ac1ccL date>, 'archive': <StringCol b56ac10cL archive>, 'size': <IntCol b56ac14cL size>}
columnList = [<SOUnicodeCol title not null>, <SOUnicodeCol series not null>, <SOIntCol ser_no>, <SOStringCol archive not null>, <SOStringCol 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 = {'extensionID': <SOForeignKey extensionID connected to Extension not null>, 'title': <SOUnicodeCol title not null>, 'deleted': <SOBoolCol deleted not null>, 'series': <SOUnicodeCol series not null>, 'languageID': <SOForeignKey languageID connected to Language>, 'ser_no': <SOIntCol ser_no>, 'file': <SOStringCol file not null>, 'lib_id': <SOStringCol lib_id not null>, 'date': <SODateCol date not null>, 'archive': <SOStringCol archive not null>, 'size': <SOIntCol size not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b56ac20cL {'name': 'title_idx', 'columns': (<UnicodeCol b56ac04cL title>,)}>, <DatabaseIndex b56ac0ccL {'name': 'series_idx', 'columns': (<UnicodeCol b56a046cL series>,)}>, <DatabaseIndex b56ac24cL {'name': 'ser_no_idx', 'columns': (<IntCol b56ac0ecL ser_no>,)}>, <DatabaseIndex b56ac28cL {'name': 'archive_idx', 'columns': (<StringCol b56ac10cL archive>,)}>, <DatabaseIndex b56ac2ccL {'unique': True, 'name': 'archive_file_idx', 'columns': (<StringCol b56ac10cL archive>, <StringCol b56ac12cL file>)}>, <DatabaseIndex b56ac2ecL {'name': 'file_idx', 'columns': (<StringCol b56ac12cL file>,)}>, <DatabaseIndex b56ac32cL {'name': 'size_idx', 'columns': (<IntCol b56ac14cL size>,)}>, <DatabaseIndex b56ac36cL {'name': 'deleted_idx', 'columns': (<BoolCol b56ac18cL deleted>,)}>, <DatabaseIndex b56ac3acL {'name': 'extension_idx', 'columns': (<ForeignKey b56ac1acL extension>,)}>, <DatabaseIndex b56ac3ecL {'name': 'date_idx', 'columns': (<DateCol b56ac1ccL date>,)}>, <DatabaseIndex b56ac42cL {'name': 'language_idx', 'columns': (<ForeignKey b56ac1ecL 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

псевдоним класса 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 b56b478cL count>, 'name': <UnicodeCol b56b4e6cL 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 b56b4e8cL {'name': 'count_idx', 'columns': (<IntCol b56b478cL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса 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 b56b82ecL count>, 'name': <UnicodeCol b56b830cL name>, 'title': <UnicodeCol b56b82ccL 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 b56b81ecL {'name': 'title_idx', 'columns': (<UnicodeCol b56b82ccL title>,)}>, <DatabaseIndex b56b838cL {'name': 'count_idx', 'columns': (<IntCol b56b82ecL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = [<sqlobject.joins.RelatedJoin object>]
joins = [<sqlobject.joins.SORelatedJoin object>]
soClass

псевдоним класса 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 b56b89acL count>, 'name': <UnicodeCol b56b890cL 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 b56b89ccL {'name': 'count_idx', 'columns': (<IntCol b56b89acL count>,)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса 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 b56a09acL author>, 'bookID': <ForeignKey b56a094cL 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 b56a020cL {'name': 'author_idx', 'columns': (<ForeignKey b56a09acL author>,)}>, <DatabaseIndex b56a0a0cL {'name': 'book_idx', 'columns': (<ForeignKey b56a094cL book>,)}>, <DatabaseIndex b56a0a4cL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b56a09acL author>, <ForeignKey b56a094cL book>)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса 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 = {'genreID': <ForeignKey b56b47ccL genre>, 'bookID': <ForeignKey b56b482cL book>}
columnList = [<SOForeignKey bookID connected to Book not null>, <SOForeignKey genreID connected to Genre not null>]
columns = {'genreID': <SOForeignKey genreID connected to Genre not null>, 'bookID': <SOForeignKey bookID connected to Book not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b56b474cL {'name': 'book_idx', 'columns': (<ForeignKey b56b482cL book>,)}>, <DatabaseIndex b56b46acL {'name': 'genre_idx', 'columns': (<ForeignKey b56b47ccL genre>,)}>, <DatabaseIndex b56b47acL {'unique': True, 'name': 'main_idx', 'columns': (<ForeignKey b56b482cL book>, <ForeignKey b56b47ccL genre>)}>]
indexes = [<sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>, <sqlobject.index.SODatabaseIndex object>]
joinDefinitions = []
joins = []
soClass

псевдоним класса 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()[исходный код]