Versions in this module Expand all Collapse all v0 v0.1.1 May 3, 2024 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeCategory + const TypeTodo + const TypeVerySecret + var CategoryOrderFieldDuration = &CategoryOrderField + var CategoryOrderFieldText = &CategoryOrderField + var DefaultCategoryOrder = &CategoryOrder + var DefaultTodoOrder = &TodoOrder + var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction") + var TodoOrderFieldCreatedAt = &TodoOrderField + var TodoOrderFieldPriority = &TodoOrderField + var TodoOrderFieldStatus = &TodoOrderField + var TodoOrderFieldText = &TodoOrderField + func Asc(fields ...string) func(*sql.Selector) + func Desc(fields ...string) func(*sql.Selector) + 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 + func (*Category) IsNode() + func (c *Category) NamedTodos(name string) ([]*Todo, 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) (result []*Todo, err error) + func (c *Category) Unwrap() *Category + func (c *Category) Update() *CategoryUpdateOne + func (c *Category) Value(name string) (ent.Value, error) + func (c Category) IsEntity() + 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) Intercept(interceptors ...Interceptor) + func (c *CategoryClient) Interceptors() []Interceptor + func (c *CategoryClient) MapCreateBulk(slice any, setFunc func(*CategoryCreate, int)) *CategoryCreateBulk + 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) SetStatus(c category.Status) *CategoryCreate + func (cc *CategoryCreate) SetStrings(s []string) *CategoryCreate + func (cc *CategoryCreate) SetText(s string) *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) + func (cdo *CategoryDeleteOne) Where(ps ...predicate.Category) *CategoryDeleteOne + 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 any) 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 any) + 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) AppendStrings(s []string) + func (m *CategoryMutation) AppendedStrings() ([]string, bool) + 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) 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) 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) 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) SetOp(op Op) + func (m *CategoryMutation) SetStatus(c category.Status) + func (m *CategoryMutation) SetStrings(s []string) + func (m *CategoryMutation) SetText(s string) + 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) Where(ps ...predicate.Category) + func (m *CategoryMutation) WhereP(ps ...func(*sql.Selector)) + func (m CategoryMutation) Client() *Client + func (m CategoryMutation) Tx() (*Tx, error) + type CategoryOrder struct + Direction OrderDirection + Field *CategoryOrderField + type CategoryOrderField struct + Value func(*Category) (ent.Value, error) + 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) Aggregate(fns ...AggregateFunc) *CategorySelect + 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) (ids []int, err 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 ...category.OrderOption) *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) WithNamedTodos(name string, opts ...func(*TodoQuery)) *CategoryQuery + func (cq *CategoryQuery) WithTodos(opts ...func(*TodoQuery)) *CategoryQuery + type CategorySelect struct + func (cs *CategorySelect) Aggregate(fns ...AggregateFunc) *CategorySelect + func (cs *CategorySelect) Scan(ctx context.Context, v any) 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 any) + 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) AppendStrings(s []string) *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) 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) SetNillableStatus(c *category.Status) *CategoryUpdate + func (cu *CategoryUpdate) SetNillableText(s *string) *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) 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) AppendStrings(s []string) *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) 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) SetNillableStatus(c *category.Status) *CategoryUpdateOne + func (cuo *CategoryUpdateOne) SetNillableText(s *string) *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) Where(ps ...predicate.Category) *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 + 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 + VerySecret *VerySecretClient + 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) Intercept(interceptors ...Interceptor) + func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, 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 = entgql.Cursor[int] + type Hook = ent.Hook + type InterceptFunc = ent.InterceptFunc + type Interceptor = ent.Interceptor + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NodeOption func(*nodeOptions) + func WithFixedNodeType(t string) NodeOption + func WithNodeType(f func(context.Context, int) (string, error)) NodeOption + type Noder interface + IsNode func() + 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(...any)) Option + type OrderDirection = entgql.OrderDirection + type OrderFunc func(*sql.Selector) + type PageInfo = entgql.PageInfo[int] + type Policy = ent.Policy + type Querier = ent.Querier + type QuerierFunc = ent.QuerierFunc + type Query = ent.Query + type QueryContext = ent.QueryContext + 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 + Blob []byte + CreatedAt time.Time + Edges TodoEdges + ID int + Priority int + Status todo.Status + Text string + func (*Todo) IsNode() + func (t *Todo) Category(ctx context.Context) (*Category, error) + func (t *Todo) Children(ctx context.Context) (result []*Todo, err error) + func (t *Todo) NamedChildren(name string) ([]*Todo, error) + func (t *Todo) Parent(ctx context.Context) (*Todo, error) + func (t *Todo) QueryCategory() *CategoryQuery + func (t *Todo) QueryChildren() *TodoQuery + func (t *Todo) QueryParent() *TodoQuery + func (t *Todo) QuerySecret() *VerySecretQuery + func (t *Todo) String() string + func (t *Todo) ToEdge(order *TodoOrder) *TodoEdge + func (t *Todo) Unwrap() *Todo + func (t *Todo) Update() *TodoUpdateOne + func (t *Todo) Value(name string) (ent.Value, error) + func (t Todo) IsEntity() + 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) Intercept(interceptors ...Interceptor) + func (c *TodoClient) Interceptors() []Interceptor + func (c *TodoClient) MapCreateBulk(slice any, setFunc func(*TodoCreate, int)) *TodoCreateBulk + func (c *TodoClient) Query() *TodoQuery + func (c *TodoClient) QueryCategory(t *Todo) *CategoryQuery + func (c *TodoClient) QueryChildren(t *Todo) *TodoQuery + func (c *TodoClient) QueryParent(t *Todo) *TodoQuery + func (c *TodoClient) QuerySecret(t *Todo) *VerySecretQuery + 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) SetBlob(b []byte) *TodoCreate + func (tc *TodoCreate) SetCategory(c *Category) *TodoCreate + func (tc *TodoCreate) SetCategoryID(id int) *TodoCreate + func (tc *TodoCreate) SetCreatedAt(t time.Time) *TodoCreate + func (tc *TodoCreate) SetNillableCategoryID(id *int) *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) SetNillableSecretID(id *int) *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) SetSecret(v *VerySecret) *TodoCreate + func (tc *TodoCreate) SetSecretID(id int) *TodoCreate + func (tc *TodoCreate) SetStatus(t todo.Status) *TodoCreate + func (tc *TodoCreate) SetText(s string) *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) + func (tdo *TodoDeleteOne) Where(ps ...predicate.Todo) *TodoDeleteOne + type TodoEdge struct + Cursor Cursor + Node *Todo + type TodoEdges struct + Category *Category + Children []*Todo + Parent *Todo + Secret *VerySecret + func (e TodoEdges) CategoryOrErr() (*Category, error) + func (e TodoEdges) ChildrenOrErr() ([]*Todo, error) + func (e TodoEdges) ParentOrErr() (*Todo, error) + func (e TodoEdges) SecretOrErr() (*VerySecret, 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 any) + 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 any) 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) Blob() (r []byte, exists bool) + func (m *TodoMutation) BlobCleared() bool + func (m *TodoMutation) CategoryCleared() bool + func (m *TodoMutation) CategoryID() (id int, exists bool) + func (m *TodoMutation) CategoryIDs() (ids []int) + func (m *TodoMutation) ChildrenCleared() bool + func (m *TodoMutation) ChildrenIDs() (ids []int) + func (m *TodoMutation) ClearBlob() + func (m *TodoMutation) ClearCategory() + 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) ClearSecret() + 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) OldBlob(ctx context.Context) (v []byte, err 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) 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) ResetBlob() + func (m *TodoMutation) ResetCategory() + 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) ResetSecret() + func (m *TodoMutation) ResetStatus() + func (m *TodoMutation) ResetText() + func (m *TodoMutation) SecretCleared() bool + func (m *TodoMutation) SecretID() (id int, exists bool) + func (m *TodoMutation) SecretIDs() (ids []int) + func (m *TodoMutation) SetBlob(b []byte) + func (m *TodoMutation) SetCategoryID(id int) + func (m *TodoMutation) SetCreatedAt(t time.Time) + func (m *TodoMutation) SetField(name string, value ent.Value) error + func (m *TodoMutation) SetOp(op Op) + func (m *TodoMutation) SetParentID(id int) + func (m *TodoMutation) SetPriority(i int) + func (m *TodoMutation) SetSecretID(id int) + func (m *TodoMutation) SetStatus(t todo.Status) + func (m *TodoMutation) SetText(s string) + 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) Where(ps ...predicate.Todo) + func (m *TodoMutation) WhereP(ps ...func(*sql.Selector)) + func (m TodoMutation) Client() *Client + func (m TodoMutation) Tx() (*Tx, error) + type TodoOrder struct + Direction OrderDirection + Field *TodoOrderField + type TodoOrderField struct + Value func(*Todo) (ent.Value, error) + 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) Aggregate(fns ...AggregateFunc) *TodoSelect + 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) (ids []int, err 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 ...todo.OrderOption) *TodoQuery + func (tq *TodoQuery) QueryCategory() *CategoryQuery + func (tq *TodoQuery) QueryChildren() *TodoQuery + func (tq *TodoQuery) QueryParent() *TodoQuery + func (tq *TodoQuery) QuerySecret() *VerySecretQuery + 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) WithCategory(opts ...func(*CategoryQuery)) *TodoQuery + func (tq *TodoQuery) WithChildren(opts ...func(*TodoQuery)) *TodoQuery + func (tq *TodoQuery) WithNamedChildren(name string, opts ...func(*TodoQuery)) *TodoQuery + func (tq *TodoQuery) WithParent(opts ...func(*TodoQuery)) *TodoQuery + func (tq *TodoQuery) WithSecret(opts ...func(*VerySecretQuery)) *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 any) + 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) Aggregate(fns ...AggregateFunc) *TodoSelect + func (ts *TodoSelect) Scan(ctx context.Context, v any) 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) ClearBlob() *TodoUpdate + func (tu *TodoUpdate) ClearCategory() *TodoUpdate + func (tu *TodoUpdate) ClearChildren() *TodoUpdate + func (tu *TodoUpdate) ClearParent() *TodoUpdate + func (tu *TodoUpdate) ClearSecret() *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) SetBlob(b []byte) *TodoUpdate + func (tu *TodoUpdate) SetCategory(c *Category) *TodoUpdate + func (tu *TodoUpdate) SetCategoryID(id int) *TodoUpdate + func (tu *TodoUpdate) SetNillableCategoryID(id *int) *TodoUpdate + func (tu *TodoUpdate) SetNillableParentID(id *int) *TodoUpdate + func (tu *TodoUpdate) SetNillablePriority(i *int) *TodoUpdate + func (tu *TodoUpdate) SetNillableSecretID(id *int) *TodoUpdate + func (tu *TodoUpdate) SetNillableStatus(t *todo.Status) *TodoUpdate + func (tu *TodoUpdate) SetNillableText(s *string) *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) SetSecret(v *VerySecret) *TodoUpdate + func (tu *TodoUpdate) SetSecretID(id int) *TodoUpdate + func (tu *TodoUpdate) SetStatus(t todo.Status) *TodoUpdate + func (tu *TodoUpdate) SetText(s string) *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) ClearBlob() *TodoUpdateOne + func (tuo *TodoUpdateOne) ClearCategory() *TodoUpdateOne + func (tuo *TodoUpdateOne) ClearChildren() *TodoUpdateOne + func (tuo *TodoUpdateOne) ClearParent() *TodoUpdateOne + func (tuo *TodoUpdateOne) ClearSecret() *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) SetBlob(b []byte) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetCategory(c *Category) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetCategoryID(id int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableCategoryID(id *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableParentID(id *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillablePriority(i *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableSecretID(id *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableStatus(t *todo.Status) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableText(s *string) *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) SetSecret(v *VerySecret) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetSecretID(id int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetStatus(t todo.Status) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetText(s string) *TodoUpdateOne + func (tuo *TodoUpdateOne) Where(ps ...predicate.Todo) *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 + HasCategory *bool + HasCategoryWith []*CategoryWhereInput + 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 + func (i *TodoWhereInput) Filter(q *TodoQuery) (*TodoQuery, error) + func (i *TodoWhereInput) P() (predicate.Todo, error) + type Todos []*Todo + type TraverseFunc = ent.TraverseFunc + type Traverser = ent.Traverser + type Tx struct + Category *CategoryClient + Todo *TodoClient + VerySecret *VerySecretClient + 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 + type VerySecret struct + ID int + Password string + func (vs *VerySecret) String() string + func (vs *VerySecret) Unwrap() *VerySecret + func (vs *VerySecret) Update() *VerySecretUpdateOne + func (vs *VerySecret) Value(name string) (ent.Value, error) + func (vs VerySecret) IsEntity() + type VerySecretClient struct + func NewVerySecretClient(c config) *VerySecretClient + func (c *VerySecretClient) Create() *VerySecretCreate + func (c *VerySecretClient) CreateBulk(builders ...*VerySecretCreate) *VerySecretCreateBulk + func (c *VerySecretClient) Delete() *VerySecretDelete + func (c *VerySecretClient) DeleteOne(vs *VerySecret) *VerySecretDeleteOne + func (c *VerySecretClient) DeleteOneID(id int) *VerySecretDeleteOne + func (c *VerySecretClient) Get(ctx context.Context, id int) (*VerySecret, error) + func (c *VerySecretClient) GetX(ctx context.Context, id int) *VerySecret + func (c *VerySecretClient) Hooks() []Hook + func (c *VerySecretClient) Intercept(interceptors ...Interceptor) + func (c *VerySecretClient) Interceptors() []Interceptor + func (c *VerySecretClient) MapCreateBulk(slice any, setFunc func(*VerySecretCreate, int)) *VerySecretCreateBulk + func (c *VerySecretClient) Query() *VerySecretQuery + func (c *VerySecretClient) Update() *VerySecretUpdate + func (c *VerySecretClient) UpdateOne(vs *VerySecret) *VerySecretUpdateOne + func (c *VerySecretClient) UpdateOneID(id int) *VerySecretUpdateOne + func (c *VerySecretClient) Use(hooks ...Hook) + type VerySecretCreate struct + func (vsc *VerySecretCreate) Exec(ctx context.Context) error + func (vsc *VerySecretCreate) ExecX(ctx context.Context) + func (vsc *VerySecretCreate) Mutation() *VerySecretMutation + func (vsc *VerySecretCreate) Save(ctx context.Context) (*VerySecret, error) + func (vsc *VerySecretCreate) SaveX(ctx context.Context) *VerySecret + func (vsc *VerySecretCreate) SetPassword(s string) *VerySecretCreate + type VerySecretCreateBulk struct + func (vscb *VerySecretCreateBulk) Exec(ctx context.Context) error + func (vscb *VerySecretCreateBulk) ExecX(ctx context.Context) + func (vscb *VerySecretCreateBulk) Save(ctx context.Context) ([]*VerySecret, error) + func (vscb *VerySecretCreateBulk) SaveX(ctx context.Context) []*VerySecret + type VerySecretDelete struct + func (vsd *VerySecretDelete) Exec(ctx context.Context) (int, error) + func (vsd *VerySecretDelete) ExecX(ctx context.Context) int + func (vsd *VerySecretDelete) Where(ps ...predicate.VerySecret) *VerySecretDelete + type VerySecretDeleteOne struct + func (vsdo *VerySecretDeleteOne) Exec(ctx context.Context) error + func (vsdo *VerySecretDeleteOne) ExecX(ctx context.Context) + func (vsdo *VerySecretDeleteOne) Where(ps ...predicate.VerySecret) *VerySecretDeleteOne + type VerySecretGroupBy struct + func (s *VerySecretGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *VerySecretGroupBy) BoolX(ctx context.Context) bool + func (s *VerySecretGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *VerySecretGroupBy) BoolsX(ctx context.Context) []bool + func (s *VerySecretGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *VerySecretGroupBy) Float64X(ctx context.Context) float64 + func (s *VerySecretGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *VerySecretGroupBy) Float64sX(ctx context.Context) []float64 + func (s *VerySecretGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *VerySecretGroupBy) IntX(ctx context.Context) int + func (s *VerySecretGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *VerySecretGroupBy) IntsX(ctx context.Context) []int + func (s *VerySecretGroupBy) ScanX(ctx context.Context, v any) + func (s *VerySecretGroupBy) String(ctx context.Context) (_ string, err error) + func (s *VerySecretGroupBy) StringX(ctx context.Context) string + func (s *VerySecretGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *VerySecretGroupBy) StringsX(ctx context.Context) []string + func (vsgb *VerySecretGroupBy) Aggregate(fns ...AggregateFunc) *VerySecretGroupBy + func (vsgb *VerySecretGroupBy) Scan(ctx context.Context, v any) error + type VerySecretMutation struct + func (m *VerySecretMutation) AddField(name string, value ent.Value) error + func (m *VerySecretMutation) AddedEdges() []string + func (m *VerySecretMutation) AddedField(name string) (ent.Value, bool) + func (m *VerySecretMutation) AddedFields() []string + func (m *VerySecretMutation) AddedIDs(name string) []ent.Value + func (m *VerySecretMutation) ClearEdge(name string) error + func (m *VerySecretMutation) ClearField(name string) error + func (m *VerySecretMutation) ClearedEdges() []string + func (m *VerySecretMutation) ClearedFields() []string + func (m *VerySecretMutation) EdgeCleared(name string) bool + func (m *VerySecretMutation) Field(name string) (ent.Value, bool) + func (m *VerySecretMutation) FieldCleared(name string) bool + func (m *VerySecretMutation) Fields() []string + func (m *VerySecretMutation) ID() (id int, exists bool) + func (m *VerySecretMutation) IDs(ctx context.Context) ([]int, error) + func (m *VerySecretMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *VerySecretMutation) OldPassword(ctx context.Context) (v string, err error) + func (m *VerySecretMutation) Op() Op + func (m *VerySecretMutation) Password() (r string, exists bool) + func (m *VerySecretMutation) RemovedEdges() []string + func (m *VerySecretMutation) RemovedIDs(name string) []ent.Value + func (m *VerySecretMutation) ResetEdge(name string) error + func (m *VerySecretMutation) ResetField(name string) error + func (m *VerySecretMutation) ResetPassword() + func (m *VerySecretMutation) SetField(name string, value ent.Value) error + func (m *VerySecretMutation) SetOp(op Op) + func (m *VerySecretMutation) SetPassword(s string) + func (m *VerySecretMutation) Type() string + func (m *VerySecretMutation) Where(ps ...predicate.VerySecret) + func (m *VerySecretMutation) WhereP(ps ...func(*sql.Selector)) + func (m VerySecretMutation) Client() *Client + func (m VerySecretMutation) Tx() (*Tx, error) + type VerySecretQuery struct + func (vsq *VerySecretQuery) Aggregate(fns ...AggregateFunc) *VerySecretSelect + func (vsq *VerySecretQuery) All(ctx context.Context) ([]*VerySecret, error) + func (vsq *VerySecretQuery) AllX(ctx context.Context) []*VerySecret + func (vsq *VerySecretQuery) Clone() *VerySecretQuery + func (vsq *VerySecretQuery) Count(ctx context.Context) (int, error) + func (vsq *VerySecretQuery) CountX(ctx context.Context) int + func (vsq *VerySecretQuery) Exist(ctx context.Context) (bool, error) + func (vsq *VerySecretQuery) ExistX(ctx context.Context) bool + func (vsq *VerySecretQuery) First(ctx context.Context) (*VerySecret, error) + func (vsq *VerySecretQuery) FirstID(ctx context.Context) (id int, err error) + func (vsq *VerySecretQuery) FirstIDX(ctx context.Context) int + func (vsq *VerySecretQuery) FirstX(ctx context.Context) *VerySecret + func (vsq *VerySecretQuery) GroupBy(field string, fields ...string) *VerySecretGroupBy + func (vsq *VerySecretQuery) IDs(ctx context.Context) (ids []int, err error) + func (vsq *VerySecretQuery) IDsX(ctx context.Context) []int + func (vsq *VerySecretQuery) Limit(limit int) *VerySecretQuery + func (vsq *VerySecretQuery) Offset(offset int) *VerySecretQuery + func (vsq *VerySecretQuery) Only(ctx context.Context) (*VerySecret, error) + func (vsq *VerySecretQuery) OnlyID(ctx context.Context) (id int, err error) + func (vsq *VerySecretQuery) OnlyIDX(ctx context.Context) int + func (vsq *VerySecretQuery) OnlyX(ctx context.Context) *VerySecret + func (vsq *VerySecretQuery) Order(o ...verysecret.OrderOption) *VerySecretQuery + func (vsq *VerySecretQuery) Select(fields ...string) *VerySecretSelect + func (vsq *VerySecretQuery) Unique(unique bool) *VerySecretQuery + func (vsq *VerySecretQuery) Where(ps ...predicate.VerySecret) *VerySecretQuery + type VerySecretSelect struct + func (s *VerySecretSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *VerySecretSelect) BoolX(ctx context.Context) bool + func (s *VerySecretSelect) Bools(ctx context.Context) ([]bool, error) + func (s *VerySecretSelect) BoolsX(ctx context.Context) []bool + func (s *VerySecretSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *VerySecretSelect) Float64X(ctx context.Context) float64 + func (s *VerySecretSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *VerySecretSelect) Float64sX(ctx context.Context) []float64 + func (s *VerySecretSelect) Int(ctx context.Context) (_ int, err error) + func (s *VerySecretSelect) IntX(ctx context.Context) int + func (s *VerySecretSelect) Ints(ctx context.Context) ([]int, error) + func (s *VerySecretSelect) IntsX(ctx context.Context) []int + func (s *VerySecretSelect) ScanX(ctx context.Context, v any) + func (s *VerySecretSelect) String(ctx context.Context) (_ string, err error) + func (s *VerySecretSelect) StringX(ctx context.Context) string + func (s *VerySecretSelect) Strings(ctx context.Context) ([]string, error) + func (s *VerySecretSelect) StringsX(ctx context.Context) []string + func (vss *VerySecretSelect) Aggregate(fns ...AggregateFunc) *VerySecretSelect + func (vss *VerySecretSelect) Scan(ctx context.Context, v any) error + type VerySecretUpdate struct + func (vsu *VerySecretUpdate) Exec(ctx context.Context) error + func (vsu *VerySecretUpdate) ExecX(ctx context.Context) + func (vsu *VerySecretUpdate) Mutation() *VerySecretMutation + func (vsu *VerySecretUpdate) Save(ctx context.Context) (int, error) + func (vsu *VerySecretUpdate) SaveX(ctx context.Context) int + func (vsu *VerySecretUpdate) SetNillablePassword(s *string) *VerySecretUpdate + func (vsu *VerySecretUpdate) SetPassword(s string) *VerySecretUpdate + func (vsu *VerySecretUpdate) Where(ps ...predicate.VerySecret) *VerySecretUpdate + type VerySecretUpdateOne struct + func (vsuo *VerySecretUpdateOne) Exec(ctx context.Context) error + func (vsuo *VerySecretUpdateOne) ExecX(ctx context.Context) + func (vsuo *VerySecretUpdateOne) Mutation() *VerySecretMutation + func (vsuo *VerySecretUpdateOne) Save(ctx context.Context) (*VerySecret, error) + func (vsuo *VerySecretUpdateOne) SaveX(ctx context.Context) *VerySecret + func (vsuo *VerySecretUpdateOne) Select(field string, fields ...string) *VerySecretUpdateOne + func (vsuo *VerySecretUpdateOne) SetNillablePassword(s *string) *VerySecretUpdateOne + func (vsuo *VerySecretUpdateOne) SetPassword(s string) *VerySecretUpdateOne + func (vsuo *VerySecretUpdateOne) Where(ps ...predicate.VerySecret) *VerySecretUpdateOne + type VerySecrets []*VerySecret