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 b59f15ec count>, 'surname': <UnicodeCol b59f1acc surname>, 'name': <UnicodeCol b59f1b4c name>, 'misc_name': <UnicodeCol b59f1bac misc_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>, 'surname': <SOUnicodeCol surname not null>, 'name': <SOUnicodeCol name not null>, 'misc_name': <SOUnicodeCol misc_name not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b5a4fb0c {'unique': True, 'columns': (<UnicodeCol b59f1acc surname>, <UnicodeCol b59f1b4c name>, <UnicodeCol b59f1bac misc_name>), 'name': 'full_name_idx'}>, <DatabaseIndex b5a573cc {'columns': (<IntCol b59f15ec count>,), 'name': 'count_idx'}>]
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 b595488c extension>, 'lib_id': <StringCol b595478c lib_id>, 'title': <UnicodeCol b595448c title>, 'size': <IntCol b595470c size>, 'date': <DateCol b595494c date>, 'deleted': <BoolCol b595480c deleted>, 'file': <StringCol b595468c file>, 'ser_no': <IntCol b595458c ser_no>, 'archive': <StringCol b595460c archive>, 'series': <UnicodeCol b595450c series>, 'languageID': <ForeignKey b595496c language>}
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>, 'lib_id': <SOStringCol lib_id not null>, 'title': <SOUnicodeCol title not null>, 'size': <SOIntCol size not null>, 'date': <SODateCol date not null>, 'deleted': <SOBoolCol deleted not null>, 'file': <SOStringCol file not null>, 'ser_no': <SOIntCol ser_no>, 'archive': <SOStringCol archive not null>, 'series': <SOUnicodeCol series not null>, 'languageID': <SOForeignKey languageID connected to Language>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b5954a2c {'columns': (<UnicodeCol b595448c title>,), 'name': 'title_idx'}>, <DatabaseIndex b5954a4c {'columns': (<UnicodeCol b595450c series>,), 'name': 'series_idx'}>, <DatabaseIndex b5a3c16c {'columns': (<IntCol b595458c ser_no>,), 'name': 'ser_no_idx'}>, <DatabaseIndex b5a9054c {'columns': (<StringCol b595460c archive>,), 'name': 'archive_idx'}>, <DatabaseIndex b5954aac {'unique': True, 'columns': (<StringCol b595460c archive>, <StringCol b595468c file>), 'name': 'archive_file_idx'}>, <DatabaseIndex b5954b0c {'columns': (<StringCol b595468c file>,), 'name': 'file_idx'}>, <DatabaseIndex b5954b4c {'columns': (<IntCol b595470c size>,), 'name': 'size_idx'}>, <DatabaseIndex b5954bac {'columns': (<BoolCol b595480c deleted>,), 'name': 'deleted_idx'}>, <DatabaseIndex b5954c2c {'columns': (<ForeignKey b595488c extension>,), 'name': 'extension_idx'}>, <DatabaseIndex b5954cac {'columns': (<DateCol b595494c date>,), 'name': 'date_idx'}>, <DatabaseIndex b5954d2c {'columns': (<ForeignKey b595496c language>,), 'name': 'language_idx'}>]
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 b595d3ac count>, 'name': <UnicodeCol b595d38c 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 b595d3ec {'columns': (<IntCol b595d3ac count>,), 'name': 'count_idx'}>]
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 b595dcec count>, 'title': <UnicodeCol b595dc6c title>, 'name': <UnicodeCol b595db4c name>}
columnList = [<SOUnicodeCol name not null>, <SOUnicodeCol title not null>, <SOIntCol count not null>]
columns = {'count': <SOIntCol count not null>, 'title': <SOUnicodeCol title not null>, 'name': <SOUnicodeCol name not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b595dd2c {'columns': (<UnicodeCol b595dc6c title>,), 'name': 'title_idx'}>, <DatabaseIndex b595dd8c {'columns': (<IntCol b595dcec count>,), 'name': 'count_idx'}>]
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 b595b8cc count>, 'name': <UnicodeCol b595b84c 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 b595b8ec {'columns': (<IntCol b595b8cc count>,), 'name': 'count_idx'}>]
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 = {'bookID': <ForeignKey b59989ec book>, 'authorID': <ForeignKey b59989ac author>}
columnList = [<SOForeignKey authorID connected to Author not null>, <SOForeignKey bookID connected to Book not null>]
columns = {'bookID': <SOForeignKey bookID connected to Book not null>, 'authorID': <SOForeignKey authorID connected to Author not null>}
idName = 'id'
indexDefinitions = [<DatabaseIndex b5998a8c {'columns': (<ForeignKey b59989ac author>,), 'name': 'author_idx'}>, <DatabaseIndex b5998aac {'columns': (<ForeignKey b59989ec book>,), 'name': 'book_idx'}>, <DatabaseIndex b5998b2c {'unique': True, 'columns': (<ForeignKey b59989ac author>, <ForeignKey b59989ec book>), 'name': 'main_idx'}>]
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 b595a78c genre>, 'bookID': <ForeignKey b595a84c 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 b595a8ec {'columns': (<ForeignKey b595a84c book>,), 'name': 'book_idx'}>, <DatabaseIndex b595a7cc {'columns': (<ForeignKey b595a78c genre>,), 'name': 'genre_idx'}>, <DatabaseIndex b595a6cc {'unique': True, 'columns': (<ForeignKey b595a84c book>, <ForeignKey b595a78c genre>), 'name': 'main_idx'}>]
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()[исходный код]