db

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchResult

type SearchResult struct {
	Total uint64
	Hits  []*model.Book
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func Create

func Create(path, language string) (*Store, error)

func Open

func Open(path string) (*Store, error)

func (*Store) AddBooks

func (s *Store) AddBooks(books []*model.Book, partial bool) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) GetBookById

func (s *Store) GetBookById(id string) (*model.Book, error)

func (*Store) GetMostRecentBooks

func (s *Store) GetMostRecentBooks(count int) ([]*model.Book, error)

func (*Store) SearchByField

func (s *Store) SearchByField(field, query string, page, pageSize int) (*SearchResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL