Versions in this module Expand all Collapse all v1 v1.1.1 Apr 7, 2023 v1.1.0 Apr 2, 2023 v1.0.3 Apr 2, 2023 v1.0.2 Apr 2, 2023 v1.0.1 Apr 2, 2023 v1.0.0 Jan 9, 2023 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeChapter + const TypeManga + func IsConstraintError(err error) bool + func IsNotFound(err error) bool + func IsNotLoaded(err error) bool + func IsNotSingular(err error) bool + func IsValidationError(err error) bool + func MaskNotFound(err error) error + func NewContext(parent context.Context, c *Client) context.Context + func NewTxContext(parent context.Context, tx *Tx) context.Context + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Chapter struct + ChapterID string + CreatedOn time.Time + Edges ChapterEdges + ID int + Num string + RegisteredOn time.Time + Title string + func (c *Chapter) QueryManga() *MangaQuery + func (c *Chapter) String() string + func (c *Chapter) Unwrap() *Chapter + func (c *Chapter) Update() *ChapterUpdateOne + type ChapterClient struct + func NewChapterClient(c config) *ChapterClient + func (c *ChapterClient) Create() *ChapterCreate + func (c *ChapterClient) CreateBulk(builders ...*ChapterCreate) *ChapterCreateBulk + func (c *ChapterClient) Delete() *ChapterDelete + func (c *ChapterClient) DeleteOne(ch *Chapter) *ChapterDeleteOne + func (c *ChapterClient) DeleteOneID(id int) *ChapterDeleteOne + func (c *ChapterClient) Get(ctx context.Context, id int) (*Chapter, error) + func (c *ChapterClient) GetX(ctx context.Context, id int) *Chapter + func (c *ChapterClient) Hooks() []Hook + func (c *ChapterClient) Query() *ChapterQuery + func (c *ChapterClient) QueryManga(ch *Chapter) *MangaQuery + func (c *ChapterClient) Update() *ChapterUpdate + func (c *ChapterClient) UpdateOne(ch *Chapter) *ChapterUpdateOne + func (c *ChapterClient) UpdateOneID(id int) *ChapterUpdateOne + func (c *ChapterClient) Use(hooks ...Hook) + type ChapterCreate struct + func (cc *ChapterCreate) Exec(ctx context.Context) error + func (cc *ChapterCreate) ExecX(ctx context.Context) + func (cc *ChapterCreate) Mutation() *ChapterMutation + func (cc *ChapterCreate) Save(ctx context.Context) (*Chapter, error) + func (cc *ChapterCreate) SaveX(ctx context.Context) *Chapter + func (cc *ChapterCreate) SetChapterID(s string) *ChapterCreate + func (cc *ChapterCreate) SetCreatedOn(t time.Time) *ChapterCreate + func (cc *ChapterCreate) SetManga(m *Manga) *ChapterCreate + func (cc *ChapterCreate) SetMangaID(id int) *ChapterCreate + func (cc *ChapterCreate) SetNillableCreatedOn(t *time.Time) *ChapterCreate + func (cc *ChapterCreate) SetNillableMangaID(id *int) *ChapterCreate + func (cc *ChapterCreate) SetNillableTitle(s *string) *ChapterCreate + func (cc *ChapterCreate) SetNum(s string) *ChapterCreate + func (cc *ChapterCreate) SetRegisteredOn(t time.Time) *ChapterCreate + func (cc *ChapterCreate) SetTitle(s string) *ChapterCreate + type ChapterCreateBulk struct + func (ccb *ChapterCreateBulk) Exec(ctx context.Context) error + func (ccb *ChapterCreateBulk) ExecX(ctx context.Context) + func (ccb *ChapterCreateBulk) Save(ctx context.Context) ([]*Chapter, error) + func (ccb *ChapterCreateBulk) SaveX(ctx context.Context) []*Chapter + type ChapterDelete struct + func (cd *ChapterDelete) Exec(ctx context.Context) (int, error) + func (cd *ChapterDelete) ExecX(ctx context.Context) int + func (cd *ChapterDelete) Where(ps ...predicate.Chapter) *ChapterDelete + type ChapterDeleteOne struct + func (cdo *ChapterDeleteOne) Exec(ctx context.Context) error + func (cdo *ChapterDeleteOne) ExecX(ctx context.Context) + type ChapterEdges struct + Manga *Manga + func (e ChapterEdges) MangaOrErr() (*Manga, error) + type ChapterGroupBy struct + func (cgb *ChapterGroupBy) Aggregate(fns ...AggregateFunc) *ChapterGroupBy + func (cgb *ChapterGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *ChapterGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *ChapterGroupBy) BoolX(ctx context.Context) bool + func (s *ChapterGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *ChapterGroupBy) BoolsX(ctx context.Context) []bool + func (s *ChapterGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *ChapterGroupBy) Float64X(ctx context.Context) float64 + func (s *ChapterGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *ChapterGroupBy) Float64sX(ctx context.Context) []float64 + func (s *ChapterGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *ChapterGroupBy) IntX(ctx context.Context) int + func (s *ChapterGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *ChapterGroupBy) IntsX(ctx context.Context) []int + func (s *ChapterGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *ChapterGroupBy) String(ctx context.Context) (_ string, err error) + func (s *ChapterGroupBy) StringX(ctx context.Context) string + func (s *ChapterGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *ChapterGroupBy) StringsX(ctx context.Context) []string + type ChapterMutation struct + func (m *ChapterMutation) AddField(name string, value ent.Value) error + func (m *ChapterMutation) AddedEdges() []string + func (m *ChapterMutation) AddedField(name string) (ent.Value, bool) + func (m *ChapterMutation) AddedFields() []string + func (m *ChapterMutation) AddedIDs(name string) []ent.Value + func (m *ChapterMutation) ChapterID() (r string, exists bool) + func (m *ChapterMutation) ClearCreatedOn() + func (m *ChapterMutation) ClearEdge(name string) error + func (m *ChapterMutation) ClearField(name string) error + func (m *ChapterMutation) ClearManga() + func (m *ChapterMutation) ClearTitle() + func (m *ChapterMutation) ClearedEdges() []string + func (m *ChapterMutation) ClearedFields() []string + func (m *ChapterMutation) CreatedOn() (r time.Time, exists bool) + func (m *ChapterMutation) CreatedOnCleared() bool + func (m *ChapterMutation) EdgeCleared(name string) bool + func (m *ChapterMutation) Field(name string) (ent.Value, bool) + func (m *ChapterMutation) FieldCleared(name string) bool + func (m *ChapterMutation) Fields() []string + func (m *ChapterMutation) ID() (id int, exists bool) + func (m *ChapterMutation) IDs(ctx context.Context) ([]int, error) + func (m *ChapterMutation) MangaCleared() bool + func (m *ChapterMutation) MangaID() (id int, exists bool) + func (m *ChapterMutation) MangaIDs() (ids []int) + func (m *ChapterMutation) Num() (r string, exists bool) + func (m *ChapterMutation) OldChapterID(ctx context.Context) (v string, err error) + func (m *ChapterMutation) OldCreatedOn(ctx context.Context) (v time.Time, err error) + func (m *ChapterMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ChapterMutation) OldNum(ctx context.Context) (v string, err error) + func (m *ChapterMutation) OldRegisteredOn(ctx context.Context) (v time.Time, err error) + func (m *ChapterMutation) OldTitle(ctx context.Context) (v string, err error) + func (m *ChapterMutation) Op() Op + func (m *ChapterMutation) RegisteredOn() (r time.Time, exists bool) + func (m *ChapterMutation) RemovedEdges() []string + func (m *ChapterMutation) RemovedIDs(name string) []ent.Value + func (m *ChapterMutation) ResetChapterID() + func (m *ChapterMutation) ResetCreatedOn() + func (m *ChapterMutation) ResetEdge(name string) error + func (m *ChapterMutation) ResetField(name string) error + func (m *ChapterMutation) ResetManga() + func (m *ChapterMutation) ResetNum() + func (m *ChapterMutation) ResetRegisteredOn() + func (m *ChapterMutation) ResetTitle() + func (m *ChapterMutation) SetChapterID(s string) + func (m *ChapterMutation) SetCreatedOn(t time.Time) + func (m *ChapterMutation) SetField(name string, value ent.Value) error + func (m *ChapterMutation) SetMangaID(id int) + func (m *ChapterMutation) SetNum(s string) + func (m *ChapterMutation) SetRegisteredOn(t time.Time) + func (m *ChapterMutation) SetTitle(s string) + func (m *ChapterMutation) Title() (r string, exists bool) + func (m *ChapterMutation) TitleCleared() bool + func (m *ChapterMutation) Type() string + func (m *ChapterMutation) Where(ps ...predicate.Chapter) + func (m ChapterMutation) Client() *Client + func (m ChapterMutation) Tx() (*Tx, error) + type ChapterQuery struct + func (cq *ChapterQuery) All(ctx context.Context) ([]*Chapter, error) + func (cq *ChapterQuery) AllX(ctx context.Context) []*Chapter + func (cq *ChapterQuery) Clone() *ChapterQuery + func (cq *ChapterQuery) Count(ctx context.Context) (int, error) + func (cq *ChapterQuery) CountX(ctx context.Context) int + func (cq *ChapterQuery) Exist(ctx context.Context) (bool, error) + func (cq *ChapterQuery) ExistX(ctx context.Context) bool + func (cq *ChapterQuery) First(ctx context.Context) (*Chapter, error) + func (cq *ChapterQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *ChapterQuery) FirstIDX(ctx context.Context) int + func (cq *ChapterQuery) FirstX(ctx context.Context) *Chapter + func (cq *ChapterQuery) GroupBy(field string, fields ...string) *ChapterGroupBy + func (cq *ChapterQuery) IDs(ctx context.Context) ([]int, error) + func (cq *ChapterQuery) IDsX(ctx context.Context) []int + func (cq *ChapterQuery) Limit(limit int) *ChapterQuery + func (cq *ChapterQuery) Offset(offset int) *ChapterQuery + func (cq *ChapterQuery) Only(ctx context.Context) (*Chapter, error) + func (cq *ChapterQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *ChapterQuery) OnlyIDX(ctx context.Context) int + func (cq *ChapterQuery) OnlyX(ctx context.Context) *Chapter + func (cq *ChapterQuery) Order(o ...OrderFunc) *ChapterQuery + func (cq *ChapterQuery) QueryManga() *MangaQuery + func (cq *ChapterQuery) Select(fields ...string) *ChapterSelect + func (cq *ChapterQuery) Unique(unique bool) *ChapterQuery + func (cq *ChapterQuery) Where(ps ...predicate.Chapter) *ChapterQuery + func (cq *ChapterQuery) WithManga(opts ...func(*MangaQuery)) *ChapterQuery + type ChapterSelect struct + func (cs *ChapterSelect) Scan(ctx context.Context, v interface{}) error + func (s *ChapterSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *ChapterSelect) BoolX(ctx context.Context) bool + func (s *ChapterSelect) Bools(ctx context.Context) ([]bool, error) + func (s *ChapterSelect) BoolsX(ctx context.Context) []bool + func (s *ChapterSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *ChapterSelect) Float64X(ctx context.Context) float64 + func (s *ChapterSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *ChapterSelect) Float64sX(ctx context.Context) []float64 + func (s *ChapterSelect) Int(ctx context.Context) (_ int, err error) + func (s *ChapterSelect) IntX(ctx context.Context) int + func (s *ChapterSelect) Ints(ctx context.Context) ([]int, error) + func (s *ChapterSelect) IntsX(ctx context.Context) []int + func (s *ChapterSelect) ScanX(ctx context.Context, v interface{}) + func (s *ChapterSelect) String(ctx context.Context) (_ string, err error) + func (s *ChapterSelect) StringX(ctx context.Context) string + func (s *ChapterSelect) Strings(ctx context.Context) ([]string, error) + func (s *ChapterSelect) StringsX(ctx context.Context) []string + type ChapterUpdate struct + func (cu *ChapterUpdate) ClearCreatedOn() *ChapterUpdate + func (cu *ChapterUpdate) ClearManga() *ChapterUpdate + func (cu *ChapterUpdate) ClearTitle() *ChapterUpdate + func (cu *ChapterUpdate) Exec(ctx context.Context) error + func (cu *ChapterUpdate) ExecX(ctx context.Context) + func (cu *ChapterUpdate) Mutation() *ChapterMutation + func (cu *ChapterUpdate) Save(ctx context.Context) (int, error) + func (cu *ChapterUpdate) SaveX(ctx context.Context) int + func (cu *ChapterUpdate) SetChapterID(s string) *ChapterUpdate + func (cu *ChapterUpdate) SetCreatedOn(t time.Time) *ChapterUpdate + func (cu *ChapterUpdate) SetManga(m *Manga) *ChapterUpdate + func (cu *ChapterUpdate) SetMangaID(id int) *ChapterUpdate + func (cu *ChapterUpdate) SetNillableCreatedOn(t *time.Time) *ChapterUpdate + func (cu *ChapterUpdate) SetNillableMangaID(id *int) *ChapterUpdate + func (cu *ChapterUpdate) SetNillableTitle(s *string) *ChapterUpdate + func (cu *ChapterUpdate) SetNum(s string) *ChapterUpdate + func (cu *ChapterUpdate) SetRegisteredOn(t time.Time) *ChapterUpdate + func (cu *ChapterUpdate) SetTitle(s string) *ChapterUpdate + func (cu *ChapterUpdate) Where(ps ...predicate.Chapter) *ChapterUpdate + type ChapterUpdateOne struct + func (cuo *ChapterUpdateOne) ClearCreatedOn() *ChapterUpdateOne + func (cuo *ChapterUpdateOne) ClearManga() *ChapterUpdateOne + func (cuo *ChapterUpdateOne) ClearTitle() *ChapterUpdateOne + func (cuo *ChapterUpdateOne) Exec(ctx context.Context) error + func (cuo *ChapterUpdateOne) ExecX(ctx context.Context) + func (cuo *ChapterUpdateOne) Mutation() *ChapterMutation + func (cuo *ChapterUpdateOne) Save(ctx context.Context) (*Chapter, error) + func (cuo *ChapterUpdateOne) SaveX(ctx context.Context) *Chapter + func (cuo *ChapterUpdateOne) Select(field string, fields ...string) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetChapterID(s string) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetCreatedOn(t time.Time) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetManga(m *Manga) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetMangaID(id int) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetNillableCreatedOn(t *time.Time) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetNillableMangaID(id *int) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetNillableTitle(s *string) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetNum(s string) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetRegisteredOn(t time.Time) *ChapterUpdateOne + func (cuo *ChapterUpdateOne) SetTitle(s string) *ChapterUpdateOne + type Chapters []*Chapter + type Client struct + Chapter *ChapterClient + Manga *MangaClient + Schema *migrate.Schema + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type Manga struct + Edges MangaEdges + FilteredGroups []string + ID int + MangaID string + Mapping string + RegisteredOn time.Time + Source string + Title string + func (m *Manga) QueryChapters() *ChapterQuery + func (m *Manga) String() string + func (m *Manga) Unwrap() *Manga + func (m *Manga) Update() *MangaUpdateOne + type MangaClient struct + func NewMangaClient(c config) *MangaClient + func (c *MangaClient) Create() *MangaCreate + func (c *MangaClient) CreateBulk(builders ...*MangaCreate) *MangaCreateBulk + func (c *MangaClient) Delete() *MangaDelete + func (c *MangaClient) DeleteOne(m *Manga) *MangaDeleteOne + func (c *MangaClient) DeleteOneID(id int) *MangaDeleteOne + func (c *MangaClient) Get(ctx context.Context, id int) (*Manga, error) + func (c *MangaClient) GetX(ctx context.Context, id int) *Manga + func (c *MangaClient) Hooks() []Hook + func (c *MangaClient) Query() *MangaQuery + func (c *MangaClient) QueryChapters(m *Manga) *ChapterQuery + func (c *MangaClient) Update() *MangaUpdate + func (c *MangaClient) UpdateOne(m *Manga) *MangaUpdateOne + func (c *MangaClient) UpdateOneID(id int) *MangaUpdateOne + func (c *MangaClient) Use(hooks ...Hook) + type MangaCreate struct + func (mc *MangaCreate) AddChapterIDs(ids ...int) *MangaCreate + func (mc *MangaCreate) AddChapters(c ...*Chapter) *MangaCreate + func (mc *MangaCreate) Exec(ctx context.Context) error + func (mc *MangaCreate) ExecX(ctx context.Context) + func (mc *MangaCreate) Mutation() *MangaMutation + func (mc *MangaCreate) Save(ctx context.Context) (*Manga, error) + func (mc *MangaCreate) SaveX(ctx context.Context) *Manga + func (mc *MangaCreate) SetFilteredGroups(s []string) *MangaCreate + func (mc *MangaCreate) SetMangaID(s string) *MangaCreate + func (mc *MangaCreate) SetMapping(s string) *MangaCreate + func (mc *MangaCreate) SetRegisteredOn(t time.Time) *MangaCreate + func (mc *MangaCreate) SetSource(s string) *MangaCreate + func (mc *MangaCreate) SetTitle(s string) *MangaCreate + type MangaCreateBulk struct + func (mcb *MangaCreateBulk) Exec(ctx context.Context) error + func (mcb *MangaCreateBulk) ExecX(ctx context.Context) + func (mcb *MangaCreateBulk) Save(ctx context.Context) ([]*Manga, error) + func (mcb *MangaCreateBulk) SaveX(ctx context.Context) []*Manga + type MangaDelete struct + func (md *MangaDelete) Exec(ctx context.Context) (int, error) + func (md *MangaDelete) ExecX(ctx context.Context) int + func (md *MangaDelete) Where(ps ...predicate.Manga) *MangaDelete + type MangaDeleteOne struct + func (mdo *MangaDeleteOne) Exec(ctx context.Context) error + func (mdo *MangaDeleteOne) ExecX(ctx context.Context) + type MangaEdges struct + Chapters []*Chapter + func (e MangaEdges) ChaptersOrErr() ([]*Chapter, error) + type MangaGroupBy struct + func (mgb *MangaGroupBy) Aggregate(fns ...AggregateFunc) *MangaGroupBy + func (mgb *MangaGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *MangaGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *MangaGroupBy) BoolX(ctx context.Context) bool + func (s *MangaGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *MangaGroupBy) BoolsX(ctx context.Context) []bool + func (s *MangaGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *MangaGroupBy) Float64X(ctx context.Context) float64 + func (s *MangaGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *MangaGroupBy) Float64sX(ctx context.Context) []float64 + func (s *MangaGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *MangaGroupBy) IntX(ctx context.Context) int + func (s *MangaGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *MangaGroupBy) IntsX(ctx context.Context) []int + func (s *MangaGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *MangaGroupBy) String(ctx context.Context) (_ string, err error) + func (s *MangaGroupBy) StringX(ctx context.Context) string + func (s *MangaGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *MangaGroupBy) StringsX(ctx context.Context) []string + type MangaMutation struct + func (m *MangaMutation) AddChapterIDs(ids ...int) + func (m *MangaMutation) AddField(name string, value ent.Value) error + func (m *MangaMutation) AddedEdges() []string + func (m *MangaMutation) AddedField(name string) (ent.Value, bool) + func (m *MangaMutation) AddedFields() []string + func (m *MangaMutation) AddedIDs(name string) []ent.Value + func (m *MangaMutation) ChaptersCleared() bool + func (m *MangaMutation) ChaptersIDs() (ids []int) + func (m *MangaMutation) ClearChapters() + func (m *MangaMutation) ClearEdge(name string) error + func (m *MangaMutation) ClearField(name string) error + func (m *MangaMutation) ClearedEdges() []string + func (m *MangaMutation) ClearedFields() []string + func (m *MangaMutation) EdgeCleared(name string) bool + func (m *MangaMutation) Field(name string) (ent.Value, bool) + func (m *MangaMutation) FieldCleared(name string) bool + func (m *MangaMutation) Fields() []string + func (m *MangaMutation) FilteredGroups() (r []string, exists bool) + func (m *MangaMutation) ID() (id int, exists bool) + func (m *MangaMutation) IDs(ctx context.Context) ([]int, error) + func (m *MangaMutation) MangaID() (r string, exists bool) + func (m *MangaMutation) Mapping() (r string, exists bool) + func (m *MangaMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *MangaMutation) OldFilteredGroups(ctx context.Context) (v []string, err error) + func (m *MangaMutation) OldMangaID(ctx context.Context) (v string, err error) + func (m *MangaMutation) OldMapping(ctx context.Context) (v string, err error) + func (m *MangaMutation) OldRegisteredOn(ctx context.Context) (v time.Time, err error) + func (m *MangaMutation) OldSource(ctx context.Context) (v string, err error) + func (m *MangaMutation) OldTitle(ctx context.Context) (v string, err error) + func (m *MangaMutation) Op() Op + func (m *MangaMutation) RegisteredOn() (r time.Time, exists bool) + func (m *MangaMutation) RemoveChapterIDs(ids ...int) + func (m *MangaMutation) RemovedChaptersIDs() (ids []int) + func (m *MangaMutation) RemovedEdges() []string + func (m *MangaMutation) RemovedIDs(name string) []ent.Value + func (m *MangaMutation) ResetChapters() + func (m *MangaMutation) ResetEdge(name string) error + func (m *MangaMutation) ResetField(name string) error + func (m *MangaMutation) ResetFilteredGroups() + func (m *MangaMutation) ResetMangaID() + func (m *MangaMutation) ResetMapping() + func (m *MangaMutation) ResetRegisteredOn() + func (m *MangaMutation) ResetSource() + func (m *MangaMutation) ResetTitle() + func (m *MangaMutation) SetField(name string, value ent.Value) error + func (m *MangaMutation) SetFilteredGroups(s []string) + func (m *MangaMutation) SetMangaID(s string) + func (m *MangaMutation) SetMapping(s string) + func (m *MangaMutation) SetRegisteredOn(t time.Time) + func (m *MangaMutation) SetSource(s string) + func (m *MangaMutation) SetTitle(s string) + func (m *MangaMutation) Source() (r string, exists bool) + func (m *MangaMutation) Title() (r string, exists bool) + func (m *MangaMutation) Type() string + func (m *MangaMutation) Where(ps ...predicate.Manga) + func (m MangaMutation) Client() *Client + func (m MangaMutation) Tx() (*Tx, error) + type MangaQuery struct + func (mq *MangaQuery) All(ctx context.Context) ([]*Manga, error) + func (mq *MangaQuery) AllX(ctx context.Context) []*Manga + func (mq *MangaQuery) Clone() *MangaQuery + func (mq *MangaQuery) Count(ctx context.Context) (int, error) + func (mq *MangaQuery) CountX(ctx context.Context) int + func (mq *MangaQuery) Exist(ctx context.Context) (bool, error) + func (mq *MangaQuery) ExistX(ctx context.Context) bool + func (mq *MangaQuery) First(ctx context.Context) (*Manga, error) + func (mq *MangaQuery) FirstID(ctx context.Context) (id int, err error) + func (mq *MangaQuery) FirstIDX(ctx context.Context) int + func (mq *MangaQuery) FirstX(ctx context.Context) *Manga + func (mq *MangaQuery) GroupBy(field string, fields ...string) *MangaGroupBy + func (mq *MangaQuery) IDs(ctx context.Context) ([]int, error) + func (mq *MangaQuery) IDsX(ctx context.Context) []int + func (mq *MangaQuery) Limit(limit int) *MangaQuery + func (mq *MangaQuery) Offset(offset int) *MangaQuery + func (mq *MangaQuery) Only(ctx context.Context) (*Manga, error) + func (mq *MangaQuery) OnlyID(ctx context.Context) (id int, err error) + func (mq *MangaQuery) OnlyIDX(ctx context.Context) int + func (mq *MangaQuery) OnlyX(ctx context.Context) *Manga + func (mq *MangaQuery) Order(o ...OrderFunc) *MangaQuery + func (mq *MangaQuery) QueryChapters() *ChapterQuery + func (mq *MangaQuery) Select(fields ...string) *MangaSelect + func (mq *MangaQuery) Unique(unique bool) *MangaQuery + func (mq *MangaQuery) Where(ps ...predicate.Manga) *MangaQuery + func (mq *MangaQuery) WithChapters(opts ...func(*ChapterQuery)) *MangaQuery + type MangaSelect struct + func (ms *MangaSelect) Scan(ctx context.Context, v interface{}) error + func (s *MangaSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *MangaSelect) BoolX(ctx context.Context) bool + func (s *MangaSelect) Bools(ctx context.Context) ([]bool, error) + func (s *MangaSelect) BoolsX(ctx context.Context) []bool + func (s *MangaSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *MangaSelect) Float64X(ctx context.Context) float64 + func (s *MangaSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *MangaSelect) Float64sX(ctx context.Context) []float64 + func (s *MangaSelect) Int(ctx context.Context) (_ int, err error) + func (s *MangaSelect) IntX(ctx context.Context) int + func (s *MangaSelect) Ints(ctx context.Context) ([]int, error) + func (s *MangaSelect) IntsX(ctx context.Context) []int + func (s *MangaSelect) ScanX(ctx context.Context, v interface{}) + func (s *MangaSelect) String(ctx context.Context) (_ string, err error) + func (s *MangaSelect) StringX(ctx context.Context) string + func (s *MangaSelect) Strings(ctx context.Context) ([]string, error) + func (s *MangaSelect) StringsX(ctx context.Context) []string + type MangaUpdate struct + func (mu *MangaUpdate) AddChapterIDs(ids ...int) *MangaUpdate + func (mu *MangaUpdate) AddChapters(c ...*Chapter) *MangaUpdate + func (mu *MangaUpdate) ClearChapters() *MangaUpdate + func (mu *MangaUpdate) Exec(ctx context.Context) error + func (mu *MangaUpdate) ExecX(ctx context.Context) + func (mu *MangaUpdate) Mutation() *MangaMutation + func (mu *MangaUpdate) RemoveChapterIDs(ids ...int) *MangaUpdate + func (mu *MangaUpdate) RemoveChapters(c ...*Chapter) *MangaUpdate + func (mu *MangaUpdate) Save(ctx context.Context) (int, error) + func (mu *MangaUpdate) SaveX(ctx context.Context) int + func (mu *MangaUpdate) SetFilteredGroups(s []string) *MangaUpdate + func (mu *MangaUpdate) SetMangaID(s string) *MangaUpdate + func (mu *MangaUpdate) SetMapping(s string) *MangaUpdate + func (mu *MangaUpdate) SetRegisteredOn(t time.Time) *MangaUpdate + func (mu *MangaUpdate) SetSource(s string) *MangaUpdate + func (mu *MangaUpdate) SetTitle(s string) *MangaUpdate + func (mu *MangaUpdate) Where(ps ...predicate.Manga) *MangaUpdate + type MangaUpdateOne struct + func (muo *MangaUpdateOne) AddChapterIDs(ids ...int) *MangaUpdateOne + func (muo *MangaUpdateOne) AddChapters(c ...*Chapter) *MangaUpdateOne + func (muo *MangaUpdateOne) ClearChapters() *MangaUpdateOne + func (muo *MangaUpdateOne) Exec(ctx context.Context) error + func (muo *MangaUpdateOne) ExecX(ctx context.Context) + func (muo *MangaUpdateOne) Mutation() *MangaMutation + func (muo *MangaUpdateOne) RemoveChapterIDs(ids ...int) *MangaUpdateOne + func (muo *MangaUpdateOne) RemoveChapters(c ...*Chapter) *MangaUpdateOne + func (muo *MangaUpdateOne) Save(ctx context.Context) (*Manga, error) + func (muo *MangaUpdateOne) SaveX(ctx context.Context) *Manga + func (muo *MangaUpdateOne) Select(field string, fields ...string) *MangaUpdateOne + func (muo *MangaUpdateOne) SetFilteredGroups(s []string) *MangaUpdateOne + func (muo *MangaUpdateOne) SetMangaID(s string) *MangaUpdateOne + func (muo *MangaUpdateOne) SetMapping(s string) *MangaUpdateOne + func (muo *MangaUpdateOne) SetRegisteredOn(t time.Time) *MangaUpdateOne + func (muo *MangaUpdateOne) SetSource(s string) *MangaUpdateOne + func (muo *MangaUpdateOne) SetTitle(s string) *MangaUpdateOne + type Mangas []*Manga + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Query = ent.Query + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Tx struct + Chapter *ChapterClient + Manga *MangaClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value