sqlite

package
v0.0.0-...-d0d9a17 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (bushido.LocalStorage, error)

Types

type StorageSqlite

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

func (*StorageSqlite) Add

func (s *StorageSqlite) Add(content bushido.Content) error

func (*StorageSqlite) AppendChapter

func (s *StorageSqlite) AppendChapter(content bushido.Content, chapters []bushido.Chapter) error

func (*StorageSqlite) AppendPages

func (s *StorageSqlite) AppendPages(chapter bushido.Chapter, pages []bushido.Page) error

func (*StorageSqlite) CreateTables

func (s *StorageSqlite) CreateTables() error

func (*StorageSqlite) FindById

func (s *StorageSqlite) FindById(id int) (*bushido.Content, error)
func (s *StorageSqlite) FindByLink(link string) (*bushido.Content, error)

func (*StorageSqlite) FindChapterById

func (s *StorageSqlite) FindChapterById(id int) (*bushido.Chapter, error)

func (*StorageSqlite) ListByName

func (s *StorageSqlite) ListByName(name string) ([]bushido.Content, error)

func (*StorageSqlite) ListChaptersByContentId

func (s *StorageSqlite) ListChaptersByContentId(contentId int) ([]bushido.Chapter, error)

Jump to

Keyboard shortcuts

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