db

package
v0.0.0-...-5f907a7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScribbleDb

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

func InitDb

func InitDb(dbPath string) *ScribbleDb

func (*ScribbleDb) BookByFilePath

func (db *ScribbleDb) BookByFilePath(filePath string) (common.BookRecord, bool)

func (*ScribbleDb) BookList

func (db *ScribbleDb) BookList() []common.BookRecord

func (*ScribbleDb) DeleteBookByIndex

func (db *ScribbleDb) DeleteBookByIndex(index int)

func (*ScribbleDb) Filter

func (db *ScribbleDb) Filter() string

func (*ScribbleDb) FilteredBooks

func (db *ScribbleDb) FilteredBooks() []common.BookRecord

func (*ScribbleDb) ReadDatabase

func (db *ScribbleDb) ReadDatabase()

func (*ScribbleDb) SetFilter

func (db *ScribbleDb) SetFilter(filter string)

func (*ScribbleDb) SetSortMode

func (db *ScribbleDb) SetSortMode(field string, asc bool)

func (*ScribbleDb) UpdateBookInDb

func (db *ScribbleDb) UpdateBookInDb(bookPath string, pos, length int, bookInfo *common.BookRecord)

Jump to

Keyboard shortcuts

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