Versions in this module Expand all Collapse all v0 v0.4.3 Apr 14, 2022 v0.4.2 Apr 14, 2022 v0.4.1 Apr 13, 2022 v0.4.0 Apr 13, 2022 v0.3.3 Apr 13, 2022 v0.3.2 Apr 13, 2022 v0.3.1 Apr 13, 2022 v0.2.5 Apr 14, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCategory + const TypeTodo + const TypeUser + var CategoryOrderFieldDuration = &CategoryOrderField + var CategoryOrderFieldText = &CategoryOrderField + var DefaultCategoryOrder = &CategoryOrder + var DefaultMasterUserOrder = &MasterUserOrder + var DefaultTodoOrder = &TodoOrder + var TodoOrderFieldCreatedAt = &TodoOrderField + var TodoOrderFieldPriority = &TodoOrderField + var TodoOrderFieldStatus = &TodoOrderField + var TodoOrderFieldText = &TodoOrderField + var TodoOrderFieldVisibilityStatus = &TodoOrderField + 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 + func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error) + 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 Categories []*Category + type Category struct + Config *schematype.CategoryConfig + Count uint64 + Duration time.Duration + Edges CategoryEdges + ID int + Status category.Status + Strings []string + Text string + UUIDA *uuid.UUID + func (Category) IsEntity() + func (c *Category) Node(ctx context.Context) (node *Node, err error) + func (c *Category) QueryTodos() *TodoQuery + func (c *Category) String() string + func (c *Category) ToEdge(order *CategoryOrder) *CategoryEdge + func (c *Category) Todos(ctx context.Context) ([]*Todo, error) + func (c *Category) Unwrap() *Category + func (c *Category) Update() *CategoryUpdateOne + type CategoryClient struct + func NewCategoryClient(c config) *CategoryClient + func (c *CategoryClient) Create() *CategoryCreate + func (c *CategoryClient) CreateBulk(builders ...*CategoryCreate) *CategoryCreateBulk + func (c *CategoryClient) Delete() *CategoryDelete + func (c *CategoryClient) DeleteOne(ca *Category) *CategoryDeleteOne + func (c *CategoryClient) DeleteOneID(id int) *CategoryDeleteOne + func (c *CategoryClient) Get(ctx context.Context, id int) (*Category, error) + func (c *CategoryClient) GetX(ctx context.Context, id int) *Category + func (c *CategoryClient) Hooks() []Hook + func (c *CategoryClient) Query() *CategoryQuery + func (c *CategoryClient) QueryTodos(ca *Category) *TodoQuery + func (c *CategoryClient) Update() *CategoryUpdate + func (c *CategoryClient) UpdateOne(ca *Category) *CategoryUpdateOne + func (c *CategoryClient) UpdateOneID(id int) *CategoryUpdateOne + func (c *CategoryClient) Use(hooks ...Hook) + type CategoryConnection struct + Edges []*CategoryEdge + PageInfo PageInfo + TotalCount int + type CategoryCreate struct + func (cc *CategoryCreate) AddTodoIDs(ids ...int) *CategoryCreate + func (cc *CategoryCreate) AddTodos(t ...*Todo) *CategoryCreate + func (cc *CategoryCreate) Exec(ctx context.Context) error + func (cc *CategoryCreate) ExecX(ctx context.Context) + func (cc *CategoryCreate) Mutation() *CategoryMutation + func (cc *CategoryCreate) Save(ctx context.Context) (*Category, error) + func (cc *CategoryCreate) SaveX(ctx context.Context) *Category + func (cc *CategoryCreate) SetConfig(sc *schematype.CategoryConfig) *CategoryCreate + func (cc *CategoryCreate) SetCount(u uint64) *CategoryCreate + func (cc *CategoryCreate) SetDuration(t time.Duration) *CategoryCreate + func (cc *CategoryCreate) SetNillableCount(u *uint64) *CategoryCreate + func (cc *CategoryCreate) SetNillableDuration(t *time.Duration) *CategoryCreate + func (cc *CategoryCreate) SetNillableUUIDA(u *uuid.UUID) *CategoryCreate + func (cc *CategoryCreate) SetStatus(c category.Status) *CategoryCreate + func (cc *CategoryCreate) SetStrings(s []string) *CategoryCreate + func (cc *CategoryCreate) SetText(s string) *CategoryCreate + func (cc *CategoryCreate) SetUUIDA(u uuid.UUID) *CategoryCreate + type CategoryCreateBulk struct + func (ccb *CategoryCreateBulk) Exec(ctx context.Context) error + func (ccb *CategoryCreateBulk) ExecX(ctx context.Context) + func (ccb *CategoryCreateBulk) Save(ctx context.Context) ([]*Category, error) + func (ccb *CategoryCreateBulk) SaveX(ctx context.Context) []*Category + type CategoryDelete struct + func (cd *CategoryDelete) Exec(ctx context.Context) (int, error) + func (cd *CategoryDelete) ExecX(ctx context.Context) int + func (cd *CategoryDelete) Where(ps ...predicate.Category) *CategoryDelete + type CategoryDeleteOne struct + func (cdo *CategoryDeleteOne) Exec(ctx context.Context) error + func (cdo *CategoryDeleteOne) ExecX(ctx context.Context) + type CategoryEdge struct + Cursor Cursor + Node *Category + type CategoryEdges struct + Todos []*Todo + func (e CategoryEdges) TodosOrErr() ([]*Todo, error) + type CategoryGroupBy struct + func (cgb *CategoryGroupBy) Aggregate(fns ...AggregateFunc) *CategoryGroupBy + func (cgb *CategoryGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *CategoryGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *CategoryGroupBy) BoolX(ctx context.Context) bool + func (s *CategoryGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *CategoryGroupBy) BoolsX(ctx context.Context) []bool + func (s *CategoryGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *CategoryGroupBy) Float64X(ctx context.Context) float64 + func (s *CategoryGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *CategoryGroupBy) Float64sX(ctx context.Context) []float64 + func (s *CategoryGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *CategoryGroupBy) IntX(ctx context.Context) int + func (s *CategoryGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *CategoryGroupBy) IntsX(ctx context.Context) []int + func (s *CategoryGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *CategoryGroupBy) String(ctx context.Context) (_ string, err error) + func (s *CategoryGroupBy) StringX(ctx context.Context) string + func (s *CategoryGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *CategoryGroupBy) StringsX(ctx context.Context) []string + type CategoryMutation struct + func (m *CategoryMutation) AddCount(u int64) + func (m *CategoryMutation) AddDuration(t time.Duration) + func (m *CategoryMutation) AddField(name string, value ent.Value) error + func (m *CategoryMutation) AddTodoIDs(ids ...int) + func (m *CategoryMutation) AddedCount() (r int64, exists bool) + func (m *CategoryMutation) AddedDuration() (r time.Duration, exists bool) + func (m *CategoryMutation) AddedEdges() []string + func (m *CategoryMutation) AddedField(name string) (ent.Value, bool) + func (m *CategoryMutation) AddedFields() []string + func (m *CategoryMutation) AddedIDs(name string) []ent.Value + func (m *CategoryMutation) ClearConfig() + func (m *CategoryMutation) ClearCount() + func (m *CategoryMutation) ClearDuration() + func (m *CategoryMutation) ClearEdge(name string) error + func (m *CategoryMutation) ClearField(name string) error + func (m *CategoryMutation) ClearStrings() + func (m *CategoryMutation) ClearTodos() + func (m *CategoryMutation) ClearUUIDA() + func (m *CategoryMutation) ClearedEdges() []string + func (m *CategoryMutation) ClearedFields() []string + func (m *CategoryMutation) Config() (r *schematype.CategoryConfig, exists bool) + func (m *CategoryMutation) ConfigCleared() bool + func (m *CategoryMutation) Count() (r uint64, exists bool) + func (m *CategoryMutation) CountCleared() bool + func (m *CategoryMutation) Duration() (r time.Duration, exists bool) + func (m *CategoryMutation) DurationCleared() bool + func (m *CategoryMutation) EdgeCleared(name string) bool + func (m *CategoryMutation) Field(name string) (ent.Value, bool) + func (m *CategoryMutation) FieldCleared(name string) bool + func (m *CategoryMutation) Fields() []string + func (m *CategoryMutation) ID() (id int, exists bool) + func (m *CategoryMutation) IDs(ctx context.Context) ([]int, error) + func (m *CategoryMutation) OldConfig(ctx context.Context) (v *schematype.CategoryConfig, err error) + func (m *CategoryMutation) OldCount(ctx context.Context) (v uint64, err error) + func (m *CategoryMutation) OldDuration(ctx context.Context) (v time.Duration, err error) + func (m *CategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *CategoryMutation) OldStatus(ctx context.Context) (v category.Status, err error) + func (m *CategoryMutation) OldStrings(ctx context.Context) (v []string, err error) + func (m *CategoryMutation) OldText(ctx context.Context) (v string, err error) + func (m *CategoryMutation) OldUUIDA(ctx context.Context) (v *uuid.UUID, err error) + func (m *CategoryMutation) Op() Op + func (m *CategoryMutation) RemoveTodoIDs(ids ...int) + func (m *CategoryMutation) RemovedEdges() []string + func (m *CategoryMutation) RemovedIDs(name string) []ent.Value + func (m *CategoryMutation) RemovedTodosIDs() (ids []int) + func (m *CategoryMutation) ResetConfig() + func (m *CategoryMutation) ResetCount() + func (m *CategoryMutation) ResetDuration() + func (m *CategoryMutation) ResetEdge(name string) error + func (m *CategoryMutation) ResetField(name string) error + func (m *CategoryMutation) ResetStatus() + func (m *CategoryMutation) ResetStrings() + func (m *CategoryMutation) ResetText() + func (m *CategoryMutation) ResetTodos() + func (m *CategoryMutation) ResetUUIDA() + func (m *CategoryMutation) SetConfig(sc *schematype.CategoryConfig) + func (m *CategoryMutation) SetCount(u uint64) + func (m *CategoryMutation) SetDuration(t time.Duration) + func (m *CategoryMutation) SetField(name string, value ent.Value) error + func (m *CategoryMutation) SetStatus(c category.Status) + func (m *CategoryMutation) SetStrings(s []string) + func (m *CategoryMutation) SetText(s string) + func (m *CategoryMutation) SetUUIDA(u uuid.UUID) + func (m *CategoryMutation) Status() (r category.Status, exists bool) + func (m *CategoryMutation) Strings() (r []string, exists bool) + func (m *CategoryMutation) StringsCleared() bool + func (m *CategoryMutation) Text() (r string, exists bool) + func (m *CategoryMutation) TodosCleared() bool + func (m *CategoryMutation) TodosIDs() (ids []int) + func (m *CategoryMutation) Type() string + func (m *CategoryMutation) UUIDA() (r uuid.UUID, exists bool) + func (m *CategoryMutation) UUIDACleared() bool + func (m *CategoryMutation) Where(ps ...predicate.Category) + func (m CategoryMutation) Client() *Client + func (m CategoryMutation) Tx() (*Tx, error) + type CategoryOrder struct + Direction OrderDirection + Field *CategoryOrderField + type CategoryOrderField struct + func (f *CategoryOrderField) UnmarshalGQL(v interface{}) error + func (f CategoryOrderField) MarshalGQL(w io.Writer) + func (f CategoryOrderField) String() string + type CategoryPaginateOption func(*categoryPager) error + func WithCategoryFilter(filter func(*CategoryQuery) (*CategoryQuery, error)) CategoryPaginateOption + func WithCategoryOrder(order *CategoryOrder) CategoryPaginateOption + type CategoryQuery struct + func (c *CategoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*CategoryQuery, error) + func (c *CategoryQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*CategoryConnection, error) + func (cq *CategoryQuery) All(ctx context.Context) ([]*Category, error) + func (cq *CategoryQuery) AllX(ctx context.Context) []*Category + func (cq *CategoryQuery) Clone() *CategoryQuery + func (cq *CategoryQuery) Count(ctx context.Context) (int, error) + func (cq *CategoryQuery) CountX(ctx context.Context) int + func (cq *CategoryQuery) Exist(ctx context.Context) (bool, error) + func (cq *CategoryQuery) ExistX(ctx context.Context) bool + func (cq *CategoryQuery) First(ctx context.Context) (*Category, error) + func (cq *CategoryQuery) FirstID(ctx context.Context) (id int, err error) + func (cq *CategoryQuery) FirstIDX(ctx context.Context) int + func (cq *CategoryQuery) FirstX(ctx context.Context) *Category + func (cq *CategoryQuery) GroupBy(field string, fields ...string) *CategoryGroupBy + func (cq *CategoryQuery) IDs(ctx context.Context) ([]int, error) + func (cq *CategoryQuery) IDsX(ctx context.Context) []int + func (cq *CategoryQuery) Limit(limit int) *CategoryQuery + func (cq *CategoryQuery) Offset(offset int) *CategoryQuery + func (cq *CategoryQuery) Only(ctx context.Context) (*Category, error) + func (cq *CategoryQuery) OnlyID(ctx context.Context) (id int, err error) + func (cq *CategoryQuery) OnlyIDX(ctx context.Context) int + func (cq *CategoryQuery) OnlyX(ctx context.Context) *Category + func (cq *CategoryQuery) Order(o ...OrderFunc) *CategoryQuery + func (cq *CategoryQuery) QueryTodos() *TodoQuery + func (cq *CategoryQuery) Select(fields ...string) *CategorySelect + func (cq *CategoryQuery) Unique(unique bool) *CategoryQuery + func (cq *CategoryQuery) Where(ps ...predicate.Category) *CategoryQuery + func (cq *CategoryQuery) WithTodos(opts ...func(*TodoQuery)) *CategoryQuery + type CategorySelect struct + func (cs *CategorySelect) Scan(ctx context.Context, v interface{}) error + func (s *CategorySelect) Bool(ctx context.Context) (_ bool, err error) + func (s *CategorySelect) BoolX(ctx context.Context) bool + func (s *CategorySelect) Bools(ctx context.Context) ([]bool, error) + func (s *CategorySelect) BoolsX(ctx context.Context) []bool + func (s *CategorySelect) Float64(ctx context.Context) (_ float64, err error) + func (s *CategorySelect) Float64X(ctx context.Context) float64 + func (s *CategorySelect) Float64s(ctx context.Context) ([]float64, error) + func (s *CategorySelect) Float64sX(ctx context.Context) []float64 + func (s *CategorySelect) Int(ctx context.Context) (_ int, err error) + func (s *CategorySelect) IntX(ctx context.Context) int + func (s *CategorySelect) Ints(ctx context.Context) ([]int, error) + func (s *CategorySelect) IntsX(ctx context.Context) []int + func (s *CategorySelect) ScanX(ctx context.Context, v interface{}) + func (s *CategorySelect) String(ctx context.Context) (_ string, err error) + func (s *CategorySelect) StringX(ctx context.Context) string + func (s *CategorySelect) Strings(ctx context.Context) ([]string, error) + func (s *CategorySelect) StringsX(ctx context.Context) []string + type CategoryUpdate struct + func (cu *CategoryUpdate) AddCount(u int64) *CategoryUpdate + func (cu *CategoryUpdate) AddDuration(t time.Duration) *CategoryUpdate + func (cu *CategoryUpdate) AddTodoIDs(ids ...int) *CategoryUpdate + func (cu *CategoryUpdate) AddTodos(t ...*Todo) *CategoryUpdate + func (cu *CategoryUpdate) ClearConfig() *CategoryUpdate + func (cu *CategoryUpdate) ClearCount() *CategoryUpdate + func (cu *CategoryUpdate) ClearDuration() *CategoryUpdate + func (cu *CategoryUpdate) ClearStrings() *CategoryUpdate + func (cu *CategoryUpdate) ClearTodos() *CategoryUpdate + func (cu *CategoryUpdate) ClearUUIDA() *CategoryUpdate + func (cu *CategoryUpdate) Exec(ctx context.Context) error + func (cu *CategoryUpdate) ExecX(ctx context.Context) + func (cu *CategoryUpdate) Mutation() *CategoryMutation + func (cu *CategoryUpdate) RemoveTodoIDs(ids ...int) *CategoryUpdate + func (cu *CategoryUpdate) RemoveTodos(t ...*Todo) *CategoryUpdate + func (cu *CategoryUpdate) Save(ctx context.Context) (int, error) + func (cu *CategoryUpdate) SaveX(ctx context.Context) int + func (cu *CategoryUpdate) SetConfig(sc *schematype.CategoryConfig) *CategoryUpdate + func (cu *CategoryUpdate) SetCount(u uint64) *CategoryUpdate + func (cu *CategoryUpdate) SetDuration(t time.Duration) *CategoryUpdate + func (cu *CategoryUpdate) SetNillableCount(u *uint64) *CategoryUpdate + func (cu *CategoryUpdate) SetNillableDuration(t *time.Duration) *CategoryUpdate + func (cu *CategoryUpdate) SetNillableUUIDA(u *uuid.UUID) *CategoryUpdate + func (cu *CategoryUpdate) SetStatus(c category.Status) *CategoryUpdate + func (cu *CategoryUpdate) SetStrings(s []string) *CategoryUpdate + func (cu *CategoryUpdate) SetText(s string) *CategoryUpdate + func (cu *CategoryUpdate) SetUUIDA(u uuid.UUID) *CategoryUpdate + func (cu *CategoryUpdate) Where(ps ...predicate.Category) *CategoryUpdate + type CategoryUpdateOne struct + func (cuo *CategoryUpdateOne) AddCount(u int64) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) AddDuration(t time.Duration) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) AddTodoIDs(ids ...int) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) AddTodos(t ...*Todo) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearConfig() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearCount() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearDuration() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearStrings() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearTodos() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) ClearUUIDA() *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Exec(ctx context.Context) error + func (cuo *CategoryUpdateOne) ExecX(ctx context.Context) + func (cuo *CategoryUpdateOne) Mutation() *CategoryMutation + func (cuo *CategoryUpdateOne) RemoveTodoIDs(ids ...int) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) RemoveTodos(t ...*Todo) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) Save(ctx context.Context) (*Category, error) + func (cuo *CategoryUpdateOne) SaveX(ctx context.Context) *Category + func (cuo *CategoryUpdateOne) Select(field string, fields ...string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetConfig(sc *schematype.CategoryConfig) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetCount(u uint64) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetDuration(t time.Duration) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetNillableCount(u *uint64) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetNillableDuration(t *time.Duration) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetNillableUUIDA(u *uuid.UUID) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetStatus(c category.Status) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetStrings(s []string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetText(s string) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetUUIDA(u uuid.UUID) *CategoryUpdateOne + type CategoryWhereInput struct + And []*CategoryWhereInput + Config *schematype.CategoryConfig + ConfigGT *schematype.CategoryConfig + ConfigGTE *schematype.CategoryConfig + ConfigIn []*schematype.CategoryConfig + ConfigIsNil bool + ConfigLT *schematype.CategoryConfig + ConfigLTE *schematype.CategoryConfig + ConfigNEQ *schematype.CategoryConfig + ConfigNotIn []*schematype.CategoryConfig + ConfigNotNil bool + Count *uint64 + CountGT *uint64 + CountGTE *uint64 + CountIn []uint64 + CountIsNil bool + CountLT *uint64 + CountLTE *uint64 + CountNEQ *uint64 + CountNotIn []uint64 + CountNotNil bool + Duration *time.Duration + DurationGT *time.Duration + DurationGTE *time.Duration + DurationIn []time.Duration + DurationIsNil bool + DurationLT *time.Duration + DurationLTE *time.Duration + DurationNEQ *time.Duration + DurationNotIn []time.Duration + DurationNotNil bool + HasTodos *bool + HasTodosWith []*TodoWhereInput + ID *int + IDGT *int + IDGTE *int + IDIn []int + IDLT *int + IDLTE *int + IDNEQ *int + IDNotIn []int + Not *CategoryWhereInput + Or []*CategoryWhereInput + Status *category.Status + StatusIn []category.Status + StatusNEQ *category.Status + StatusNotIn []category.Status + Text *string + TextContains *string + TextContainsFold *string + TextEqualFold *string + TextGT *string + TextGTE *string + TextHasPrefix *string + TextHasSuffix *string + TextIn []string + TextLT *string + TextLTE *string + TextNEQ *string + TextNotIn []string + UUIDA *uuid.UUID + UUIDAGT *uuid.UUID + UUIDAGTE *uuid.UUID + UUIDAIn []uuid.UUID + UUIDAIsNil bool + UUIDALT *uuid.UUID + UUIDALTE *uuid.UUID + UUIDANEQ *uuid.UUID + UUIDANotIn []uuid.UUID + UUIDANotNil bool + func (i *CategoryWhereInput) Filter(q *CategoryQuery) (*CategoryQuery, error) + func (i *CategoryWhereInput) P() (predicate.Category, error) + type Client struct + Category *CategoryClient + Schema *migrate.Schema + Todo *TodoClient + User *UserClient + 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) Node(ctx context.Context, id int) (*Node, error) + func (c *Client) Noder(ctx context.Context, id int, opts ...NodeOption) (_ Noder, err error) + func (c *Client) Noders(ctx context.Context, ids []int, opts ...NodeOption) ([]Noder, error) + func (c *Client) OpenTx(ctx context.Context) (context.Context, driver.Tx, error) + 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 Cursor struct + ID int + Value Value + func (c *Cursor) UnmarshalGQL(v interface{}) error + func (c Cursor) MarshalGQL(w io.Writer) + type Edge struct + IDs []int + Name string + Type string + type Field struct + Name string + Type string + Value string + type Hook = ent.Hook + type MasterUser = User + func (u *MasterUser) ToEdge(order *MasterUserOrder) *MasterUserEdge + type MasterUserConnection struct + Edges []*MasterUserEdge + PageInfo PageInfo + TotalCount int + type MasterUserEdge struct + Cursor Cursor + Node *MasterUser + type MasterUserOrder struct + Direction OrderDirection + Field *MasterUserOrderField + type MasterUserOrderField struct + type MasterUserPaginateOption func(*masteruserPager) error + func WithMasterUserFilter(filter func(*UserQuery) (*UserQuery, error)) MasterUserPaginateOption + func WithMasterUserOrder(order *MasterUserOrder) MasterUserPaginateOption + type MasterUserWhereInput struct + Age *int + AgeGT *int + AgeGTE *int + AgeIn []int + AgeLT *int + AgeLTE *int + AgeNEQ *int + AgeNotIn []int + Amount *schema.Amount + AmountGT *schema.Amount + AmountGTE *schema.Amount + AmountIn []schema.Amount + AmountLT *schema.Amount + AmountLTE *schema.Amount + AmountNEQ *schema.Amount + AmountNotIn []schema.Amount + And []*MasterUserWhereInput + ID *int + IDGT *int + IDGTE *int + IDIn []int + IDLT *int + IDLTE *int + IDNEQ *int + IDNotIn []int + Not *MasterUserWhereInput + NullableString *string + NullableStringContains *string + NullableStringContainsFold *string + NullableStringEqualFold *string + NullableStringGT *string + NullableStringGTE *string + NullableStringHasPrefix *string + NullableStringHasSuffix *string + NullableStringIn []string + NullableStringIsNil bool + NullableStringLT *string + NullableStringLTE *string + NullableStringNEQ *string + NullableStringNotIn []string + NullableStringNotNil bool + Or []*MasterUserWhereInput + Role *role.Role + RoleIn []role.Role + RoleNEQ *role.Role + RoleNotIn []role.Role + Username *string + UsernameContains *string + UsernameContainsFold *string + UsernameEqualFold *string + UsernameGT *string + UsernameGTE *string + UsernameHasPrefix *string + UsernameHasSuffix *string + UsernameIn []string + UsernameLT *string + UsernameLTE *string + UsernameNEQ *string + UsernameNotIn []string + func (i *MasterUserWhereInput) Filter(q *UserQuery) (*UserQuery, error) + func (i *MasterUserWhereInput) P() (predicate.User, error) + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type Node struct + Edges []*Edge + Fields []*Field + ID int + Type string + type NodeOption func(*nodeOptions) + func WithFixedNodeType(t string) NodeOption + func WithNodeType(f func(context.Context, int) (string, error)) NodeOption + type Noder interface + Node func(context.Context) (*Node, error) + 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 OrderDirection string + const OrderDirectionAsc + const OrderDirectionDesc + func (o *OrderDirection) UnmarshalGQL(val interface{}) error + func (o OrderDirection) MarshalGQL(w io.Writer) + func (o OrderDirection) String() string + func (o OrderDirection) Validate() error + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type PageInfo struct + EndCursor *Cursor + HasNextPage bool + HasPreviousPage bool + StartCursor *Cursor + 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 Todo struct + CreatedAt time.Time + Edges TodoEdges + ID int + Priority int + Status todo.Status + Text string + VisibilityStatus todo.VisibilityStatus + func (t *Todo) Children(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*TodoConnection, error) + func (t *Todo) Node(ctx context.Context) (node *Node, err error) + func (t *Todo) Parent(ctx context.Context) (*Todo, error) + func (t *Todo) QueryChildren() *TodoQuery + func (t *Todo) QueryParent() *TodoQuery + func (t *Todo) String() string + func (t *Todo) ToEdge(order *TodoOrder) *TodoEdge + func (t *Todo) Unwrap() *Todo + func (t *Todo) Update() *TodoUpdateOne + type TodoClient struct + func NewTodoClient(c config) *TodoClient + func (c *TodoClient) Create() *TodoCreate + func (c *TodoClient) CreateBulk(builders ...*TodoCreate) *TodoCreateBulk + func (c *TodoClient) Delete() *TodoDelete + func (c *TodoClient) DeleteOne(t *Todo) *TodoDeleteOne + func (c *TodoClient) DeleteOneID(id int) *TodoDeleteOne + func (c *TodoClient) Get(ctx context.Context, id int) (*Todo, error) + func (c *TodoClient) GetX(ctx context.Context, id int) *Todo + func (c *TodoClient) Hooks() []Hook + func (c *TodoClient) Query() *TodoQuery + func (c *TodoClient) QueryChildren(t *Todo) *TodoQuery + func (c *TodoClient) QueryParent(t *Todo) *TodoQuery + func (c *TodoClient) Update() *TodoUpdate + func (c *TodoClient) UpdateOne(t *Todo) *TodoUpdateOne + func (c *TodoClient) UpdateOneID(id int) *TodoUpdateOne + func (c *TodoClient) Use(hooks ...Hook) + type TodoConnection struct + Edges []*TodoEdge + PageInfo PageInfo + TotalCount int + type TodoCreate struct + func (tc *TodoCreate) AddChildIDs(ids ...int) *TodoCreate + func (tc *TodoCreate) AddChildren(t ...*Todo) *TodoCreate + func (tc *TodoCreate) Exec(ctx context.Context) error + func (tc *TodoCreate) ExecX(ctx context.Context) + func (tc *TodoCreate) Mutation() *TodoMutation + func (tc *TodoCreate) Save(ctx context.Context) (*Todo, error) + func (tc *TodoCreate) SaveX(ctx context.Context) *Todo + func (tc *TodoCreate) SetCreatedAt(t time.Time) *TodoCreate + func (tc *TodoCreate) SetNillableCreatedAt(t *time.Time) *TodoCreate + func (tc *TodoCreate) SetNillableParentID(id *int) *TodoCreate + func (tc *TodoCreate) SetNillablePriority(i *int) *TodoCreate + func (tc *TodoCreate) SetNillableVisibilityStatus(ts *todo.VisibilityStatus) *TodoCreate + func (tc *TodoCreate) SetParent(t *Todo) *TodoCreate + func (tc *TodoCreate) SetParentID(id int) *TodoCreate + func (tc *TodoCreate) SetPriority(i int) *TodoCreate + func (tc *TodoCreate) SetStatus(t todo.Status) *TodoCreate + func (tc *TodoCreate) SetText(s string) *TodoCreate + func (tc *TodoCreate) SetVisibilityStatus(ts todo.VisibilityStatus) *TodoCreate + type TodoCreateBulk struct + func (tcb *TodoCreateBulk) Exec(ctx context.Context) error + func (tcb *TodoCreateBulk) ExecX(ctx context.Context) + func (tcb *TodoCreateBulk) Save(ctx context.Context) ([]*Todo, error) + func (tcb *TodoCreateBulk) SaveX(ctx context.Context) []*Todo + type TodoDelete struct + func (td *TodoDelete) Exec(ctx context.Context) (int, error) + func (td *TodoDelete) ExecX(ctx context.Context) int + func (td *TodoDelete) Where(ps ...predicate.Todo) *TodoDelete + type TodoDeleteOne struct + func (tdo *TodoDeleteOne) Exec(ctx context.Context) error + func (tdo *TodoDeleteOne) ExecX(ctx context.Context) + type TodoEdge struct + Cursor Cursor + Node *Todo + type TodoEdges struct + Children []*Todo + Parent *Todo + func (e TodoEdges) ChildrenOrErr() ([]*Todo, error) + func (e TodoEdges) ParentOrErr() (*Todo, error) + type TodoGroupBy struct + func (s *TodoGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *TodoGroupBy) BoolX(ctx context.Context) bool + func (s *TodoGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *TodoGroupBy) BoolsX(ctx context.Context) []bool + func (s *TodoGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *TodoGroupBy) Float64X(ctx context.Context) float64 + func (s *TodoGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *TodoGroupBy) Float64sX(ctx context.Context) []float64 + func (s *TodoGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *TodoGroupBy) IntX(ctx context.Context) int + func (s *TodoGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *TodoGroupBy) IntsX(ctx context.Context) []int + func (s *TodoGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *TodoGroupBy) String(ctx context.Context) (_ string, err error) + func (s *TodoGroupBy) StringX(ctx context.Context) string + func (s *TodoGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *TodoGroupBy) StringsX(ctx context.Context) []string + func (tgb *TodoGroupBy) Aggregate(fns ...AggregateFunc) *TodoGroupBy + func (tgb *TodoGroupBy) Scan(ctx context.Context, v interface{}) error + type TodoMutation struct + func (m *TodoMutation) AddChildIDs(ids ...int) + func (m *TodoMutation) AddField(name string, value ent.Value) error + func (m *TodoMutation) AddPriority(i int) + func (m *TodoMutation) AddedEdges() []string + func (m *TodoMutation) AddedField(name string) (ent.Value, bool) + func (m *TodoMutation) AddedFields() []string + func (m *TodoMutation) AddedIDs(name string) []ent.Value + func (m *TodoMutation) AddedPriority() (r int, exists bool) + func (m *TodoMutation) ChildrenCleared() bool + func (m *TodoMutation) ChildrenIDs() (ids []int) + func (m *TodoMutation) ClearChildren() + func (m *TodoMutation) ClearEdge(name string) error + func (m *TodoMutation) ClearField(name string) error + func (m *TodoMutation) ClearParent() + func (m *TodoMutation) ClearedEdges() []string + func (m *TodoMutation) ClearedFields() []string + func (m *TodoMutation) CreatedAt() (r time.Time, exists bool) + func (m *TodoMutation) EdgeCleared(name string) bool + func (m *TodoMutation) Field(name string) (ent.Value, bool) + func (m *TodoMutation) FieldCleared(name string) bool + func (m *TodoMutation) Fields() []string + func (m *TodoMutation) ID() (id int, exists bool) + func (m *TodoMutation) IDs(ctx context.Context) ([]int, error) + func (m *TodoMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) + func (m *TodoMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *TodoMutation) OldPriority(ctx context.Context) (v int, err error) + func (m *TodoMutation) OldStatus(ctx context.Context) (v todo.Status, err error) + func (m *TodoMutation) OldText(ctx context.Context) (v string, err error) + func (m *TodoMutation) OldVisibilityStatus(ctx context.Context) (v todo.VisibilityStatus, err error) + func (m *TodoMutation) Op() Op + func (m *TodoMutation) ParentCleared() bool + func (m *TodoMutation) ParentID() (id int, exists bool) + func (m *TodoMutation) ParentIDs() (ids []int) + func (m *TodoMutation) Priority() (r int, exists bool) + func (m *TodoMutation) RemoveChildIDs(ids ...int) + func (m *TodoMutation) RemovedChildrenIDs() (ids []int) + func (m *TodoMutation) RemovedEdges() []string + func (m *TodoMutation) RemovedIDs(name string) []ent.Value + func (m *TodoMutation) ResetChildren() + func (m *TodoMutation) ResetCreatedAt() + func (m *TodoMutation) ResetEdge(name string) error + func (m *TodoMutation) ResetField(name string) error + func (m *TodoMutation) ResetParent() + func (m *TodoMutation) ResetPriority() + func (m *TodoMutation) ResetStatus() + func (m *TodoMutation) ResetText() + func (m *TodoMutation) ResetVisibilityStatus() + func (m *TodoMutation) SetCreatedAt(t time.Time) + func (m *TodoMutation) SetField(name string, value ent.Value) error + func (m *TodoMutation) SetParentID(id int) + func (m *TodoMutation) SetPriority(i int) + func (m *TodoMutation) SetStatus(t todo.Status) + func (m *TodoMutation) SetText(s string) + func (m *TodoMutation) SetVisibilityStatus(ts todo.VisibilityStatus) + func (m *TodoMutation) Status() (r todo.Status, exists bool) + func (m *TodoMutation) Text() (r string, exists bool) + func (m *TodoMutation) Type() string + func (m *TodoMutation) VisibilityStatus() (r todo.VisibilityStatus, exists bool) + func (m *TodoMutation) Where(ps ...predicate.Todo) + func (m TodoMutation) Client() *Client + func (m TodoMutation) Tx() (*Tx, error) + type TodoOrder struct + Direction OrderDirection + Field *TodoOrderField + type TodoOrderField struct + func (f *TodoOrderField) UnmarshalGQL(v interface{}) error + func (f TodoOrderField) MarshalGQL(w io.Writer) + func (f TodoOrderField) String() string + type TodoPaginateOption func(*todoPager) error + func WithTodoFilter(filter func(*TodoQuery) (*TodoQuery, error)) TodoPaginateOption + func WithTodoOrder(order *TodoOrder) TodoPaginateOption + type TodoQuery struct + func (t *TodoQuery) CollectFields(ctx context.Context, satisfies ...string) (*TodoQuery, error) + func (t *TodoQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*TodoConnection, error) + func (tq *TodoQuery) All(ctx context.Context) ([]*Todo, error) + func (tq *TodoQuery) AllX(ctx context.Context) []*Todo + func (tq *TodoQuery) Clone() *TodoQuery + func (tq *TodoQuery) Count(ctx context.Context) (int, error) + func (tq *TodoQuery) CountX(ctx context.Context) int + func (tq *TodoQuery) Exist(ctx context.Context) (bool, error) + func (tq *TodoQuery) ExistX(ctx context.Context) bool + func (tq *TodoQuery) First(ctx context.Context) (*Todo, error) + func (tq *TodoQuery) FirstID(ctx context.Context) (id int, err error) + func (tq *TodoQuery) FirstIDX(ctx context.Context) int + func (tq *TodoQuery) FirstX(ctx context.Context) *Todo + func (tq *TodoQuery) GroupBy(field string, fields ...string) *TodoGroupBy + func (tq *TodoQuery) IDs(ctx context.Context) ([]int, error) + func (tq *TodoQuery) IDsX(ctx context.Context) []int + func (tq *TodoQuery) Limit(limit int) *TodoQuery + func (tq *TodoQuery) Offset(offset int) *TodoQuery + func (tq *TodoQuery) Only(ctx context.Context) (*Todo, error) + func (tq *TodoQuery) OnlyID(ctx context.Context) (id int, err error) + func (tq *TodoQuery) OnlyIDX(ctx context.Context) int + func (tq *TodoQuery) OnlyX(ctx context.Context) *Todo + func (tq *TodoQuery) Order(o ...OrderFunc) *TodoQuery + func (tq *TodoQuery) QueryChildren() *TodoQuery + func (tq *TodoQuery) QueryParent() *TodoQuery + func (tq *TodoQuery) Select(fields ...string) *TodoSelect + func (tq *TodoQuery) Unique(unique bool) *TodoQuery + func (tq *TodoQuery) Where(ps ...predicate.Todo) *TodoQuery + func (tq *TodoQuery) WithChildren(opts ...func(*TodoQuery)) *TodoQuery + func (tq *TodoQuery) WithParent(opts ...func(*TodoQuery)) *TodoQuery + type TodoSelect struct + func (s *TodoSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *TodoSelect) BoolX(ctx context.Context) bool + func (s *TodoSelect) Bools(ctx context.Context) ([]bool, error) + func (s *TodoSelect) BoolsX(ctx context.Context) []bool + func (s *TodoSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *TodoSelect) Float64X(ctx context.Context) float64 + func (s *TodoSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *TodoSelect) Float64sX(ctx context.Context) []float64 + func (s *TodoSelect) Int(ctx context.Context) (_ int, err error) + func (s *TodoSelect) IntX(ctx context.Context) int + func (s *TodoSelect) Ints(ctx context.Context) ([]int, error) + func (s *TodoSelect) IntsX(ctx context.Context) []int + func (s *TodoSelect) ScanX(ctx context.Context, v interface{}) + func (s *TodoSelect) String(ctx context.Context) (_ string, err error) + func (s *TodoSelect) StringX(ctx context.Context) string + func (s *TodoSelect) Strings(ctx context.Context) ([]string, error) + func (s *TodoSelect) StringsX(ctx context.Context) []string + func (ts *TodoSelect) Scan(ctx context.Context, v interface{}) error + type TodoUpdate struct + func (tu *TodoUpdate) AddChildIDs(ids ...int) *TodoUpdate + func (tu *TodoUpdate) AddChildren(t ...*Todo) *TodoUpdate + func (tu *TodoUpdate) AddPriority(i int) *TodoUpdate + func (tu *TodoUpdate) ClearChildren() *TodoUpdate + func (tu *TodoUpdate) ClearParent() *TodoUpdate + func (tu *TodoUpdate) Exec(ctx context.Context) error + func (tu *TodoUpdate) ExecX(ctx context.Context) + func (tu *TodoUpdate) Mutation() *TodoMutation + func (tu *TodoUpdate) RemoveChildIDs(ids ...int) *TodoUpdate + func (tu *TodoUpdate) RemoveChildren(t ...*Todo) *TodoUpdate + func (tu *TodoUpdate) Save(ctx context.Context) (int, error) + func (tu *TodoUpdate) SaveX(ctx context.Context) int + func (tu *TodoUpdate) SetNillableParentID(id *int) *TodoUpdate + func (tu *TodoUpdate) SetNillablePriority(i *int) *TodoUpdate + func (tu *TodoUpdate) SetNillableVisibilityStatus(ts *todo.VisibilityStatus) *TodoUpdate + func (tu *TodoUpdate) SetParent(t *Todo) *TodoUpdate + func (tu *TodoUpdate) SetParentID(id int) *TodoUpdate + func (tu *TodoUpdate) SetPriority(i int) *TodoUpdate + func (tu *TodoUpdate) SetStatus(t todo.Status) *TodoUpdate + func (tu *TodoUpdate) SetText(s string) *TodoUpdate + func (tu *TodoUpdate) SetVisibilityStatus(ts todo.VisibilityStatus) *TodoUpdate + func (tu *TodoUpdate) Where(ps ...predicate.Todo) *TodoUpdate + type TodoUpdateOne struct + func (tuo *TodoUpdateOne) AddChildIDs(ids ...int) *TodoUpdateOne + func (tuo *TodoUpdateOne) AddChildren(t ...*Todo) *TodoUpdateOne + func (tuo *TodoUpdateOne) AddPriority(i int) *TodoUpdateOne + func (tuo *TodoUpdateOne) ClearChildren() *TodoUpdateOne + func (tuo *TodoUpdateOne) ClearParent() *TodoUpdateOne + func (tuo *TodoUpdateOne) Exec(ctx context.Context) error + func (tuo *TodoUpdateOne) ExecX(ctx context.Context) + func (tuo *TodoUpdateOne) Mutation() *TodoMutation + func (tuo *TodoUpdateOne) RemoveChildIDs(ids ...int) *TodoUpdateOne + func (tuo *TodoUpdateOne) RemoveChildren(t ...*Todo) *TodoUpdateOne + func (tuo *TodoUpdateOne) Save(ctx context.Context) (*Todo, error) + func (tuo *TodoUpdateOne) SaveX(ctx context.Context) *Todo + func (tuo *TodoUpdateOne) Select(field string, fields ...string) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableParentID(id *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillablePriority(i *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableVisibilityStatus(ts *todo.VisibilityStatus) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetParent(t *Todo) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetParentID(id int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetPriority(i int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetStatus(t todo.Status) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetText(s string) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetVisibilityStatus(ts todo.VisibilityStatus) *TodoUpdateOne + type TodoWhereInput struct + And []*TodoWhereInput + CreatedAt *time.Time + CreatedAtGT *time.Time + CreatedAtGTE *time.Time + CreatedAtIn []time.Time + CreatedAtLT *time.Time + CreatedAtLTE *time.Time + CreatedAtNEQ *time.Time + CreatedAtNotIn []time.Time + HasChildren *bool + HasChildrenWith []*TodoWhereInput + HasParent *bool + HasParentWith []*TodoWhereInput + ID *int + IDGT *int + IDGTE *int + IDIn []int + IDLT *int + IDLTE *int + IDNEQ *int + IDNotIn []int + Not *TodoWhereInput + Or []*TodoWhereInput + Priority *int + PriorityGT *int + PriorityGTE *int + PriorityIn []int + PriorityLT *int + PriorityLTE *int + PriorityNEQ *int + PriorityNotIn []int + Status *todo.Status + StatusIn []todo.Status + StatusNEQ *todo.Status + StatusNotIn []todo.Status + Text *string + TextContains *string + TextContainsFold *string + TextEqualFold *string + TextGT *string + TextGTE *string + TextHasPrefix *string + TextHasSuffix *string + TextIn []string + TextLT *string + TextLTE *string + TextNEQ *string + TextNotIn []string + VisibilityStatus *todo.VisibilityStatus + VisibilityStatusIn []todo.VisibilityStatus + VisibilityStatusNEQ *todo.VisibilityStatus + VisibilityStatusNotIn []todo.VisibilityStatus + func (i *TodoWhereInput) Filter(q *TodoQuery) (*TodoQuery, error) + func (i *TodoWhereInput) P() (predicate.Todo, error) + type Todos []*Todo + type Tx struct + Category *CategoryClient + Todo *TodoClient + User *UserClient + 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 User struct + Age int + Amount schema.Amount + ID int + NullableString *string + Role role.Role + Username string + func (u *User) Node(ctx context.Context) (node *Node, err error) + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetAge(i int) *UserCreate + func (uc *UserCreate) SetAmount(s schema.Amount) *UserCreate + func (uc *UserCreate) SetID(i int) *UserCreate + func (uc *UserCreate) SetNillableNullableString(s *string) *UserCreate + func (uc *UserCreate) SetNullableString(s string) *UserCreate + func (uc *UserCreate) SetRole(r role.Role) *UserCreate + func (uc *UserCreate) SetUsername(s string) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserGroupBy struct + func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *UserGroupBy) BoolX(ctx context.Context) bool + func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *UserGroupBy) BoolsX(ctx context.Context) []bool + func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *UserGroupBy) Float64X(ctx context.Context) float64 + func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *UserGroupBy) IntX(ctx context.Context) int + func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *UserGroupBy) IntsX(ctx context.Context) []int + func (s *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (s *UserGroupBy) StringX(ctx context.Context) string + func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *UserGroupBy) StringsX(ctx context.Context) []string + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + type UserMutation struct + func (m *UserMutation) AddAge(i int) + func (m *UserMutation) AddAmount(s schema.Amount) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddedAge() (r int, exists bool) + func (m *UserMutation) AddedAmount() (r schema.Amount, exists bool) + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedField(name string) (ent.Value, bool) + func (m *UserMutation) AddedFields() []string + func (m *UserMutation) AddedIDs(name string) []ent.Value + func (m *UserMutation) Age() (r int, exists bool) + func (m *UserMutation) Amount() (r schema.Amount, exists bool) + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearNullableString() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) NullableString() (r string, exists bool) + func (m *UserMutation) NullableStringCleared() bool + func (m *UserMutation) OldAge(ctx context.Context) (v int, err error) + func (m *UserMutation) OldAmount(ctx context.Context) (v schema.Amount, err error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldNullableString(ctx context.Context) (v *string, err error) + func (m *UserMutation) OldRole(ctx context.Context) (v role.Role, err error) + func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) ResetAge() + func (m *UserMutation) ResetAmount() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetNullableString() + func (m *UserMutation) ResetRole() + func (m *UserMutation) ResetUsername() + func (m *UserMutation) Role() (r role.Role, exists bool) + func (m *UserMutation) SetAge(i int) + func (m *UserMutation) SetAmount(s schema.Amount) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetID(id int) + func (m *UserMutation) SetNullableString(s string) + func (m *UserMutation) SetRole(r role.Role) + func (m *UserMutation) SetUsername(s string) + func (m *UserMutation) Type() string + func (m *UserMutation) Username() (r string, exists bool) + func (m *UserMutation) Where(ps ...predicate.User) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + func (u *UserQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserQuery, error) + func (u *UserQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*MasterUserConnection, error) + func (uq *UserQuery) All(ctx context.Context) ([]*User, error) + func (uq *UserQuery) AllX(ctx context.Context) []*User + func (uq *UserQuery) Clone() *UserQuery + func (uq *UserQuery) Count(ctx context.Context) (int, error) + func (uq *UserQuery) CountX(ctx context.Context) int + func (uq *UserQuery) Exist(ctx context.Context) (bool, error) + func (uq *UserQuery) ExistX(ctx context.Context) bool + func (uq *UserQuery) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) int + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) ([]int, error) + func (uq *UserQuery) IDsX(ctx context.Context) []int + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) int + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + type UserSelect struct + func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *UserSelect) BoolX(ctx context.Context) bool + func (s *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (s *UserSelect) BoolsX(ctx context.Context) []bool + func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *UserSelect) Float64X(ctx context.Context) float64 + func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *UserSelect) Float64sX(ctx context.Context) []float64 + func (s *UserSelect) Int(ctx context.Context) (_ int, err error) + func (s *UserSelect) IntX(ctx context.Context) int + func (s *UserSelect) Ints(ctx context.Context) ([]int, error) + func (s *UserSelect) IntsX(ctx context.Context) []int + func (s *UserSelect) ScanX(ctx context.Context, v interface{}) + func (s *UserSelect) String(ctx context.Context) (_ string, err error) + func (s *UserSelect) StringX(ctx context.Context) string + func (s *UserSelect) Strings(ctx context.Context) ([]string, error) + func (s *UserSelect) StringsX(ctx context.Context) []string + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + type UserUpdate struct + func (uu *UserUpdate) AddAge(i int) *UserUpdate + func (uu *UserUpdate) AddAmount(s schema.Amount) *UserUpdate + func (uu *UserUpdate) ClearNullableString() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetAge(i int) *UserUpdate + func (uu *UserUpdate) SetAmount(s schema.Amount) *UserUpdate + func (uu *UserUpdate) SetNillableNullableString(s *string) *UserUpdate + func (uu *UserUpdate) SetNullableString(s string) *UserUpdate + func (uu *UserUpdate) SetRole(r role.Role) *UserUpdate + func (uu *UserUpdate) SetUsername(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddAge(i int) *UserUpdateOne + func (uuo *UserUpdateOne) AddAmount(s schema.Amount) *UserUpdateOne + func (uuo *UserUpdateOne) ClearNullableString() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetAge(i int) *UserUpdateOne + func (uuo *UserUpdateOne) SetAmount(s schema.Amount) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableNullableString(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) SetNullableString(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetRole(r role.Role) *UserUpdateOne + func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value