Documentation ¶
Index ¶
- Constants
- type Driver
- func (d *Driver) CheckMangaExistence(mangaID string) (bool, error)
- func (d *Driver) CheckMangaExistenceByPredicate(ps ...predicate.Manga) (bool, error)
- func (d *Driver) Close() error
- func (d *Driver) CreateChapter(chapterID, num, title string, manga *ent.Manga) error
- func (d *Driver) CreateManga(mangaID, title, source, mapping string, groups []string) (*ent.Manga, error)
- func (d *Driver) DeleteManga(m *ent.Manga) error
- func (d *Driver) QueryAllManga() ([]*ent.Manga, error)
- func (d *Driver) QueryMangaByID(mangaID, source string) (*ent.Manga, error)
- func (d *Driver) QueryMangaByTitle(title, source string) (*ent.Manga, error)
- func (d *Driver) UpdateManga(mangaUpdate *ent.MangaUpdateOne) (*ent.Manga, error)
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 (*Driver) CheckMangaExistence ¶
func (*Driver) CheckMangaExistenceByPredicate ¶ added in v1.1.0
func (*Driver) CreateChapter ¶
func (*Driver) CreateManga ¶
func (*Driver) QueryMangaByID ¶ added in v1.1.0
func (*Driver) QueryMangaByTitle ¶ added in v1.1.0
func (*Driver) UpdateManga ¶
Click to show internal directories.
Click to hide internal directories.