Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type Node
- type NodeClient
- func (c *NodeClient) Create() *NodeCreate
- func (c *NodeClient) CreateBulk(builders ...*NodeCreate) *NodeCreateBulk
- func (c *NodeClient) Delete() *NodeDelete
- func (c *NodeClient) DeleteOne(_m *Node) *NodeDeleteOne
- func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne
- func (c *NodeClient) Get(ctx context.Context, id int) (*Node, error)
- func (c *NodeClient) GetX(ctx context.Context, id int) *Node
- func (c *NodeClient) Hooks() []Hook
- func (c *NodeClient) Intercept(interceptors ...Interceptor)
- func (c *NodeClient) Interceptors() []Interceptor
- func (c *NodeClient) MapCreateBulk(slice any, setFunc func(*NodeCreate, int)) *NodeCreateBulk
- func (c *NodeClient) Query() *NodeQuery
- func (c *NodeClient) Update() *NodeUpdate
- func (c *NodeClient) UpdateOne(_m *Node) *NodeUpdateOne
- func (c *NodeClient) UpdateOneID(id int) *NodeUpdateOne
- func (c *NodeClient) Use(hooks ...Hook)
- type NodeCreate
- func (_c *NodeCreate) Exec(ctx context.Context) error
- func (_c *NodeCreate) ExecX(ctx context.Context)
- func (_c *NodeCreate) Mutation() *NodeMutation
- func (_c *NodeCreate) Save(ctx context.Context) (*Node, error)
- func (_c *NodeCreate) SaveX(ctx context.Context) *Node
- func (_c *NodeCreate) SetID(v int) *NodeCreate
- type NodeCreateBulk
- type NodeDelete
- type NodeDeleteOne
- type NodeGroupBy
- func (_g *NodeGroupBy) Aggregate(fns ...AggregateFunc) *NodeGroupBy
- func (s *NodeGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *NodeGroupBy) BoolX(ctx context.Context) bool
- func (s *NodeGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *NodeGroupBy) BoolsX(ctx context.Context) []bool
- func (s *NodeGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *NodeGroupBy) Float64X(ctx context.Context) float64
- func (s *NodeGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *NodeGroupBy) Float64sX(ctx context.Context) []float64
- func (s *NodeGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *NodeGroupBy) IntX(ctx context.Context) int
- func (s *NodeGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *NodeGroupBy) IntsX(ctx context.Context) []int
- func (_g *NodeGroupBy) Scan(ctx context.Context, v any) error
- func (s *NodeGroupBy) ScanX(ctx context.Context, v any)
- func (s *NodeGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *NodeGroupBy) StringX(ctx context.Context) string
- func (s *NodeGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *NodeGroupBy) StringsX(ctx context.Context) []string
- type NodeMutation
- func (m *NodeMutation) AddField(name string, value ent.Value) error
- func (m *NodeMutation) AddedEdges() []string
- func (m *NodeMutation) AddedField(name string) (ent.Value, bool)
- func (m *NodeMutation) AddedFields() []string
- func (m *NodeMutation) AddedIDs(name string) []ent.Value
- func (m *NodeMutation) ClearEdge(name string) error
- func (m *NodeMutation) ClearField(name string) error
- func (m *NodeMutation) ClearedEdges() []string
- func (m *NodeMutation) ClearedFields() []string
- func (m NodeMutation) Client() *Client
- func (m *NodeMutation) EdgeCleared(name string) bool
- func (m *NodeMutation) Field(name string) (ent.Value, bool)
- func (m *NodeMutation) FieldCleared(name string) bool
- func (m *NodeMutation) Fields() []string
- func (m *NodeMutation) ID() (id int, exists bool)
- func (m *NodeMutation) IDs(ctx context.Context) ([]int, error)
- func (m *NodeMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NodeMutation) Op() Op
- func (m *NodeMutation) RemovedEdges() []string
- func (m *NodeMutation) RemovedIDs(name string) []ent.Value
- func (m *NodeMutation) ResetEdge(name string) error
- func (m *NodeMutation) ResetField(name string) error
- func (m *NodeMutation) SetField(name string, value ent.Value) error
- func (m *NodeMutation) SetID(id int)
- func (m *NodeMutation) SetOp(op Op)
- func (m NodeMutation) Tx() (*Tx, error)
- func (m *NodeMutation) Type() string
- func (m *NodeMutation) Where(ps ...predicate.Node)
- func (m *NodeMutation) WhereP(ps ...func(*sql.Selector))
- type NodeQuery
- func (_q *NodeQuery) Aggregate(fns ...AggregateFunc) *NodeSelect
- func (_q *NodeQuery) All(ctx context.Context) ([]*Node, error)
- func (_q *NodeQuery) AllX(ctx context.Context) []*Node
- func (_q *NodeQuery) Clone() *NodeQuery
- func (_q *NodeQuery) Count(ctx context.Context) (int, error)
- func (_q *NodeQuery) CountX(ctx context.Context) int
- func (_q *NodeQuery) Exist(ctx context.Context) (bool, error)
- func (_q *NodeQuery) ExistX(ctx context.Context) bool
- func (_q *NodeQuery) First(ctx context.Context) (*Node, error)
- func (_q *NodeQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *NodeQuery) FirstIDX(ctx context.Context) int
- func (_q *NodeQuery) FirstX(ctx context.Context) *Node
- func (_q *NodeQuery) GroupBy(field string, fields ...string) *NodeGroupBy
- func (_q *NodeQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *NodeQuery) IDsX(ctx context.Context) []int
- func (_q *NodeQuery) Limit(limit int) *NodeQuery
- func (_q *NodeQuery) Offset(offset int) *NodeQuery
- func (_q *NodeQuery) Only(ctx context.Context) (*Node, error)
- func (_q *NodeQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *NodeQuery) OnlyIDX(ctx context.Context) int
- func (_q *NodeQuery) OnlyX(ctx context.Context) *Node
- func (_q *NodeQuery) Order(o ...node.OrderOption) *NodeQuery
- func (_q *NodeQuery) Select(fields ...string) *NodeSelect
- func (_q *NodeQuery) Unique(unique bool) *NodeQuery
- func (_q *NodeQuery) Where(ps ...predicate.Node) *NodeQuery
- type NodeSelect
- func (_s *NodeSelect) Aggregate(fns ...AggregateFunc) *NodeSelect
- func (s *NodeSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *NodeSelect) BoolX(ctx context.Context) bool
- func (s *NodeSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *NodeSelect) BoolsX(ctx context.Context) []bool
- func (s *NodeSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *NodeSelect) Float64X(ctx context.Context) float64
- func (s *NodeSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *NodeSelect) Float64sX(ctx context.Context) []float64
- func (s *NodeSelect) Int(ctx context.Context) (_ int, err error)
- func (s *NodeSelect) IntX(ctx context.Context) int
- func (s *NodeSelect) Ints(ctx context.Context) ([]int, error)
- func (s *NodeSelect) IntsX(ctx context.Context) []int
- func (_s *NodeSelect) Scan(ctx context.Context, v any) error
- func (s *NodeSelect) ScanX(ctx context.Context, v any)
- func (s *NodeSelect) String(ctx context.Context) (_ string, err error)
- func (s *NodeSelect) StringX(ctx context.Context) string
- func (s *NodeSelect) Strings(ctx context.Context) ([]string, error)
- func (s *NodeSelect) StringsX(ctx context.Context) []string
- type NodeUpdate
- func (_u *NodeUpdate) Exec(ctx context.Context) error
- func (_u *NodeUpdate) ExecX(ctx context.Context)
- func (_u *NodeUpdate) Mutation() *NodeMutation
- func (_u *NodeUpdate) Save(ctx context.Context) (int, error)
- func (_u *NodeUpdate) SaveX(ctx context.Context) int
- func (_u *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate
- type NodeUpdateOne
- func (_u *NodeUpdateOne) Exec(ctx context.Context) error
- func (_u *NodeUpdateOne) ExecX(ctx context.Context)
- func (_u *NodeUpdateOne) Mutation() *NodeMutation
- func (_u *NodeUpdateOne) Save(ctx context.Context) (*Node, error)
- func (_u *NodeUpdateOne) SaveX(ctx context.Context) *Node
- func (_u *NodeUpdateOne) Select(field string, fields ...string) *NodeUpdateOne
- func (_u *NodeUpdateOne) Where(ps ...predicate.Node) *NodeUpdateOne
- type Nodes
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type User
- type UserClient
- func (c *UserClient) Create() *UserCreate
- func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
- func (c *UserClient) Delete() *UserDelete
- func (c *UserClient) DeleteOne(_m *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) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(_m *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id int) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserCreate
- func (_c *UserCreate) Exec(ctx context.Context) error
- func (_c *UserCreate) ExecX(ctx context.Context)
- func (_c *UserCreate) Mutation() *UserMutation
- func (_c *UserCreate) Save(ctx context.Context) (*User, error)
- func (_c *UserCreate) SaveX(ctx context.Context) *User
- func (_c *UserCreate) SetID(v int) *UserCreate
- type UserCreateBulk
- type UserDelete
- type UserDeleteOne
- type UserGroupBy
- func (_g *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- 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 (_g *UserGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserGroupBy) ScanX(ctx context.Context, v any)
- 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
- type UserMutation
- 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) Client() *Client
- 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) OldField(ctx context.Context, name string) (ent.Value, 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) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetID(id int)
- func (m *UserMutation) SetOp(op Op)
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) Where(ps ...predicate.User)
- func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
- type UserQuery
- func (_q *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
- func (_q *UserQuery) All(ctx context.Context) ([]*User, error)
- func (_q *UserQuery) AllX(ctx context.Context) []*User
- func (_q *UserQuery) Clone() *UserQuery
- func (_q *UserQuery) Count(ctx context.Context) (int, error)
- func (_q *UserQuery) CountX(ctx context.Context) int
- func (_q *UserQuery) Exist(ctx context.Context) (bool, error)
- func (_q *UserQuery) ExistX(ctx context.Context) bool
- func (_q *UserQuery) First(ctx context.Context) (*User, error)
- func (_q *UserQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *UserQuery) FirstIDX(ctx context.Context) int
- func (_q *UserQuery) FirstX(ctx context.Context) *User
- func (_q *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (_q *UserQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *UserQuery) IDsX(ctx context.Context) []int
- func (_q *UserQuery) Limit(limit int) *UserQuery
- func (_q *UserQuery) Offset(offset int) *UserQuery
- func (_q *UserQuery) Only(ctx context.Context) (*User, error)
- func (_q *UserQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *UserQuery) OnlyIDX(ctx context.Context) int
- func (_q *UserQuery) OnlyX(ctx context.Context) *User
- func (_q *UserQuery) Order(o ...user.OrderOption) *UserQuery
- func (_q *UserQuery) Select(fields ...string) *UserSelect
- func (_q *UserQuery) Unique(unique bool) *UserQuery
- func (_q *UserQuery) Where(ps ...predicate.User) *UserQuery
- type UserSelect
- func (_s *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
- 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) Scan(ctx context.Context, v any) error
- func (s *UserSelect) ScanX(ctx context.Context, v any)
- 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
- type UserUpdate
- func (_u *UserUpdate) Exec(ctx context.Context) error
- func (_u *UserUpdate) ExecX(ctx context.Context)
- func (_u *UserUpdate) Mutation() *UserMutation
- func (_u *UserUpdate) Save(ctx context.Context) (int, error)
- func (_u *UserUpdate) SaveX(ctx context.Context) int
- func (_u *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (_u *UserUpdateOne) Exec(ctx context.Context) error
- func (_u *UserUpdateOne) ExecX(ctx context.Context)
- func (_u *UserUpdateOne) Mutation() *UserMutation
- func (_u *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (_u *UserUpdateOne) SaveX(ctx context.Context) *User
- func (_u *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
- func (_u *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
- type Users
- type ValidationError
- type Value
- type Webform
- func (_m *Webform) QueryElements() *WebformElementQuery
- func (_m *Webform) QueryNode() *NodeQuery
- func (_m *Webform) QuerySubmissions() *WebformSubmissionQuery
- func (_m *Webform) String() string
- func (_m *Webform) Unwrap() *Webform
- func (_m *Webform) Update() *WebformUpdateOne
- func (_m *Webform) Value(name string) (ent.Value, error)
- type WebformClient
- func (c *WebformClient) Create() *WebformCreate
- func (c *WebformClient) CreateBulk(builders ...*WebformCreate) *WebformCreateBulk
- func (c *WebformClient) Delete() *WebformDelete
- func (c *WebformClient) DeleteOne(_m *Webform) *WebformDeleteOne
- func (c *WebformClient) DeleteOneID(id int) *WebformDeleteOne
- func (c *WebformClient) Get(ctx context.Context, id int) (*Webform, error)
- func (c *WebformClient) GetX(ctx context.Context, id int) *Webform
- func (c *WebformClient) Hooks() []Hook
- func (c *WebformClient) Intercept(interceptors ...Interceptor)
- func (c *WebformClient) Interceptors() []Interceptor
- func (c *WebformClient) MapCreateBulk(slice any, setFunc func(*WebformCreate, int)) *WebformCreateBulk
- func (c *WebformClient) Query() *WebformQuery
- func (c *WebformClient) QueryElements(_m *Webform) *WebformElementQuery
- func (c *WebformClient) QueryNode(_m *Webform) *NodeQuery
- func (c *WebformClient) QuerySubmissions(_m *Webform) *WebformSubmissionQuery
- func (c *WebformClient) Update() *WebformUpdate
- func (c *WebformClient) UpdateOne(_m *Webform) *WebformUpdateOne
- func (c *WebformClient) UpdateOneID(id int) *WebformUpdateOne
- func (c *WebformClient) Use(hooks ...Hook)
- type WebformCreate
- func (_c *WebformCreate) AddElementIDs(ids ...int) *WebformCreate
- func (_c *WebformCreate) AddElements(v ...*WebformElement) *WebformCreate
- func (_c *WebformCreate) AddSubmissionIDs(ids ...int) *WebformCreate
- func (_c *WebformCreate) AddSubmissions(v ...*WebformSubmission) *WebformCreate
- func (_c *WebformCreate) Exec(ctx context.Context) error
- func (_c *WebformCreate) ExecX(ctx context.Context)
- func (_c *WebformCreate) Mutation() *WebformMutation
- func (_c *WebformCreate) Save(ctx context.Context) (*Webform, error)
- func (_c *WebformCreate) SaveX(ctx context.Context) *Webform
- func (_c *WebformCreate) SetClosed(v bool) *WebformCreate
- func (_c *WebformCreate) SetClosesAt(v time.Time) *WebformCreate
- func (_c *WebformCreate) SetConfirmation(v string) *WebformCreate
- func (_c *WebformCreate) SetConfirmationURL(v string) *WebformCreate
- func (_c *WebformCreate) SetDescription(v string) *WebformCreate
- func (_c *WebformCreate) SetID(v int) *WebformCreate
- func (_c *WebformCreate) SetLimitPerUser(v bool) *WebformCreate
- func (_c *WebformCreate) SetMaxSubmissions(v int) *WebformCreate
- func (_c *WebformCreate) SetNid(v int) *WebformCreate
- func (_c *WebformCreate) SetNillableClosed(v *bool) *WebformCreate
- func (_c *WebformCreate) SetNillableClosesAt(v *time.Time) *WebformCreate
- func (_c *WebformCreate) SetNillableConfirmation(v *string) *WebformCreate
- func (_c *WebformCreate) SetNillableConfirmationURL(v *string) *WebformCreate
- func (_c *WebformCreate) SetNillableDescription(v *string) *WebformCreate
- func (_c *WebformCreate) SetNillableLimitPerUser(v *bool) *WebformCreate
- func (_c *WebformCreate) SetNillableMaxSubmissions(v *int) *WebformCreate
- func (_c *WebformCreate) SetNillableNotifyEmail(v *string) *WebformCreate
- func (_c *WebformCreate) SetNillableSubmitLabel(v *string) *WebformCreate
- func (_c *WebformCreate) SetNode(v *Node) *WebformCreate
- func (_c *WebformCreate) SetNodeID(id int) *WebformCreate
- func (_c *WebformCreate) SetNotifyEmail(v string) *WebformCreate
- func (_c *WebformCreate) SetSubmitLabel(v string) *WebformCreate
- type WebformCreateBulk
- type WebformDelete
- type WebformDeleteOne
- type WebformEdges
- type WebformElement
- func (_m *WebformElement) QueryValues() *WebformSubmissionValueQuery
- func (_m *WebformElement) QueryWebform() *WebformQuery
- func (_m *WebformElement) String() string
- func (_m *WebformElement) Unwrap() *WebformElement
- func (_m *WebformElement) Update() *WebformElementUpdateOne
- func (_m *WebformElement) Value(name string) (ent.Value, error)
- type WebformElementClient
- func (c *WebformElementClient) Create() *WebformElementCreate
- func (c *WebformElementClient) CreateBulk(builders ...*WebformElementCreate) *WebformElementCreateBulk
- func (c *WebformElementClient) Delete() *WebformElementDelete
- func (c *WebformElementClient) DeleteOne(_m *WebformElement) *WebformElementDeleteOne
- func (c *WebformElementClient) DeleteOneID(id int) *WebformElementDeleteOne
- func (c *WebformElementClient) Get(ctx context.Context, id int) (*WebformElement, error)
- func (c *WebformElementClient) GetX(ctx context.Context, id int) *WebformElement
- func (c *WebformElementClient) Hooks() []Hook
- func (c *WebformElementClient) Intercept(interceptors ...Interceptor)
- func (c *WebformElementClient) Interceptors() []Interceptor
- func (c *WebformElementClient) MapCreateBulk(slice any, setFunc func(*WebformElementCreate, int)) *WebformElementCreateBulk
- func (c *WebformElementClient) Query() *WebformElementQuery
- func (c *WebformElementClient) QueryValues(_m *WebformElement) *WebformSubmissionValueQuery
- func (c *WebformElementClient) QueryWebform(_m *WebformElement) *WebformQuery
- func (c *WebformElementClient) Update() *WebformElementUpdate
- func (c *WebformElementClient) UpdateOne(_m *WebformElement) *WebformElementUpdateOne
- func (c *WebformElementClient) UpdateOneID(id int) *WebformElementUpdateOne
- func (c *WebformElementClient) Use(hooks ...Hook)
- type WebformElementCreate
- func (_c *WebformElementCreate) AddValueIDs(ids ...int) *WebformElementCreate
- func (_c *WebformElementCreate) AddValues(v ...*WebformSubmissionValue) *WebformElementCreate
- func (_c *WebformElementCreate) Exec(ctx context.Context) error
- func (_c *WebformElementCreate) ExecX(ctx context.Context)
- func (_c *WebformElementCreate) Mutation() *WebformElementMutation
- func (_c *WebformElementCreate) Save(ctx context.Context) (*WebformElement, error)
- func (_c *WebformElementCreate) SaveX(ctx context.Context) *WebformElement
- func (_c *WebformElementCreate) SetDescription(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetID(v int) *WebformElementCreate
- func (_c *WebformElementCreate) SetLabel(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetMachineName(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillableDescription(v *string) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillableOptions(v *string) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillablePrefillParam(v *string) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillableRequired(v *bool) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillableVisibleIfElement(v *string) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillableVisibleIfValue(v *string) *WebformElementCreate
- func (_c *WebformElementCreate) SetNillableWeight(v *int) *WebformElementCreate
- func (_c *WebformElementCreate) SetOptions(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetPrefillParam(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetRequired(v bool) *WebformElementCreate
- func (_c *WebformElementCreate) SetType(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetVisibleIfElement(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetVisibleIfValue(v string) *WebformElementCreate
- func (_c *WebformElementCreate) SetWebform(v *Webform) *WebformElementCreate
- func (_c *WebformElementCreate) SetWebformID(v int) *WebformElementCreate
- func (_c *WebformElementCreate) SetWeight(v int) *WebformElementCreate
- type WebformElementCreateBulk
- func (_c *WebformElementCreateBulk) Exec(ctx context.Context) error
- func (_c *WebformElementCreateBulk) ExecX(ctx context.Context)
- func (_c *WebformElementCreateBulk) Save(ctx context.Context) ([]*WebformElement, error)
- func (_c *WebformElementCreateBulk) SaveX(ctx context.Context) []*WebformElement
- type WebformElementDelete
- type WebformElementDeleteOne
- type WebformElementEdges
- type WebformElementGroupBy
- func (_g *WebformElementGroupBy) Aggregate(fns ...AggregateFunc) *WebformElementGroupBy
- func (s *WebformElementGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformElementGroupBy) BoolX(ctx context.Context) bool
- func (s *WebformElementGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformElementGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WebformElementGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformElementGroupBy) Float64X(ctx context.Context) float64
- func (s *WebformElementGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformElementGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WebformElementGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WebformElementGroupBy) IntX(ctx context.Context) int
- func (s *WebformElementGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WebformElementGroupBy) IntsX(ctx context.Context) []int
- func (_g *WebformElementGroupBy) Scan(ctx context.Context, v any) error
- func (s *WebformElementGroupBy) ScanX(ctx context.Context, v any)
- func (s *WebformElementGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WebformElementGroupBy) StringX(ctx context.Context) string
- func (s *WebformElementGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WebformElementGroupBy) StringsX(ctx context.Context) []string
- type WebformElementMutation
- func (m *WebformElementMutation) AddField(name string, value ent.Value) error
- func (m *WebformElementMutation) AddValueIDs(ids ...int)
- func (m *WebformElementMutation) AddWeight(i int)
- func (m *WebformElementMutation) AddedEdges() []string
- func (m *WebformElementMutation) AddedField(name string) (ent.Value, bool)
- func (m *WebformElementMutation) AddedFields() []string
- func (m *WebformElementMutation) AddedIDs(name string) []ent.Value
- func (m *WebformElementMutation) AddedWeight() (r int, exists bool)
- func (m *WebformElementMutation) ClearDescription()
- func (m *WebformElementMutation) ClearEdge(name string) error
- func (m *WebformElementMutation) ClearField(name string) error
- func (m *WebformElementMutation) ClearOptions()
- func (m *WebformElementMutation) ClearValues()
- func (m *WebformElementMutation) ClearWebform()
- func (m *WebformElementMutation) ClearedEdges() []string
- func (m *WebformElementMutation) ClearedFields() []string
- func (m WebformElementMutation) Client() *Client
- func (m *WebformElementMutation) Description() (r string, exists bool)
- func (m *WebformElementMutation) DescriptionCleared() bool
- func (m *WebformElementMutation) EdgeCleared(name string) bool
- func (m *WebformElementMutation) Field(name string) (ent.Value, bool)
- func (m *WebformElementMutation) FieldCleared(name string) bool
- func (m *WebformElementMutation) Fields() []string
- func (m *WebformElementMutation) GetType() (r string, exists bool)
- func (m *WebformElementMutation) ID() (id int, exists bool)
- func (m *WebformElementMutation) IDs(ctx context.Context) ([]int, error)
- func (m *WebformElementMutation) Label() (r string, exists bool)
- func (m *WebformElementMutation) MachineName() (r string, exists bool)
- func (m *WebformElementMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WebformElementMutation) OldLabel(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldMachineName(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldOptions(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldPrefillParam(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldRequired(ctx context.Context) (v bool, err error)
- func (m *WebformElementMutation) OldType(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldVisibleIfElement(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldVisibleIfValue(ctx context.Context) (v string, err error)
- func (m *WebformElementMutation) OldWebformID(ctx context.Context) (v int, err error)
- func (m *WebformElementMutation) OldWeight(ctx context.Context) (v int, err error)
- func (m *WebformElementMutation) Op() Op
- func (m *WebformElementMutation) Options() (r string, exists bool)
- func (m *WebformElementMutation) OptionsCleared() bool
- func (m *WebformElementMutation) PrefillParam() (r string, exists bool)
- func (m *WebformElementMutation) RemoveValueIDs(ids ...int)
- func (m *WebformElementMutation) RemovedEdges() []string
- func (m *WebformElementMutation) RemovedIDs(name string) []ent.Value
- func (m *WebformElementMutation) RemovedValuesIDs() (ids []int)
- func (m *WebformElementMutation) Required() (r bool, exists bool)
- func (m *WebformElementMutation) ResetDescription()
- func (m *WebformElementMutation) ResetEdge(name string) error
- func (m *WebformElementMutation) ResetField(name string) error
- func (m *WebformElementMutation) ResetLabel()
- func (m *WebformElementMutation) ResetMachineName()
- func (m *WebformElementMutation) ResetOptions()
- func (m *WebformElementMutation) ResetPrefillParam()
- func (m *WebformElementMutation) ResetRequired()
- func (m *WebformElementMutation) ResetType()
- func (m *WebformElementMutation) ResetValues()
- func (m *WebformElementMutation) ResetVisibleIfElement()
- func (m *WebformElementMutation) ResetVisibleIfValue()
- func (m *WebformElementMutation) ResetWebform()
- func (m *WebformElementMutation) ResetWebformID()
- func (m *WebformElementMutation) ResetWeight()
- func (m *WebformElementMutation) SetDescription(s string)
- func (m *WebformElementMutation) SetField(name string, value ent.Value) error
- func (m *WebformElementMutation) SetID(id int)
- func (m *WebformElementMutation) SetLabel(s string)
- func (m *WebformElementMutation) SetMachineName(s string)
- func (m *WebformElementMutation) SetOp(op Op)
- func (m *WebformElementMutation) SetOptions(s string)
- func (m *WebformElementMutation) SetPrefillParam(s string)
- func (m *WebformElementMutation) SetRequired(b bool)
- func (m *WebformElementMutation) SetType(s string)
- func (m *WebformElementMutation) SetVisibleIfElement(s string)
- func (m *WebformElementMutation) SetVisibleIfValue(s string)
- func (m *WebformElementMutation) SetWebformID(i int)
- func (m *WebformElementMutation) SetWeight(i int)
- func (m WebformElementMutation) Tx() (*Tx, error)
- func (m *WebformElementMutation) Type() string
- func (m *WebformElementMutation) ValuesCleared() bool
- func (m *WebformElementMutation) ValuesIDs() (ids []int)
- func (m *WebformElementMutation) VisibleIfElement() (r string, exists bool)
- func (m *WebformElementMutation) VisibleIfValue() (r string, exists bool)
- func (m *WebformElementMutation) WebformCleared() bool
- func (m *WebformElementMutation) WebformID() (r int, exists bool)
- func (m *WebformElementMutation) WebformIDs() (ids []int)
- func (m *WebformElementMutation) Weight() (r int, exists bool)
- func (m *WebformElementMutation) Where(ps ...predicate.WebformElement)
- func (m *WebformElementMutation) WhereP(ps ...func(*sql.Selector))
- type WebformElementQuery
- func (_q *WebformElementQuery) Aggregate(fns ...AggregateFunc) *WebformElementSelect
- func (_q *WebformElementQuery) All(ctx context.Context) ([]*WebformElement, error)
- func (_q *WebformElementQuery) AllX(ctx context.Context) []*WebformElement
- func (_q *WebformElementQuery) Clone() *WebformElementQuery
- func (_q *WebformElementQuery) Count(ctx context.Context) (int, error)
- func (_q *WebformElementQuery) CountX(ctx context.Context) int
- func (_q *WebformElementQuery) Exist(ctx context.Context) (bool, error)
- func (_q *WebformElementQuery) ExistX(ctx context.Context) bool
- func (_q *WebformElementQuery) First(ctx context.Context) (*WebformElement, error)
- func (_q *WebformElementQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *WebformElementQuery) FirstIDX(ctx context.Context) int
- func (_q *WebformElementQuery) FirstX(ctx context.Context) *WebformElement
- func (_q *WebformElementQuery) GroupBy(field string, fields ...string) *WebformElementGroupBy
- func (_q *WebformElementQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *WebformElementQuery) IDsX(ctx context.Context) []int
- func (_q *WebformElementQuery) Limit(limit int) *WebformElementQuery
- func (_q *WebformElementQuery) Offset(offset int) *WebformElementQuery
- func (_q *WebformElementQuery) Only(ctx context.Context) (*WebformElement, error)
- func (_q *WebformElementQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *WebformElementQuery) OnlyIDX(ctx context.Context) int
- func (_q *WebformElementQuery) OnlyX(ctx context.Context) *WebformElement
- func (_q *WebformElementQuery) Order(o ...webformelement.OrderOption) *WebformElementQuery
- func (_q *WebformElementQuery) QueryValues() *WebformSubmissionValueQuery
- func (_q *WebformElementQuery) QueryWebform() *WebformQuery
- func (_q *WebformElementQuery) Select(fields ...string) *WebformElementSelect
- func (_q *WebformElementQuery) Unique(unique bool) *WebformElementQuery
- func (_q *WebformElementQuery) Where(ps ...predicate.WebformElement) *WebformElementQuery
- func (_q *WebformElementQuery) WithValues(opts ...func(*WebformSubmissionValueQuery)) *WebformElementQuery
- func (_q *WebformElementQuery) WithWebform(opts ...func(*WebformQuery)) *WebformElementQuery
- type WebformElementSelect
- func (_s *WebformElementSelect) Aggregate(fns ...AggregateFunc) *WebformElementSelect
- func (s *WebformElementSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformElementSelect) BoolX(ctx context.Context) bool
- func (s *WebformElementSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformElementSelect) BoolsX(ctx context.Context) []bool
- func (s *WebformElementSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformElementSelect) Float64X(ctx context.Context) float64
- func (s *WebformElementSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformElementSelect) Float64sX(ctx context.Context) []float64
- func (s *WebformElementSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WebformElementSelect) IntX(ctx context.Context) int
- func (s *WebformElementSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WebformElementSelect) IntsX(ctx context.Context) []int
- func (_s *WebformElementSelect) Scan(ctx context.Context, v any) error
- func (s *WebformElementSelect) ScanX(ctx context.Context, v any)
- func (s *WebformElementSelect) String(ctx context.Context) (_ string, err error)
- func (s *WebformElementSelect) StringX(ctx context.Context) string
- func (s *WebformElementSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WebformElementSelect) StringsX(ctx context.Context) []string
- type WebformElementUpdate
- func (_u *WebformElementUpdate) AddValueIDs(ids ...int) *WebformElementUpdate
- func (_u *WebformElementUpdate) AddValues(v ...*WebformSubmissionValue) *WebformElementUpdate
- func (_u *WebformElementUpdate) AddWeight(v int) *WebformElementUpdate
- func (_u *WebformElementUpdate) ClearDescription() *WebformElementUpdate
- func (_u *WebformElementUpdate) ClearOptions() *WebformElementUpdate
- func (_u *WebformElementUpdate) ClearValues() *WebformElementUpdate
- func (_u *WebformElementUpdate) ClearWebform() *WebformElementUpdate
- func (_u *WebformElementUpdate) Exec(ctx context.Context) error
- func (_u *WebformElementUpdate) ExecX(ctx context.Context)
- func (_u *WebformElementUpdate) Mutation() *WebformElementMutation
- func (_u *WebformElementUpdate) RemoveValueIDs(ids ...int) *WebformElementUpdate
- func (_u *WebformElementUpdate) RemoveValues(v ...*WebformSubmissionValue) *WebformElementUpdate
- func (_u *WebformElementUpdate) Save(ctx context.Context) (int, error)
- func (_u *WebformElementUpdate) SaveX(ctx context.Context) int
- func (_u *WebformElementUpdate) SetDescription(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetLabel(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetMachineName(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableDescription(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableLabel(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableMachineName(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableOptions(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillablePrefillParam(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableRequired(v *bool) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableType(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableVisibleIfElement(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableVisibleIfValue(v *string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableWebformID(v *int) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetNillableWeight(v *int) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetOptions(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetPrefillParam(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetRequired(v bool) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetType(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetVisibleIfElement(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetVisibleIfValue(v string) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetWebform(v *Webform) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetWebformID(v int) *WebformElementUpdate
- func (_u *WebformElementUpdate) SetWeight(v int) *WebformElementUpdate
- func (_u *WebformElementUpdate) Where(ps ...predicate.WebformElement) *WebformElementUpdate
- type WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) AddValueIDs(ids ...int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) AddValues(v ...*WebformSubmissionValue) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) AddWeight(v int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) ClearDescription() *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) ClearOptions() *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) ClearValues() *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) ClearWebform() *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) Exec(ctx context.Context) error
- func (_u *WebformElementUpdateOne) ExecX(ctx context.Context)
- func (_u *WebformElementUpdateOne) Mutation() *WebformElementMutation
- func (_u *WebformElementUpdateOne) RemoveValueIDs(ids ...int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) RemoveValues(v ...*WebformSubmissionValue) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) Save(ctx context.Context) (*WebformElement, error)
- func (_u *WebformElementUpdateOne) SaveX(ctx context.Context) *WebformElement
- func (_u *WebformElementUpdateOne) Select(field string, fields ...string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetDescription(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetLabel(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetMachineName(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableDescription(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableLabel(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableMachineName(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableOptions(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillablePrefillParam(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableRequired(v *bool) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableType(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableVisibleIfElement(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableVisibleIfValue(v *string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableWebformID(v *int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetNillableWeight(v *int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetOptions(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetPrefillParam(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetRequired(v bool) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetType(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetVisibleIfElement(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetVisibleIfValue(v string) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetWebform(v *Webform) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetWebformID(v int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) SetWeight(v int) *WebformElementUpdateOne
- func (_u *WebformElementUpdateOne) Where(ps ...predicate.WebformElement) *WebformElementUpdateOne
- type WebformElements
- type WebformGroupBy
- func (_g *WebformGroupBy) Aggregate(fns ...AggregateFunc) *WebformGroupBy
- func (s *WebformGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformGroupBy) BoolX(ctx context.Context) bool
- func (s *WebformGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WebformGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformGroupBy) Float64X(ctx context.Context) float64
- func (s *WebformGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WebformGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WebformGroupBy) IntX(ctx context.Context) int
- func (s *WebformGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WebformGroupBy) IntsX(ctx context.Context) []int
- func (_g *WebformGroupBy) Scan(ctx context.Context, v any) error
- func (s *WebformGroupBy) ScanX(ctx context.Context, v any)
- func (s *WebformGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WebformGroupBy) StringX(ctx context.Context) string
- func (s *WebformGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WebformGroupBy) StringsX(ctx context.Context) []string
- type WebformMutation
- func (m *WebformMutation) AddElementIDs(ids ...int)
- func (m *WebformMutation) AddField(name string, value ent.Value) error
- func (m *WebformMutation) AddMaxSubmissions(i int)
- func (m *WebformMutation) AddSubmissionIDs(ids ...int)
- func (m *WebformMutation) AddedEdges() []string
- func (m *WebformMutation) AddedField(name string) (ent.Value, bool)
- func (m *WebformMutation) AddedFields() []string
- func (m *WebformMutation) AddedIDs(name string) []ent.Value
- func (m *WebformMutation) AddedMaxSubmissions() (r int, exists bool)
- func (m *WebformMutation) ClearClosesAt()
- func (m *WebformMutation) ClearConfirmation()
- func (m *WebformMutation) ClearDescription()
- func (m *WebformMutation) ClearEdge(name string) error
- func (m *WebformMutation) ClearElements()
- func (m *WebformMutation) ClearField(name string) error
- func (m *WebformMutation) ClearNode()
- func (m *WebformMutation) ClearSubmissions()
- func (m *WebformMutation) ClearedEdges() []string
- func (m *WebformMutation) ClearedFields() []string
- func (m WebformMutation) Client() *Client
- func (m *WebformMutation) Closed() (r bool, exists bool)
- func (m *WebformMutation) ClosesAt() (r time.Time, exists bool)
- func (m *WebformMutation) ClosesAtCleared() bool
- func (m *WebformMutation) Confirmation() (r string, exists bool)
- func (m *WebformMutation) ConfirmationCleared() bool
- func (m *WebformMutation) ConfirmationURL() (r string, exists bool)
- func (m *WebformMutation) Description() (r string, exists bool)
- func (m *WebformMutation) DescriptionCleared() bool
- func (m *WebformMutation) EdgeCleared(name string) bool
- func (m *WebformMutation) ElementsCleared() bool
- func (m *WebformMutation) ElementsIDs() (ids []int)
- func (m *WebformMutation) Field(name string) (ent.Value, bool)
- func (m *WebformMutation) FieldCleared(name string) bool
- func (m *WebformMutation) Fields() []string
- func (m *WebformMutation) ID() (id int, exists bool)
- func (m *WebformMutation) IDs(ctx context.Context) ([]int, error)
- func (m *WebformMutation) LimitPerUser() (r bool, exists bool)
- func (m *WebformMutation) MaxSubmissions() (r int, exists bool)
- func (m *WebformMutation) Nid() (r int, exists bool)
- func (m *WebformMutation) NodeCleared() bool
- func (m *WebformMutation) NodeID() (id int, exists bool)
- func (m *WebformMutation) NodeIDs() (ids []int)
- func (m *WebformMutation) NotifyEmail() (r string, exists bool)
- func (m *WebformMutation) OldClosed(ctx context.Context) (v bool, err error)
- func (m *WebformMutation) OldClosesAt(ctx context.Context) (v *time.Time, err error)
- func (m *WebformMutation) OldConfirmation(ctx context.Context) (v string, err error)
- func (m *WebformMutation) OldConfirmationURL(ctx context.Context) (v string, err error)
- func (m *WebformMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *WebformMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WebformMutation) OldLimitPerUser(ctx context.Context) (v bool, err error)
- func (m *WebformMutation) OldMaxSubmissions(ctx context.Context) (v int, err error)
- func (m *WebformMutation) OldNid(ctx context.Context) (v int, err error)
- func (m *WebformMutation) OldNotifyEmail(ctx context.Context) (v string, err error)
- func (m *WebformMutation) OldSubmitLabel(ctx context.Context) (v string, err error)
- func (m *WebformMutation) Op() Op
- func (m *WebformMutation) RemoveElementIDs(ids ...int)
- func (m *WebformMutation) RemoveSubmissionIDs(ids ...int)
- func (m *WebformMutation) RemovedEdges() []string
- func (m *WebformMutation) RemovedElementsIDs() (ids []int)
- func (m *WebformMutation) RemovedIDs(name string) []ent.Value
- func (m *WebformMutation) RemovedSubmissionsIDs() (ids []int)
- func (m *WebformMutation) ResetClosed()
- func (m *WebformMutation) ResetClosesAt()
- func (m *WebformMutation) ResetConfirmation()
- func (m *WebformMutation) ResetConfirmationURL()
- func (m *WebformMutation) ResetDescription()
- func (m *WebformMutation) ResetEdge(name string) error
- func (m *WebformMutation) ResetElements()
- func (m *WebformMutation) ResetField(name string) error
- func (m *WebformMutation) ResetLimitPerUser()
- func (m *WebformMutation) ResetMaxSubmissions()
- func (m *WebformMutation) ResetNid()
- func (m *WebformMutation) ResetNode()
- func (m *WebformMutation) ResetNotifyEmail()
- func (m *WebformMutation) ResetSubmissions()
- func (m *WebformMutation) ResetSubmitLabel()
- func (m *WebformMutation) SetClosed(b bool)
- func (m *WebformMutation) SetClosesAt(t time.Time)
- func (m *WebformMutation) SetConfirmation(s string)
- func (m *WebformMutation) SetConfirmationURL(s string)
- func (m *WebformMutation) SetDescription(s string)
- func (m *WebformMutation) SetField(name string, value ent.Value) error
- func (m *WebformMutation) SetID(id int)
- func (m *WebformMutation) SetLimitPerUser(b bool)
- func (m *WebformMutation) SetMaxSubmissions(i int)
- func (m *WebformMutation) SetNid(i int)
- func (m *WebformMutation) SetNodeID(id int)
- func (m *WebformMutation) SetNotifyEmail(s string)
- func (m *WebformMutation) SetOp(op Op)
- func (m *WebformMutation) SetSubmitLabel(s string)
- func (m *WebformMutation) SubmissionsCleared() bool
- func (m *WebformMutation) SubmissionsIDs() (ids []int)
- func (m *WebformMutation) SubmitLabel() (r string, exists bool)
- func (m WebformMutation) Tx() (*Tx, error)
- func (m *WebformMutation) Type() string
- func (m *WebformMutation) Where(ps ...predicate.Webform)
- func (m *WebformMutation) WhereP(ps ...func(*sql.Selector))
- type WebformQuery
- func (_q *WebformQuery) Aggregate(fns ...AggregateFunc) *WebformSelect
- func (_q *WebformQuery) All(ctx context.Context) ([]*Webform, error)
- func (_q *WebformQuery) AllX(ctx context.Context) []*Webform
- func (_q *WebformQuery) Clone() *WebformQuery
- func (_q *WebformQuery) Count(ctx context.Context) (int, error)
- func (_q *WebformQuery) CountX(ctx context.Context) int
- func (_q *WebformQuery) Exist(ctx context.Context) (bool, error)
- func (_q *WebformQuery) ExistX(ctx context.Context) bool
- func (_q *WebformQuery) First(ctx context.Context) (*Webform, error)
- func (_q *WebformQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *WebformQuery) FirstIDX(ctx context.Context) int
- func (_q *WebformQuery) FirstX(ctx context.Context) *Webform
- func (_q *WebformQuery) GroupBy(field string, fields ...string) *WebformGroupBy
- func (_q *WebformQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *WebformQuery) IDsX(ctx context.Context) []int
- func (_q *WebformQuery) Limit(limit int) *WebformQuery
- func (_q *WebformQuery) Offset(offset int) *WebformQuery
- func (_q *WebformQuery) Only(ctx context.Context) (*Webform, error)
- func (_q *WebformQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *WebformQuery) OnlyIDX(ctx context.Context) int
- func (_q *WebformQuery) OnlyX(ctx context.Context) *Webform
- func (_q *WebformQuery) Order(o ...webform.OrderOption) *WebformQuery
- func (_q *WebformQuery) QueryElements() *WebformElementQuery
- func (_q *WebformQuery) QueryNode() *NodeQuery
- func (_q *WebformQuery) QuerySubmissions() *WebformSubmissionQuery
- func (_q *WebformQuery) Select(fields ...string) *WebformSelect
- func (_q *WebformQuery) Unique(unique bool) *WebformQuery
- func (_q *WebformQuery) Where(ps ...predicate.Webform) *WebformQuery
- func (_q *WebformQuery) WithElements(opts ...func(*WebformElementQuery)) *WebformQuery
- func (_q *WebformQuery) WithNode(opts ...func(*NodeQuery)) *WebformQuery
- func (_q *WebformQuery) WithSubmissions(opts ...func(*WebformSubmissionQuery)) *WebformQuery
- type WebformSelect
- func (_s *WebformSelect) Aggregate(fns ...AggregateFunc) *WebformSelect
- func (s *WebformSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformSelect) BoolX(ctx context.Context) bool
- func (s *WebformSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformSelect) BoolsX(ctx context.Context) []bool
- func (s *WebformSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformSelect) Float64X(ctx context.Context) float64
- func (s *WebformSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformSelect) Float64sX(ctx context.Context) []float64
- func (s *WebformSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WebformSelect) IntX(ctx context.Context) int
- func (s *WebformSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WebformSelect) IntsX(ctx context.Context) []int
- func (_s *WebformSelect) Scan(ctx context.Context, v any) error
- func (s *WebformSelect) ScanX(ctx context.Context, v any)
- func (s *WebformSelect) String(ctx context.Context) (_ string, err error)
- func (s *WebformSelect) StringX(ctx context.Context) string
- func (s *WebformSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WebformSelect) StringsX(ctx context.Context) []string
- type WebformSubmission
- func (_m *WebformSubmission) QueryUser() *UserQuery
- func (_m *WebformSubmission) QueryValues() *WebformSubmissionValueQuery
- func (_m *WebformSubmission) QueryWebform() *WebformQuery
- func (_m *WebformSubmission) String() string
- func (_m *WebformSubmission) Unwrap() *WebformSubmission
- func (_m *WebformSubmission) Update() *WebformSubmissionUpdateOne
- func (_m *WebformSubmission) Value(name string) (ent.Value, error)
- type WebformSubmissionClient
- func (c *WebformSubmissionClient) Create() *WebformSubmissionCreate
- func (c *WebformSubmissionClient) CreateBulk(builders ...*WebformSubmissionCreate) *WebformSubmissionCreateBulk
- func (c *WebformSubmissionClient) Delete() *WebformSubmissionDelete
- func (c *WebformSubmissionClient) DeleteOne(_m *WebformSubmission) *WebformSubmissionDeleteOne
- func (c *WebformSubmissionClient) DeleteOneID(id int) *WebformSubmissionDeleteOne
- func (c *WebformSubmissionClient) Get(ctx context.Context, id int) (*WebformSubmission, error)
- func (c *WebformSubmissionClient) GetX(ctx context.Context, id int) *WebformSubmission
- func (c *WebformSubmissionClient) Hooks() []Hook
- func (c *WebformSubmissionClient) Intercept(interceptors ...Interceptor)
- func (c *WebformSubmissionClient) Interceptors() []Interceptor
- func (c *WebformSubmissionClient) MapCreateBulk(slice any, setFunc func(*WebformSubmissionCreate, int)) *WebformSubmissionCreateBulk
- func (c *WebformSubmissionClient) Query() *WebformSubmissionQuery
- func (c *WebformSubmissionClient) QueryUser(_m *WebformSubmission) *UserQuery
- func (c *WebformSubmissionClient) QueryValues(_m *WebformSubmission) *WebformSubmissionValueQuery
- func (c *WebformSubmissionClient) QueryWebform(_m *WebformSubmission) *WebformQuery
- func (c *WebformSubmissionClient) Update() *WebformSubmissionUpdate
- func (c *WebformSubmissionClient) UpdateOne(_m *WebformSubmission) *WebformSubmissionUpdateOne
- func (c *WebformSubmissionClient) UpdateOneID(id int) *WebformSubmissionUpdateOne
- func (c *WebformSubmissionClient) Use(hooks ...Hook)
- type WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) AddValueIDs(ids ...int) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) AddValues(v ...*WebformSubmissionValue) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) Exec(ctx context.Context) error
- func (_c *WebformSubmissionCreate) ExecX(ctx context.Context)
- func (_c *WebformSubmissionCreate) Mutation() *WebformSubmissionMutation
- func (_c *WebformSubmissionCreate) Save(ctx context.Context) (*WebformSubmission, error)
- func (_c *WebformSubmissionCreate) SaveX(ctx context.Context) *WebformSubmission
- func (_c *WebformSubmissionCreate) SetCreatedAt(v time.Time) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetID(v int) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetNillableCreatedAt(v *time.Time) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetNillableRemoteIP(v *string) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetNillableSourceURL(v *string) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetNillableUserID(v *int) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetRemoteIP(v string) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetSourceURL(v string) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetUser(v *User) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetUserID(v int) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetWebform(v *Webform) *WebformSubmissionCreate
- func (_c *WebformSubmissionCreate) SetWebformID(v int) *WebformSubmissionCreate
- type WebformSubmissionCreateBulk
- func (_c *WebformSubmissionCreateBulk) Exec(ctx context.Context) error
- func (_c *WebformSubmissionCreateBulk) ExecX(ctx context.Context)
- func (_c *WebformSubmissionCreateBulk) Save(ctx context.Context) ([]*WebformSubmission, error)
- func (_c *WebformSubmissionCreateBulk) SaveX(ctx context.Context) []*WebformSubmission
- type WebformSubmissionDelete
- type WebformSubmissionDeleteOne
- type WebformSubmissionEdges
- type WebformSubmissionGroupBy
- func (_g *WebformSubmissionGroupBy) Aggregate(fns ...AggregateFunc) *WebformSubmissionGroupBy
- func (s *WebformSubmissionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformSubmissionGroupBy) BoolX(ctx context.Context) bool
- func (s *WebformSubmissionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformSubmissionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WebformSubmissionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformSubmissionGroupBy) Float64X(ctx context.Context) float64
- func (s *WebformSubmissionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformSubmissionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WebformSubmissionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WebformSubmissionGroupBy) IntX(ctx context.Context) int
- func (s *WebformSubmissionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WebformSubmissionGroupBy) IntsX(ctx context.Context) []int
- func (_g *WebformSubmissionGroupBy) Scan(ctx context.Context, v any) error
- func (s *WebformSubmissionGroupBy) ScanX(ctx context.Context, v any)
- func (s *WebformSubmissionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WebformSubmissionGroupBy) StringX(ctx context.Context) string
- func (s *WebformSubmissionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WebformSubmissionGroupBy) StringsX(ctx context.Context) []string
- type WebformSubmissionMutation
- func (m *WebformSubmissionMutation) AddField(name string, value ent.Value) error
- func (m *WebformSubmissionMutation) AddValueIDs(ids ...int)
- func (m *WebformSubmissionMutation) AddedEdges() []string
- func (m *WebformSubmissionMutation) AddedField(name string) (ent.Value, bool)
- func (m *WebformSubmissionMutation) AddedFields() []string
- func (m *WebformSubmissionMutation) AddedIDs(name string) []ent.Value
- func (m *WebformSubmissionMutation) ClearEdge(name string) error
- func (m *WebformSubmissionMutation) ClearField(name string) error
- func (m *WebformSubmissionMutation) ClearUser()
- func (m *WebformSubmissionMutation) ClearUserID()
- func (m *WebformSubmissionMutation) ClearValues()
- func (m *WebformSubmissionMutation) ClearWebform()
- func (m *WebformSubmissionMutation) ClearedEdges() []string
- func (m *WebformSubmissionMutation) ClearedFields() []string
- func (m WebformSubmissionMutation) Client() *Client
- func (m *WebformSubmissionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *WebformSubmissionMutation) EdgeCleared(name string) bool
- func (m *WebformSubmissionMutation) Field(name string) (ent.Value, bool)
- func (m *WebformSubmissionMutation) FieldCleared(name string) bool
- func (m *WebformSubmissionMutation) Fields() []string
- func (m *WebformSubmissionMutation) ID() (id int, exists bool)
- func (m *WebformSubmissionMutation) IDs(ctx context.Context) ([]int, error)
- func (m *WebformSubmissionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WebformSubmissionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WebformSubmissionMutation) OldRemoteIP(ctx context.Context) (v string, err error)
- func (m *WebformSubmissionMutation) OldSourceURL(ctx context.Context) (v string, err error)
- func (m *WebformSubmissionMutation) OldUserID(ctx context.Context) (v *int, err error)
- func (m *WebformSubmissionMutation) OldWebformID(ctx context.Context) (v int, err error)
- func (m *WebformSubmissionMutation) Op() Op
- func (m *WebformSubmissionMutation) RemoteIP() (r string, exists bool)
- func (m *WebformSubmissionMutation) RemoveValueIDs(ids ...int)
- func (m *WebformSubmissionMutation) RemovedEdges() []string
- func (m *WebformSubmissionMutation) RemovedIDs(name string) []ent.Value
- func (m *WebformSubmissionMutation) RemovedValuesIDs() (ids []int)
- func (m *WebformSubmissionMutation) ResetCreatedAt()
- func (m *WebformSubmissionMutation) ResetEdge(name string) error
- func (m *WebformSubmissionMutation) ResetField(name string) error
- func (m *WebformSubmissionMutation) ResetRemoteIP()
- func (m *WebformSubmissionMutation) ResetSourceURL()
- func (m *WebformSubmissionMutation) ResetUser()
- func (m *WebformSubmissionMutation) ResetUserID()
- func (m *WebformSubmissionMutation) ResetValues()
- func (m *WebformSubmissionMutation) ResetWebform()
- func (m *WebformSubmissionMutation) ResetWebformID()
- func (m *WebformSubmissionMutation) SetCreatedAt(t time.Time)
- func (m *WebformSubmissionMutation) SetField(name string, value ent.Value) error
- func (m *WebformSubmissionMutation) SetID(id int)
- func (m *WebformSubmissionMutation) SetOp(op Op)
- func (m *WebformSubmissionMutation) SetRemoteIP(s string)
- func (m *WebformSubmissionMutation) SetSourceURL(s string)
- func (m *WebformSubmissionMutation) SetUserID(i int)
- func (m *WebformSubmissionMutation) SetWebformID(i int)
- func (m *WebformSubmissionMutation) SourceURL() (r string, exists bool)
- func (m WebformSubmissionMutation) Tx() (*Tx, error)
- func (m *WebformSubmissionMutation) Type() string
- func (m *WebformSubmissionMutation) UserCleared() bool
- func (m *WebformSubmissionMutation) UserID() (r int, exists bool)
- func (m *WebformSubmissionMutation) UserIDCleared() bool
- func (m *WebformSubmissionMutation) UserIDs() (ids []int)
- func (m *WebformSubmissionMutation) ValuesCleared() bool
- func (m *WebformSubmissionMutation) ValuesIDs() (ids []int)
- func (m *WebformSubmissionMutation) WebformCleared() bool
- func (m *WebformSubmissionMutation) WebformID() (r int, exists bool)
- func (m *WebformSubmissionMutation) WebformIDs() (ids []int)
- func (m *WebformSubmissionMutation) Where(ps ...predicate.WebformSubmission)
- func (m *WebformSubmissionMutation) WhereP(ps ...func(*sql.Selector))
- type WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) Aggregate(fns ...AggregateFunc) *WebformSubmissionSelect
- func (_q *WebformSubmissionQuery) All(ctx context.Context) ([]*WebformSubmission, error)
- func (_q *WebformSubmissionQuery) AllX(ctx context.Context) []*WebformSubmission
- func (_q *WebformSubmissionQuery) Clone() *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) Count(ctx context.Context) (int, error)
- func (_q *WebformSubmissionQuery) CountX(ctx context.Context) int
- func (_q *WebformSubmissionQuery) Exist(ctx context.Context) (bool, error)
- func (_q *WebformSubmissionQuery) ExistX(ctx context.Context) bool
- func (_q *WebformSubmissionQuery) First(ctx context.Context) (*WebformSubmission, error)
- func (_q *WebformSubmissionQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *WebformSubmissionQuery) FirstIDX(ctx context.Context) int
- func (_q *WebformSubmissionQuery) FirstX(ctx context.Context) *WebformSubmission
- func (_q *WebformSubmissionQuery) GroupBy(field string, fields ...string) *WebformSubmissionGroupBy
- func (_q *WebformSubmissionQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *WebformSubmissionQuery) IDsX(ctx context.Context) []int
- func (_q *WebformSubmissionQuery) Limit(limit int) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) Offset(offset int) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) Only(ctx context.Context) (*WebformSubmission, error)
- func (_q *WebformSubmissionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *WebformSubmissionQuery) OnlyIDX(ctx context.Context) int
- func (_q *WebformSubmissionQuery) OnlyX(ctx context.Context) *WebformSubmission
- func (_q *WebformSubmissionQuery) Order(o ...webformsubmission.OrderOption) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) QueryUser() *UserQuery
- func (_q *WebformSubmissionQuery) QueryValues() *WebformSubmissionValueQuery
- func (_q *WebformSubmissionQuery) QueryWebform() *WebformQuery
- func (_q *WebformSubmissionQuery) Select(fields ...string) *WebformSubmissionSelect
- func (_q *WebformSubmissionQuery) Unique(unique bool) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) Where(ps ...predicate.WebformSubmission) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) WithUser(opts ...func(*UserQuery)) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) WithValues(opts ...func(*WebformSubmissionValueQuery)) *WebformSubmissionQuery
- func (_q *WebformSubmissionQuery) WithWebform(opts ...func(*WebformQuery)) *WebformSubmissionQuery
- type WebformSubmissionSelect
- func (_s *WebformSubmissionSelect) Aggregate(fns ...AggregateFunc) *WebformSubmissionSelect
- func (s *WebformSubmissionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformSubmissionSelect) BoolX(ctx context.Context) bool
- func (s *WebformSubmissionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformSubmissionSelect) BoolsX(ctx context.Context) []bool
- func (s *WebformSubmissionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformSubmissionSelect) Float64X(ctx context.Context) float64
- func (s *WebformSubmissionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformSubmissionSelect) Float64sX(ctx context.Context) []float64
- func (s *WebformSubmissionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WebformSubmissionSelect) IntX(ctx context.Context) int
- func (s *WebformSubmissionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WebformSubmissionSelect) IntsX(ctx context.Context) []int
- func (_s *WebformSubmissionSelect) Scan(ctx context.Context, v any) error
- func (s *WebformSubmissionSelect) ScanX(ctx context.Context, v any)
- func (s *WebformSubmissionSelect) String(ctx context.Context) (_ string, err error)
- func (s *WebformSubmissionSelect) StringX(ctx context.Context) string
- func (s *WebformSubmissionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WebformSubmissionSelect) StringsX(ctx context.Context) []string
- type WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) AddValueIDs(ids ...int) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) AddValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) ClearUser() *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) ClearUserID() *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) ClearValues() *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) ClearWebform() *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) Exec(ctx context.Context) error
- func (_u *WebformSubmissionUpdate) ExecX(ctx context.Context)
- func (_u *WebformSubmissionUpdate) Mutation() *WebformSubmissionMutation
- func (_u *WebformSubmissionUpdate) RemoveValueIDs(ids ...int) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) RemoveValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) Save(ctx context.Context) (int, error)
- func (_u *WebformSubmissionUpdate) SaveX(ctx context.Context) int
- func (_u *WebformSubmissionUpdate) SetCreatedAt(v time.Time) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetNillableCreatedAt(v *time.Time) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetNillableRemoteIP(v *string) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetNillableSourceURL(v *string) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetNillableUserID(v *int) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetNillableWebformID(v *int) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetRemoteIP(v string) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetSourceURL(v string) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetUser(v *User) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetUserID(v int) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetWebform(v *Webform) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) SetWebformID(v int) *WebformSubmissionUpdate
- func (_u *WebformSubmissionUpdate) Where(ps ...predicate.WebformSubmission) *WebformSubmissionUpdate
- type WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) AddValueIDs(ids ...int) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) AddValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) ClearUser() *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) ClearUserID() *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) ClearValues() *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) ClearWebform() *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) Exec(ctx context.Context) error
- func (_u *WebformSubmissionUpdateOne) ExecX(ctx context.Context)
- func (_u *WebformSubmissionUpdateOne) Mutation() *WebformSubmissionMutation
- func (_u *WebformSubmissionUpdateOne) RemoveValueIDs(ids ...int) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) RemoveValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) Save(ctx context.Context) (*WebformSubmission, error)
- func (_u *WebformSubmissionUpdateOne) SaveX(ctx context.Context) *WebformSubmission
- func (_u *WebformSubmissionUpdateOne) Select(field string, fields ...string) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetCreatedAt(v time.Time) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetNillableCreatedAt(v *time.Time) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetNillableRemoteIP(v *string) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetNillableSourceURL(v *string) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetNillableUserID(v *int) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetNillableWebformID(v *int) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetRemoteIP(v string) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetSourceURL(v string) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetUser(v *User) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetUserID(v int) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetWebform(v *Webform) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) SetWebformID(v int) *WebformSubmissionUpdateOne
- func (_u *WebformSubmissionUpdateOne) Where(ps ...predicate.WebformSubmission) *WebformSubmissionUpdateOne
- type WebformSubmissionValue
- func (_m *WebformSubmissionValue) GetValue(name string) (ent.Value, error)
- func (_m *WebformSubmissionValue) QueryElement() *WebformElementQuery
- func (_m *WebformSubmissionValue) QuerySubmission() *WebformSubmissionQuery
- func (_m *WebformSubmissionValue) String() string
- func (_m *WebformSubmissionValue) Unwrap() *WebformSubmissionValue
- func (_m *WebformSubmissionValue) Update() *WebformSubmissionValueUpdateOne
- type WebformSubmissionValueClient
- func (c *WebformSubmissionValueClient) Create() *WebformSubmissionValueCreate
- func (c *WebformSubmissionValueClient) CreateBulk(builders ...*WebformSubmissionValueCreate) *WebformSubmissionValueCreateBulk
- func (c *WebformSubmissionValueClient) Delete() *WebformSubmissionValueDelete
- func (c *WebformSubmissionValueClient) DeleteOne(_m *WebformSubmissionValue) *WebformSubmissionValueDeleteOne
- func (c *WebformSubmissionValueClient) DeleteOneID(id int) *WebformSubmissionValueDeleteOne
- func (c *WebformSubmissionValueClient) Get(ctx context.Context, id int) (*WebformSubmissionValue, error)
- func (c *WebformSubmissionValueClient) GetX(ctx context.Context, id int) *WebformSubmissionValue
- func (c *WebformSubmissionValueClient) Hooks() []Hook
- func (c *WebformSubmissionValueClient) Intercept(interceptors ...Interceptor)
- func (c *WebformSubmissionValueClient) Interceptors() []Interceptor
- func (c *WebformSubmissionValueClient) MapCreateBulk(slice any, setFunc func(*WebformSubmissionValueCreate, int)) *WebformSubmissionValueCreateBulk
- func (c *WebformSubmissionValueClient) Query() *WebformSubmissionValueQuery
- func (c *WebformSubmissionValueClient) QueryElement(_m *WebformSubmissionValue) *WebformElementQuery
- func (c *WebformSubmissionValueClient) QuerySubmission(_m *WebformSubmissionValue) *WebformSubmissionQuery
- func (c *WebformSubmissionValueClient) Update() *WebformSubmissionValueUpdate
- func (c *WebformSubmissionValueClient) UpdateOne(_m *WebformSubmissionValue) *WebformSubmissionValueUpdateOne
- func (c *WebformSubmissionValueClient) UpdateOneID(id int) *WebformSubmissionValueUpdateOne
- func (c *WebformSubmissionValueClient) Use(hooks ...Hook)
- type WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) Exec(ctx context.Context) error
- func (_c *WebformSubmissionValueCreate) ExecX(ctx context.Context)
- func (_c *WebformSubmissionValueCreate) Mutation() *WebformSubmissionValueMutation
- func (_c *WebformSubmissionValueCreate) Save(ctx context.Context) (*WebformSubmissionValue, error)
- func (_c *WebformSubmissionValueCreate) SaveX(ctx context.Context) *WebformSubmissionValue
- func (_c *WebformSubmissionValueCreate) SetDelta(v int) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetElement(v *WebformElement) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetElementID(v int) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetID(v int) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetNillableDelta(v *int) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetSubmission(v *WebformSubmission) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetSubmissionID(v int) *WebformSubmissionValueCreate
- func (_c *WebformSubmissionValueCreate) SetValue(v string) *WebformSubmissionValueCreate
- type WebformSubmissionValueCreateBulk
- func (_c *WebformSubmissionValueCreateBulk) Exec(ctx context.Context) error
- func (_c *WebformSubmissionValueCreateBulk) ExecX(ctx context.Context)
- func (_c *WebformSubmissionValueCreateBulk) Save(ctx context.Context) ([]*WebformSubmissionValue, error)
- func (_c *WebformSubmissionValueCreateBulk) SaveX(ctx context.Context) []*WebformSubmissionValue
- type WebformSubmissionValueDelete
- type WebformSubmissionValueDeleteOne
- type WebformSubmissionValueEdges
- type WebformSubmissionValueGroupBy
- func (_g *WebformSubmissionValueGroupBy) Aggregate(fns ...AggregateFunc) *WebformSubmissionValueGroupBy
- func (s *WebformSubmissionValueGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformSubmissionValueGroupBy) BoolX(ctx context.Context) bool
- func (s *WebformSubmissionValueGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformSubmissionValueGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WebformSubmissionValueGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformSubmissionValueGroupBy) Float64X(ctx context.Context) float64
- func (s *WebformSubmissionValueGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformSubmissionValueGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WebformSubmissionValueGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WebformSubmissionValueGroupBy) IntX(ctx context.Context) int
- func (s *WebformSubmissionValueGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WebformSubmissionValueGroupBy) IntsX(ctx context.Context) []int
- func (_g *WebformSubmissionValueGroupBy) Scan(ctx context.Context, v any) error
- func (s *WebformSubmissionValueGroupBy) ScanX(ctx context.Context, v any)
- func (s *WebformSubmissionValueGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WebformSubmissionValueGroupBy) StringX(ctx context.Context) string
- func (s *WebformSubmissionValueGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WebformSubmissionValueGroupBy) StringsX(ctx context.Context) []string
- type WebformSubmissionValueMutation
- func (m *WebformSubmissionValueMutation) AddDelta(i int)
- func (m *WebformSubmissionValueMutation) AddField(name string, value ent.Value) error
- func (m *WebformSubmissionValueMutation) AddedDelta() (r int, exists bool)
- func (m *WebformSubmissionValueMutation) AddedEdges() []string
- func (m *WebformSubmissionValueMutation) AddedField(name string) (ent.Value, bool)
- func (m *WebformSubmissionValueMutation) AddedFields() []string
- func (m *WebformSubmissionValueMutation) AddedIDs(name string) []ent.Value
- func (m *WebformSubmissionValueMutation) ClearEdge(name string) error
- func (m *WebformSubmissionValueMutation) ClearElement()
- func (m *WebformSubmissionValueMutation) ClearField(name string) error
- func (m *WebformSubmissionValueMutation) ClearSubmission()
- func (m *WebformSubmissionValueMutation) ClearedEdges() []string
- func (m *WebformSubmissionValueMutation) ClearedFields() []string
- func (m WebformSubmissionValueMutation) Client() *Client
- func (m *WebformSubmissionValueMutation) Delta() (r int, exists bool)
- func (m *WebformSubmissionValueMutation) EdgeCleared(name string) bool
- func (m *WebformSubmissionValueMutation) ElementCleared() bool
- func (m *WebformSubmissionValueMutation) ElementID() (r int, exists bool)
- func (m *WebformSubmissionValueMutation) ElementIDs() (ids []int)
- func (m *WebformSubmissionValueMutation) Field(name string) (ent.Value, bool)
- func (m *WebformSubmissionValueMutation) FieldCleared(name string) bool
- func (m *WebformSubmissionValueMutation) Fields() []string
- func (m *WebformSubmissionValueMutation) ID() (id int, exists bool)
- func (m *WebformSubmissionValueMutation) IDs(ctx context.Context) ([]int, error)
- func (m *WebformSubmissionValueMutation) OldDelta(ctx context.Context) (v int, err error)
- func (m *WebformSubmissionValueMutation) OldElementID(ctx context.Context) (v int, err error)
- func (m *WebformSubmissionValueMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WebformSubmissionValueMutation) OldSubmissionID(ctx context.Context) (v int, err error)
- func (m *WebformSubmissionValueMutation) OldValue(ctx context.Context) (v string, err error)
- func (m *WebformSubmissionValueMutation) Op() Op
- func (m *WebformSubmissionValueMutation) RemovedEdges() []string
- func (m *WebformSubmissionValueMutation) RemovedIDs(name string) []ent.Value
- func (m *WebformSubmissionValueMutation) ResetDelta()
- func (m *WebformSubmissionValueMutation) ResetEdge(name string) error
- func (m *WebformSubmissionValueMutation) ResetElement()
- func (m *WebformSubmissionValueMutation) ResetElementID()
- func (m *WebformSubmissionValueMutation) ResetField(name string) error
- func (m *WebformSubmissionValueMutation) ResetSubmission()
- func (m *WebformSubmissionValueMutation) ResetSubmissionID()
- func (m *WebformSubmissionValueMutation) ResetValue()
- func (m *WebformSubmissionValueMutation) SetDelta(i int)
- func (m *WebformSubmissionValueMutation) SetElementID(i int)
- func (m *WebformSubmissionValueMutation) SetField(name string, value ent.Value) error
- func (m *WebformSubmissionValueMutation) SetID(id int)
- func (m *WebformSubmissionValueMutation) SetOp(op Op)
- func (m *WebformSubmissionValueMutation) SetSubmissionID(i int)
- func (m *WebformSubmissionValueMutation) SetValue(s string)
- func (m *WebformSubmissionValueMutation) SubmissionCleared() bool
- func (m *WebformSubmissionValueMutation) SubmissionID() (r int, exists bool)
- func (m *WebformSubmissionValueMutation) SubmissionIDs() (ids []int)
- func (m WebformSubmissionValueMutation) Tx() (*Tx, error)
- func (m *WebformSubmissionValueMutation) Type() string
- func (m *WebformSubmissionValueMutation) Value() (r string, exists bool)
- func (m *WebformSubmissionValueMutation) Where(ps ...predicate.WebformSubmissionValue)
- func (m *WebformSubmissionValueMutation) WhereP(ps ...func(*sql.Selector))
- type WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) Aggregate(fns ...AggregateFunc) *WebformSubmissionValueSelect
- func (_q *WebformSubmissionValueQuery) All(ctx context.Context) ([]*WebformSubmissionValue, error)
- func (_q *WebformSubmissionValueQuery) AllX(ctx context.Context) []*WebformSubmissionValue
- func (_q *WebformSubmissionValueQuery) Clone() *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) Count(ctx context.Context) (int, error)
- func (_q *WebformSubmissionValueQuery) CountX(ctx context.Context) int
- func (_q *WebformSubmissionValueQuery) Exist(ctx context.Context) (bool, error)
- func (_q *WebformSubmissionValueQuery) ExistX(ctx context.Context) bool
- func (_q *WebformSubmissionValueQuery) First(ctx context.Context) (*WebformSubmissionValue, error)
- func (_q *WebformSubmissionValueQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *WebformSubmissionValueQuery) FirstIDX(ctx context.Context) int
- func (_q *WebformSubmissionValueQuery) FirstX(ctx context.Context) *WebformSubmissionValue
- func (_q *WebformSubmissionValueQuery) GroupBy(field string, fields ...string) *WebformSubmissionValueGroupBy
- func (_q *WebformSubmissionValueQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *WebformSubmissionValueQuery) IDsX(ctx context.Context) []int
- func (_q *WebformSubmissionValueQuery) Limit(limit int) *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) Offset(offset int) *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) Only(ctx context.Context) (*WebformSubmissionValue, error)
- func (_q *WebformSubmissionValueQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *WebformSubmissionValueQuery) OnlyIDX(ctx context.Context) int
- func (_q *WebformSubmissionValueQuery) OnlyX(ctx context.Context) *WebformSubmissionValue
- func (_q *WebformSubmissionValueQuery) Order(o ...webformsubmissionvalue.OrderOption) *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) QueryElement() *WebformElementQuery
- func (_q *WebformSubmissionValueQuery) QuerySubmission() *WebformSubmissionQuery
- func (_q *WebformSubmissionValueQuery) Select(fields ...string) *WebformSubmissionValueSelect
- func (_q *WebformSubmissionValueQuery) Unique(unique bool) *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) WithElement(opts ...func(*WebformElementQuery)) *WebformSubmissionValueQuery
- func (_q *WebformSubmissionValueQuery) WithSubmission(opts ...func(*WebformSubmissionQuery)) *WebformSubmissionValueQuery
- type WebformSubmissionValueSelect
- func (_s *WebformSubmissionValueSelect) Aggregate(fns ...AggregateFunc) *WebformSubmissionValueSelect
- func (s *WebformSubmissionValueSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebformSubmissionValueSelect) BoolX(ctx context.Context) bool
- func (s *WebformSubmissionValueSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WebformSubmissionValueSelect) BoolsX(ctx context.Context) []bool
- func (s *WebformSubmissionValueSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebformSubmissionValueSelect) Float64X(ctx context.Context) float64
- func (s *WebformSubmissionValueSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebformSubmissionValueSelect) Float64sX(ctx context.Context) []float64
- func (s *WebformSubmissionValueSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WebformSubmissionValueSelect) IntX(ctx context.Context) int
- func (s *WebformSubmissionValueSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WebformSubmissionValueSelect) IntsX(ctx context.Context) []int
- func (_s *WebformSubmissionValueSelect) Scan(ctx context.Context, v any) error
- func (s *WebformSubmissionValueSelect) ScanX(ctx context.Context, v any)
- func (s *WebformSubmissionValueSelect) String(ctx context.Context) (_ string, err error)
- func (s *WebformSubmissionValueSelect) StringX(ctx context.Context) string
- func (s *WebformSubmissionValueSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WebformSubmissionValueSelect) StringsX(ctx context.Context) []string
- type WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) AddDelta(v int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) ClearElement() *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) ClearSubmission() *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) Exec(ctx context.Context) error
- func (_u *WebformSubmissionValueUpdate) ExecX(ctx context.Context)
- func (_u *WebformSubmissionValueUpdate) Mutation() *WebformSubmissionValueMutation
- func (_u *WebformSubmissionValueUpdate) Save(ctx context.Context) (int, error)
- func (_u *WebformSubmissionValueUpdate) SaveX(ctx context.Context) int
- func (_u *WebformSubmissionValueUpdate) SetDelta(v int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetElement(v *WebformElement) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetElementID(v int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetNillableDelta(v *int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetNillableElementID(v *int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetNillableSubmissionID(v *int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetNillableValue(v *string) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetSubmission(v *WebformSubmission) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetSubmissionID(v int) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) SetValue(v string) *WebformSubmissionValueUpdate
- func (_u *WebformSubmissionValueUpdate) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueUpdate
- type WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) AddDelta(v int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) ClearElement() *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) ClearSubmission() *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) Exec(ctx context.Context) error
- func (_u *WebformSubmissionValueUpdateOne) ExecX(ctx context.Context)
- func (_u *WebformSubmissionValueUpdateOne) Mutation() *WebformSubmissionValueMutation
- func (_u *WebformSubmissionValueUpdateOne) Save(ctx context.Context) (*WebformSubmissionValue, error)
- func (_u *WebformSubmissionValueUpdateOne) SaveX(ctx context.Context) *WebformSubmissionValue
- func (_u *WebformSubmissionValueUpdateOne) Select(field string, fields ...string) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetDelta(v int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetElement(v *WebformElement) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetElementID(v int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetNillableDelta(v *int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetNillableElementID(v *int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetNillableSubmissionID(v *int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetNillableValue(v *string) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetSubmission(v *WebformSubmission) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetSubmissionID(v int) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) SetValue(v string) *WebformSubmissionValueUpdateOne
- func (_u *WebformSubmissionValueUpdateOne) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueUpdateOne
- type WebformSubmissionValues
- type WebformSubmissions
- type WebformUpdate
- func (_u *WebformUpdate) AddElementIDs(ids ...int) *WebformUpdate
- func (_u *WebformUpdate) AddElements(v ...*WebformElement) *WebformUpdate
- func (_u *WebformUpdate) AddMaxSubmissions(v int) *WebformUpdate
- func (_u *WebformUpdate) AddSubmissionIDs(ids ...int) *WebformUpdate
- func (_u *WebformUpdate) AddSubmissions(v ...*WebformSubmission) *WebformUpdate
- func (_u *WebformUpdate) ClearClosesAt() *WebformUpdate
- func (_u *WebformUpdate) ClearConfirmation() *WebformUpdate
- func (_u *WebformUpdate) ClearDescription() *WebformUpdate
- func (_u *WebformUpdate) ClearElements() *WebformUpdate
- func (_u *WebformUpdate) ClearNode() *WebformUpdate
- func (_u *WebformUpdate) ClearSubmissions() *WebformUpdate
- func (_u *WebformUpdate) Exec(ctx context.Context) error
- func (_u *WebformUpdate) ExecX(ctx context.Context)
- func (_u *WebformUpdate) Mutation() *WebformMutation
- func (_u *WebformUpdate) RemoveElementIDs(ids ...int) *WebformUpdate
- func (_u *WebformUpdate) RemoveElements(v ...*WebformElement) *WebformUpdate
- func (_u *WebformUpdate) RemoveSubmissionIDs(ids ...int) *WebformUpdate
- func (_u *WebformUpdate) RemoveSubmissions(v ...*WebformSubmission) *WebformUpdate
- func (_u *WebformUpdate) Save(ctx context.Context) (int, error)
- func (_u *WebformUpdate) SaveX(ctx context.Context) int
- func (_u *WebformUpdate) SetClosed(v bool) *WebformUpdate
- func (_u *WebformUpdate) SetClosesAt(v time.Time) *WebformUpdate
- func (_u *WebformUpdate) SetConfirmation(v string) *WebformUpdate
- func (_u *WebformUpdate) SetConfirmationURL(v string) *WebformUpdate
- func (_u *WebformUpdate) SetDescription(v string) *WebformUpdate
- func (_u *WebformUpdate) SetLimitPerUser(v bool) *WebformUpdate
- func (_u *WebformUpdate) SetMaxSubmissions(v int) *WebformUpdate
- func (_u *WebformUpdate) SetNid(v int) *WebformUpdate
- func (_u *WebformUpdate) SetNillableClosed(v *bool) *WebformUpdate
- func (_u *WebformUpdate) SetNillableClosesAt(v *time.Time) *WebformUpdate
- func (_u *WebformUpdate) SetNillableConfirmation(v *string) *WebformUpdate
- func (_u *WebformUpdate) SetNillableConfirmationURL(v *string) *WebformUpdate
- func (_u *WebformUpdate) SetNillableDescription(v *string) *WebformUpdate
- func (_u *WebformUpdate) SetNillableLimitPerUser(v *bool) *WebformUpdate
- func (_u *WebformUpdate) SetNillableMaxSubmissions(v *int) *WebformUpdate
- func (_u *WebformUpdate) SetNillableNid(v *int) *WebformUpdate
- func (_u *WebformUpdate) SetNillableNotifyEmail(v *string) *WebformUpdate
- func (_u *WebformUpdate) SetNillableSubmitLabel(v *string) *WebformUpdate
- func (_u *WebformUpdate) SetNode(v *Node) *WebformUpdate
- func (_u *WebformUpdate) SetNodeID(id int) *WebformUpdate
- func (_u *WebformUpdate) SetNotifyEmail(v string) *WebformUpdate
- func (_u *WebformUpdate) SetSubmitLabel(v string) *WebformUpdate
- func (_u *WebformUpdate) Where(ps ...predicate.Webform) *WebformUpdate
- type WebformUpdateOne
- func (_u *WebformUpdateOne) AddElementIDs(ids ...int) *WebformUpdateOne
- func (_u *WebformUpdateOne) AddElements(v ...*WebformElement) *WebformUpdateOne
- func (_u *WebformUpdateOne) AddMaxSubmissions(v int) *WebformUpdateOne
- func (_u *WebformUpdateOne) AddSubmissionIDs(ids ...int) *WebformUpdateOne
- func (_u *WebformUpdateOne) AddSubmissions(v ...*WebformSubmission) *WebformUpdateOne
- func (_u *WebformUpdateOne) ClearClosesAt() *WebformUpdateOne
- func (_u *WebformUpdateOne) ClearConfirmation() *WebformUpdateOne
- func (_u *WebformUpdateOne) ClearDescription() *WebformUpdateOne
- func (_u *WebformUpdateOne) ClearElements() *WebformUpdateOne
- func (_u *WebformUpdateOne) ClearNode() *WebformUpdateOne
- func (_u *WebformUpdateOne) ClearSubmissions() *WebformUpdateOne
- func (_u *WebformUpdateOne) Exec(ctx context.Context) error
- func (_u *WebformUpdateOne) ExecX(ctx context.Context)
- func (_u *WebformUpdateOne) Mutation() *WebformMutation
- func (_u *WebformUpdateOne) RemoveElementIDs(ids ...int) *WebformUpdateOne
- func (_u *WebformUpdateOne) RemoveElements(v ...*WebformElement) *WebformUpdateOne
- func (_u *WebformUpdateOne) RemoveSubmissionIDs(ids ...int) *WebformUpdateOne
- func (_u *WebformUpdateOne) RemoveSubmissions(v ...*WebformSubmission) *WebformUpdateOne
- func (_u *WebformUpdateOne) Save(ctx context.Context) (*Webform, error)
- func (_u *WebformUpdateOne) SaveX(ctx context.Context) *Webform
- func (_u *WebformUpdateOne) Select(field string, fields ...string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetClosed(v bool) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetClosesAt(v time.Time) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetConfirmation(v string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetConfirmationURL(v string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetDescription(v string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetLimitPerUser(v bool) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetMaxSubmissions(v int) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNid(v int) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableClosed(v *bool) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableClosesAt(v *time.Time) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableConfirmation(v *string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableConfirmationURL(v *string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableDescription(v *string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableLimitPerUser(v *bool) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableMaxSubmissions(v *int) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableNid(v *int) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableNotifyEmail(v *string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNillableSubmitLabel(v *string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNode(v *Node) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNodeID(id int) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetNotifyEmail(v string) *WebformUpdateOne
- func (_u *WebformUpdateOne) SetSubmitLabel(v string) *WebformUpdateOne
- func (_u *WebformUpdateOne) Where(ps ...predicate.Webform) *WebformUpdateOne
- type Webforms
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeNode = "Node" TypeUser = "User" TypeWebform = "Webform" TypeWebformElement = "WebformElement" TypeWebformSubmission = "WebformSubmission" TypeWebformSubmissionValue = "WebformSubmissionValue" )
Variables ¶
var ErrTxStarted = errors.New("generated: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(generated.As(generated.Sum(field1), "sum_field1"), (generated.As(generated.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// Node is the client for interacting with the Node builders.
Node *NodeClient
// User is the client for interacting with the User builders.
User *UserClient
// Webform is the client for interacting with the Webform builders.
Webform *WebformClient
// WebformElement is the client for interacting with the WebformElement builders.
WebformElement *WebformElementClient
// WebformSubmission is the client for interacting with the WebformSubmission builders.
WebformSubmission *WebformSubmissionClient
// WebformSubmissionValue is the client for interacting with the WebformSubmissionValue builders.
WebformSubmissionValue *WebformSubmissionValueClient
// contains filtered or unexported fields
}
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Node. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer {
return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Commit(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type Node ¶
type Node struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// contains filtered or unexported fields
}
Node is the model entity for the Node schema.
func (*Node) Unwrap ¶
Unwrap unwraps the Node entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Node) Update ¶
func (_m *Node) Update() *NodeUpdateOne
Update returns a builder for updating this Node. Note that you need to call Node.Unwrap() before calling this method if this Node was returned from a transaction, and the transaction was committed or rolled back.
type NodeClient ¶
type NodeClient struct {
// contains filtered or unexported fields
}
NodeClient is a client for the Node schema.
func NewNodeClient ¶
func NewNodeClient(c config) *NodeClient
NewNodeClient returns a client for the Node from the given config.
func (*NodeClient) Create ¶
func (c *NodeClient) Create() *NodeCreate
Create returns a builder for creating a Node entity.
func (*NodeClient) CreateBulk ¶
func (c *NodeClient) CreateBulk(builders ...*NodeCreate) *NodeCreateBulk
CreateBulk returns a builder for creating a bulk of Node entities.
func (*NodeClient) Delete ¶
func (c *NodeClient) Delete() *NodeDelete
Delete returns a delete builder for Node.
func (*NodeClient) DeleteOne ¶
func (c *NodeClient) DeleteOne(_m *Node) *NodeDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*NodeClient) DeleteOneID ¶
func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*NodeClient) GetX ¶
func (c *NodeClient) GetX(ctx context.Context, id int) *Node
GetX is like Get, but panics if an error occurs.
func (*NodeClient) Intercept ¶
func (c *NodeClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `node.Intercept(f(g(h())))`.
func (*NodeClient) Interceptors ¶
func (c *NodeClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*NodeClient) MapCreateBulk ¶
func (c *NodeClient) MapCreateBulk(slice any, setFunc func(*NodeCreate, int)) *NodeCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*NodeClient) Query ¶
func (c *NodeClient) Query() *NodeQuery
Query returns a query builder for Node.
func (*NodeClient) Update ¶
func (c *NodeClient) Update() *NodeUpdate
Update returns an update builder for Node.
func (*NodeClient) UpdateOne ¶
func (c *NodeClient) UpdateOne(_m *Node) *NodeUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NodeClient) UpdateOneID ¶
func (c *NodeClient) UpdateOneID(id int) *NodeUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NodeClient) Use ¶
func (c *NodeClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `node.Hooks(f(g(h())))`.
type NodeCreate ¶
type NodeCreate struct {
// contains filtered or unexported fields
}
NodeCreate is the builder for creating a Node entity.
func (*NodeCreate) Exec ¶
func (_c *NodeCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*NodeCreate) ExecX ¶
func (_c *NodeCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NodeCreate) Mutation ¶
func (_c *NodeCreate) Mutation() *NodeMutation
Mutation returns the NodeMutation object of the builder.
func (*NodeCreate) Save ¶
func (_c *NodeCreate) Save(ctx context.Context) (*Node, error)
Save creates the Node in the database.
func (*NodeCreate) SaveX ¶
func (_c *NodeCreate) SaveX(ctx context.Context) *Node
SaveX calls Save and panics if Save returns an error.
func (*NodeCreate) SetID ¶
func (_c *NodeCreate) SetID(v int) *NodeCreate
SetID sets the "id" field.
type NodeCreateBulk ¶
type NodeCreateBulk struct {
// contains filtered or unexported fields
}
NodeCreateBulk is the builder for creating many Node entities in bulk.
func (*NodeCreateBulk) Exec ¶
func (_c *NodeCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NodeCreateBulk) ExecX ¶
func (_c *NodeCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type NodeDelete ¶
type NodeDelete struct {
// contains filtered or unexported fields
}
NodeDelete is the builder for deleting a Node entity.
func (*NodeDelete) Exec ¶
func (_d *NodeDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NodeDelete) ExecX ¶
func (_d *NodeDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NodeDelete) Where ¶
func (_d *NodeDelete) Where(ps ...predicate.Node) *NodeDelete
Where appends a list predicates to the NodeDelete builder.
type NodeDeleteOne ¶
type NodeDeleteOne struct {
// contains filtered or unexported fields
}
NodeDeleteOne is the builder for deleting a single Node entity.
func (*NodeDeleteOne) Exec ¶
func (_d *NodeDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NodeDeleteOne) ExecX ¶
func (_d *NodeDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NodeDeleteOne) Where ¶
func (_d *NodeDeleteOne) Where(ps ...predicate.Node) *NodeDeleteOne
Where appends a list predicates to the NodeDelete builder.
type NodeGroupBy ¶
type NodeGroupBy struct {
// contains filtered or unexported fields
}
NodeGroupBy is the group-by builder for Node entities.
func (*NodeGroupBy) Aggregate ¶
func (_g *NodeGroupBy) Aggregate(fns ...AggregateFunc) *NodeGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NodeGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NodeGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NodeGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NodeGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NodeGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NodeGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NodeGroupBy) Scan ¶
func (_g *NodeGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NodeGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NodeMutation ¶
type NodeMutation struct {
// contains filtered or unexported fields
}
NodeMutation represents an operation that mutates the Node nodes in the graph.
func (*NodeMutation) AddField ¶
func (m *NodeMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*NodeMutation) AddedEdges ¶
func (m *NodeMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NodeMutation) AddedField ¶
func (m *NodeMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*NodeMutation) AddedFields ¶
func (m *NodeMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*NodeMutation) AddedIDs ¶
func (m *NodeMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*NodeMutation) ClearEdge ¶
func (m *NodeMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*NodeMutation) ClearField ¶
func (m *NodeMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*NodeMutation) ClearedEdges ¶
func (m *NodeMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NodeMutation) ClearedFields ¶
func (m *NodeMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NodeMutation) Client ¶
func (m NodeMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*NodeMutation) EdgeCleared ¶
func (m *NodeMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*NodeMutation) Field ¶
func (m *NodeMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*NodeMutation) FieldCleared ¶
func (m *NodeMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*NodeMutation) Fields ¶
func (m *NodeMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*NodeMutation) ID ¶
func (m *NodeMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*NodeMutation) IDs ¶
func (m *NodeMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*NodeMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*NodeMutation) RemovedEdges ¶
func (m *NodeMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NodeMutation) RemovedIDs ¶
func (m *NodeMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*NodeMutation) ResetEdge ¶
func (m *NodeMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*NodeMutation) ResetField ¶
func (m *NodeMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*NodeMutation) SetField ¶
func (m *NodeMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*NodeMutation) SetID ¶
func (m *NodeMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Node entities.
func (*NodeMutation) SetOp ¶
func (m *NodeMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (NodeMutation) Tx ¶
func (m NodeMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NodeMutation) Type ¶
func (m *NodeMutation) Type() string
Type returns the node type of this mutation (Node).
func (*NodeMutation) Where ¶
func (m *NodeMutation) Where(ps ...predicate.Node)
Where appends a list predicates to the NodeMutation builder.
func (*NodeMutation) WhereP ¶
func (m *NodeMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the NodeMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type NodeQuery ¶
type NodeQuery struct {
// contains filtered or unexported fields
}
NodeQuery is the builder for querying Node entities.
func (*NodeQuery) Aggregate ¶
func (_q *NodeQuery) Aggregate(fns ...AggregateFunc) *NodeSelect
Aggregate returns a NodeSelect configured with the given aggregations.
func (*NodeQuery) Clone ¶
Clone returns a duplicate of the NodeQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NodeQuery) First ¶
First returns the first Node entity from the query. Returns a *NotFoundError when no Node was found.
func (*NodeQuery) FirstID ¶
FirstID returns the first Node ID from the query. Returns a *NotFoundError when no Node ID was found.
func (*NodeQuery) GroupBy ¶
func (_q *NodeQuery) GroupBy(field string, fields ...string) *NodeGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
func (*NodeQuery) Only ¶
Only returns a single Node entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Node entity is found. Returns a *NotFoundError when no Node entities are found.
func (*NodeQuery) OnlyID ¶
OnlyID is like Only, but returns the only Node ID in the query. Returns a *NotSingularError when more than one Node ID is found. Returns a *NotFoundError when no entities are found.
func (*NodeQuery) Order ¶
func (_q *NodeQuery) Order(o ...node.OrderOption) *NodeQuery
Order specifies how the records should be ordered.
func (*NodeQuery) Select ¶
func (_q *NodeQuery) Select(fields ...string) *NodeSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
type NodeSelect ¶
type NodeSelect struct {
*NodeQuery
// contains filtered or unexported fields
}
NodeSelect is the builder for selecting fields of Node entities.
func (*NodeSelect) Aggregate ¶
func (_s *NodeSelect) Aggregate(fns ...AggregateFunc) *NodeSelect
Aggregate adds the given aggregation functions to the selector query.
func (*NodeSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NodeSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NodeSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NodeSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NodeSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NodeSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NodeSelect) Scan ¶
func (_s *NodeSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NodeSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NodeUpdate ¶
type NodeUpdate struct {
// contains filtered or unexported fields
}
NodeUpdate is the builder for updating Node entities.
func (*NodeUpdate) Exec ¶
func (_u *NodeUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NodeUpdate) ExecX ¶
func (_u *NodeUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NodeUpdate) Mutation ¶
func (_u *NodeUpdate) Mutation() *NodeMutation
Mutation returns the NodeMutation object of the builder.
func (*NodeUpdate) Save ¶
func (_u *NodeUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*NodeUpdate) SaveX ¶
func (_u *NodeUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NodeUpdate) Where ¶
func (_u *NodeUpdate) Where(ps ...predicate.Node) *NodeUpdate
Where appends a list predicates to the NodeUpdate builder.
type NodeUpdateOne ¶
type NodeUpdateOne struct {
// contains filtered or unexported fields
}
NodeUpdateOne is the builder for updating a single Node entity.
func (*NodeUpdateOne) Exec ¶
func (_u *NodeUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NodeUpdateOne) ExecX ¶
func (_u *NodeUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NodeUpdateOne) Mutation ¶
func (_u *NodeUpdateOne) Mutation() *NodeMutation
Mutation returns the NodeMutation object of the builder.
func (*NodeUpdateOne) Save ¶
func (_u *NodeUpdateOne) Save(ctx context.Context) (*Node, error)
Save executes the query and returns the updated Node entity.
func (*NodeUpdateOne) SaveX ¶
func (_u *NodeUpdateOne) SaveX(ctx context.Context) *Node
SaveX is like Save, but panics if an error occurs.
func (*NodeUpdateOne) Select ¶
func (_u *NodeUpdateOne) Select(field string, fields ...string) *NodeUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*NodeUpdateOne) Where ¶
func (_u *NodeUpdateOne) Where(ps ...predicate.Node) *NodeUpdateOne
Where appends a list predicates to the NodeUpdate builder.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
func (*NotFoundError) Is ¶
func (e *NotFoundError) Is(target error) bool
Is makes errors.Is(err, schemakit.ErrEntityNotFound) true for ent's not-found errors, so the engine recognizes the module's missing record as it does the core's (its handlers answer 404).
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker {
return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Rollback(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// Node is the client for interacting with the Node builders.
Node *NodeClient
// User is the client for interacting with the User builders.
User *UserClient
// Webform is the client for interacting with the Webform builders.
Webform *WebformClient
// WebformElement is the client for interacting with the WebformElement builders.
WebformElement *WebformElementClient
// WebformSubmission is the client for interacting with the WebformSubmission builders.
WebformSubmission *WebformSubmissionClient
// WebformSubmissionValue is the client for interacting with the WebformSubmissionValue builders.
WebformSubmissionValue *WebformSubmissionValueClient
// contains filtered or unexported fields
}
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type User ¶
type User struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// contains filtered or unexported fields
}
User is the model entity for the User schema.
func (*User) Unwrap ¶
Unwrap unwraps the User entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*User) Update ¶
func (_m *User) Update() *UserUpdateOne
Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
UserClient is a client for the User schema.
func NewUserClient ¶
func NewUserClient(c config) *UserClient
NewUserClient returns a client for the User from the given config.
func (*UserClient) Create ¶
func (c *UserClient) Create() *UserCreate
Create returns a builder for creating a User entity.
func (*UserClient) CreateBulk ¶
func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
CreateBulk returns a builder for creating a bulk of User entities.
func (*UserClient) Delete ¶
func (c *UserClient) Delete() *UserDelete
Delete returns a delete builder for User.
func (*UserClient) DeleteOne ¶
func (c *UserClient) DeleteOne(_m *User) *UserDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserClient) DeleteOneID ¶
func (c *UserClient) DeleteOneID(id int) *UserDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserClient) GetX ¶
func (c *UserClient) GetX(ctx context.Context, id int) *User
GetX is like Get, but panics if an error occurs.
func (*UserClient) Intercept ¶
func (c *UserClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (*UserClient) Interceptors ¶
func (c *UserClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserClient) MapCreateBulk ¶
func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) Update ¶
func (c *UserClient) Update() *UserUpdate
Update returns an update builder for User.
func (*UserClient) UpdateOne ¶
func (c *UserClient) UpdateOne(_m *User) *UserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserClient) UpdateOneID ¶
func (c *UserClient) UpdateOneID(id int) *UserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserClient) Use ¶
func (c *UserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.
type UserCreate ¶
type UserCreate struct {
// contains filtered or unexported fields
}
UserCreate is the builder for creating a User entity.
func (*UserCreate) Exec ¶
func (_c *UserCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreate) ExecX ¶
func (_c *UserCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCreate) Mutation ¶
func (_c *UserCreate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserCreate) Save ¶
func (_c *UserCreate) Save(ctx context.Context) (*User, error)
Save creates the User in the database.
func (*UserCreate) SaveX ¶
func (_c *UserCreate) SaveX(ctx context.Context) *User
SaveX calls Save and panics if Save returns an error.
func (*UserCreate) SetID ¶
func (_c *UserCreate) SetID(v int) *UserCreate
SetID sets the "id" field.
type UserCreateBulk ¶
type UserCreateBulk struct {
// contains filtered or unexported fields
}
UserCreateBulk is the builder for creating many User entities in bulk.
func (*UserCreateBulk) Exec ¶
func (_c *UserCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreateBulk) ExecX ¶
func (_c *UserCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
UserDelete is the builder for deleting a User entity.
func (*UserDelete) Exec ¶
func (_d *UserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserDelete) ExecX ¶
func (_d *UserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserDelete) Where ¶
func (_d *UserDelete) Where(ps ...predicate.User) *UserDelete
Where appends a list predicates to the UserDelete builder.
type UserDeleteOne ¶
type UserDeleteOne struct {
// contains filtered or unexported fields
}
UserDeleteOne is the builder for deleting a single User entity.
func (*UserDeleteOne) Exec ¶
func (_d *UserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserDeleteOne) ExecX ¶
func (_d *UserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserDeleteOne) Where ¶
func (_d *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne
Where appends a list predicates to the UserDelete builder.
type UserGroupBy ¶
type UserGroupBy struct {
// contains filtered or unexported fields
}
UserGroupBy is the group-by builder for User entities.
func (*UserGroupBy) Aggregate ¶
func (_g *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Scan ¶
func (_g *UserGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserMutation ¶
type UserMutation struct {
// contains filtered or unexported fields
}
UserMutation represents an operation that mutates the User nodes in the graph.
func (*UserMutation) AddField ¶
func (m *UserMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*UserMutation) AddedEdges ¶
func (m *UserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserMutation) AddedField ¶
func (m *UserMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*UserMutation) AddedFields ¶
func (m *UserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserMutation) AddedIDs ¶
func (m *UserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserMutation) ClearEdge ¶
func (m *UserMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*UserMutation) ClearField ¶
func (m *UserMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ClearedEdges ¶
func (m *UserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserMutation) ClearedFields ¶
func (m *UserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserMutation) Client ¶
func (m UserMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*UserMutation) EdgeCleared ¶
func (m *UserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserMutation) Field ¶
func (m *UserMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*UserMutation) FieldCleared ¶
func (m *UserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserMutation) Fields ¶
func (m *UserMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*UserMutation) ID ¶
func (m *UserMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserMutation) IDs ¶
func (m *UserMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedIDs ¶
func (m *UserMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*UserMutation) ResetEdge ¶
func (m *UserMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*UserMutation) ResetField ¶
func (m *UserMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) SetField ¶
func (m *UserMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*UserMutation) SetID ¶
func (m *UserMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.
func (*UserMutation) SetOp ¶
func (m *UserMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (UserMutation) Tx ¶
func (m UserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserMutation) Type ¶
func (m *UserMutation) Type() string
Type returns the node type of this mutation (User).
func (*UserMutation) Where ¶
func (m *UserMutation) Where(ps ...predicate.User)
Where appends a list predicates to the UserMutation builder.
func (*UserMutation) WhereP ¶
func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
UserQuery is the builder for querying User entities.
func (*UserQuery) Aggregate ¶
func (_q *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate returns a UserSelect configured with the given aggregations.
func (*UserQuery) Clone ¶
Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserQuery) First ¶
First returns the first User entity from the query. Returns a *NotFoundError when no User was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
func (*UserQuery) GroupBy ¶
func (_q *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
func (*UserQuery) Only ¶
Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.
func (*UserQuery) OnlyID ¶
OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.
func (*UserQuery) Order ¶
func (_q *UserQuery) Order(o ...user.OrderOption) *UserQuery
Order specifies how the records should be ordered.
func (*UserQuery) Select ¶
func (_q *UserQuery) Select(fields ...string) *UserSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
type UserSelect ¶
type UserSelect struct {
*UserQuery
// contains filtered or unexported fields
}
UserSelect is the builder for selecting fields of User entities.
func (*UserSelect) Aggregate ¶
func (_s *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSelect) Scan ¶
func (_s *UserSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) Exec ¶
func (_u *UserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpdate) ExecX ¶
func (_u *UserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdate) Mutation ¶
func (_u *UserUpdate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdate) Save ¶
func (_u *UserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserUpdate) SaveX ¶
func (_u *UserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserUpdate) Where ¶
func (_u *UserUpdate) Where(ps ...predicate.User) *UserUpdate
Where appends a list predicates to the UserUpdate builder.
type UserUpdateOne ¶
type UserUpdateOne struct {
// contains filtered or unexported fields
}
UserUpdateOne is the builder for updating a single User entity.
func (*UserUpdateOne) Exec ¶
func (_u *UserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserUpdateOne) ExecX ¶
func (_u *UserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdateOne) Mutation ¶
func (_u *UserUpdateOne) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdateOne) Save ¶
func (_u *UserUpdateOne) Save(ctx context.Context) (*User, error)
Save executes the query and returns the updated User entity.
func (*UserUpdateOne) SaveX ¶
func (_u *UserUpdateOne) SaveX(ctx context.Context) *User
SaveX is like Save, but panics if an error occurs.
func (*UserUpdateOne) Select ¶
func (_u *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserUpdateOne) Where ¶
func (_u *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
Where appends a list predicates to the UserUpdate builder.
type ValidationError ¶
type ValidationError struct {
Name string // Field or edge name.
// contains filtered or unexported fields
}
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Webform ¶
type Webform struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Nid holds the value of the "nid" field.
Nid int `json:"nid,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// Confirmation holds the value of the "confirmation" field.
Confirmation string `json:"confirmation,omitempty"`
// ConfirmationURL holds the value of the "confirmation_url" field.
ConfirmationURL string `json:"confirmation_url,omitempty"`
// SubmitLabel holds the value of the "submit_label" field.
SubmitLabel string `json:"submit_label,omitempty"`
// Closed holds the value of the "closed" field.
Closed bool `json:"closed,omitempty"`
// NotifyEmail holds the value of the "notify_email" field.
NotifyEmail string `json:"notify_email,omitempty"`
// LimitPerUser holds the value of the "limit_per_user" field.
LimitPerUser bool `json:"limit_per_user,omitempty"`
// MaxSubmissions holds the value of the "max_submissions" field.
MaxSubmissions int `json:"max_submissions,omitempty"`
// ClosesAt holds the value of the "closes_at" field.
ClosesAt *time.Time `json:"closes_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the WebformQuery when eager-loading is set.
Edges WebformEdges `json:"edges"`
// contains filtered or unexported fields
}
Webform is the model entity for the Webform schema.
func (*Webform) QueryElements ¶
func (_m *Webform) QueryElements() *WebformElementQuery
QueryElements queries the "elements" edge of the Webform entity.
func (*Webform) QuerySubmissions ¶
func (_m *Webform) QuerySubmissions() *WebformSubmissionQuery
QuerySubmissions queries the "submissions" edge of the Webform entity.
func (*Webform) Unwrap ¶
Unwrap unwraps the Webform entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Webform) Update ¶
func (_m *Webform) Update() *WebformUpdateOne
Update returns a builder for updating this Webform. Note that you need to call Webform.Unwrap() before calling this method if this Webform was returned from a transaction, and the transaction was committed or rolled back.
type WebformClient ¶
type WebformClient struct {
// contains filtered or unexported fields
}
WebformClient is a client for the Webform schema.
func NewWebformClient ¶
func NewWebformClient(c config) *WebformClient
NewWebformClient returns a client for the Webform from the given config.
func (*WebformClient) Create ¶
func (c *WebformClient) Create() *WebformCreate
Create returns a builder for creating a Webform entity.
func (*WebformClient) CreateBulk ¶
func (c *WebformClient) CreateBulk(builders ...*WebformCreate) *WebformCreateBulk
CreateBulk returns a builder for creating a bulk of Webform entities.
func (*WebformClient) Delete ¶
func (c *WebformClient) Delete() *WebformDelete
Delete returns a delete builder for Webform.
func (*WebformClient) DeleteOne ¶
func (c *WebformClient) DeleteOne(_m *Webform) *WebformDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WebformClient) DeleteOneID ¶
func (c *WebformClient) DeleteOneID(id int) *WebformDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WebformClient) GetX ¶
func (c *WebformClient) GetX(ctx context.Context, id int) *Webform
GetX is like Get, but panics if an error occurs.
func (*WebformClient) Hooks ¶
func (c *WebformClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WebformClient) Intercept ¶
func (c *WebformClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `webform.Intercept(f(g(h())))`.
func (*WebformClient) Interceptors ¶
func (c *WebformClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WebformClient) MapCreateBulk ¶
func (c *WebformClient) MapCreateBulk(slice any, setFunc func(*WebformCreate, int)) *WebformCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*WebformClient) Query ¶
func (c *WebformClient) Query() *WebformQuery
Query returns a query builder for Webform.
func (*WebformClient) QueryElements ¶
func (c *WebformClient) QueryElements(_m *Webform) *WebformElementQuery
QueryElements queries the elements edge of a Webform.
func (*WebformClient) QueryNode ¶
func (c *WebformClient) QueryNode(_m *Webform) *NodeQuery
QueryNode queries the node edge of a Webform.
func (*WebformClient) QuerySubmissions ¶
func (c *WebformClient) QuerySubmissions(_m *Webform) *WebformSubmissionQuery
QuerySubmissions queries the submissions edge of a Webform.
func (*WebformClient) Update ¶
func (c *WebformClient) Update() *WebformUpdate
Update returns an update builder for Webform.
func (*WebformClient) UpdateOne ¶
func (c *WebformClient) UpdateOne(_m *Webform) *WebformUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WebformClient) UpdateOneID ¶
func (c *WebformClient) UpdateOneID(id int) *WebformUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WebformClient) Use ¶
func (c *WebformClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `webform.Hooks(f(g(h())))`.
type WebformCreate ¶
type WebformCreate struct {
// contains filtered or unexported fields
}
WebformCreate is the builder for creating a Webform entity.
func (*WebformCreate) AddElementIDs ¶
func (_c *WebformCreate) AddElementIDs(ids ...int) *WebformCreate
AddElementIDs adds the "elements" edge to the WebformElement entity by IDs.
func (*WebformCreate) AddElements ¶
func (_c *WebformCreate) AddElements(v ...*WebformElement) *WebformCreate
AddElements adds the "elements" edges to the WebformElement entity.
func (*WebformCreate) AddSubmissionIDs ¶
func (_c *WebformCreate) AddSubmissionIDs(ids ...int) *WebformCreate
AddSubmissionIDs adds the "submissions" edge to the WebformSubmission entity by IDs.
func (*WebformCreate) AddSubmissions ¶
func (_c *WebformCreate) AddSubmissions(v ...*WebformSubmission) *WebformCreate
AddSubmissions adds the "submissions" edges to the WebformSubmission entity.
func (*WebformCreate) Exec ¶
func (_c *WebformCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformCreate) ExecX ¶
func (_c *WebformCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformCreate) Mutation ¶
func (_c *WebformCreate) Mutation() *WebformMutation
Mutation returns the WebformMutation object of the builder.
func (*WebformCreate) Save ¶
func (_c *WebformCreate) Save(ctx context.Context) (*Webform, error)
Save creates the Webform in the database.
func (*WebformCreate) SaveX ¶
func (_c *WebformCreate) SaveX(ctx context.Context) *Webform
SaveX calls Save and panics if Save returns an error.
func (*WebformCreate) SetClosed ¶
func (_c *WebformCreate) SetClosed(v bool) *WebformCreate
SetClosed sets the "closed" field.
func (*WebformCreate) SetClosesAt ¶
func (_c *WebformCreate) SetClosesAt(v time.Time) *WebformCreate
SetClosesAt sets the "closes_at" field.
func (*WebformCreate) SetConfirmation ¶
func (_c *WebformCreate) SetConfirmation(v string) *WebformCreate
SetConfirmation sets the "confirmation" field.
func (*WebformCreate) SetConfirmationURL ¶
func (_c *WebformCreate) SetConfirmationURL(v string) *WebformCreate
SetConfirmationURL sets the "confirmation_url" field.
func (*WebformCreate) SetDescription ¶
func (_c *WebformCreate) SetDescription(v string) *WebformCreate
SetDescription sets the "description" field.
func (*WebformCreate) SetID ¶
func (_c *WebformCreate) SetID(v int) *WebformCreate
SetID sets the "id" field.
func (*WebformCreate) SetLimitPerUser ¶
func (_c *WebformCreate) SetLimitPerUser(v bool) *WebformCreate
SetLimitPerUser sets the "limit_per_user" field.
func (*WebformCreate) SetMaxSubmissions ¶
func (_c *WebformCreate) SetMaxSubmissions(v int) *WebformCreate
SetMaxSubmissions sets the "max_submissions" field.
func (*WebformCreate) SetNid ¶
func (_c *WebformCreate) SetNid(v int) *WebformCreate
SetNid sets the "nid" field.
func (*WebformCreate) SetNillableClosed ¶
func (_c *WebformCreate) SetNillableClosed(v *bool) *WebformCreate
SetNillableClosed sets the "closed" field if the given value is not nil.
func (*WebformCreate) SetNillableClosesAt ¶
func (_c *WebformCreate) SetNillableClosesAt(v *time.Time) *WebformCreate
SetNillableClosesAt sets the "closes_at" field if the given value is not nil.
func (*WebformCreate) SetNillableConfirmation ¶
func (_c *WebformCreate) SetNillableConfirmation(v *string) *WebformCreate
SetNillableConfirmation sets the "confirmation" field if the given value is not nil.
func (*WebformCreate) SetNillableConfirmationURL ¶
func (_c *WebformCreate) SetNillableConfirmationURL(v *string) *WebformCreate
SetNillableConfirmationURL sets the "confirmation_url" field if the given value is not nil.
func (*WebformCreate) SetNillableDescription ¶
func (_c *WebformCreate) SetNillableDescription(v *string) *WebformCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WebformCreate) SetNillableLimitPerUser ¶
func (_c *WebformCreate) SetNillableLimitPerUser(v *bool) *WebformCreate
SetNillableLimitPerUser sets the "limit_per_user" field if the given value is not nil.
func (*WebformCreate) SetNillableMaxSubmissions ¶
func (_c *WebformCreate) SetNillableMaxSubmissions(v *int) *WebformCreate
SetNillableMaxSubmissions sets the "max_submissions" field if the given value is not nil.
func (*WebformCreate) SetNillableNotifyEmail ¶
func (_c *WebformCreate) SetNillableNotifyEmail(v *string) *WebformCreate
SetNillableNotifyEmail sets the "notify_email" field if the given value is not nil.
func (*WebformCreate) SetNillableSubmitLabel ¶
func (_c *WebformCreate) SetNillableSubmitLabel(v *string) *WebformCreate
SetNillableSubmitLabel sets the "submit_label" field if the given value is not nil.
func (*WebformCreate) SetNode ¶
func (_c *WebformCreate) SetNode(v *Node) *WebformCreate
SetNode sets the "node" edge to the Node entity.
func (*WebformCreate) SetNodeID ¶
func (_c *WebformCreate) SetNodeID(id int) *WebformCreate
SetNodeID sets the "node" edge to the Node entity by ID.
func (*WebformCreate) SetNotifyEmail ¶
func (_c *WebformCreate) SetNotifyEmail(v string) *WebformCreate
SetNotifyEmail sets the "notify_email" field.
func (*WebformCreate) SetSubmitLabel ¶
func (_c *WebformCreate) SetSubmitLabel(v string) *WebformCreate
SetSubmitLabel sets the "submit_label" field.
type WebformCreateBulk ¶
type WebformCreateBulk struct {
// contains filtered or unexported fields
}
WebformCreateBulk is the builder for creating many Webform entities in bulk.
func (*WebformCreateBulk) Exec ¶
func (_c *WebformCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformCreateBulk) ExecX ¶
func (_c *WebformCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type WebformDelete ¶
type WebformDelete struct {
// contains filtered or unexported fields
}
WebformDelete is the builder for deleting a Webform entity.
func (*WebformDelete) Exec ¶
func (_d *WebformDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WebformDelete) ExecX ¶
func (_d *WebformDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WebformDelete) Where ¶
func (_d *WebformDelete) Where(ps ...predicate.Webform) *WebformDelete
Where appends a list predicates to the WebformDelete builder.
type WebformDeleteOne ¶
type WebformDeleteOne struct {
// contains filtered or unexported fields
}
WebformDeleteOne is the builder for deleting a single Webform entity.
func (*WebformDeleteOne) Exec ¶
func (_d *WebformDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WebformDeleteOne) ExecX ¶
func (_d *WebformDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformDeleteOne) Where ¶
func (_d *WebformDeleteOne) Where(ps ...predicate.Webform) *WebformDeleteOne
Where appends a list predicates to the WebformDelete builder.
type WebformEdges ¶
type WebformEdges struct {
// Node holds the value of the node edge.
Node *Node `json:"node,omitempty"`
// Elements holds the value of the elements edge.
Elements []*WebformElement `json:"elements,omitempty"`
// Submissions holds the value of the submissions edge.
Submissions []*WebformSubmission `json:"submissions,omitempty"`
// contains filtered or unexported fields
}
WebformEdges holds the relations/edges for other nodes in the graph.
func (WebformEdges) ElementsOrErr ¶
func (e WebformEdges) ElementsOrErr() ([]*WebformElement, error)
ElementsOrErr returns the Elements value or an error if the edge was not loaded in eager-loading.
func (WebformEdges) NodeOrErr ¶
func (e WebformEdges) NodeOrErr() (*Node, error)
NodeOrErr returns the Node value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WebformEdges) SubmissionsOrErr ¶
func (e WebformEdges) SubmissionsOrErr() ([]*WebformSubmission, error)
SubmissionsOrErr returns the Submissions value or an error if the edge was not loaded in eager-loading.
type WebformElement ¶
type WebformElement struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// WebformID holds the value of the "webform_id" field.
WebformID int `json:"webform_id,omitempty"`
// MachineName holds the value of the "machine_name" field.
MachineName string `json:"machine_name,omitempty"`
// Type holds the value of the "type" field.
Type string `json:"type,omitempty"`
// Label holds the value of the "label" field.
Label string `json:"label,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// Required holds the value of the "required" field.
Required bool `json:"required,omitempty"`
// Options holds the value of the "options" field.
Options string `json:"options,omitempty"`
// Weight holds the value of the "weight" field.
Weight int `json:"weight,omitempty"`
// VisibleIfElement holds the value of the "visible_if_element" field.
VisibleIfElement string `json:"visible_if_element,omitempty"`
// VisibleIfValue holds the value of the "visible_if_value" field.
VisibleIfValue string `json:"visible_if_value,omitempty"`
// PrefillParam holds the value of the "prefill_param" field.
PrefillParam string `json:"prefill_param,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the WebformElementQuery when eager-loading is set.
Edges WebformElementEdges `json:"edges"`
// contains filtered or unexported fields
}
WebformElement is the model entity for the WebformElement schema.
func (*WebformElement) QueryValues ¶
func (_m *WebformElement) QueryValues() *WebformSubmissionValueQuery
QueryValues queries the "values" edge of the WebformElement entity.
func (*WebformElement) QueryWebform ¶
func (_m *WebformElement) QueryWebform() *WebformQuery
QueryWebform queries the "webform" edge of the WebformElement entity.
func (*WebformElement) String ¶
func (_m *WebformElement) String() string
String implements the fmt.Stringer.
func (*WebformElement) Unwrap ¶
func (_m *WebformElement) Unwrap() *WebformElement
Unwrap unwraps the WebformElement entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*WebformElement) Update ¶
func (_m *WebformElement) Update() *WebformElementUpdateOne
Update returns a builder for updating this WebformElement. Note that you need to call WebformElement.Unwrap() before calling this method if this WebformElement was returned from a transaction, and the transaction was committed or rolled back.
type WebformElementClient ¶
type WebformElementClient struct {
// contains filtered or unexported fields
}
WebformElementClient is a client for the WebformElement schema.
func NewWebformElementClient ¶
func NewWebformElementClient(c config) *WebformElementClient
NewWebformElementClient returns a client for the WebformElement from the given config.
func (*WebformElementClient) Create ¶
func (c *WebformElementClient) Create() *WebformElementCreate
Create returns a builder for creating a WebformElement entity.
func (*WebformElementClient) CreateBulk ¶
func (c *WebformElementClient) CreateBulk(builders ...*WebformElementCreate) *WebformElementCreateBulk
CreateBulk returns a builder for creating a bulk of WebformElement entities.
func (*WebformElementClient) Delete ¶
func (c *WebformElementClient) Delete() *WebformElementDelete
Delete returns a delete builder for WebformElement.
func (*WebformElementClient) DeleteOne ¶
func (c *WebformElementClient) DeleteOne(_m *WebformElement) *WebformElementDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WebformElementClient) DeleteOneID ¶
func (c *WebformElementClient) DeleteOneID(id int) *WebformElementDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WebformElementClient) Get ¶
func (c *WebformElementClient) Get(ctx context.Context, id int) (*WebformElement, error)
Get returns a WebformElement entity by its id.
func (*WebformElementClient) GetX ¶
func (c *WebformElementClient) GetX(ctx context.Context, id int) *WebformElement
GetX is like Get, but panics if an error occurs.
func (*WebformElementClient) Hooks ¶
func (c *WebformElementClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WebformElementClient) Intercept ¶
func (c *WebformElementClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `webformelement.Intercept(f(g(h())))`.
func (*WebformElementClient) Interceptors ¶
func (c *WebformElementClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WebformElementClient) MapCreateBulk ¶
func (c *WebformElementClient) MapCreateBulk(slice any, setFunc func(*WebformElementCreate, int)) *WebformElementCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*WebformElementClient) Query ¶
func (c *WebformElementClient) Query() *WebformElementQuery
Query returns a query builder for WebformElement.
func (*WebformElementClient) QueryValues ¶
func (c *WebformElementClient) QueryValues(_m *WebformElement) *WebformSubmissionValueQuery
QueryValues queries the values edge of a WebformElement.
func (*WebformElementClient) QueryWebform ¶
func (c *WebformElementClient) QueryWebform(_m *WebformElement) *WebformQuery
QueryWebform queries the webform edge of a WebformElement.
func (*WebformElementClient) Update ¶
func (c *WebformElementClient) Update() *WebformElementUpdate
Update returns an update builder for WebformElement.
func (*WebformElementClient) UpdateOne ¶
func (c *WebformElementClient) UpdateOne(_m *WebformElement) *WebformElementUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WebformElementClient) UpdateOneID ¶
func (c *WebformElementClient) UpdateOneID(id int) *WebformElementUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WebformElementClient) Use ¶
func (c *WebformElementClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `webformelement.Hooks(f(g(h())))`.
type WebformElementCreate ¶
type WebformElementCreate struct {
// contains filtered or unexported fields
}
WebformElementCreate is the builder for creating a WebformElement entity.
func (*WebformElementCreate) AddValueIDs ¶
func (_c *WebformElementCreate) AddValueIDs(ids ...int) *WebformElementCreate
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformElementCreate) AddValues ¶
func (_c *WebformElementCreate) AddValues(v ...*WebformSubmissionValue) *WebformElementCreate
AddValues adds the "values" edges to the WebformSubmissionValue entity.
func (*WebformElementCreate) Exec ¶
func (_c *WebformElementCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformElementCreate) ExecX ¶
func (_c *WebformElementCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformElementCreate) Mutation ¶
func (_c *WebformElementCreate) Mutation() *WebformElementMutation
Mutation returns the WebformElementMutation object of the builder.
func (*WebformElementCreate) Save ¶
func (_c *WebformElementCreate) Save(ctx context.Context) (*WebformElement, error)
Save creates the WebformElement in the database.
func (*WebformElementCreate) SaveX ¶
func (_c *WebformElementCreate) SaveX(ctx context.Context) *WebformElement
SaveX calls Save and panics if Save returns an error.
func (*WebformElementCreate) SetDescription ¶
func (_c *WebformElementCreate) SetDescription(v string) *WebformElementCreate
SetDescription sets the "description" field.
func (*WebformElementCreate) SetID ¶
func (_c *WebformElementCreate) SetID(v int) *WebformElementCreate
SetID sets the "id" field.
func (*WebformElementCreate) SetLabel ¶
func (_c *WebformElementCreate) SetLabel(v string) *WebformElementCreate
SetLabel sets the "label" field.
func (*WebformElementCreate) SetMachineName ¶
func (_c *WebformElementCreate) SetMachineName(v string) *WebformElementCreate
SetMachineName sets the "machine_name" field.
func (*WebformElementCreate) SetNillableDescription ¶
func (_c *WebformElementCreate) SetNillableDescription(v *string) *WebformElementCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WebformElementCreate) SetNillableOptions ¶
func (_c *WebformElementCreate) SetNillableOptions(v *string) *WebformElementCreate
SetNillableOptions sets the "options" field if the given value is not nil.
func (*WebformElementCreate) SetNillablePrefillParam ¶
func (_c *WebformElementCreate) SetNillablePrefillParam(v *string) *WebformElementCreate
SetNillablePrefillParam sets the "prefill_param" field if the given value is not nil.
func (*WebformElementCreate) SetNillableRequired ¶
func (_c *WebformElementCreate) SetNillableRequired(v *bool) *WebformElementCreate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*WebformElementCreate) SetNillableVisibleIfElement ¶
func (_c *WebformElementCreate) SetNillableVisibleIfElement(v *string) *WebformElementCreate
SetNillableVisibleIfElement sets the "visible_if_element" field if the given value is not nil.
func (*WebformElementCreate) SetNillableVisibleIfValue ¶
func (_c *WebformElementCreate) SetNillableVisibleIfValue(v *string) *WebformElementCreate
SetNillableVisibleIfValue sets the "visible_if_value" field if the given value is not nil.
func (*WebformElementCreate) SetNillableWeight ¶
func (_c *WebformElementCreate) SetNillableWeight(v *int) *WebformElementCreate
SetNillableWeight sets the "weight" field if the given value is not nil.
func (*WebformElementCreate) SetOptions ¶
func (_c *WebformElementCreate) SetOptions(v string) *WebformElementCreate
SetOptions sets the "options" field.
func (*WebformElementCreate) SetPrefillParam ¶
func (_c *WebformElementCreate) SetPrefillParam(v string) *WebformElementCreate
SetPrefillParam sets the "prefill_param" field.
func (*WebformElementCreate) SetRequired ¶
func (_c *WebformElementCreate) SetRequired(v bool) *WebformElementCreate
SetRequired sets the "required" field.
func (*WebformElementCreate) SetType ¶
func (_c *WebformElementCreate) SetType(v string) *WebformElementCreate
SetType sets the "type" field.
func (*WebformElementCreate) SetVisibleIfElement ¶
func (_c *WebformElementCreate) SetVisibleIfElement(v string) *WebformElementCreate
SetVisibleIfElement sets the "visible_if_element" field.
func (*WebformElementCreate) SetVisibleIfValue ¶
func (_c *WebformElementCreate) SetVisibleIfValue(v string) *WebformElementCreate
SetVisibleIfValue sets the "visible_if_value" field.
func (*WebformElementCreate) SetWebform ¶
func (_c *WebformElementCreate) SetWebform(v *Webform) *WebformElementCreate
SetWebform sets the "webform" edge to the Webform entity.
func (*WebformElementCreate) SetWebformID ¶
func (_c *WebformElementCreate) SetWebformID(v int) *WebformElementCreate
SetWebformID sets the "webform_id" field.
func (*WebformElementCreate) SetWeight ¶
func (_c *WebformElementCreate) SetWeight(v int) *WebformElementCreate
SetWeight sets the "weight" field.
type WebformElementCreateBulk ¶
type WebformElementCreateBulk struct {
// contains filtered or unexported fields
}
WebformElementCreateBulk is the builder for creating many WebformElement entities in bulk.
func (*WebformElementCreateBulk) Exec ¶
func (_c *WebformElementCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformElementCreateBulk) ExecX ¶
func (_c *WebformElementCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformElementCreateBulk) Save ¶
func (_c *WebformElementCreateBulk) Save(ctx context.Context) ([]*WebformElement, error)
Save creates the WebformElement entities in the database.
func (*WebformElementCreateBulk) SaveX ¶
func (_c *WebformElementCreateBulk) SaveX(ctx context.Context) []*WebformElement
SaveX is like Save, but panics if an error occurs.
type WebformElementDelete ¶
type WebformElementDelete struct {
// contains filtered or unexported fields
}
WebformElementDelete is the builder for deleting a WebformElement entity.
func (*WebformElementDelete) Exec ¶
func (_d *WebformElementDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WebformElementDelete) ExecX ¶
func (_d *WebformElementDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WebformElementDelete) Where ¶
func (_d *WebformElementDelete) Where(ps ...predicate.WebformElement) *WebformElementDelete
Where appends a list predicates to the WebformElementDelete builder.
type WebformElementDeleteOne ¶
type WebformElementDeleteOne struct {
// contains filtered or unexported fields
}
WebformElementDeleteOne is the builder for deleting a single WebformElement entity.
func (*WebformElementDeleteOne) Exec ¶
func (_d *WebformElementDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WebformElementDeleteOne) ExecX ¶
func (_d *WebformElementDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformElementDeleteOne) Where ¶
func (_d *WebformElementDeleteOne) Where(ps ...predicate.WebformElement) *WebformElementDeleteOne
Where appends a list predicates to the WebformElementDelete builder.
type WebformElementEdges ¶
type WebformElementEdges struct {
// Webform holds the value of the webform edge.
Webform *Webform `json:"webform,omitempty"`
// Values holds the value of the values edge.
Values []*WebformSubmissionValue `json:"values,omitempty"`
// contains filtered or unexported fields
}
WebformElementEdges holds the relations/edges for other nodes in the graph.
func (WebformElementEdges) ValuesOrErr ¶
func (e WebformElementEdges) ValuesOrErr() ([]*WebformSubmissionValue, error)
ValuesOrErr returns the Values value or an error if the edge was not loaded in eager-loading.
func (WebformElementEdges) WebformOrErr ¶
func (e WebformElementEdges) WebformOrErr() (*Webform, error)
WebformOrErr returns the Webform value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WebformElementGroupBy ¶
type WebformElementGroupBy struct {
// contains filtered or unexported fields
}
WebformElementGroupBy is the group-by builder for WebformElement entities.
func (*WebformElementGroupBy) Aggregate ¶
func (_g *WebformElementGroupBy) Aggregate(fns ...AggregateFunc) *WebformElementGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WebformElementGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformElementGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformElementGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformElementGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformElementGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebformElementGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformElementGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformElementGroupBy) Scan ¶
func (_g *WebformElementGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformElementGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WebformElementMutation ¶
type WebformElementMutation struct {
// contains filtered or unexported fields
}
WebformElementMutation represents an operation that mutates the WebformElement nodes in the graph.
func (*WebformElementMutation) AddField ¶
func (m *WebformElementMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformElementMutation) AddValueIDs ¶
func (m *WebformElementMutation) AddValueIDs(ids ...int)
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by ids.
func (*WebformElementMutation) AddWeight ¶
func (m *WebformElementMutation) AddWeight(i int)
AddWeight adds i to the "weight" field.
func (*WebformElementMutation) AddedEdges ¶
func (m *WebformElementMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WebformElementMutation) AddedField ¶
func (m *WebformElementMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformElementMutation) AddedFields ¶
func (m *WebformElementMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WebformElementMutation) AddedIDs ¶
func (m *WebformElementMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WebformElementMutation) AddedWeight ¶
func (m *WebformElementMutation) AddedWeight() (r int, exists bool)
AddedWeight returns the value that was added to the "weight" field in this mutation.
func (*WebformElementMutation) ClearDescription ¶
func (m *WebformElementMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*WebformElementMutation) ClearEdge ¶
func (m *WebformElementMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WebformElementMutation) ClearField ¶
func (m *WebformElementMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformElementMutation) ClearOptions ¶
func (m *WebformElementMutation) ClearOptions()
ClearOptions clears the value of the "options" field.
func (*WebformElementMutation) ClearValues ¶
func (m *WebformElementMutation) ClearValues()
ClearValues clears the "values" edge to the WebformSubmissionValue entity.
func (*WebformElementMutation) ClearWebform ¶
func (m *WebformElementMutation) ClearWebform()
ClearWebform clears the "webform" edge to the Webform entity.
func (*WebformElementMutation) ClearedEdges ¶
func (m *WebformElementMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WebformElementMutation) ClearedFields ¶
func (m *WebformElementMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WebformElementMutation) Client ¶
func (m WebformElementMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WebformElementMutation) Description ¶
func (m *WebformElementMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*WebformElementMutation) DescriptionCleared ¶
func (m *WebformElementMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*WebformElementMutation) EdgeCleared ¶
func (m *WebformElementMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WebformElementMutation) Field ¶
func (m *WebformElementMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformElementMutation) FieldCleared ¶
func (m *WebformElementMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WebformElementMutation) Fields ¶
func (m *WebformElementMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WebformElementMutation) GetType ¶
func (m *WebformElementMutation) GetType() (r string, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*WebformElementMutation) ID ¶
func (m *WebformElementMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WebformElementMutation) IDs ¶
func (m *WebformElementMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WebformElementMutation) Label ¶
func (m *WebformElementMutation) Label() (r string, exists bool)
Label returns the value of the "label" field in the mutation.
func (*WebformElementMutation) MachineName ¶
func (m *WebformElementMutation) MachineName() (r string, exists bool)
MachineName returns the value of the "machine_name" field in the mutation.
func (*WebformElementMutation) OldDescription ¶
func (m *WebformElementMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WebformElementMutation) OldLabel ¶
func (m *WebformElementMutation) OldLabel(ctx context.Context) (v string, err error)
OldLabel returns the old "label" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldMachineName ¶
func (m *WebformElementMutation) OldMachineName(ctx context.Context) (v string, err error)
OldMachineName returns the old "machine_name" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldOptions ¶
func (m *WebformElementMutation) OldOptions(ctx context.Context) (v string, err error)
OldOptions returns the old "options" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldPrefillParam ¶
func (m *WebformElementMutation) OldPrefillParam(ctx context.Context) (v string, err error)
OldPrefillParam returns the old "prefill_param" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldRequired ¶
func (m *WebformElementMutation) OldRequired(ctx context.Context) (v bool, err error)
OldRequired returns the old "required" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldType ¶
func (m *WebformElementMutation) OldType(ctx context.Context) (v string, err error)
OldType returns the old "type" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldVisibleIfElement ¶
func (m *WebformElementMutation) OldVisibleIfElement(ctx context.Context) (v string, err error)
OldVisibleIfElement returns the old "visible_if_element" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldVisibleIfValue ¶
func (m *WebformElementMutation) OldVisibleIfValue(ctx context.Context) (v string, err error)
OldVisibleIfValue returns the old "visible_if_value" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldWebformID ¶
func (m *WebformElementMutation) OldWebformID(ctx context.Context) (v int, err error)
OldWebformID returns the old "webform_id" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) OldWeight ¶
func (m *WebformElementMutation) OldWeight(ctx context.Context) (v int, err error)
OldWeight returns the old "weight" field's value of the WebformElement entity. If the WebformElement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformElementMutation) Op ¶
func (m *WebformElementMutation) Op() Op
Op returns the operation name.
func (*WebformElementMutation) Options ¶
func (m *WebformElementMutation) Options() (r string, exists bool)
Options returns the value of the "options" field in the mutation.
func (*WebformElementMutation) OptionsCleared ¶
func (m *WebformElementMutation) OptionsCleared() bool
OptionsCleared returns if the "options" field was cleared in this mutation.
func (*WebformElementMutation) PrefillParam ¶
func (m *WebformElementMutation) PrefillParam() (r string, exists bool)
PrefillParam returns the value of the "prefill_param" field in the mutation.
func (*WebformElementMutation) RemoveValueIDs ¶
func (m *WebformElementMutation) RemoveValueIDs(ids ...int)
RemoveValueIDs removes the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformElementMutation) RemovedEdges ¶
func (m *WebformElementMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WebformElementMutation) RemovedIDs ¶
func (m *WebformElementMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WebformElementMutation) RemovedValuesIDs ¶
func (m *WebformElementMutation) RemovedValuesIDs() (ids []int)
RemovedValues returns the removed IDs of the "values" edge to the WebformSubmissionValue entity.
func (*WebformElementMutation) Required ¶
func (m *WebformElementMutation) Required() (r bool, exists bool)
Required returns the value of the "required" field in the mutation.
func (*WebformElementMutation) ResetDescription ¶
func (m *WebformElementMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*WebformElementMutation) ResetEdge ¶
func (m *WebformElementMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WebformElementMutation) ResetField ¶
func (m *WebformElementMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformElementMutation) ResetLabel ¶
func (m *WebformElementMutation) ResetLabel()
ResetLabel resets all changes to the "label" field.
func (*WebformElementMutation) ResetMachineName ¶
func (m *WebformElementMutation) ResetMachineName()
ResetMachineName resets all changes to the "machine_name" field.
func (*WebformElementMutation) ResetOptions ¶
func (m *WebformElementMutation) ResetOptions()
ResetOptions resets all changes to the "options" field.
func (*WebformElementMutation) ResetPrefillParam ¶
func (m *WebformElementMutation) ResetPrefillParam()
ResetPrefillParam resets all changes to the "prefill_param" field.
func (*WebformElementMutation) ResetRequired ¶
func (m *WebformElementMutation) ResetRequired()
ResetRequired resets all changes to the "required" field.
func (*WebformElementMutation) ResetType ¶
func (m *WebformElementMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*WebformElementMutation) ResetValues ¶
func (m *WebformElementMutation) ResetValues()
ResetValues resets all changes to the "values" edge.
func (*WebformElementMutation) ResetVisibleIfElement ¶
func (m *WebformElementMutation) ResetVisibleIfElement()
ResetVisibleIfElement resets all changes to the "visible_if_element" field.
func (*WebformElementMutation) ResetVisibleIfValue ¶
func (m *WebformElementMutation) ResetVisibleIfValue()
ResetVisibleIfValue resets all changes to the "visible_if_value" field.
func (*WebformElementMutation) ResetWebform ¶
func (m *WebformElementMutation) ResetWebform()
ResetWebform resets all changes to the "webform" edge.
func (*WebformElementMutation) ResetWebformID ¶
func (m *WebformElementMutation) ResetWebformID()
ResetWebformID resets all changes to the "webform_id" field.
func (*WebformElementMutation) ResetWeight ¶
func (m *WebformElementMutation) ResetWeight()
ResetWeight resets all changes to the "weight" field.
func (*WebformElementMutation) SetDescription ¶
func (m *WebformElementMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*WebformElementMutation) SetField ¶
func (m *WebformElementMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformElementMutation) SetID ¶
func (m *WebformElementMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of WebformElement entities.
func (*WebformElementMutation) SetLabel ¶
func (m *WebformElementMutation) SetLabel(s string)
SetLabel sets the "label" field.
func (*WebformElementMutation) SetMachineName ¶
func (m *WebformElementMutation) SetMachineName(s string)
SetMachineName sets the "machine_name" field.
func (*WebformElementMutation) SetOp ¶
func (m *WebformElementMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WebformElementMutation) SetOptions ¶
func (m *WebformElementMutation) SetOptions(s string)
SetOptions sets the "options" field.
func (*WebformElementMutation) SetPrefillParam ¶
func (m *WebformElementMutation) SetPrefillParam(s string)
SetPrefillParam sets the "prefill_param" field.
func (*WebformElementMutation) SetRequired ¶
func (m *WebformElementMutation) SetRequired(b bool)
SetRequired sets the "required" field.
func (*WebformElementMutation) SetType ¶
func (m *WebformElementMutation) SetType(s string)
SetType sets the "type" field.
func (*WebformElementMutation) SetVisibleIfElement ¶
func (m *WebformElementMutation) SetVisibleIfElement(s string)
SetVisibleIfElement sets the "visible_if_element" field.
func (*WebformElementMutation) SetVisibleIfValue ¶
func (m *WebformElementMutation) SetVisibleIfValue(s string)
SetVisibleIfValue sets the "visible_if_value" field.
func (*WebformElementMutation) SetWebformID ¶
func (m *WebformElementMutation) SetWebformID(i int)
SetWebformID sets the "webform_id" field.
func (*WebformElementMutation) SetWeight ¶
func (m *WebformElementMutation) SetWeight(i int)
SetWeight sets the "weight" field.
func (WebformElementMutation) Tx ¶
func (m WebformElementMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WebformElementMutation) Type ¶
func (m *WebformElementMutation) Type() string
Type returns the node type of this mutation (WebformElement).
func (*WebformElementMutation) ValuesCleared ¶
func (m *WebformElementMutation) ValuesCleared() bool
ValuesCleared reports if the "values" edge to the WebformSubmissionValue entity was cleared.
func (*WebformElementMutation) ValuesIDs ¶
func (m *WebformElementMutation) ValuesIDs() (ids []int)
ValuesIDs returns the "values" edge IDs in the mutation.
func (*WebformElementMutation) VisibleIfElement ¶
func (m *WebformElementMutation) VisibleIfElement() (r string, exists bool)
VisibleIfElement returns the value of the "visible_if_element" field in the mutation.
func (*WebformElementMutation) VisibleIfValue ¶
func (m *WebformElementMutation) VisibleIfValue() (r string, exists bool)
VisibleIfValue returns the value of the "visible_if_value" field in the mutation.
func (*WebformElementMutation) WebformCleared ¶
func (m *WebformElementMutation) WebformCleared() bool
WebformCleared reports if the "webform" edge to the Webform entity was cleared.
func (*WebformElementMutation) WebformID ¶
func (m *WebformElementMutation) WebformID() (r int, exists bool)
WebformID returns the value of the "webform_id" field in the mutation.
func (*WebformElementMutation) WebformIDs ¶
func (m *WebformElementMutation) WebformIDs() (ids []int)
WebformIDs returns the "webform" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WebformID instead. It exists only for internal usage by the builders.
func (*WebformElementMutation) Weight ¶
func (m *WebformElementMutation) Weight() (r int, exists bool)
Weight returns the value of the "weight" field in the mutation.
func (*WebformElementMutation) Where ¶
func (m *WebformElementMutation) Where(ps ...predicate.WebformElement)
Where appends a list predicates to the WebformElementMutation builder.
func (*WebformElementMutation) WhereP ¶
func (m *WebformElementMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WebformElementMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type WebformElementQuery ¶
type WebformElementQuery struct {
// contains filtered or unexported fields
}
WebformElementQuery is the builder for querying WebformElement entities.
func (*WebformElementQuery) Aggregate ¶
func (_q *WebformElementQuery) Aggregate(fns ...AggregateFunc) *WebformElementSelect
Aggregate returns a WebformElementSelect configured with the given aggregations.
func (*WebformElementQuery) All ¶
func (_q *WebformElementQuery) All(ctx context.Context) ([]*WebformElement, error)
All executes the query and returns a list of WebformElements.
func (*WebformElementQuery) AllX ¶
func (_q *WebformElementQuery) AllX(ctx context.Context) []*WebformElement
AllX is like All, but panics if an error occurs.
func (*WebformElementQuery) Clone ¶
func (_q *WebformElementQuery) Clone() *WebformElementQuery
Clone returns a duplicate of the WebformElementQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WebformElementQuery) Count ¶
func (_q *WebformElementQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WebformElementQuery) CountX ¶
func (_q *WebformElementQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WebformElementQuery) Exist ¶
func (_q *WebformElementQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WebformElementQuery) ExistX ¶
func (_q *WebformElementQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WebformElementQuery) First ¶
func (_q *WebformElementQuery) First(ctx context.Context) (*WebformElement, error)
First returns the first WebformElement entity from the query. Returns a *NotFoundError when no WebformElement was found.
func (*WebformElementQuery) FirstID ¶
func (_q *WebformElementQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first WebformElement ID from the query. Returns a *NotFoundError when no WebformElement ID was found.
func (*WebformElementQuery) FirstIDX ¶
func (_q *WebformElementQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WebformElementQuery) FirstX ¶
func (_q *WebformElementQuery) FirstX(ctx context.Context) *WebformElement
FirstX is like First, but panics if an error occurs.
func (*WebformElementQuery) GroupBy ¶
func (_q *WebformElementQuery) GroupBy(field string, fields ...string) *WebformElementGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct {
WebformID int `json:"webform_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.WebformElement.Query().
GroupBy(webformelement.FieldWebformID).
Aggregate(generated.Count()).
Scan(ctx, &v)
func (*WebformElementQuery) IDs ¶
func (_q *WebformElementQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of WebformElement IDs.
func (*WebformElementQuery) IDsX ¶
func (_q *WebformElementQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WebformElementQuery) Limit ¶
func (_q *WebformElementQuery) Limit(limit int) *WebformElementQuery
Limit the number of records to be returned by this query.
func (*WebformElementQuery) Offset ¶
func (_q *WebformElementQuery) Offset(offset int) *WebformElementQuery
Offset to start from.
func (*WebformElementQuery) Only ¶
func (_q *WebformElementQuery) Only(ctx context.Context) (*WebformElement, error)
Only returns a single WebformElement entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WebformElement entity is found. Returns a *NotFoundError when no WebformElement entities are found.
func (*WebformElementQuery) OnlyID ¶
func (_q *WebformElementQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only WebformElement ID in the query. Returns a *NotSingularError when more than one WebformElement ID is found. Returns a *NotFoundError when no entities are found.
func (*WebformElementQuery) OnlyIDX ¶
func (_q *WebformElementQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WebformElementQuery) OnlyX ¶
func (_q *WebformElementQuery) OnlyX(ctx context.Context) *WebformElement
OnlyX is like Only, but panics if an error occurs.
func (*WebformElementQuery) Order ¶
func (_q *WebformElementQuery) Order(o ...webformelement.OrderOption) *WebformElementQuery
Order specifies how the records should be ordered.
func (*WebformElementQuery) QueryValues ¶
func (_q *WebformElementQuery) QueryValues() *WebformSubmissionValueQuery
QueryValues chains the current query on the "values" edge.
func (*WebformElementQuery) QueryWebform ¶
func (_q *WebformElementQuery) QueryWebform() *WebformQuery
QueryWebform chains the current query on the "webform" edge.
func (*WebformElementQuery) Select ¶
func (_q *WebformElementQuery) Select(fields ...string) *WebformElementSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct {
WebformID int `json:"webform_id,omitempty"`
}
client.WebformElement.Query().
Select(webformelement.FieldWebformID).
Scan(ctx, &v)
func (*WebformElementQuery) Unique ¶
func (_q *WebformElementQuery) Unique(unique bool) *WebformElementQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WebformElementQuery) Where ¶
func (_q *WebformElementQuery) Where(ps ...predicate.WebformElement) *WebformElementQuery
Where adds a new predicate for the WebformElementQuery builder.
func (*WebformElementQuery) WithValues ¶
func (_q *WebformElementQuery) WithValues(opts ...func(*WebformSubmissionValueQuery)) *WebformElementQuery
WithValues tells the query-builder to eager-load the nodes that are connected to the "values" edge. The optional arguments are used to configure the query builder of the edge.
func (*WebformElementQuery) WithWebform ¶
func (_q *WebformElementQuery) WithWebform(opts ...func(*WebformQuery)) *WebformElementQuery
WithWebform tells the query-builder to eager-load the nodes that are connected to the "webform" edge. The optional arguments are used to configure the query builder of the edge.
type WebformElementSelect ¶
type WebformElementSelect struct {
*WebformElementQuery
// contains filtered or unexported fields
}
WebformElementSelect is the builder for selecting fields of WebformElement entities.
func (*WebformElementSelect) Aggregate ¶
func (_s *WebformElementSelect) Aggregate(fns ...AggregateFunc) *WebformElementSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WebformElementSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformElementSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformElementSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformElementSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformElementSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformElementSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformElementSelect) Scan ¶
func (_s *WebformElementSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformElementSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WebformElementUpdate ¶
type WebformElementUpdate struct {
// contains filtered or unexported fields
}
WebformElementUpdate is the builder for updating WebformElement entities.
func (*WebformElementUpdate) AddValueIDs ¶
func (_u *WebformElementUpdate) AddValueIDs(ids ...int) *WebformElementUpdate
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformElementUpdate) AddValues ¶
func (_u *WebformElementUpdate) AddValues(v ...*WebformSubmissionValue) *WebformElementUpdate
AddValues adds the "values" edges to the WebformSubmissionValue entity.
func (*WebformElementUpdate) AddWeight ¶
func (_u *WebformElementUpdate) AddWeight(v int) *WebformElementUpdate
AddWeight adds value to the "weight" field.
func (*WebformElementUpdate) ClearDescription ¶
func (_u *WebformElementUpdate) ClearDescription() *WebformElementUpdate
ClearDescription clears the value of the "description" field.
func (*WebformElementUpdate) ClearOptions ¶
func (_u *WebformElementUpdate) ClearOptions() *WebformElementUpdate
ClearOptions clears the value of the "options" field.
func (*WebformElementUpdate) ClearValues ¶
func (_u *WebformElementUpdate) ClearValues() *WebformElementUpdate
ClearValues clears all "values" edges to the WebformSubmissionValue entity.
func (*WebformElementUpdate) ClearWebform ¶
func (_u *WebformElementUpdate) ClearWebform() *WebformElementUpdate
ClearWebform clears the "webform" edge to the Webform entity.
func (*WebformElementUpdate) Exec ¶
func (_u *WebformElementUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformElementUpdate) ExecX ¶
func (_u *WebformElementUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformElementUpdate) Mutation ¶
func (_u *WebformElementUpdate) Mutation() *WebformElementMutation
Mutation returns the WebformElementMutation object of the builder.
func (*WebformElementUpdate) RemoveValueIDs ¶
func (_u *WebformElementUpdate) RemoveValueIDs(ids ...int) *WebformElementUpdate
RemoveValueIDs removes the "values" edge to WebformSubmissionValue entities by IDs.
func (*WebformElementUpdate) RemoveValues ¶
func (_u *WebformElementUpdate) RemoveValues(v ...*WebformSubmissionValue) *WebformElementUpdate
RemoveValues removes "values" edges to WebformSubmissionValue entities.
func (*WebformElementUpdate) Save ¶
func (_u *WebformElementUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WebformElementUpdate) SaveX ¶
func (_u *WebformElementUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WebformElementUpdate) SetDescription ¶
func (_u *WebformElementUpdate) SetDescription(v string) *WebformElementUpdate
SetDescription sets the "description" field.
func (*WebformElementUpdate) SetLabel ¶
func (_u *WebformElementUpdate) SetLabel(v string) *WebformElementUpdate
SetLabel sets the "label" field.
func (*WebformElementUpdate) SetMachineName ¶
func (_u *WebformElementUpdate) SetMachineName(v string) *WebformElementUpdate
SetMachineName sets the "machine_name" field.
func (*WebformElementUpdate) SetNillableDescription ¶
func (_u *WebformElementUpdate) SetNillableDescription(v *string) *WebformElementUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableLabel ¶
func (_u *WebformElementUpdate) SetNillableLabel(v *string) *WebformElementUpdate
SetNillableLabel sets the "label" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableMachineName ¶
func (_u *WebformElementUpdate) SetNillableMachineName(v *string) *WebformElementUpdate
SetNillableMachineName sets the "machine_name" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableOptions ¶
func (_u *WebformElementUpdate) SetNillableOptions(v *string) *WebformElementUpdate
SetNillableOptions sets the "options" field if the given value is not nil.
func (*WebformElementUpdate) SetNillablePrefillParam ¶
func (_u *WebformElementUpdate) SetNillablePrefillParam(v *string) *WebformElementUpdate
SetNillablePrefillParam sets the "prefill_param" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableRequired ¶
func (_u *WebformElementUpdate) SetNillableRequired(v *bool) *WebformElementUpdate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableType ¶
func (_u *WebformElementUpdate) SetNillableType(v *string) *WebformElementUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableVisibleIfElement ¶
func (_u *WebformElementUpdate) SetNillableVisibleIfElement(v *string) *WebformElementUpdate
SetNillableVisibleIfElement sets the "visible_if_element" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableVisibleIfValue ¶
func (_u *WebformElementUpdate) SetNillableVisibleIfValue(v *string) *WebformElementUpdate
SetNillableVisibleIfValue sets the "visible_if_value" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableWebformID ¶
func (_u *WebformElementUpdate) SetNillableWebformID(v *int) *WebformElementUpdate
SetNillableWebformID sets the "webform_id" field if the given value is not nil.
func (*WebformElementUpdate) SetNillableWeight ¶
func (_u *WebformElementUpdate) SetNillableWeight(v *int) *WebformElementUpdate
SetNillableWeight sets the "weight" field if the given value is not nil.
func (*WebformElementUpdate) SetOptions ¶
func (_u *WebformElementUpdate) SetOptions(v string) *WebformElementUpdate
SetOptions sets the "options" field.
func (*WebformElementUpdate) SetPrefillParam ¶
func (_u *WebformElementUpdate) SetPrefillParam(v string) *WebformElementUpdate
SetPrefillParam sets the "prefill_param" field.
func (*WebformElementUpdate) SetRequired ¶
func (_u *WebformElementUpdate) SetRequired(v bool) *WebformElementUpdate
SetRequired sets the "required" field.
func (*WebformElementUpdate) SetType ¶
func (_u *WebformElementUpdate) SetType(v string) *WebformElementUpdate
SetType sets the "type" field.
func (*WebformElementUpdate) SetVisibleIfElement ¶
func (_u *WebformElementUpdate) SetVisibleIfElement(v string) *WebformElementUpdate
SetVisibleIfElement sets the "visible_if_element" field.
func (*WebformElementUpdate) SetVisibleIfValue ¶
func (_u *WebformElementUpdate) SetVisibleIfValue(v string) *WebformElementUpdate
SetVisibleIfValue sets the "visible_if_value" field.
func (*WebformElementUpdate) SetWebform ¶
func (_u *WebformElementUpdate) SetWebform(v *Webform) *WebformElementUpdate
SetWebform sets the "webform" edge to the Webform entity.
func (*WebformElementUpdate) SetWebformID ¶
func (_u *WebformElementUpdate) SetWebformID(v int) *WebformElementUpdate
SetWebformID sets the "webform_id" field.
func (*WebformElementUpdate) SetWeight ¶
func (_u *WebformElementUpdate) SetWeight(v int) *WebformElementUpdate
SetWeight sets the "weight" field.
func (*WebformElementUpdate) Where ¶
func (_u *WebformElementUpdate) Where(ps ...predicate.WebformElement) *WebformElementUpdate
Where appends a list predicates to the WebformElementUpdate builder.
type WebformElementUpdateOne ¶
type WebformElementUpdateOne struct {
// contains filtered or unexported fields
}
WebformElementUpdateOne is the builder for updating a single WebformElement entity.
func (*WebformElementUpdateOne) AddValueIDs ¶
func (_u *WebformElementUpdateOne) AddValueIDs(ids ...int) *WebformElementUpdateOne
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformElementUpdateOne) AddValues ¶
func (_u *WebformElementUpdateOne) AddValues(v ...*WebformSubmissionValue) *WebformElementUpdateOne
AddValues adds the "values" edges to the WebformSubmissionValue entity.
func (*WebformElementUpdateOne) AddWeight ¶
func (_u *WebformElementUpdateOne) AddWeight(v int) *WebformElementUpdateOne
AddWeight adds value to the "weight" field.
func (*WebformElementUpdateOne) ClearDescription ¶
func (_u *WebformElementUpdateOne) ClearDescription() *WebformElementUpdateOne
ClearDescription clears the value of the "description" field.
func (*WebformElementUpdateOne) ClearOptions ¶
func (_u *WebformElementUpdateOne) ClearOptions() *WebformElementUpdateOne
ClearOptions clears the value of the "options" field.
func (*WebformElementUpdateOne) ClearValues ¶
func (_u *WebformElementUpdateOne) ClearValues() *WebformElementUpdateOne
ClearValues clears all "values" edges to the WebformSubmissionValue entity.
func (*WebformElementUpdateOne) ClearWebform ¶
func (_u *WebformElementUpdateOne) ClearWebform() *WebformElementUpdateOne
ClearWebform clears the "webform" edge to the Webform entity.
func (*WebformElementUpdateOne) Exec ¶
func (_u *WebformElementUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WebformElementUpdateOne) ExecX ¶
func (_u *WebformElementUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformElementUpdateOne) Mutation ¶
func (_u *WebformElementUpdateOne) Mutation() *WebformElementMutation
Mutation returns the WebformElementMutation object of the builder.
func (*WebformElementUpdateOne) RemoveValueIDs ¶
func (_u *WebformElementUpdateOne) RemoveValueIDs(ids ...int) *WebformElementUpdateOne
RemoveValueIDs removes the "values" edge to WebformSubmissionValue entities by IDs.
func (*WebformElementUpdateOne) RemoveValues ¶
func (_u *WebformElementUpdateOne) RemoveValues(v ...*WebformSubmissionValue) *WebformElementUpdateOne
RemoveValues removes "values" edges to WebformSubmissionValue entities.
func (*WebformElementUpdateOne) Save ¶
func (_u *WebformElementUpdateOne) Save(ctx context.Context) (*WebformElement, error)
Save executes the query and returns the updated WebformElement entity.
func (*WebformElementUpdateOne) SaveX ¶
func (_u *WebformElementUpdateOne) SaveX(ctx context.Context) *WebformElement
SaveX is like Save, but panics if an error occurs.
func (*WebformElementUpdateOne) Select ¶
func (_u *WebformElementUpdateOne) Select(field string, fields ...string) *WebformElementUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WebformElementUpdateOne) SetDescription ¶
func (_u *WebformElementUpdateOne) SetDescription(v string) *WebformElementUpdateOne
SetDescription sets the "description" field.
func (*WebformElementUpdateOne) SetLabel ¶
func (_u *WebformElementUpdateOne) SetLabel(v string) *WebformElementUpdateOne
SetLabel sets the "label" field.
func (*WebformElementUpdateOne) SetMachineName ¶
func (_u *WebformElementUpdateOne) SetMachineName(v string) *WebformElementUpdateOne
SetMachineName sets the "machine_name" field.
func (*WebformElementUpdateOne) SetNillableDescription ¶
func (_u *WebformElementUpdateOne) SetNillableDescription(v *string) *WebformElementUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableLabel ¶
func (_u *WebformElementUpdateOne) SetNillableLabel(v *string) *WebformElementUpdateOne
SetNillableLabel sets the "label" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableMachineName ¶
func (_u *WebformElementUpdateOne) SetNillableMachineName(v *string) *WebformElementUpdateOne
SetNillableMachineName sets the "machine_name" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableOptions ¶
func (_u *WebformElementUpdateOne) SetNillableOptions(v *string) *WebformElementUpdateOne
SetNillableOptions sets the "options" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillablePrefillParam ¶
func (_u *WebformElementUpdateOne) SetNillablePrefillParam(v *string) *WebformElementUpdateOne
SetNillablePrefillParam sets the "prefill_param" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableRequired ¶
func (_u *WebformElementUpdateOne) SetNillableRequired(v *bool) *WebformElementUpdateOne
SetNillableRequired sets the "required" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableType ¶
func (_u *WebformElementUpdateOne) SetNillableType(v *string) *WebformElementUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableVisibleIfElement ¶
func (_u *WebformElementUpdateOne) SetNillableVisibleIfElement(v *string) *WebformElementUpdateOne
SetNillableVisibleIfElement sets the "visible_if_element" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableVisibleIfValue ¶
func (_u *WebformElementUpdateOne) SetNillableVisibleIfValue(v *string) *WebformElementUpdateOne
SetNillableVisibleIfValue sets the "visible_if_value" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableWebformID ¶
func (_u *WebformElementUpdateOne) SetNillableWebformID(v *int) *WebformElementUpdateOne
SetNillableWebformID sets the "webform_id" field if the given value is not nil.
func (*WebformElementUpdateOne) SetNillableWeight ¶
func (_u *WebformElementUpdateOne) SetNillableWeight(v *int) *WebformElementUpdateOne
SetNillableWeight sets the "weight" field if the given value is not nil.
func (*WebformElementUpdateOne) SetOptions ¶
func (_u *WebformElementUpdateOne) SetOptions(v string) *WebformElementUpdateOne
SetOptions sets the "options" field.
func (*WebformElementUpdateOne) SetPrefillParam ¶
func (_u *WebformElementUpdateOne) SetPrefillParam(v string) *WebformElementUpdateOne
SetPrefillParam sets the "prefill_param" field.
func (*WebformElementUpdateOne) SetRequired ¶
func (_u *WebformElementUpdateOne) SetRequired(v bool) *WebformElementUpdateOne
SetRequired sets the "required" field.
func (*WebformElementUpdateOne) SetType ¶
func (_u *WebformElementUpdateOne) SetType(v string) *WebformElementUpdateOne
SetType sets the "type" field.
func (*WebformElementUpdateOne) SetVisibleIfElement ¶
func (_u *WebformElementUpdateOne) SetVisibleIfElement(v string) *WebformElementUpdateOne
SetVisibleIfElement sets the "visible_if_element" field.
func (*WebformElementUpdateOne) SetVisibleIfValue ¶
func (_u *WebformElementUpdateOne) SetVisibleIfValue(v string) *WebformElementUpdateOne
SetVisibleIfValue sets the "visible_if_value" field.
func (*WebformElementUpdateOne) SetWebform ¶
func (_u *WebformElementUpdateOne) SetWebform(v *Webform) *WebformElementUpdateOne
SetWebform sets the "webform" edge to the Webform entity.
func (*WebformElementUpdateOne) SetWebformID ¶
func (_u *WebformElementUpdateOne) SetWebformID(v int) *WebformElementUpdateOne
SetWebformID sets the "webform_id" field.
func (*WebformElementUpdateOne) SetWeight ¶
func (_u *WebformElementUpdateOne) SetWeight(v int) *WebformElementUpdateOne
SetWeight sets the "weight" field.
func (*WebformElementUpdateOne) Where ¶
func (_u *WebformElementUpdateOne) Where(ps ...predicate.WebformElement) *WebformElementUpdateOne
Where appends a list predicates to the WebformElementUpdate builder.
type WebformElements ¶
type WebformElements []*WebformElement
WebformElements is a parsable slice of WebformElement.
type WebformGroupBy ¶
type WebformGroupBy struct {
// contains filtered or unexported fields
}
WebformGroupBy is the group-by builder for Webform entities.
func (*WebformGroupBy) Aggregate ¶
func (_g *WebformGroupBy) Aggregate(fns ...AggregateFunc) *WebformGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WebformGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformGroupBy) Scan ¶
func (_g *WebformGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WebformMutation ¶
type WebformMutation struct {
// contains filtered or unexported fields
}
WebformMutation represents an operation that mutates the Webform nodes in the graph.
func (*WebformMutation) AddElementIDs ¶
func (m *WebformMutation) AddElementIDs(ids ...int)
AddElementIDs adds the "elements" edge to the WebformElement entity by ids.
func (*WebformMutation) AddField ¶
func (m *WebformMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformMutation) AddMaxSubmissions ¶
func (m *WebformMutation) AddMaxSubmissions(i int)
AddMaxSubmissions adds i to the "max_submissions" field.
func (*WebformMutation) AddSubmissionIDs ¶
func (m *WebformMutation) AddSubmissionIDs(ids ...int)
AddSubmissionIDs adds the "submissions" edge to the WebformSubmission entity by ids.
func (*WebformMutation) AddedEdges ¶
func (m *WebformMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WebformMutation) AddedField ¶
func (m *WebformMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformMutation) AddedFields ¶
func (m *WebformMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WebformMutation) AddedIDs ¶
func (m *WebformMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WebformMutation) AddedMaxSubmissions ¶
func (m *WebformMutation) AddedMaxSubmissions() (r int, exists bool)
AddedMaxSubmissions returns the value that was added to the "max_submissions" field in this mutation.
func (*WebformMutation) ClearClosesAt ¶
func (m *WebformMutation) ClearClosesAt()
ClearClosesAt clears the value of the "closes_at" field.
func (*WebformMutation) ClearConfirmation ¶
func (m *WebformMutation) ClearConfirmation()
ClearConfirmation clears the value of the "confirmation" field.
func (*WebformMutation) ClearDescription ¶
func (m *WebformMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*WebformMutation) ClearEdge ¶
func (m *WebformMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WebformMutation) ClearElements ¶
func (m *WebformMutation) ClearElements()
ClearElements clears the "elements" edge to the WebformElement entity.
func (*WebformMutation) ClearField ¶
func (m *WebformMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformMutation) ClearNode ¶
func (m *WebformMutation) ClearNode()
ClearNode clears the "node" edge to the Node entity.
func (*WebformMutation) ClearSubmissions ¶
func (m *WebformMutation) ClearSubmissions()
ClearSubmissions clears the "submissions" edge to the WebformSubmission entity.
func (*WebformMutation) ClearedEdges ¶
func (m *WebformMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WebformMutation) ClearedFields ¶
func (m *WebformMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WebformMutation) Client ¶
func (m WebformMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WebformMutation) Closed ¶
func (m *WebformMutation) Closed() (r bool, exists bool)
Closed returns the value of the "closed" field in the mutation.
func (*WebformMutation) ClosesAt ¶
func (m *WebformMutation) ClosesAt() (r time.Time, exists bool)
ClosesAt returns the value of the "closes_at" field in the mutation.
func (*WebformMutation) ClosesAtCleared ¶
func (m *WebformMutation) ClosesAtCleared() bool
ClosesAtCleared returns if the "closes_at" field was cleared in this mutation.
func (*WebformMutation) Confirmation ¶
func (m *WebformMutation) Confirmation() (r string, exists bool)
Confirmation returns the value of the "confirmation" field in the mutation.
func (*WebformMutation) ConfirmationCleared ¶
func (m *WebformMutation) ConfirmationCleared() bool
ConfirmationCleared returns if the "confirmation" field was cleared in this mutation.
func (*WebformMutation) ConfirmationURL ¶
func (m *WebformMutation) ConfirmationURL() (r string, exists bool)
ConfirmationURL returns the value of the "confirmation_url" field in the mutation.
func (*WebformMutation) Description ¶
func (m *WebformMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*WebformMutation) DescriptionCleared ¶
func (m *WebformMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*WebformMutation) EdgeCleared ¶
func (m *WebformMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WebformMutation) ElementsCleared ¶
func (m *WebformMutation) ElementsCleared() bool
ElementsCleared reports if the "elements" edge to the WebformElement entity was cleared.
func (*WebformMutation) ElementsIDs ¶
func (m *WebformMutation) ElementsIDs() (ids []int)
ElementsIDs returns the "elements" edge IDs in the mutation.
func (*WebformMutation) Field ¶
func (m *WebformMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformMutation) FieldCleared ¶
func (m *WebformMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WebformMutation) Fields ¶
func (m *WebformMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WebformMutation) ID ¶
func (m *WebformMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WebformMutation) IDs ¶
func (m *WebformMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WebformMutation) LimitPerUser ¶
func (m *WebformMutation) LimitPerUser() (r bool, exists bool)
LimitPerUser returns the value of the "limit_per_user" field in the mutation.
func (*WebformMutation) MaxSubmissions ¶
func (m *WebformMutation) MaxSubmissions() (r int, exists bool)
MaxSubmissions returns the value of the "max_submissions" field in the mutation.
func (*WebformMutation) Nid ¶
func (m *WebformMutation) Nid() (r int, exists bool)
Nid returns the value of the "nid" field in the mutation.
func (*WebformMutation) NodeCleared ¶
func (m *WebformMutation) NodeCleared() bool
NodeCleared reports if the "node" edge to the Node entity was cleared.
func (*WebformMutation) NodeID ¶
func (m *WebformMutation) NodeID() (id int, exists bool)
NodeID returns the "node" edge ID in the mutation.
func (*WebformMutation) NodeIDs ¶
func (m *WebformMutation) NodeIDs() (ids []int)
NodeIDs returns the "node" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NodeID instead. It exists only for internal usage by the builders.
func (*WebformMutation) NotifyEmail ¶
func (m *WebformMutation) NotifyEmail() (r string, exists bool)
NotifyEmail returns the value of the "notify_email" field in the mutation.
func (*WebformMutation) OldClosed ¶
func (m *WebformMutation) OldClosed(ctx context.Context) (v bool, err error)
OldClosed returns the old "closed" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldClosesAt ¶
OldClosesAt returns the old "closes_at" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldConfirmation ¶
func (m *WebformMutation) OldConfirmation(ctx context.Context) (v string, err error)
OldConfirmation returns the old "confirmation" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldConfirmationURL ¶
func (m *WebformMutation) OldConfirmationURL(ctx context.Context) (v string, err error)
OldConfirmationURL returns the old "confirmation_url" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldDescription ¶
func (m *WebformMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WebformMutation) OldLimitPerUser ¶
func (m *WebformMutation) OldLimitPerUser(ctx context.Context) (v bool, err error)
OldLimitPerUser returns the old "limit_per_user" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldMaxSubmissions ¶
func (m *WebformMutation) OldMaxSubmissions(ctx context.Context) (v int, err error)
OldMaxSubmissions returns the old "max_submissions" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldNid ¶
func (m *WebformMutation) OldNid(ctx context.Context) (v int, err error)
OldNid returns the old "nid" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldNotifyEmail ¶
func (m *WebformMutation) OldNotifyEmail(ctx context.Context) (v string, err error)
OldNotifyEmail returns the old "notify_email" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) OldSubmitLabel ¶
func (m *WebformMutation) OldSubmitLabel(ctx context.Context) (v string, err error)
OldSubmitLabel returns the old "submit_label" field's value of the Webform entity. If the Webform object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformMutation) RemoveElementIDs ¶
func (m *WebformMutation) RemoveElementIDs(ids ...int)
RemoveElementIDs removes the "elements" edge to the WebformElement entity by IDs.
func (*WebformMutation) RemoveSubmissionIDs ¶
func (m *WebformMutation) RemoveSubmissionIDs(ids ...int)
RemoveSubmissionIDs removes the "submissions" edge to the WebformSubmission entity by IDs.
func (*WebformMutation) RemovedEdges ¶
func (m *WebformMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WebformMutation) RemovedElementsIDs ¶
func (m *WebformMutation) RemovedElementsIDs() (ids []int)
RemovedElements returns the removed IDs of the "elements" edge to the WebformElement entity.
func (*WebformMutation) RemovedIDs ¶
func (m *WebformMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WebformMutation) RemovedSubmissionsIDs ¶
func (m *WebformMutation) RemovedSubmissionsIDs() (ids []int)
RemovedSubmissions returns the removed IDs of the "submissions" edge to the WebformSubmission entity.
func (*WebformMutation) ResetClosed ¶
func (m *WebformMutation) ResetClosed()
ResetClosed resets all changes to the "closed" field.
func (*WebformMutation) ResetClosesAt ¶
func (m *WebformMutation) ResetClosesAt()
ResetClosesAt resets all changes to the "closes_at" field.
func (*WebformMutation) ResetConfirmation ¶
func (m *WebformMutation) ResetConfirmation()
ResetConfirmation resets all changes to the "confirmation" field.
func (*WebformMutation) ResetConfirmationURL ¶
func (m *WebformMutation) ResetConfirmationURL()
ResetConfirmationURL resets all changes to the "confirmation_url" field.
func (*WebformMutation) ResetDescription ¶
func (m *WebformMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*WebformMutation) ResetEdge ¶
func (m *WebformMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WebformMutation) ResetElements ¶
func (m *WebformMutation) ResetElements()
ResetElements resets all changes to the "elements" edge.
func (*WebformMutation) ResetField ¶
func (m *WebformMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformMutation) ResetLimitPerUser ¶
func (m *WebformMutation) ResetLimitPerUser()
ResetLimitPerUser resets all changes to the "limit_per_user" field.
func (*WebformMutation) ResetMaxSubmissions ¶
func (m *WebformMutation) ResetMaxSubmissions()
ResetMaxSubmissions resets all changes to the "max_submissions" field.
func (*WebformMutation) ResetNid ¶
func (m *WebformMutation) ResetNid()
ResetNid resets all changes to the "nid" field.
func (*WebformMutation) ResetNode ¶
func (m *WebformMutation) ResetNode()
ResetNode resets all changes to the "node" edge.
func (*WebformMutation) ResetNotifyEmail ¶
func (m *WebformMutation) ResetNotifyEmail()
ResetNotifyEmail resets all changes to the "notify_email" field.
func (*WebformMutation) ResetSubmissions ¶
func (m *WebformMutation) ResetSubmissions()
ResetSubmissions resets all changes to the "submissions" edge.
func (*WebformMutation) ResetSubmitLabel ¶
func (m *WebformMutation) ResetSubmitLabel()
ResetSubmitLabel resets all changes to the "submit_label" field.
func (*WebformMutation) SetClosed ¶
func (m *WebformMutation) SetClosed(b bool)
SetClosed sets the "closed" field.
func (*WebformMutation) SetClosesAt ¶
func (m *WebformMutation) SetClosesAt(t time.Time)
SetClosesAt sets the "closes_at" field.
func (*WebformMutation) SetConfirmation ¶
func (m *WebformMutation) SetConfirmation(s string)
SetConfirmation sets the "confirmation" field.
func (*WebformMutation) SetConfirmationURL ¶
func (m *WebformMutation) SetConfirmationURL(s string)
SetConfirmationURL sets the "confirmation_url" field.
func (*WebformMutation) SetDescription ¶
func (m *WebformMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*WebformMutation) SetField ¶
func (m *WebformMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformMutation) SetID ¶
func (m *WebformMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Webform entities.
func (*WebformMutation) SetLimitPerUser ¶
func (m *WebformMutation) SetLimitPerUser(b bool)
SetLimitPerUser sets the "limit_per_user" field.
func (*WebformMutation) SetMaxSubmissions ¶
func (m *WebformMutation) SetMaxSubmissions(i int)
SetMaxSubmissions sets the "max_submissions" field.
func (*WebformMutation) SetNid ¶
func (m *WebformMutation) SetNid(i int)
SetNid sets the "nid" field.
func (*WebformMutation) SetNodeID ¶
func (m *WebformMutation) SetNodeID(id int)
SetNodeID sets the "node" edge to the Node entity by id.
func (*WebformMutation) SetNotifyEmail ¶
func (m *WebformMutation) SetNotifyEmail(s string)
SetNotifyEmail sets the "notify_email" field.
func (*WebformMutation) SetOp ¶
func (m *WebformMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WebformMutation) SetSubmitLabel ¶
func (m *WebformMutation) SetSubmitLabel(s string)
SetSubmitLabel sets the "submit_label" field.
func (*WebformMutation) SubmissionsCleared ¶
func (m *WebformMutation) SubmissionsCleared() bool
SubmissionsCleared reports if the "submissions" edge to the WebformSubmission entity was cleared.
func (*WebformMutation) SubmissionsIDs ¶
func (m *WebformMutation) SubmissionsIDs() (ids []int)
SubmissionsIDs returns the "submissions" edge IDs in the mutation.
func (*WebformMutation) SubmitLabel ¶
func (m *WebformMutation) SubmitLabel() (r string, exists bool)
SubmitLabel returns the value of the "submit_label" field in the mutation.
func (WebformMutation) Tx ¶
func (m WebformMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WebformMutation) Type ¶
func (m *WebformMutation) Type() string
Type returns the node type of this mutation (Webform).
func (*WebformMutation) Where ¶
func (m *WebformMutation) Where(ps ...predicate.Webform)
Where appends a list predicates to the WebformMutation builder.
func (*WebformMutation) WhereP ¶
func (m *WebformMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WebformMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type WebformQuery ¶
type WebformQuery struct {
// contains filtered or unexported fields
}
WebformQuery is the builder for querying Webform entities.
func (*WebformQuery) Aggregate ¶
func (_q *WebformQuery) Aggregate(fns ...AggregateFunc) *WebformSelect
Aggregate returns a WebformSelect configured with the given aggregations.
func (*WebformQuery) All ¶
func (_q *WebformQuery) All(ctx context.Context) ([]*Webform, error)
All executes the query and returns a list of Webforms.
func (*WebformQuery) AllX ¶
func (_q *WebformQuery) AllX(ctx context.Context) []*Webform
AllX is like All, but panics if an error occurs.
func (*WebformQuery) Clone ¶
func (_q *WebformQuery) Clone() *WebformQuery
Clone returns a duplicate of the WebformQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WebformQuery) Count ¶
func (_q *WebformQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WebformQuery) CountX ¶
func (_q *WebformQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WebformQuery) Exist ¶
func (_q *WebformQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WebformQuery) ExistX ¶
func (_q *WebformQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WebformQuery) First ¶
func (_q *WebformQuery) First(ctx context.Context) (*Webform, error)
First returns the first Webform entity from the query. Returns a *NotFoundError when no Webform was found.
func (*WebformQuery) FirstID ¶
func (_q *WebformQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Webform ID from the query. Returns a *NotFoundError when no Webform ID was found.
func (*WebformQuery) FirstIDX ¶
func (_q *WebformQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WebformQuery) FirstX ¶
func (_q *WebformQuery) FirstX(ctx context.Context) *Webform
FirstX is like First, but panics if an error occurs.
func (*WebformQuery) GroupBy ¶
func (_q *WebformQuery) GroupBy(field string, fields ...string) *WebformGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct {
Nid int `json:"nid,omitempty"`
Count int `json:"count,omitempty"`
}
client.Webform.Query().
GroupBy(webform.FieldNid).
Aggregate(generated.Count()).
Scan(ctx, &v)
func (*WebformQuery) IDs ¶
func (_q *WebformQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Webform IDs.
func (*WebformQuery) IDsX ¶
func (_q *WebformQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WebformQuery) Limit ¶
func (_q *WebformQuery) Limit(limit int) *WebformQuery
Limit the number of records to be returned by this query.
func (*WebformQuery) Offset ¶
func (_q *WebformQuery) Offset(offset int) *WebformQuery
Offset to start from.
func (*WebformQuery) Only ¶
func (_q *WebformQuery) Only(ctx context.Context) (*Webform, error)
Only returns a single Webform entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Webform entity is found. Returns a *NotFoundError when no Webform entities are found.
func (*WebformQuery) OnlyID ¶
func (_q *WebformQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Webform ID in the query. Returns a *NotSingularError when more than one Webform ID is found. Returns a *NotFoundError when no entities are found.
func (*WebformQuery) OnlyIDX ¶
func (_q *WebformQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WebformQuery) OnlyX ¶
func (_q *WebformQuery) OnlyX(ctx context.Context) *Webform
OnlyX is like Only, but panics if an error occurs.
func (*WebformQuery) Order ¶
func (_q *WebformQuery) Order(o ...webform.OrderOption) *WebformQuery
Order specifies how the records should be ordered.
func (*WebformQuery) QueryElements ¶
func (_q *WebformQuery) QueryElements() *WebformElementQuery
QueryElements chains the current query on the "elements" edge.
func (*WebformQuery) QueryNode ¶
func (_q *WebformQuery) QueryNode() *NodeQuery
QueryNode chains the current query on the "node" edge.
func (*WebformQuery) QuerySubmissions ¶
func (_q *WebformQuery) QuerySubmissions() *WebformSubmissionQuery
QuerySubmissions chains the current query on the "submissions" edge.
func (*WebformQuery) Select ¶
func (_q *WebformQuery) Select(fields ...string) *WebformSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct {
Nid int `json:"nid,omitempty"`
}
client.Webform.Query().
Select(webform.FieldNid).
Scan(ctx, &v)
func (*WebformQuery) Unique ¶
func (_q *WebformQuery) Unique(unique bool) *WebformQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WebformQuery) Where ¶
func (_q *WebformQuery) Where(ps ...predicate.Webform) *WebformQuery
Where adds a new predicate for the WebformQuery builder.
func (*WebformQuery) WithElements ¶
func (_q *WebformQuery) WithElements(opts ...func(*WebformElementQuery)) *WebformQuery
WithElements tells the query-builder to eager-load the nodes that are connected to the "elements" edge. The optional arguments are used to configure the query builder of the edge.
func (*WebformQuery) WithNode ¶
func (_q *WebformQuery) WithNode(opts ...func(*NodeQuery)) *WebformQuery
WithNode tells the query-builder to eager-load the nodes that are connected to the "node" edge. The optional arguments are used to configure the query builder of the edge.
func (*WebformQuery) WithSubmissions ¶
func (_q *WebformQuery) WithSubmissions(opts ...func(*WebformSubmissionQuery)) *WebformQuery
WithSubmissions tells the query-builder to eager-load the nodes that are connected to the "submissions" edge. The optional arguments are used to configure the query builder of the edge.
type WebformSelect ¶
type WebformSelect struct {
*WebformQuery
// contains filtered or unexported fields
}
WebformSelect is the builder for selecting fields of Webform entities.
func (*WebformSelect) Aggregate ¶
func (_s *WebformSelect) Aggregate(fns ...AggregateFunc) *WebformSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WebformSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformSelect) Scan ¶
func (_s *WebformSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WebformSubmission ¶
type WebformSubmission struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// WebformID holds the value of the "webform_id" field.
WebformID int `json:"webform_id,omitempty"`
// UserID holds the value of the "user_id" field.
UserID *int `json:"user_id,omitempty"`
// RemoteIP holds the value of the "remote_ip" field.
RemoteIP string `json:"remote_ip,omitempty"`
// SourceURL holds the value of the "source_url" field.
SourceURL string `json:"source_url,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the WebformSubmissionQuery when eager-loading is set.
Edges WebformSubmissionEdges `json:"edges"`
// contains filtered or unexported fields
}
WebformSubmission is the model entity for the WebformSubmission schema.
func (*WebformSubmission) QueryUser ¶
func (_m *WebformSubmission) QueryUser() *UserQuery
QueryUser queries the "user" edge of the WebformSubmission entity.
func (*WebformSubmission) QueryValues ¶
func (_m *WebformSubmission) QueryValues() *WebformSubmissionValueQuery
QueryValues queries the "values" edge of the WebformSubmission entity.
func (*WebformSubmission) QueryWebform ¶
func (_m *WebformSubmission) QueryWebform() *WebformQuery
QueryWebform queries the "webform" edge of the WebformSubmission entity.
func (*WebformSubmission) String ¶
func (_m *WebformSubmission) String() string
String implements the fmt.Stringer.
func (*WebformSubmission) Unwrap ¶
func (_m *WebformSubmission) Unwrap() *WebformSubmission
Unwrap unwraps the WebformSubmission entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*WebformSubmission) Update ¶
func (_m *WebformSubmission) Update() *WebformSubmissionUpdateOne
Update returns a builder for updating this WebformSubmission. Note that you need to call WebformSubmission.Unwrap() before calling this method if this WebformSubmission was returned from a transaction, and the transaction was committed or rolled back.
type WebformSubmissionClient ¶
type WebformSubmissionClient struct {
// contains filtered or unexported fields
}
WebformSubmissionClient is a client for the WebformSubmission schema.
func NewWebformSubmissionClient ¶
func NewWebformSubmissionClient(c config) *WebformSubmissionClient
NewWebformSubmissionClient returns a client for the WebformSubmission from the given config.
func (*WebformSubmissionClient) Create ¶
func (c *WebformSubmissionClient) Create() *WebformSubmissionCreate
Create returns a builder for creating a WebformSubmission entity.
func (*WebformSubmissionClient) CreateBulk ¶
func (c *WebformSubmissionClient) CreateBulk(builders ...*WebformSubmissionCreate) *WebformSubmissionCreateBulk
CreateBulk returns a builder for creating a bulk of WebformSubmission entities.
func (*WebformSubmissionClient) Delete ¶
func (c *WebformSubmissionClient) Delete() *WebformSubmissionDelete
Delete returns a delete builder for WebformSubmission.
func (*WebformSubmissionClient) DeleteOne ¶
func (c *WebformSubmissionClient) DeleteOne(_m *WebformSubmission) *WebformSubmissionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WebformSubmissionClient) DeleteOneID ¶
func (c *WebformSubmissionClient) DeleteOneID(id int) *WebformSubmissionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WebformSubmissionClient) Get ¶
func (c *WebformSubmissionClient) Get(ctx context.Context, id int) (*WebformSubmission, error)
Get returns a WebformSubmission entity by its id.
func (*WebformSubmissionClient) GetX ¶
func (c *WebformSubmissionClient) GetX(ctx context.Context, id int) *WebformSubmission
GetX is like Get, but panics if an error occurs.
func (*WebformSubmissionClient) Hooks ¶
func (c *WebformSubmissionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WebformSubmissionClient) Intercept ¶
func (c *WebformSubmissionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `webformsubmission.Intercept(f(g(h())))`.
func (*WebformSubmissionClient) Interceptors ¶
func (c *WebformSubmissionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WebformSubmissionClient) MapCreateBulk ¶
func (c *WebformSubmissionClient) MapCreateBulk(slice any, setFunc func(*WebformSubmissionCreate, int)) *WebformSubmissionCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*WebformSubmissionClient) Query ¶
func (c *WebformSubmissionClient) Query() *WebformSubmissionQuery
Query returns a query builder for WebformSubmission.
func (*WebformSubmissionClient) QueryUser ¶
func (c *WebformSubmissionClient) QueryUser(_m *WebformSubmission) *UserQuery
QueryUser queries the user edge of a WebformSubmission.
func (*WebformSubmissionClient) QueryValues ¶
func (c *WebformSubmissionClient) QueryValues(_m *WebformSubmission) *WebformSubmissionValueQuery
QueryValues queries the values edge of a WebformSubmission.
func (*WebformSubmissionClient) QueryWebform ¶
func (c *WebformSubmissionClient) QueryWebform(_m *WebformSubmission) *WebformQuery
QueryWebform queries the webform edge of a WebformSubmission.
func (*WebformSubmissionClient) Update ¶
func (c *WebformSubmissionClient) Update() *WebformSubmissionUpdate
Update returns an update builder for WebformSubmission.
func (*WebformSubmissionClient) UpdateOne ¶
func (c *WebformSubmissionClient) UpdateOne(_m *WebformSubmission) *WebformSubmissionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WebformSubmissionClient) UpdateOneID ¶
func (c *WebformSubmissionClient) UpdateOneID(id int) *WebformSubmissionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WebformSubmissionClient) Use ¶
func (c *WebformSubmissionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `webformsubmission.Hooks(f(g(h())))`.
type WebformSubmissionCreate ¶
type WebformSubmissionCreate struct {
// contains filtered or unexported fields
}
WebformSubmissionCreate is the builder for creating a WebformSubmission entity.
func (*WebformSubmissionCreate) AddValueIDs ¶
func (_c *WebformSubmissionCreate) AddValueIDs(ids ...int) *WebformSubmissionCreate
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformSubmissionCreate) AddValues ¶
func (_c *WebformSubmissionCreate) AddValues(v ...*WebformSubmissionValue) *WebformSubmissionCreate
AddValues adds the "values" edges to the WebformSubmissionValue entity.
func (*WebformSubmissionCreate) Exec ¶
func (_c *WebformSubmissionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformSubmissionCreate) ExecX ¶
func (_c *WebformSubmissionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionCreate) Mutation ¶
func (_c *WebformSubmissionCreate) Mutation() *WebformSubmissionMutation
Mutation returns the WebformSubmissionMutation object of the builder.
func (*WebformSubmissionCreate) Save ¶
func (_c *WebformSubmissionCreate) Save(ctx context.Context) (*WebformSubmission, error)
Save creates the WebformSubmission in the database.
func (*WebformSubmissionCreate) SaveX ¶
func (_c *WebformSubmissionCreate) SaveX(ctx context.Context) *WebformSubmission
SaveX calls Save and panics if Save returns an error.
func (*WebformSubmissionCreate) SetCreatedAt ¶
func (_c *WebformSubmissionCreate) SetCreatedAt(v time.Time) *WebformSubmissionCreate
SetCreatedAt sets the "created_at" field.
func (*WebformSubmissionCreate) SetID ¶
func (_c *WebformSubmissionCreate) SetID(v int) *WebformSubmissionCreate
SetID sets the "id" field.
func (*WebformSubmissionCreate) SetNillableCreatedAt ¶
func (_c *WebformSubmissionCreate) SetNillableCreatedAt(v *time.Time) *WebformSubmissionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WebformSubmissionCreate) SetNillableRemoteIP ¶
func (_c *WebformSubmissionCreate) SetNillableRemoteIP(v *string) *WebformSubmissionCreate
SetNillableRemoteIP sets the "remote_ip" field if the given value is not nil.
func (*WebformSubmissionCreate) SetNillableSourceURL ¶
func (_c *WebformSubmissionCreate) SetNillableSourceURL(v *string) *WebformSubmissionCreate
SetNillableSourceURL sets the "source_url" field if the given value is not nil.
func (*WebformSubmissionCreate) SetNillableUserID ¶
func (_c *WebformSubmissionCreate) SetNillableUserID(v *int) *WebformSubmissionCreate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*WebformSubmissionCreate) SetRemoteIP ¶
func (_c *WebformSubmissionCreate) SetRemoteIP(v string) *WebformSubmissionCreate
SetRemoteIP sets the "remote_ip" field.
func (*WebformSubmissionCreate) SetSourceURL ¶
func (_c *WebformSubmissionCreate) SetSourceURL(v string) *WebformSubmissionCreate
SetSourceURL sets the "source_url" field.
func (*WebformSubmissionCreate) SetUser ¶
func (_c *WebformSubmissionCreate) SetUser(v *User) *WebformSubmissionCreate
SetUser sets the "user" edge to the User entity.
func (*WebformSubmissionCreate) SetUserID ¶
func (_c *WebformSubmissionCreate) SetUserID(v int) *WebformSubmissionCreate
SetUserID sets the "user_id" field.
func (*WebformSubmissionCreate) SetWebform ¶
func (_c *WebformSubmissionCreate) SetWebform(v *Webform) *WebformSubmissionCreate
SetWebform sets the "webform" edge to the Webform entity.
func (*WebformSubmissionCreate) SetWebformID ¶
func (_c *WebformSubmissionCreate) SetWebformID(v int) *WebformSubmissionCreate
SetWebformID sets the "webform_id" field.
type WebformSubmissionCreateBulk ¶
type WebformSubmissionCreateBulk struct {
// contains filtered or unexported fields
}
WebformSubmissionCreateBulk is the builder for creating many WebformSubmission entities in bulk.
func (*WebformSubmissionCreateBulk) Exec ¶
func (_c *WebformSubmissionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformSubmissionCreateBulk) ExecX ¶
func (_c *WebformSubmissionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionCreateBulk) Save ¶
func (_c *WebformSubmissionCreateBulk) Save(ctx context.Context) ([]*WebformSubmission, error)
Save creates the WebformSubmission entities in the database.
func (*WebformSubmissionCreateBulk) SaveX ¶
func (_c *WebformSubmissionCreateBulk) SaveX(ctx context.Context) []*WebformSubmission
SaveX is like Save, but panics if an error occurs.
type WebformSubmissionDelete ¶
type WebformSubmissionDelete struct {
// contains filtered or unexported fields
}
WebformSubmissionDelete is the builder for deleting a WebformSubmission entity.
func (*WebformSubmissionDelete) Exec ¶
func (_d *WebformSubmissionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WebformSubmissionDelete) ExecX ¶
func (_d *WebformSubmissionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionDelete) Where ¶
func (_d *WebformSubmissionDelete) Where(ps ...predicate.WebformSubmission) *WebformSubmissionDelete
Where appends a list predicates to the WebformSubmissionDelete builder.
type WebformSubmissionDeleteOne ¶
type WebformSubmissionDeleteOne struct {
// contains filtered or unexported fields
}
WebformSubmissionDeleteOne is the builder for deleting a single WebformSubmission entity.
func (*WebformSubmissionDeleteOne) Exec ¶
func (_d *WebformSubmissionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WebformSubmissionDeleteOne) ExecX ¶
func (_d *WebformSubmissionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionDeleteOne) Where ¶
func (_d *WebformSubmissionDeleteOne) Where(ps ...predicate.WebformSubmission) *WebformSubmissionDeleteOne
Where appends a list predicates to the WebformSubmissionDelete builder.
type WebformSubmissionEdges ¶
type WebformSubmissionEdges struct {
// Webform holds the value of the webform edge.
Webform *Webform `json:"webform,omitempty"`
// User holds the value of the user edge.
User *User `json:"user,omitempty"`
// Values holds the value of the values edge.
Values []*WebformSubmissionValue `json:"values,omitempty"`
// contains filtered or unexported fields
}
WebformSubmissionEdges holds the relations/edges for other nodes in the graph.
func (WebformSubmissionEdges) UserOrErr ¶
func (e WebformSubmissionEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WebformSubmissionEdges) ValuesOrErr ¶
func (e WebformSubmissionEdges) ValuesOrErr() ([]*WebformSubmissionValue, error)
ValuesOrErr returns the Values value or an error if the edge was not loaded in eager-loading.
func (WebformSubmissionEdges) WebformOrErr ¶
func (e WebformSubmissionEdges) WebformOrErr() (*Webform, error)
WebformOrErr returns the Webform value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WebformSubmissionGroupBy ¶
type WebformSubmissionGroupBy struct {
// contains filtered or unexported fields
}
WebformSubmissionGroupBy is the group-by builder for WebformSubmission entities.
func (*WebformSubmissionGroupBy) Aggregate ¶
func (_g *WebformSubmissionGroupBy) Aggregate(fns ...AggregateFunc) *WebformSubmissionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WebformSubmissionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WebformSubmissionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebformSubmissionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionGroupBy) Scan ¶
func (_g *WebformSubmissionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformSubmissionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WebformSubmissionMutation ¶
type WebformSubmissionMutation struct {
// contains filtered or unexported fields
}
WebformSubmissionMutation represents an operation that mutates the WebformSubmission nodes in the graph.
func (*WebformSubmissionMutation) AddField ¶
func (m *WebformSubmissionMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformSubmissionMutation) AddValueIDs ¶
func (m *WebformSubmissionMutation) AddValueIDs(ids ...int)
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by ids.
func (*WebformSubmissionMutation) AddedEdges ¶
func (m *WebformSubmissionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WebformSubmissionMutation) AddedField ¶
func (m *WebformSubmissionMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformSubmissionMutation) AddedFields ¶
func (m *WebformSubmissionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WebformSubmissionMutation) AddedIDs ¶
func (m *WebformSubmissionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WebformSubmissionMutation) ClearEdge ¶
func (m *WebformSubmissionMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WebformSubmissionMutation) ClearField ¶
func (m *WebformSubmissionMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformSubmissionMutation) ClearUser ¶
func (m *WebformSubmissionMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*WebformSubmissionMutation) ClearUserID ¶
func (m *WebformSubmissionMutation) ClearUserID()
ClearUserID clears the value of the "user_id" field.
func (*WebformSubmissionMutation) ClearValues ¶
func (m *WebformSubmissionMutation) ClearValues()
ClearValues clears the "values" edge to the WebformSubmissionValue entity.
func (*WebformSubmissionMutation) ClearWebform ¶
func (m *WebformSubmissionMutation) ClearWebform()
ClearWebform clears the "webform" edge to the Webform entity.
func (*WebformSubmissionMutation) ClearedEdges ¶
func (m *WebformSubmissionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WebformSubmissionMutation) ClearedFields ¶
func (m *WebformSubmissionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WebformSubmissionMutation) Client ¶
func (m WebformSubmissionMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WebformSubmissionMutation) CreatedAt ¶
func (m *WebformSubmissionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*WebformSubmissionMutation) EdgeCleared ¶
func (m *WebformSubmissionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WebformSubmissionMutation) Field ¶
func (m *WebformSubmissionMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformSubmissionMutation) FieldCleared ¶
func (m *WebformSubmissionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WebformSubmissionMutation) Fields ¶
func (m *WebformSubmissionMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WebformSubmissionMutation) ID ¶
func (m *WebformSubmissionMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WebformSubmissionMutation) IDs ¶
func (m *WebformSubmissionMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WebformSubmissionMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the WebformSubmission entity. If the WebformSubmission object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WebformSubmissionMutation) OldRemoteIP ¶
func (m *WebformSubmissionMutation) OldRemoteIP(ctx context.Context) (v string, err error)
OldRemoteIP returns the old "remote_ip" field's value of the WebformSubmission entity. If the WebformSubmission object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionMutation) OldSourceURL ¶
func (m *WebformSubmissionMutation) OldSourceURL(ctx context.Context) (v string, err error)
OldSourceURL returns the old "source_url" field's value of the WebformSubmission entity. If the WebformSubmission object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionMutation) OldUserID ¶
func (m *WebformSubmissionMutation) OldUserID(ctx context.Context) (v *int, err error)
OldUserID returns the old "user_id" field's value of the WebformSubmission entity. If the WebformSubmission object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionMutation) OldWebformID ¶
func (m *WebformSubmissionMutation) OldWebformID(ctx context.Context) (v int, err error)
OldWebformID returns the old "webform_id" field's value of the WebformSubmission entity. If the WebformSubmission object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionMutation) Op ¶
func (m *WebformSubmissionMutation) Op() Op
Op returns the operation name.
func (*WebformSubmissionMutation) RemoteIP ¶
func (m *WebformSubmissionMutation) RemoteIP() (r string, exists bool)
RemoteIP returns the value of the "remote_ip" field in the mutation.
func (*WebformSubmissionMutation) RemoveValueIDs ¶
func (m *WebformSubmissionMutation) RemoveValueIDs(ids ...int)
RemoveValueIDs removes the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformSubmissionMutation) RemovedEdges ¶
func (m *WebformSubmissionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WebformSubmissionMutation) RemovedIDs ¶
func (m *WebformSubmissionMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WebformSubmissionMutation) RemovedValuesIDs ¶
func (m *WebformSubmissionMutation) RemovedValuesIDs() (ids []int)
RemovedValues returns the removed IDs of the "values" edge to the WebformSubmissionValue entity.
func (*WebformSubmissionMutation) ResetCreatedAt ¶
func (m *WebformSubmissionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*WebformSubmissionMutation) ResetEdge ¶
func (m *WebformSubmissionMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WebformSubmissionMutation) ResetField ¶
func (m *WebformSubmissionMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformSubmissionMutation) ResetRemoteIP ¶
func (m *WebformSubmissionMutation) ResetRemoteIP()
ResetRemoteIP resets all changes to the "remote_ip" field.
func (*WebformSubmissionMutation) ResetSourceURL ¶
func (m *WebformSubmissionMutation) ResetSourceURL()
ResetSourceURL resets all changes to the "source_url" field.
func (*WebformSubmissionMutation) ResetUser ¶
func (m *WebformSubmissionMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*WebformSubmissionMutation) ResetUserID ¶
func (m *WebformSubmissionMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*WebformSubmissionMutation) ResetValues ¶
func (m *WebformSubmissionMutation) ResetValues()
ResetValues resets all changes to the "values" edge.
func (*WebformSubmissionMutation) ResetWebform ¶
func (m *WebformSubmissionMutation) ResetWebform()
ResetWebform resets all changes to the "webform" edge.
func (*WebformSubmissionMutation) ResetWebformID ¶
func (m *WebformSubmissionMutation) ResetWebformID()
ResetWebformID resets all changes to the "webform_id" field.
func (*WebformSubmissionMutation) SetCreatedAt ¶
func (m *WebformSubmissionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*WebformSubmissionMutation) SetField ¶
func (m *WebformSubmissionMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformSubmissionMutation) SetID ¶
func (m *WebformSubmissionMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of WebformSubmission entities.
func (*WebformSubmissionMutation) SetOp ¶
func (m *WebformSubmissionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WebformSubmissionMutation) SetRemoteIP ¶
func (m *WebformSubmissionMutation) SetRemoteIP(s string)
SetRemoteIP sets the "remote_ip" field.
func (*WebformSubmissionMutation) SetSourceURL ¶
func (m *WebformSubmissionMutation) SetSourceURL(s string)
SetSourceURL sets the "source_url" field.
func (*WebformSubmissionMutation) SetUserID ¶
func (m *WebformSubmissionMutation) SetUserID(i int)
SetUserID sets the "user_id" field.
func (*WebformSubmissionMutation) SetWebformID ¶
func (m *WebformSubmissionMutation) SetWebformID(i int)
SetWebformID sets the "webform_id" field.
func (*WebformSubmissionMutation) SourceURL ¶
func (m *WebformSubmissionMutation) SourceURL() (r string, exists bool)
SourceURL returns the value of the "source_url" field in the mutation.
func (WebformSubmissionMutation) Tx ¶
func (m WebformSubmissionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WebformSubmissionMutation) Type ¶
func (m *WebformSubmissionMutation) Type() string
Type returns the node type of this mutation (WebformSubmission).
func (*WebformSubmissionMutation) UserCleared ¶
func (m *WebformSubmissionMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*WebformSubmissionMutation) UserID ¶
func (m *WebformSubmissionMutation) UserID() (r int, exists bool)
UserID returns the value of the "user_id" field in the mutation.
func (*WebformSubmissionMutation) UserIDCleared ¶
func (m *WebformSubmissionMutation) UserIDCleared() bool
UserIDCleared returns if the "user_id" field was cleared in this mutation.
func (*WebformSubmissionMutation) UserIDs ¶
func (m *WebformSubmissionMutation) UserIDs() (ids []int)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*WebformSubmissionMutation) ValuesCleared ¶
func (m *WebformSubmissionMutation) ValuesCleared() bool
ValuesCleared reports if the "values" edge to the WebformSubmissionValue entity was cleared.
func (*WebformSubmissionMutation) ValuesIDs ¶
func (m *WebformSubmissionMutation) ValuesIDs() (ids []int)
ValuesIDs returns the "values" edge IDs in the mutation.
func (*WebformSubmissionMutation) WebformCleared ¶
func (m *WebformSubmissionMutation) WebformCleared() bool
WebformCleared reports if the "webform" edge to the Webform entity was cleared.
func (*WebformSubmissionMutation) WebformID ¶
func (m *WebformSubmissionMutation) WebformID() (r int, exists bool)
WebformID returns the value of the "webform_id" field in the mutation.
func (*WebformSubmissionMutation) WebformIDs ¶
func (m *WebformSubmissionMutation) WebformIDs() (ids []int)
WebformIDs returns the "webform" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WebformID instead. It exists only for internal usage by the builders.
func (*WebformSubmissionMutation) Where ¶
func (m *WebformSubmissionMutation) Where(ps ...predicate.WebformSubmission)
Where appends a list predicates to the WebformSubmissionMutation builder.
func (*WebformSubmissionMutation) WhereP ¶
func (m *WebformSubmissionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WebformSubmissionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type WebformSubmissionQuery ¶
type WebformSubmissionQuery struct {
// contains filtered or unexported fields
}
WebformSubmissionQuery is the builder for querying WebformSubmission entities.
func (*WebformSubmissionQuery) Aggregate ¶
func (_q *WebformSubmissionQuery) Aggregate(fns ...AggregateFunc) *WebformSubmissionSelect
Aggregate returns a WebformSubmissionSelect configured with the given aggregations.
func (*WebformSubmissionQuery) All ¶
func (_q *WebformSubmissionQuery) All(ctx context.Context) ([]*WebformSubmission, error)
All executes the query and returns a list of WebformSubmissions.
func (*WebformSubmissionQuery) AllX ¶
func (_q *WebformSubmissionQuery) AllX(ctx context.Context) []*WebformSubmission
AllX is like All, but panics if an error occurs.
func (*WebformSubmissionQuery) Clone ¶
func (_q *WebformSubmissionQuery) Clone() *WebformSubmissionQuery
Clone returns a duplicate of the WebformSubmissionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WebformSubmissionQuery) Count ¶
func (_q *WebformSubmissionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WebformSubmissionQuery) CountX ¶
func (_q *WebformSubmissionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WebformSubmissionQuery) Exist ¶
func (_q *WebformSubmissionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WebformSubmissionQuery) ExistX ¶
func (_q *WebformSubmissionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WebformSubmissionQuery) First ¶
func (_q *WebformSubmissionQuery) First(ctx context.Context) (*WebformSubmission, error)
First returns the first WebformSubmission entity from the query. Returns a *NotFoundError when no WebformSubmission was found.
func (*WebformSubmissionQuery) FirstID ¶
func (_q *WebformSubmissionQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first WebformSubmission ID from the query. Returns a *NotFoundError when no WebformSubmission ID was found.
func (*WebformSubmissionQuery) FirstIDX ¶
func (_q *WebformSubmissionQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WebformSubmissionQuery) FirstX ¶
func (_q *WebformSubmissionQuery) FirstX(ctx context.Context) *WebformSubmission
FirstX is like First, but panics if an error occurs.
func (*WebformSubmissionQuery) GroupBy ¶
func (_q *WebformSubmissionQuery) GroupBy(field string, fields ...string) *WebformSubmissionGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct {
WebformID int `json:"webform_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.WebformSubmission.Query().
GroupBy(webformsubmission.FieldWebformID).
Aggregate(generated.Count()).
Scan(ctx, &v)
func (*WebformSubmissionQuery) IDs ¶
func (_q *WebformSubmissionQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of WebformSubmission IDs.
func (*WebformSubmissionQuery) IDsX ¶
func (_q *WebformSubmissionQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WebformSubmissionQuery) Limit ¶
func (_q *WebformSubmissionQuery) Limit(limit int) *WebformSubmissionQuery
Limit the number of records to be returned by this query.
func (*WebformSubmissionQuery) Offset ¶
func (_q *WebformSubmissionQuery) Offset(offset int) *WebformSubmissionQuery
Offset to start from.
func (*WebformSubmissionQuery) Only ¶
func (_q *WebformSubmissionQuery) Only(ctx context.Context) (*WebformSubmission, error)
Only returns a single WebformSubmission entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WebformSubmission entity is found. Returns a *NotFoundError when no WebformSubmission entities are found.
func (*WebformSubmissionQuery) OnlyID ¶
func (_q *WebformSubmissionQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only WebformSubmission ID in the query. Returns a *NotSingularError when more than one WebformSubmission ID is found. Returns a *NotFoundError when no entities are found.
func (*WebformSubmissionQuery) OnlyIDX ¶
func (_q *WebformSubmissionQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WebformSubmissionQuery) OnlyX ¶
func (_q *WebformSubmissionQuery) OnlyX(ctx context.Context) *WebformSubmission
OnlyX is like Only, but panics if an error occurs.
func (*WebformSubmissionQuery) Order ¶
func (_q *WebformSubmissionQuery) Order(o ...webformsubmission.OrderOption) *WebformSubmissionQuery
Order specifies how the records should be ordered.
func (*WebformSubmissionQuery) QueryUser ¶
func (_q *WebformSubmissionQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*WebformSubmissionQuery) QueryValues ¶
func (_q *WebformSubmissionQuery) QueryValues() *WebformSubmissionValueQuery
QueryValues chains the current query on the "values" edge.
func (*WebformSubmissionQuery) QueryWebform ¶
func (_q *WebformSubmissionQuery) QueryWebform() *WebformQuery
QueryWebform chains the current query on the "webform" edge.
func (*WebformSubmissionQuery) Select ¶
func (_q *WebformSubmissionQuery) Select(fields ...string) *WebformSubmissionSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct {
WebformID int `json:"webform_id,omitempty"`
}
client.WebformSubmission.Query().
Select(webformsubmission.FieldWebformID).
Scan(ctx, &v)
func (*WebformSubmissionQuery) Unique ¶
func (_q *WebformSubmissionQuery) Unique(unique bool) *WebformSubmissionQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WebformSubmissionQuery) Where ¶
func (_q *WebformSubmissionQuery) Where(ps ...predicate.WebformSubmission) *WebformSubmissionQuery
Where adds a new predicate for the WebformSubmissionQuery builder.
func (*WebformSubmissionQuery) WithUser ¶
func (_q *WebformSubmissionQuery) WithUser(opts ...func(*UserQuery)) *WebformSubmissionQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
func (*WebformSubmissionQuery) WithValues ¶
func (_q *WebformSubmissionQuery) WithValues(opts ...func(*WebformSubmissionValueQuery)) *WebformSubmissionQuery
WithValues tells the query-builder to eager-load the nodes that are connected to the "values" edge. The optional arguments are used to configure the query builder of the edge.
func (*WebformSubmissionQuery) WithWebform ¶
func (_q *WebformSubmissionQuery) WithWebform(opts ...func(*WebformQuery)) *WebformSubmissionQuery
WithWebform tells the query-builder to eager-load the nodes that are connected to the "webform" edge. The optional arguments are used to configure the query builder of the edge.
type WebformSubmissionSelect ¶
type WebformSubmissionSelect struct {
*WebformSubmissionQuery
// contains filtered or unexported fields
}
WebformSubmissionSelect is the builder for selecting fields of WebformSubmission entities.
func (*WebformSubmissionSelect) Aggregate ¶
func (_s *WebformSubmissionSelect) Aggregate(fns ...AggregateFunc) *WebformSubmissionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WebformSubmissionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebformSubmissionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionSelect) Scan ¶
func (_s *WebformSubmissionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformSubmissionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WebformSubmissionUpdate ¶
type WebformSubmissionUpdate struct {
// contains filtered or unexported fields
}
WebformSubmissionUpdate is the builder for updating WebformSubmission entities.
func (*WebformSubmissionUpdate) AddValueIDs ¶
func (_u *WebformSubmissionUpdate) AddValueIDs(ids ...int) *WebformSubmissionUpdate
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformSubmissionUpdate) AddValues ¶
func (_u *WebformSubmissionUpdate) AddValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdate
AddValues adds the "values" edges to the WebformSubmissionValue entity.
func (*WebformSubmissionUpdate) ClearUser ¶
func (_u *WebformSubmissionUpdate) ClearUser() *WebformSubmissionUpdate
ClearUser clears the "user" edge to the User entity.
func (*WebformSubmissionUpdate) ClearUserID ¶
func (_u *WebformSubmissionUpdate) ClearUserID() *WebformSubmissionUpdate
ClearUserID clears the value of the "user_id" field.
func (*WebformSubmissionUpdate) ClearValues ¶
func (_u *WebformSubmissionUpdate) ClearValues() *WebformSubmissionUpdate
ClearValues clears all "values" edges to the WebformSubmissionValue entity.
func (*WebformSubmissionUpdate) ClearWebform ¶
func (_u *WebformSubmissionUpdate) ClearWebform() *WebformSubmissionUpdate
ClearWebform clears the "webform" edge to the Webform entity.
func (*WebformSubmissionUpdate) Exec ¶
func (_u *WebformSubmissionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformSubmissionUpdate) ExecX ¶
func (_u *WebformSubmissionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionUpdate) Mutation ¶
func (_u *WebformSubmissionUpdate) Mutation() *WebformSubmissionMutation
Mutation returns the WebformSubmissionMutation object of the builder.
func (*WebformSubmissionUpdate) RemoveValueIDs ¶
func (_u *WebformSubmissionUpdate) RemoveValueIDs(ids ...int) *WebformSubmissionUpdate
RemoveValueIDs removes the "values" edge to WebformSubmissionValue entities by IDs.
func (*WebformSubmissionUpdate) RemoveValues ¶
func (_u *WebformSubmissionUpdate) RemoveValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdate
RemoveValues removes "values" edges to WebformSubmissionValue entities.
func (*WebformSubmissionUpdate) Save ¶
func (_u *WebformSubmissionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WebformSubmissionUpdate) SaveX ¶
func (_u *WebformSubmissionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WebformSubmissionUpdate) SetCreatedAt ¶
func (_u *WebformSubmissionUpdate) SetCreatedAt(v time.Time) *WebformSubmissionUpdate
SetCreatedAt sets the "created_at" field.
func (*WebformSubmissionUpdate) SetNillableCreatedAt ¶
func (_u *WebformSubmissionUpdate) SetNillableCreatedAt(v *time.Time) *WebformSubmissionUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WebformSubmissionUpdate) SetNillableRemoteIP ¶
func (_u *WebformSubmissionUpdate) SetNillableRemoteIP(v *string) *WebformSubmissionUpdate
SetNillableRemoteIP sets the "remote_ip" field if the given value is not nil.
func (*WebformSubmissionUpdate) SetNillableSourceURL ¶
func (_u *WebformSubmissionUpdate) SetNillableSourceURL(v *string) *WebformSubmissionUpdate
SetNillableSourceURL sets the "source_url" field if the given value is not nil.
func (*WebformSubmissionUpdate) SetNillableUserID ¶
func (_u *WebformSubmissionUpdate) SetNillableUserID(v *int) *WebformSubmissionUpdate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*WebformSubmissionUpdate) SetNillableWebformID ¶
func (_u *WebformSubmissionUpdate) SetNillableWebformID(v *int) *WebformSubmissionUpdate
SetNillableWebformID sets the "webform_id" field if the given value is not nil.
func (*WebformSubmissionUpdate) SetRemoteIP ¶
func (_u *WebformSubmissionUpdate) SetRemoteIP(v string) *WebformSubmissionUpdate
SetRemoteIP sets the "remote_ip" field.
func (*WebformSubmissionUpdate) SetSourceURL ¶
func (_u *WebformSubmissionUpdate) SetSourceURL(v string) *WebformSubmissionUpdate
SetSourceURL sets the "source_url" field.
func (*WebformSubmissionUpdate) SetUser ¶
func (_u *WebformSubmissionUpdate) SetUser(v *User) *WebformSubmissionUpdate
SetUser sets the "user" edge to the User entity.
func (*WebformSubmissionUpdate) SetUserID ¶
func (_u *WebformSubmissionUpdate) SetUserID(v int) *WebformSubmissionUpdate
SetUserID sets the "user_id" field.
func (*WebformSubmissionUpdate) SetWebform ¶
func (_u *WebformSubmissionUpdate) SetWebform(v *Webform) *WebformSubmissionUpdate
SetWebform sets the "webform" edge to the Webform entity.
func (*WebformSubmissionUpdate) SetWebformID ¶
func (_u *WebformSubmissionUpdate) SetWebformID(v int) *WebformSubmissionUpdate
SetWebformID sets the "webform_id" field.
func (*WebformSubmissionUpdate) Where ¶
func (_u *WebformSubmissionUpdate) Where(ps ...predicate.WebformSubmission) *WebformSubmissionUpdate
Where appends a list predicates to the WebformSubmissionUpdate builder.
type WebformSubmissionUpdateOne ¶
type WebformSubmissionUpdateOne struct {
// contains filtered or unexported fields
}
WebformSubmissionUpdateOne is the builder for updating a single WebformSubmission entity.
func (*WebformSubmissionUpdateOne) AddValueIDs ¶
func (_u *WebformSubmissionUpdateOne) AddValueIDs(ids ...int) *WebformSubmissionUpdateOne
AddValueIDs adds the "values" edge to the WebformSubmissionValue entity by IDs.
func (*WebformSubmissionUpdateOne) AddValues ¶
func (_u *WebformSubmissionUpdateOne) AddValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdateOne
AddValues adds the "values" edges to the WebformSubmissionValue entity.
func (*WebformSubmissionUpdateOne) ClearUser ¶
func (_u *WebformSubmissionUpdateOne) ClearUser() *WebformSubmissionUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*WebformSubmissionUpdateOne) ClearUserID ¶
func (_u *WebformSubmissionUpdateOne) ClearUserID() *WebformSubmissionUpdateOne
ClearUserID clears the value of the "user_id" field.
func (*WebformSubmissionUpdateOne) ClearValues ¶
func (_u *WebformSubmissionUpdateOne) ClearValues() *WebformSubmissionUpdateOne
ClearValues clears all "values" edges to the WebformSubmissionValue entity.
func (*WebformSubmissionUpdateOne) ClearWebform ¶
func (_u *WebformSubmissionUpdateOne) ClearWebform() *WebformSubmissionUpdateOne
ClearWebform clears the "webform" edge to the Webform entity.
func (*WebformSubmissionUpdateOne) Exec ¶
func (_u *WebformSubmissionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WebformSubmissionUpdateOne) ExecX ¶
func (_u *WebformSubmissionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionUpdateOne) Mutation ¶
func (_u *WebformSubmissionUpdateOne) Mutation() *WebformSubmissionMutation
Mutation returns the WebformSubmissionMutation object of the builder.
func (*WebformSubmissionUpdateOne) RemoveValueIDs ¶
func (_u *WebformSubmissionUpdateOne) RemoveValueIDs(ids ...int) *WebformSubmissionUpdateOne
RemoveValueIDs removes the "values" edge to WebformSubmissionValue entities by IDs.
func (*WebformSubmissionUpdateOne) RemoveValues ¶
func (_u *WebformSubmissionUpdateOne) RemoveValues(v ...*WebformSubmissionValue) *WebformSubmissionUpdateOne
RemoveValues removes "values" edges to WebformSubmissionValue entities.
func (*WebformSubmissionUpdateOne) Save ¶
func (_u *WebformSubmissionUpdateOne) Save(ctx context.Context) (*WebformSubmission, error)
Save executes the query and returns the updated WebformSubmission entity.
func (*WebformSubmissionUpdateOne) SaveX ¶
func (_u *WebformSubmissionUpdateOne) SaveX(ctx context.Context) *WebformSubmission
SaveX is like Save, but panics if an error occurs.
func (*WebformSubmissionUpdateOne) Select ¶
func (_u *WebformSubmissionUpdateOne) Select(field string, fields ...string) *WebformSubmissionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WebformSubmissionUpdateOne) SetCreatedAt ¶
func (_u *WebformSubmissionUpdateOne) SetCreatedAt(v time.Time) *WebformSubmissionUpdateOne
SetCreatedAt sets the "created_at" field.
func (*WebformSubmissionUpdateOne) SetNillableCreatedAt ¶
func (_u *WebformSubmissionUpdateOne) SetNillableCreatedAt(v *time.Time) *WebformSubmissionUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*WebformSubmissionUpdateOne) SetNillableRemoteIP ¶
func (_u *WebformSubmissionUpdateOne) SetNillableRemoteIP(v *string) *WebformSubmissionUpdateOne
SetNillableRemoteIP sets the "remote_ip" field if the given value is not nil.
func (*WebformSubmissionUpdateOne) SetNillableSourceURL ¶
func (_u *WebformSubmissionUpdateOne) SetNillableSourceURL(v *string) *WebformSubmissionUpdateOne
SetNillableSourceURL sets the "source_url" field if the given value is not nil.
func (*WebformSubmissionUpdateOne) SetNillableUserID ¶
func (_u *WebformSubmissionUpdateOne) SetNillableUserID(v *int) *WebformSubmissionUpdateOne
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*WebformSubmissionUpdateOne) SetNillableWebformID ¶
func (_u *WebformSubmissionUpdateOne) SetNillableWebformID(v *int) *WebformSubmissionUpdateOne
SetNillableWebformID sets the "webform_id" field if the given value is not nil.
func (*WebformSubmissionUpdateOne) SetRemoteIP ¶
func (_u *WebformSubmissionUpdateOne) SetRemoteIP(v string) *WebformSubmissionUpdateOne
SetRemoteIP sets the "remote_ip" field.
func (*WebformSubmissionUpdateOne) SetSourceURL ¶
func (_u *WebformSubmissionUpdateOne) SetSourceURL(v string) *WebformSubmissionUpdateOne
SetSourceURL sets the "source_url" field.
func (*WebformSubmissionUpdateOne) SetUser ¶
func (_u *WebformSubmissionUpdateOne) SetUser(v *User) *WebformSubmissionUpdateOne
SetUser sets the "user" edge to the User entity.
func (*WebformSubmissionUpdateOne) SetUserID ¶
func (_u *WebformSubmissionUpdateOne) SetUserID(v int) *WebformSubmissionUpdateOne
SetUserID sets the "user_id" field.
func (*WebformSubmissionUpdateOne) SetWebform ¶
func (_u *WebformSubmissionUpdateOne) SetWebform(v *Webform) *WebformSubmissionUpdateOne
SetWebform sets the "webform" edge to the Webform entity.
func (*WebformSubmissionUpdateOne) SetWebformID ¶
func (_u *WebformSubmissionUpdateOne) SetWebformID(v int) *WebformSubmissionUpdateOne
SetWebformID sets the "webform_id" field.
func (*WebformSubmissionUpdateOne) Where ¶
func (_u *WebformSubmissionUpdateOne) Where(ps ...predicate.WebformSubmission) *WebformSubmissionUpdateOne
Where appends a list predicates to the WebformSubmissionUpdate builder.
type WebformSubmissionValue ¶
type WebformSubmissionValue struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// SubmissionID holds the value of the "submission_id" field.
SubmissionID int `json:"submission_id,omitempty"`
// ElementID holds the value of the "element_id" field.
ElementID int `json:"element_id,omitempty"`
// Delta holds the value of the "delta" field.
Delta int `json:"delta,omitempty"`
// Value holds the value of the "value" field.
Value string `json:"value,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the WebformSubmissionValueQuery when eager-loading is set.
Edges WebformSubmissionValueEdges `json:"edges"`
// contains filtered or unexported fields
}
WebformSubmissionValue is the model entity for the WebformSubmissionValue schema.
func (*WebformSubmissionValue) GetValue ¶
func (_m *WebformSubmissionValue) GetValue(name string) (ent.Value, error)
GetValue returns the ent.Value that was dynamically selected and assigned to the WebformSubmissionValue. This includes values selected through modifiers, order, etc.
func (*WebformSubmissionValue) QueryElement ¶
func (_m *WebformSubmissionValue) QueryElement() *WebformElementQuery
QueryElement queries the "element" edge of the WebformSubmissionValue entity.
func (*WebformSubmissionValue) QuerySubmission ¶
func (_m *WebformSubmissionValue) QuerySubmission() *WebformSubmissionQuery
QuerySubmission queries the "submission" edge of the WebformSubmissionValue entity.
func (*WebformSubmissionValue) String ¶
func (_m *WebformSubmissionValue) String() string
String implements the fmt.Stringer.
func (*WebformSubmissionValue) Unwrap ¶
func (_m *WebformSubmissionValue) Unwrap() *WebformSubmissionValue
Unwrap unwraps the WebformSubmissionValue entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*WebformSubmissionValue) Update ¶
func (_m *WebformSubmissionValue) Update() *WebformSubmissionValueUpdateOne
Update returns a builder for updating this WebformSubmissionValue. Note that you need to call WebformSubmissionValue.Unwrap() before calling this method if this WebformSubmissionValue was returned from a transaction, and the transaction was committed or rolled back.
type WebformSubmissionValueClient ¶
type WebformSubmissionValueClient struct {
// contains filtered or unexported fields
}
WebformSubmissionValueClient is a client for the WebformSubmissionValue schema.
func NewWebformSubmissionValueClient ¶
func NewWebformSubmissionValueClient(c config) *WebformSubmissionValueClient
NewWebformSubmissionValueClient returns a client for the WebformSubmissionValue from the given config.
func (*WebformSubmissionValueClient) Create ¶
func (c *WebformSubmissionValueClient) Create() *WebformSubmissionValueCreate
Create returns a builder for creating a WebformSubmissionValue entity.
func (*WebformSubmissionValueClient) CreateBulk ¶
func (c *WebformSubmissionValueClient) CreateBulk(builders ...*WebformSubmissionValueCreate) *WebformSubmissionValueCreateBulk
CreateBulk returns a builder for creating a bulk of WebformSubmissionValue entities.
func (*WebformSubmissionValueClient) Delete ¶
func (c *WebformSubmissionValueClient) Delete() *WebformSubmissionValueDelete
Delete returns a delete builder for WebformSubmissionValue.
func (*WebformSubmissionValueClient) DeleteOne ¶
func (c *WebformSubmissionValueClient) DeleteOne(_m *WebformSubmissionValue) *WebformSubmissionValueDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WebformSubmissionValueClient) DeleteOneID ¶
func (c *WebformSubmissionValueClient) DeleteOneID(id int) *WebformSubmissionValueDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WebformSubmissionValueClient) Get ¶
func (c *WebformSubmissionValueClient) Get(ctx context.Context, id int) (*WebformSubmissionValue, error)
Get returns a WebformSubmissionValue entity by its id.
func (*WebformSubmissionValueClient) GetX ¶
func (c *WebformSubmissionValueClient) GetX(ctx context.Context, id int) *WebformSubmissionValue
GetX is like Get, but panics if an error occurs.
func (*WebformSubmissionValueClient) Hooks ¶
func (c *WebformSubmissionValueClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WebformSubmissionValueClient) Intercept ¶
func (c *WebformSubmissionValueClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `webformsubmissionvalue.Intercept(f(g(h())))`.
func (*WebformSubmissionValueClient) Interceptors ¶
func (c *WebformSubmissionValueClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WebformSubmissionValueClient) MapCreateBulk ¶
func (c *WebformSubmissionValueClient) MapCreateBulk(slice any, setFunc func(*WebformSubmissionValueCreate, int)) *WebformSubmissionValueCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*WebformSubmissionValueClient) Query ¶
func (c *WebformSubmissionValueClient) Query() *WebformSubmissionValueQuery
Query returns a query builder for WebformSubmissionValue.
func (*WebformSubmissionValueClient) QueryElement ¶
func (c *WebformSubmissionValueClient) QueryElement(_m *WebformSubmissionValue) *WebformElementQuery
QueryElement queries the element edge of a WebformSubmissionValue.
func (*WebformSubmissionValueClient) QuerySubmission ¶
func (c *WebformSubmissionValueClient) QuerySubmission(_m *WebformSubmissionValue) *WebformSubmissionQuery
QuerySubmission queries the submission edge of a WebformSubmissionValue.
func (*WebformSubmissionValueClient) Update ¶
func (c *WebformSubmissionValueClient) Update() *WebformSubmissionValueUpdate
Update returns an update builder for WebformSubmissionValue.
func (*WebformSubmissionValueClient) UpdateOne ¶
func (c *WebformSubmissionValueClient) UpdateOne(_m *WebformSubmissionValue) *WebformSubmissionValueUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WebformSubmissionValueClient) UpdateOneID ¶
func (c *WebformSubmissionValueClient) UpdateOneID(id int) *WebformSubmissionValueUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WebformSubmissionValueClient) Use ¶
func (c *WebformSubmissionValueClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `webformsubmissionvalue.Hooks(f(g(h())))`.
type WebformSubmissionValueCreate ¶
type WebformSubmissionValueCreate struct {
// contains filtered or unexported fields
}
WebformSubmissionValueCreate is the builder for creating a WebformSubmissionValue entity.
func (*WebformSubmissionValueCreate) Exec ¶
func (_c *WebformSubmissionValueCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformSubmissionValueCreate) ExecX ¶
func (_c *WebformSubmissionValueCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionValueCreate) Mutation ¶
func (_c *WebformSubmissionValueCreate) Mutation() *WebformSubmissionValueMutation
Mutation returns the WebformSubmissionValueMutation object of the builder.
func (*WebformSubmissionValueCreate) Save ¶
func (_c *WebformSubmissionValueCreate) Save(ctx context.Context) (*WebformSubmissionValue, error)
Save creates the WebformSubmissionValue in the database.
func (*WebformSubmissionValueCreate) SaveX ¶
func (_c *WebformSubmissionValueCreate) SaveX(ctx context.Context) *WebformSubmissionValue
SaveX calls Save and panics if Save returns an error.
func (*WebformSubmissionValueCreate) SetDelta ¶
func (_c *WebformSubmissionValueCreate) SetDelta(v int) *WebformSubmissionValueCreate
SetDelta sets the "delta" field.
func (*WebformSubmissionValueCreate) SetElement ¶
func (_c *WebformSubmissionValueCreate) SetElement(v *WebformElement) *WebformSubmissionValueCreate
SetElement sets the "element" edge to the WebformElement entity.
func (*WebformSubmissionValueCreate) SetElementID ¶
func (_c *WebformSubmissionValueCreate) SetElementID(v int) *WebformSubmissionValueCreate
SetElementID sets the "element_id" field.
func (*WebformSubmissionValueCreate) SetID ¶
func (_c *WebformSubmissionValueCreate) SetID(v int) *WebformSubmissionValueCreate
SetID sets the "id" field.
func (*WebformSubmissionValueCreate) SetNillableDelta ¶
func (_c *WebformSubmissionValueCreate) SetNillableDelta(v *int) *WebformSubmissionValueCreate
SetNillableDelta sets the "delta" field if the given value is not nil.
func (*WebformSubmissionValueCreate) SetSubmission ¶
func (_c *WebformSubmissionValueCreate) SetSubmission(v *WebformSubmission) *WebformSubmissionValueCreate
SetSubmission sets the "submission" edge to the WebformSubmission entity.
func (*WebformSubmissionValueCreate) SetSubmissionID ¶
func (_c *WebformSubmissionValueCreate) SetSubmissionID(v int) *WebformSubmissionValueCreate
SetSubmissionID sets the "submission_id" field.
func (*WebformSubmissionValueCreate) SetValue ¶
func (_c *WebformSubmissionValueCreate) SetValue(v string) *WebformSubmissionValueCreate
SetValue sets the "value" field.
type WebformSubmissionValueCreateBulk ¶
type WebformSubmissionValueCreateBulk struct {
// contains filtered or unexported fields
}
WebformSubmissionValueCreateBulk is the builder for creating many WebformSubmissionValue entities in bulk.
func (*WebformSubmissionValueCreateBulk) Exec ¶
func (_c *WebformSubmissionValueCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformSubmissionValueCreateBulk) ExecX ¶
func (_c *WebformSubmissionValueCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionValueCreateBulk) Save ¶
func (_c *WebformSubmissionValueCreateBulk) Save(ctx context.Context) ([]*WebformSubmissionValue, error)
Save creates the WebformSubmissionValue entities in the database.
func (*WebformSubmissionValueCreateBulk) SaveX ¶
func (_c *WebformSubmissionValueCreateBulk) SaveX(ctx context.Context) []*WebformSubmissionValue
SaveX is like Save, but panics if an error occurs.
type WebformSubmissionValueDelete ¶
type WebformSubmissionValueDelete struct {
// contains filtered or unexported fields
}
WebformSubmissionValueDelete is the builder for deleting a WebformSubmissionValue entity.
func (*WebformSubmissionValueDelete) Exec ¶
func (_d *WebformSubmissionValueDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WebformSubmissionValueDelete) ExecX ¶
func (_d *WebformSubmissionValueDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionValueDelete) Where ¶
func (_d *WebformSubmissionValueDelete) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueDelete
Where appends a list predicates to the WebformSubmissionValueDelete builder.
type WebformSubmissionValueDeleteOne ¶
type WebformSubmissionValueDeleteOne struct {
// contains filtered or unexported fields
}
WebformSubmissionValueDeleteOne is the builder for deleting a single WebformSubmissionValue entity.
func (*WebformSubmissionValueDeleteOne) Exec ¶
func (_d *WebformSubmissionValueDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WebformSubmissionValueDeleteOne) ExecX ¶
func (_d *WebformSubmissionValueDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionValueDeleteOne) Where ¶
func (_d *WebformSubmissionValueDeleteOne) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueDeleteOne
Where appends a list predicates to the WebformSubmissionValueDelete builder.
type WebformSubmissionValueEdges ¶
type WebformSubmissionValueEdges struct {
// Submission holds the value of the submission edge.
Submission *WebformSubmission `json:"submission,omitempty"`
// Element holds the value of the element edge.
Element *WebformElement `json:"element,omitempty"`
// contains filtered or unexported fields
}
WebformSubmissionValueEdges holds the relations/edges for other nodes in the graph.
func (WebformSubmissionValueEdges) ElementOrErr ¶
func (e WebformSubmissionValueEdges) ElementOrErr() (*WebformElement, error)
ElementOrErr returns the Element value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (WebformSubmissionValueEdges) SubmissionOrErr ¶
func (e WebformSubmissionValueEdges) SubmissionOrErr() (*WebformSubmission, error)
SubmissionOrErr returns the Submission value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WebformSubmissionValueGroupBy ¶
type WebformSubmissionValueGroupBy struct {
// contains filtered or unexported fields
}
WebformSubmissionValueGroupBy is the group-by builder for WebformSubmissionValue entities.
func (*WebformSubmissionValueGroupBy) Aggregate ¶
func (_g *WebformSubmissionValueGroupBy) Aggregate(fns ...AggregateFunc) *WebformSubmissionValueGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WebformSubmissionValueGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WebformSubmissionValueGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebformSubmissionValueGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) Scan ¶
func (_g *WebformSubmissionValueGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformSubmissionValueGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type WebformSubmissionValueMutation ¶
type WebformSubmissionValueMutation struct {
// contains filtered or unexported fields
}
WebformSubmissionValueMutation represents an operation that mutates the WebformSubmissionValue nodes in the graph.
func (*WebformSubmissionValueMutation) AddDelta ¶
func (m *WebformSubmissionValueMutation) AddDelta(i int)
AddDelta adds i to the "delta" field.
func (*WebformSubmissionValueMutation) AddField ¶
func (m *WebformSubmissionValueMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformSubmissionValueMutation) AddedDelta ¶
func (m *WebformSubmissionValueMutation) AddedDelta() (r int, exists bool)
AddedDelta returns the value that was added to the "delta" field in this mutation.
func (*WebformSubmissionValueMutation) AddedEdges ¶
func (m *WebformSubmissionValueMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WebformSubmissionValueMutation) AddedField ¶
func (m *WebformSubmissionValueMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformSubmissionValueMutation) AddedFields ¶
func (m *WebformSubmissionValueMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WebformSubmissionValueMutation) AddedIDs ¶
func (m *WebformSubmissionValueMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WebformSubmissionValueMutation) ClearEdge ¶
func (m *WebformSubmissionValueMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*WebformSubmissionValueMutation) ClearElement ¶
func (m *WebformSubmissionValueMutation) ClearElement()
ClearElement clears the "element" edge to the WebformElement entity.
func (*WebformSubmissionValueMutation) ClearField ¶
func (m *WebformSubmissionValueMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformSubmissionValueMutation) ClearSubmission ¶
func (m *WebformSubmissionValueMutation) ClearSubmission()
ClearSubmission clears the "submission" edge to the WebformSubmission entity.
func (*WebformSubmissionValueMutation) ClearedEdges ¶
func (m *WebformSubmissionValueMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WebformSubmissionValueMutation) ClearedFields ¶
func (m *WebformSubmissionValueMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WebformSubmissionValueMutation) Client ¶
func (m WebformSubmissionValueMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*WebformSubmissionValueMutation) Delta ¶
func (m *WebformSubmissionValueMutation) Delta() (r int, exists bool)
Delta returns the value of the "delta" field in the mutation.
func (*WebformSubmissionValueMutation) EdgeCleared ¶
func (m *WebformSubmissionValueMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WebformSubmissionValueMutation) ElementCleared ¶
func (m *WebformSubmissionValueMutation) ElementCleared() bool
ElementCleared reports if the "element" edge to the WebformElement entity was cleared.
func (*WebformSubmissionValueMutation) ElementID ¶
func (m *WebformSubmissionValueMutation) ElementID() (r int, exists bool)
ElementID returns the value of the "element_id" field in the mutation.
func (*WebformSubmissionValueMutation) ElementIDs ¶
func (m *WebformSubmissionValueMutation) ElementIDs() (ids []int)
ElementIDs returns the "element" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ElementID instead. It exists only for internal usage by the builders.
func (*WebformSubmissionValueMutation) Field ¶
func (m *WebformSubmissionValueMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*WebformSubmissionValueMutation) FieldCleared ¶
func (m *WebformSubmissionValueMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WebformSubmissionValueMutation) Fields ¶
func (m *WebformSubmissionValueMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*WebformSubmissionValueMutation) ID ¶
func (m *WebformSubmissionValueMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*WebformSubmissionValueMutation) IDs ¶
func (m *WebformSubmissionValueMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*WebformSubmissionValueMutation) OldDelta ¶
func (m *WebformSubmissionValueMutation) OldDelta(ctx context.Context) (v int, err error)
OldDelta returns the old "delta" field's value of the WebformSubmissionValue entity. If the WebformSubmissionValue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionValueMutation) OldElementID ¶
func (m *WebformSubmissionValueMutation) OldElementID(ctx context.Context) (v int, err error)
OldElementID returns the old "element_id" field's value of the WebformSubmissionValue entity. If the WebformSubmissionValue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionValueMutation) OldField ¶
func (m *WebformSubmissionValueMutation) OldField(ctx context.Context, name string) (ent.Value, error)
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*WebformSubmissionValueMutation) OldSubmissionID ¶
func (m *WebformSubmissionValueMutation) OldSubmissionID(ctx context.Context) (v int, err error)
OldSubmissionID returns the old "submission_id" field's value of the WebformSubmissionValue entity. If the WebformSubmissionValue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionValueMutation) OldValue ¶
func (m *WebformSubmissionValueMutation) OldValue(ctx context.Context) (v string, err error)
OldValue returns the old "value" field's value of the WebformSubmissionValue entity. If the WebformSubmissionValue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WebformSubmissionValueMutation) Op ¶
func (m *WebformSubmissionValueMutation) Op() Op
Op returns the operation name.
func (*WebformSubmissionValueMutation) RemovedEdges ¶
func (m *WebformSubmissionValueMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WebformSubmissionValueMutation) RemovedIDs ¶
func (m *WebformSubmissionValueMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*WebformSubmissionValueMutation) ResetDelta ¶
func (m *WebformSubmissionValueMutation) ResetDelta()
ResetDelta resets all changes to the "delta" field.
func (*WebformSubmissionValueMutation) ResetEdge ¶
func (m *WebformSubmissionValueMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*WebformSubmissionValueMutation) ResetElement ¶
func (m *WebformSubmissionValueMutation) ResetElement()
ResetElement resets all changes to the "element" edge.
func (*WebformSubmissionValueMutation) ResetElementID ¶
func (m *WebformSubmissionValueMutation) ResetElementID()
ResetElementID resets all changes to the "element_id" field.
func (*WebformSubmissionValueMutation) ResetField ¶
func (m *WebformSubmissionValueMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*WebformSubmissionValueMutation) ResetSubmission ¶
func (m *WebformSubmissionValueMutation) ResetSubmission()
ResetSubmission resets all changes to the "submission" edge.
func (*WebformSubmissionValueMutation) ResetSubmissionID ¶
func (m *WebformSubmissionValueMutation) ResetSubmissionID()
ResetSubmissionID resets all changes to the "submission_id" field.
func (*WebformSubmissionValueMutation) ResetValue ¶
func (m *WebformSubmissionValueMutation) ResetValue()
ResetValue resets all changes to the "value" field.
func (*WebformSubmissionValueMutation) SetDelta ¶
func (m *WebformSubmissionValueMutation) SetDelta(i int)
SetDelta sets the "delta" field.
func (*WebformSubmissionValueMutation) SetElementID ¶
func (m *WebformSubmissionValueMutation) SetElementID(i int)
SetElementID sets the "element_id" field.
func (*WebformSubmissionValueMutation) SetField ¶
func (m *WebformSubmissionValueMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*WebformSubmissionValueMutation) SetID ¶
func (m *WebformSubmissionValueMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of WebformSubmissionValue entities.
func (*WebformSubmissionValueMutation) SetOp ¶
func (m *WebformSubmissionValueMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WebformSubmissionValueMutation) SetSubmissionID ¶
func (m *WebformSubmissionValueMutation) SetSubmissionID(i int)
SetSubmissionID sets the "submission_id" field.
func (*WebformSubmissionValueMutation) SetValue ¶
func (m *WebformSubmissionValueMutation) SetValue(s string)
SetValue sets the "value" field.
func (*WebformSubmissionValueMutation) SubmissionCleared ¶
func (m *WebformSubmissionValueMutation) SubmissionCleared() bool
SubmissionCleared reports if the "submission" edge to the WebformSubmission entity was cleared.
func (*WebformSubmissionValueMutation) SubmissionID ¶
func (m *WebformSubmissionValueMutation) SubmissionID() (r int, exists bool)
SubmissionID returns the value of the "submission_id" field in the mutation.
func (*WebformSubmissionValueMutation) SubmissionIDs ¶
func (m *WebformSubmissionValueMutation) SubmissionIDs() (ids []int)
SubmissionIDs returns the "submission" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SubmissionID instead. It exists only for internal usage by the builders.
func (WebformSubmissionValueMutation) Tx ¶
func (m WebformSubmissionValueMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WebformSubmissionValueMutation) Type ¶
func (m *WebformSubmissionValueMutation) Type() string
Type returns the node type of this mutation (WebformSubmissionValue).
func (*WebformSubmissionValueMutation) Value ¶
func (m *WebformSubmissionValueMutation) Value() (r string, exists bool)
Value returns the value of the "value" field in the mutation.
func (*WebformSubmissionValueMutation) Where ¶
func (m *WebformSubmissionValueMutation) Where(ps ...predicate.WebformSubmissionValue)
Where appends a list predicates to the WebformSubmissionValueMutation builder.
func (*WebformSubmissionValueMutation) WhereP ¶
func (m *WebformSubmissionValueMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WebformSubmissionValueMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type WebformSubmissionValueQuery ¶
type WebformSubmissionValueQuery struct {
// contains filtered or unexported fields
}
WebformSubmissionValueQuery is the builder for querying WebformSubmissionValue entities.
func (*WebformSubmissionValueQuery) Aggregate ¶
func (_q *WebformSubmissionValueQuery) Aggregate(fns ...AggregateFunc) *WebformSubmissionValueSelect
Aggregate returns a WebformSubmissionValueSelect configured with the given aggregations.
func (*WebformSubmissionValueQuery) All ¶
func (_q *WebformSubmissionValueQuery) All(ctx context.Context) ([]*WebformSubmissionValue, error)
All executes the query and returns a list of WebformSubmissionValues.
func (*WebformSubmissionValueQuery) AllX ¶
func (_q *WebformSubmissionValueQuery) AllX(ctx context.Context) []*WebformSubmissionValue
AllX is like All, but panics if an error occurs.
func (*WebformSubmissionValueQuery) Clone ¶
func (_q *WebformSubmissionValueQuery) Clone() *WebformSubmissionValueQuery
Clone returns a duplicate of the WebformSubmissionValueQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WebformSubmissionValueQuery) Count ¶
func (_q *WebformSubmissionValueQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WebformSubmissionValueQuery) CountX ¶
func (_q *WebformSubmissionValueQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WebformSubmissionValueQuery) Exist ¶
func (_q *WebformSubmissionValueQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WebformSubmissionValueQuery) ExistX ¶
func (_q *WebformSubmissionValueQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WebformSubmissionValueQuery) First ¶
func (_q *WebformSubmissionValueQuery) First(ctx context.Context) (*WebformSubmissionValue, error)
First returns the first WebformSubmissionValue entity from the query. Returns a *NotFoundError when no WebformSubmissionValue was found.
func (*WebformSubmissionValueQuery) FirstID ¶
func (_q *WebformSubmissionValueQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first WebformSubmissionValue ID from the query. Returns a *NotFoundError when no WebformSubmissionValue ID was found.
func (*WebformSubmissionValueQuery) FirstIDX ¶
func (_q *WebformSubmissionValueQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WebformSubmissionValueQuery) FirstX ¶
func (_q *WebformSubmissionValueQuery) FirstX(ctx context.Context) *WebformSubmissionValue
FirstX is like First, but panics if an error occurs.
func (*WebformSubmissionValueQuery) GroupBy ¶
func (_q *WebformSubmissionValueQuery) GroupBy(field string, fields ...string) *WebformSubmissionValueGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct {
SubmissionID int `json:"submission_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.WebformSubmissionValue.Query().
GroupBy(webformsubmissionvalue.FieldSubmissionID).
Aggregate(generated.Count()).
Scan(ctx, &v)
func (*WebformSubmissionValueQuery) IDs ¶
func (_q *WebformSubmissionValueQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of WebformSubmissionValue IDs.
func (*WebformSubmissionValueQuery) IDsX ¶
func (_q *WebformSubmissionValueQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WebformSubmissionValueQuery) Limit ¶
func (_q *WebformSubmissionValueQuery) Limit(limit int) *WebformSubmissionValueQuery
Limit the number of records to be returned by this query.
func (*WebformSubmissionValueQuery) Offset ¶
func (_q *WebformSubmissionValueQuery) Offset(offset int) *WebformSubmissionValueQuery
Offset to start from.
func (*WebformSubmissionValueQuery) Only ¶
func (_q *WebformSubmissionValueQuery) Only(ctx context.Context) (*WebformSubmissionValue, error)
Only returns a single WebformSubmissionValue entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WebformSubmissionValue entity is found. Returns a *NotFoundError when no WebformSubmissionValue entities are found.
func (*WebformSubmissionValueQuery) OnlyID ¶
func (_q *WebformSubmissionValueQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only WebformSubmissionValue ID in the query. Returns a *NotSingularError when more than one WebformSubmissionValue ID is found. Returns a *NotFoundError when no entities are found.
func (*WebformSubmissionValueQuery) OnlyIDX ¶
func (_q *WebformSubmissionValueQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WebformSubmissionValueQuery) OnlyX ¶
func (_q *WebformSubmissionValueQuery) OnlyX(ctx context.Context) *WebformSubmissionValue
OnlyX is like Only, but panics if an error occurs.
func (*WebformSubmissionValueQuery) Order ¶
func (_q *WebformSubmissionValueQuery) Order(o ...webformsubmissionvalue.OrderOption) *WebformSubmissionValueQuery
Order specifies how the records should be ordered.
func (*WebformSubmissionValueQuery) QueryElement ¶
func (_q *WebformSubmissionValueQuery) QueryElement() *WebformElementQuery
QueryElement chains the current query on the "element" edge.
func (*WebformSubmissionValueQuery) QuerySubmission ¶
func (_q *WebformSubmissionValueQuery) QuerySubmission() *WebformSubmissionQuery
QuerySubmission chains the current query on the "submission" edge.
func (*WebformSubmissionValueQuery) Select ¶
func (_q *WebformSubmissionValueQuery) Select(fields ...string) *WebformSubmissionValueSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct {
SubmissionID int `json:"submission_id,omitempty"`
}
client.WebformSubmissionValue.Query().
Select(webformsubmissionvalue.FieldSubmissionID).
Scan(ctx, &v)
func (*WebformSubmissionValueQuery) Unique ¶
func (_q *WebformSubmissionValueQuery) Unique(unique bool) *WebformSubmissionValueQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*WebformSubmissionValueQuery) Where ¶
func (_q *WebformSubmissionValueQuery) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueQuery
Where adds a new predicate for the WebformSubmissionValueQuery builder.
func (*WebformSubmissionValueQuery) WithElement ¶
func (_q *WebformSubmissionValueQuery) WithElement(opts ...func(*WebformElementQuery)) *WebformSubmissionValueQuery
WithElement tells the query-builder to eager-load the nodes that are connected to the "element" edge. The optional arguments are used to configure the query builder of the edge.
func (*WebformSubmissionValueQuery) WithSubmission ¶
func (_q *WebformSubmissionValueQuery) WithSubmission(opts ...func(*WebformSubmissionQuery)) *WebformSubmissionValueQuery
WithSubmission tells the query-builder to eager-load the nodes that are connected to the "submission" edge. The optional arguments are used to configure the query builder of the edge.
type WebformSubmissionValueSelect ¶
type WebformSubmissionValueSelect struct {
*WebformSubmissionValueQuery
// contains filtered or unexported fields
}
WebformSubmissionValueSelect is the builder for selecting fields of WebformSubmissionValue entities.
func (*WebformSubmissionValueSelect) Aggregate ¶
func (_s *WebformSubmissionValueSelect) Aggregate(fns ...AggregateFunc) *WebformSubmissionValueSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WebformSubmissionValueSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WebformSubmissionValueSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebformSubmissionValueSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) Scan ¶
func (_s *WebformSubmissionValueSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WebformSubmissionValueSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*WebformSubmissionValueSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type WebformSubmissionValueUpdate ¶
type WebformSubmissionValueUpdate struct {
// contains filtered or unexported fields
}
WebformSubmissionValueUpdate is the builder for updating WebformSubmissionValue entities.
func (*WebformSubmissionValueUpdate) AddDelta ¶
func (_u *WebformSubmissionValueUpdate) AddDelta(v int) *WebformSubmissionValueUpdate
AddDelta adds value to the "delta" field.
func (*WebformSubmissionValueUpdate) ClearElement ¶
func (_u *WebformSubmissionValueUpdate) ClearElement() *WebformSubmissionValueUpdate
ClearElement clears the "element" edge to the WebformElement entity.
func (*WebformSubmissionValueUpdate) ClearSubmission ¶
func (_u *WebformSubmissionValueUpdate) ClearSubmission() *WebformSubmissionValueUpdate
ClearSubmission clears the "submission" edge to the WebformSubmission entity.
func (*WebformSubmissionValueUpdate) Exec ¶
func (_u *WebformSubmissionValueUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformSubmissionValueUpdate) ExecX ¶
func (_u *WebformSubmissionValueUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionValueUpdate) Mutation ¶
func (_u *WebformSubmissionValueUpdate) Mutation() *WebformSubmissionValueMutation
Mutation returns the WebformSubmissionValueMutation object of the builder.
func (*WebformSubmissionValueUpdate) Save ¶
func (_u *WebformSubmissionValueUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WebformSubmissionValueUpdate) SaveX ¶
func (_u *WebformSubmissionValueUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WebformSubmissionValueUpdate) SetDelta ¶
func (_u *WebformSubmissionValueUpdate) SetDelta(v int) *WebformSubmissionValueUpdate
SetDelta sets the "delta" field.
func (*WebformSubmissionValueUpdate) SetElement ¶
func (_u *WebformSubmissionValueUpdate) SetElement(v *WebformElement) *WebformSubmissionValueUpdate
SetElement sets the "element" edge to the WebformElement entity.
func (*WebformSubmissionValueUpdate) SetElementID ¶
func (_u *WebformSubmissionValueUpdate) SetElementID(v int) *WebformSubmissionValueUpdate
SetElementID sets the "element_id" field.
func (*WebformSubmissionValueUpdate) SetNillableDelta ¶
func (_u *WebformSubmissionValueUpdate) SetNillableDelta(v *int) *WebformSubmissionValueUpdate
SetNillableDelta sets the "delta" field if the given value is not nil.
func (*WebformSubmissionValueUpdate) SetNillableElementID ¶
func (_u *WebformSubmissionValueUpdate) SetNillableElementID(v *int) *WebformSubmissionValueUpdate
SetNillableElementID sets the "element_id" field if the given value is not nil.
func (*WebformSubmissionValueUpdate) SetNillableSubmissionID ¶
func (_u *WebformSubmissionValueUpdate) SetNillableSubmissionID(v *int) *WebformSubmissionValueUpdate
SetNillableSubmissionID sets the "submission_id" field if the given value is not nil.
func (*WebformSubmissionValueUpdate) SetNillableValue ¶
func (_u *WebformSubmissionValueUpdate) SetNillableValue(v *string) *WebformSubmissionValueUpdate
SetNillableValue sets the "value" field if the given value is not nil.
func (*WebformSubmissionValueUpdate) SetSubmission ¶
func (_u *WebformSubmissionValueUpdate) SetSubmission(v *WebformSubmission) *WebformSubmissionValueUpdate
SetSubmission sets the "submission" edge to the WebformSubmission entity.
func (*WebformSubmissionValueUpdate) SetSubmissionID ¶
func (_u *WebformSubmissionValueUpdate) SetSubmissionID(v int) *WebformSubmissionValueUpdate
SetSubmissionID sets the "submission_id" field.
func (*WebformSubmissionValueUpdate) SetValue ¶
func (_u *WebformSubmissionValueUpdate) SetValue(v string) *WebformSubmissionValueUpdate
SetValue sets the "value" field.
func (*WebformSubmissionValueUpdate) Where ¶
func (_u *WebformSubmissionValueUpdate) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueUpdate
Where appends a list predicates to the WebformSubmissionValueUpdate builder.
type WebformSubmissionValueUpdateOne ¶
type WebformSubmissionValueUpdateOne struct {
// contains filtered or unexported fields
}
WebformSubmissionValueUpdateOne is the builder for updating a single WebformSubmissionValue entity.
func (*WebformSubmissionValueUpdateOne) AddDelta ¶
func (_u *WebformSubmissionValueUpdateOne) AddDelta(v int) *WebformSubmissionValueUpdateOne
AddDelta adds value to the "delta" field.
func (*WebformSubmissionValueUpdateOne) ClearElement ¶
func (_u *WebformSubmissionValueUpdateOne) ClearElement() *WebformSubmissionValueUpdateOne
ClearElement clears the "element" edge to the WebformElement entity.
func (*WebformSubmissionValueUpdateOne) ClearSubmission ¶
func (_u *WebformSubmissionValueUpdateOne) ClearSubmission() *WebformSubmissionValueUpdateOne
ClearSubmission clears the "submission" edge to the WebformSubmission entity.
func (*WebformSubmissionValueUpdateOne) Exec ¶
func (_u *WebformSubmissionValueUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WebformSubmissionValueUpdateOne) ExecX ¶
func (_u *WebformSubmissionValueUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformSubmissionValueUpdateOne) Mutation ¶
func (_u *WebformSubmissionValueUpdateOne) Mutation() *WebformSubmissionValueMutation
Mutation returns the WebformSubmissionValueMutation object of the builder.
func (*WebformSubmissionValueUpdateOne) Save ¶
func (_u *WebformSubmissionValueUpdateOne) Save(ctx context.Context) (*WebformSubmissionValue, error)
Save executes the query and returns the updated WebformSubmissionValue entity.
func (*WebformSubmissionValueUpdateOne) SaveX ¶
func (_u *WebformSubmissionValueUpdateOne) SaveX(ctx context.Context) *WebformSubmissionValue
SaveX is like Save, but panics if an error occurs.
func (*WebformSubmissionValueUpdateOne) Select ¶
func (_u *WebformSubmissionValueUpdateOne) Select(field string, fields ...string) *WebformSubmissionValueUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WebformSubmissionValueUpdateOne) SetDelta ¶
func (_u *WebformSubmissionValueUpdateOne) SetDelta(v int) *WebformSubmissionValueUpdateOne
SetDelta sets the "delta" field.
func (*WebformSubmissionValueUpdateOne) SetElement ¶
func (_u *WebformSubmissionValueUpdateOne) SetElement(v *WebformElement) *WebformSubmissionValueUpdateOne
SetElement sets the "element" edge to the WebformElement entity.
func (*WebformSubmissionValueUpdateOne) SetElementID ¶
func (_u *WebformSubmissionValueUpdateOne) SetElementID(v int) *WebformSubmissionValueUpdateOne
SetElementID sets the "element_id" field.
func (*WebformSubmissionValueUpdateOne) SetNillableDelta ¶
func (_u *WebformSubmissionValueUpdateOne) SetNillableDelta(v *int) *WebformSubmissionValueUpdateOne
SetNillableDelta sets the "delta" field if the given value is not nil.
func (*WebformSubmissionValueUpdateOne) SetNillableElementID ¶
func (_u *WebformSubmissionValueUpdateOne) SetNillableElementID(v *int) *WebformSubmissionValueUpdateOne
SetNillableElementID sets the "element_id" field if the given value is not nil.
func (*WebformSubmissionValueUpdateOne) SetNillableSubmissionID ¶
func (_u *WebformSubmissionValueUpdateOne) SetNillableSubmissionID(v *int) *WebformSubmissionValueUpdateOne
SetNillableSubmissionID sets the "submission_id" field if the given value is not nil.
func (*WebformSubmissionValueUpdateOne) SetNillableValue ¶
func (_u *WebformSubmissionValueUpdateOne) SetNillableValue(v *string) *WebformSubmissionValueUpdateOne
SetNillableValue sets the "value" field if the given value is not nil.
func (*WebformSubmissionValueUpdateOne) SetSubmission ¶
func (_u *WebformSubmissionValueUpdateOne) SetSubmission(v *WebformSubmission) *WebformSubmissionValueUpdateOne
SetSubmission sets the "submission" edge to the WebformSubmission entity.
func (*WebformSubmissionValueUpdateOne) SetSubmissionID ¶
func (_u *WebformSubmissionValueUpdateOne) SetSubmissionID(v int) *WebformSubmissionValueUpdateOne
SetSubmissionID sets the "submission_id" field.
func (*WebformSubmissionValueUpdateOne) SetValue ¶
func (_u *WebformSubmissionValueUpdateOne) SetValue(v string) *WebformSubmissionValueUpdateOne
SetValue sets the "value" field.
func (*WebformSubmissionValueUpdateOne) Where ¶
func (_u *WebformSubmissionValueUpdateOne) Where(ps ...predicate.WebformSubmissionValue) *WebformSubmissionValueUpdateOne
Where appends a list predicates to the WebformSubmissionValueUpdate builder.
type WebformSubmissionValues ¶
type WebformSubmissionValues []*WebformSubmissionValue
WebformSubmissionValues is a parsable slice of WebformSubmissionValue.
type WebformSubmissions ¶
type WebformSubmissions []*WebformSubmission
WebformSubmissions is a parsable slice of WebformSubmission.
type WebformUpdate ¶
type WebformUpdate struct {
// contains filtered or unexported fields
}
WebformUpdate is the builder for updating Webform entities.
func (*WebformUpdate) AddElementIDs ¶
func (_u *WebformUpdate) AddElementIDs(ids ...int) *WebformUpdate
AddElementIDs adds the "elements" edge to the WebformElement entity by IDs.
func (*WebformUpdate) AddElements ¶
func (_u *WebformUpdate) AddElements(v ...*WebformElement) *WebformUpdate
AddElements adds the "elements" edges to the WebformElement entity.
func (*WebformUpdate) AddMaxSubmissions ¶
func (_u *WebformUpdate) AddMaxSubmissions(v int) *WebformUpdate
AddMaxSubmissions adds value to the "max_submissions" field.
func (*WebformUpdate) AddSubmissionIDs ¶
func (_u *WebformUpdate) AddSubmissionIDs(ids ...int) *WebformUpdate
AddSubmissionIDs adds the "submissions" edge to the WebformSubmission entity by IDs.
func (*WebformUpdate) AddSubmissions ¶
func (_u *WebformUpdate) AddSubmissions(v ...*WebformSubmission) *WebformUpdate
AddSubmissions adds the "submissions" edges to the WebformSubmission entity.
func (*WebformUpdate) ClearClosesAt ¶
func (_u *WebformUpdate) ClearClosesAt() *WebformUpdate
ClearClosesAt clears the value of the "closes_at" field.
func (*WebformUpdate) ClearConfirmation ¶
func (_u *WebformUpdate) ClearConfirmation() *WebformUpdate
ClearConfirmation clears the value of the "confirmation" field.
func (*WebformUpdate) ClearDescription ¶
func (_u *WebformUpdate) ClearDescription() *WebformUpdate
ClearDescription clears the value of the "description" field.
func (*WebformUpdate) ClearElements ¶
func (_u *WebformUpdate) ClearElements() *WebformUpdate
ClearElements clears all "elements" edges to the WebformElement entity.
func (*WebformUpdate) ClearNode ¶
func (_u *WebformUpdate) ClearNode() *WebformUpdate
ClearNode clears the "node" edge to the Node entity.
func (*WebformUpdate) ClearSubmissions ¶
func (_u *WebformUpdate) ClearSubmissions() *WebformUpdate
ClearSubmissions clears all "submissions" edges to the WebformSubmission entity.
func (*WebformUpdate) Exec ¶
func (_u *WebformUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WebformUpdate) ExecX ¶
func (_u *WebformUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformUpdate) Mutation ¶
func (_u *WebformUpdate) Mutation() *WebformMutation
Mutation returns the WebformMutation object of the builder.
func (*WebformUpdate) RemoveElementIDs ¶
func (_u *WebformUpdate) RemoveElementIDs(ids ...int) *WebformUpdate
RemoveElementIDs removes the "elements" edge to WebformElement entities by IDs.
func (*WebformUpdate) RemoveElements ¶
func (_u *WebformUpdate) RemoveElements(v ...*WebformElement) *WebformUpdate
RemoveElements removes "elements" edges to WebformElement entities.
func (*WebformUpdate) RemoveSubmissionIDs ¶
func (_u *WebformUpdate) RemoveSubmissionIDs(ids ...int) *WebformUpdate
RemoveSubmissionIDs removes the "submissions" edge to WebformSubmission entities by IDs.
func (*WebformUpdate) RemoveSubmissions ¶
func (_u *WebformUpdate) RemoveSubmissions(v ...*WebformSubmission) *WebformUpdate
RemoveSubmissions removes "submissions" edges to WebformSubmission entities.
func (*WebformUpdate) Save ¶
func (_u *WebformUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WebformUpdate) SaveX ¶
func (_u *WebformUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WebformUpdate) SetClosed ¶
func (_u *WebformUpdate) SetClosed(v bool) *WebformUpdate
SetClosed sets the "closed" field.
func (*WebformUpdate) SetClosesAt ¶
func (_u *WebformUpdate) SetClosesAt(v time.Time) *WebformUpdate
SetClosesAt sets the "closes_at" field.
func (*WebformUpdate) SetConfirmation ¶
func (_u *WebformUpdate) SetConfirmation(v string) *WebformUpdate
SetConfirmation sets the "confirmation" field.
func (*WebformUpdate) SetConfirmationURL ¶
func (_u *WebformUpdate) SetConfirmationURL(v string) *WebformUpdate
SetConfirmationURL sets the "confirmation_url" field.
func (*WebformUpdate) SetDescription ¶
func (_u *WebformUpdate) SetDescription(v string) *WebformUpdate
SetDescription sets the "description" field.
func (*WebformUpdate) SetLimitPerUser ¶
func (_u *WebformUpdate) SetLimitPerUser(v bool) *WebformUpdate
SetLimitPerUser sets the "limit_per_user" field.
func (*WebformUpdate) SetMaxSubmissions ¶
func (_u *WebformUpdate) SetMaxSubmissions(v int) *WebformUpdate
SetMaxSubmissions sets the "max_submissions" field.
func (*WebformUpdate) SetNid ¶
func (_u *WebformUpdate) SetNid(v int) *WebformUpdate
SetNid sets the "nid" field.
func (*WebformUpdate) SetNillableClosed ¶
func (_u *WebformUpdate) SetNillableClosed(v *bool) *WebformUpdate
SetNillableClosed sets the "closed" field if the given value is not nil.
func (*WebformUpdate) SetNillableClosesAt ¶
func (_u *WebformUpdate) SetNillableClosesAt(v *time.Time) *WebformUpdate
SetNillableClosesAt sets the "closes_at" field if the given value is not nil.
func (*WebformUpdate) SetNillableConfirmation ¶
func (_u *WebformUpdate) SetNillableConfirmation(v *string) *WebformUpdate
SetNillableConfirmation sets the "confirmation" field if the given value is not nil.
func (*WebformUpdate) SetNillableConfirmationURL ¶
func (_u *WebformUpdate) SetNillableConfirmationURL(v *string) *WebformUpdate
SetNillableConfirmationURL sets the "confirmation_url" field if the given value is not nil.
func (*WebformUpdate) SetNillableDescription ¶
func (_u *WebformUpdate) SetNillableDescription(v *string) *WebformUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WebformUpdate) SetNillableLimitPerUser ¶
func (_u *WebformUpdate) SetNillableLimitPerUser(v *bool) *WebformUpdate
SetNillableLimitPerUser sets the "limit_per_user" field if the given value is not nil.
func (*WebformUpdate) SetNillableMaxSubmissions ¶
func (_u *WebformUpdate) SetNillableMaxSubmissions(v *int) *WebformUpdate
SetNillableMaxSubmissions sets the "max_submissions" field if the given value is not nil.
func (*WebformUpdate) SetNillableNid ¶
func (_u *WebformUpdate) SetNillableNid(v *int) *WebformUpdate
SetNillableNid sets the "nid" field if the given value is not nil.
func (*WebformUpdate) SetNillableNotifyEmail ¶
func (_u *WebformUpdate) SetNillableNotifyEmail(v *string) *WebformUpdate
SetNillableNotifyEmail sets the "notify_email" field if the given value is not nil.
func (*WebformUpdate) SetNillableSubmitLabel ¶
func (_u *WebformUpdate) SetNillableSubmitLabel(v *string) *WebformUpdate
SetNillableSubmitLabel sets the "submit_label" field if the given value is not nil.
func (*WebformUpdate) SetNode ¶
func (_u *WebformUpdate) SetNode(v *Node) *WebformUpdate
SetNode sets the "node" edge to the Node entity.
func (*WebformUpdate) SetNodeID ¶
func (_u *WebformUpdate) SetNodeID(id int) *WebformUpdate
SetNodeID sets the "node" edge to the Node entity by ID.
func (*WebformUpdate) SetNotifyEmail ¶
func (_u *WebformUpdate) SetNotifyEmail(v string) *WebformUpdate
SetNotifyEmail sets the "notify_email" field.
func (*WebformUpdate) SetSubmitLabel ¶
func (_u *WebformUpdate) SetSubmitLabel(v string) *WebformUpdate
SetSubmitLabel sets the "submit_label" field.
func (*WebformUpdate) Where ¶
func (_u *WebformUpdate) Where(ps ...predicate.Webform) *WebformUpdate
Where appends a list predicates to the WebformUpdate builder.
type WebformUpdateOne ¶
type WebformUpdateOne struct {
// contains filtered or unexported fields
}
WebformUpdateOne is the builder for updating a single Webform entity.
func (*WebformUpdateOne) AddElementIDs ¶
func (_u *WebformUpdateOne) AddElementIDs(ids ...int) *WebformUpdateOne
AddElementIDs adds the "elements" edge to the WebformElement entity by IDs.
func (*WebformUpdateOne) AddElements ¶
func (_u *WebformUpdateOne) AddElements(v ...*WebformElement) *WebformUpdateOne
AddElements adds the "elements" edges to the WebformElement entity.
func (*WebformUpdateOne) AddMaxSubmissions ¶
func (_u *WebformUpdateOne) AddMaxSubmissions(v int) *WebformUpdateOne
AddMaxSubmissions adds value to the "max_submissions" field.
func (*WebformUpdateOne) AddSubmissionIDs ¶
func (_u *WebformUpdateOne) AddSubmissionIDs(ids ...int) *WebformUpdateOne
AddSubmissionIDs adds the "submissions" edge to the WebformSubmission entity by IDs.
func (*WebformUpdateOne) AddSubmissions ¶
func (_u *WebformUpdateOne) AddSubmissions(v ...*WebformSubmission) *WebformUpdateOne
AddSubmissions adds the "submissions" edges to the WebformSubmission entity.
func (*WebformUpdateOne) ClearClosesAt ¶
func (_u *WebformUpdateOne) ClearClosesAt() *WebformUpdateOne
ClearClosesAt clears the value of the "closes_at" field.
func (*WebformUpdateOne) ClearConfirmation ¶
func (_u *WebformUpdateOne) ClearConfirmation() *WebformUpdateOne
ClearConfirmation clears the value of the "confirmation" field.
func (*WebformUpdateOne) ClearDescription ¶
func (_u *WebformUpdateOne) ClearDescription() *WebformUpdateOne
ClearDescription clears the value of the "description" field.
func (*WebformUpdateOne) ClearElements ¶
func (_u *WebformUpdateOne) ClearElements() *WebformUpdateOne
ClearElements clears all "elements" edges to the WebformElement entity.
func (*WebformUpdateOne) ClearNode ¶
func (_u *WebformUpdateOne) ClearNode() *WebformUpdateOne
ClearNode clears the "node" edge to the Node entity.
func (*WebformUpdateOne) ClearSubmissions ¶
func (_u *WebformUpdateOne) ClearSubmissions() *WebformUpdateOne
ClearSubmissions clears all "submissions" edges to the WebformSubmission entity.
func (*WebformUpdateOne) Exec ¶
func (_u *WebformUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WebformUpdateOne) ExecX ¶
func (_u *WebformUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebformUpdateOne) Mutation ¶
func (_u *WebformUpdateOne) Mutation() *WebformMutation
Mutation returns the WebformMutation object of the builder.
func (*WebformUpdateOne) RemoveElementIDs ¶
func (_u *WebformUpdateOne) RemoveElementIDs(ids ...int) *WebformUpdateOne
RemoveElementIDs removes the "elements" edge to WebformElement entities by IDs.
func (*WebformUpdateOne) RemoveElements ¶
func (_u *WebformUpdateOne) RemoveElements(v ...*WebformElement) *WebformUpdateOne
RemoveElements removes "elements" edges to WebformElement entities.
func (*WebformUpdateOne) RemoveSubmissionIDs ¶
func (_u *WebformUpdateOne) RemoveSubmissionIDs(ids ...int) *WebformUpdateOne
RemoveSubmissionIDs removes the "submissions" edge to WebformSubmission entities by IDs.
func (*WebformUpdateOne) RemoveSubmissions ¶
func (_u *WebformUpdateOne) RemoveSubmissions(v ...*WebformSubmission) *WebformUpdateOne
RemoveSubmissions removes "submissions" edges to WebformSubmission entities.
func (*WebformUpdateOne) Save ¶
func (_u *WebformUpdateOne) Save(ctx context.Context) (*Webform, error)
Save executes the query and returns the updated Webform entity.
func (*WebformUpdateOne) SaveX ¶
func (_u *WebformUpdateOne) SaveX(ctx context.Context) *Webform
SaveX is like Save, but panics if an error occurs.
func (*WebformUpdateOne) Select ¶
func (_u *WebformUpdateOne) Select(field string, fields ...string) *WebformUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WebformUpdateOne) SetClosed ¶
func (_u *WebformUpdateOne) SetClosed(v bool) *WebformUpdateOne
SetClosed sets the "closed" field.
func (*WebformUpdateOne) SetClosesAt ¶
func (_u *WebformUpdateOne) SetClosesAt(v time.Time) *WebformUpdateOne
SetClosesAt sets the "closes_at" field.
func (*WebformUpdateOne) SetConfirmation ¶
func (_u *WebformUpdateOne) SetConfirmation(v string) *WebformUpdateOne
SetConfirmation sets the "confirmation" field.
func (*WebformUpdateOne) SetConfirmationURL ¶
func (_u *WebformUpdateOne) SetConfirmationURL(v string) *WebformUpdateOne
SetConfirmationURL sets the "confirmation_url" field.
func (*WebformUpdateOne) SetDescription ¶
func (_u *WebformUpdateOne) SetDescription(v string) *WebformUpdateOne
SetDescription sets the "description" field.
func (*WebformUpdateOne) SetLimitPerUser ¶
func (_u *WebformUpdateOne) SetLimitPerUser(v bool) *WebformUpdateOne
SetLimitPerUser sets the "limit_per_user" field.
func (*WebformUpdateOne) SetMaxSubmissions ¶
func (_u *WebformUpdateOne) SetMaxSubmissions(v int) *WebformUpdateOne
SetMaxSubmissions sets the "max_submissions" field.
func (*WebformUpdateOne) SetNid ¶
func (_u *WebformUpdateOne) SetNid(v int) *WebformUpdateOne
SetNid sets the "nid" field.
func (*WebformUpdateOne) SetNillableClosed ¶
func (_u *WebformUpdateOne) SetNillableClosed(v *bool) *WebformUpdateOne
SetNillableClosed sets the "closed" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableClosesAt ¶
func (_u *WebformUpdateOne) SetNillableClosesAt(v *time.Time) *WebformUpdateOne
SetNillableClosesAt sets the "closes_at" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableConfirmation ¶
func (_u *WebformUpdateOne) SetNillableConfirmation(v *string) *WebformUpdateOne
SetNillableConfirmation sets the "confirmation" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableConfirmationURL ¶
func (_u *WebformUpdateOne) SetNillableConfirmationURL(v *string) *WebformUpdateOne
SetNillableConfirmationURL sets the "confirmation_url" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableDescription ¶
func (_u *WebformUpdateOne) SetNillableDescription(v *string) *WebformUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableLimitPerUser ¶
func (_u *WebformUpdateOne) SetNillableLimitPerUser(v *bool) *WebformUpdateOne
SetNillableLimitPerUser sets the "limit_per_user" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableMaxSubmissions ¶
func (_u *WebformUpdateOne) SetNillableMaxSubmissions(v *int) *WebformUpdateOne
SetNillableMaxSubmissions sets the "max_submissions" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableNid ¶
func (_u *WebformUpdateOne) SetNillableNid(v *int) *WebformUpdateOne
SetNillableNid sets the "nid" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableNotifyEmail ¶
func (_u *WebformUpdateOne) SetNillableNotifyEmail(v *string) *WebformUpdateOne
SetNillableNotifyEmail sets the "notify_email" field if the given value is not nil.
func (*WebformUpdateOne) SetNillableSubmitLabel ¶
func (_u *WebformUpdateOne) SetNillableSubmitLabel(v *string) *WebformUpdateOne
SetNillableSubmitLabel sets the "submit_label" field if the given value is not nil.
func (*WebformUpdateOne) SetNode ¶
func (_u *WebformUpdateOne) SetNode(v *Node) *WebformUpdateOne
SetNode sets the "node" edge to the Node entity.
func (*WebformUpdateOne) SetNodeID ¶
func (_u *WebformUpdateOne) SetNodeID(id int) *WebformUpdateOne
SetNodeID sets the "node" edge to the Node entity by ID.
func (*WebformUpdateOne) SetNotifyEmail ¶
func (_u *WebformUpdateOne) SetNotifyEmail(v string) *WebformUpdateOne
SetNotifyEmail sets the "notify_email" field.
func (*WebformUpdateOne) SetSubmitLabel ¶
func (_u *WebformUpdateOne) SetSubmitLabel(v string) *WebformUpdateOne
SetSubmitLabel sets the "submit_label" field.
func (*WebformUpdateOne) Where ¶
func (_u *WebformUpdateOne) Where(ps ...predicate.Webform) *WebformUpdateOne
Where appends a list predicates to the WebformUpdate builder.
Source Files
¶
- client.go
- ent.go
- mutation.go
- node.go
- node_create.go
- node_delete.go
- node_query.go
- node_update.go
- not_found_entity.go
- runtime.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go
- webform.go
- webform_create.go
- webform_delete.go
- webform_query.go
- webform_update.go
- webformelement.go
- webformelement_create.go
- webformelement_delete.go
- webformelement_query.go
- webformelement_update.go
- webformsubmission.go
- webformsubmission_create.go
- webformsubmission_delete.go
- webformsubmission_query.go
- webformsubmission_update.go
- webformsubmissionvalue.go
- webformsubmissionvalue_create.go
- webformsubmissionvalue_delete.go
- webformsubmissionvalue_query.go
- webformsubmissionvalue_update.go