Versions in this module Expand all Collapse all v0 v0.4.3 Apr 14, 2022 v0.4.2 Apr 14, 2022 v0.4.1 Apr 13, 2022 v0.4.0 Apr 13, 2022 v0.3.3 Apr 13, 2022 v0.3.2 Apr 13, 2022 v0.3.1 Apr 13, 2022 v0.2.5 Apr 14, 2022 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeAttachment + const TypeFile + const TypeTask + 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 + Contents string + ID string + 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 string) *AttachmentDeleteOne + func (c *AttachmentClient) Get(ctx context.Context, id string) (*Attachment, error) + func (c *AttachmentClient) GetX(ctx context.Context, id string) *Attachment + func (c *AttachmentClient) Hooks() []Hook + func (c *AttachmentClient) Query() *AttachmentQuery + func (c *AttachmentClient) Update() *AttachmentUpdate + func (c *AttachmentClient) UpdateOne(a *Attachment) *AttachmentUpdateOne + func (c *AttachmentClient) UpdateOneID(id string) *AttachmentUpdateOne + func (c *AttachmentClient) Use(hooks ...Hook) + type AttachmentCreate struct + func (ac *AttachmentCreate) Exec(ctx context.Context) error + func (ac *AttachmentCreate) ExecX(ctx context.Context) + 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) SetContents(s string) *AttachmentCreate + func (ac *AttachmentCreate) SetID(s string) *AttachmentCreate + type AttachmentCreateBulk struct + func (acb *AttachmentCreateBulk) Exec(ctx context.Context) error + func (acb *AttachmentCreateBulk) ExecX(ctx context.Context) + 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 AttachmentGroupBy struct + func (agb *AttachmentGroupBy) Aggregate(fns ...AggregateFunc) *AttachmentGroupBy + func (agb *AttachmentGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *AttachmentGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *AttachmentGroupBy) BoolX(ctx context.Context) bool + func (s *AttachmentGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *AttachmentGroupBy) BoolsX(ctx context.Context) []bool + func (s *AttachmentGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *AttachmentGroupBy) Float64X(ctx context.Context) float64 + func (s *AttachmentGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *AttachmentGroupBy) Float64sX(ctx context.Context) []float64 + func (s *AttachmentGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *AttachmentGroupBy) IntX(ctx context.Context) int + func (s *AttachmentGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *AttachmentGroupBy) IntsX(ctx context.Context) []int + func (s *AttachmentGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *AttachmentGroupBy) String(ctx context.Context) (_ string, err error) + func (s *AttachmentGroupBy) StringX(ctx context.Context) string + func (s *AttachmentGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *AttachmentGroupBy) StringsX(ctx context.Context) []string + type AttachmentMutation struct + func (m *AttachmentMutation) AddField(name string, value ent.Value) error + 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) ClearedEdges() []string + func (m *AttachmentMutation) ClearedFields() []string + func (m *AttachmentMutation) Contents() (r string, exists bool) + 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 string, exists bool) + func (m *AttachmentMutation) IDs(ctx context.Context) ([]string, error) + func (m *AttachmentMutation) OldContents(ctx context.Context) (v string, err error) + func (m *AttachmentMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *AttachmentMutation) Op() Op + func (m *AttachmentMutation) RemovedEdges() []string + func (m *AttachmentMutation) RemovedIDs(name string) []ent.Value + func (m *AttachmentMutation) ResetContents() + func (m *AttachmentMutation) ResetEdge(name string) error + func (m *AttachmentMutation) ResetField(name string) error + func (m *AttachmentMutation) SetContents(s string) + func (m *AttachmentMutation) SetField(name string, value ent.Value) error + func (m *AttachmentMutation) SetID(id string) + func (m *AttachmentMutation) Type() string + func (m *AttachmentMutation) Where(ps ...predicate.Attachment) + 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 string, err error) + func (aq *AttachmentQuery) FirstIDX(ctx context.Context) string + func (aq *AttachmentQuery) FirstX(ctx context.Context) *Attachment + func (aq *AttachmentQuery) GroupBy(field string, fields ...string) *AttachmentGroupBy + func (aq *AttachmentQuery) IDs(ctx context.Context) ([]string, error) + func (aq *AttachmentQuery) IDsX(ctx context.Context) []string + 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 string, err error) + func (aq *AttachmentQuery) OnlyIDX(ctx context.Context) string + func (aq *AttachmentQuery) OnlyX(ctx context.Context) *Attachment + func (aq *AttachmentQuery) Order(o ...OrderFunc) *AttachmentQuery + func (aq *AttachmentQuery) Select(fields ...string) *AttachmentSelect + func (aq *AttachmentQuery) Unique(unique bool) *AttachmentQuery + func (aq *AttachmentQuery) Where(ps ...predicate.Attachment) *AttachmentQuery + type AttachmentSelect struct + func (as *AttachmentSelect) Scan(ctx context.Context, v interface{}) error + func (s *AttachmentSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *AttachmentSelect) BoolX(ctx context.Context) bool + func (s *AttachmentSelect) Bools(ctx context.Context) ([]bool, error) + func (s *AttachmentSelect) BoolsX(ctx context.Context) []bool + func (s *AttachmentSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *AttachmentSelect) Float64X(ctx context.Context) float64 + func (s *AttachmentSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *AttachmentSelect) Float64sX(ctx context.Context) []float64 + func (s *AttachmentSelect) Int(ctx context.Context) (_ int, err error) + func (s *AttachmentSelect) IntX(ctx context.Context) int + func (s *AttachmentSelect) Ints(ctx context.Context) ([]int, error) + func (s *AttachmentSelect) IntsX(ctx context.Context) []int + func (s *AttachmentSelect) ScanX(ctx context.Context, v interface{}) + func (s *AttachmentSelect) String(ctx context.Context) (_ string, err error) + func (s *AttachmentSelect) StringX(ctx context.Context) string + func (s *AttachmentSelect) Strings(ctx context.Context) ([]string, error) + func (s *AttachmentSelect) StringsX(ctx context.Context) []string + type AttachmentUpdate struct + func (au *AttachmentUpdate) Exec(ctx context.Context) error + func (au *AttachmentUpdate) ExecX(ctx context.Context) + func (au *AttachmentUpdate) Mutation() *AttachmentMutation + func (au *AttachmentUpdate) Save(ctx context.Context) (int, error) + func (au *AttachmentUpdate) SaveX(ctx context.Context) int + func (au *AttachmentUpdate) SetContents(s string) *AttachmentUpdate + func (au *AttachmentUpdate) Where(ps ...predicate.Attachment) *AttachmentUpdate + type AttachmentUpdateOne struct + func (auo *AttachmentUpdateOne) Exec(ctx context.Context) error + func (auo *AttachmentUpdateOne) ExecX(ctx context.Context) + func (auo *AttachmentUpdateOne) Mutation() *AttachmentMutation + 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) SetContents(s string) *AttachmentUpdateOne + type Attachments []*Attachment + type Client struct + Attachment *AttachmentClient + File *FileClient + Schema *migrate.Schema + Task *TaskClient + 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 File struct + Contents string + ID string + func (f *File) String() string + func (f *File) Unwrap() *File + func (f *File) Update() *FileUpdateOne + type FileClient struct + func NewFileClient(c config) *FileClient + func (c *FileClient) Create() *FileCreate + func (c *FileClient) CreateBulk(builders ...*FileCreate) *FileCreateBulk + func (c *FileClient) Delete() *FileDelete + func (c *FileClient) DeleteOne(f *File) *FileDeleteOne + func (c *FileClient) DeleteOneID(id string) *FileDeleteOne + func (c *FileClient) Get(ctx context.Context, id string) (*File, error) + func (c *FileClient) GetX(ctx context.Context, id string) *File + func (c *FileClient) Hooks() []Hook + func (c *FileClient) Query() *FileQuery + func (c *FileClient) Update() *FileUpdate + func (c *FileClient) UpdateOne(f *File) *FileUpdateOne + func (c *FileClient) UpdateOneID(id string) *FileUpdateOne + func (c *FileClient) Use(hooks ...Hook) + type FileCreate struct + func (fc *FileCreate) Exec(ctx context.Context) error + func (fc *FileCreate) ExecX(ctx context.Context) + func (fc *FileCreate) Mutation() *FileMutation + func (fc *FileCreate) Save(ctx context.Context) (*File, error) + func (fc *FileCreate) SaveX(ctx context.Context) *File + func (fc *FileCreate) SetContents(s string) *FileCreate + func (fc *FileCreate) SetID(s string) *FileCreate + type FileCreateBulk struct + func (fcb *FileCreateBulk) Exec(ctx context.Context) error + func (fcb *FileCreateBulk) ExecX(ctx context.Context) + func (fcb *FileCreateBulk) Save(ctx context.Context) ([]*File, error) + func (fcb *FileCreateBulk) SaveX(ctx context.Context) []*File + type FileDelete struct + func (fd *FileDelete) Exec(ctx context.Context) (int, error) + func (fd *FileDelete) ExecX(ctx context.Context) int + func (fd *FileDelete) Where(ps ...predicate.File) *FileDelete + type FileDeleteOne struct + func (fdo *FileDeleteOne) Exec(ctx context.Context) error + func (fdo *FileDeleteOne) ExecX(ctx context.Context) + type FileGroupBy struct + func (fgb *FileGroupBy) Aggregate(fns ...AggregateFunc) *FileGroupBy + func (fgb *FileGroupBy) Scan(ctx context.Context, v interface{}) error + func (s *FileGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *FileGroupBy) BoolX(ctx context.Context) bool + func (s *FileGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *FileGroupBy) BoolsX(ctx context.Context) []bool + func (s *FileGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *FileGroupBy) Float64X(ctx context.Context) float64 + func (s *FileGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *FileGroupBy) Float64sX(ctx context.Context) []float64 + func (s *FileGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *FileGroupBy) IntX(ctx context.Context) int + func (s *FileGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *FileGroupBy) IntsX(ctx context.Context) []int + func (s *FileGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *FileGroupBy) String(ctx context.Context) (_ string, err error) + func (s *FileGroupBy) StringX(ctx context.Context) string + func (s *FileGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *FileGroupBy) StringsX(ctx context.Context) []string + type FileMutation struct + func (m *FileMutation) AddField(name string, value ent.Value) error + func (m *FileMutation) AddedEdges() []string + func (m *FileMutation) AddedField(name string) (ent.Value, bool) + func (m *FileMutation) AddedFields() []string + func (m *FileMutation) AddedIDs(name string) []ent.Value + func (m *FileMutation) ClearEdge(name string) error + func (m *FileMutation) ClearField(name string) error + func (m *FileMutation) ClearedEdges() []string + func (m *FileMutation) ClearedFields() []string + func (m *FileMutation) Contents() (r string, exists bool) + func (m *FileMutation) EdgeCleared(name string) bool + func (m *FileMutation) Field(name string) (ent.Value, bool) + func (m *FileMutation) FieldCleared(name string) bool + func (m *FileMutation) Fields() []string + func (m *FileMutation) ID() (id string, exists bool) + func (m *FileMutation) IDs(ctx context.Context) ([]string, error) + func (m *FileMutation) OldContents(ctx context.Context) (v string, err error) + func (m *FileMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *FileMutation) Op() Op + func (m *FileMutation) RemovedEdges() []string + func (m *FileMutation) RemovedIDs(name string) []ent.Value + func (m *FileMutation) ResetContents() + func (m *FileMutation) ResetEdge(name string) error + func (m *FileMutation) ResetField(name string) error + func (m *FileMutation) SetContents(s string) + func (m *FileMutation) SetField(name string, value ent.Value) error + func (m *FileMutation) SetID(id string) + func (m *FileMutation) Type() string + func (m *FileMutation) Where(ps ...predicate.File) + func (m FileMutation) Client() *Client + func (m FileMutation) Tx() (*Tx, error) + type FileQuery struct + func (fq *FileQuery) All(ctx context.Context) ([]*File, error) + func (fq *FileQuery) AllX(ctx context.Context) []*File + func (fq *FileQuery) Clone() *FileQuery + func (fq *FileQuery) Count(ctx context.Context) (int, error) + func (fq *FileQuery) CountX(ctx context.Context) int + func (fq *FileQuery) Exist(ctx context.Context) (bool, error) + func (fq *FileQuery) ExistX(ctx context.Context) bool + func (fq *FileQuery) First(ctx context.Context) (*File, error) + func (fq *FileQuery) FirstID(ctx context.Context) (id string, err error) + func (fq *FileQuery) FirstIDX(ctx context.Context) string + func (fq *FileQuery) FirstX(ctx context.Context) *File + func (fq *FileQuery) GroupBy(field string, fields ...string) *FileGroupBy + func (fq *FileQuery) IDs(ctx context.Context) ([]string, error) + func (fq *FileQuery) IDsX(ctx context.Context) []string + func (fq *FileQuery) Limit(limit int) *FileQuery + func (fq *FileQuery) Offset(offset int) *FileQuery + func (fq *FileQuery) Only(ctx context.Context) (*File, error) + func (fq *FileQuery) OnlyID(ctx context.Context) (id string, err error) + func (fq *FileQuery) OnlyIDX(ctx context.Context) string + func (fq *FileQuery) OnlyX(ctx context.Context) *File + func (fq *FileQuery) Order(o ...OrderFunc) *FileQuery + func (fq *FileQuery) Select(fields ...string) *FileSelect + func (fq *FileQuery) Unique(unique bool) *FileQuery + func (fq *FileQuery) Where(ps ...predicate.File) *FileQuery + type FileSelect struct + func (fs *FileSelect) Scan(ctx context.Context, v interface{}) error + func (s *FileSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *FileSelect) BoolX(ctx context.Context) bool + func (s *FileSelect) Bools(ctx context.Context) ([]bool, error) + func (s *FileSelect) BoolsX(ctx context.Context) []bool + func (s *FileSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *FileSelect) Float64X(ctx context.Context) float64 + func (s *FileSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *FileSelect) Float64sX(ctx context.Context) []float64 + func (s *FileSelect) Int(ctx context.Context) (_ int, err error) + func (s *FileSelect) IntX(ctx context.Context) int + func (s *FileSelect) Ints(ctx context.Context) ([]int, error) + func (s *FileSelect) IntsX(ctx context.Context) []int + func (s *FileSelect) ScanX(ctx context.Context, v interface{}) + func (s *FileSelect) String(ctx context.Context) (_ string, err error) + func (s *FileSelect) StringX(ctx context.Context) string + func (s *FileSelect) Strings(ctx context.Context) ([]string, error) + func (s *FileSelect) StringsX(ctx context.Context) []string + type FileUpdate struct + func (fu *FileUpdate) Exec(ctx context.Context) error + func (fu *FileUpdate) ExecX(ctx context.Context) + func (fu *FileUpdate) Mutation() *FileMutation + func (fu *FileUpdate) Save(ctx context.Context) (int, error) + func (fu *FileUpdate) SaveX(ctx context.Context) int + func (fu *FileUpdate) SetContents(s string) *FileUpdate + func (fu *FileUpdate) Where(ps ...predicate.File) *FileUpdate + type FileUpdateOne struct + func (fuo *FileUpdateOne) Exec(ctx context.Context) error + func (fuo *FileUpdateOne) ExecX(ctx context.Context) + func (fuo *FileUpdateOne) Mutation() *FileMutation + func (fuo *FileUpdateOne) Save(ctx context.Context) (*File, error) + func (fuo *FileUpdateOne) SaveX(ctx context.Context) *File + func (fuo *FileUpdateOne) Select(field string, fields ...string) *FileUpdateOne + func (fuo *FileUpdateOne) SetContents(s string) *FileUpdateOne + type Files []*File + 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 + Complete bool + Description string + ID int + Signature string + Title string + 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) 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) 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) SetComplete(b bool) *TaskCreate + func (tc *TaskCreate) SetDescription(s string) *TaskCreate + func (tc *TaskCreate) SetNillableTitle(s *string) *TaskCreate + func (tc *TaskCreate) SetSignature(s string) *TaskCreate + func (tc *TaskCreate) SetTitle(s string) *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 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) 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) ClearEdge(name string) error + func (m *TaskMutation) ClearField(name string) error + func (m *TaskMutation) ClearTitle() + func (m *TaskMutation) ClearedEdges() []string + func (m *TaskMutation) ClearedFields() []string + func (m *TaskMutation) Complete() (r bool, exists bool) + func (m *TaskMutation) Description() (r string, exists 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) ID() (id int, exists bool) + func (m *TaskMutation) IDs(ctx context.Context) ([]int, error) + func (m *TaskMutation) OldComplete(ctx context.Context) (v bool, err 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) OldSignature(ctx context.Context) (v string, err error) + func (m *TaskMutation) OldTitle(ctx context.Context) (v string, err error) + func (m *TaskMutation) Op() Op + func (m *TaskMutation) RemovedEdges() []string + func (m *TaskMutation) RemovedIDs(name string) []ent.Value + func (m *TaskMutation) ResetComplete() + func (m *TaskMutation) ResetDescription() + func (m *TaskMutation) ResetEdge(name string) error + func (m *TaskMutation) ResetField(name string) error + func (m *TaskMutation) ResetSignature() + func (m *TaskMutation) ResetTitle() + func (m *TaskMutation) SetComplete(b bool) + func (m *TaskMutation) SetDescription(s string) + func (m *TaskMutation) SetField(name string, value ent.Value) error + func (m *TaskMutation) SetSignature(s string) + func (m *TaskMutation) SetTitle(s string) + func (m *TaskMutation) Signature() (r string, exists bool) + func (m *TaskMutation) Title() (r string, exists bool) + func (m *TaskMutation) TitleCleared() bool + func (m *TaskMutation) Type() string + 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) 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) Select(fields ...string) *TaskSelect + func (tq *TaskQuery) Unique(unique bool) *TaskQuery + func (tq *TaskQuery) Where(ps ...predicate.Task) *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) ClearTitle() *TaskUpdate + func (tu *TaskUpdate) Exec(ctx context.Context) error + func (tu *TaskUpdate) ExecX(ctx context.Context) + func (tu *TaskUpdate) Mutation() *TaskMutation + func (tu *TaskUpdate) Save(ctx context.Context) (int, error) + func (tu *TaskUpdate) SaveX(ctx context.Context) int + func (tu *TaskUpdate) SetComplete(b bool) *TaskUpdate + func (tu *TaskUpdate) SetNillableTitle(s *string) *TaskUpdate + func (tu *TaskUpdate) SetSignature(s string) *TaskUpdate + func (tu *TaskUpdate) SetTitle(s string) *TaskUpdate + func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate + type TaskUpdateOne struct + func (tuo *TaskUpdateOne) ClearTitle() *TaskUpdateOne + func (tuo *TaskUpdateOne) Exec(ctx context.Context) error + func (tuo *TaskUpdateOne) ExecX(ctx context.Context) + func (tuo *TaskUpdateOne) Mutation() *TaskMutation + 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) SetComplete(b bool) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetNillableTitle(s *string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetSignature(s string) *TaskUpdateOne + func (tuo *TaskUpdateOne) SetTitle(s string) *TaskUpdateOne + type Tasks []*Task + type Tx struct + Attachment *AttachmentClient + File *FileClient + Task *TaskClient + 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 + ID int + Name string + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) Exec(ctx context.Context) error + func (uc *UserCreate) ExecX(ctx context.Context) + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetName(s string) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Exec(ctx context.Context) error + func (ucb *UserCreateBulk) ExecX(ctx context.Context) + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserGroupBy struct + func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (s *UserGroupBy) BoolX(ctx context.Context) bool + func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (s *UserGroupBy) BoolsX(ctx context.Context) []bool + func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (s *UserGroupBy) Float64X(ctx context.Context) float64 + func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (s *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (s *UserGroupBy) IntX(ctx context.Context) int + func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (s *UserGroupBy) IntsX(ctx context.Context) []int + func (s *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (s *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (s *UserGroupBy) StringX(ctx context.Context) string + func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (s *UserGroupBy) StringsX(ctx context.Context) []string + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + type UserMutation struct + func (m *UserMutation) AddField(name string, value ent.Value) error + 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) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) IDs(ctx context.Context) ([]int, error) + func (m *UserMutation) Name() (r string, exists bool) + 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) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetName() + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetName(s string) + 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) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) int + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) ([]int, error) + func (uq *UserQuery) IDsX(ctx context.Context) []int + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) int + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery + func (uq *UserQuery) Select(fields ...string) *UserSelect + func (uq *UserQuery) Unique(unique bool) *UserQuery + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + type UserSelect struct + func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (s *UserSelect) BoolX(ctx context.Context) bool + func (s *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (s *UserSelect) BoolsX(ctx context.Context) []bool + func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (s *UserSelect) Float64X(ctx context.Context) float64 + func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (s *UserSelect) Float64sX(ctx context.Context) []float64 + func (s *UserSelect) Int(ctx context.Context) (_ int, err error) + func (s *UserSelect) IntX(ctx context.Context) int + func (s *UserSelect) Ints(ctx context.Context) ([]int, error) + func (s *UserSelect) IntsX(ctx context.Context) []int + func (s *UserSelect) ScanX(ctx context.Context, v interface{}) + func (s *UserSelect) String(ctx context.Context) (_ string, err error) + func (s *UserSelect) StringX(ctx context.Context) string + func (s *UserSelect) Strings(ctx context.Context) ([]string, error) + func (s *UserSelect) StringsX(ctx context.Context) []string + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + type UserUpdate struct + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetName(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne + func (uuo *UserUpdateOne) SetName(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