Versions in this module Expand all Collapse all v1 v1.0.1 Apr 12, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeTask + const TypeTeam + const TypeUser + func IsConstraintError(err error) bool + func IsNotFound(err error) bool + func IsNotLoaded(err error) bool + func IsNotSingular(err error) bool + func IsValidationError(err error) bool + func MaskNotFound(err error) error + func NewContext(parent context.Context, c *Client) context.Context + func NewTxContext(parent context.Context, tx *Tx) context.Context + type AggregateFunc func(*sql.Selector) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Client struct + Schema *migrate.Schema + Task *TaskClient + Team *TeamClient + 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) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Hook = ent.Hook + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Query = ent.Query + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Task struct + Description string + Edges TaskEdges + ID int + Status task.Status + Title string + UUID uuid.UUID + func (t *Task) QueryOwner() *UserQuery + func (t *Task) QueryTeams() *TeamQuery + func (t *Task) String() string + func (t *Task) Unwrap() *Task + func (t *Task) Update() *TaskUpdateOne + type TaskClient struct + func NewTaskClient(c config) *TaskClient + func (c *TaskClient) Create() *TaskCreate + func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk + func (c *TaskClient) Delete() *TaskDelete + func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne + func (c *TaskClient) DeleteOneID(id int) *TaskDeleteOne + func (c *TaskClient) Get(ctx context.Context, id int) (*Task, error) + func (c *TaskClient) GetX(ctx context.Context, id int) *Task + func (c *TaskClient) Hooks() []Hook + func (c *TaskClient) Query() *TaskQuery + func (c *TaskClient) QueryOwner(t *Task) *UserQuery + func (c *TaskClient) QueryTeams(t *Task) *TeamQuery + func (c *TaskClient) Update() *TaskUpdate + func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne + func (c *TaskClient) UpdateOneID(id int) *TaskUpdateOne + func (c *TaskClient) Use(hooks ...Hook) + type TaskCreate struct + func (tc *TaskCreate) AddTeamIDs(ids ...int) *TaskCreate + func (tc *TaskCreate) AddTeams(t ...*Team) *TaskCreate + func (tc *TaskCreate) Exec(ctx context.Context) error + func (tc *TaskCreate) ExecX(ctx context.Context) + func (tc *TaskCreate) Mutation() *TaskMutation + func (tc *TaskCreate) Save(ctx context.Context) (*Task, error) + func (tc *TaskCreate) SaveX(ctx context.Context) *Task + func (tc *TaskCreate) SetDescription(s string) *TaskCreate + func (tc *TaskCreate) SetNillableDescription(s *string) *TaskCreate + func (tc *TaskCreate) SetNillableOwnerID(id *int) *TaskCreate + func (tc *TaskCreate) SetNillableStatus(t *task.Status) *TaskCreate + func (tc *TaskCreate) SetNillableUUID(u *uuid.UUID) *TaskCreate + func (tc *TaskCreate) SetOwner(u *User) *TaskCreate + func (tc *TaskCreate) SetOwnerID(id int) *TaskCreate + func (tc *TaskCreate) SetStatus(t task.Status) *TaskCreate + func (tc *TaskCreate) SetTitle(s string) *TaskCreate + func (tc *TaskCreate) SetUUID(u uuid.UUID) *TaskCreate + type TaskCreateBulk struct + func (tcb *TaskCreateBulk) Exec(ctx context.Context) error + func (tcb *TaskCreateBulk) ExecX(ctx context.Context) + func (tcb *TaskCreateBulk) Save(ctx context.Context) ([]*Task, error) + func (tcb *TaskCreateBulk) SaveX(ctx context.Context) []*Task + type TaskDelete struct + func (td *TaskDelete) Exec(ctx context.Context) (int, error) + func (td *TaskDelete) ExecX(ctx context.Context) int + func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete + type TaskDeleteOne struct + func (tdo *TaskDeleteOne) Exec(ctx context.Context) error + func (tdo *TaskDeleteOne) ExecX(ctx context.Context) + type TaskEdges struct + Owner *User + Teams []*Team + func (e TaskEdges) OwnerOrErr() (*User, error) + func (e TaskEdges) TeamsOrErr() ([]*Team, error) + type TaskFilter struct + func (f *TaskFilter) Where(p entql.P) + func (f *TaskFilter) WhereDescription(p entql.StringP) + func (f *TaskFilter) WhereHasOwner() + func (f *TaskFilter) WhereHasOwnerWith(preds ...predicate.User) + func (f *TaskFilter) WhereHasTeams() + func (f *TaskFilter) WhereHasTeamsWith(preds ...predicate.Team) + func (f *TaskFilter) WhereID(p entql.IntP) + func (f *TaskFilter) WhereStatus(p entql.StringP) + func (f *TaskFilter) WhereTitle(p entql.StringP) + func (f *TaskFilter) WhereUUID(p entql.ValueP) + type TaskGroupBy struct + func (s *TaskGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *TaskGroupBy) BoolX(ctx context.Context) bool + func (s *TaskGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *TaskGroupBy) BoolsX(ctx context.Context) []bool + func (s *TaskGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *TaskGroupBy) Float64X(ctx context.Context) float64 + func (s *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *TaskGroupBy) Float64sX(ctx context.Context) []float64 + func (s *TaskGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *TaskGroupBy) IntX(ctx context.Context) int + func (s *TaskGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *TaskGroupBy) IntsX(ctx context.Context) []int + func (s *TaskGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *TaskGroupBy) String(ctx context.Context) (_ string, err error) + func (s *TaskGroupBy) StringX(ctx context.Context) string + func (s *TaskGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *TaskGroupBy) StringsX(ctx context.Context) []string + func (tgb *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy + func (tgb *TaskGroupBy) Scan(ctx context.Context, v interface{}) error + type TaskMutation struct + func (m *TaskMutation) AddField(name string, value ent.Value) error + func (m *TaskMutation) AddTeamIDs(ids ...int) + func (m *TaskMutation) AddedEdges() []string + func (m *TaskMutation) AddedField(name string) (ent.Value, bool) + func (m *TaskMutation) AddedFields() []string + func (m *TaskMutation) AddedIDs(name string) []ent.Value + func (m *TaskMutation) ClearDescription() + func (m *TaskMutation) ClearEdge(name string) error + func (m *TaskMutation) ClearField(name string) error + func (m *TaskMutation) ClearOwner() + func (m *TaskMutation) ClearTeams() + func (m *TaskMutation) ClearUUID() + func (m *TaskMutation) ClearedEdges() []string + func (m *TaskMutation) ClearedFields() []string + func (m *TaskMutation) Description() (r string, exists bool) + func (m *TaskMutation) DescriptionCleared() bool + func (m *TaskMutation) EdgeCleared(name string) bool + func (m *TaskMutation) Field(name string) (ent.Value, bool) + func (m *TaskMutation) FieldCleared(name string) bool + func (m *TaskMutation) Fields() []string + func (m *TaskMutation) Filter() *TaskFilter + func (m *TaskMutation) ID() (id int, exists bool) + func (m *TaskMutation) IDs(ctx context.Context) ([]int, error) + func (m *TaskMutation) OldDescription(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *TaskMutation) OldStatus(ctx context.Context) (v task.Status, err error) + func (m *TaskMutation) OldTitle(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldUUID(ctx context.Context) (v uuid.UUID, err error) + func (m *TaskMutation) Op() Op + func (m *TaskMutation) OwnerCleared() bool + func (m *TaskMutation) OwnerID() (id int, exists bool) + func (m *TaskMutation) OwnerIDs() (ids []int) + func (m *TaskMutation) RemoveTeamIDs(ids ...int) + func (m *TaskMutation) RemovedEdges() []string + func (m *TaskMutation) RemovedIDs(name string) []ent.Value + func (m *TaskMutation) RemovedTeamsIDs() (ids []int) + func (m *TaskMutation) ResetDescription() + func (m *TaskMutation) ResetEdge(name string) error + func (m *TaskMutation) ResetField(name string) error + func (m *TaskMutation) ResetOwner() + func (m *TaskMutation) ResetStatus() + func (m *TaskMutation) ResetTeams() + func (m *TaskMutation) ResetTitle() + func (m *TaskMutation) ResetUUID() + func (m *TaskMutation) SetDescription(s string) + func (m *TaskMutation) SetField(name string, value ent.Value) error + func (m *TaskMutation) SetOwnerID(id int) + func (m *TaskMutation) SetStatus(t task.Status) + func (m *TaskMutation) SetTitle(s string) + func (m *TaskMutation) SetUUID(u uuid.UUID) + func (m *TaskMutation) Status() (r task.Status, exists bool) + func (m *TaskMutation) TeamsCleared() bool + func (m *TaskMutation) TeamsIDs() (ids []int) + func (m *TaskMutation) Title() (r string, exists bool) + func (m *TaskMutation) Type() string + func (m *TaskMutation) UUID() (r uuid.UUID, exists bool) + func (m *TaskMutation) UUIDCleared() bool + func (m *TaskMutation) Where(ps ...predicate.Task) + func (m TaskMutation) Client() *Client + func (m TaskMutation) Tx() (*Tx, error) + type TaskQuery struct + func (tq *TaskQuery) All(ctx context.Context) ([]*Task, error) + func (tq *TaskQuery) AllX(ctx context.Context) []*Task + func (tq *TaskQuery) Clone() *TaskQuery + func (tq *TaskQuery) Count(ctx context.Context) (int, error) + func (tq *TaskQuery) CountX(ctx context.Context) int + func (tq *TaskQuery) Exist(ctx context.Context) (bool, error) + func (tq *TaskQuery) ExistX(ctx context.Context) bool + func (tq *TaskQuery) Filter() *TaskFilter + func (tq *TaskQuery) First(ctx context.Context) (*Task, error) + func (tq *TaskQuery) FirstID(ctx context.Context) (id int, err error) + func (tq *TaskQuery) FirstIDX(ctx context.Context) int + func (tq *TaskQuery) FirstX(ctx context.Context) *Task + func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy + func (tq *TaskQuery) IDs(ctx context.Context) ([]int, error) + func (tq *TaskQuery) IDsX(ctx context.Context) []int + func (tq *TaskQuery) Limit(limit int) *TaskQuery + func (tq *TaskQuery) Offset(offset int) *TaskQuery + func (tq *TaskQuery) Only(ctx context.Context) (*Task, error) + func (tq *TaskQuery) OnlyID(ctx context.Context) (id int, err error) + func (tq *TaskQuery) OnlyIDX(ctx context.Context) int + func (tq *TaskQuery) OnlyX(ctx context.Context) *Task + func (tq *TaskQuery) Order(o ...OrderFunc) *TaskQuery + func (tq *TaskQuery) QueryOwner() *UserQuery + func (tq *TaskQuery) QueryTeams() *TeamQuery + func (tq *TaskQuery) Select(fields ...string) *TaskSelect + func (tq *TaskQuery) Unique(unique bool) *TaskQuery + func (tq *TaskQuery) Where(ps ...predicate.Task) *TaskQuery + func (tq *TaskQuery) WithOwner(opts ...func(*UserQuery)) *TaskQuery + func (tq *TaskQuery) WithTeams(opts ...func(*TeamQuery)) *TaskQuery + type TaskSelect struct + func (s *TaskSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *TaskSelect) BoolX(ctx context.Context) bool + func (s *TaskSelect) Bools(ctx context.Context) ([]bool, error) + func (s *TaskSelect) BoolsX(ctx context.Context) []bool + func (s *TaskSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *TaskSelect) Float64X(ctx context.Context) float64 + func (s *TaskSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *TaskSelect) Float64sX(ctx context.Context) []float64 + func (s *TaskSelect) Int(ctx context.Context) (_ int, err error) + func (s *TaskSelect) IntX(ctx context.Context) int + func (s *TaskSelect) Ints(ctx context.Context) ([]int, error) + func (s *TaskSelect) IntsX(ctx context.Context) []int + func (s *TaskSelect) ScanX(ctx context.Context, v interface{}) + func (s *TaskSelect) String(ctx context.Context) (_ string, err error) + func (s *TaskSelect) StringX(ctx context.Context) string + func (s *TaskSelect) Strings(ctx context.Context) ([]string, error) + func (s *TaskSelect) StringsX(ctx context.Context) []string + func (ts *TaskSelect) Scan(ctx context.Context, v interface{}) error + type TaskUpdate struct + func (tu *TaskUpdate) AddTeamIDs(ids ...int) *TaskUpdate + func (tu *TaskUpdate) AddTeams(t ...*Team) *TaskUpdate + func (tu *TaskUpdate) ClearDescription() *TaskUpdate + func (tu *TaskUpdate) ClearOwner() *TaskUpdate + func (tu *TaskUpdate) ClearTeams() *TaskUpdate + func (tu *TaskUpdate) ClearUUID() *TaskUpdate + func (tu *TaskUpdate) Exec(ctx context.Context) error + func (tu *TaskUpdate) ExecX(ctx context.Context) + func (tu *TaskUpdate) Mutation() *TaskMutation + func (tu *TaskUpdate) RemoveTeamIDs(ids ...int) *TaskUpdate + func (tu *TaskUpdate) RemoveTeams(t ...*Team) *TaskUpdate + func (tu *TaskUpdate) Save(ctx context.Context) (int, error) + func (tu *TaskUpdate) SaveX(ctx context.Context) int + func (tu *TaskUpdate) SetDescription(s string) *TaskUpdate + func (tu *TaskUpdate) SetNillableDescription(s *string) *TaskUpdate + func (tu *TaskUpdate) SetNillableOwnerID(id *int) *TaskUpdate + func (tu *TaskUpdate) SetNillableStatus(t *task.Status) *TaskUpdate + func (tu *TaskUpdate) SetNillableUUID(u *uuid.UUID) *TaskUpdate + func (tu *TaskUpdate) SetOwner(u *User) *TaskUpdate + func (tu *TaskUpdate) SetOwnerID(id int) *TaskUpdate + func (tu *TaskUpdate) SetStatus(t task.Status) *TaskUpdate + func (tu *TaskUpdate) SetTitle(s string) *TaskUpdate + func (tu *TaskUpdate) SetUUID(u uuid.UUID) *TaskUpdate + func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate + type TaskUpdateOne struct + func (tuo *TaskUpdateOne) AddTeamIDs(ids ...int) *TaskUpdateOne + func (tuo *TaskUpdateOne) AddTeams(t ...*Team) *TaskUpdateOne + func (tuo *TaskUpdateOne) ClearDescription() *TaskUpdateOne + func (tuo *TaskUpdateOne) ClearOwner() *TaskUpdateOne + func (tuo *TaskUpdateOne) ClearTeams() *TaskUpdateOne + func (tuo *TaskUpdateOne) ClearUUID() *TaskUpdateOne + func (tuo *TaskUpdateOne) Exec(ctx context.Context) error + func (tuo *TaskUpdateOne) ExecX(ctx context.Context) + func (tuo *TaskUpdateOne) Mutation() *TaskMutation + func (tuo *TaskUpdateOne) RemoveTeamIDs(ids ...int) *TaskUpdateOne + func (tuo *TaskUpdateOne) RemoveTeams(t ...*Team) *TaskUpdateOne + func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error) + func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task + func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetDescription(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetNillableDescription(s *string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetNillableOwnerID(id *int) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetNillableStatus(t *task.Status) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetNillableUUID(u *uuid.UUID) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetOwner(u *User) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetOwnerID(id int) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetStatus(t task.Status) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetTitle(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetUUID(u uuid.UUID) *TaskUpdateOne + type Tasks []*Task + type Team struct + Edges TeamEdges + ID int + Name string + func (t *Team) QueryTasks() *TaskQuery + func (t *Team) QueryUsers() *UserQuery + func (t *Team) String() string + func (t *Team) Unwrap() *Team + func (t *Team) Update() *TeamUpdateOne + type TeamClient struct + func NewTeamClient(c config) *TeamClient + func (c *TeamClient) Create() *TeamCreate + func (c *TeamClient) CreateBulk(builders ...*TeamCreate) *TeamCreateBulk + func (c *TeamClient) Delete() *TeamDelete + func (c *TeamClient) DeleteOne(t *Team) *TeamDeleteOne + func (c *TeamClient) DeleteOneID(id int) *TeamDeleteOne + func (c *TeamClient) Get(ctx context.Context, id int) (*Team, error) + func (c *TeamClient) GetX(ctx context.Context, id int) *Team + func (c *TeamClient) Hooks() []Hook + func (c *TeamClient) Query() *TeamQuery + func (c *TeamClient) QueryTasks(t *Team) *TaskQuery + func (c *TeamClient) QueryUsers(t *Team) *UserQuery + func (c *TeamClient) Update() *TeamUpdate + func (c *TeamClient) UpdateOne(t *Team) *TeamUpdateOne + func (c *TeamClient) UpdateOneID(id int) *TeamUpdateOne + func (c *TeamClient) Use(hooks ...Hook) + type TeamCreate struct + func (tc *TeamCreate) AddTaskIDs(ids ...int) *TeamCreate + func (tc *TeamCreate) AddTasks(t ...*Task) *TeamCreate + func (tc *TeamCreate) AddUserIDs(ids ...int) *TeamCreate + func (tc *TeamCreate) AddUsers(u ...*User) *TeamCreate + func (tc *TeamCreate) Exec(ctx context.Context) error + func (tc *TeamCreate) ExecX(ctx context.Context) + func (tc *TeamCreate) Mutation() *TeamMutation + func (tc *TeamCreate) Save(ctx context.Context) (*Team, error) + func (tc *TeamCreate) SaveX(ctx context.Context) *Team + func (tc *TeamCreate) SetName(s string) *TeamCreate + type TeamCreateBulk struct + func (tcb *TeamCreateBulk) Exec(ctx context.Context) error + func (tcb *TeamCreateBulk) ExecX(ctx context.Context) + func (tcb *TeamCreateBulk) Save(ctx context.Context) ([]*Team, error) + func (tcb *TeamCreateBulk) SaveX(ctx context.Context) []*Team + type TeamDelete struct + func (td *TeamDelete) Exec(ctx context.Context) (int, error) + func (td *TeamDelete) ExecX(ctx context.Context) int + func (td *TeamDelete) Where(ps ...predicate.Team) *TeamDelete + type TeamDeleteOne struct + func (tdo *TeamDeleteOne) Exec(ctx context.Context) error + func (tdo *TeamDeleteOne) ExecX(ctx context.Context) + type TeamEdges struct + Tasks []*Task + Users []*User + func (e TeamEdges) TasksOrErr() ([]*Task, error) + func (e TeamEdges) UsersOrErr() ([]*User, error) + type TeamFilter struct + func (f *TeamFilter) Where(p entql.P) + func (f *TeamFilter) WhereHasTasks() + func (f *TeamFilter) WhereHasTasksWith(preds ...predicate.Task) + func (f *TeamFilter) WhereHasUsers() + func (f *TeamFilter) WhereHasUsersWith(preds ...predicate.User) + func (f *TeamFilter) WhereID(p entql.IntP) + func (f *TeamFilter) WhereName(p entql.StringP) + type TeamGroupBy struct + func (s *TeamGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *TeamGroupBy) BoolX(ctx context.Context) bool + func (s *TeamGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *TeamGroupBy) BoolsX(ctx context.Context) []bool + func (s *TeamGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *TeamGroupBy) Float64X(ctx context.Context) float64 + func (s *TeamGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *TeamGroupBy) Float64sX(ctx context.Context) []float64 + func (s *TeamGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *TeamGroupBy) IntX(ctx context.Context) int + func (s *TeamGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *TeamGroupBy) IntsX(ctx context.Context) []int + func (s *TeamGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *TeamGroupBy) String(ctx context.Context) (_ string, err error) + func (s *TeamGroupBy) StringX(ctx context.Context) string + func (s *TeamGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *TeamGroupBy) StringsX(ctx context.Context) []string + func (tgb *TeamGroupBy) Aggregate(fns ...AggregateFunc) *TeamGroupBy + func (tgb *TeamGroupBy) Scan(ctx context.Context, v interface{}) error + type TeamMutation struct + func (m *TeamMutation) AddField(name string, value ent.Value) error + func (m *TeamMutation) AddTaskIDs(ids ...int) + func (m *TeamMutation) AddUserIDs(ids ...int) + func (m *TeamMutation) AddedEdges() []string + func (m *TeamMutation) AddedField(name string) (ent.Value, bool) + func (m *TeamMutation) AddedFields() []string + func (m *TeamMutation) AddedIDs(name string) []ent.Value + func (m *TeamMutation) ClearEdge(name string) error + func (m *TeamMutation) ClearField(name string) error + func (m *TeamMutation) ClearTasks() + func (m *TeamMutation) ClearUsers() + func (m *TeamMutation) ClearedEdges() []string + func (m *TeamMutation) ClearedFields() []string + func (m *TeamMutation) EdgeCleared(name string) bool + func (m *TeamMutation) Field(name string) (ent.Value, bool) + func (m *TeamMutation) FieldCleared(name string) bool + func (m *TeamMutation) Fields() []string + func (m *TeamMutation) Filter() *TeamFilter + func (m *TeamMutation) ID() (id int, exists bool) + func (m *TeamMutation) IDs(ctx context.Context) ([]int, error) + func (m *TeamMutation) Name() (r string, exists bool) + func (m *TeamMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *TeamMutation) OldName(ctx context.Context) (v string, err error) + func (m *TeamMutation) Op() Op + func (m *TeamMutation) RemoveTaskIDs(ids ...int) + func (m *TeamMutation) RemoveUserIDs(ids ...int) + func (m *TeamMutation) RemovedEdges() []string + func (m *TeamMutation) RemovedIDs(name string) []ent.Value + func (m *TeamMutation) RemovedTasksIDs() (ids []int) + func (m *TeamMutation) RemovedUsersIDs() (ids []int) + func (m *TeamMutation) ResetEdge(name string) error + func (m *TeamMutation) ResetField(name string) error + func (m *TeamMutation) ResetName() + func (m *TeamMutation) ResetTasks() + func (m *TeamMutation) ResetUsers() + func (m *TeamMutation) SetField(name string, value ent.Value) error + func (m *TeamMutation) SetName(s string) + func (m *TeamMutation) TasksCleared() bool + func (m *TeamMutation) TasksIDs() (ids []int) + func (m *TeamMutation) Type() string + func (m *TeamMutation) UsersCleared() bool + func (m *TeamMutation) UsersIDs() (ids []int) + func (m *TeamMutation) Where(ps ...predicate.Team) + func (m TeamMutation) Client() *Client + func (m TeamMutation) Tx() (*Tx, error) + type TeamQuery struct + func (tq *TeamQuery) All(ctx context.Context) ([]*Team, error) + func (tq *TeamQuery) AllX(ctx context.Context) []*Team + func (tq *TeamQuery) Clone() *TeamQuery + func (tq *TeamQuery) Count(ctx context.Context) (int, error) + func (tq *TeamQuery) CountX(ctx context.Context) int + func (tq *TeamQuery) Exist(ctx context.Context) (bool, error) + func (tq *TeamQuery) ExistX(ctx context.Context) bool + func (tq *TeamQuery) Filter() *TeamFilter + func (tq *TeamQuery) First(ctx context.Context) (*Team, error) + func (tq *TeamQuery) FirstID(ctx context.Context) (id int, err error) + func (tq *TeamQuery) FirstIDX(ctx context.Context) int + func (tq *TeamQuery) FirstX(ctx context.Context) *Team + func (tq *TeamQuery) GroupBy(field string, fields ...string) *TeamGroupBy + func (tq *TeamQuery) IDs(ctx context.Context) ([]int, error) + func (tq *TeamQuery) IDsX(ctx context.Context) []int + func (tq *TeamQuery) Limit(limit int) *TeamQuery + func (tq *TeamQuery) Offset(offset int) *TeamQuery + func (tq *TeamQuery) Only(ctx context.Context) (*Team, error) + func (tq *TeamQuery) OnlyID(ctx context.Context) (id int, err error) + func (tq *TeamQuery) OnlyIDX(ctx context.Context) int + func (tq *TeamQuery) OnlyX(ctx context.Context) *Team + func (tq *TeamQuery) Order(o ...OrderFunc) *TeamQuery + func (tq *TeamQuery) QueryTasks() *TaskQuery + func (tq *TeamQuery) QueryUsers() *UserQuery + func (tq *TeamQuery) Select(fields ...string) *TeamSelect + func (tq *TeamQuery) Unique(unique bool) *TeamQuery + func (tq *TeamQuery) Where(ps ...predicate.Team) *TeamQuery + func (tq *TeamQuery) WithTasks(opts ...func(*TaskQuery)) *TeamQuery + func (tq *TeamQuery) WithUsers(opts ...func(*UserQuery)) *TeamQuery + type TeamSelect struct + func (s *TeamSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *TeamSelect) BoolX(ctx context.Context) bool + func (s *TeamSelect) Bools(ctx context.Context) ([]bool, error) + func (s *TeamSelect) BoolsX(ctx context.Context) []bool + func (s *TeamSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *TeamSelect) Float64X(ctx context.Context) float64 + func (s *TeamSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *TeamSelect) Float64sX(ctx context.Context) []float64 + func (s *TeamSelect) Int(ctx context.Context) (_ int, err error) + func (s *TeamSelect) IntX(ctx context.Context) int + func (s *TeamSelect) Ints(ctx context.Context) ([]int, error) + func (s *TeamSelect) IntsX(ctx context.Context) []int + func (s *TeamSelect) ScanX(ctx context.Context, v interface{}) + func (s *TeamSelect) String(ctx context.Context) (_ string, err error) + func (s *TeamSelect) StringX(ctx context.Context) string + func (s *TeamSelect) Strings(ctx context.Context) ([]string, error) + func (s *TeamSelect) StringsX(ctx context.Context) []string + func (ts *TeamSelect) Scan(ctx context.Context, v interface{}) error + type TeamUpdate struct + func (tu *TeamUpdate) AddTaskIDs(ids ...int) *TeamUpdate + func (tu *TeamUpdate) AddTasks(t ...*Task) *TeamUpdate + func (tu *TeamUpdate) AddUserIDs(ids ...int) *TeamUpdate + func (tu *TeamUpdate) AddUsers(u ...*User) *TeamUpdate + func (tu *TeamUpdate) ClearTasks() *TeamUpdate + func (tu *TeamUpdate) ClearUsers() *TeamUpdate + func (tu *TeamUpdate) Exec(ctx context.Context) error + func (tu *TeamUpdate) ExecX(ctx context.Context) + func (tu *TeamUpdate) Mutation() *TeamMutation + func (tu *TeamUpdate) RemoveTaskIDs(ids ...int) *TeamUpdate + func (tu *TeamUpdate) RemoveTasks(t ...*Task) *TeamUpdate + func (tu *TeamUpdate) RemoveUserIDs(ids ...int) *TeamUpdate + func (tu *TeamUpdate) RemoveUsers(u ...*User) *TeamUpdate + func (tu *TeamUpdate) Save(ctx context.Context) (int, error) + func (tu *TeamUpdate) SaveX(ctx context.Context) int + func (tu *TeamUpdate) SetName(s string) *TeamUpdate + func (tu *TeamUpdate) Where(ps ...predicate.Team) *TeamUpdate + type TeamUpdateOne struct + func (tuo *TeamUpdateOne) AddTaskIDs(ids ...int) *TeamUpdateOne + func (tuo *TeamUpdateOne) AddTasks(t ...*Task) *TeamUpdateOne + func (tuo *TeamUpdateOne) AddUserIDs(ids ...int) *TeamUpdateOne + func (tuo *TeamUpdateOne) AddUsers(u ...*User) *TeamUpdateOne + func (tuo *TeamUpdateOne) ClearTasks() *TeamUpdateOne + func (tuo *TeamUpdateOne) ClearUsers() *TeamUpdateOne + func (tuo *TeamUpdateOne) Exec(ctx context.Context) error + func (tuo *TeamUpdateOne) ExecX(ctx context.Context) + func (tuo *TeamUpdateOne) Mutation() *TeamMutation + func (tuo *TeamUpdateOne) RemoveTaskIDs(ids ...int) *TeamUpdateOne + func (tuo *TeamUpdateOne) RemoveTasks(t ...*Task) *TeamUpdateOne + func (tuo *TeamUpdateOne) RemoveUserIDs(ids ...int) *TeamUpdateOne + func (tuo *TeamUpdateOne) RemoveUsers(u ...*User) *TeamUpdateOne + func (tuo *TeamUpdateOne) Save(ctx context.Context) (*Team, error) + func (tuo *TeamUpdateOne) SaveX(ctx context.Context) *Team + func (tuo *TeamUpdateOne) Select(field string, fields ...string) *TeamUpdateOne + func (tuo *TeamUpdateOne) SetName(s string) *TeamUpdateOne + type Teams []*Team + type Tx struct + Task *TaskClient + Team *TeamClient + 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 uint + Edges UserEdges + ID int + Name string + func (u *User) QueryTasks() *TaskQuery + func (u *User) QueryTeams() *TeamQuery + 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) QueryTasks(u *User) *TaskQuery + func (c *UserClient) QueryTeams(u *User) *TeamQuery + 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) AddTaskIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddTasks(t ...*Task) *UserCreate + func (uc *UserCreate) AddTeamIDs(ids ...int) *UserCreate + func (uc *UserCreate) AddTeams(t ...*Team) *UserCreate + 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(u uint) *UserCreate + func (uc *UserCreate) SetName(s string) *UserCreate + func (uc *UserCreate) SetNillableAge(u *uint) *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 UserEdges struct + Tasks []*Task + Teams []*Team + func (e UserEdges) TasksOrErr() ([]*Task, error) + func (e UserEdges) TeamsOrErr() ([]*Team, error) + type UserFilter struct + func (f *UserFilter) Where(p entql.P) + func (f *UserFilter) WhereAge(p entql.UintP) + func (f *UserFilter) WhereHasTasks() + func (f *UserFilter) WhereHasTasksWith(preds ...predicate.Task) + func (f *UserFilter) WhereHasTeams() + func (f *UserFilter) WhereHasTeamsWith(preds ...predicate.Team) + func (f *UserFilter) WhereID(p entql.IntP) + func (f *UserFilter) WhereName(p entql.StringP) + 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(u int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddTaskIDs(ids ...int) + func (m *UserMutation) AddTeamIDs(ids ...int) + func (m *UserMutation) AddedAge() (r int, 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 uint, exists bool) + func (m *UserMutation) AgeCleared() bool + func (m *UserMutation) ClearAge() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearTasks() + func (m *UserMutation) ClearTeams() + 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) Filter() *UserFilter + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) Name() (r string, exists bool) + func (m *UserMutation) OldAge(ctx context.Context) (v uint, err error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldName(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) RemoveTaskIDs(ids ...int) + func (m *UserMutation) RemoveTeamIDs(ids ...int) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedTasksIDs() (ids []int) + func (m *UserMutation) RemovedTeamsIDs() (ids []int) + func (m *UserMutation) ResetAge() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetName() + func (m *UserMutation) ResetTasks() + func (m *UserMutation) ResetTeams() + func (m *UserMutation) SetAge(u uint) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetName(s string) + func (m *UserMutation) TasksCleared() bool + func (m *UserMutation) TasksIDs() (ids []int) + func (m *UserMutation) TeamsCleared() bool + func (m *UserMutation) TeamsIDs() (ids []int) + func (m *UserMutation) Type() string + func (m *UserMutation) Where(ps ...predicate.User) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + 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) Filter() *UserFilter + 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) QueryTasks() *TaskQuery + func (uq *UserQuery) QueryTeams() *TeamQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithTasks(opts ...func(*TaskQuery)) *UserQuery + func (uq *UserQuery) WithTeams(opts ...func(*TeamQuery)) *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(u int) *UserUpdate + func (uu *UserUpdate) AddTaskIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddTasks(t ...*Task) *UserUpdate + func (uu *UserUpdate) AddTeamIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) AddTeams(t ...*Team) *UserUpdate + func (uu *UserUpdate) ClearAge() *UserUpdate + func (uu *UserUpdate) ClearTasks() *UserUpdate + func (uu *UserUpdate) ClearTeams() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveTaskIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveTasks(t ...*Task) *UserUpdate + func (uu *UserUpdate) RemoveTeamIDs(ids ...int) *UserUpdate + func (uu *UserUpdate) RemoveTeams(t ...*Team) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetAge(u uint) *UserUpdate + func (uu *UserUpdate) SetNillableAge(u *uint) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddAge(u int) *UserUpdateOne + func (uuo *UserUpdateOne) AddTaskIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddTasks(t ...*Task) *UserUpdateOne + func (uuo *UserUpdateOne) AddTeamIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) AddTeams(t ...*Team) *UserUpdateOne + func (uuo *UserUpdateOne) ClearAge() *UserUpdateOne + func (uuo *UserUpdateOne) ClearTasks() *UserUpdateOne + func (uuo *UserUpdateOne) ClearTeams() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveTaskIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveTasks(t ...*Task) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveTeamIDs(ids ...int) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveTeams(t ...*Team) *UserUpdateOne + 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(u uint) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableAge(u *uint) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value