database

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQLITE = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func GetDriver

func GetDriver(driver int, path string) (*Driver, error)

func (*Driver) CheckMangaExistence

func (d *Driver) CheckMangaExistence(mangaID string) (bool, error)

func (*Driver) CheckMangaExistenceByPredicate added in v1.1.0

func (d *Driver) CheckMangaExistenceByPredicate(ps ...predicate.Manga) (bool, error)

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) CreateChapter

func (d *Driver) CreateChapter(chapterID, num, title string, manga *ent.Manga) error

func (*Driver) CreateManga

func (d *Driver) CreateManga(mangaID, title, source, mapping string, groups []string) (*ent.Manga, error)

func (*Driver) DeleteManga added in v1.1.0

func (d *Driver) DeleteManga(m *ent.Manga) error

func (*Driver) QueryAllManga

func (d *Driver) QueryAllManga() ([]*ent.Manga, error)

func (*Driver) QueryMangaByID added in v1.1.0

func (d *Driver) QueryMangaByID(mangaID, source string) (*ent.Manga, error)

func (*Driver) QueryMangaByTitle added in v1.1.0

func (d *Driver) QueryMangaByTitle(title, source string) (*ent.Manga, error)

func (*Driver) UpdateManga

func (d *Driver) UpdateManga(mangaUpdate *ent.MangaUpdateOne) (*ent.Manga, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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