Versions in this module Expand all Collapse all v1 v1.3.10 Nov 3, 2026 v1.3.9 Oct 9, 2026 Changes in this version type Book + CoverBlurhash sql.NullString + CoverHeight sql.NullInt64 + CoverImgType sql.NullString + CoverInsertHtml sql.NullString + CoverModTime sql.NullTime + CoverName sql.NullString + CoverPageNum sql.NullInt64 + CoverPath sql.NullString + CoverSize sql.NullInt64 + CoverUrl sql.NullString + CoverWidth sql.NullInt64 + RemoteBookID sql.NullString + RemoteShelfKey sql.NullString + RemoteShelfName sql.NullString + RemoteStoreKey sql.NullString type Queries + func (q *Queries) UpsertBook(ctx context.Context, arg UpsertBookParams) error + type ScanFailure struct + CreatedByVersion string + Error string + FailedAt time.Time + FilePath string + FileSize int64 + IsRemote bool + Key string + ModifiedUnixNano int64 + StoreUrl string + type UpsertBookParams struct + Author sql.NullString + BookComplete sql.NullBool + BookID string + BookPath string + ChildBooksID sql.NullString + ChildBooksNum sql.NullInt64 + CoverBlurhash sql.NullString + CoverHeight sql.NullInt64 + CoverImgType sql.NullString + CoverInsertHtml sql.NullString + CoverModTime sql.NullTime + CoverName sql.NullString + CoverPageNum sql.NullInt64 + CoverPath sql.NullString + CoverSize sql.NullInt64 + CoverUrl sql.NullString + CoverWidth sql.NullInt64 + CreatedByVersion sql.NullString + Deleted sql.NullBool + Depth sql.NullInt64 + ExtractNum sql.NullInt64 + ExtractPath sql.NullString + FileSize sql.NullInt64 + InitComplete sql.NullBool + IsRemote sql.NullBool + Isbn sql.NullString + LastReadPage sql.NullInt64 + ModifiedTime sql.NullTime + NonUtf8zip sql.NullBool + Owner sql.NullString + PageCount sql.NullInt64 + ParentFolder sql.NullString + Press sql.NullString + PublishedAt sql.NullString + RemoteBookID sql.NullString + RemoteShelfKey sql.NullString + RemoteShelfName sql.NullString + RemoteStoreKey sql.NullString + RemoteUrl sql.NullString + StoreUrl string + Title string + Type string + ZipTextEncoding sql.NullString v1.3.8 Oct 1, 2026 v1.3.7 Sep 15, 2026 v1.3.6 Sep 9, 2026 v1.3.5 Sep 8, 2026 v1.3.4 Aug 26, 2026 v1.3.3 Jul 23, 2026 v1.3.2 Jul 15, 2026 v1.3.1 Jun 30, 2026 v1.3.0 Jun 20, 2026 v1.2.38 Jun 15, 2026 v1.2.37 Jun 14, 2026 v1.2.36 Jun 7, 2026 Changes in this version + type Book struct + Author sql.NullString + BookComplete sql.NullBool + BookID string + BookPath string + ChildBooksID sql.NullString + ChildBooksNum sql.NullInt64 + CreatedByVersion sql.NullString + Deleted sql.NullBool + Depth sql.NullInt64 + ExtractNum sql.NullInt64 + ExtractPath sql.NullString + FileSize sql.NullInt64 + ID int64 + InitComplete sql.NullBool + IsRemote sql.NullBool + Isbn sql.NullString + LastReadPage sql.NullInt64 + ModifiedTime sql.NullTime + NonUtf8zip sql.NullBool + Owner sql.NullString + PageCount sql.NullInt64 + ParentFolder sql.NullString + Press sql.NullString + PublishedAt sql.NullString + RemoteUrl sql.NullString + StoreUrl string + Title string + Type string + ZipTextEncoding sql.NullString + type Bookmark struct + BookID string + BookStoreID sql.NullString + CreatedAt sql.NullTime + Description sql.NullString + ID int64 + PageIndex int64 + Type string + UpdatedAt sql.NullTime + type CreateBookParams struct + Author sql.NullString + BookComplete sql.NullBool + BookID string + BookPath string + ChildBooksID sql.NullString + ChildBooksNum sql.NullInt64 + CreatedByVersion sql.NullString + Depth sql.NullInt64 + ExtractNum sql.NullInt64 + ExtractPath sql.NullString + FileSize sql.NullInt64 + InitComplete sql.NullBool + IsRemote sql.NullBool + Isbn sql.NullString + LastReadPage sql.NullInt64 + NonUtf8zip sql.NullBool + Owner sql.NullString + PageCount sql.NullInt64 + ParentFolder sql.NullString + Press sql.NullString + PublishedAt sql.NullString + RemoteUrl sql.NullString + StoreUrl string + Title string + Type string + ZipTextEncoding sql.NullString + type CreateBookmarkParams struct + BookID string + BookStoreID sql.NullString + CreatedAt sql.NullTime + Description sql.NullString + PageIndex int64 + Type string + UpdatedAt sql.NullTime + type CreatePageInfoParams struct + Blurhash sql.NullString + BookID string + Height sql.NullInt64 + ImgType sql.NullString + InsertHtml sql.NullString + ModTime sql.NullTime + Name string + PageNum sql.NullInt64 + Path sql.NullString + Size sql.NullInt64 + Url sql.NullString + Width sql.NullInt64 + type CreateUserParams struct + Email sql.NullString + ExpiresAt sql.NullTime + Key sql.NullString + Password string + Role sql.NullString + Username string + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type DeleteBookmarkByBookIDAndTypeParams struct + BookID string + Type string + type GetPageInfoByBookIDAndPageParams struct + BookID string + PageNum sql.NullInt64 + type PageInfo struct + Blurhash sql.NullString + BookID string + Height sql.NullInt64 + ID int64 + ImgType sql.NullString + InsertHtml sql.NullString + ModTime sql.NullTime + Name string + PageNum sql.NullInt64 + Path sql.NullString + Size sql.NullInt64 + Url sql.NullString + Width sql.NullInt64 + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) CountBooks(ctx context.Context) (int64, error) + func (q *Queries) CountBooksByType(ctx context.Context, type_ string) (int64, error) + func (q *Queries) CountPageInfosByBookID(ctx context.Context, bookID string) (int64, error) + func (q *Queries) CountUsers(ctx context.Context) (int64, error) + func (q *Queries) CountUsersByRole(ctx context.Context, role sql.NullString) (int64, error) + func (q *Queries) CreateBook(ctx context.Context, arg CreateBookParams) (Book, error) + func (q *Queries) CreateBookmark(ctx context.Context, arg CreateBookmarkParams) (Bookmark, error) + func (q *Queries) CreatePageInfo(ctx context.Context, arg CreatePageInfoParams) (PageInfo, error) + func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) + func (q *Queries) DeleteBook(ctx context.Context, bookID string) error + func (q *Queries) DeleteBookmarkByBookIDAndType(ctx context.Context, arg DeleteBookmarkByBookIDAndTypeParams) error + func (q *Queries) DeleteBookmarksByBookID(ctx context.Context, bookID string) error + func (q *Queries) DeletePageInfosByBookID(ctx context.Context, bookID string) error + func (q *Queries) DeleteUser(ctx context.Context, id int64) error + func (q *Queries) GetBookByBookPath(ctx context.Context, bookPath string) (Book, error) + func (q *Queries) GetBookByID(ctx context.Context, bookID string) (Book, error) + func (q *Queries) GetPageInfoByBookIDAndPage(ctx context.Context, arg GetPageInfoByBookIDAndPageParams) (PageInfo, error) + func (q *Queries) GetPageInfosByBookID(ctx context.Context, bookID string) ([]PageInfo, error) + func (q *Queries) GetUserByEmail(ctx context.Context, email sql.NullString) (User, error) + func (q *Queries) GetUserByID(ctx context.Context, id int64) (User, error) + func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error) + func (q *Queries) ListAllBookStoreURLs(ctx context.Context) ([]string, error) + func (q *Queries) ListBookmarksByBookID(ctx context.Context, bookID string) ([]Bookmark, error) + func (q *Queries) ListBooks(ctx context.Context) ([]Book, error) + func (q *Queries) ListBooksByStorePath(ctx context.Context, storeUrl string) ([]Book, error) + func (q *Queries) ListBooksByType(ctx context.Context, type_ string) ([]Book, error) + func (q *Queries) ListUsers(ctx context.Context) ([]User, error) + func (q *Queries) MarkBookAsDeleted(ctx context.Context, bookID string) error + func (q *Queries) SearchBooksByTitle(ctx context.Context, dollar_1 sql.NullString) ([]Book, error) + func (q *Queries) UpdateBook(ctx context.Context, arg UpdateBookParams) error + func (q *Queries) UpdateBookmark(ctx context.Context, arg UpdateBookmarkParams) error + func (q *Queries) UpdateLastReadPage(ctx context.Context, arg UpdateLastReadPageParams) error + func (q *Queries) UpdatePageInfo(ctx context.Context, arg UpdatePageInfoParams) error + func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error + func (q *Queries) UpdateUserKey(ctx context.Context, arg UpdateUserKeyParams) error + func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type UpdateBookParams struct + Author sql.NullString + BookComplete sql.NullBool + BookID string + BookPath string + ChildBooksID sql.NullString + ChildBooksNum sql.NullInt64 + CreatedByVersion sql.NullString + Depth sql.NullInt64 + ExtractNum sql.NullInt64 + ExtractPath sql.NullString + FileSize sql.NullInt64 + InitComplete sql.NullBool + IsRemote sql.NullBool + Isbn sql.NullString + LastReadPage sql.NullInt64 + NonUtf8zip sql.NullBool + Owner sql.NullString + PageCount sql.NullInt64 + ParentFolder sql.NullString + Press sql.NullString + PublishedAt sql.NullString + RemoteUrl sql.NullString + StoreUrl string + Title string + Type string + ZipTextEncoding sql.NullString + type UpdateBookmarkParams struct + BookID string + Description sql.NullString + PageIndex int64 + Type string + type UpdateLastReadPageParams struct + BookID string + PageIndex int64 + Type string + type UpdatePageInfoParams struct + Blurhash sql.NullString + BookID string + Height sql.NullInt64 + ImgType sql.NullString + InsertHtml sql.NullString + ModTime sql.NullTime + Name string + PageNum sql.NullInt64 + Path sql.NullString + Size sql.NullInt64 + Url sql.NullString + Width sql.NullInt64 + type UpdateUserKeyParams struct + ExpiresAt sql.NullTime + ID int64 + Key sql.NullString + type UpdateUserParams struct + Email sql.NullString + ExpiresAt sql.NullTime + ID int64 + Key sql.NullString + Password string + Role sql.NullString + Username string + type UpdateUserPasswordParams struct + ID int64 + Password string + type User struct + CreatedAt sql.NullTime + Email sql.NullString + ExpiresAt sql.NullTime + ID int64 + Key sql.NullString + Password string + Role sql.NullString + UpdatedAt sql.NullTime + Username string