Versions in this module Expand all Collapse all v1 v1.0.0 Jun 29, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeAttachment + const TypeGroup + const TypeTodo + 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 Attachment struct + Edges AttachmentEdges + ID uuid.UUID + func (a *Attachment) QueryRecipients() *UserQuery + func (a *Attachment) QueryUser() *UserQuery + func (a *Attachment) String() string + func (a *Attachment) Unwrap() *Attachment + func (a *Attachment) Update() *AttachmentUpdateOne + type AttachmentClient struct + func NewAttachmentClient(c config) *AttachmentClient + func (c *AttachmentClient) Create() *AttachmentCreate + func (c *AttachmentClient) CreateBulk(builders ...*AttachmentCreate) *AttachmentCreateBulk + func (c *AttachmentClient) Delete() *AttachmentDelete + func (c *AttachmentClient) DeleteOne(a *Attachment) *AttachmentDeleteOne + func (c *AttachmentClient) DeleteOneID(id uuid.UUID) *AttachmentDeleteOne + func (c *AttachmentClient) Get(ctx context.Context, id uuid.UUID) (*Attachment, error) + func (c *AttachmentClient) GetX(ctx context.Context, id uuid.UUID) *Attachment + func (c *AttachmentClient) Hooks() []Hook + func (c *AttachmentClient) Query() *AttachmentQuery + func (c *AttachmentClient) QueryRecipients(a *Attachment) *UserQuery + func (c *AttachmentClient) QueryUser(a *Attachment) *UserQuery + func (c *AttachmentClient) Update() *AttachmentUpdate + func (c *AttachmentClient) UpdateOne(a *Attachment) *AttachmentUpdateOne + func (c *AttachmentClient) UpdateOneID(id uuid.UUID) *AttachmentUpdateOne + func (c *AttachmentClient) Use(hooks ...Hook) + type AttachmentCreate struct + func (ac *AttachmentCreate) AddRecipientIDs(ids ...int) *AttachmentCreate + func (ac *AttachmentCreate) AddRecipients(u ...*User) *AttachmentCreate + func (ac *AttachmentCreate) Mutation() *AttachmentMutation + func (ac *AttachmentCreate) Save(ctx context.Context) (*Attachment, error) + func (ac *AttachmentCreate) SaveX(ctx context.Context) *Attachment + func (ac *AttachmentCreate) SetID(u uuid.UUID) *AttachmentCreate + func (ac *AttachmentCreate) SetNillableUserID(id *int) *AttachmentCreate + func (ac *AttachmentCreate) SetUser(u *User) *AttachmentCreate + func (ac *AttachmentCreate) SetUserID(id int) *AttachmentCreate + type AttachmentCreateBulk struct + func (acb *AttachmentCreateBulk) Save(ctx context.Context) ([]*Attachment, error) + func (acb *AttachmentCreateBulk) SaveX(ctx context.Context) []*Attachment + type AttachmentDelete struct + func (ad *AttachmentDelete) Exec(ctx context.Context) (int, error) + func (ad *AttachmentDelete) ExecX(ctx context.Context) int + func (ad *AttachmentDelete) Where(ps ...predicate.Attachment) *AttachmentDelete + type AttachmentDeleteOne struct + func (ado *AttachmentDeleteOne) Exec(ctx context.Context) error + func (ado *AttachmentDeleteOne) ExecX(ctx context.Context) + type AttachmentEdges struct + Recipients []*User + User *User + func (e AttachmentEdges) RecipientsOrErr() ([]*User, error) + func (e AttachmentEdges) UserOrErr() (*User, error) + type AttachmentGroupBy struct + func (agb *AttachmentGroupBy) Aggregate(fns ...AggregateFunc) *AttachmentGroupBy + func (agb *AttachmentGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (agb *AttachmentGroupBy) BoolX(ctx context.Context) bool + func (agb *AttachmentGroupBy) Bools(ctx context.Context) ([]bool, error) + func (agb *AttachmentGroupBy) BoolsX(ctx context.Context) []bool + func (agb *AttachmentGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (agb *AttachmentGroupBy) Float64X(ctx context.Context) float64 + func (agb *AttachmentGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (agb *AttachmentGroupBy) Float64sX(ctx context.Context) []float64 + func (agb *AttachmentGroupBy) Int(ctx context.Context) (_ int, err error) + func (agb *AttachmentGroupBy) IntX(ctx context.Context) int + func (agb *AttachmentGroupBy) Ints(ctx context.Context) ([]int, error) + func (agb *AttachmentGroupBy) IntsX(ctx context.Context) []int + func (agb *AttachmentGroupBy) Scan(ctx context.Context, v interface{}) error + func (agb *AttachmentGroupBy) ScanX(ctx context.Context, v interface{}) + func (agb *AttachmentGroupBy) String(ctx context.Context) (_ string, err error) + func (agb *AttachmentGroupBy) StringX(ctx context.Context) string + func (agb *AttachmentGroupBy) Strings(ctx context.Context) ([]string, error) + func (agb *AttachmentGroupBy) StringsX(ctx context.Context) []string + type AttachmentMutation struct + func (m *AttachmentMutation) AddField(name string, value ent.Value) error + func (m *AttachmentMutation) AddRecipientIDs(ids ...int) + func (m *AttachmentMutation) AddedEdges() []string + func (m *AttachmentMutation) AddedField(name string) (ent.Value, bool) + func (m *AttachmentMutation) AddedFields() []string + func (m *AttachmentMutation) AddedIDs(name string) []ent.Value + func (m *AttachmentMutation) ClearEdge(name string) error + func (m *AttachmentMutation) ClearField(name string) error + func (m *AttachmentMutation) ClearRecipients() + func (m *AttachmentMutation) ClearUser() + func (m *AttachmentMutation) ClearedEdges() []string + func (m *AttachmentMutation) ClearedFields() []string + func (m *AttachmentMutation) EdgeCleared(name string) bool + func (m *AttachmentMutation) Field(name string) (ent.Value, bool) + func (m *AttachmentMutation) FieldCleared(name string) bool + func (m *AttachmentMutation) Fields() []string + func (m *AttachmentMutation) ID() (id uuid.UUID, exists bool) + func (m *AttachmentMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *AttachmentMutation) Op() Op + func (m *AttachmentMutation) RecipientsCleared() bool + func (m *AttachmentMutation) RecipientsIDs() (ids []int) + func (m *AttachmentMutation) RemoveRecipientIDs(ids ...int) + func (m *AttachmentMutation) RemovedEdges() []string + func (m *AttachmentMutation) RemovedIDs(name string) []ent.Value + func (m *AttachmentMutation) RemovedRecipientsIDs() (ids []int) + func (m *AttachmentMutation) ResetEdge(name string) error + func (m *AttachmentMutation) ResetField(name string) error + func (m *AttachmentMutation) ResetRecipients() + func (m *AttachmentMutation) ResetUser() + func (m *AttachmentMutation) SetField(name string, value ent.Value) error + func (m *AttachmentMutation) SetID(id uuid.UUID) + func (m *AttachmentMutation) SetUserID(id int) + func (m *AttachmentMutation) Type() string + func (m *AttachmentMutation) UserCleared() bool + func (m *AttachmentMutation) UserID() (id int, exists bool) + func (m *AttachmentMutation) UserIDs() (ids []int) + func (m AttachmentMutation) Client() *Client + func (m AttachmentMutation) Tx() (*Tx, error) + type AttachmentQuery struct + func (aq *AttachmentQuery) All(ctx context.Context) ([]*Attachment, error) + func (aq *AttachmentQuery) AllX(ctx context.Context) []*Attachment + func (aq *AttachmentQuery) Clone() *AttachmentQuery + func (aq *AttachmentQuery) Count(ctx context.Context) (int, error) + func (aq *AttachmentQuery) CountX(ctx context.Context) int + func (aq *AttachmentQuery) Exist(ctx context.Context) (bool, error) + func (aq *AttachmentQuery) ExistX(ctx context.Context) bool + func (aq *AttachmentQuery) First(ctx context.Context) (*Attachment, error) + func (aq *AttachmentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error) + func (aq *AttachmentQuery) FirstIDX(ctx context.Context) uuid.UUID + func (aq *AttachmentQuery) FirstX(ctx context.Context) *Attachment + func (aq *AttachmentQuery) GroupBy(field string, fields ...string) *AttachmentGroupBy + func (aq *AttachmentQuery) IDs(ctx context.Context) ([]uuid.UUID, error) + func (aq *AttachmentQuery) IDsX(ctx context.Context) []uuid.UUID + func (aq *AttachmentQuery) Limit(limit int) *AttachmentQuery + func (aq *AttachmentQuery) Offset(offset int) *AttachmentQuery + func (aq *AttachmentQuery) Only(ctx context.Context) (*Attachment, error) + func (aq *AttachmentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error) + func (aq *AttachmentQuery) OnlyIDX(ctx context.Context) uuid.UUID + func (aq *AttachmentQuery) OnlyX(ctx context.Context) *Attachment + func (aq *AttachmentQuery) Order(o ...OrderFunc) *AttachmentQuery + func (aq *AttachmentQuery) QueryRecipients() *UserQuery + func (aq *AttachmentQuery) QueryUser() *UserQuery + func (aq *AttachmentQuery) Select(field string, fields ...string) *AttachmentSelect + func (aq *AttachmentQuery) Unique(unique bool) *AttachmentQuery + func (aq *AttachmentQuery) Where(ps ...predicate.Attachment) *AttachmentQuery + func (aq *AttachmentQuery) WithRecipients(opts ...func(*UserQuery)) *AttachmentQuery + func (aq *AttachmentQuery) WithUser(opts ...func(*UserQuery)) *AttachmentQuery + type AttachmentSelect struct + func (as *AttachmentSelect) Bool(ctx context.Context) (_ bool, err error) + func (as *AttachmentSelect) BoolX(ctx context.Context) bool + func (as *AttachmentSelect) Bools(ctx context.Context) ([]bool, error) + func (as *AttachmentSelect) BoolsX(ctx context.Context) []bool + func (as *AttachmentSelect) Float64(ctx context.Context) (_ float64, err error) + func (as *AttachmentSelect) Float64X(ctx context.Context) float64 + func (as *AttachmentSelect) Float64s(ctx context.Context) ([]float64, error) + func (as *AttachmentSelect) Float64sX(ctx context.Context) []float64 + func (as *AttachmentSelect) Int(ctx context.Context) (_ int, err error) + func (as *AttachmentSelect) IntX(ctx context.Context) int + func (as *AttachmentSelect) Ints(ctx context.Context) ([]int, error) + func (as *AttachmentSelect) IntsX(ctx context.Context) []int + func (as *AttachmentSelect) Scan(ctx context.Context, v interface{}) error + func (as *AttachmentSelect) ScanX(ctx context.Context, v interface{}) + func (as *AttachmentSelect) String(ctx context.Context) (_ string, err error) + func (as *AttachmentSelect) StringX(ctx context.Context) string + func (as *AttachmentSelect) Strings(ctx context.Context) ([]string, error) + func (as *AttachmentSelect) StringsX(ctx context.Context) []string + type AttachmentUpdate struct + func (au *AttachmentUpdate) AddRecipientIDs(ids ...int) *AttachmentUpdate + func (au *AttachmentUpdate) AddRecipients(u ...*User) *AttachmentUpdate + func (au *AttachmentUpdate) ClearRecipients() *AttachmentUpdate + func (au *AttachmentUpdate) ClearUser() *AttachmentUpdate + func (au *AttachmentUpdate) Exec(ctx context.Context) error + func (au *AttachmentUpdate) ExecX(ctx context.Context) + func (au *AttachmentUpdate) Mutation() *AttachmentMutation + func (au *AttachmentUpdate) RemoveRecipientIDs(ids ...int) *AttachmentUpdate + func (au *AttachmentUpdate) RemoveRecipients(u ...*User) *AttachmentUpdate + func (au *AttachmentUpdate) Save(ctx context.Context) (int, error) + func (au *AttachmentUpdate) SaveX(ctx context.Context) int + func (au *AttachmentUpdate) SetNillableUserID(id *int) *AttachmentUpdate + func (au *AttachmentUpdate) SetUser(u *User) *AttachmentUpdate + func (au *AttachmentUpdate) SetUserID(id int) *AttachmentUpdate + func (au *AttachmentUpdate) Where(ps ...predicate.Attachment) *AttachmentUpdate + type AttachmentUpdateOne struct + func (auo *AttachmentUpdateOne) AddRecipientIDs(ids ...int) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) AddRecipients(u ...*User) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) ClearRecipients() *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) ClearUser() *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) Exec(ctx context.Context) error + func (auo *AttachmentUpdateOne) ExecX(ctx context.Context) + func (auo *AttachmentUpdateOne) Mutation() *AttachmentMutation + func (auo *AttachmentUpdateOne) RemoveRecipientIDs(ids ...int) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) RemoveRecipients(u ...*User) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) Save(ctx context.Context) (*Attachment, error) + func (auo *AttachmentUpdateOne) SaveX(ctx context.Context) *Attachment + func (auo *AttachmentUpdateOne) Select(field string, fields ...string) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) SetNillableUserID(id *int) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) SetUser(u *User) *AttachmentUpdateOne + func (auo *AttachmentUpdateOne) SetUserID(id int) *AttachmentUpdateOne + type Attachments []*Attachment + type Client struct + Attachment *AttachmentClient + Group *GroupClient + Schema *migrate.Schema + Todo *TodoClient + User *UserClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) + func (c *Client) Close() error + func (c *Client) Debug() *Client + func (c *Client) 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 Group struct + Edges GroupEdges + ID int + Name string + func (gr *Group) QueryUsers() *UserQuery + func (gr *Group) String() string + func (gr *Group) Unwrap() *Group + func (gr *Group) Update() *GroupUpdateOne + type GroupClient struct + func NewGroupClient(c config) *GroupClient + func (c *GroupClient) Create() *GroupCreate + func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk + func (c *GroupClient) Delete() *GroupDelete + func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne + func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne + func (c *GroupClient) Get(ctx context.Context, id int) (*Group, error) + func (c *GroupClient) GetX(ctx context.Context, id int) *Group + func (c *GroupClient) Hooks() []Hook + func (c *GroupClient) Query() *GroupQuery + func (c *GroupClient) QueryUsers(gr *Group) *UserQuery + func (c *GroupClient) Update() *GroupUpdate + func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne + func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne + func (c *GroupClient) Use(hooks ...Hook) + type GroupCreate struct + func (gc *GroupCreate) AddUserIDs(ids ...int) *GroupCreate + func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate + func (gc *GroupCreate) Mutation() *GroupMutation + func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) + func (gc *GroupCreate) SaveX(ctx context.Context) *Group + func (gc *GroupCreate) SetName(s string) *GroupCreate + type GroupCreateBulk struct + func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) + func (gcb *GroupCreateBulk) SaveX(ctx context.Context) []*Group + type GroupDelete struct + func (gd *GroupDelete) Exec(ctx context.Context) (int, error) + func (gd *GroupDelete) ExecX(ctx context.Context) int + func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete + type GroupDeleteOne struct + func (gdo *GroupDeleteOne) Exec(ctx context.Context) error + func (gdo *GroupDeleteOne) ExecX(ctx context.Context) + type GroupEdges struct + Users []*User + func (e GroupEdges) UsersOrErr() ([]*User, error) + type GroupGroupBy struct + func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy + func (ggb *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ggb *GroupGroupBy) BoolX(ctx context.Context) bool + func (ggb *GroupGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ggb *GroupGroupBy) BoolsX(ctx context.Context) []bool + func (ggb *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ggb *GroupGroupBy) Float64X(ctx context.Context) float64 + func (ggb *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ggb *GroupGroupBy) Float64sX(ctx context.Context) []float64 + func (ggb *GroupGroupBy) Int(ctx context.Context) (_ int, err error) + func (ggb *GroupGroupBy) IntX(ctx context.Context) int + func (ggb *GroupGroupBy) Ints(ctx context.Context) ([]int, error) + func (ggb *GroupGroupBy) IntsX(ctx context.Context) []int + func (ggb *GroupGroupBy) Scan(ctx context.Context, v interface{}) error + func (ggb *GroupGroupBy) ScanX(ctx context.Context, v interface{}) + func (ggb *GroupGroupBy) String(ctx context.Context) (_ string, err error) + func (ggb *GroupGroupBy) StringX(ctx context.Context) string + func (ggb *GroupGroupBy) Strings(ctx context.Context) ([]string, error) + func (ggb *GroupGroupBy) StringsX(ctx context.Context) []string + type GroupMutation struct + func (m *GroupMutation) AddField(name string, value ent.Value) error + func (m *GroupMutation) AddUserIDs(ids ...int) + func (m *GroupMutation) AddedEdges() []string + func (m *GroupMutation) AddedField(name string) (ent.Value, bool) + func (m *GroupMutation) AddedFields() []string + func (m *GroupMutation) AddedIDs(name string) []ent.Value + func (m *GroupMutation) ClearEdge(name string) error + func (m *GroupMutation) ClearField(name string) error + func (m *GroupMutation) ClearUsers() + func (m *GroupMutation) ClearedEdges() []string + func (m *GroupMutation) ClearedFields() []string + func (m *GroupMutation) EdgeCleared(name string) bool + func (m *GroupMutation) Field(name string) (ent.Value, bool) + func (m *GroupMutation) FieldCleared(name string) bool + func (m *GroupMutation) Fields() []string + func (m *GroupMutation) ID() (id int, exists bool) + func (m *GroupMutation) Name() (r string, exists bool) + func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) + func (m *GroupMutation) Op() Op + func (m *GroupMutation) RemoveUserIDs(ids ...int) + func (m *GroupMutation) RemovedEdges() []string + func (m *GroupMutation) RemovedIDs(name string) []ent.Value + func (m *GroupMutation) RemovedUsersIDs() (ids []int) + func (m *GroupMutation) ResetEdge(name string) error + func (m *GroupMutation) ResetField(name string) error + func (m *GroupMutation) ResetName() + func (m *GroupMutation) ResetUsers() + func (m *GroupMutation) SetField(name string, value ent.Value) error + func (m *GroupMutation) SetName(s string) + func (m *GroupMutation) Type() string + func (m *GroupMutation) UsersCleared() bool + func (m *GroupMutation) UsersIDs() (ids []int) + func (m GroupMutation) Client() *Client + func (m GroupMutation) Tx() (*Tx, error) + type GroupQuery struct + func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error) + func (gq *GroupQuery) AllX(ctx context.Context) []*Group + func (gq *GroupQuery) Clone() *GroupQuery + func (gq *GroupQuery) Count(ctx context.Context) (int, error) + func (gq *GroupQuery) CountX(ctx context.Context) int + func (gq *GroupQuery) Exist(ctx context.Context) (bool, error) + func (gq *GroupQuery) ExistX(ctx context.Context) bool + func (gq *GroupQuery) First(ctx context.Context) (*Group, error) + func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error) + func (gq *GroupQuery) FirstIDX(ctx context.Context) int + func (gq *GroupQuery) FirstX(ctx context.Context) *Group + func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy + func (gq *GroupQuery) IDs(ctx context.Context) ([]int, error) + func (gq *GroupQuery) IDsX(ctx context.Context) []int + func (gq *GroupQuery) Limit(limit int) *GroupQuery + func (gq *GroupQuery) Offset(offset int) *GroupQuery + func (gq *GroupQuery) Only(ctx context.Context) (*Group, error) + func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error) + func (gq *GroupQuery) OnlyIDX(ctx context.Context) int + func (gq *GroupQuery) OnlyX(ctx context.Context) *Group + func (gq *GroupQuery) Order(o ...OrderFunc) *GroupQuery + func (gq *GroupQuery) QueryUsers() *UserQuery + func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect + func (gq *GroupQuery) Unique(unique bool) *GroupQuery + func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery + func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery + type GroupSelect struct + func (gs *GroupSelect) Bool(ctx context.Context) (_ bool, err error) + func (gs *GroupSelect) BoolX(ctx context.Context) bool + func (gs *GroupSelect) Bools(ctx context.Context) ([]bool, error) + func (gs *GroupSelect) BoolsX(ctx context.Context) []bool + func (gs *GroupSelect) Float64(ctx context.Context) (_ float64, err error) + func (gs *GroupSelect) Float64X(ctx context.Context) float64 + func (gs *GroupSelect) Float64s(ctx context.Context) ([]float64, error) + func (gs *GroupSelect) Float64sX(ctx context.Context) []float64 + func (gs *GroupSelect) Int(ctx context.Context) (_ int, err error) + func (gs *GroupSelect) IntX(ctx context.Context) int + func (gs *GroupSelect) Ints(ctx context.Context) ([]int, error) + func (gs *GroupSelect) IntsX(ctx context.Context) []int + func (gs *GroupSelect) Scan(ctx context.Context, v interface{}) error + func (gs *GroupSelect) ScanX(ctx context.Context, v interface{}) + func (gs *GroupSelect) String(ctx context.Context) (_ string, err error) + func (gs *GroupSelect) StringX(ctx context.Context) string + func (gs *GroupSelect) Strings(ctx context.Context) ([]string, error) + func (gs *GroupSelect) StringsX(ctx context.Context) []string + type GroupUpdate struct + func (gu *GroupUpdate) AddUserIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate + func (gu *GroupUpdate) ClearUsers() *GroupUpdate + func (gu *GroupUpdate) Exec(ctx context.Context) error + func (gu *GroupUpdate) ExecX(ctx context.Context) + func (gu *GroupUpdate) Mutation() *GroupMutation + func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate + func (gu *GroupUpdate) Save(ctx context.Context) (int, error) + func (gu *GroupUpdate) SaveX(ctx context.Context) int + func (gu *GroupUpdate) SetName(s string) *GroupUpdate + func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate + type GroupUpdateOne struct + func (guo *GroupUpdateOne) AddUserIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne + func (guo *GroupUpdateOne) ClearUsers() *GroupUpdateOne + func (guo *GroupUpdateOne) Exec(ctx context.Context) error + func (guo *GroupUpdateOne) ExecX(ctx context.Context) + func (guo *GroupUpdateOne) Mutation() *GroupMutation + func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne + func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error) + func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group + func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne + func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne + type Groups []*Group + 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 Todo struct + Edges TodoEdges + ID int + Status todo.Status + Task string + func (t *Todo) QueryUser() *UserQuery + func (t *Todo) String() string + func (t *Todo) Unwrap() *Todo + func (t *Todo) Update() *TodoUpdateOne + type TodoClient struct + func NewTodoClient(c config) *TodoClient + func (c *TodoClient) Create() *TodoCreate + func (c *TodoClient) CreateBulk(builders ...*TodoCreate) *TodoCreateBulk + func (c *TodoClient) Delete() *TodoDelete + func (c *TodoClient) DeleteOne(t *Todo) *TodoDeleteOne + func (c *TodoClient) DeleteOneID(id int) *TodoDeleteOne + func (c *TodoClient) Get(ctx context.Context, id int) (*Todo, error) + func (c *TodoClient) GetX(ctx context.Context, id int) *Todo + func (c *TodoClient) Hooks() []Hook + func (c *TodoClient) Query() *TodoQuery + func (c *TodoClient) QueryUser(t *Todo) *UserQuery + 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 TodoCreate struct + 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) SetNillableStatus(t *todo.Status) *TodoCreate + func (tc *TodoCreate) SetNillableUserID(id *int) *TodoCreate + func (tc *TodoCreate) SetStatus(t todo.Status) *TodoCreate + func (tc *TodoCreate) SetTask(s string) *TodoCreate + func (tc *TodoCreate) SetUser(u *User) *TodoCreate + func (tc *TodoCreate) SetUserID(id int) *TodoCreate + type TodoCreateBulk struct + func (tcb *TodoCreateBulk) Save(ctx context.Context) ([]*Todo, error) + func (tcb *TodoCreateBulk) SaveX(ctx context.Context) []*Todo + type TodoDelete struct + func (td *TodoDelete) Exec(ctx context.Context) (int, error) + func (td *TodoDelete) ExecX(ctx context.Context) int + func (td *TodoDelete) Where(ps ...predicate.Todo) *TodoDelete + type TodoDeleteOne struct + func (tdo *TodoDeleteOne) Exec(ctx context.Context) error + func (tdo *TodoDeleteOne) ExecX(ctx context.Context) + type TodoEdges struct + User *User + func (e TodoEdges) UserOrErr() (*User, error) + type TodoGroupBy struct + func (tgb *TodoGroupBy) Aggregate(fns ...AggregateFunc) *TodoGroupBy + func (tgb *TodoGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (tgb *TodoGroupBy) BoolX(ctx context.Context) bool + func (tgb *TodoGroupBy) Bools(ctx context.Context) ([]bool, error) + func (tgb *TodoGroupBy) BoolsX(ctx context.Context) []bool + func (tgb *TodoGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (tgb *TodoGroupBy) Float64X(ctx context.Context) float64 + func (tgb *TodoGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (tgb *TodoGroupBy) Float64sX(ctx context.Context) []float64 + func (tgb *TodoGroupBy) Int(ctx context.Context) (_ int, err error) + func (tgb *TodoGroupBy) IntX(ctx context.Context) int + func (tgb *TodoGroupBy) Ints(ctx context.Context) ([]int, error) + func (tgb *TodoGroupBy) IntsX(ctx context.Context) []int + func (tgb *TodoGroupBy) Scan(ctx context.Context, v interface{}) error + func (tgb *TodoGroupBy) ScanX(ctx context.Context, v interface{}) + func (tgb *TodoGroupBy) String(ctx context.Context) (_ string, err error) + func (tgb *TodoGroupBy) StringX(ctx context.Context) string + func (tgb *TodoGroupBy) Strings(ctx context.Context) ([]string, error) + func (tgb *TodoGroupBy) StringsX(ctx context.Context) []string + type TodoMutation struct + func (m *TodoMutation) AddField(name string, value ent.Value) error + 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) ClearEdge(name string) error + func (m *TodoMutation) ClearField(name string) error + func (m *TodoMutation) ClearUser() + func (m *TodoMutation) ClearedEdges() []string + func (m *TodoMutation) ClearedFields() []string + 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) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *TodoMutation) OldStatus(ctx context.Context) (v todo.Status, err error) + func (m *TodoMutation) OldTask(ctx context.Context) (v string, err error) + func (m *TodoMutation) Op() Op + func (m *TodoMutation) RemovedEdges() []string + func (m *TodoMutation) RemovedIDs(name string) []ent.Value + func (m *TodoMutation) ResetEdge(name string) error + func (m *TodoMutation) ResetField(name string) error + func (m *TodoMutation) ResetStatus() + func (m *TodoMutation) ResetTask() + func (m *TodoMutation) ResetUser() + func (m *TodoMutation) SetField(name string, value ent.Value) error + func (m *TodoMutation) SetStatus(t todo.Status) + func (m *TodoMutation) SetTask(s string) + func (m *TodoMutation) SetUserID(id int) + func (m *TodoMutation) Status() (r todo.Status, exists bool) + func (m *TodoMutation) Task() (r string, exists bool) + func (m *TodoMutation) Type() string + func (m *TodoMutation) UserCleared() bool + func (m *TodoMutation) UserID() (id int, exists bool) + func (m *TodoMutation) UserIDs() (ids []int) + func (m TodoMutation) Client() *Client + func (m TodoMutation) Tx() (*Tx, error) + type TodoQuery struct + func (tq *TodoQuery) All(ctx context.Context) ([]*Todo, error) + func (tq *TodoQuery) AllX(ctx context.Context) []*Todo + func (tq *TodoQuery) Clone() *TodoQuery + func (tq *TodoQuery) Count(ctx context.Context) (int, error) + func (tq *TodoQuery) CountX(ctx context.Context) int + func (tq *TodoQuery) Exist(ctx context.Context) (bool, error) + func (tq *TodoQuery) ExistX(ctx context.Context) bool + func (tq *TodoQuery) First(ctx context.Context) (*Todo, error) + func (tq *TodoQuery) FirstID(ctx context.Context) (id int, err error) + func (tq *TodoQuery) FirstIDX(ctx context.Context) int + func (tq *TodoQuery) FirstX(ctx context.Context) *Todo + func (tq *TodoQuery) GroupBy(field string, fields ...string) *TodoGroupBy + func (tq *TodoQuery) IDs(ctx context.Context) ([]int, error) + func (tq *TodoQuery) IDsX(ctx context.Context) []int + func (tq *TodoQuery) Limit(limit int) *TodoQuery + func (tq *TodoQuery) Offset(offset int) *TodoQuery + func (tq *TodoQuery) Only(ctx context.Context) (*Todo, error) + func (tq *TodoQuery) OnlyID(ctx context.Context) (id int, err error) + func (tq *TodoQuery) OnlyIDX(ctx context.Context) int + func (tq *TodoQuery) OnlyX(ctx context.Context) *Todo + func (tq *TodoQuery) Order(o ...OrderFunc) *TodoQuery + func (tq *TodoQuery) QueryUser() *UserQuery + func (tq *TodoQuery) Select(field string, fields ...string) *TodoSelect + func (tq *TodoQuery) Unique(unique bool) *TodoQuery + func (tq *TodoQuery) Where(ps ...predicate.Todo) *TodoQuery + func (tq *TodoQuery) WithUser(opts ...func(*UserQuery)) *TodoQuery + type TodoSelect struct + func (ts *TodoSelect) Bool(ctx context.Context) (_ bool, err error) + func (ts *TodoSelect) BoolX(ctx context.Context) bool + func (ts *TodoSelect) Bools(ctx context.Context) ([]bool, error) + func (ts *TodoSelect) BoolsX(ctx context.Context) []bool + func (ts *TodoSelect) Float64(ctx context.Context) (_ float64, err error) + func (ts *TodoSelect) Float64X(ctx context.Context) float64 + func (ts *TodoSelect) Float64s(ctx context.Context) ([]float64, error) + func (ts *TodoSelect) Float64sX(ctx context.Context) []float64 + func (ts *TodoSelect) Int(ctx context.Context) (_ int, err error) + func (ts *TodoSelect) IntX(ctx context.Context) int + func (ts *TodoSelect) Ints(ctx context.Context) ([]int, error) + func (ts *TodoSelect) IntsX(ctx context.Context) []int + func (ts *TodoSelect) Scan(ctx context.Context, v interface{}) error + func (ts *TodoSelect) ScanX(ctx context.Context, v interface{}) + func (ts *TodoSelect) String(ctx context.Context) (_ string, err error) + func (ts *TodoSelect) StringX(ctx context.Context) string + func (ts *TodoSelect) Strings(ctx context.Context) ([]string, error) + func (ts *TodoSelect) StringsX(ctx context.Context) []string + type TodoUpdate struct + func (tu *TodoUpdate) ClearUser() *TodoUpdate + func (tu *TodoUpdate) Exec(ctx context.Context) error + func (tu *TodoUpdate) ExecX(ctx context.Context) + func (tu *TodoUpdate) Mutation() *TodoMutation + func (tu *TodoUpdate) Save(ctx context.Context) (int, error) + func (tu *TodoUpdate) SaveX(ctx context.Context) int + func (tu *TodoUpdate) SetNillableStatus(t *todo.Status) *TodoUpdate + func (tu *TodoUpdate) SetNillableUserID(id *int) *TodoUpdate + func (tu *TodoUpdate) SetStatus(t todo.Status) *TodoUpdate + func (tu *TodoUpdate) SetTask(s string) *TodoUpdate + func (tu *TodoUpdate) SetUser(u *User) *TodoUpdate + func (tu *TodoUpdate) SetUserID(id int) *TodoUpdate + func (tu *TodoUpdate) Where(ps ...predicate.Todo) *TodoUpdate + type TodoUpdateOne struct + func (tuo *TodoUpdateOne) ClearUser() *TodoUpdateOne + func (tuo *TodoUpdateOne) Exec(ctx context.Context) error + func (tuo *TodoUpdateOne) ExecX(ctx context.Context) + func (tuo *TodoUpdateOne) Mutation() *TodoMutation + 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) SetNillableStatus(t *todo.Status) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetNillableUserID(id *int) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetStatus(t todo.Status) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetTask(s string) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetUser(u *User) *TodoUpdateOne + func (tuo *TodoUpdateOne) SetUserID(id int) *TodoUpdateOne + type Todos []*Todo + type Tx struct + Attachment *AttachmentClient + Group *GroupClient + Todo *TodoClient + User *UserClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type User struct + Banned bool + CrmID uuid.UUID + CustomPb uint8 + Edges UserEdges + Exp uint64 + ExternalID int + ID int + Joined time.Time + OptBool bool + OptNum int + OptStr string + Points uint + Status user.Status + UserName string + func (u *User) QueryAttachment() *AttachmentQuery + func (u *User) QueryGroup() *GroupQuery + func (u *User) QueryReceived() *AttachmentQuery + 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) QueryAttachment(u *User) *AttachmentQuery + func (c *UserClient) QueryGroup(u *User) *GroupQuery + func (c *UserClient) QueryReceived(u *User) *AttachmentQuery + 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) AddReceived(a ...*Attachment) *UserCreate + func (uc *UserCreate) AddReceivedIDs(ids ...uuid.UUID) *UserCreate + 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) SetAttachment(a *Attachment) *UserCreate + func (uc *UserCreate) SetAttachmentID(id uuid.UUID) *UserCreate + func (uc *UserCreate) SetBanned(b bool) *UserCreate + func (uc *UserCreate) SetCrmID(u uuid.UUID) *UserCreate + func (uc *UserCreate) SetCustomPb(u uint8) *UserCreate + func (uc *UserCreate) SetExp(u uint64) *UserCreate + func (uc *UserCreate) SetExternalID(i int) *UserCreate + func (uc *UserCreate) SetGroup(g *Group) *UserCreate + func (uc *UserCreate) SetGroupID(id int) *UserCreate + func (uc *UserCreate) SetJoined(t time.Time) *UserCreate + func (uc *UserCreate) SetNillableAttachmentID(id *uuid.UUID) *UserCreate + func (uc *UserCreate) SetNillableBanned(b *bool) *UserCreate + func (uc *UserCreate) SetNillableGroupID(id *int) *UserCreate + func (uc *UserCreate) SetNillableOptBool(b *bool) *UserCreate + func (uc *UserCreate) SetNillableOptNum(i *int) *UserCreate + func (uc *UserCreate) SetNillableOptStr(s *string) *UserCreate + func (uc *UserCreate) SetOptBool(b bool) *UserCreate + func (uc *UserCreate) SetOptNum(i int) *UserCreate + func (uc *UserCreate) SetOptStr(s string) *UserCreate + func (uc *UserCreate) SetPoints(u uint) *UserCreate + func (uc *UserCreate) SetStatus(u user.Status) *UserCreate + func (uc *UserCreate) SetUserName(s string) *UserCreate + type UserCreateBulk struct + 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 + Attachment *Attachment + Group *Group + Received []*Attachment + func (e UserEdges) AttachmentOrErr() (*Attachment, error) + func (e UserEdges) GroupOrErr() (*Group, error) + func (e UserEdges) ReceivedOrErr() ([]*Attachment, error) + type UserGroupBy struct + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ugb *UserGroupBy) BoolX(ctx context.Context) bool + func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool + func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ugb *UserGroupBy) Float64X(ctx context.Context) float64 + func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (ugb *UserGroupBy) IntX(ctx context.Context) int + func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (ugb *UserGroupBy) IntsX(ctx context.Context) []int + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (ugb *UserGroupBy) StringX(ctx context.Context) string + func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (ugb *UserGroupBy) StringsX(ctx context.Context) []string + type UserMutation struct + func (m *UserMutation) AddCustomPb(u uint8) + func (m *UserMutation) AddExp(u uint64) + func (m *UserMutation) AddExternalID(i int) + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddOptNum(i int) + func (m *UserMutation) AddPoints(u uint) + func (m *UserMutation) AddReceivedIDs(ids ...uuid.UUID) + func (m *UserMutation) AddedCustomPb() (r uint8, exists bool) + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedExp() (r uint64, exists bool) + func (m *UserMutation) AddedExternalID() (r int, exists bool) + 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) AddedOptNum() (r int, exists bool) + func (m *UserMutation) AddedPoints() (r uint, exists bool) + func (m *UserMutation) AttachmentCleared() bool + func (m *UserMutation) AttachmentID() (id uuid.UUID, exists bool) + func (m *UserMutation) AttachmentIDs() (ids []uuid.UUID) + func (m *UserMutation) Banned() (r bool, exists bool) + func (m *UserMutation) ClearAttachment() + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearGroup() + func (m *UserMutation) ClearOptBool() + func (m *UserMutation) ClearOptNum() + func (m *UserMutation) ClearOptStr() + func (m *UserMutation) ClearReceived() + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) CrmID() (r uuid.UUID, exists bool) + func (m *UserMutation) CustomPb() (r uint8, exists bool) + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Exp() (r uint64, exists bool) + func (m *UserMutation) ExternalID() (r int, exists 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) GroupCleared() bool + func (m *UserMutation) GroupID() (id int, exists bool) + func (m *UserMutation) GroupIDs() (ids []int) + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) Joined() (r time.Time, exists bool) + func (m *UserMutation) OldBanned(ctx context.Context) (v bool, err error) + func (m *UserMutation) OldCrmID(ctx context.Context) (v uuid.UUID, err error) + func (m *UserMutation) OldCustomPb(ctx context.Context) (v uint8, err error) + func (m *UserMutation) OldExp(ctx context.Context) (v uint64, err error) + func (m *UserMutation) OldExternalID(ctx context.Context) (v int, err error) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldJoined(ctx context.Context) (v time.Time, err error) + func (m *UserMutation) OldOptBool(ctx context.Context) (v bool, err error) + func (m *UserMutation) OldOptNum(ctx context.Context) (v int, err error) + func (m *UserMutation) OldOptStr(ctx context.Context) (v string, err error) + func (m *UserMutation) OldPoints(ctx context.Context) (v uint, err error) + func (m *UserMutation) OldStatus(ctx context.Context) (v user.Status, err error) + func (m *UserMutation) OldUserName(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) OptBool() (r bool, exists bool) + func (m *UserMutation) OptBoolCleared() bool + func (m *UserMutation) OptNum() (r int, exists bool) + func (m *UserMutation) OptNumCleared() bool + func (m *UserMutation) OptStr() (r string, exists bool) + func (m *UserMutation) OptStrCleared() bool + func (m *UserMutation) Points() (r uint, exists bool) + func (m *UserMutation) ReceivedCleared() bool + func (m *UserMutation) ReceivedIDs() (ids []uuid.UUID) + func (m *UserMutation) RemoveReceivedIDs(ids ...uuid.UUID) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) RemovedReceivedIDs() (ids []uuid.UUID) + func (m *UserMutation) ResetAttachment() + func (m *UserMutation) ResetBanned() + func (m *UserMutation) ResetCrmID() + func (m *UserMutation) ResetCustomPb() + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetExp() + func (m *UserMutation) ResetExternalID() + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetGroup() + func (m *UserMutation) ResetJoined() + func (m *UserMutation) ResetOptBool() + func (m *UserMutation) ResetOptNum() + func (m *UserMutation) ResetOptStr() + func (m *UserMutation) ResetPoints() + func (m *UserMutation) ResetReceived() + func (m *UserMutation) ResetStatus() + func (m *UserMutation) ResetUserName() + func (m *UserMutation) SetAttachmentID(id uuid.UUID) + func (m *UserMutation) SetBanned(b bool) + func (m *UserMutation) SetCrmID(u uuid.UUID) + func (m *UserMutation) SetCustomPb(u uint8) + func (m *UserMutation) SetExp(u uint64) + func (m *UserMutation) SetExternalID(i int) + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetGroupID(id int) + func (m *UserMutation) SetJoined(t time.Time) + func (m *UserMutation) SetOptBool(b bool) + func (m *UserMutation) SetOptNum(i int) + func (m *UserMutation) SetOptStr(s string) + func (m *UserMutation) SetPoints(u uint) + func (m *UserMutation) SetStatus(u user.Status) + func (m *UserMutation) SetUserName(s string) + func (m *UserMutation) Status() (r user.Status, exists bool) + func (m *UserMutation) Type() string + func (m *UserMutation) UserName() (r string, exists bool) + 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) 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) QueryAttachment() *AttachmentQuery + func (uq *UserQuery) QueryGroup() *GroupQuery + func (uq *UserQuery) QueryReceived() *AttachmentQuery + func (uq *UserQuery) Select(field string, fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + func (uq *UserQuery) WithAttachment(opts ...func(*AttachmentQuery)) *UserQuery + func (uq *UserQuery) WithGroup(opts ...func(*GroupQuery)) *UserQuery + func (uq *UserQuery) WithReceived(opts ...func(*AttachmentQuery)) *UserQuery + type UserSelect struct + func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (us *UserSelect) BoolX(ctx context.Context) bool + func (us *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (us *UserSelect) BoolsX(ctx context.Context) []bool + func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (us *UserSelect) Float64X(ctx context.Context) float64 + func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (us *UserSelect) Float64sX(ctx context.Context) []float64 + func (us *UserSelect) Int(ctx context.Context) (_ int, err error) + func (us *UserSelect) IntX(ctx context.Context) int + func (us *UserSelect) Ints(ctx context.Context) ([]int, error) + func (us *UserSelect) IntsX(ctx context.Context) []int + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + func (us *UserSelect) ScanX(ctx context.Context, v interface{}) + func (us *UserSelect) String(ctx context.Context) (_ string, err error) + func (us *UserSelect) StringX(ctx context.Context) string + func (us *UserSelect) Strings(ctx context.Context) ([]string, error) + func (us *UserSelect) StringsX(ctx context.Context) []string + type UserUpdate struct + func (uu *UserUpdate) AddCustomPb(u uint8) *UserUpdate + func (uu *UserUpdate) AddExp(u uint64) *UserUpdate + func (uu *UserUpdate) AddExternalID(i int) *UserUpdate + func (uu *UserUpdate) AddOptNum(i int) *UserUpdate + func (uu *UserUpdate) AddPoints(u uint) *UserUpdate + func (uu *UserUpdate) AddReceived(a ...*Attachment) *UserUpdate + func (uu *UserUpdate) AddReceivedIDs(ids ...uuid.UUID) *UserUpdate + func (uu *UserUpdate) ClearAttachment() *UserUpdate + func (uu *UserUpdate) ClearGroup() *UserUpdate + func (uu *UserUpdate) ClearOptBool() *UserUpdate + func (uu *UserUpdate) ClearOptNum() *UserUpdate + func (uu *UserUpdate) ClearOptStr() *UserUpdate + func (uu *UserUpdate) ClearReceived() *UserUpdate + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) RemoveReceived(a ...*Attachment) *UserUpdate + func (uu *UserUpdate) RemoveReceivedIDs(ids ...uuid.UUID) *UserUpdate + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetAttachment(a *Attachment) *UserUpdate + func (uu *UserUpdate) SetAttachmentID(id uuid.UUID) *UserUpdate + func (uu *UserUpdate) SetBanned(b bool) *UserUpdate + func (uu *UserUpdate) SetCrmID(u uuid.UUID) *UserUpdate + func (uu *UserUpdate) SetCustomPb(u uint8) *UserUpdate + func (uu *UserUpdate) SetExp(u uint64) *UserUpdate + func (uu *UserUpdate) SetExternalID(i int) *UserUpdate + func (uu *UserUpdate) SetGroup(g *Group) *UserUpdate + func (uu *UserUpdate) SetGroupID(id int) *UserUpdate + func (uu *UserUpdate) SetNillableAttachmentID(id *uuid.UUID) *UserUpdate + func (uu *UserUpdate) SetNillableBanned(b *bool) *UserUpdate + func (uu *UserUpdate) SetNillableGroupID(id *int) *UserUpdate + func (uu *UserUpdate) SetNillableOptBool(b *bool) *UserUpdate + func (uu *UserUpdate) SetNillableOptNum(i *int) *UserUpdate + func (uu *UserUpdate) SetNillableOptStr(s *string) *UserUpdate + func (uu *UserUpdate) SetOptBool(b bool) *UserUpdate + func (uu *UserUpdate) SetOptNum(i int) *UserUpdate + func (uu *UserUpdate) SetOptStr(s string) *UserUpdate + func (uu *UserUpdate) SetPoints(u uint) *UserUpdate + func (uu *UserUpdate) SetStatus(u user.Status) *UserUpdate + func (uu *UserUpdate) SetUserName(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) AddCustomPb(u uint8) *UserUpdateOne + func (uuo *UserUpdateOne) AddExp(u uint64) *UserUpdateOne + func (uuo *UserUpdateOne) AddExternalID(i int) *UserUpdateOne + func (uuo *UserUpdateOne) AddOptNum(i int) *UserUpdateOne + func (uuo *UserUpdateOne) AddPoints(u uint) *UserUpdateOne + func (uuo *UserUpdateOne) AddReceived(a ...*Attachment) *UserUpdateOne + func (uuo *UserUpdateOne) AddReceivedIDs(ids ...uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) ClearAttachment() *UserUpdateOne + func (uuo *UserUpdateOne) ClearGroup() *UserUpdateOne + func (uuo *UserUpdateOne) ClearOptBool() *UserUpdateOne + func (uuo *UserUpdateOne) ClearOptNum() *UserUpdateOne + func (uuo *UserUpdateOne) ClearOptStr() *UserUpdateOne + func (uuo *UserUpdateOne) ClearReceived() *UserUpdateOne + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) RemoveReceived(a ...*Attachment) *UserUpdateOne + func (uuo *UserUpdateOne) RemoveReceivedIDs(ids ...uuid.UUID) *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) SetAttachment(a *Attachment) *UserUpdateOne + func (uuo *UserUpdateOne) SetAttachmentID(id uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) SetBanned(b bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetCrmID(u uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) SetCustomPb(u uint8) *UserUpdateOne + func (uuo *UserUpdateOne) SetExp(u uint64) *UserUpdateOne + func (uuo *UserUpdateOne) SetExternalID(i int) *UserUpdateOne + func (uuo *UserUpdateOne) SetGroup(g *Group) *UserUpdateOne + func (uuo *UserUpdateOne) SetGroupID(id int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableAttachmentID(id *uuid.UUID) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableBanned(b *bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableGroupID(id *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableOptBool(b *bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableOptNum(i *int) *UserUpdateOne + func (uuo *UserUpdateOne) SetNillableOptStr(s *string) *UserUpdateOne + func (uuo *UserUpdateOne) SetOptBool(b bool) *UserUpdateOne + func (uuo *UserUpdateOne) SetOptNum(i int) *UserUpdateOne + func (uuo *UserUpdateOne) SetOptStr(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetPoints(u uint) *UserUpdateOne + func (uuo *UserUpdateOne) SetStatus(u user.Status) *UserUpdateOne + func (uuo *UserUpdateOne) SetUserName(s string) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value