Versions in this module Expand all Collapse all v2 v2.2.0 Oct 10, 2023 Changes in this version + func SetConfig(cfg Config) + type Config struct + AutoMigrate bool + CreateDatabase bool + Driver string + Postgres struct{ ... } + Sqlite struct{ ... } + func (c *Config) Default(inContainer bool) + func (c *Config) Validate() error + type Driver struct + func GetDriver() (*Driver, error) + 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)