Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) AuthorBookSeries(id int64) []*model.Serie
- func (db *DB) AuthorByID(id int64) *model.Author
- func (db *DB) AuthorsByBookId(bookId int64) []*model.Author
- func (db *DB) CountGenreBooks(genreCode string) int64
- func (db *DB) DropDB()
- func (db *DB) FindAuthor(a *model.Author) int64
- func (db *DB) FindBook(b *model.Book) int64
- func (db *DB) FindBookById(id int64) *model.Book
- func (db *DB) FindLanguage(l *model.Language) int64
- func (db *DB) FindSerie(s *model.Serie) int64
- func (db *DB) InitDB()
- func (db *DB) IsArchiveInStock(archive string) bool
- func (db *DB) IsFileInStock(file string, crc32 uint32) bool
- func (db *DB) IsReady() bool
- func (db *DB) ListAuthorBooks(authorId, serieId int64, limit, offset int) []*model.Book
- func (db *DB) ListAuthorWithTotals(prefix string) []*model.Author
- func (db *DB) ListAuthors(prefix, abc string) []*model.Author
- func (db *DB) ListGenreBooks(genreCode string, limit, offset int) []*model.Book
- func (db *DB) ListSerieBooks(id int64, limit, offset int) []*model.Book
- func (db *DB) ListSeries(prefix, lang, abc string) []*model.Serie
- func (db *DB) ListSeriesWithTotals(prefix, lang string) []*model.Serie
- func (db *DB) NewAuthor(a *model.Author) int64
- func (db *DB) NewBook(b *model.Book) int64
- func (db *DB) NewLanguage(l *model.Language) int64
- func (db *DB) NewSerie(s *model.Serie) int64
- func (db *DB) PageFoundAuthors(pattern string, limit, offset int) []*model.Author
- func (db *DB) PageFoundBooks(pattern string, limit, offset int) []*model.Book
- func (db *DB) SearchAuthorsCount(pattern string) int64
- func (db *DB) SearchBooksCount(pattern string) int64
- func (db *DB) SerieByID(id int64) *model.Serie
Constants ¶
View Source
const SQLITE_DB_DROP = `` /* 255-byte string literal not displayed */
View Source
const SQLITE_DB_INIT = `` /* 3010-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) CountGenreBooks ¶
func (*DB) IsArchiveInStock ¶ added in v1.1.0
func (*DB) IsFileInStock ¶ added in v1.1.0
func (*DB) ListAuthorBooks ¶
func (*DB) ListGenreBooks ¶
func (*DB) ListSeriesWithTotals ¶
func (*DB) PageFoundAuthors ¶
func (*DB) PageFoundBooks ¶
func (*DB) SearchAuthorsCount ¶
Click to show internal directories.
Click to hide internal directories.