Documentation ¶
Index ¶
- Constants
- 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 Action
- type ActionClient
- func (c *ActionClient) Create() *ActionCreate
- func (c *ActionClient) CreateBulk(builders ...*ActionCreate) *ActionCreateBulk
- func (c *ActionClient) Delete() *ActionDelete
- func (c *ActionClient) DeleteOne(a *Action) *ActionDeleteOne
- func (c *ActionClient) DeleteOneID(id int) *ActionDeleteOne
- func (c *ActionClient) Get(ctx context.Context, id int) (*Action, error)
- func (c *ActionClient) GetX(ctx context.Context, id int) *Action
- func (c *ActionClient) Hooks() []Hook
- func (c *ActionClient) Query() *ActionQuery
- func (c *ActionClient) QueryEvent(a *Action) *EventQuery
- func (c *ActionClient) Update() *ActionUpdate
- func (c *ActionClient) UpdateOne(a *Action) *ActionUpdateOne
- func (c *ActionClient) UpdateOneID(id int) *ActionUpdateOne
- func (c *ActionClient) Use(hooks ...Hook)
- type ActionCreate
- func (ac *ActionCreate) Mutation() *ActionMutation
- func (ac *ActionCreate) Save(ctx context.Context) (*Action, error)
- func (ac *ActionCreate) SaveX(ctx context.Context) *Action
- func (ac *ActionCreate) SetAction(s string) *ActionCreate
- func (ac *ActionCreate) SetActionLabel(s string) *ActionCreate
- func (ac *ActionCreate) SetCategory(s string) *ActionCreate
- func (ac *ActionCreate) SetEvent(e *Event) *ActionCreate
- func (ac *ActionCreate) SetEventID(id uuid.UUID) *ActionCreate
- func (ac *ActionCreate) SetNillableActionLabel(s *string) *ActionCreate
- func (ac *ActionCreate) SetNillableProperty(s *string) *ActionCreate
- func (ac *ActionCreate) SetProperty(s string) *ActionCreate
- func (ac *ActionCreate) SetValue(b []byte) *ActionCreate
- type ActionCreateBulk
- type ActionDelete
- type ActionDeleteOne
- type ActionEdges
- type ActionGroupBy
- func (agb *ActionGroupBy) Aggregate(fns ...AggregateFunc) *ActionGroupBy
- func (agb *ActionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (agb *ActionGroupBy) BoolX(ctx context.Context) bool
- func (agb *ActionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (agb *ActionGroupBy) BoolsX(ctx context.Context) []bool
- func (agb *ActionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (agb *ActionGroupBy) Float64X(ctx context.Context) float64
- func (agb *ActionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (agb *ActionGroupBy) Float64sX(ctx context.Context) []float64
- func (agb *ActionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (agb *ActionGroupBy) IntX(ctx context.Context) int
- func (agb *ActionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (agb *ActionGroupBy) IntsX(ctx context.Context) []int
- func (agb *ActionGroupBy) Scan(ctx context.Context, v interface{}) error
- func (agb *ActionGroupBy) ScanX(ctx context.Context, v interface{})
- func (agb *ActionGroupBy) String(ctx context.Context) (_ string, err error)
- func (agb *ActionGroupBy) StringX(ctx context.Context) string
- func (agb *ActionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (agb *ActionGroupBy) StringsX(ctx context.Context) []string
- type ActionMutation
- func (m *ActionMutation) Action() (r string, exists bool)
- func (m *ActionMutation) ActionLabel() (r string, exists bool)
- func (m *ActionMutation) ActionLabelCleared() bool
- func (m *ActionMutation) AddField(name string, value ent.Value) error
- func (m *ActionMutation) AddedEdges() []string
- func (m *ActionMutation) AddedField(name string) (ent.Value, bool)
- func (m *ActionMutation) AddedFields() []string
- func (m *ActionMutation) AddedIDs(name string) []ent.Value
- func (m *ActionMutation) Category() (r string, exists bool)
- func (m *ActionMutation) ClearActionLabel()
- func (m *ActionMutation) ClearEdge(name string) error
- func (m *ActionMutation) ClearEvent()
- func (m *ActionMutation) ClearField(name string) error
- func (m *ActionMutation) ClearProperty()
- func (m *ActionMutation) ClearValue()
- func (m *ActionMutation) ClearedEdges() []string
- func (m *ActionMutation) ClearedFields() []string
- func (m ActionMutation) Client() *Client
- func (m *ActionMutation) EdgeCleared(name string) bool
- func (m *ActionMutation) EventCleared() bool
- func (m *ActionMutation) EventID() (id uuid.UUID, exists bool)
- func (m *ActionMutation) EventIDs() (ids []uuid.UUID)
- func (m *ActionMutation) Field(name string) (ent.Value, bool)
- func (m *ActionMutation) FieldCleared(name string) bool
- func (m *ActionMutation) Fields() []string
- func (m *ActionMutation) ID() (id int, exists bool)
- func (m *ActionMutation) OldAction(ctx context.Context) (v string, err error)
- func (m *ActionMutation) OldActionLabel(ctx context.Context) (v string, err error)
- func (m *ActionMutation) OldCategory(ctx context.Context) (v string, err error)
- func (m *ActionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ActionMutation) OldProperty(ctx context.Context) (v string, err error)
- func (m *ActionMutation) OldValue(ctx context.Context) (v []byte, err error)
- func (m *ActionMutation) Op() Op
- func (m *ActionMutation) Property() (r string, exists bool)
- func (m *ActionMutation) PropertyCleared() bool
- func (m *ActionMutation) RemovedEdges() []string
- func (m *ActionMutation) RemovedIDs(name string) []ent.Value
- func (m *ActionMutation) ResetAction()
- func (m *ActionMutation) ResetActionLabel()
- func (m *ActionMutation) ResetCategory()
- func (m *ActionMutation) ResetEdge(name string) error
- func (m *ActionMutation) ResetEvent()
- func (m *ActionMutation) ResetField(name string) error
- func (m *ActionMutation) ResetProperty()
- func (m *ActionMutation) ResetValue()
- func (m *ActionMutation) SetAction(s string)
- func (m *ActionMutation) SetActionLabel(s string)
- func (m *ActionMutation) SetCategory(s string)
- func (m *ActionMutation) SetEventID(id uuid.UUID)
- func (m *ActionMutation) SetField(name string, value ent.Value) error
- func (m *ActionMutation) SetProperty(s string)
- func (m *ActionMutation) SetValue(b []byte)
- func (m ActionMutation) Tx() (*Tx, error)
- func (m *ActionMutation) Type() string
- func (m *ActionMutation) Value() (r []byte, exists bool)
- func (m *ActionMutation) ValueCleared() bool
- type ActionQuery
- func (aq *ActionQuery) All(ctx context.Context) ([]*Action, error)
- func (aq *ActionQuery) AllX(ctx context.Context) []*Action
- func (aq *ActionQuery) Clone() *ActionQuery
- func (aq *ActionQuery) Count(ctx context.Context) (int, error)
- func (aq *ActionQuery) CountX(ctx context.Context) int
- func (aq *ActionQuery) Exist(ctx context.Context) (bool, error)
- func (aq *ActionQuery) ExistX(ctx context.Context) bool
- func (aq *ActionQuery) First(ctx context.Context) (*Action, error)
- func (aq *ActionQuery) FirstID(ctx context.Context) (id int, err error)
- func (aq *ActionQuery) FirstX(ctx context.Context) *Action
- func (aq *ActionQuery) FirstXID(ctx context.Context) int
- func (aq *ActionQuery) GroupBy(field string, fields ...string) *ActionGroupBy
- func (aq *ActionQuery) IDs(ctx context.Context) ([]int, error)
- func (aq *ActionQuery) IDsX(ctx context.Context) []int
- func (aq *ActionQuery) Limit(limit int) *ActionQuery
- func (aq *ActionQuery) Offset(offset int) *ActionQuery
- func (aq *ActionQuery) Only(ctx context.Context) (*Action, error)
- func (aq *ActionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (aq *ActionQuery) OnlyIDX(ctx context.Context) int
- func (aq *ActionQuery) OnlyX(ctx context.Context) *Action
- func (aq *ActionQuery) Order(o ...OrderFunc) *ActionQuery
- func (aq *ActionQuery) QueryEvent() *EventQuery
- func (aq *ActionQuery) Select(field string, fields ...string) *ActionSelect
- func (aq *ActionQuery) Where(ps ...predicate.Action) *ActionQuery
- func (aq *ActionQuery) WithEvent(opts ...func(*EventQuery)) *ActionQuery
- type ActionSelect
- func (as *ActionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (as *ActionSelect) BoolX(ctx context.Context) bool
- func (as *ActionSelect) Bools(ctx context.Context) ([]bool, error)
- func (as *ActionSelect) BoolsX(ctx context.Context) []bool
- func (as *ActionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (as *ActionSelect) Float64X(ctx context.Context) float64
- func (as *ActionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (as *ActionSelect) Float64sX(ctx context.Context) []float64
- func (as *ActionSelect) Int(ctx context.Context) (_ int, err error)
- func (as *ActionSelect) IntX(ctx context.Context) int
- func (as *ActionSelect) Ints(ctx context.Context) ([]int, error)
- func (as *ActionSelect) IntsX(ctx context.Context) []int
- func (as *ActionSelect) Scan(ctx context.Context, v interface{}) error
- func (as *ActionSelect) ScanX(ctx context.Context, v interface{})
- func (as *ActionSelect) String(ctx context.Context) (_ string, err error)
- func (as *ActionSelect) StringX(ctx context.Context) string
- func (as *ActionSelect) Strings(ctx context.Context) ([]string, error)
- func (as *ActionSelect) StringsX(ctx context.Context) []string
- type ActionUpdate
- func (au *ActionUpdate) ClearActionLabel() *ActionUpdate
- func (au *ActionUpdate) ClearEvent() *ActionUpdate
- func (au *ActionUpdate) ClearProperty() *ActionUpdate
- func (au *ActionUpdate) ClearValue() *ActionUpdate
- func (au *ActionUpdate) Exec(ctx context.Context) error
- func (au *ActionUpdate) ExecX(ctx context.Context)
- func (au *ActionUpdate) Mutation() *ActionMutation
- func (au *ActionUpdate) Save(ctx context.Context) (int, error)
- func (au *ActionUpdate) SaveX(ctx context.Context) int
- func (au *ActionUpdate) SetAction(s string) *ActionUpdate
- func (au *ActionUpdate) SetActionLabel(s string) *ActionUpdate
- func (au *ActionUpdate) SetCategory(s string) *ActionUpdate
- func (au *ActionUpdate) SetEvent(e *Event) *ActionUpdate
- func (au *ActionUpdate) SetEventID(id uuid.UUID) *ActionUpdate
- func (au *ActionUpdate) SetNillableActionLabel(s *string) *ActionUpdate
- func (au *ActionUpdate) SetNillableProperty(s *string) *ActionUpdate
- func (au *ActionUpdate) SetProperty(s string) *ActionUpdate
- func (au *ActionUpdate) SetValue(b []byte) *ActionUpdate
- func (au *ActionUpdate) Where(ps ...predicate.Action) *ActionUpdate
- type ActionUpdateOne
- func (auo *ActionUpdateOne) ClearActionLabel() *ActionUpdateOne
- func (auo *ActionUpdateOne) ClearEvent() *ActionUpdateOne
- func (auo *ActionUpdateOne) ClearProperty() *ActionUpdateOne
- func (auo *ActionUpdateOne) ClearValue() *ActionUpdateOne
- func (auo *ActionUpdateOne) Exec(ctx context.Context) error
- func (auo *ActionUpdateOne) ExecX(ctx context.Context)
- func (auo *ActionUpdateOne) Mutation() *ActionMutation
- func (auo *ActionUpdateOne) Save(ctx context.Context) (*Action, error)
- func (auo *ActionUpdateOne) SaveX(ctx context.Context) *Action
- func (auo *ActionUpdateOne) SetAction(s string) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetActionLabel(s string) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetCategory(s string) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetEvent(e *Event) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetEventID(id uuid.UUID) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetNillableActionLabel(s *string) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetNillableProperty(s *string) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetProperty(s string) *ActionUpdateOne
- func (auo *ActionUpdateOne) SetValue(b []byte) *ActionUpdateOne
- type Actions
- type AggregateFunc
- type Alias
- type AliasClient
- func (c *AliasClient) Create() *AliasCreate
- func (c *AliasClient) CreateBulk(builders ...*AliasCreate) *AliasCreateBulk
- func (c *AliasClient) Delete() *AliasDelete
- func (c *AliasClient) DeleteOne(a *Alias) *AliasDeleteOne
- func (c *AliasClient) DeleteOneID(id int) *AliasDeleteOne
- func (c *AliasClient) Get(ctx context.Context, id int) (*Alias, error)
- func (c *AliasClient) GetX(ctx context.Context, id int) *Alias
- func (c *AliasClient) Hooks() []Hook
- func (c *AliasClient) Query() *AliasQuery
- func (c *AliasClient) QueryEvent(a *Alias) *EventQuery
- func (c *AliasClient) QueryUser(a *Alias) *UserQuery
- func (c *AliasClient) Update() *AliasUpdate
- func (c *AliasClient) UpdateOne(a *Alias) *AliasUpdateOne
- func (c *AliasClient) UpdateOneID(id int) *AliasUpdateOne
- func (c *AliasClient) Use(hooks ...Hook)
- type AliasCreate
- func (ac *AliasCreate) Mutation() *AliasMutation
- func (ac *AliasCreate) Save(ctx context.Context) (*Alias, error)
- func (ac *AliasCreate) SaveX(ctx context.Context) *Alias
- func (ac *AliasCreate) SetEvent(e *Event) *AliasCreate
- func (ac *AliasCreate) SetEventID(id uuid.UUID) *AliasCreate
- func (ac *AliasCreate) SetFrom(s string) *AliasCreate
- func (ac *AliasCreate) SetNillableEventID(id *uuid.UUID) *AliasCreate
- func (ac *AliasCreate) SetNillableUserID(id *string) *AliasCreate
- func (ac *AliasCreate) SetTo(s string) *AliasCreate
- func (ac *AliasCreate) SetUser(u *User) *AliasCreate
- func (ac *AliasCreate) SetUserID(id string) *AliasCreate
- type AliasCreateBulk
- type AliasDelete
- type AliasDeleteOne
- type AliasEdges
- type AliasGroupBy
- func (agb *AliasGroupBy) Aggregate(fns ...AggregateFunc) *AliasGroupBy
- func (agb *AliasGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (agb *AliasGroupBy) BoolX(ctx context.Context) bool
- func (agb *AliasGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (agb *AliasGroupBy) BoolsX(ctx context.Context) []bool
- func (agb *AliasGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (agb *AliasGroupBy) Float64X(ctx context.Context) float64
- func (agb *AliasGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (agb *AliasGroupBy) Float64sX(ctx context.Context) []float64
- func (agb *AliasGroupBy) Int(ctx context.Context) (_ int, err error)
- func (agb *AliasGroupBy) IntX(ctx context.Context) int
- func (agb *AliasGroupBy) Ints(ctx context.Context) ([]int, error)
- func (agb *AliasGroupBy) IntsX(ctx context.Context) []int
- func (agb *AliasGroupBy) Scan(ctx context.Context, v interface{}) error
- func (agb *AliasGroupBy) ScanX(ctx context.Context, v interface{})
- func (agb *AliasGroupBy) String(ctx context.Context) (_ string, err error)
- func (agb *AliasGroupBy) StringX(ctx context.Context) string
- func (agb *AliasGroupBy) Strings(ctx context.Context) ([]string, error)
- func (agb *AliasGroupBy) StringsX(ctx context.Context) []string
- type AliasMutation
- func (m *AliasMutation) AddField(name string, value ent.Value) error
- func (m *AliasMutation) AddedEdges() []string
- func (m *AliasMutation) AddedField(name string) (ent.Value, bool)
- func (m *AliasMutation) AddedFields() []string
- func (m *AliasMutation) AddedIDs(name string) []ent.Value
- func (m *AliasMutation) ClearEdge(name string) error
- func (m *AliasMutation) ClearEvent()
- func (m *AliasMutation) ClearField(name string) error
- func (m *AliasMutation) ClearUser()
- func (m *AliasMutation) ClearedEdges() []string
- func (m *AliasMutation) ClearedFields() []string
- func (m AliasMutation) Client() *Client
- func (m *AliasMutation) EdgeCleared(name string) bool
- func (m *AliasMutation) EventCleared() bool
- func (m *AliasMutation) EventID() (id uuid.UUID, exists bool)
- func (m *AliasMutation) EventIDs() (ids []uuid.UUID)
- func (m *AliasMutation) Field(name string) (ent.Value, bool)
- func (m *AliasMutation) FieldCleared(name string) bool
- func (m *AliasMutation) Fields() []string
- func (m *AliasMutation) From() (r string, exists bool)
- func (m *AliasMutation) ID() (id int, exists bool)
- func (m *AliasMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AliasMutation) OldFrom(ctx context.Context) (v string, err error)
- func (m *AliasMutation) OldTo(ctx context.Context) (v string, err error)
- func (m *AliasMutation) Op() Op
- func (m *AliasMutation) RemovedEdges() []string
- func (m *AliasMutation) RemovedIDs(name string) []ent.Value
- func (m *AliasMutation) ResetEdge(name string) error
- func (m *AliasMutation) ResetEvent()
- func (m *AliasMutation) ResetField(name string) error
- func (m *AliasMutation) ResetFrom()
- func (m *AliasMutation) ResetTo()
- func (m *AliasMutation) ResetUser()
- func (m *AliasMutation) SetEventID(id uuid.UUID)
- func (m *AliasMutation) SetField(name string, value ent.Value) error
- func (m *AliasMutation) SetFrom(s string)
- func (m *AliasMutation) SetTo(s string)
- func (m *AliasMutation) SetUserID(id string)
- func (m *AliasMutation) To() (r string, exists bool)
- func (m AliasMutation) Tx() (*Tx, error)
- func (m *AliasMutation) Type() string
- func (m *AliasMutation) UserCleared() bool
- func (m *AliasMutation) UserID() (id string, exists bool)
- func (m *AliasMutation) UserIDs() (ids []string)
- type AliasQuery
- func (aq *AliasQuery) All(ctx context.Context) ([]*Alias, error)
- func (aq *AliasQuery) AllX(ctx context.Context) []*Alias
- func (aq *AliasQuery) Clone() *AliasQuery
- func (aq *AliasQuery) Count(ctx context.Context) (int, error)
- func (aq *AliasQuery) CountX(ctx context.Context) int
- func (aq *AliasQuery) Exist(ctx context.Context) (bool, error)
- func (aq *AliasQuery) ExistX(ctx context.Context) bool
- func (aq *AliasQuery) First(ctx context.Context) (*Alias, error)
- func (aq *AliasQuery) FirstID(ctx context.Context) (id int, err error)
- func (aq *AliasQuery) FirstX(ctx context.Context) *Alias
- func (aq *AliasQuery) FirstXID(ctx context.Context) int
- func (aq *AliasQuery) GroupBy(field string, fields ...string) *AliasGroupBy
- func (aq *AliasQuery) IDs(ctx context.Context) ([]int, error)
- func (aq *AliasQuery) IDsX(ctx context.Context) []int
- func (aq *AliasQuery) Limit(limit int) *AliasQuery
- func (aq *AliasQuery) Offset(offset int) *AliasQuery
- func (aq *AliasQuery) Only(ctx context.Context) (*Alias, error)
- func (aq *AliasQuery) OnlyID(ctx context.Context) (id int, err error)
- func (aq *AliasQuery) OnlyIDX(ctx context.Context) int
- func (aq *AliasQuery) OnlyX(ctx context.Context) *Alias
- func (aq *AliasQuery) Order(o ...OrderFunc) *AliasQuery
- func (aq *AliasQuery) QueryEvent() *EventQuery
- func (aq *AliasQuery) QueryUser() *UserQuery
- func (aq *AliasQuery) Select(field string, fields ...string) *AliasSelect
- func (aq *AliasQuery) Where(ps ...predicate.Alias) *AliasQuery
- func (aq *AliasQuery) WithEvent(opts ...func(*EventQuery)) *AliasQuery
- func (aq *AliasQuery) WithUser(opts ...func(*UserQuery)) *AliasQuery
- type AliasSelect
- func (as *AliasSelect) Bool(ctx context.Context) (_ bool, err error)
- func (as *AliasSelect) BoolX(ctx context.Context) bool
- func (as *AliasSelect) Bools(ctx context.Context) ([]bool, error)
- func (as *AliasSelect) BoolsX(ctx context.Context) []bool
- func (as *AliasSelect) Float64(ctx context.Context) (_ float64, err error)
- func (as *AliasSelect) Float64X(ctx context.Context) float64
- func (as *AliasSelect) Float64s(ctx context.Context) ([]float64, error)
- func (as *AliasSelect) Float64sX(ctx context.Context) []float64
- func (as *AliasSelect) Int(ctx context.Context) (_ int, err error)
- func (as *AliasSelect) IntX(ctx context.Context) int
- func (as *AliasSelect) Ints(ctx context.Context) ([]int, error)
- func (as *AliasSelect) IntsX(ctx context.Context) []int
- func (as *AliasSelect) Scan(ctx context.Context, v interface{}) error
- func (as *AliasSelect) ScanX(ctx context.Context, v interface{})
- func (as *AliasSelect) String(ctx context.Context) (_ string, err error)
- func (as *AliasSelect) StringX(ctx context.Context) string
- func (as *AliasSelect) Strings(ctx context.Context) ([]string, error)
- func (as *AliasSelect) StringsX(ctx context.Context) []string
- type AliasSlice
- type AliasUpdate
- func (au *AliasUpdate) ClearEvent() *AliasUpdate
- func (au *AliasUpdate) ClearUser() *AliasUpdate
- func (au *AliasUpdate) Exec(ctx context.Context) error
- func (au *AliasUpdate) ExecX(ctx context.Context)
- func (au *AliasUpdate) Mutation() *AliasMutation
- func (au *AliasUpdate) Save(ctx context.Context) (int, error)
- func (au *AliasUpdate) SaveX(ctx context.Context) int
- func (au *AliasUpdate) SetEvent(e *Event) *AliasUpdate
- func (au *AliasUpdate) SetEventID(id uuid.UUID) *AliasUpdate
- func (au *AliasUpdate) SetFrom(s string) *AliasUpdate
- func (au *AliasUpdate) SetNillableEventID(id *uuid.UUID) *AliasUpdate
- func (au *AliasUpdate) SetNillableUserID(id *string) *AliasUpdate
- func (au *AliasUpdate) SetTo(s string) *AliasUpdate
- func (au *AliasUpdate) SetUser(u *User) *AliasUpdate
- func (au *AliasUpdate) SetUserID(id string) *AliasUpdate
- func (au *AliasUpdate) Where(ps ...predicate.Alias) *AliasUpdate
- type AliasUpdateOne
- func (auo *AliasUpdateOne) ClearEvent() *AliasUpdateOne
- func (auo *AliasUpdateOne) ClearUser() *AliasUpdateOne
- func (auo *AliasUpdateOne) Exec(ctx context.Context) error
- func (auo *AliasUpdateOne) ExecX(ctx context.Context)
- func (auo *AliasUpdateOne) Mutation() *AliasMutation
- func (auo *AliasUpdateOne) Save(ctx context.Context) (*Alias, error)
- func (auo *AliasUpdateOne) SaveX(ctx context.Context) *Alias
- func (auo *AliasUpdateOne) SetEvent(e *Event) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetEventID(id uuid.UUID) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetFrom(s string) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetNillableEventID(id *uuid.UUID) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetNillableUserID(id *string) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetTo(s string) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetUser(u *User) *AliasUpdateOne
- func (auo *AliasUpdateOne) SetUserID(id string) *AliasUpdateOne
- type App
- type AppClient
- func (c *AppClient) Create() *AppCreate
- func (c *AppClient) CreateBulk(builders ...*AppCreate) *AppCreateBulk
- func (c *AppClient) Delete() *AppDelete
- func (c *AppClient) DeleteOne(a *App) *AppDeleteOne
- func (c *AppClient) DeleteOneID(id int) *AppDeleteOne
- func (c *AppClient) Get(ctx context.Context, id int) (*App, error)
- func (c *AppClient) GetX(ctx context.Context, id int) *App
- func (c *AppClient) Hooks() []Hook
- func (c *AppClient) Query() *AppQuery
- func (c *AppClient) QueryEvents(a *App) *EventQuery
- func (c *AppClient) Update() *AppUpdate
- func (c *AppClient) UpdateOne(a *App) *AppUpdateOne
- func (c *AppClient) UpdateOneID(id int) *AppUpdateOne
- func (c *AppClient) Use(hooks ...Hook)
- type AppCreate
- func (ac *AppCreate) AddEventIDs(ids ...uuid.UUID) *AppCreate
- func (ac *AppCreate) AddEvents(e ...*Event) *AppCreate
- func (ac *AppCreate) Mutation() *AppMutation
- func (ac *AppCreate) Save(ctx context.Context) (*App, error)
- func (ac *AppCreate) SaveX(ctx context.Context) *App
- func (ac *AppCreate) SetBuild(s string) *AppCreate
- func (ac *AppCreate) SetName(s string) *AppCreate
- func (ac *AppCreate) SetNamespace(s string) *AppCreate
- func (ac *AppCreate) SetNillableBuild(s *string) *AppCreate
- func (ac *AppCreate) SetNillableNamespace(s *string) *AppCreate
- func (ac *AppCreate) SetNillableVersion(s *string) *AppCreate
- func (ac *AppCreate) SetProperties(m map[string]interface{}) *AppCreate
- func (ac *AppCreate) SetVersion(s string) *AppCreate
- type AppCreateBulk
- type AppDelete
- type AppDeleteOne
- type AppEdges
- type AppGroupBy
- func (agb *AppGroupBy) Aggregate(fns ...AggregateFunc) *AppGroupBy
- func (agb *AppGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (agb *AppGroupBy) BoolX(ctx context.Context) bool
- func (agb *AppGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (agb *AppGroupBy) BoolsX(ctx context.Context) []bool
- func (agb *AppGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (agb *AppGroupBy) Float64X(ctx context.Context) float64
- func (agb *AppGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (agb *AppGroupBy) Float64sX(ctx context.Context) []float64
- func (agb *AppGroupBy) Int(ctx context.Context) (_ int, err error)
- func (agb *AppGroupBy) IntX(ctx context.Context) int
- func (agb *AppGroupBy) Ints(ctx context.Context) ([]int, error)
- func (agb *AppGroupBy) IntsX(ctx context.Context) []int
- func (agb *AppGroupBy) Scan(ctx context.Context, v interface{}) error
- func (agb *AppGroupBy) ScanX(ctx context.Context, v interface{})
- func (agb *AppGroupBy) String(ctx context.Context) (_ string, err error)
- func (agb *AppGroupBy) StringX(ctx context.Context) string
- func (agb *AppGroupBy) Strings(ctx context.Context) ([]string, error)
- func (agb *AppGroupBy) StringsX(ctx context.Context) []string
- type AppMutation
- func (m *AppMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *AppMutation) AddField(name string, value ent.Value) error
- func (m *AppMutation) AddedEdges() []string
- func (m *AppMutation) AddedField(name string) (ent.Value, bool)
- func (m *AppMutation) AddedFields() []string
- func (m *AppMutation) AddedIDs(name string) []ent.Value
- func (m *AppMutation) Build() (r string, exists bool)
- func (m *AppMutation) BuildCleared() bool
- func (m *AppMutation) ClearBuild()
- func (m *AppMutation) ClearEdge(name string) error
- func (m *AppMutation) ClearField(name string) error
- func (m *AppMutation) ClearNamespace()
- func (m *AppMutation) ClearProperties()
- func (m *AppMutation) ClearVersion()
- func (m *AppMutation) ClearedEdges() []string
- func (m *AppMutation) ClearedFields() []string
- func (m AppMutation) Client() *Client
- func (m *AppMutation) EdgeCleared(name string) bool
- func (m *AppMutation) EventsIDs() (ids []uuid.UUID)
- func (m *AppMutation) Field(name string) (ent.Value, bool)
- func (m *AppMutation) FieldCleared(name string) bool
- func (m *AppMutation) Fields() []string
- func (m *AppMutation) ID() (id int, exists bool)
- func (m *AppMutation) Name() (r string, exists bool)
- func (m *AppMutation) Namespace() (r string, exists bool)
- func (m *AppMutation) NamespaceCleared() bool
- func (m *AppMutation) OldBuild(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AppMutation) OldName(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldProperties(ctx context.Context) (v map[string]interface{}, err error)
- func (m *AppMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *AppMutation) Op() Op
- func (m *AppMutation) Properties() (r map[string]interface{}, exists bool)
- func (m *AppMutation) PropertiesCleared() bool
- func (m *AppMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *AppMutation) RemovedEdges() []string
- func (m *AppMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *AppMutation) RemovedIDs(name string) []ent.Value
- func (m *AppMutation) ResetBuild()
- func (m *AppMutation) ResetEdge(name string) error
- func (m *AppMutation) ResetEvents()
- func (m *AppMutation) ResetField(name string) error
- func (m *AppMutation) ResetName()
- func (m *AppMutation) ResetNamespace()
- func (m *AppMutation) ResetProperties()
- func (m *AppMutation) ResetVersion()
- func (m *AppMutation) SetBuild(s string)
- func (m *AppMutation) SetField(name string, value ent.Value) error
- func (m *AppMutation) SetName(s string)
- func (m *AppMutation) SetNamespace(s string)
- func (m *AppMutation) SetProperties(value map[string]interface{})
- func (m *AppMutation) SetVersion(s string)
- func (m AppMutation) Tx() (*Tx, error)
- func (m *AppMutation) Type() string
- func (m *AppMutation) Version() (r string, exists bool)
- func (m *AppMutation) VersionCleared() bool
- type AppQuery
- func (aq *AppQuery) All(ctx context.Context) ([]*App, error)
- func (aq *AppQuery) AllX(ctx context.Context) []*App
- func (aq *AppQuery) Clone() *AppQuery
- func (aq *AppQuery) Count(ctx context.Context) (int, error)
- func (aq *AppQuery) CountX(ctx context.Context) int
- func (aq *AppQuery) Exist(ctx context.Context) (bool, error)
- func (aq *AppQuery) ExistX(ctx context.Context) bool
- func (aq *AppQuery) First(ctx context.Context) (*App, error)
- func (aq *AppQuery) FirstID(ctx context.Context) (id int, err error)
- func (aq *AppQuery) FirstX(ctx context.Context) *App
- func (aq *AppQuery) FirstXID(ctx context.Context) int
- func (aq *AppQuery) GroupBy(field string, fields ...string) *AppGroupBy
- func (aq *AppQuery) IDs(ctx context.Context) ([]int, error)
- func (aq *AppQuery) IDsX(ctx context.Context) []int
- func (aq *AppQuery) Limit(limit int) *AppQuery
- func (aq *AppQuery) Offset(offset int) *AppQuery
- func (aq *AppQuery) Only(ctx context.Context) (*App, error)
- func (aq *AppQuery) OnlyID(ctx context.Context) (id int, err error)
- func (aq *AppQuery) OnlyIDX(ctx context.Context) int
- func (aq *AppQuery) OnlyX(ctx context.Context) *App
- func (aq *AppQuery) Order(o ...OrderFunc) *AppQuery
- func (aq *AppQuery) QueryEvents() *EventQuery
- func (aq *AppQuery) Select(field string, fields ...string) *AppSelect
- func (aq *AppQuery) Where(ps ...predicate.App) *AppQuery
- func (aq *AppQuery) WithEvents(opts ...func(*EventQuery)) *AppQuery
- type AppSelect
- func (as *AppSelect) Bool(ctx context.Context) (_ bool, err error)
- func (as *AppSelect) BoolX(ctx context.Context) bool
- func (as *AppSelect) Bools(ctx context.Context) ([]bool, error)
- func (as *AppSelect) BoolsX(ctx context.Context) []bool
- func (as *AppSelect) Float64(ctx context.Context) (_ float64, err error)
- func (as *AppSelect) Float64X(ctx context.Context) float64
- func (as *AppSelect) Float64s(ctx context.Context) ([]float64, error)
- func (as *AppSelect) Float64sX(ctx context.Context) []float64
- func (as *AppSelect) Int(ctx context.Context) (_ int, err error)
- func (as *AppSelect) IntX(ctx context.Context) int
- func (as *AppSelect) Ints(ctx context.Context) ([]int, error)
- func (as *AppSelect) IntsX(ctx context.Context) []int
- func (as *AppSelect) Scan(ctx context.Context, v interface{}) error
- func (as *AppSelect) ScanX(ctx context.Context, v interface{})
- func (as *AppSelect) String(ctx context.Context) (_ string, err error)
- func (as *AppSelect) StringX(ctx context.Context) string
- func (as *AppSelect) Strings(ctx context.Context) ([]string, error)
- func (as *AppSelect) StringsX(ctx context.Context) []string
- type AppUpdate
- func (au *AppUpdate) AddEventIDs(ids ...uuid.UUID) *AppUpdate
- func (au *AppUpdate) AddEvents(e ...*Event) *AppUpdate
- func (au *AppUpdate) ClearBuild() *AppUpdate
- func (au *AppUpdate) ClearNamespace() *AppUpdate
- func (au *AppUpdate) ClearProperties() *AppUpdate
- func (au *AppUpdate) ClearVersion() *AppUpdate
- func (au *AppUpdate) Exec(ctx context.Context) error
- func (au *AppUpdate) ExecX(ctx context.Context)
- func (au *AppUpdate) Mutation() *AppMutation
- func (au *AppUpdate) RemoveEventIDs(ids ...uuid.UUID) *AppUpdate
- func (au *AppUpdate) RemoveEvents(e ...*Event) *AppUpdate
- func (au *AppUpdate) Save(ctx context.Context) (int, error)
- func (au *AppUpdate) SaveX(ctx context.Context) int
- func (au *AppUpdate) SetBuild(s string) *AppUpdate
- func (au *AppUpdate) SetName(s string) *AppUpdate
- func (au *AppUpdate) SetNamespace(s string) *AppUpdate
- func (au *AppUpdate) SetNillableBuild(s *string) *AppUpdate
- func (au *AppUpdate) SetNillableNamespace(s *string) *AppUpdate
- func (au *AppUpdate) SetNillableVersion(s *string) *AppUpdate
- func (au *AppUpdate) SetProperties(m map[string]interface{}) *AppUpdate
- func (au *AppUpdate) SetVersion(s string) *AppUpdate
- func (au *AppUpdate) Where(ps ...predicate.App) *AppUpdate
- type AppUpdateOne
- func (auo *AppUpdateOne) AddEventIDs(ids ...uuid.UUID) *AppUpdateOne
- func (auo *AppUpdateOne) AddEvents(e ...*Event) *AppUpdateOne
- func (auo *AppUpdateOne) ClearBuild() *AppUpdateOne
- func (auo *AppUpdateOne) ClearNamespace() *AppUpdateOne
- func (auo *AppUpdateOne) ClearProperties() *AppUpdateOne
- func (auo *AppUpdateOne) ClearVersion() *AppUpdateOne
- func (auo *AppUpdateOne) Exec(ctx context.Context) error
- func (auo *AppUpdateOne) ExecX(ctx context.Context)
- func (auo *AppUpdateOne) Mutation() *AppMutation
- func (auo *AppUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *AppUpdateOne
- func (auo *AppUpdateOne) RemoveEvents(e ...*Event) *AppUpdateOne
- func (auo *AppUpdateOne) Save(ctx context.Context) (*App, error)
- func (auo *AppUpdateOne) SaveX(ctx context.Context) *App
- func (auo *AppUpdateOne) SetBuild(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetName(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetNamespace(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetNillableBuild(s *string) *AppUpdateOne
- func (auo *AppUpdateOne) SetNillableNamespace(s *string) *AppUpdateOne
- func (auo *AppUpdateOne) SetNillableVersion(s *string) *AppUpdateOne
- func (auo *AppUpdateOne) SetProperties(m map[string]interface{}) *AppUpdateOne
- func (auo *AppUpdateOne) SetVersion(s string) *AppUpdateOne
- type Apps
- type Browser
- type BrowserClient
- func (c *BrowserClient) Create() *BrowserCreate
- func (c *BrowserClient) CreateBulk(builders ...*BrowserCreate) *BrowserCreateBulk
- func (c *BrowserClient) Delete() *BrowserDelete
- func (c *BrowserClient) DeleteOne(b *Browser) *BrowserDeleteOne
- func (c *BrowserClient) DeleteOneID(id int) *BrowserDeleteOne
- func (c *BrowserClient) Get(ctx context.Context, id int) (*Browser, error)
- func (c *BrowserClient) GetX(ctx context.Context, id int) *Browser
- func (c *BrowserClient) Hooks() []Hook
- func (c *BrowserClient) Query() *BrowserQuery
- func (c *BrowserClient) QueryEvent(b *Browser) *EventQuery
- func (c *BrowserClient) Update() *BrowserUpdate
- func (c *BrowserClient) UpdateOne(b *Browser) *BrowserUpdateOne
- func (c *BrowserClient) UpdateOneID(id int) *BrowserUpdateOne
- func (c *BrowserClient) Use(hooks ...Hook)
- type BrowserCreate
- func (bc *BrowserCreate) Mutation() *BrowserMutation
- func (bc *BrowserCreate) Save(ctx context.Context) (*Browser, error)
- func (bc *BrowserCreate) SaveX(ctx context.Context) *Browser
- func (bc *BrowserCreate) SetEvent(e *Event) *BrowserCreate
- func (bc *BrowserCreate) SetEventID(id uuid.UUID) *BrowserCreate
- func (bc *BrowserCreate) SetName(s string) *BrowserCreate
- func (bc *BrowserCreate) SetNillableEventID(id *uuid.UUID) *BrowserCreate
- func (bc *BrowserCreate) SetNillableUseragent(s *string) *BrowserCreate
- func (bc *BrowserCreate) SetUseragent(s string) *BrowserCreate
- func (bc *BrowserCreate) SetVersion(s string) *BrowserCreate
- type BrowserCreateBulk
- type BrowserDelete
- type BrowserDeleteOne
- type BrowserEdges
- type BrowserGroupBy
- func (bgb *BrowserGroupBy) Aggregate(fns ...AggregateFunc) *BrowserGroupBy
- func (bgb *BrowserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (bgb *BrowserGroupBy) BoolX(ctx context.Context) bool
- func (bgb *BrowserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (bgb *BrowserGroupBy) BoolsX(ctx context.Context) []bool
- func (bgb *BrowserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (bgb *BrowserGroupBy) Float64X(ctx context.Context) float64
- func (bgb *BrowserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (bgb *BrowserGroupBy) Float64sX(ctx context.Context) []float64
- func (bgb *BrowserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (bgb *BrowserGroupBy) IntX(ctx context.Context) int
- func (bgb *BrowserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (bgb *BrowserGroupBy) IntsX(ctx context.Context) []int
- func (bgb *BrowserGroupBy) Scan(ctx context.Context, v interface{}) error
- func (bgb *BrowserGroupBy) ScanX(ctx context.Context, v interface{})
- func (bgb *BrowserGroupBy) String(ctx context.Context) (_ string, err error)
- func (bgb *BrowserGroupBy) StringX(ctx context.Context) string
- func (bgb *BrowserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (bgb *BrowserGroupBy) StringsX(ctx context.Context) []string
- type BrowserMutation
- func (m *BrowserMutation) AddField(name string, value ent.Value) error
- func (m *BrowserMutation) AddedEdges() []string
- func (m *BrowserMutation) AddedField(name string) (ent.Value, bool)
- func (m *BrowserMutation) AddedFields() []string
- func (m *BrowserMutation) AddedIDs(name string) []ent.Value
- func (m *BrowserMutation) ClearEdge(name string) error
- func (m *BrowserMutation) ClearEvent()
- func (m *BrowserMutation) ClearField(name string) error
- func (m *BrowserMutation) ClearUseragent()
- func (m *BrowserMutation) ClearedEdges() []string
- func (m *BrowserMutation) ClearedFields() []string
- func (m BrowserMutation) Client() *Client
- func (m *BrowserMutation) EdgeCleared(name string) bool
- func (m *BrowserMutation) EventCleared() bool
- func (m *BrowserMutation) EventID() (id uuid.UUID, exists bool)
- func (m *BrowserMutation) EventIDs() (ids []uuid.UUID)
- func (m *BrowserMutation) Field(name string) (ent.Value, bool)
- func (m *BrowserMutation) FieldCleared(name string) bool
- func (m *BrowserMutation) Fields() []string
- func (m *BrowserMutation) ID() (id int, exists bool)
- func (m *BrowserMutation) Name() (r string, exists bool)
- func (m *BrowserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BrowserMutation) OldName(ctx context.Context) (v string, err error)
- func (m *BrowserMutation) OldUseragent(ctx context.Context) (v string, err error)
- func (m *BrowserMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *BrowserMutation) Op() Op
- func (m *BrowserMutation) RemovedEdges() []string
- func (m *BrowserMutation) RemovedIDs(name string) []ent.Value
- func (m *BrowserMutation) ResetEdge(name string) error
- func (m *BrowserMutation) ResetEvent()
- func (m *BrowserMutation) ResetField(name string) error
- func (m *BrowserMutation) ResetName()
- func (m *BrowserMutation) ResetUseragent()
- func (m *BrowserMutation) ResetVersion()
- func (m *BrowserMutation) SetEventID(id uuid.UUID)
- func (m *BrowserMutation) SetField(name string, value ent.Value) error
- func (m *BrowserMutation) SetName(s string)
- func (m *BrowserMutation) SetUseragent(s string)
- func (m *BrowserMutation) SetVersion(s string)
- func (m BrowserMutation) Tx() (*Tx, error)
- func (m *BrowserMutation) Type() string
- func (m *BrowserMutation) Useragent() (r string, exists bool)
- func (m *BrowserMutation) UseragentCleared() bool
- func (m *BrowserMutation) Version() (r string, exists bool)
- type BrowserQuery
- func (bq *BrowserQuery) All(ctx context.Context) ([]*Browser, error)
- func (bq *BrowserQuery) AllX(ctx context.Context) []*Browser
- func (bq *BrowserQuery) Clone() *BrowserQuery
- func (bq *BrowserQuery) Count(ctx context.Context) (int, error)
- func (bq *BrowserQuery) CountX(ctx context.Context) int
- func (bq *BrowserQuery) Exist(ctx context.Context) (bool, error)
- func (bq *BrowserQuery) ExistX(ctx context.Context) bool
- func (bq *BrowserQuery) First(ctx context.Context) (*Browser, error)
- func (bq *BrowserQuery) FirstID(ctx context.Context) (id int, err error)
- func (bq *BrowserQuery) FirstX(ctx context.Context) *Browser
- func (bq *BrowserQuery) FirstXID(ctx context.Context) int
- func (bq *BrowserQuery) GroupBy(field string, fields ...string) *BrowserGroupBy
- func (bq *BrowserQuery) IDs(ctx context.Context) ([]int, error)
- func (bq *BrowserQuery) IDsX(ctx context.Context) []int
- func (bq *BrowserQuery) Limit(limit int) *BrowserQuery
- func (bq *BrowserQuery) Offset(offset int) *BrowserQuery
- func (bq *BrowserQuery) Only(ctx context.Context) (*Browser, error)
- func (bq *BrowserQuery) OnlyID(ctx context.Context) (id int, err error)
- func (bq *BrowserQuery) OnlyIDX(ctx context.Context) int
- func (bq *BrowserQuery) OnlyX(ctx context.Context) *Browser
- func (bq *BrowserQuery) Order(o ...OrderFunc) *BrowserQuery
- func (bq *BrowserQuery) QueryEvent() *EventQuery
- func (bq *BrowserQuery) Select(field string, fields ...string) *BrowserSelect
- func (bq *BrowserQuery) Where(ps ...predicate.Browser) *BrowserQuery
- func (bq *BrowserQuery) WithEvent(opts ...func(*EventQuery)) *BrowserQuery
- type BrowserSelect
- func (bs *BrowserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (bs *BrowserSelect) BoolX(ctx context.Context) bool
- func (bs *BrowserSelect) Bools(ctx context.Context) ([]bool, error)
- func (bs *BrowserSelect) BoolsX(ctx context.Context) []bool
- func (bs *BrowserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (bs *BrowserSelect) Float64X(ctx context.Context) float64
- func (bs *BrowserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (bs *BrowserSelect) Float64sX(ctx context.Context) []float64
- func (bs *BrowserSelect) Int(ctx context.Context) (_ int, err error)
- func (bs *BrowserSelect) IntX(ctx context.Context) int
- func (bs *BrowserSelect) Ints(ctx context.Context) ([]int, error)
- func (bs *BrowserSelect) IntsX(ctx context.Context) []int
- func (bs *BrowserSelect) Scan(ctx context.Context, v interface{}) error
- func (bs *BrowserSelect) ScanX(ctx context.Context, v interface{})
- func (bs *BrowserSelect) String(ctx context.Context) (_ string, err error)
- func (bs *BrowserSelect) StringX(ctx context.Context) string
- func (bs *BrowserSelect) Strings(ctx context.Context) ([]string, error)
- func (bs *BrowserSelect) StringsX(ctx context.Context) []string
- type BrowserUpdate
- func (bu *BrowserUpdate) ClearEvent() *BrowserUpdate
- func (bu *BrowserUpdate) ClearUseragent() *BrowserUpdate
- func (bu *BrowserUpdate) Exec(ctx context.Context) error
- func (bu *BrowserUpdate) ExecX(ctx context.Context)
- func (bu *BrowserUpdate) Mutation() *BrowserMutation
- func (bu *BrowserUpdate) Save(ctx context.Context) (int, error)
- func (bu *BrowserUpdate) SaveX(ctx context.Context) int
- func (bu *BrowserUpdate) SetEvent(e *Event) *BrowserUpdate
- func (bu *BrowserUpdate) SetEventID(id uuid.UUID) *BrowserUpdate
- func (bu *BrowserUpdate) SetName(s string) *BrowserUpdate
- func (bu *BrowserUpdate) SetNillableEventID(id *uuid.UUID) *BrowserUpdate
- func (bu *BrowserUpdate) SetNillableUseragent(s *string) *BrowserUpdate
- func (bu *BrowserUpdate) SetUseragent(s string) *BrowserUpdate
- func (bu *BrowserUpdate) SetVersion(s string) *BrowserUpdate
- func (bu *BrowserUpdate) Where(ps ...predicate.Browser) *BrowserUpdate
- type BrowserUpdateOne
- func (buo *BrowserUpdateOne) ClearEvent() *BrowserUpdateOne
- func (buo *BrowserUpdateOne) ClearUseragent() *BrowserUpdateOne
- func (buo *BrowserUpdateOne) Exec(ctx context.Context) error
- func (buo *BrowserUpdateOne) ExecX(ctx context.Context)
- func (buo *BrowserUpdateOne) Mutation() *BrowserMutation
- func (buo *BrowserUpdateOne) Save(ctx context.Context) (*Browser, error)
- func (buo *BrowserUpdateOne) SaveX(ctx context.Context) *Browser
- func (buo *BrowserUpdateOne) SetEvent(e *Event) *BrowserUpdateOne
- func (buo *BrowserUpdateOne) SetEventID(id uuid.UUID) *BrowserUpdateOne
- func (buo *BrowserUpdateOne) SetName(s string) *BrowserUpdateOne
- func (buo *BrowserUpdateOne) SetNillableEventID(id *uuid.UUID) *BrowserUpdateOne
- func (buo *BrowserUpdateOne) SetNillableUseragent(s *string) *BrowserUpdateOne
- func (buo *BrowserUpdateOne) SetUseragent(s string) *BrowserUpdateOne
- func (buo *BrowserUpdateOne) SetVersion(s string) *BrowserUpdateOne
- type Browsers
- type Campaign
- type CampaignClient
- func (c *CampaignClient) Create() *CampaignCreate
- func (c *CampaignClient) CreateBulk(builders ...*CampaignCreate) *CampaignCreateBulk
- func (c *CampaignClient) Delete() *CampaignDelete
- func (c *CampaignClient) DeleteOne(ca *Campaign) *CampaignDeleteOne
- func (c *CampaignClient) DeleteOneID(id int) *CampaignDeleteOne
- func (c *CampaignClient) Get(ctx context.Context, id int) (*Campaign, error)
- func (c *CampaignClient) GetX(ctx context.Context, id int) *Campaign
- func (c *CampaignClient) Hooks() []Hook
- func (c *CampaignClient) Query() *CampaignQuery
- func (c *CampaignClient) QueryEvent(ca *Campaign) *EventQuery
- func (c *CampaignClient) Update() *CampaignUpdate
- func (c *CampaignClient) UpdateOne(ca *Campaign) *CampaignUpdateOne
- func (c *CampaignClient) UpdateOneID(id int) *CampaignUpdateOne
- func (c *CampaignClient) Use(hooks ...Hook)
- type CampaignCreate
- func (cc *CampaignCreate) AddEvent(e ...*Event) *CampaignCreate
- func (cc *CampaignCreate) AddEventIDs(ids ...uuid.UUID) *CampaignCreate
- func (cc *CampaignCreate) Mutation() *CampaignMutation
- func (cc *CampaignCreate) Save(ctx context.Context) (*Campaign, error)
- func (cc *CampaignCreate) SaveX(ctx context.Context) *Campaign
- func (cc *CampaignCreate) SetContent(s string) *CampaignCreate
- func (cc *CampaignCreate) SetMedium(s string) *CampaignCreate
- func (cc *CampaignCreate) SetName(s string) *CampaignCreate
- func (cc *CampaignCreate) SetNillableContent(s *string) *CampaignCreate
- func (cc *CampaignCreate) SetNillableMedium(s *string) *CampaignCreate
- func (cc *CampaignCreate) SetNillableSource(s *string) *CampaignCreate
- func (cc *CampaignCreate) SetNillableTerm(s *string) *CampaignCreate
- func (cc *CampaignCreate) SetSource(s string) *CampaignCreate
- func (cc *CampaignCreate) SetTerm(s string) *CampaignCreate
- type CampaignCreateBulk
- type CampaignDelete
- type CampaignDeleteOne
- type CampaignEdges
- type CampaignGroupBy
- func (cgb *CampaignGroupBy) Aggregate(fns ...AggregateFunc) *CampaignGroupBy
- func (cgb *CampaignGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (cgb *CampaignGroupBy) BoolX(ctx context.Context) bool
- func (cgb *CampaignGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (cgb *CampaignGroupBy) BoolsX(ctx context.Context) []bool
- func (cgb *CampaignGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (cgb *CampaignGroupBy) Float64X(ctx context.Context) float64
- func (cgb *CampaignGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (cgb *CampaignGroupBy) Float64sX(ctx context.Context) []float64
- func (cgb *CampaignGroupBy) Int(ctx context.Context) (_ int, err error)
- func (cgb *CampaignGroupBy) IntX(ctx context.Context) int
- func (cgb *CampaignGroupBy) Ints(ctx context.Context) ([]int, error)
- func (cgb *CampaignGroupBy) IntsX(ctx context.Context) []int
- func (cgb *CampaignGroupBy) Scan(ctx context.Context, v interface{}) error
- func (cgb *CampaignGroupBy) ScanX(ctx context.Context, v interface{})
- func (cgb *CampaignGroupBy) String(ctx context.Context) (_ string, err error)
- func (cgb *CampaignGroupBy) StringX(ctx context.Context) string
- func (cgb *CampaignGroupBy) Strings(ctx context.Context) ([]string, error)
- func (cgb *CampaignGroupBy) StringsX(ctx context.Context) []string
- type CampaignMutation
- func (m *CampaignMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *CampaignMutation) AddField(name string, value ent.Value) error
- func (m *CampaignMutation) AddedEdges() []string
- func (m *CampaignMutation) AddedField(name string) (ent.Value, bool)
- func (m *CampaignMutation) AddedFields() []string
- func (m *CampaignMutation) AddedIDs(name string) []ent.Value
- func (m *CampaignMutation) ClearContent()
- func (m *CampaignMutation) ClearEdge(name string) error
- func (m *CampaignMutation) ClearField(name string) error
- func (m *CampaignMutation) ClearMedium()
- func (m *CampaignMutation) ClearSource()
- func (m *CampaignMutation) ClearTerm()
- func (m *CampaignMutation) ClearedEdges() []string
- func (m *CampaignMutation) ClearedFields() []string
- func (m CampaignMutation) Client() *Client
- func (m *CampaignMutation) Content() (r string, exists bool)
- func (m *CampaignMutation) ContentCleared() bool
- func (m *CampaignMutation) EdgeCleared(name string) bool
- func (m *CampaignMutation) EventIDs() (ids []uuid.UUID)
- func (m *CampaignMutation) Field(name string) (ent.Value, bool)
- func (m *CampaignMutation) FieldCleared(name string) bool
- func (m *CampaignMutation) Fields() []string
- func (m *CampaignMutation) ID() (id int, exists bool)
- func (m *CampaignMutation) Medium() (r string, exists bool)
- func (m *CampaignMutation) MediumCleared() bool
- func (m *CampaignMutation) Name() (r string, exists bool)
- func (m *CampaignMutation) OldContent(ctx context.Context) (v string, err error)
- func (m *CampaignMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CampaignMutation) OldMedium(ctx context.Context) (v string, err error)
- func (m *CampaignMutation) OldName(ctx context.Context) (v string, err error)
- func (m *CampaignMutation) OldSource(ctx context.Context) (v string, err error)
- func (m *CampaignMutation) OldTerm(ctx context.Context) (v string, err error)
- func (m *CampaignMutation) Op() Op
- func (m *CampaignMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *CampaignMutation) RemovedEdges() []string
- func (m *CampaignMutation) RemovedEventIDs() (ids []uuid.UUID)
- func (m *CampaignMutation) RemovedIDs(name string) []ent.Value
- func (m *CampaignMutation) ResetContent()
- func (m *CampaignMutation) ResetEdge(name string) error
- func (m *CampaignMutation) ResetEvent()
- func (m *CampaignMutation) ResetField(name string) error
- func (m *CampaignMutation) ResetMedium()
- func (m *CampaignMutation) ResetName()
- func (m *CampaignMutation) ResetSource()
- func (m *CampaignMutation) ResetTerm()
- func (m *CampaignMutation) SetContent(s string)
- func (m *CampaignMutation) SetField(name string, value ent.Value) error
- func (m *CampaignMutation) SetMedium(s string)
- func (m *CampaignMutation) SetName(s string)
- func (m *CampaignMutation) SetSource(s string)
- func (m *CampaignMutation) SetTerm(s string)
- func (m *CampaignMutation) Source() (r string, exists bool)
- func (m *CampaignMutation) SourceCleared() bool
- func (m *CampaignMutation) Term() (r string, exists bool)
- func (m *CampaignMutation) TermCleared() bool
- func (m CampaignMutation) Tx() (*Tx, error)
- func (m *CampaignMutation) Type() string
- type CampaignQuery
- func (cq *CampaignQuery) All(ctx context.Context) ([]*Campaign, error)
- func (cq *CampaignQuery) AllX(ctx context.Context) []*Campaign
- func (cq *CampaignQuery) Clone() *CampaignQuery
- func (cq *CampaignQuery) Count(ctx context.Context) (int, error)
- func (cq *CampaignQuery) CountX(ctx context.Context) int
- func (cq *CampaignQuery) Exist(ctx context.Context) (bool, error)
- func (cq *CampaignQuery) ExistX(ctx context.Context) bool
- func (cq *CampaignQuery) First(ctx context.Context) (*Campaign, error)
- func (cq *CampaignQuery) FirstID(ctx context.Context) (id int, err error)
- func (cq *CampaignQuery) FirstX(ctx context.Context) *Campaign
- func (cq *CampaignQuery) FirstXID(ctx context.Context) int
- func (cq *CampaignQuery) GroupBy(field string, fields ...string) *CampaignGroupBy
- func (cq *CampaignQuery) IDs(ctx context.Context) ([]int, error)
- func (cq *CampaignQuery) IDsX(ctx context.Context) []int
- func (cq *CampaignQuery) Limit(limit int) *CampaignQuery
- func (cq *CampaignQuery) Offset(offset int) *CampaignQuery
- func (cq *CampaignQuery) Only(ctx context.Context) (*Campaign, error)
- func (cq *CampaignQuery) OnlyID(ctx context.Context) (id int, err error)
- func (cq *CampaignQuery) OnlyIDX(ctx context.Context) int
- func (cq *CampaignQuery) OnlyX(ctx context.Context) *Campaign
- func (cq *CampaignQuery) Order(o ...OrderFunc) *CampaignQuery
- func (cq *CampaignQuery) QueryEvent() *EventQuery
- func (cq *CampaignQuery) Select(field string, fields ...string) *CampaignSelect
- func (cq *CampaignQuery) Where(ps ...predicate.Campaign) *CampaignQuery
- func (cq *CampaignQuery) WithEvent(opts ...func(*EventQuery)) *CampaignQuery
- type CampaignSelect
- func (cs *CampaignSelect) Bool(ctx context.Context) (_ bool, err error)
- func (cs *CampaignSelect) BoolX(ctx context.Context) bool
- func (cs *CampaignSelect) Bools(ctx context.Context) ([]bool, error)
- func (cs *CampaignSelect) BoolsX(ctx context.Context) []bool
- func (cs *CampaignSelect) Float64(ctx context.Context) (_ float64, err error)
- func (cs *CampaignSelect) Float64X(ctx context.Context) float64
- func (cs *CampaignSelect) Float64s(ctx context.Context) ([]float64, error)
- func (cs *CampaignSelect) Float64sX(ctx context.Context) []float64
- func (cs *CampaignSelect) Int(ctx context.Context) (_ int, err error)
- func (cs *CampaignSelect) IntX(ctx context.Context) int
- func (cs *CampaignSelect) Ints(ctx context.Context) ([]int, error)
- func (cs *CampaignSelect) IntsX(ctx context.Context) []int
- func (cs *CampaignSelect) Scan(ctx context.Context, v interface{}) error
- func (cs *CampaignSelect) ScanX(ctx context.Context, v interface{})
- func (cs *CampaignSelect) String(ctx context.Context) (_ string, err error)
- func (cs *CampaignSelect) StringX(ctx context.Context) string
- func (cs *CampaignSelect) Strings(ctx context.Context) ([]string, error)
- func (cs *CampaignSelect) StringsX(ctx context.Context) []string
- type CampaignUpdate
- func (cu *CampaignUpdate) AddEvent(e ...*Event) *CampaignUpdate
- func (cu *CampaignUpdate) AddEventIDs(ids ...uuid.UUID) *CampaignUpdate
- func (cu *CampaignUpdate) ClearContent() *CampaignUpdate
- func (cu *CampaignUpdate) ClearMedium() *CampaignUpdate
- func (cu *CampaignUpdate) ClearSource() *CampaignUpdate
- func (cu *CampaignUpdate) ClearTerm() *CampaignUpdate
- func (cu *CampaignUpdate) Exec(ctx context.Context) error
- func (cu *CampaignUpdate) ExecX(ctx context.Context)
- func (cu *CampaignUpdate) Mutation() *CampaignMutation
- func (cu *CampaignUpdate) RemoveEvent(e ...*Event) *CampaignUpdate
- func (cu *CampaignUpdate) RemoveEventIDs(ids ...uuid.UUID) *CampaignUpdate
- func (cu *CampaignUpdate) Save(ctx context.Context) (int, error)
- func (cu *CampaignUpdate) SaveX(ctx context.Context) int
- func (cu *CampaignUpdate) SetContent(s string) *CampaignUpdate
- func (cu *CampaignUpdate) SetMedium(s string) *CampaignUpdate
- func (cu *CampaignUpdate) SetName(s string) *CampaignUpdate
- func (cu *CampaignUpdate) SetNillableContent(s *string) *CampaignUpdate
- func (cu *CampaignUpdate) SetNillableMedium(s *string) *CampaignUpdate
- func (cu *CampaignUpdate) SetNillableSource(s *string) *CampaignUpdate
- func (cu *CampaignUpdate) SetNillableTerm(s *string) *CampaignUpdate
- func (cu *CampaignUpdate) SetSource(s string) *CampaignUpdate
- func (cu *CampaignUpdate) SetTerm(s string) *CampaignUpdate
- func (cu *CampaignUpdate) Where(ps ...predicate.Campaign) *CampaignUpdate
- type CampaignUpdateOne
- func (cuo *CampaignUpdateOne) AddEvent(e ...*Event) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) AddEventIDs(ids ...uuid.UUID) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) ClearContent() *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) ClearMedium() *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) ClearSource() *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) ClearTerm() *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) Exec(ctx context.Context) error
- func (cuo *CampaignUpdateOne) ExecX(ctx context.Context)
- func (cuo *CampaignUpdateOne) Mutation() *CampaignMutation
- func (cuo *CampaignUpdateOne) RemoveEvent(e ...*Event) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) Save(ctx context.Context) (*Campaign, error)
- func (cuo *CampaignUpdateOne) SaveX(ctx context.Context) *Campaign
- func (cuo *CampaignUpdateOne) SetContent(s string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetMedium(s string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetName(s string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetNillableContent(s *string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetNillableMedium(s *string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetNillableSource(s *string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetNillableTerm(s *string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetSource(s string) *CampaignUpdateOne
- func (cuo *CampaignUpdateOne) SetTerm(s string) *CampaignUpdateOne
- type Campaigns
- type Client
- type CommitFunc
- type CommitHook
- type Committer
- type Connectivities
- type Connectivity
- type ConnectivityClient
- func (c *ConnectivityClient) Create() *ConnectivityCreate
- func (c *ConnectivityClient) CreateBulk(builders ...*ConnectivityCreate) *ConnectivityCreateBulk
- func (c *ConnectivityClient) Delete() *ConnectivityDelete
- func (c *ConnectivityClient) DeleteOne(co *Connectivity) *ConnectivityDeleteOne
- func (c *ConnectivityClient) DeleteOneID(id int) *ConnectivityDeleteOne
- func (c *ConnectivityClient) Get(ctx context.Context, id int) (*Connectivity, error)
- func (c *ConnectivityClient) GetX(ctx context.Context, id int) *Connectivity
- func (c *ConnectivityClient) Hooks() []Hook
- func (c *ConnectivityClient) Query() *ConnectivityQuery
- func (c *ConnectivityClient) QueryEvent(co *Connectivity) *EventQuery
- func (c *ConnectivityClient) Update() *ConnectivityUpdate
- func (c *ConnectivityClient) UpdateOne(co *Connectivity) *ConnectivityUpdateOne
- func (c *ConnectivityClient) UpdateOneID(id int) *ConnectivityUpdateOne
- func (c *ConnectivityClient) Use(hooks ...Hook)
- type ConnectivityCreate
- func (cc *ConnectivityCreate) Mutation() *ConnectivityMutation
- func (cc *ConnectivityCreate) Save(ctx context.Context) (*Connectivity, error)
- func (cc *ConnectivityCreate) SaveX(ctx context.Context) *Connectivity
- func (cc *ConnectivityCreate) SetBluetooth(b bool) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetCarrier(b bool) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetCellular(b bool) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetEthernet(b bool) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetEvent(e *Event) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetEventID(id uuid.UUID) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetIsp(b bool) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetNillableEventID(id *uuid.UUID) *ConnectivityCreate
- func (cc *ConnectivityCreate) SetWifi(b bool) *ConnectivityCreate
- type ConnectivityCreateBulk
- type ConnectivityDelete
- type ConnectivityDeleteOne
- type ConnectivityEdges
- type ConnectivityGroupBy
- func (cgb *ConnectivityGroupBy) Aggregate(fns ...AggregateFunc) *ConnectivityGroupBy
- func (cgb *ConnectivityGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (cgb *ConnectivityGroupBy) BoolX(ctx context.Context) bool
- func (cgb *ConnectivityGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (cgb *ConnectivityGroupBy) BoolsX(ctx context.Context) []bool
- func (cgb *ConnectivityGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (cgb *ConnectivityGroupBy) Float64X(ctx context.Context) float64
- func (cgb *ConnectivityGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (cgb *ConnectivityGroupBy) Float64sX(ctx context.Context) []float64
- func (cgb *ConnectivityGroupBy) Int(ctx context.Context) (_ int, err error)
- func (cgb *ConnectivityGroupBy) IntX(ctx context.Context) int
- func (cgb *ConnectivityGroupBy) Ints(ctx context.Context) ([]int, error)
- func (cgb *ConnectivityGroupBy) IntsX(ctx context.Context) []int
- func (cgb *ConnectivityGroupBy) Scan(ctx context.Context, v interface{}) error
- func (cgb *ConnectivityGroupBy) ScanX(ctx context.Context, v interface{})
- func (cgb *ConnectivityGroupBy) String(ctx context.Context) (_ string, err error)
- func (cgb *ConnectivityGroupBy) StringX(ctx context.Context) string
- func (cgb *ConnectivityGroupBy) Strings(ctx context.Context) ([]string, error)
- func (cgb *ConnectivityGroupBy) StringsX(ctx context.Context) []string
- type ConnectivityMutation
- func (m *ConnectivityMutation) AddField(name string, value ent.Value) error
- func (m *ConnectivityMutation) AddedEdges() []string
- func (m *ConnectivityMutation) AddedField(name string) (ent.Value, bool)
- func (m *ConnectivityMutation) AddedFields() []string
- func (m *ConnectivityMutation) AddedIDs(name string) []ent.Value
- func (m *ConnectivityMutation) Bluetooth() (r bool, exists bool)
- func (m *ConnectivityMutation) Carrier() (r bool, exists bool)
- func (m *ConnectivityMutation) Cellular() (r bool, exists bool)
- func (m *ConnectivityMutation) ClearEdge(name string) error
- func (m *ConnectivityMutation) ClearEvent()
- func (m *ConnectivityMutation) ClearField(name string) error
- func (m *ConnectivityMutation) ClearedEdges() []string
- func (m *ConnectivityMutation) ClearedFields() []string
- func (m ConnectivityMutation) Client() *Client
- func (m *ConnectivityMutation) EdgeCleared(name string) bool
- func (m *ConnectivityMutation) Ethernet() (r bool, exists bool)
- func (m *ConnectivityMutation) EventCleared() bool
- func (m *ConnectivityMutation) EventID() (id uuid.UUID, exists bool)
- func (m *ConnectivityMutation) EventIDs() (ids []uuid.UUID)
- func (m *ConnectivityMutation) Field(name string) (ent.Value, bool)
- func (m *ConnectivityMutation) FieldCleared(name string) bool
- func (m *ConnectivityMutation) Fields() []string
- func (m *ConnectivityMutation) ID() (id int, exists bool)
- func (m *ConnectivityMutation) Isp() (r bool, exists bool)
- func (m *ConnectivityMutation) OldBluetooth(ctx context.Context) (v bool, err error)
- func (m *ConnectivityMutation) OldCarrier(ctx context.Context) (v bool, err error)
- func (m *ConnectivityMutation) OldCellular(ctx context.Context) (v bool, err error)
- func (m *ConnectivityMutation) OldEthernet(ctx context.Context) (v bool, err error)
- func (m *ConnectivityMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ConnectivityMutation) OldIsp(ctx context.Context) (v bool, err error)
- func (m *ConnectivityMutation) OldWifi(ctx context.Context) (v bool, err error)
- func (m *ConnectivityMutation) Op() Op
- func (m *ConnectivityMutation) RemovedEdges() []string
- func (m *ConnectivityMutation) RemovedIDs(name string) []ent.Value
- func (m *ConnectivityMutation) ResetBluetooth()
- func (m *ConnectivityMutation) ResetCarrier()
- func (m *ConnectivityMutation) ResetCellular()
- func (m *ConnectivityMutation) ResetEdge(name string) error
- func (m *ConnectivityMutation) ResetEthernet()
- func (m *ConnectivityMutation) ResetEvent()
- func (m *ConnectivityMutation) ResetField(name string) error
- func (m *ConnectivityMutation) ResetIsp()
- func (m *ConnectivityMutation) ResetWifi()
- func (m *ConnectivityMutation) SetBluetooth(b bool)
- func (m *ConnectivityMutation) SetCarrier(b bool)
- func (m *ConnectivityMutation) SetCellular(b bool)
- func (m *ConnectivityMutation) SetEthernet(b bool)
- func (m *ConnectivityMutation) SetEventID(id uuid.UUID)
- func (m *ConnectivityMutation) SetField(name string, value ent.Value) error
- func (m *ConnectivityMutation) SetIsp(b bool)
- func (m *ConnectivityMutation) SetWifi(b bool)
- func (m ConnectivityMutation) Tx() (*Tx, error)
- func (m *ConnectivityMutation) Type() string
- func (m *ConnectivityMutation) Wifi() (r bool, exists bool)
- type ConnectivityQuery
- func (cq *ConnectivityQuery) All(ctx context.Context) ([]*Connectivity, error)
- func (cq *ConnectivityQuery) AllX(ctx context.Context) []*Connectivity
- func (cq *ConnectivityQuery) Clone() *ConnectivityQuery
- func (cq *ConnectivityQuery) Count(ctx context.Context) (int, error)
- func (cq *ConnectivityQuery) CountX(ctx context.Context) int
- func (cq *ConnectivityQuery) Exist(ctx context.Context) (bool, error)
- func (cq *ConnectivityQuery) ExistX(ctx context.Context) bool
- func (cq *ConnectivityQuery) First(ctx context.Context) (*Connectivity, error)
- func (cq *ConnectivityQuery) FirstID(ctx context.Context) (id int, err error)
- func (cq *ConnectivityQuery) FirstX(ctx context.Context) *Connectivity
- func (cq *ConnectivityQuery) FirstXID(ctx context.Context) int
- func (cq *ConnectivityQuery) GroupBy(field string, fields ...string) *ConnectivityGroupBy
- func (cq *ConnectivityQuery) IDs(ctx context.Context) ([]int, error)
- func (cq *ConnectivityQuery) IDsX(ctx context.Context) []int
- func (cq *ConnectivityQuery) Limit(limit int) *ConnectivityQuery
- func (cq *ConnectivityQuery) Offset(offset int) *ConnectivityQuery
- func (cq *ConnectivityQuery) Only(ctx context.Context) (*Connectivity, error)
- func (cq *ConnectivityQuery) OnlyID(ctx context.Context) (id int, err error)
- func (cq *ConnectivityQuery) OnlyIDX(ctx context.Context) int
- func (cq *ConnectivityQuery) OnlyX(ctx context.Context) *Connectivity
- func (cq *ConnectivityQuery) Order(o ...OrderFunc) *ConnectivityQuery
- func (cq *ConnectivityQuery) QueryEvent() *EventQuery
- func (cq *ConnectivityQuery) Select(field string, fields ...string) *ConnectivitySelect
- func (cq *ConnectivityQuery) Where(ps ...predicate.Connectivity) *ConnectivityQuery
- func (cq *ConnectivityQuery) WithEvent(opts ...func(*EventQuery)) *ConnectivityQuery
- type ConnectivitySelect
- func (cs *ConnectivitySelect) Bool(ctx context.Context) (_ bool, err error)
- func (cs *ConnectivitySelect) BoolX(ctx context.Context) bool
- func (cs *ConnectivitySelect) Bools(ctx context.Context) ([]bool, error)
- func (cs *ConnectivitySelect) BoolsX(ctx context.Context) []bool
- func (cs *ConnectivitySelect) Float64(ctx context.Context) (_ float64, err error)
- func (cs *ConnectivitySelect) Float64X(ctx context.Context) float64
- func (cs *ConnectivitySelect) Float64s(ctx context.Context) ([]float64, error)
- func (cs *ConnectivitySelect) Float64sX(ctx context.Context) []float64
- func (cs *ConnectivitySelect) Int(ctx context.Context) (_ int, err error)
- func (cs *ConnectivitySelect) IntX(ctx context.Context) int
- func (cs *ConnectivitySelect) Ints(ctx context.Context) ([]int, error)
- func (cs *ConnectivitySelect) IntsX(ctx context.Context) []int
- func (cs *ConnectivitySelect) Scan(ctx context.Context, v interface{}) error
- func (cs *ConnectivitySelect) ScanX(ctx context.Context, v interface{})
- func (cs *ConnectivitySelect) String(ctx context.Context) (_ string, err error)
- func (cs *ConnectivitySelect) StringX(ctx context.Context) string
- func (cs *ConnectivitySelect) Strings(ctx context.Context) ([]string, error)
- func (cs *ConnectivitySelect) StringsX(ctx context.Context) []string
- type ConnectivityUpdate
- func (cu *ConnectivityUpdate) ClearEvent() *ConnectivityUpdate
- func (cu *ConnectivityUpdate) Exec(ctx context.Context) error
- func (cu *ConnectivityUpdate) ExecX(ctx context.Context)
- func (cu *ConnectivityUpdate) Mutation() *ConnectivityMutation
- func (cu *ConnectivityUpdate) Save(ctx context.Context) (int, error)
- func (cu *ConnectivityUpdate) SaveX(ctx context.Context) int
- func (cu *ConnectivityUpdate) SetBluetooth(b bool) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetCarrier(b bool) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetCellular(b bool) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetEthernet(b bool) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetEvent(e *Event) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetEventID(id uuid.UUID) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetIsp(b bool) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetNillableEventID(id *uuid.UUID) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) SetWifi(b bool) *ConnectivityUpdate
- func (cu *ConnectivityUpdate) Where(ps ...predicate.Connectivity) *ConnectivityUpdate
- type ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) ClearEvent() *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) Exec(ctx context.Context) error
- func (cuo *ConnectivityUpdateOne) ExecX(ctx context.Context)
- func (cuo *ConnectivityUpdateOne) Mutation() *ConnectivityMutation
- func (cuo *ConnectivityUpdateOne) Save(ctx context.Context) (*Connectivity, error)
- func (cuo *ConnectivityUpdateOne) SaveX(ctx context.Context) *Connectivity
- func (cuo *ConnectivityUpdateOne) SetBluetooth(b bool) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetCarrier(b bool) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetCellular(b bool) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetEthernet(b bool) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetEvent(e *Event) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetEventID(id uuid.UUID) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetIsp(b bool) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetNillableEventID(id *uuid.UUID) *ConnectivityUpdateOne
- func (cuo *ConnectivityUpdateOne) SetWifi(b bool) *ConnectivityUpdateOne
- type ConstraintError
- type Device
- type DeviceClient
- func (c *DeviceClient) Create() *DeviceCreate
- func (c *DeviceClient) CreateBulk(builders ...*DeviceCreate) *DeviceCreateBulk
- func (c *DeviceClient) Delete() *DeviceDelete
- func (c *DeviceClient) DeleteOne(d *Device) *DeviceDeleteOne
- func (c *DeviceClient) DeleteOneID(id string) *DeviceDeleteOne
- func (c *DeviceClient) Get(ctx context.Context, id string) (*Device, error)
- func (c *DeviceClient) GetX(ctx context.Context, id string) *Device
- func (c *DeviceClient) Hooks() []Hook
- func (c *DeviceClient) Query() *DeviceQuery
- func (c *DeviceClient) QueryEvents(d *Device) *EventQuery
- func (c *DeviceClient) Update() *DeviceUpdate
- func (c *DeviceClient) UpdateOne(d *Device) *DeviceUpdateOne
- func (c *DeviceClient) UpdateOneID(id string) *DeviceUpdateOne
- func (c *DeviceClient) Use(hooks ...Hook)
- type DeviceCreate
- func (dc *DeviceCreate) AddEventIDs(ids ...uuid.UUID) *DeviceCreate
- func (dc *DeviceCreate) AddEvents(e ...*Event) *DeviceCreate
- func (dc *DeviceCreate) Mutation() *DeviceMutation
- func (dc *DeviceCreate) Save(ctx context.Context) (*Device, error)
- func (dc *DeviceCreate) SaveX(ctx context.Context) *Device
- func (dc *DeviceCreate) SetDesktop(b bool) *DeviceCreate
- func (dc *DeviceCreate) SetID(s string) *DeviceCreate
- func (dc *DeviceCreate) SetManufacturer(s string) *DeviceCreate
- func (dc *DeviceCreate) SetMobile(b bool) *DeviceCreate
- func (dc *DeviceCreate) SetModel(s string) *DeviceCreate
- func (dc *DeviceCreate) SetName(s string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableDesktop(b *bool) *DeviceCreate
- func (dc *DeviceCreate) SetNillableManufacturer(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableMobile(b *bool) *DeviceCreate
- func (dc *DeviceCreate) SetNillableModel(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableName(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableTablet(b *bool) *DeviceCreate
- func (dc *DeviceCreate) SetNillableType(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableVersion(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetProperties(m map[string]interface{}) *DeviceCreate
- func (dc *DeviceCreate) SetTablet(b bool) *DeviceCreate
- func (dc *DeviceCreate) SetType(s string) *DeviceCreate
- func (dc *DeviceCreate) SetVersion(s string) *DeviceCreate
- type DeviceCreateBulk
- type DeviceDelete
- type DeviceDeleteOne
- type DeviceEdges
- type DeviceGroupBy
- func (dgb *DeviceGroupBy) Aggregate(fns ...AggregateFunc) *DeviceGroupBy
- func (dgb *DeviceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (dgb *DeviceGroupBy) BoolX(ctx context.Context) bool
- func (dgb *DeviceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (dgb *DeviceGroupBy) BoolsX(ctx context.Context) []bool
- func (dgb *DeviceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (dgb *DeviceGroupBy) Float64X(ctx context.Context) float64
- func (dgb *DeviceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (dgb *DeviceGroupBy) Float64sX(ctx context.Context) []float64
- func (dgb *DeviceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (dgb *DeviceGroupBy) IntX(ctx context.Context) int
- func (dgb *DeviceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (dgb *DeviceGroupBy) IntsX(ctx context.Context) []int
- func (dgb *DeviceGroupBy) Scan(ctx context.Context, v interface{}) error
- func (dgb *DeviceGroupBy) ScanX(ctx context.Context, v interface{})
- func (dgb *DeviceGroupBy) String(ctx context.Context) (_ string, err error)
- func (dgb *DeviceGroupBy) StringX(ctx context.Context) string
- func (dgb *DeviceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (dgb *DeviceGroupBy) StringsX(ctx context.Context) []string
- type DeviceMutation
- func (m *DeviceMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *DeviceMutation) AddField(name string, value ent.Value) error
- func (m *DeviceMutation) AddedEdges() []string
- func (m *DeviceMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceMutation) AddedFields() []string
- func (m *DeviceMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceMutation) ClearDesktop()
- func (m *DeviceMutation) ClearEdge(name string) error
- func (m *DeviceMutation) ClearField(name string) error
- func (m *DeviceMutation) ClearManufacturer()
- func (m *DeviceMutation) ClearMobile()
- func (m *DeviceMutation) ClearModel()
- func (m *DeviceMutation) ClearName()
- func (m *DeviceMutation) ClearProperties()
- func (m *DeviceMutation) ClearTablet()
- func (m *DeviceMutation) ClearType()
- func (m *DeviceMutation) ClearVersion()
- func (m *DeviceMutation) ClearedEdges() []string
- func (m *DeviceMutation) ClearedFields() []string
- func (m DeviceMutation) Client() *Client
- func (m *DeviceMutation) Desktop() (r bool, exists bool)
- func (m *DeviceMutation) DesktopCleared() bool
- func (m *DeviceMutation) EdgeCleared(name string) bool
- func (m *DeviceMutation) EventsIDs() (ids []uuid.UUID)
- func (m *DeviceMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceMutation) FieldCleared(name string) bool
- func (m *DeviceMutation) Fields() []string
- func (m *DeviceMutation) GetType() (r string, exists bool)
- func (m *DeviceMutation) ID() (id string, exists bool)
- func (m *DeviceMutation) Manufacturer() (r string, exists bool)
- func (m *DeviceMutation) ManufacturerCleared() bool
- func (m *DeviceMutation) Mobile() (r bool, exists bool)
- func (m *DeviceMutation) MobileCleared() bool
- func (m *DeviceMutation) Model() (r string, exists bool)
- func (m *DeviceMutation) ModelCleared() bool
- func (m *DeviceMutation) Name() (r string, exists bool)
- func (m *DeviceMutation) NameCleared() bool
- func (m *DeviceMutation) OldDesktop(ctx context.Context) (v bool, err error)
- func (m *DeviceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceMutation) OldManufacturer(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldMobile(ctx context.Context) (v bool, err error)
- func (m *DeviceMutation) OldModel(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldName(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldProperties(ctx context.Context) (v map[string]interface{}, err error)
- func (m *DeviceMutation) OldTablet(ctx context.Context) (v bool, err error)
- func (m *DeviceMutation) OldType(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) Op() Op
- func (m *DeviceMutation) Properties() (r map[string]interface{}, exists bool)
- func (m *DeviceMutation) PropertiesCleared() bool
- func (m *DeviceMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *DeviceMutation) RemovedEdges() []string
- func (m *DeviceMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *DeviceMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceMutation) ResetDesktop()
- func (m *DeviceMutation) ResetEdge(name string) error
- func (m *DeviceMutation) ResetEvents()
- func (m *DeviceMutation) ResetField(name string) error
- func (m *DeviceMutation) ResetManufacturer()
- func (m *DeviceMutation) ResetMobile()
- func (m *DeviceMutation) ResetModel()
- func (m *DeviceMutation) ResetName()
- func (m *DeviceMutation) ResetProperties()
- func (m *DeviceMutation) ResetTablet()
- func (m *DeviceMutation) ResetType()
- func (m *DeviceMutation) ResetVersion()
- func (m *DeviceMutation) SetDesktop(b bool)
- func (m *DeviceMutation) SetField(name string, value ent.Value) error
- func (m *DeviceMutation) SetID(id string)
- func (m *DeviceMutation) SetManufacturer(s string)
- func (m *DeviceMutation) SetMobile(b bool)
- func (m *DeviceMutation) SetModel(s string)
- func (m *DeviceMutation) SetName(s string)
- func (m *DeviceMutation) SetProperties(value map[string]interface{})
- func (m *DeviceMutation) SetTablet(b bool)
- func (m *DeviceMutation) SetType(s string)
- func (m *DeviceMutation) SetVersion(s string)
- func (m *DeviceMutation) Tablet() (r bool, exists bool)
- func (m *DeviceMutation) TabletCleared() bool
- func (m DeviceMutation) Tx() (*Tx, error)
- func (m *DeviceMutation) Type() string
- func (m *DeviceMutation) TypeCleared() bool
- func (m *DeviceMutation) Version() (r string, exists bool)
- func (m *DeviceMutation) VersionCleared() bool
- type DeviceQuery
- func (dq *DeviceQuery) All(ctx context.Context) ([]*Device, error)
- func (dq *DeviceQuery) AllX(ctx context.Context) []*Device
- func (dq *DeviceQuery) Clone() *DeviceQuery
- func (dq *DeviceQuery) Count(ctx context.Context) (int, error)
- func (dq *DeviceQuery) CountX(ctx context.Context) int
- func (dq *DeviceQuery) Exist(ctx context.Context) (bool, error)
- func (dq *DeviceQuery) ExistX(ctx context.Context) bool
- func (dq *DeviceQuery) First(ctx context.Context) (*Device, error)
- func (dq *DeviceQuery) FirstID(ctx context.Context) (id string, err error)
- func (dq *DeviceQuery) FirstX(ctx context.Context) *Device
- func (dq *DeviceQuery) FirstXID(ctx context.Context) string
- func (dq *DeviceQuery) GroupBy(field string, fields ...string) *DeviceGroupBy
- func (dq *DeviceQuery) IDs(ctx context.Context) ([]string, error)
- func (dq *DeviceQuery) IDsX(ctx context.Context) []string
- func (dq *DeviceQuery) Limit(limit int) *DeviceQuery
- func (dq *DeviceQuery) Offset(offset int) *DeviceQuery
- func (dq *DeviceQuery) Only(ctx context.Context) (*Device, error)
- func (dq *DeviceQuery) OnlyID(ctx context.Context) (id string, err error)
- func (dq *DeviceQuery) OnlyIDX(ctx context.Context) string
- func (dq *DeviceQuery) OnlyX(ctx context.Context) *Device
- func (dq *DeviceQuery) Order(o ...OrderFunc) *DeviceQuery
- func (dq *DeviceQuery) QueryEvents() *EventQuery
- func (dq *DeviceQuery) Select(field string, fields ...string) *DeviceSelect
- func (dq *DeviceQuery) Where(ps ...predicate.Device) *DeviceQuery
- func (dq *DeviceQuery) WithEvents(opts ...func(*EventQuery)) *DeviceQuery
- type DeviceSelect
- func (ds *DeviceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ds *DeviceSelect) BoolX(ctx context.Context) bool
- func (ds *DeviceSelect) Bools(ctx context.Context) ([]bool, error)
- func (ds *DeviceSelect) BoolsX(ctx context.Context) []bool
- func (ds *DeviceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ds *DeviceSelect) Float64X(ctx context.Context) float64
- func (ds *DeviceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ds *DeviceSelect) Float64sX(ctx context.Context) []float64
- func (ds *DeviceSelect) Int(ctx context.Context) (_ int, err error)
- func (ds *DeviceSelect) IntX(ctx context.Context) int
- func (ds *DeviceSelect) Ints(ctx context.Context) ([]int, error)
- func (ds *DeviceSelect) IntsX(ctx context.Context) []int
- func (ds *DeviceSelect) Scan(ctx context.Context, v interface{}) error
- func (ds *DeviceSelect) ScanX(ctx context.Context, v interface{})
- func (ds *DeviceSelect) String(ctx context.Context) (_ string, err error)
- func (ds *DeviceSelect) StringX(ctx context.Context) string
- func (ds *DeviceSelect) Strings(ctx context.Context) ([]string, error)
- func (ds *DeviceSelect) StringsX(ctx context.Context) []string
- type DeviceUpdate
- func (du *DeviceUpdate) AddEventIDs(ids ...uuid.UUID) *DeviceUpdate
- func (du *DeviceUpdate) AddEvents(e ...*Event) *DeviceUpdate
- func (du *DeviceUpdate) ClearDesktop() *DeviceUpdate
- func (du *DeviceUpdate) ClearManufacturer() *DeviceUpdate
- func (du *DeviceUpdate) ClearMobile() *DeviceUpdate
- func (du *DeviceUpdate) ClearModel() *DeviceUpdate
- func (du *DeviceUpdate) ClearName() *DeviceUpdate
- func (du *DeviceUpdate) ClearProperties() *DeviceUpdate
- func (du *DeviceUpdate) ClearTablet() *DeviceUpdate
- func (du *DeviceUpdate) ClearType() *DeviceUpdate
- func (du *DeviceUpdate) ClearVersion() *DeviceUpdate
- func (du *DeviceUpdate) Exec(ctx context.Context) error
- func (du *DeviceUpdate) ExecX(ctx context.Context)
- func (du *DeviceUpdate) Mutation() *DeviceMutation
- func (du *DeviceUpdate) RemoveEventIDs(ids ...uuid.UUID) *DeviceUpdate
- func (du *DeviceUpdate) RemoveEvents(e ...*Event) *DeviceUpdate
- func (du *DeviceUpdate) Save(ctx context.Context) (int, error)
- func (du *DeviceUpdate) SaveX(ctx context.Context) int
- func (du *DeviceUpdate) SetDesktop(b bool) *DeviceUpdate
- func (du *DeviceUpdate) SetManufacturer(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetMobile(b bool) *DeviceUpdate
- func (du *DeviceUpdate) SetModel(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetName(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableDesktop(b *bool) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableManufacturer(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableMobile(b *bool) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableModel(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableName(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableTablet(b *bool) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableType(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableVersion(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetProperties(m map[string]interface{}) *DeviceUpdate
- func (du *DeviceUpdate) SetTablet(b bool) *DeviceUpdate
- func (du *DeviceUpdate) SetType(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetVersion(s string) *DeviceUpdate
- func (du *DeviceUpdate) Where(ps ...predicate.Device) *DeviceUpdate
- type DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddEventIDs(ids ...uuid.UUID) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddEvents(e ...*Event) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearDesktop() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearManufacturer() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearMobile() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearModel() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearName() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearProperties() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearTablet() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearType() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearVersion() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) Exec(ctx context.Context) error
- func (duo *DeviceUpdateOne) ExecX(ctx context.Context)
- func (duo *DeviceUpdateOne) Mutation() *DeviceMutation
- func (duo *DeviceUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) RemoveEvents(e ...*Event) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) Save(ctx context.Context) (*Device, error)
- func (duo *DeviceUpdateOne) SaveX(ctx context.Context) *Device
- func (duo *DeviceUpdateOne) SetDesktop(b bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetManufacturer(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetMobile(b bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetModel(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetName(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableDesktop(b *bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableManufacturer(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableMobile(b *bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableModel(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableName(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableTablet(b *bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableType(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableVersion(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetProperties(m map[string]interface{}) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetTablet(b bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetType(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetVersion(s string) *DeviceUpdateOne
- type Devices
- type Event
- func (e *Event) QueryAction() *ActionQuery
- func (e *Event) QueryAlias() *AliasQuery
- func (e *Event) QueryApp() *AppQuery
- func (e *Event) QueryBrowser() *BrowserQuery
- func (e *Event) QueryCampaign() *CampaignQuery
- func (e *Event) QueryConnectivity() *ConnectivityQuery
- func (e *Event) QueryDevice() *DeviceQuery
- func (e *Event) QueryExtra() *ExtraQuery
- func (e *Event) QueryGroup() *GroupQuery
- func (e *Event) QueryLibrary() *LibraryQuery
- func (e *Event) QueryLocation() *LocationQuery
- func (e *Event) QueryNetwork() *NetworkQuery
- func (e *Event) QueryOs() *OSContextQuery
- func (e *Event) QueryPage() *PageQuery
- func (e *Event) QueryReferrer() *ReferrerQuery
- func (e *Event) QueryScreen() *ScreenQuery
- func (e *Event) QuerySession() *SessionQuery
- func (e *Event) QueryTiming() *TimingQuery
- func (e *Event) QueryUser() *UserQuery
- func (e *Event) QueryViewport() *ViewportQuery
- func (e *Event) String() string
- func (e *Event) Unwrap() *Event
- func (e *Event) Update() *EventUpdateOne
- type EventClient
- func (c *EventClient) Create() *EventCreate
- func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk
- func (c *EventClient) Delete() *EventDelete
- func (c *EventClient) DeleteOne(e *Event) *EventDeleteOne
- func (c *EventClient) DeleteOneID(id uuid.UUID) *EventDeleteOne
- func (c *EventClient) Get(ctx context.Context, id uuid.UUID) (*Event, error)
- func (c *EventClient) GetX(ctx context.Context, id uuid.UUID) *Event
- func (c *EventClient) Hooks() []Hook
- func (c *EventClient) Query() *EventQuery
- func (c *EventClient) QueryAction(e *Event) *ActionQuery
- func (c *EventClient) QueryAlias(e *Event) *AliasQuery
- func (c *EventClient) QueryApp(e *Event) *AppQuery
- func (c *EventClient) QueryBrowser(e *Event) *BrowserQuery
- func (c *EventClient) QueryCampaign(e *Event) *CampaignQuery
- func (c *EventClient) QueryConnectivity(e *Event) *ConnectivityQuery
- func (c *EventClient) QueryDevice(e *Event) *DeviceQuery
- func (c *EventClient) QueryExtra(e *Event) *ExtraQuery
- func (c *EventClient) QueryGroup(e *Event) *GroupQuery
- func (c *EventClient) QueryLibrary(e *Event) *LibraryQuery
- func (c *EventClient) QueryLocation(e *Event) *LocationQuery
- func (c *EventClient) QueryNetwork(e *Event) *NetworkQuery
- func (c *EventClient) QueryOs(e *Event) *OSContextQuery
- func (c *EventClient) QueryPage(e *Event) *PageQuery
- func (c *EventClient) QueryReferrer(e *Event) *ReferrerQuery
- func (c *EventClient) QueryScreen(e *Event) *ScreenQuery
- func (c *EventClient) QuerySession(e *Event) *SessionQuery
- func (c *EventClient) QueryTiming(e *Event) *TimingQuery
- func (c *EventClient) QueryUser(e *Event) *UserQuery
- func (c *EventClient) QueryViewport(e *Event) *ViewportQuery
- func (c *EventClient) Update() *EventUpdate
- func (c *EventClient) UpdateOne(e *Event) *EventUpdateOne
- func (c *EventClient) UpdateOneID(id uuid.UUID) *EventUpdateOne
- func (c *EventClient) Use(hooks ...Hook)
- type EventCreate
- func (ec *EventCreate) Mutation() *EventMutation
- func (ec *EventCreate) Save(ctx context.Context) (*Event, error)
- func (ec *EventCreate) SaveX(ctx context.Context) *Event
- func (ec *EventCreate) SetAction(a *Action) *EventCreate
- func (ec *EventCreate) SetActionID(id int) *EventCreate
- func (ec *EventCreate) SetAlias(a *Alias) *EventCreate
- func (ec *EventCreate) SetAliasID(id int) *EventCreate
- func (ec *EventCreate) SetApp(a *App) *EventCreate
- func (ec *EventCreate) SetAppID(id int) *EventCreate
- func (ec *EventCreate) SetBrowser(b *Browser) *EventCreate
- func (ec *EventCreate) SetBrowserID(id int) *EventCreate
- func (ec *EventCreate) SetCampaign(c *Campaign) *EventCreate
- func (ec *EventCreate) SetCampaignID(id int) *EventCreate
- func (ec *EventCreate) SetChannel(s string) *EventCreate
- func (ec *EventCreate) SetConnectivity(c *Connectivity) *EventCreate
- func (ec *EventCreate) SetConnectivityID(id int) *EventCreate
- func (ec *EventCreate) SetDevice(d *Device) *EventCreate
- func (ec *EventCreate) SetDeviceID(id string) *EventCreate
- func (ec *EventCreate) SetEvent(e event.Event) *EventCreate
- func (ec *EventCreate) SetExtra(e *Extra) *EventCreate
- func (ec *EventCreate) SetExtraID(id int) *EventCreate
- func (ec *EventCreate) SetGroup(g *Group) *EventCreate
- func (ec *EventCreate) SetGroupID(id int) *EventCreate
- func (ec *EventCreate) SetID(u uuid.UUID) *EventCreate
- func (ec *EventCreate) SetLibrary(l *Library) *EventCreate
- func (ec *EventCreate) SetLibraryID(id int) *EventCreate
- func (ec *EventCreate) SetLocation(l *Location) *EventCreate
- func (ec *EventCreate) SetLocationID(id int) *EventCreate
- func (ec *EventCreate) SetNetwork(n *Network) *EventCreate
- func (ec *EventCreate) SetNetworkID(id int) *EventCreate
- func (ec *EventCreate) SetNillableActionID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableAliasID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableAppID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableBrowserID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableCampaignID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableChannel(s *string) *EventCreate
- func (ec *EventCreate) SetNillableConnectivityID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableDeviceID(id *string) *EventCreate
- func (ec *EventCreate) SetNillableExtraID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableGroupID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableLibraryID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableLocationID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableNetworkID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableOsID(id *int) *EventCreate
- func (ec *EventCreate) SetNillablePageID(id *int) *EventCreate
- func (ec *EventCreate) SetNillablePlatform(s *string) *EventCreate
- func (ec *EventCreate) SetNillableReferrerID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableScreenID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableSessionID(id *uuid.UUID) *EventCreate
- func (ec *EventCreate) SetNillableTimingID(id *int) *EventCreate
- func (ec *EventCreate) SetNillableUserID(id *string) *EventCreate
- func (ec *EventCreate) SetNillableViewportID(id *int) *EventCreate
- func (ec *EventCreate) SetNonInteractive(b bool) *EventCreate
- func (ec *EventCreate) SetOs(o *OSContext) *EventCreate
- func (ec *EventCreate) SetOsID(id int) *EventCreate
- func (ec *EventCreate) SetPage(p *Page) *EventCreate
- func (ec *EventCreate) SetPageID(id int) *EventCreate
- func (ec *EventCreate) SetPlatform(s string) *EventCreate
- func (ec *EventCreate) SetProperties(m map[string]interface{}) *EventCreate
- func (ec *EventCreate) SetReferrer(r *Referrer) *EventCreate
- func (ec *EventCreate) SetReferrerID(id int) *EventCreate
- func (ec *EventCreate) SetScreen(s *Screen) *EventCreate
- func (ec *EventCreate) SetScreenID(id int) *EventCreate
- func (ec *EventCreate) SetSession(s *Session) *EventCreate
- func (ec *EventCreate) SetSessionID(id uuid.UUID) *EventCreate
- func (ec *EventCreate) SetTimestamp(t time.Time) *EventCreate
- func (ec *EventCreate) SetTiming(t *Timing) *EventCreate
- func (ec *EventCreate) SetTimingID(id int) *EventCreate
- func (ec *EventCreate) SetTrackingID(s string) *EventCreate
- func (ec *EventCreate) SetUser(u *User) *EventCreate
- func (ec *EventCreate) SetUserID(id string) *EventCreate
- func (ec *EventCreate) SetViewport(v *Viewport) *EventCreate
- func (ec *EventCreate) SetViewportID(id int) *EventCreate
- type EventCreateBulk
- type EventDelete
- type EventDeleteOne
- type EventEdges
- func (e EventEdges) ActionOrErr() (*Action, error)
- func (e EventEdges) AliasOrErr() (*Alias, error)
- func (e EventEdges) AppOrErr() (*App, error)
- func (e EventEdges) BrowserOrErr() (*Browser, error)
- func (e EventEdges) CampaignOrErr() (*Campaign, error)
- func (e EventEdges) ConnectivityOrErr() (*Connectivity, error)
- func (e EventEdges) DeviceOrErr() (*Device, error)
- func (e EventEdges) ExtraOrErr() (*Extra, error)
- func (e EventEdges) GroupOrErr() (*Group, error)
- func (e EventEdges) LibraryOrErr() (*Library, error)
- func (e EventEdges) LocationOrErr() (*Location, error)
- func (e EventEdges) NetworkOrErr() (*Network, error)
- func (e EventEdges) OsOrErr() (*OSContext, error)
- func (e EventEdges) PageOrErr() (*Page, error)
- func (e EventEdges) ReferrerOrErr() (*Referrer, error)
- func (e EventEdges) ScreenOrErr() (*Screen, error)
- func (e EventEdges) SessionOrErr() (*Session, error)
- func (e EventEdges) TimingOrErr() (*Timing, error)
- func (e EventEdges) UserOrErr() (*User, error)
- func (e EventEdges) ViewportOrErr() (*Viewport, error)
- type EventGroupBy
- func (egb *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy
- func (egb *EventGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (egb *EventGroupBy) BoolX(ctx context.Context) bool
- func (egb *EventGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (egb *EventGroupBy) BoolsX(ctx context.Context) []bool
- func (egb *EventGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (egb *EventGroupBy) Float64X(ctx context.Context) float64
- func (egb *EventGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (egb *EventGroupBy) Float64sX(ctx context.Context) []float64
- func (egb *EventGroupBy) Int(ctx context.Context) (_ int, err error)
- func (egb *EventGroupBy) IntX(ctx context.Context) int
- func (egb *EventGroupBy) Ints(ctx context.Context) ([]int, error)
- func (egb *EventGroupBy) IntsX(ctx context.Context) []int
- func (egb *EventGroupBy) Scan(ctx context.Context, v interface{}) error
- func (egb *EventGroupBy) ScanX(ctx context.Context, v interface{})
- func (egb *EventGroupBy) String(ctx context.Context) (_ string, err error)
- func (egb *EventGroupBy) StringX(ctx context.Context) string
- func (egb *EventGroupBy) Strings(ctx context.Context) ([]string, error)
- func (egb *EventGroupBy) StringsX(ctx context.Context) []string
- type EventMutation
- func (m *EventMutation) ActionCleared() bool
- func (m *EventMutation) ActionID() (id int, exists bool)
- func (m *EventMutation) ActionIDs() (ids []int)
- func (m *EventMutation) AddField(name string, value ent.Value) error
- func (m *EventMutation) AddedEdges() []string
- func (m *EventMutation) AddedField(name string) (ent.Value, bool)
- func (m *EventMutation) AddedFields() []string
- func (m *EventMutation) AddedIDs(name string) []ent.Value
- func (m *EventMutation) AliasCleared() bool
- func (m *EventMutation) AliasID() (id int, exists bool)
- func (m *EventMutation) AliasIDs() (ids []int)
- func (m *EventMutation) AppCleared() bool
- func (m *EventMutation) AppID() (id int, exists bool)
- func (m *EventMutation) AppIDs() (ids []int)
- func (m *EventMutation) BrowserCleared() bool
- func (m *EventMutation) BrowserID() (id int, exists bool)
- func (m *EventMutation) BrowserIDs() (ids []int)
- func (m *EventMutation) CampaignCleared() bool
- func (m *EventMutation) CampaignID() (id int, exists bool)
- func (m *EventMutation) CampaignIDs() (ids []int)
- func (m *EventMutation) Channel() (r string, exists bool)
- func (m *EventMutation) ChannelCleared() bool
- func (m *EventMutation) ClearAction()
- func (m *EventMutation) ClearAlias()
- func (m *EventMutation) ClearApp()
- func (m *EventMutation) ClearBrowser()
- func (m *EventMutation) ClearCampaign()
- func (m *EventMutation) ClearChannel()
- func (m *EventMutation) ClearConnectivity()
- func (m *EventMutation) ClearDevice()
- func (m *EventMutation) ClearEdge(name string) error
- func (m *EventMutation) ClearExtra()
- func (m *EventMutation) ClearField(name string) error
- func (m *EventMutation) ClearGroup()
- func (m *EventMutation) ClearLibrary()
- func (m *EventMutation) ClearLocation()
- func (m *EventMutation) ClearNetwork()
- func (m *EventMutation) ClearOs()
- func (m *EventMutation) ClearPage()
- func (m *EventMutation) ClearPlatform()
- func (m *EventMutation) ClearProperties()
- func (m *EventMutation) ClearReferrer()
- func (m *EventMutation) ClearScreen()
- func (m *EventMutation) ClearSession()
- func (m *EventMutation) ClearTiming()
- func (m *EventMutation) ClearUser()
- func (m *EventMutation) ClearViewport()
- func (m *EventMutation) ClearedEdges() []string
- func (m *EventMutation) ClearedFields() []string
- func (m EventMutation) Client() *Client
- func (m *EventMutation) ConnectivityCleared() bool
- func (m *EventMutation) ConnectivityID() (id int, exists bool)
- func (m *EventMutation) ConnectivityIDs() (ids []int)
- func (m *EventMutation) DeviceCleared() bool
- func (m *EventMutation) DeviceID() (id string, exists bool)
- func (m *EventMutation) DeviceIDs() (ids []string)
- func (m *EventMutation) EdgeCleared(name string) bool
- func (m *EventMutation) Event() (r event.Event, exists bool)
- func (m *EventMutation) ExtraCleared() bool
- func (m *EventMutation) ExtraID() (id int, exists bool)
- func (m *EventMutation) ExtraIDs() (ids []int)
- func (m *EventMutation) Field(name string) (ent.Value, bool)
- func (m *EventMutation) FieldCleared(name string) bool
- func (m *EventMutation) Fields() []string
- func (m *EventMutation) GroupCleared() bool
- func (m *EventMutation) GroupID() (id int, exists bool)
- func (m *EventMutation) GroupIDs() (ids []int)
- func (m *EventMutation) ID() (id uuid.UUID, exists bool)
- func (m *EventMutation) LibraryCleared() bool
- func (m *EventMutation) LibraryID() (id int, exists bool)
- func (m *EventMutation) LibraryIDs() (ids []int)
- func (m *EventMutation) LocationCleared() bool
- func (m *EventMutation) LocationID() (id int, exists bool)
- func (m *EventMutation) LocationIDs() (ids []int)
- func (m *EventMutation) NetworkCleared() bool
- func (m *EventMutation) NetworkID() (id int, exists bool)
- func (m *EventMutation) NetworkIDs() (ids []int)
- func (m *EventMutation) NonInteractive() (r bool, exists bool)
- func (m *EventMutation) OldChannel(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldEvent(ctx context.Context) (v event.Event, err error)
- func (m *EventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *EventMutation) OldNonInteractive(ctx context.Context) (v bool, err error)
- func (m *EventMutation) OldPlatform(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldProperties(ctx context.Context) (v map[string]interface{}, err error)
- func (m *EventMutation) OldTimestamp(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldTrackingID(ctx context.Context) (v string, err error)
- func (m *EventMutation) Op() Op
- func (m *EventMutation) OsCleared() bool
- func (m *EventMutation) OsID() (id int, exists bool)
- func (m *EventMutation) OsIDs() (ids []int)
- func (m *EventMutation) PageCleared() bool
- func (m *EventMutation) PageID() (id int, exists bool)
- func (m *EventMutation) PageIDs() (ids []int)
- func (m *EventMutation) Platform() (r string, exists bool)
- func (m *EventMutation) PlatformCleared() bool
- func (m *EventMutation) Properties() (r map[string]interface{}, exists bool)
- func (m *EventMutation) PropertiesCleared() bool
- func (m *EventMutation) ReferrerCleared() bool
- func (m *EventMutation) ReferrerID() (id int, exists bool)
- func (m *EventMutation) ReferrerIDs() (ids []int)
- func (m *EventMutation) RemovedEdges() []string
- func (m *EventMutation) RemovedIDs(name string) []ent.Value
- func (m *EventMutation) ResetAction()
- func (m *EventMutation) ResetAlias()
- func (m *EventMutation) ResetApp()
- func (m *EventMutation) ResetBrowser()
- func (m *EventMutation) ResetCampaign()
- func (m *EventMutation) ResetChannel()
- func (m *EventMutation) ResetConnectivity()
- func (m *EventMutation) ResetDevice()
- func (m *EventMutation) ResetEdge(name string) error
- func (m *EventMutation) ResetEvent()
- func (m *EventMutation) ResetExtra()
- func (m *EventMutation) ResetField(name string) error
- func (m *EventMutation) ResetGroup()
- func (m *EventMutation) ResetLibrary()
- func (m *EventMutation) ResetLocation()
- func (m *EventMutation) ResetNetwork()
- func (m *EventMutation) ResetNonInteractive()
- func (m *EventMutation) ResetOs()
- func (m *EventMutation) ResetPage()
- func (m *EventMutation) ResetPlatform()
- func (m *EventMutation) ResetProperties()
- func (m *EventMutation) ResetReferrer()
- func (m *EventMutation) ResetScreen()
- func (m *EventMutation) ResetSession()
- func (m *EventMutation) ResetTimestamp()
- func (m *EventMutation) ResetTiming()
- func (m *EventMutation) ResetTrackingID()
- func (m *EventMutation) ResetUser()
- func (m *EventMutation) ResetViewport()
- func (m *EventMutation) ScreenCleared() bool
- func (m *EventMutation) ScreenID() (id int, exists bool)
- func (m *EventMutation) ScreenIDs() (ids []int)
- func (m *EventMutation) SessionCleared() bool
- func (m *EventMutation) SessionID() (id uuid.UUID, exists bool)
- func (m *EventMutation) SessionIDs() (ids []uuid.UUID)
- func (m *EventMutation) SetActionID(id int)
- func (m *EventMutation) SetAliasID(id int)
- func (m *EventMutation) SetAppID(id int)
- func (m *EventMutation) SetBrowserID(id int)
- func (m *EventMutation) SetCampaignID(id int)
- func (m *EventMutation) SetChannel(s string)
- func (m *EventMutation) SetConnectivityID(id int)
- func (m *EventMutation) SetDeviceID(id string)
- func (m *EventMutation) SetEvent(e event.Event)
- func (m *EventMutation) SetExtraID(id int)
- func (m *EventMutation) SetField(name string, value ent.Value) error
- func (m *EventMutation) SetGroupID(id int)
- func (m *EventMutation) SetID(id uuid.UUID)
- func (m *EventMutation) SetLibraryID(id int)
- func (m *EventMutation) SetLocationID(id int)
- func (m *EventMutation) SetNetworkID(id int)
- func (m *EventMutation) SetNonInteractive(b bool)
- func (m *EventMutation) SetOsID(id int)
- func (m *EventMutation) SetPageID(id int)
- func (m *EventMutation) SetPlatform(s string)
- func (m *EventMutation) SetProperties(value map[string]interface{})
- func (m *EventMutation) SetReferrerID(id int)
- func (m *EventMutation) SetScreenID(id int)
- func (m *EventMutation) SetSessionID(id uuid.UUID)
- func (m *EventMutation) SetTimestamp(t time.Time)
- func (m *EventMutation) SetTimingID(id int)
- func (m *EventMutation) SetTrackingID(s string)
- func (m *EventMutation) SetUserID(id string)
- func (m *EventMutation) SetViewportID(id int)
- func (m *EventMutation) Timestamp() (r time.Time, exists bool)
- func (m *EventMutation) TimingCleared() bool
- func (m *EventMutation) TimingID() (id int, exists bool)
- func (m *EventMutation) TimingIDs() (ids []int)
- func (m *EventMutation) TrackingID() (r string, exists bool)
- func (m EventMutation) Tx() (*Tx, error)
- func (m *EventMutation) Type() string
- func (m *EventMutation) UserCleared() bool
- func (m *EventMutation) UserID() (id string, exists bool)
- func (m *EventMutation) UserIDs() (ids []string)
- func (m *EventMutation) ViewportCleared() bool
- func (m *EventMutation) ViewportID() (id int, exists bool)
- func (m *EventMutation) ViewportIDs() (ids []int)
- type EventQuery
- func (eq *EventQuery) All(ctx context.Context) ([]*Event, error)
- func (eq *EventQuery) AllX(ctx context.Context) []*Event
- func (eq *EventQuery) Clone() *EventQuery
- func (eq *EventQuery) Count(ctx context.Context) (int, error)
- func (eq *EventQuery) CountX(ctx context.Context) int
- func (eq *EventQuery) Exist(ctx context.Context) (bool, error)
- func (eq *EventQuery) ExistX(ctx context.Context) bool
- func (eq *EventQuery) First(ctx context.Context) (*Event, error)
- func (eq *EventQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (eq *EventQuery) FirstX(ctx context.Context) *Event
- func (eq *EventQuery) FirstXID(ctx context.Context) uuid.UUID
- func (eq *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy
- func (eq *EventQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (eq *EventQuery) IDsX(ctx context.Context) []uuid.UUID
- func (eq *EventQuery) Limit(limit int) *EventQuery
- func (eq *EventQuery) Offset(offset int) *EventQuery
- func (eq *EventQuery) Only(ctx context.Context) (*Event, error)
- func (eq *EventQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (eq *EventQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (eq *EventQuery) OnlyX(ctx context.Context) *Event
- func (eq *EventQuery) Order(o ...OrderFunc) *EventQuery
- func (eq *EventQuery) QueryAction() *ActionQuery
- func (eq *EventQuery) QueryAlias() *AliasQuery
- func (eq *EventQuery) QueryApp() *AppQuery
- func (eq *EventQuery) QueryBrowser() *BrowserQuery
- func (eq *EventQuery) QueryCampaign() *CampaignQuery
- func (eq *EventQuery) QueryConnectivity() *ConnectivityQuery
- func (eq *EventQuery) QueryDevice() *DeviceQuery
- func (eq *EventQuery) QueryExtra() *ExtraQuery
- func (eq *EventQuery) QueryGroup() *GroupQuery
- func (eq *EventQuery) QueryLibrary() *LibraryQuery
- func (eq *EventQuery) QueryLocation() *LocationQuery
- func (eq *EventQuery) QueryNetwork() *NetworkQuery
- func (eq *EventQuery) QueryOs() *OSContextQuery
- func (eq *EventQuery) QueryPage() *PageQuery
- func (eq *EventQuery) QueryReferrer() *ReferrerQuery
- func (eq *EventQuery) QueryScreen() *ScreenQuery
- func (eq *EventQuery) QuerySession() *SessionQuery
- func (eq *EventQuery) QueryTiming() *TimingQuery
- func (eq *EventQuery) QueryUser() *UserQuery
- func (eq *EventQuery) QueryViewport() *ViewportQuery
- func (eq *EventQuery) Select(field string, fields ...string) *EventSelect
- func (eq *EventQuery) Where(ps ...predicate.Event) *EventQuery
- func (eq *EventQuery) WithAction(opts ...func(*ActionQuery)) *EventQuery
- func (eq *EventQuery) WithAlias(opts ...func(*AliasQuery)) *EventQuery
- func (eq *EventQuery) WithApp(opts ...func(*AppQuery)) *EventQuery
- func (eq *EventQuery) WithBrowser(opts ...func(*BrowserQuery)) *EventQuery
- func (eq *EventQuery) WithCampaign(opts ...func(*CampaignQuery)) *EventQuery
- func (eq *EventQuery) WithConnectivity(opts ...func(*ConnectivityQuery)) *EventQuery
- func (eq *EventQuery) WithDevice(opts ...func(*DeviceQuery)) *EventQuery
- func (eq *EventQuery) WithExtra(opts ...func(*ExtraQuery)) *EventQuery
- func (eq *EventQuery) WithGroup(opts ...func(*GroupQuery)) *EventQuery
- func (eq *EventQuery) WithLibrary(opts ...func(*LibraryQuery)) *EventQuery
- func (eq *EventQuery) WithLocation(opts ...func(*LocationQuery)) *EventQuery
- func (eq *EventQuery) WithNetwork(opts ...func(*NetworkQuery)) *EventQuery
- func (eq *EventQuery) WithOs(opts ...func(*OSContextQuery)) *EventQuery
- func (eq *EventQuery) WithPage(opts ...func(*PageQuery)) *EventQuery
- func (eq *EventQuery) WithReferrer(opts ...func(*ReferrerQuery)) *EventQuery
- func (eq *EventQuery) WithScreen(opts ...func(*ScreenQuery)) *EventQuery
- func (eq *EventQuery) WithSession(opts ...func(*SessionQuery)) *EventQuery
- func (eq *EventQuery) WithTiming(opts ...func(*TimingQuery)) *EventQuery
- func (eq *EventQuery) WithUser(opts ...func(*UserQuery)) *EventQuery
- func (eq *EventQuery) WithViewport(opts ...func(*ViewportQuery)) *EventQuery
- type EventSelect
- func (es *EventSelect) Bool(ctx context.Context) (_ bool, err error)
- func (es *EventSelect) BoolX(ctx context.Context) bool
- func (es *EventSelect) Bools(ctx context.Context) ([]bool, error)
- func (es *EventSelect) BoolsX(ctx context.Context) []bool
- func (es *EventSelect) Float64(ctx context.Context) (_ float64, err error)
- func (es *EventSelect) Float64X(ctx context.Context) float64
- func (es *EventSelect) Float64s(ctx context.Context) ([]float64, error)
- func (es *EventSelect) Float64sX(ctx context.Context) []float64
- func (es *EventSelect) Int(ctx context.Context) (_ int, err error)
- func (es *EventSelect) IntX(ctx context.Context) int
- func (es *EventSelect) Ints(ctx context.Context) ([]int, error)
- func (es *EventSelect) IntsX(ctx context.Context) []int
- func (es *EventSelect) Scan(ctx context.Context, v interface{}) error
- func (es *EventSelect) ScanX(ctx context.Context, v interface{})
- func (es *EventSelect) String(ctx context.Context) (_ string, err error)
- func (es *EventSelect) StringX(ctx context.Context) string
- func (es *EventSelect) Strings(ctx context.Context) ([]string, error)
- func (es *EventSelect) StringsX(ctx context.Context) []string
- type EventUpdate
- func (eu *EventUpdate) ClearAction() *EventUpdate
- func (eu *EventUpdate) ClearAlias() *EventUpdate
- func (eu *EventUpdate) ClearApp() *EventUpdate
- func (eu *EventUpdate) ClearBrowser() *EventUpdate
- func (eu *EventUpdate) ClearCampaign() *EventUpdate
- func (eu *EventUpdate) ClearChannel() *EventUpdate
- func (eu *EventUpdate) ClearConnectivity() *EventUpdate
- func (eu *EventUpdate) ClearDevice() *EventUpdate
- func (eu *EventUpdate) ClearExtra() *EventUpdate
- func (eu *EventUpdate) ClearGroup() *EventUpdate
- func (eu *EventUpdate) ClearLibrary() *EventUpdate
- func (eu *EventUpdate) ClearLocation() *EventUpdate
- func (eu *EventUpdate) ClearNetwork() *EventUpdate
- func (eu *EventUpdate) ClearOs() *EventUpdate
- func (eu *EventUpdate) ClearPage() *EventUpdate
- func (eu *EventUpdate) ClearPlatform() *EventUpdate
- func (eu *EventUpdate) ClearProperties() *EventUpdate
- func (eu *EventUpdate) ClearReferrer() *EventUpdate
- func (eu *EventUpdate) ClearScreen() *EventUpdate
- func (eu *EventUpdate) ClearSession() *EventUpdate
- func (eu *EventUpdate) ClearTiming() *EventUpdate
- func (eu *EventUpdate) ClearUser() *EventUpdate
- func (eu *EventUpdate) ClearViewport() *EventUpdate
- func (eu *EventUpdate) Exec(ctx context.Context) error
- func (eu *EventUpdate) ExecX(ctx context.Context)
- func (eu *EventUpdate) Mutation() *EventMutation
- func (eu *EventUpdate) Save(ctx context.Context) (int, error)
- func (eu *EventUpdate) SaveX(ctx context.Context) int
- func (eu *EventUpdate) SetAction(a *Action) *EventUpdate
- func (eu *EventUpdate) SetActionID(id int) *EventUpdate
- func (eu *EventUpdate) SetAlias(a *Alias) *EventUpdate
- func (eu *EventUpdate) SetAliasID(id int) *EventUpdate
- func (eu *EventUpdate) SetApp(a *App) *EventUpdate
- func (eu *EventUpdate) SetAppID(id int) *EventUpdate
- func (eu *EventUpdate) SetBrowser(b *Browser) *EventUpdate
- func (eu *EventUpdate) SetBrowserID(id int) *EventUpdate
- func (eu *EventUpdate) SetCampaign(c *Campaign) *EventUpdate
- func (eu *EventUpdate) SetCampaignID(id int) *EventUpdate
- func (eu *EventUpdate) SetChannel(s string) *EventUpdate
- func (eu *EventUpdate) SetConnectivity(c *Connectivity) *EventUpdate
- func (eu *EventUpdate) SetConnectivityID(id int) *EventUpdate
- func (eu *EventUpdate) SetDevice(d *Device) *EventUpdate
- func (eu *EventUpdate) SetDeviceID(id string) *EventUpdate
- func (eu *EventUpdate) SetEvent(e event.Event) *EventUpdate
- func (eu *EventUpdate) SetExtra(e *Extra) *EventUpdate
- func (eu *EventUpdate) SetExtraID(id int) *EventUpdate
- func (eu *EventUpdate) SetGroup(g *Group) *EventUpdate
- func (eu *EventUpdate) SetGroupID(id int) *EventUpdate
- func (eu *EventUpdate) SetLibrary(l *Library) *EventUpdate
- func (eu *EventUpdate) SetLibraryID(id int) *EventUpdate
- func (eu *EventUpdate) SetLocation(l *Location) *EventUpdate
- func (eu *EventUpdate) SetLocationID(id int) *EventUpdate
- func (eu *EventUpdate) SetNetwork(n *Network) *EventUpdate
- func (eu *EventUpdate) SetNetworkID(id int) *EventUpdate
- func (eu *EventUpdate) SetNillableActionID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableAliasID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableAppID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableBrowserID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableCampaignID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableChannel(s *string) *EventUpdate
- func (eu *EventUpdate) SetNillableConnectivityID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableDeviceID(id *string) *EventUpdate
- func (eu *EventUpdate) SetNillableExtraID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableGroupID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableLibraryID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableLocationID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableNetworkID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableOsID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillablePageID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillablePlatform(s *string) *EventUpdate
- func (eu *EventUpdate) SetNillableReferrerID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableScreenID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableSessionID(id *uuid.UUID) *EventUpdate
- func (eu *EventUpdate) SetNillableTimingID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNillableUserID(id *string) *EventUpdate
- func (eu *EventUpdate) SetNillableViewportID(id *int) *EventUpdate
- func (eu *EventUpdate) SetNonInteractive(b bool) *EventUpdate
- func (eu *EventUpdate) SetOs(o *OSContext) *EventUpdate
- func (eu *EventUpdate) SetOsID(id int) *EventUpdate
- func (eu *EventUpdate) SetPage(p *Page) *EventUpdate
- func (eu *EventUpdate) SetPageID(id int) *EventUpdate
- func (eu *EventUpdate) SetPlatform(s string) *EventUpdate
- func (eu *EventUpdate) SetProperties(m map[string]interface{}) *EventUpdate
- func (eu *EventUpdate) SetReferrer(r *Referrer) *EventUpdate
- func (eu *EventUpdate) SetReferrerID(id int) *EventUpdate
- func (eu *EventUpdate) SetScreen(s *Screen) *EventUpdate
- func (eu *EventUpdate) SetScreenID(id int) *EventUpdate
- func (eu *EventUpdate) SetSession(s *Session) *EventUpdate
- func (eu *EventUpdate) SetSessionID(id uuid.UUID) *EventUpdate
- func (eu *EventUpdate) SetTimestamp(t time.Time) *EventUpdate
- func (eu *EventUpdate) SetTiming(t *Timing) *EventUpdate
- func (eu *EventUpdate) SetTimingID(id int) *EventUpdate
- func (eu *EventUpdate) SetTrackingID(s string) *EventUpdate
- func (eu *EventUpdate) SetUser(u *User) *EventUpdate
- func (eu *EventUpdate) SetUserID(id string) *EventUpdate
- func (eu *EventUpdate) SetViewport(v *Viewport) *EventUpdate
- func (eu *EventUpdate) SetViewportID(id int) *EventUpdate
- func (eu *EventUpdate) Where(ps ...predicate.Event) *EventUpdate
- type EventUpdateOne
- func (euo *EventUpdateOne) ClearAction() *EventUpdateOne
- func (euo *EventUpdateOne) ClearAlias() *EventUpdateOne
- func (euo *EventUpdateOne) ClearApp() *EventUpdateOne
- func (euo *EventUpdateOne) ClearBrowser() *EventUpdateOne
- func (euo *EventUpdateOne) ClearCampaign() *EventUpdateOne
- func (euo *EventUpdateOne) ClearChannel() *EventUpdateOne
- func (euo *EventUpdateOne) ClearConnectivity() *EventUpdateOne
- func (euo *EventUpdateOne) ClearDevice() *EventUpdateOne
- func (euo *EventUpdateOne) ClearExtra() *EventUpdateOne
- func (euo *EventUpdateOne) ClearGroup() *EventUpdateOne
- func (euo *EventUpdateOne) ClearLibrary() *EventUpdateOne
- func (euo *EventUpdateOne) ClearLocation() *EventUpdateOne
- func (euo *EventUpdateOne) ClearNetwork() *EventUpdateOne
- func (euo *EventUpdateOne) ClearOs() *EventUpdateOne
- func (euo *EventUpdateOne) ClearPage() *EventUpdateOne
- func (euo *EventUpdateOne) ClearPlatform() *EventUpdateOne
- func (euo *EventUpdateOne) ClearProperties() *EventUpdateOne
- func (euo *EventUpdateOne) ClearReferrer() *EventUpdateOne
- func (euo *EventUpdateOne) ClearScreen() *EventUpdateOne
- func (euo *EventUpdateOne) ClearSession() *EventUpdateOne
- func (euo *EventUpdateOne) ClearTiming() *EventUpdateOne
- func (euo *EventUpdateOne) ClearUser() *EventUpdateOne
- func (euo *EventUpdateOne) ClearViewport() *EventUpdateOne
- func (euo *EventUpdateOne) Exec(ctx context.Context) error
- func (euo *EventUpdateOne) ExecX(ctx context.Context)
- func (euo *EventUpdateOne) Mutation() *EventMutation
- func (euo *EventUpdateOne) Save(ctx context.Context) (*Event, error)
- func (euo *EventUpdateOne) SaveX(ctx context.Context) *Event
- func (euo *EventUpdateOne) SetAction(a *Action) *EventUpdateOne
- func (euo *EventUpdateOne) SetActionID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetAlias(a *Alias) *EventUpdateOne
- func (euo *EventUpdateOne) SetAliasID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetApp(a *App) *EventUpdateOne
- func (euo *EventUpdateOne) SetAppID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetBrowser(b *Browser) *EventUpdateOne
- func (euo *EventUpdateOne) SetBrowserID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetCampaign(c *Campaign) *EventUpdateOne
- func (euo *EventUpdateOne) SetCampaignID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetChannel(s string) *EventUpdateOne
- func (euo *EventUpdateOne) SetConnectivity(c *Connectivity) *EventUpdateOne
- func (euo *EventUpdateOne) SetConnectivityID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetDevice(d *Device) *EventUpdateOne
- func (euo *EventUpdateOne) SetDeviceID(id string) *EventUpdateOne
- func (euo *EventUpdateOne) SetEvent(e event.Event) *EventUpdateOne
- func (euo *EventUpdateOne) SetExtra(e *Extra) *EventUpdateOne
- func (euo *EventUpdateOne) SetExtraID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetGroup(g *Group) *EventUpdateOne
- func (euo *EventUpdateOne) SetGroupID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetLibrary(l *Library) *EventUpdateOne
- func (euo *EventUpdateOne) SetLibraryID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetLocation(l *Location) *EventUpdateOne
- func (euo *EventUpdateOne) SetLocationID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNetwork(n *Network) *EventUpdateOne
- func (euo *EventUpdateOne) SetNetworkID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableActionID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableAliasID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableAppID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableBrowserID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableCampaignID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableChannel(s *string) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableConnectivityID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableDeviceID(id *string) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableExtraID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableGroupID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableLibraryID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableLocationID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableNetworkID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableOsID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillablePageID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillablePlatform(s *string) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableReferrerID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableScreenID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableSessionID(id *uuid.UUID) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableTimingID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableUserID(id *string) *EventUpdateOne
- func (euo *EventUpdateOne) SetNillableViewportID(id *int) *EventUpdateOne
- func (euo *EventUpdateOne) SetNonInteractive(b bool) *EventUpdateOne
- func (euo *EventUpdateOne) SetOs(o *OSContext) *EventUpdateOne
- func (euo *EventUpdateOne) SetOsID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetPage(p *Page) *EventUpdateOne
- func (euo *EventUpdateOne) SetPageID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetPlatform(s string) *EventUpdateOne
- func (euo *EventUpdateOne) SetProperties(m map[string]interface{}) *EventUpdateOne
- func (euo *EventUpdateOne) SetReferrer(r *Referrer) *EventUpdateOne
- func (euo *EventUpdateOne) SetReferrerID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetScreen(s *Screen) *EventUpdateOne
- func (euo *EventUpdateOne) SetScreenID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetSession(s *Session) *EventUpdateOne
- func (euo *EventUpdateOne) SetSessionID(id uuid.UUID) *EventUpdateOne
- func (euo *EventUpdateOne) SetTimestamp(t time.Time) *EventUpdateOne
- func (euo *EventUpdateOne) SetTiming(t *Timing) *EventUpdateOne
- func (euo *EventUpdateOne) SetTimingID(id int) *EventUpdateOne
- func (euo *EventUpdateOne) SetTrackingID(s string) *EventUpdateOne
- func (euo *EventUpdateOne) SetUser(u *User) *EventUpdateOne
- func (euo *EventUpdateOne) SetUserID(id string) *EventUpdateOne
- func (euo *EventUpdateOne) SetViewport(v *Viewport) *EventUpdateOne
- func (euo *EventUpdateOne) SetViewportID(id int) *EventUpdateOne
- type Events
- type Extra
- type ExtraClient
- func (c *ExtraClient) Create() *ExtraCreate
- func (c *ExtraClient) CreateBulk(builders ...*ExtraCreate) *ExtraCreateBulk
- func (c *ExtraClient) Delete() *ExtraDelete
- func (c *ExtraClient) DeleteOne(e *Extra) *ExtraDeleteOne
- func (c *ExtraClient) DeleteOneID(id int) *ExtraDeleteOne
- func (c *ExtraClient) Get(ctx context.Context, id int) (*Extra, error)
- func (c *ExtraClient) GetX(ctx context.Context, id int) *Extra
- func (c *ExtraClient) Hooks() []Hook
- func (c *ExtraClient) Query() *ExtraQuery
- func (c *ExtraClient) QueryEvent(e *Extra) *EventQuery
- func (c *ExtraClient) Update() *ExtraUpdate
- func (c *ExtraClient) UpdateOne(e *Extra) *ExtraUpdateOne
- func (c *ExtraClient) UpdateOneID(id int) *ExtraUpdateOne
- func (c *ExtraClient) Use(hooks ...Hook)
- type ExtraCreate
- func (ec *ExtraCreate) AddEvent(e ...*Event) *ExtraCreate
- func (ec *ExtraCreate) AddEventIDs(ids ...uuid.UUID) *ExtraCreate
- func (ec *ExtraCreate) Mutation() *ExtraMutation
- func (ec *ExtraCreate) Save(ctx context.Context) (*Extra, error)
- func (ec *ExtraCreate) SaveX(ctx context.Context) *Extra
- func (ec *ExtraCreate) SetValues(m map[string]interface{}) *ExtraCreate
- type ExtraCreateBulk
- type ExtraDelete
- type ExtraDeleteOne
- type ExtraEdges
- type ExtraGroupBy
- func (egb *ExtraGroupBy) Aggregate(fns ...AggregateFunc) *ExtraGroupBy
- func (egb *ExtraGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (egb *ExtraGroupBy) BoolX(ctx context.Context) bool
- func (egb *ExtraGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (egb *ExtraGroupBy) BoolsX(ctx context.Context) []bool
- func (egb *ExtraGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (egb *ExtraGroupBy) Float64X(ctx context.Context) float64
- func (egb *ExtraGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (egb *ExtraGroupBy) Float64sX(ctx context.Context) []float64
- func (egb *ExtraGroupBy) Int(ctx context.Context) (_ int, err error)
- func (egb *ExtraGroupBy) IntX(ctx context.Context) int
- func (egb *ExtraGroupBy) Ints(ctx context.Context) ([]int, error)
- func (egb *ExtraGroupBy) IntsX(ctx context.Context) []int
- func (egb *ExtraGroupBy) Scan(ctx context.Context, v interface{}) error
- func (egb *ExtraGroupBy) ScanX(ctx context.Context, v interface{})
- func (egb *ExtraGroupBy) String(ctx context.Context) (_ string, err error)
- func (egb *ExtraGroupBy) StringX(ctx context.Context) string
- func (egb *ExtraGroupBy) Strings(ctx context.Context) ([]string, error)
- func (egb *ExtraGroupBy) StringsX(ctx context.Context) []string
- type ExtraMutation
- func (m *ExtraMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *ExtraMutation) AddField(name string, value ent.Value) error
- func (m *ExtraMutation) AddedEdges() []string
- func (m *ExtraMutation) AddedField(name string) (ent.Value, bool)
- func (m *ExtraMutation) AddedFields() []string
- func (m *ExtraMutation) AddedIDs(name string) []ent.Value
- func (m *ExtraMutation) ClearEdge(name string) error
- func (m *ExtraMutation) ClearField(name string) error
- func (m *ExtraMutation) ClearedEdges() []string
- func (m *ExtraMutation) ClearedFields() []string
- func (m ExtraMutation) Client() *Client
- func (m *ExtraMutation) EdgeCleared(name string) bool
- func (m *ExtraMutation) EventIDs() (ids []uuid.UUID)
- func (m *ExtraMutation) Field(name string) (ent.Value, bool)
- func (m *ExtraMutation) FieldCleared(name string) bool
- func (m *ExtraMutation) Fields() []string
- func (m *ExtraMutation) ID() (id int, exists bool)
- func (m *ExtraMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ExtraMutation) OldValues(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ExtraMutation) Op() Op
- func (m *ExtraMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *ExtraMutation) RemovedEdges() []string
- func (m *ExtraMutation) RemovedEventIDs() (ids []uuid.UUID)
- func (m *ExtraMutation) RemovedIDs(name string) []ent.Value
- func (m *ExtraMutation) ResetEdge(name string) error
- func (m *ExtraMutation) ResetEvent()
- func (m *ExtraMutation) ResetField(name string) error
- func (m *ExtraMutation) ResetValues()
- func (m *ExtraMutation) SetField(name string, value ent.Value) error
- func (m *ExtraMutation) SetValues(value map[string]interface{})
- func (m ExtraMutation) Tx() (*Tx, error)
- func (m *ExtraMutation) Type() string
- func (m *ExtraMutation) Values() (r map[string]interface{}, exists bool)
- type ExtraQuery
- func (eq *ExtraQuery) All(ctx context.Context) ([]*Extra, error)
- func (eq *ExtraQuery) AllX(ctx context.Context) []*Extra
- func (eq *ExtraQuery) Clone() *ExtraQuery
- func (eq *ExtraQuery) Count(ctx context.Context) (int, error)
- func (eq *ExtraQuery) CountX(ctx context.Context) int
- func (eq *ExtraQuery) Exist(ctx context.Context) (bool, error)
- func (eq *ExtraQuery) ExistX(ctx context.Context) bool
- func (eq *ExtraQuery) First(ctx context.Context) (*Extra, error)
- func (eq *ExtraQuery) FirstID(ctx context.Context) (id int, err error)
- func (eq *ExtraQuery) FirstX(ctx context.Context) *Extra
- func (eq *ExtraQuery) FirstXID(ctx context.Context) int
- func (eq *ExtraQuery) GroupBy(field string, fields ...string) *ExtraGroupBy
- func (eq *ExtraQuery) IDs(ctx context.Context) ([]int, error)
- func (eq *ExtraQuery) IDsX(ctx context.Context) []int
- func (eq *ExtraQuery) Limit(limit int) *ExtraQuery
- func (eq *ExtraQuery) Offset(offset int) *ExtraQuery
- func (eq *ExtraQuery) Only(ctx context.Context) (*Extra, error)
- func (eq *ExtraQuery) OnlyID(ctx context.Context) (id int, err error)
- func (eq *ExtraQuery) OnlyIDX(ctx context.Context) int
- func (eq *ExtraQuery) OnlyX(ctx context.Context) *Extra
- func (eq *ExtraQuery) Order(o ...OrderFunc) *ExtraQuery
- func (eq *ExtraQuery) QueryEvent() *EventQuery
- func (eq *ExtraQuery) Select(field string, fields ...string) *ExtraSelect
- func (eq *ExtraQuery) Where(ps ...predicate.Extra) *ExtraQuery
- func (eq *ExtraQuery) WithEvent(opts ...func(*EventQuery)) *ExtraQuery
- type ExtraSelect
- func (es *ExtraSelect) Bool(ctx context.Context) (_ bool, err error)
- func (es *ExtraSelect) BoolX(ctx context.Context) bool
- func (es *ExtraSelect) Bools(ctx context.Context) ([]bool, error)
- func (es *ExtraSelect) BoolsX(ctx context.Context) []bool
- func (es *ExtraSelect) Float64(ctx context.Context) (_ float64, err error)
- func (es *ExtraSelect) Float64X(ctx context.Context) float64
- func (es *ExtraSelect) Float64s(ctx context.Context) ([]float64, error)
- func (es *ExtraSelect) Float64sX(ctx context.Context) []float64
- func (es *ExtraSelect) Int(ctx context.Context) (_ int, err error)
- func (es *ExtraSelect) IntX(ctx context.Context) int
- func (es *ExtraSelect) Ints(ctx context.Context) ([]int, error)
- func (es *ExtraSelect) IntsX(ctx context.Context) []int
- func (es *ExtraSelect) Scan(ctx context.Context, v interface{}) error
- func (es *ExtraSelect) ScanX(ctx context.Context, v interface{})
- func (es *ExtraSelect) String(ctx context.Context) (_ string, err error)
- func (es *ExtraSelect) StringX(ctx context.Context) string
- func (es *ExtraSelect) Strings(ctx context.Context) ([]string, error)
- func (es *ExtraSelect) StringsX(ctx context.Context) []string
- type ExtraUpdate
- func (eu *ExtraUpdate) AddEvent(e ...*Event) *ExtraUpdate
- func (eu *ExtraUpdate) AddEventIDs(ids ...uuid.UUID) *ExtraUpdate
- func (eu *ExtraUpdate) Exec(ctx context.Context) error
- func (eu *ExtraUpdate) ExecX(ctx context.Context)
- func (eu *ExtraUpdate) Mutation() *ExtraMutation
- func (eu *ExtraUpdate) RemoveEvent(e ...*Event) *ExtraUpdate
- func (eu *ExtraUpdate) RemoveEventIDs(ids ...uuid.UUID) *ExtraUpdate
- func (eu *ExtraUpdate) Save(ctx context.Context) (int, error)
- func (eu *ExtraUpdate) SaveX(ctx context.Context) int
- func (eu *ExtraUpdate) SetValues(m map[string]interface{}) *ExtraUpdate
- func (eu *ExtraUpdate) Where(ps ...predicate.Extra) *ExtraUpdate
- type ExtraUpdateOne
- func (euo *ExtraUpdateOne) AddEvent(e ...*Event) *ExtraUpdateOne
- func (euo *ExtraUpdateOne) AddEventIDs(ids ...uuid.UUID) *ExtraUpdateOne
- func (euo *ExtraUpdateOne) Exec(ctx context.Context) error
- func (euo *ExtraUpdateOne) ExecX(ctx context.Context)
- func (euo *ExtraUpdateOne) Mutation() *ExtraMutation
- func (euo *ExtraUpdateOne) RemoveEvent(e ...*Event) *ExtraUpdateOne
- func (euo *ExtraUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ExtraUpdateOne
- func (euo *ExtraUpdateOne) Save(ctx context.Context) (*Extra, error)
- func (euo *ExtraUpdateOne) SaveX(ctx context.Context) *Extra
- func (euo *ExtraUpdateOne) SetValues(m map[string]interface{}) *ExtraUpdateOne
- type Extras
- type Group
- type GroupClient
- func (c *GroupClient) Create() *GroupCreate
- func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk
- func (c *GroupClient) Delete() *GroupDelete
- func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne
- func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne
- func (c *GroupClient) Get(ctx context.Context, id int) (*Group, error)
- func (c *GroupClient) GetX(ctx context.Context, id int) *Group
- func (c *GroupClient) Hooks() []Hook
- func (c *GroupClient) Query() *GroupQuery
- func (c *GroupClient) QueryEvents(gr *Group) *EventQuery
- func (c *GroupClient) QueryUsers(gr *Group) *UserQuery
- func (c *GroupClient) Update() *GroupUpdate
- func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne
- func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne
- func (c *GroupClient) Use(hooks ...Hook)
- type GroupCreate
- func (gc *GroupCreate) AddEventIDs(ids ...uuid.UUID) *GroupCreate
- func (gc *GroupCreate) AddEvents(e ...*Event) *GroupCreate
- func (gc *GroupCreate) AddUserIDs(ids ...string) *GroupCreate
- func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate
- func (gc *GroupCreate) Mutation() *GroupMutation
- func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)
- func (gc *GroupCreate) SaveX(ctx context.Context) *Group
- func (gc *GroupCreate) SetName(s string) *GroupCreate
- type GroupCreateBulk
- type GroupDelete
- type GroupDeleteOne
- type GroupEdges
- type GroupGroupBy
- func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy
- func (ggb *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ggb *GroupGroupBy) BoolX(ctx context.Context) bool
- func (ggb *GroupGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ggb *GroupGroupBy) BoolsX(ctx context.Context) []bool
- func (ggb *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ggb *GroupGroupBy) Float64X(ctx context.Context) float64
- func (ggb *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ggb *GroupGroupBy) Float64sX(ctx context.Context) []float64
- func (ggb *GroupGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ggb *GroupGroupBy) IntX(ctx context.Context) int
- func (ggb *GroupGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ggb *GroupGroupBy) IntsX(ctx context.Context) []int
- func (ggb *GroupGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ggb *GroupGroupBy) ScanX(ctx context.Context, v interface{})
- func (ggb *GroupGroupBy) String(ctx context.Context) (_ string, err error)
- func (ggb *GroupGroupBy) StringX(ctx context.Context) string
- func (ggb *GroupGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ggb *GroupGroupBy) StringsX(ctx context.Context) []string
- type GroupMutation
- func (m *GroupMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *GroupMutation) AddField(name string, value ent.Value) error
- func (m *GroupMutation) AddUserIDs(ids ...string)
- func (m *GroupMutation) AddedEdges() []string
- func (m *GroupMutation) AddedField(name string) (ent.Value, bool)
- func (m *GroupMutation) AddedFields() []string
- func (m *GroupMutation) AddedIDs(name string) []ent.Value
- func (m *GroupMutation) ClearEdge(name string) error
- func (m *GroupMutation) ClearField(name string) error
- func (m *GroupMutation) ClearedEdges() []string
- func (m *GroupMutation) ClearedFields() []string
- func (m GroupMutation) Client() *Client
- func (m *GroupMutation) EdgeCleared(name string) bool
- func (m *GroupMutation) EventsIDs() (ids []uuid.UUID)
- func (m *GroupMutation) Field(name string) (ent.Value, bool)
- func (m *GroupMutation) FieldCleared(name string) bool
- func (m *GroupMutation) Fields() []string
- func (m *GroupMutation) ID() (id int, exists bool)
- func (m *GroupMutation) Name() (r string, exists bool)
- func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GroupMutation) OldName(ctx context.Context) (v string, err error)
- func (m *GroupMutation) Op() Op
- func (m *GroupMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *GroupMutation) RemoveUserIDs(ids ...string)
- func (m *GroupMutation) RemovedEdges() []string
- func (m *GroupMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *GroupMutation) RemovedIDs(name string) []ent.Value
- func (m *GroupMutation) RemovedUsersIDs() (ids []string)
- func (m *GroupMutation) ResetEdge(name string) error
- func (m *GroupMutation) ResetEvents()
- func (m *GroupMutation) ResetField(name string) error
- func (m *GroupMutation) ResetName()
- func (m *GroupMutation) ResetUsers()
- func (m *GroupMutation) SetField(name string, value ent.Value) error
- func (m *GroupMutation) SetName(s string)
- func (m GroupMutation) Tx() (*Tx, error)
- func (m *GroupMutation) Type() string
- func (m *GroupMutation) UsersIDs() (ids []string)
- type GroupQuery
- func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)
- func (gq *GroupQuery) AllX(ctx context.Context) []*Group
- func (gq *GroupQuery) Clone() *GroupQuery
- func (gq *GroupQuery) Count(ctx context.Context) (int, error)
- func (gq *GroupQuery) CountX(ctx context.Context) int
- func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)
- func (gq *GroupQuery) ExistX(ctx context.Context) bool
- func (gq *GroupQuery) First(ctx context.Context) (*Group, error)
- func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error)
- func (gq *GroupQuery) FirstX(ctx context.Context) *Group
- func (gq *GroupQuery) FirstXID(ctx context.Context) int
- func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy
- func (gq *GroupQuery) IDs(ctx context.Context) ([]int, error)
- func (gq *GroupQuery) IDsX(ctx context.Context) []int
- func (gq *GroupQuery) Limit(limit int) *GroupQuery
- func (gq *GroupQuery) Offset(offset int) *GroupQuery
- func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)
- func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error)
- func (gq *GroupQuery) OnlyIDX(ctx context.Context) int
- func (gq *GroupQuery) OnlyX(ctx context.Context) *Group
- func (gq *GroupQuery) Order(o ...OrderFunc) *GroupQuery
- func (gq *GroupQuery) QueryEvents() *EventQuery
- func (gq *GroupQuery) QueryUsers() *UserQuery
- func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect
- func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery
- func (gq *GroupQuery) WithEvents(opts ...func(*EventQuery)) *GroupQuery
- func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery
- type GroupSelect
- func (gs *GroupSelect) Bool(ctx context.Context) (_ bool, err error)
- func (gs *GroupSelect) BoolX(ctx context.Context) bool
- func (gs *GroupSelect) Bools(ctx context.Context) ([]bool, error)
- func (gs *GroupSelect) BoolsX(ctx context.Context) []bool
- func (gs *GroupSelect) Float64(ctx context.Context) (_ float64, err error)
- func (gs *GroupSelect) Float64X(ctx context.Context) float64
- func (gs *GroupSelect) Float64s(ctx context.Context) ([]float64, error)
- func (gs *GroupSelect) Float64sX(ctx context.Context) []float64
- func (gs *GroupSelect) Int(ctx context.Context) (_ int, err error)
- func (gs *GroupSelect) IntX(ctx context.Context) int
- func (gs *GroupSelect) Ints(ctx context.Context) ([]int, error)
- func (gs *GroupSelect) IntsX(ctx context.Context) []int
- func (gs *GroupSelect) Scan(ctx context.Context, v interface{}) error
- func (gs *GroupSelect) ScanX(ctx context.Context, v interface{})
- func (gs *GroupSelect) String(ctx context.Context) (_ string, err error)
- func (gs *GroupSelect) StringX(ctx context.Context) string
- func (gs *GroupSelect) Strings(ctx context.Context) ([]string, error)
- func (gs *GroupSelect) StringsX(ctx context.Context) []string
- type GroupUpdate
- func (gu *GroupUpdate) AddEventIDs(ids ...uuid.UUID) *GroupUpdate
- func (gu *GroupUpdate) AddEvents(e ...*Event) *GroupUpdate
- func (gu *GroupUpdate) AddUserIDs(ids ...string) *GroupUpdate
- func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate
- func (gu *GroupUpdate) Exec(ctx context.Context) error
- func (gu *GroupUpdate) ExecX(ctx context.Context)
- func (gu *GroupUpdate) Mutation() *GroupMutation
- func (gu *GroupUpdate) RemoveEventIDs(ids ...uuid.UUID) *GroupUpdate
- func (gu *GroupUpdate) RemoveEvents(e ...*Event) *GroupUpdate
- func (gu *GroupUpdate) RemoveUserIDs(ids ...string) *GroupUpdate
- func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate
- func (gu *GroupUpdate) Save(ctx context.Context) (int, error)
- func (gu *GroupUpdate) SaveX(ctx context.Context) int
- func (gu *GroupUpdate) SetName(s string) *GroupUpdate
- func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate
- type GroupUpdateOne
- func (guo *GroupUpdateOne) AddEventIDs(ids ...uuid.UUID) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddEvents(e ...*Event) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddUserIDs(ids ...string) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne
- func (guo *GroupUpdateOne) Exec(ctx context.Context) error
- func (guo *GroupUpdateOne) ExecX(ctx context.Context)
- func (guo *GroupUpdateOne) Mutation() *GroupMutation
- func (guo *GroupUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveEvents(e ...*Event) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveUserIDs(ids ...string) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne
- func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)
- func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group
- func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne
- type Groups
- type Hook
- type Libraries
- type Library
- type LibraryClient
- func (c *LibraryClient) Create() *LibraryCreate
- func (c *LibraryClient) CreateBulk(builders ...*LibraryCreate) *LibraryCreateBulk
- func (c *LibraryClient) Delete() *LibraryDelete
- func (c *LibraryClient) DeleteOne(l *Library) *LibraryDeleteOne
- func (c *LibraryClient) DeleteOneID(id int) *LibraryDeleteOne
- func (c *LibraryClient) Get(ctx context.Context, id int) (*Library, error)
- func (c *LibraryClient) GetX(ctx context.Context, id int) *Library
- func (c *LibraryClient) Hooks() []Hook
- func (c *LibraryClient) Query() *LibraryQuery
- func (c *LibraryClient) QueryEvents(l *Library) *EventQuery
- func (c *LibraryClient) Update() *LibraryUpdate
- func (c *LibraryClient) UpdateOne(l *Library) *LibraryUpdateOne
- func (c *LibraryClient) UpdateOneID(id int) *LibraryUpdateOne
- func (c *LibraryClient) Use(hooks ...Hook)
- type LibraryCreate
- func (lc *LibraryCreate) AddEventIDs(ids ...uuid.UUID) *LibraryCreate
- func (lc *LibraryCreate) AddEvents(e ...*Event) *LibraryCreate
- func (lc *LibraryCreate) Mutation() *LibraryMutation
- func (lc *LibraryCreate) Save(ctx context.Context) (*Library, error)
- func (lc *LibraryCreate) SaveX(ctx context.Context) *Library
- func (lc *LibraryCreate) SetName(s string) *LibraryCreate
- func (lc *LibraryCreate) SetNillableVersion(s *string) *LibraryCreate
- func (lc *LibraryCreate) SetVersion(s string) *LibraryCreate
- type LibraryCreateBulk
- type LibraryDelete
- type LibraryDeleteOne
- type LibraryEdges
- type LibraryGroupBy
- func (lgb *LibraryGroupBy) Aggregate(fns ...AggregateFunc) *LibraryGroupBy
- func (lgb *LibraryGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (lgb *LibraryGroupBy) BoolX(ctx context.Context) bool
- func (lgb *LibraryGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (lgb *LibraryGroupBy) BoolsX(ctx context.Context) []bool
- func (lgb *LibraryGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (lgb *LibraryGroupBy) Float64X(ctx context.Context) float64
- func (lgb *LibraryGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (lgb *LibraryGroupBy) Float64sX(ctx context.Context) []float64
- func (lgb *LibraryGroupBy) Int(ctx context.Context) (_ int, err error)
- func (lgb *LibraryGroupBy) IntX(ctx context.Context) int
- func (lgb *LibraryGroupBy) Ints(ctx context.Context) ([]int, error)
- func (lgb *LibraryGroupBy) IntsX(ctx context.Context) []int
- func (lgb *LibraryGroupBy) Scan(ctx context.Context, v interface{}) error
- func (lgb *LibraryGroupBy) ScanX(ctx context.Context, v interface{})
- func (lgb *LibraryGroupBy) String(ctx context.Context) (_ string, err error)
- func (lgb *LibraryGroupBy) StringX(ctx context.Context) string
- func (lgb *LibraryGroupBy) Strings(ctx context.Context) ([]string, error)
- func (lgb *LibraryGroupBy) StringsX(ctx context.Context) []string
- type LibraryMutation
- func (m *LibraryMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *LibraryMutation) AddField(name string, value ent.Value) error
- func (m *LibraryMutation) AddedEdges() []string
- func (m *LibraryMutation) AddedField(name string) (ent.Value, bool)
- func (m *LibraryMutation) AddedFields() []string
- func (m *LibraryMutation) AddedIDs(name string) []ent.Value
- func (m *LibraryMutation) ClearEdge(name string) error
- func (m *LibraryMutation) ClearField(name string) error
- func (m *LibraryMutation) ClearVersion()
- func (m *LibraryMutation) ClearedEdges() []string
- func (m *LibraryMutation) ClearedFields() []string
- func (m LibraryMutation) Client() *Client
- func (m *LibraryMutation) EdgeCleared(name string) bool
- func (m *LibraryMutation) EventsIDs() (ids []uuid.UUID)
- func (m *LibraryMutation) Field(name string) (ent.Value, bool)
- func (m *LibraryMutation) FieldCleared(name string) bool
- func (m *LibraryMutation) Fields() []string
- func (m *LibraryMutation) ID() (id int, exists bool)
- func (m *LibraryMutation) Name() (r string, exists bool)
- func (m *LibraryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LibraryMutation) OldName(ctx context.Context) (v string, err error)
- func (m *LibraryMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *LibraryMutation) Op() Op
- func (m *LibraryMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *LibraryMutation) RemovedEdges() []string
- func (m *LibraryMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *LibraryMutation) RemovedIDs(name string) []ent.Value
- func (m *LibraryMutation) ResetEdge(name string) error
- func (m *LibraryMutation) ResetEvents()
- func (m *LibraryMutation) ResetField(name string) error
- func (m *LibraryMutation) ResetName()
- func (m *LibraryMutation) ResetVersion()
- func (m *LibraryMutation) SetField(name string, value ent.Value) error
- func (m *LibraryMutation) SetName(s string)
- func (m *LibraryMutation) SetVersion(s string)
- func (m LibraryMutation) Tx() (*Tx, error)
- func (m *LibraryMutation) Type() string
- func (m *LibraryMutation) Version() (r string, exists bool)
- func (m *LibraryMutation) VersionCleared() bool
- type LibraryQuery
- func (lq *LibraryQuery) All(ctx context.Context) ([]*Library, error)
- func (lq *LibraryQuery) AllX(ctx context.Context) []*Library
- func (lq *LibraryQuery) Clone() *LibraryQuery
- func (lq *LibraryQuery) Count(ctx context.Context) (int, error)
- func (lq *LibraryQuery) CountX(ctx context.Context) int
- func (lq *LibraryQuery) Exist(ctx context.Context) (bool, error)
- func (lq *LibraryQuery) ExistX(ctx context.Context) bool
- func (lq *LibraryQuery) First(ctx context.Context) (*Library, error)
- func (lq *LibraryQuery) FirstID(ctx context.Context) (id int, err error)
- func (lq *LibraryQuery) FirstX(ctx context.Context) *Library
- func (lq *LibraryQuery) FirstXID(ctx context.Context) int
- func (lq *LibraryQuery) GroupBy(field string, fields ...string) *LibraryGroupBy
- func (lq *LibraryQuery) IDs(ctx context.Context) ([]int, error)
- func (lq *LibraryQuery) IDsX(ctx context.Context) []int
- func (lq *LibraryQuery) Limit(limit int) *LibraryQuery
- func (lq *LibraryQuery) Offset(offset int) *LibraryQuery
- func (lq *LibraryQuery) Only(ctx context.Context) (*Library, error)
- func (lq *LibraryQuery) OnlyID(ctx context.Context) (id int, err error)
- func (lq *LibraryQuery) OnlyIDX(ctx context.Context) int
- func (lq *LibraryQuery) OnlyX(ctx context.Context) *Library
- func (lq *LibraryQuery) Order(o ...OrderFunc) *LibraryQuery
- func (lq *LibraryQuery) QueryEvents() *EventQuery
- func (lq *LibraryQuery) Select(field string, fields ...string) *LibrarySelect
- func (lq *LibraryQuery) Where(ps ...predicate.Library) *LibraryQuery
- func (lq *LibraryQuery) WithEvents(opts ...func(*EventQuery)) *LibraryQuery
- type LibrarySelect
- func (ls *LibrarySelect) Bool(ctx context.Context) (_ bool, err error)
- func (ls *LibrarySelect) BoolX(ctx context.Context) bool
- func (ls *LibrarySelect) Bools(ctx context.Context) ([]bool, error)
- func (ls *LibrarySelect) BoolsX(ctx context.Context) []bool
- func (ls *LibrarySelect) Float64(ctx context.Context) (_ float64, err error)
- func (ls *LibrarySelect) Float64X(ctx context.Context) float64
- func (ls *LibrarySelect) Float64s(ctx context.Context) ([]float64, error)
- func (ls *LibrarySelect) Float64sX(ctx context.Context) []float64
- func (ls *LibrarySelect) Int(ctx context.Context) (_ int, err error)
- func (ls *LibrarySelect) IntX(ctx context.Context) int
- func (ls *LibrarySelect) Ints(ctx context.Context) ([]int, error)
- func (ls *LibrarySelect) IntsX(ctx context.Context) []int
- func (ls *LibrarySelect) Scan(ctx context.Context, v interface{}) error
- func (ls *LibrarySelect) ScanX(ctx context.Context, v interface{})
- func (ls *LibrarySelect) String(ctx context.Context) (_ string, err error)
- func (ls *LibrarySelect) StringX(ctx context.Context) string
- func (ls *LibrarySelect) Strings(ctx context.Context) ([]string, error)
- func (ls *LibrarySelect) StringsX(ctx context.Context) []string
- type LibraryUpdate
- func (lu *LibraryUpdate) AddEventIDs(ids ...uuid.UUID) *LibraryUpdate
- func (lu *LibraryUpdate) AddEvents(e ...*Event) *LibraryUpdate
- func (lu *LibraryUpdate) ClearVersion() *LibraryUpdate
- func (lu *LibraryUpdate) Exec(ctx context.Context) error
- func (lu *LibraryUpdate) ExecX(ctx context.Context)
- func (lu *LibraryUpdate) Mutation() *LibraryMutation
- func (lu *LibraryUpdate) RemoveEventIDs(ids ...uuid.UUID) *LibraryUpdate
- func (lu *LibraryUpdate) RemoveEvents(e ...*Event) *LibraryUpdate
- func (lu *LibraryUpdate) Save(ctx context.Context) (int, error)
- func (lu *LibraryUpdate) SaveX(ctx context.Context) int
- func (lu *LibraryUpdate) SetName(s string) *LibraryUpdate
- func (lu *LibraryUpdate) SetNillableVersion(s *string) *LibraryUpdate
- func (lu *LibraryUpdate) SetVersion(s string) *LibraryUpdate
- func (lu *LibraryUpdate) Where(ps ...predicate.Library) *LibraryUpdate
- type LibraryUpdateOne
- func (luo *LibraryUpdateOne) AddEventIDs(ids ...uuid.UUID) *LibraryUpdateOne
- func (luo *LibraryUpdateOne) AddEvents(e ...*Event) *LibraryUpdateOne
- func (luo *LibraryUpdateOne) ClearVersion() *LibraryUpdateOne
- func (luo *LibraryUpdateOne) Exec(ctx context.Context) error
- func (luo *LibraryUpdateOne) ExecX(ctx context.Context)
- func (luo *LibraryUpdateOne) Mutation() *LibraryMutation
- func (luo *LibraryUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *LibraryUpdateOne
- func (luo *LibraryUpdateOne) RemoveEvents(e ...*Event) *LibraryUpdateOne
- func (luo *LibraryUpdateOne) Save(ctx context.Context) (*Library, error)
- func (luo *LibraryUpdateOne) SaveX(ctx context.Context) *Library
- func (luo *LibraryUpdateOne) SetName(s string) *LibraryUpdateOne
- func (luo *LibraryUpdateOne) SetNillableVersion(s *string) *LibraryUpdateOne
- func (luo *LibraryUpdateOne) SetVersion(s string) *LibraryUpdateOne
- type Location
- type LocationClient
- func (c *LocationClient) Create() *LocationCreate
- func (c *LocationClient) CreateBulk(builders ...*LocationCreate) *LocationCreateBulk
- func (c *LocationClient) Delete() *LocationDelete
- func (c *LocationClient) DeleteOne(l *Location) *LocationDeleteOne
- func (c *LocationClient) DeleteOneID(id int) *LocationDeleteOne
- func (c *LocationClient) Get(ctx context.Context, id int) (*Location, error)
- func (c *LocationClient) GetX(ctx context.Context, id int) *Location
- func (c *LocationClient) Hooks() []Hook
- func (c *LocationClient) Query() *LocationQuery
- func (c *LocationClient) QueryEvents(l *Location) *EventQuery
- func (c *LocationClient) Update() *LocationUpdate
- func (c *LocationClient) UpdateOne(l *Location) *LocationUpdateOne
- func (c *LocationClient) UpdateOneID(id int) *LocationUpdateOne
- func (c *LocationClient) Use(hooks ...Hook)
- type LocationCreate
- func (lc *LocationCreate) AddEventIDs(ids ...uuid.UUID) *LocationCreate
- func (lc *LocationCreate) AddEvents(e ...*Event) *LocationCreate
- func (lc *LocationCreate) Mutation() *LocationMutation
- func (lc *LocationCreate) Save(ctx context.Context) (*Location, error)
- func (lc *LocationCreate) SaveX(ctx context.Context) *Location
- func (lc *LocationCreate) SetCity(s string) *LocationCreate
- func (lc *LocationCreate) SetCountry(s string) *LocationCreate
- func (lc *LocationCreate) SetLatitude(f float64) *LocationCreate
- func (lc *LocationCreate) SetLocale(s string) *LocationCreate
- func (lc *LocationCreate) SetLongitude(f float64) *LocationCreate
- func (lc *LocationCreate) SetNillableCity(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableCountry(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableLatitude(f *float64) *LocationCreate
- func (lc *LocationCreate) SetNillableLocale(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableLongitude(f *float64) *LocationCreate
- func (lc *LocationCreate) SetNillablePostalcode(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableRegion(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableState(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableStreet(s *string) *LocationCreate
- func (lc *LocationCreate) SetNillableTimezone(s *string) *LocationCreate
- func (lc *LocationCreate) SetPostalcode(s string) *LocationCreate
- func (lc *LocationCreate) SetRegion(s string) *LocationCreate
- func (lc *LocationCreate) SetState(s string) *LocationCreate
- func (lc *LocationCreate) SetStreet(s string) *LocationCreate
- func (lc *LocationCreate) SetTimezone(s string) *LocationCreate
- type LocationCreateBulk
- type LocationDelete
- type LocationDeleteOne
- type LocationEdges
- type LocationGroupBy
- func (lgb *LocationGroupBy) Aggregate(fns ...AggregateFunc) *LocationGroupBy
- func (lgb *LocationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (lgb *LocationGroupBy) BoolX(ctx context.Context) bool
- func (lgb *LocationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (lgb *LocationGroupBy) BoolsX(ctx context.Context) []bool
- func (lgb *LocationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (lgb *LocationGroupBy) Float64X(ctx context.Context) float64
- func (lgb *LocationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (lgb *LocationGroupBy) Float64sX(ctx context.Context) []float64
- func (lgb *LocationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (lgb *LocationGroupBy) IntX(ctx context.Context) int
- func (lgb *LocationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (lgb *LocationGroupBy) IntsX(ctx context.Context) []int
- func (lgb *LocationGroupBy) Scan(ctx context.Context, v interface{}) error
- func (lgb *LocationGroupBy) ScanX(ctx context.Context, v interface{})
- func (lgb *LocationGroupBy) String(ctx context.Context) (_ string, err error)
- func (lgb *LocationGroupBy) StringX(ctx context.Context) string
- func (lgb *LocationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (lgb *LocationGroupBy) StringsX(ctx context.Context) []string
- type LocationMutation
- func (m *LocationMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *LocationMutation) AddField(name string, value ent.Value) error
- func (m *LocationMutation) AddLatitude(f float64)
- func (m *LocationMutation) AddLongitude(f float64)
- func (m *LocationMutation) AddedEdges() []string
- func (m *LocationMutation) AddedField(name string) (ent.Value, bool)
- func (m *LocationMutation) AddedFields() []string
- func (m *LocationMutation) AddedIDs(name string) []ent.Value
- func (m *LocationMutation) AddedLatitude() (r float64, exists bool)
- func (m *LocationMutation) AddedLongitude() (r float64, exists bool)
- func (m *LocationMutation) City() (r string, exists bool)
- func (m *LocationMutation) CityCleared() bool
- func (m *LocationMutation) ClearCity()
- func (m *LocationMutation) ClearCountry()
- func (m *LocationMutation) ClearEdge(name string) error
- func (m *LocationMutation) ClearField(name string) error
- func (m *LocationMutation) ClearLatitude()
- func (m *LocationMutation) ClearLocale()
- func (m *LocationMutation) ClearLongitude()
- func (m *LocationMutation) ClearPostalcode()
- func (m *LocationMutation) ClearRegion()
- func (m *LocationMutation) ClearState()
- func (m *LocationMutation) ClearStreet()
- func (m *LocationMutation) ClearTimezone()
- func (m *LocationMutation) ClearedEdges() []string
- func (m *LocationMutation) ClearedFields() []string
- func (m LocationMutation) Client() *Client
- func (m *LocationMutation) Country() (r string, exists bool)
- func (m *LocationMutation) CountryCleared() bool
- func (m *LocationMutation) EdgeCleared(name string) bool
- func (m *LocationMutation) EventsIDs() (ids []uuid.UUID)
- func (m *LocationMutation) Field(name string) (ent.Value, bool)
- func (m *LocationMutation) FieldCleared(name string) bool
- func (m *LocationMutation) Fields() []string
- func (m *LocationMutation) ID() (id int, exists bool)
- func (m *LocationMutation) Latitude() (r float64, exists bool)
- func (m *LocationMutation) LatitudeCleared() bool
- func (m *LocationMutation) Locale() (r string, exists bool)
- func (m *LocationMutation) LocaleCleared() bool
- func (m *LocationMutation) Longitude() (r float64, exists bool)
- func (m *LocationMutation) LongitudeCleared() bool
- func (m *LocationMutation) OldCity(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldCountry(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LocationMutation) OldLatitude(ctx context.Context) (v float64, err error)
- func (m *LocationMutation) OldLocale(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldLongitude(ctx context.Context) (v float64, err error)
- func (m *LocationMutation) OldPostalcode(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldRegion(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldState(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldStreet(ctx context.Context) (v string, err error)
- func (m *LocationMutation) OldTimezone(ctx context.Context) (v string, err error)
- func (m *LocationMutation) Op() Op
- func (m *LocationMutation) Postalcode() (r string, exists bool)
- func (m *LocationMutation) PostalcodeCleared() bool
- func (m *LocationMutation) Region() (r string, exists bool)
- func (m *LocationMutation) RegionCleared() bool
- func (m *LocationMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *LocationMutation) RemovedEdges() []string
- func (m *LocationMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *LocationMutation) RemovedIDs(name string) []ent.Value
- func (m *LocationMutation) ResetCity()
- func (m *LocationMutation) ResetCountry()
- func (m *LocationMutation) ResetEdge(name string) error
- func (m *LocationMutation) ResetEvents()
- func (m *LocationMutation) ResetField(name string) error
- func (m *LocationMutation) ResetLatitude()
- func (m *LocationMutation) ResetLocale()
- func (m *LocationMutation) ResetLongitude()
- func (m *LocationMutation) ResetPostalcode()
- func (m *LocationMutation) ResetRegion()
- func (m *LocationMutation) ResetState()
- func (m *LocationMutation) ResetStreet()
- func (m *LocationMutation) ResetTimezone()
- func (m *LocationMutation) SetCity(s string)
- func (m *LocationMutation) SetCountry(s string)
- func (m *LocationMutation) SetField(name string, value ent.Value) error
- func (m *LocationMutation) SetLatitude(f float64)
- func (m *LocationMutation) SetLocale(s string)
- func (m *LocationMutation) SetLongitude(f float64)
- func (m *LocationMutation) SetPostalcode(s string)
- func (m *LocationMutation) SetRegion(s string)
- func (m *LocationMutation) SetState(s string)
- func (m *LocationMutation) SetStreet(s string)
- func (m *LocationMutation) SetTimezone(s string)
- func (m *LocationMutation) State() (r string, exists bool)
- func (m *LocationMutation) StateCleared() bool
- func (m *LocationMutation) Street() (r string, exists bool)
- func (m *LocationMutation) StreetCleared() bool
- func (m *LocationMutation) Timezone() (r string, exists bool)
- func (m *LocationMutation) TimezoneCleared() bool
- func (m LocationMutation) Tx() (*Tx, error)
- func (m *LocationMutation) Type() string
- type LocationQuery
- func (lq *LocationQuery) All(ctx context.Context) ([]*Location, error)
- func (lq *LocationQuery) AllX(ctx context.Context) []*Location
- func (lq *LocationQuery) Clone() *LocationQuery
- func (lq *LocationQuery) Count(ctx context.Context) (int, error)
- func (lq *LocationQuery) CountX(ctx context.Context) int
- func (lq *LocationQuery) Exist(ctx context.Context) (bool, error)
- func (lq *LocationQuery) ExistX(ctx context.Context) bool
- func (lq *LocationQuery) First(ctx context.Context) (*Location, error)
- func (lq *LocationQuery) FirstID(ctx context.Context) (id int, err error)
- func (lq *LocationQuery) FirstX(ctx context.Context) *Location
- func (lq *LocationQuery) FirstXID(ctx context.Context) int
- func (lq *LocationQuery) GroupBy(field string, fields ...string) *LocationGroupBy
- func (lq *LocationQuery) IDs(ctx context.Context) ([]int, error)
- func (lq *LocationQuery) IDsX(ctx context.Context) []int
- func (lq *LocationQuery) Limit(limit int) *LocationQuery
- func (lq *LocationQuery) Offset(offset int) *LocationQuery
- func (lq *LocationQuery) Only(ctx context.Context) (*Location, error)
- func (lq *LocationQuery) OnlyID(ctx context.Context) (id int, err error)
- func (lq *LocationQuery) OnlyIDX(ctx context.Context) int
- func (lq *LocationQuery) OnlyX(ctx context.Context) *Location
- func (lq *LocationQuery) Order(o ...OrderFunc) *LocationQuery
- func (lq *LocationQuery) QueryEvents() *EventQuery
- func (lq *LocationQuery) Select(field string, fields ...string) *LocationSelect
- func (lq *LocationQuery) Where(ps ...predicate.Location) *LocationQuery
- func (lq *LocationQuery) WithEvents(opts ...func(*EventQuery)) *LocationQuery
- type LocationSelect
- func (ls *LocationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ls *LocationSelect) BoolX(ctx context.Context) bool
- func (ls *LocationSelect) Bools(ctx context.Context) ([]bool, error)
- func (ls *LocationSelect) BoolsX(ctx context.Context) []bool
- func (ls *LocationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ls *LocationSelect) Float64X(ctx context.Context) float64
- func (ls *LocationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ls *LocationSelect) Float64sX(ctx context.Context) []float64
- func (ls *LocationSelect) Int(ctx context.Context) (_ int, err error)
- func (ls *LocationSelect) IntX(ctx context.Context) int
- func (ls *LocationSelect) Ints(ctx context.Context) ([]int, error)
- func (ls *LocationSelect) IntsX(ctx context.Context) []int
- func (ls *LocationSelect) Scan(ctx context.Context, v interface{}) error
- func (ls *LocationSelect) ScanX(ctx context.Context, v interface{})
- func (ls *LocationSelect) String(ctx context.Context) (_ string, err error)
- func (ls *LocationSelect) StringX(ctx context.Context) string
- func (ls *LocationSelect) Strings(ctx context.Context) ([]string, error)
- func (ls *LocationSelect) StringsX(ctx context.Context) []string
- type LocationUpdate
- func (lu *LocationUpdate) AddEventIDs(ids ...uuid.UUID) *LocationUpdate
- func (lu *LocationUpdate) AddEvents(e ...*Event) *LocationUpdate
- func (lu *LocationUpdate) AddLatitude(f float64) *LocationUpdate
- func (lu *LocationUpdate) AddLongitude(f float64) *LocationUpdate
- func (lu *LocationUpdate) ClearCity() *LocationUpdate
- func (lu *LocationUpdate) ClearCountry() *LocationUpdate
- func (lu *LocationUpdate) ClearLatitude() *LocationUpdate
- func (lu *LocationUpdate) ClearLocale() *LocationUpdate
- func (lu *LocationUpdate) ClearLongitude() *LocationUpdate
- func (lu *LocationUpdate) ClearPostalcode() *LocationUpdate
- func (lu *LocationUpdate) ClearRegion() *LocationUpdate
- func (lu *LocationUpdate) ClearState() *LocationUpdate
- func (lu *LocationUpdate) ClearStreet() *LocationUpdate
- func (lu *LocationUpdate) ClearTimezone() *LocationUpdate
- func (lu *LocationUpdate) Exec(ctx context.Context) error
- func (lu *LocationUpdate) ExecX(ctx context.Context)
- func (lu *LocationUpdate) Mutation() *LocationMutation
- func (lu *LocationUpdate) RemoveEventIDs(ids ...uuid.UUID) *LocationUpdate
- func (lu *LocationUpdate) RemoveEvents(e ...*Event) *LocationUpdate
- func (lu *LocationUpdate) Save(ctx context.Context) (int, error)
- func (lu *LocationUpdate) SaveX(ctx context.Context) int
- func (lu *LocationUpdate) SetCity(s string) *LocationUpdate
- func (lu *LocationUpdate) SetCountry(s string) *LocationUpdate
- func (lu *LocationUpdate) SetLatitude(f float64) *LocationUpdate
- func (lu *LocationUpdate) SetLocale(s string) *LocationUpdate
- func (lu *LocationUpdate) SetLongitude(f float64) *LocationUpdate
- func (lu *LocationUpdate) SetNillableCity(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableCountry(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableLatitude(f *float64) *LocationUpdate
- func (lu *LocationUpdate) SetNillableLocale(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableLongitude(f *float64) *LocationUpdate
- func (lu *LocationUpdate) SetNillablePostalcode(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableRegion(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableState(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableStreet(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetNillableTimezone(s *string) *LocationUpdate
- func (lu *LocationUpdate) SetPostalcode(s string) *LocationUpdate
- func (lu *LocationUpdate) SetRegion(s string) *LocationUpdate
- func (lu *LocationUpdate) SetState(s string) *LocationUpdate
- func (lu *LocationUpdate) SetStreet(s string) *LocationUpdate
- func (lu *LocationUpdate) SetTimezone(s string) *LocationUpdate
- func (lu *LocationUpdate) Where(ps ...predicate.Location) *LocationUpdate
- type LocationUpdateOne
- func (luo *LocationUpdateOne) AddEventIDs(ids ...uuid.UUID) *LocationUpdateOne
- func (luo *LocationUpdateOne) AddEvents(e ...*Event) *LocationUpdateOne
- func (luo *LocationUpdateOne) AddLatitude(f float64) *LocationUpdateOne
- func (luo *LocationUpdateOne) AddLongitude(f float64) *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearCity() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearCountry() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearLatitude() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearLocale() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearLongitude() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearPostalcode() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearRegion() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearState() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearStreet() *LocationUpdateOne
- func (luo *LocationUpdateOne) ClearTimezone() *LocationUpdateOne
- func (luo *LocationUpdateOne) Exec(ctx context.Context) error
- func (luo *LocationUpdateOne) ExecX(ctx context.Context)
- func (luo *LocationUpdateOne) Mutation() *LocationMutation
- func (luo *LocationUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *LocationUpdateOne
- func (luo *LocationUpdateOne) RemoveEvents(e ...*Event) *LocationUpdateOne
- func (luo *LocationUpdateOne) Save(ctx context.Context) (*Location, error)
- func (luo *LocationUpdateOne) SaveX(ctx context.Context) *Location
- func (luo *LocationUpdateOne) SetCity(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetCountry(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetLatitude(f float64) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetLocale(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetLongitude(f float64) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableCity(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableCountry(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableLatitude(f *float64) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableLocale(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableLongitude(f *float64) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillablePostalcode(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableRegion(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableState(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableStreet(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetNillableTimezone(s *string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetPostalcode(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetRegion(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetState(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetStreet(s string) *LocationUpdateOne
- func (luo *LocationUpdateOne) SetTimezone(s string) *LocationUpdateOne
- type Locations
- type MutateFunc
- type Mutation
- type Mutator
- type Network
- type NetworkClient
- func (c *NetworkClient) Create() *NetworkCreate
- func (c *NetworkClient) CreateBulk(builders ...*NetworkCreate) *NetworkCreateBulk
- func (c *NetworkClient) Delete() *NetworkDelete
- func (c *NetworkClient) DeleteOne(n *Network) *NetworkDeleteOne
- func (c *NetworkClient) DeleteOneID(id int) *NetworkDeleteOne
- func (c *NetworkClient) Get(ctx context.Context, id int) (*Network, error)
- func (c *NetworkClient) GetX(ctx context.Context, id int) *Network
- func (c *NetworkClient) Hooks() []Hook
- func (c *NetworkClient) Query() *NetworkQuery
- func (c *NetworkClient) QueryEvents(n *Network) *EventQuery
- func (c *NetworkClient) Update() *NetworkUpdate
- func (c *NetworkClient) UpdateOne(n *Network) *NetworkUpdateOne
- func (c *NetworkClient) UpdateOneID(id int) *NetworkUpdateOne
- func (c *NetworkClient) Use(hooks ...Hook)
- type NetworkCreate
- func (nc *NetworkCreate) AddEventIDs(ids ...uuid.UUID) *NetworkCreate
- func (nc *NetworkCreate) AddEvents(e ...*Event) *NetworkCreate
- func (nc *NetworkCreate) Mutation() *NetworkMutation
- func (nc *NetworkCreate) Save(ctx context.Context) (*Network, error)
- func (nc *NetworkCreate) SaveX(ctx context.Context) *Network
- func (nc *NetworkCreate) SetIP(s string) *NetworkCreate
- func (nc *NetworkCreate) SetNillableUseragent(s *string) *NetworkCreate
- func (nc *NetworkCreate) SetUseragent(s string) *NetworkCreate
- type NetworkCreateBulk
- type NetworkDelete
- type NetworkDeleteOne
- type NetworkEdges
- type NetworkGroupBy
- func (ngb *NetworkGroupBy) Aggregate(fns ...AggregateFunc) *NetworkGroupBy
- func (ngb *NetworkGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ngb *NetworkGroupBy) BoolX(ctx context.Context) bool
- func (ngb *NetworkGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ngb *NetworkGroupBy) BoolsX(ctx context.Context) []bool
- func (ngb *NetworkGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ngb *NetworkGroupBy) Float64X(ctx context.Context) float64
- func (ngb *NetworkGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ngb *NetworkGroupBy) Float64sX(ctx context.Context) []float64
- func (ngb *NetworkGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ngb *NetworkGroupBy) IntX(ctx context.Context) int
- func (ngb *NetworkGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ngb *NetworkGroupBy) IntsX(ctx context.Context) []int
- func (ngb *NetworkGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ngb *NetworkGroupBy) ScanX(ctx context.Context, v interface{})
- func (ngb *NetworkGroupBy) String(ctx context.Context) (_ string, err error)
- func (ngb *NetworkGroupBy) StringX(ctx context.Context) string
- func (ngb *NetworkGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ngb *NetworkGroupBy) StringsX(ctx context.Context) []string
- type NetworkMutation
- func (m *NetworkMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *NetworkMutation) AddField(name string, value ent.Value) error
- func (m *NetworkMutation) AddedEdges() []string
- func (m *NetworkMutation) AddedField(name string) (ent.Value, bool)
- func (m *NetworkMutation) AddedFields() []string
- func (m *NetworkMutation) AddedIDs(name string) []ent.Value
- func (m *NetworkMutation) ClearEdge(name string) error
- func (m *NetworkMutation) ClearField(name string) error
- func (m *NetworkMutation) ClearUseragent()
- func (m *NetworkMutation) ClearedEdges() []string
- func (m *NetworkMutation) ClearedFields() []string
- func (m NetworkMutation) Client() *Client
- func (m *NetworkMutation) EdgeCleared(name string) bool
- func (m *NetworkMutation) EventsIDs() (ids []uuid.UUID)
- func (m *NetworkMutation) Field(name string) (ent.Value, bool)
- func (m *NetworkMutation) FieldCleared(name string) bool
- func (m *NetworkMutation) Fields() []string
- func (m *NetworkMutation) ID() (id int, exists bool)
- func (m *NetworkMutation) IP() (r string, exists bool)
- func (m *NetworkMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NetworkMutation) OldIP(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) OldUseragent(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) Op() Op
- func (m *NetworkMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *NetworkMutation) RemovedEdges() []string
- func (m *NetworkMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *NetworkMutation) RemovedIDs(name string) []ent.Value
- func (m *NetworkMutation) ResetEdge(name string) error
- func (m *NetworkMutation) ResetEvents()
- func (m *NetworkMutation) ResetField(name string) error
- func (m *NetworkMutation) ResetIP()
- func (m *NetworkMutation) ResetUseragent()
- func (m *NetworkMutation) SetField(name string, value ent.Value) error
- func (m *NetworkMutation) SetIP(s string)
- func (m *NetworkMutation) SetUseragent(s string)
- func (m NetworkMutation) Tx() (*Tx, error)
- func (m *NetworkMutation) Type() string
- func (m *NetworkMutation) Useragent() (r string, exists bool)
- func (m *NetworkMutation) UseragentCleared() bool
- type NetworkQuery
- func (nq *NetworkQuery) All(ctx context.Context) ([]*Network, error)
- func (nq *NetworkQuery) AllX(ctx context.Context) []*Network
- func (nq *NetworkQuery) Clone() *NetworkQuery
- func (nq *NetworkQuery) Count(ctx context.Context) (int, error)
- func (nq *NetworkQuery) CountX(ctx context.Context) int
- func (nq *NetworkQuery) Exist(ctx context.Context) (bool, error)
- func (nq *NetworkQuery) ExistX(ctx context.Context) bool
- func (nq *NetworkQuery) First(ctx context.Context) (*Network, error)
- func (nq *NetworkQuery) FirstID(ctx context.Context) (id int, err error)
- func (nq *NetworkQuery) FirstX(ctx context.Context) *Network
- func (nq *NetworkQuery) FirstXID(ctx context.Context) int
- func (nq *NetworkQuery) GroupBy(field string, fields ...string) *NetworkGroupBy
- func (nq *NetworkQuery) IDs(ctx context.Context) ([]int, error)
- func (nq *NetworkQuery) IDsX(ctx context.Context) []int
- func (nq *NetworkQuery) Limit(limit int) *NetworkQuery
- func (nq *NetworkQuery) Offset(offset int) *NetworkQuery
- func (nq *NetworkQuery) Only(ctx context.Context) (*Network, error)
- func (nq *NetworkQuery) OnlyID(ctx context.Context) (id int, err error)
- func (nq *NetworkQuery) OnlyIDX(ctx context.Context) int
- func (nq *NetworkQuery) OnlyX(ctx context.Context) *Network
- func (nq *NetworkQuery) Order(o ...OrderFunc) *NetworkQuery
- func (nq *NetworkQuery) QueryEvents() *EventQuery
- func (nq *NetworkQuery) Select(field string, fields ...string) *NetworkSelect
- func (nq *NetworkQuery) Where(ps ...predicate.Network) *NetworkQuery
- func (nq *NetworkQuery) WithEvents(opts ...func(*EventQuery)) *NetworkQuery
- type NetworkSelect
- func (ns *NetworkSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ns *NetworkSelect) BoolX(ctx context.Context) bool
- func (ns *NetworkSelect) Bools(ctx context.Context) ([]bool, error)
- func (ns *NetworkSelect) BoolsX(ctx context.Context) []bool
- func (ns *NetworkSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ns *NetworkSelect) Float64X(ctx context.Context) float64
- func (ns *NetworkSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ns *NetworkSelect) Float64sX(ctx context.Context) []float64
- func (ns *NetworkSelect) Int(ctx context.Context) (_ int, err error)
- func (ns *NetworkSelect) IntX(ctx context.Context) int
- func (ns *NetworkSelect) Ints(ctx context.Context) ([]int, error)
- func (ns *NetworkSelect) IntsX(ctx context.Context) []int
- func (ns *NetworkSelect) Scan(ctx context.Context, v interface{}) error
- func (ns *NetworkSelect) ScanX(ctx context.Context, v interface{})
- func (ns *NetworkSelect) String(ctx context.Context) (_ string, err error)
- func (ns *NetworkSelect) StringX(ctx context.Context) string
- func (ns *NetworkSelect) Strings(ctx context.Context) ([]string, error)
- func (ns *NetworkSelect) StringsX(ctx context.Context) []string
- type NetworkUpdate
- func (nu *NetworkUpdate) AddEventIDs(ids ...uuid.UUID) *NetworkUpdate
- func (nu *NetworkUpdate) AddEvents(e ...*Event) *NetworkUpdate
- func (nu *NetworkUpdate) ClearUseragent() *NetworkUpdate
- func (nu *NetworkUpdate) Exec(ctx context.Context) error
- func (nu *NetworkUpdate) ExecX(ctx context.Context)
- func (nu *NetworkUpdate) Mutation() *NetworkMutation
- func (nu *NetworkUpdate) RemoveEventIDs(ids ...uuid.UUID) *NetworkUpdate
- func (nu *NetworkUpdate) RemoveEvents(e ...*Event) *NetworkUpdate
- func (nu *NetworkUpdate) Save(ctx context.Context) (int, error)
- func (nu *NetworkUpdate) SaveX(ctx context.Context) int
- func (nu *NetworkUpdate) SetIP(s string) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableUseragent(s *string) *NetworkUpdate
- func (nu *NetworkUpdate) SetUseragent(s string) *NetworkUpdate
- func (nu *NetworkUpdate) Where(ps ...predicate.Network) *NetworkUpdate
- type NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddEventIDs(ids ...uuid.UUID) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddEvents(e ...*Event) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) ClearUseragent() *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) Exec(ctx context.Context) error
- func (nuo *NetworkUpdateOne) ExecX(ctx context.Context)
- func (nuo *NetworkUpdateOne) Mutation() *NetworkMutation
- func (nuo *NetworkUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) RemoveEvents(e ...*Event) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) Save(ctx context.Context) (*Network, error)
- func (nuo *NetworkUpdateOne) SaveX(ctx context.Context) *Network
- func (nuo *NetworkUpdateOne) SetIP(s string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableUseragent(s *string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetUseragent(s string) *NetworkUpdateOne
- type Networks
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type OSContext
- type OSContextClient
- func (c *OSContextClient) Create() *OSContextCreate
- func (c *OSContextClient) CreateBulk(builders ...*OSContextCreate) *OSContextCreateBulk
- func (c *OSContextClient) Delete() *OSContextDelete
- func (c *OSContextClient) DeleteOne(oc *OSContext) *OSContextDeleteOne
- func (c *OSContextClient) DeleteOneID(id int) *OSContextDeleteOne
- func (c *OSContextClient) Get(ctx context.Context, id int) (*OSContext, error)
- func (c *OSContextClient) GetX(ctx context.Context, id int) *OSContext
- func (c *OSContextClient) Hooks() []Hook
- func (c *OSContextClient) Query() *OSContextQuery
- func (c *OSContextClient) QueryEvents(oc *OSContext) *EventQuery
- func (c *OSContextClient) Update() *OSContextUpdate
- func (c *OSContextClient) UpdateOne(oc *OSContext) *OSContextUpdateOne
- func (c *OSContextClient) UpdateOneID(id int) *OSContextUpdateOne
- func (c *OSContextClient) Use(hooks ...Hook)
- type OSContextCreate
- func (occ *OSContextCreate) AddEventIDs(ids ...uuid.UUID) *OSContextCreate
- func (occ *OSContextCreate) AddEvents(e ...*Event) *OSContextCreate
- func (occ *OSContextCreate) Mutation() *OSContextMutation
- func (occ *OSContextCreate) Save(ctx context.Context) (*OSContext, error)
- func (occ *OSContextCreate) SaveX(ctx context.Context) *OSContext
- func (occ *OSContextCreate) SetFamily(s string) *OSContextCreate
- func (occ *OSContextCreate) SetName(s string) *OSContextCreate
- func (occ *OSContextCreate) SetNillablePlatform(s *string) *OSContextCreate
- func (occ *OSContextCreate) SetPlatform(s string) *OSContextCreate
- func (occ *OSContextCreate) SetVersion(s string) *OSContextCreate
- type OSContextCreateBulk
- type OSContextDelete
- type OSContextDeleteOne
- type OSContextEdges
- type OSContextGroupBy
- func (ocgb *OSContextGroupBy) Aggregate(fns ...AggregateFunc) *OSContextGroupBy
- func (ocgb *OSContextGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ocgb *OSContextGroupBy) BoolX(ctx context.Context) bool
- func (ocgb *OSContextGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ocgb *OSContextGroupBy) BoolsX(ctx context.Context) []bool
- func (ocgb *OSContextGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ocgb *OSContextGroupBy) Float64X(ctx context.Context) float64
- func (ocgb *OSContextGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ocgb *OSContextGroupBy) Float64sX(ctx context.Context) []float64
- func (ocgb *OSContextGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ocgb *OSContextGroupBy) IntX(ctx context.Context) int
- func (ocgb *OSContextGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ocgb *OSContextGroupBy) IntsX(ctx context.Context) []int
- func (ocgb *OSContextGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ocgb *OSContextGroupBy) ScanX(ctx context.Context, v interface{})
- func (ocgb *OSContextGroupBy) String(ctx context.Context) (_ string, err error)
- func (ocgb *OSContextGroupBy) StringX(ctx context.Context) string
- func (ocgb *OSContextGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ocgb *OSContextGroupBy) StringsX(ctx context.Context) []string
- type OSContextMutation
- func (m *OSContextMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *OSContextMutation) AddField(name string, value ent.Value) error
- func (m *OSContextMutation) AddedEdges() []string
- func (m *OSContextMutation) AddedField(name string) (ent.Value, bool)
- func (m *OSContextMutation) AddedFields() []string
- func (m *OSContextMutation) AddedIDs(name string) []ent.Value
- func (m *OSContextMutation) ClearEdge(name string) error
- func (m *OSContextMutation) ClearField(name string) error
- func (m *OSContextMutation) ClearPlatform()
- func (m *OSContextMutation) ClearedEdges() []string
- func (m *OSContextMutation) ClearedFields() []string
- func (m OSContextMutation) Client() *Client
- func (m *OSContextMutation) EdgeCleared(name string) bool
- func (m *OSContextMutation) EventsIDs() (ids []uuid.UUID)
- func (m *OSContextMutation) Family() (r string, exists bool)
- func (m *OSContextMutation) Field(name string) (ent.Value, bool)
- func (m *OSContextMutation) FieldCleared(name string) bool
- func (m *OSContextMutation) Fields() []string
- func (m *OSContextMutation) ID() (id int, exists bool)
- func (m *OSContextMutation) Name() (r string, exists bool)
- func (m *OSContextMutation) OldFamily(ctx context.Context) (v string, err error)
- func (m *OSContextMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OSContextMutation) OldName(ctx context.Context) (v string, err error)
- func (m *OSContextMutation) OldPlatform(ctx context.Context) (v string, err error)
- func (m *OSContextMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *OSContextMutation) Op() Op
- func (m *OSContextMutation) Platform() (r string, exists bool)
- func (m *OSContextMutation) PlatformCleared() bool
- func (m *OSContextMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *OSContextMutation) RemovedEdges() []string
- func (m *OSContextMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *OSContextMutation) RemovedIDs(name string) []ent.Value
- func (m *OSContextMutation) ResetEdge(name string) error
- func (m *OSContextMutation) ResetEvents()
- func (m *OSContextMutation) ResetFamily()
- func (m *OSContextMutation) ResetField(name string) error
- func (m *OSContextMutation) ResetName()
- func (m *OSContextMutation) ResetPlatform()
- func (m *OSContextMutation) ResetVersion()
- func (m *OSContextMutation) SetFamily(s string)
- func (m *OSContextMutation) SetField(name string, value ent.Value) error
- func (m *OSContextMutation) SetName(s string)
- func (m *OSContextMutation) SetPlatform(s string)
- func (m *OSContextMutation) SetVersion(s string)
- func (m OSContextMutation) Tx() (*Tx, error)
- func (m *OSContextMutation) Type() string
- func (m *OSContextMutation) Version() (r string, exists bool)
- type OSContextQuery
- func (ocq *OSContextQuery) All(ctx context.Context) ([]*OSContext, error)
- func (ocq *OSContextQuery) AllX(ctx context.Context) []*OSContext
- func (ocq *OSContextQuery) Clone() *OSContextQuery
- func (ocq *OSContextQuery) Count(ctx context.Context) (int, error)
- func (ocq *OSContextQuery) CountX(ctx context.Context) int
- func (ocq *OSContextQuery) Exist(ctx context.Context) (bool, error)
- func (ocq *OSContextQuery) ExistX(ctx context.Context) bool
- func (ocq *OSContextQuery) First(ctx context.Context) (*OSContext, error)
- func (ocq *OSContextQuery) FirstID(ctx context.Context) (id int, err error)
- func (ocq *OSContextQuery) FirstX(ctx context.Context) *OSContext
- func (ocq *OSContextQuery) FirstXID(ctx context.Context) int
- func (ocq *OSContextQuery) GroupBy(field string, fields ...string) *OSContextGroupBy
- func (ocq *OSContextQuery) IDs(ctx context.Context) ([]int, error)
- func (ocq *OSContextQuery) IDsX(ctx context.Context) []int
- func (ocq *OSContextQuery) Limit(limit int) *OSContextQuery
- func (ocq *OSContextQuery) Offset(offset int) *OSContextQuery
- func (ocq *OSContextQuery) Only(ctx context.Context) (*OSContext, error)
- func (ocq *OSContextQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ocq *OSContextQuery) OnlyIDX(ctx context.Context) int
- func (ocq *OSContextQuery) OnlyX(ctx context.Context) *OSContext
- func (ocq *OSContextQuery) Order(o ...OrderFunc) *OSContextQuery
- func (ocq *OSContextQuery) QueryEvents() *EventQuery
- func (ocq *OSContextQuery) Select(field string, fields ...string) *OSContextSelect
- func (ocq *OSContextQuery) Where(ps ...predicate.OSContext) *OSContextQuery
- func (ocq *OSContextQuery) WithEvents(opts ...func(*EventQuery)) *OSContextQuery
- type OSContextSelect
- func (ocs *OSContextSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ocs *OSContextSelect) BoolX(ctx context.Context) bool
- func (ocs *OSContextSelect) Bools(ctx context.Context) ([]bool, error)
- func (ocs *OSContextSelect) BoolsX(ctx context.Context) []bool
- func (ocs *OSContextSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ocs *OSContextSelect) Float64X(ctx context.Context) float64
- func (ocs *OSContextSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ocs *OSContextSelect) Float64sX(ctx context.Context) []float64
- func (ocs *OSContextSelect) Int(ctx context.Context) (_ int, err error)
- func (ocs *OSContextSelect) IntX(ctx context.Context) int
- func (ocs *OSContextSelect) Ints(ctx context.Context) ([]int, error)
- func (ocs *OSContextSelect) IntsX(ctx context.Context) []int
- func (ocs *OSContextSelect) Scan(ctx context.Context, v interface{}) error
- func (ocs *OSContextSelect) ScanX(ctx context.Context, v interface{})
- func (ocs *OSContextSelect) String(ctx context.Context) (_ string, err error)
- func (ocs *OSContextSelect) StringX(ctx context.Context) string
- func (ocs *OSContextSelect) Strings(ctx context.Context) ([]string, error)
- func (ocs *OSContextSelect) StringsX(ctx context.Context) []string
- type OSContextUpdate
- func (ocu *OSContextUpdate) AddEventIDs(ids ...uuid.UUID) *OSContextUpdate
- func (ocu *OSContextUpdate) AddEvents(e ...*Event) *OSContextUpdate
- func (ocu *OSContextUpdate) ClearPlatform() *OSContextUpdate
- func (ocu *OSContextUpdate) Exec(ctx context.Context) error
- func (ocu *OSContextUpdate) ExecX(ctx context.Context)
- func (ocu *OSContextUpdate) Mutation() *OSContextMutation
- func (ocu *OSContextUpdate) RemoveEventIDs(ids ...uuid.UUID) *OSContextUpdate
- func (ocu *OSContextUpdate) RemoveEvents(e ...*Event) *OSContextUpdate
- func (ocu *OSContextUpdate) Save(ctx context.Context) (int, error)
- func (ocu *OSContextUpdate) SaveX(ctx context.Context) int
- func (ocu *OSContextUpdate) SetFamily(s string) *OSContextUpdate
- func (ocu *OSContextUpdate) SetName(s string) *OSContextUpdate
- func (ocu *OSContextUpdate) SetNillablePlatform(s *string) *OSContextUpdate
- func (ocu *OSContextUpdate) SetPlatform(s string) *OSContextUpdate
- func (ocu *OSContextUpdate) SetVersion(s string) *OSContextUpdate
- func (ocu *OSContextUpdate) Where(ps ...predicate.OSContext) *OSContextUpdate
- type OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) AddEventIDs(ids ...uuid.UUID) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) AddEvents(e ...*Event) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) ClearPlatform() *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) Exec(ctx context.Context) error
- func (ocuo *OSContextUpdateOne) ExecX(ctx context.Context)
- func (ocuo *OSContextUpdateOne) Mutation() *OSContextMutation
- func (ocuo *OSContextUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) RemoveEvents(e ...*Event) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) Save(ctx context.Context) (*OSContext, error)
- func (ocuo *OSContextUpdateOne) SaveX(ctx context.Context) *OSContext
- func (ocuo *OSContextUpdateOne) SetFamily(s string) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) SetName(s string) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) SetNillablePlatform(s *string) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) SetPlatform(s string) *OSContextUpdateOne
- func (ocuo *OSContextUpdateOne) SetVersion(s string) *OSContextUpdateOne
- type OSContexts
- type Op
- type Option
- type OrderFunc
- type Page
- type PageClient
- func (c *PageClient) Create() *PageCreate
- func (c *PageClient) CreateBulk(builders ...*PageCreate) *PageCreateBulk
- func (c *PageClient) Delete() *PageDelete
- func (c *PageClient) DeleteOne(pa *Page) *PageDeleteOne
- func (c *PageClient) DeleteOneID(id int) *PageDeleteOne
- func (c *PageClient) Get(ctx context.Context, id int) (*Page, error)
- func (c *PageClient) GetX(ctx context.Context, id int) *Page
- func (c *PageClient) Hooks() []Hook
- func (c *PageClient) Query() *PageQuery
- func (c *PageClient) QueryEvents(pa *Page) *EventQuery
- func (c *PageClient) Update() *PageUpdate
- func (c *PageClient) UpdateOne(pa *Page) *PageUpdateOne
- func (c *PageClient) UpdateOneID(id int) *PageUpdateOne
- func (c *PageClient) Use(hooks ...Hook)
- type PageCreate
- func (pc *PageCreate) AddEventIDs(ids ...uuid.UUID) *PageCreate
- func (pc *PageCreate) AddEvents(e ...*Event) *PageCreate
- func (pc *PageCreate) Mutation() *PageMutation
- func (pc *PageCreate) Save(ctx context.Context) (*Page, error)
- func (pc *PageCreate) SaveX(ctx context.Context) *Page
- func (pc *PageCreate) SetHash(s string) *PageCreate
- func (pc *PageCreate) SetHostname(s string) *PageCreate
- func (pc *PageCreate) SetNillableHash(s *string) *PageCreate
- func (pc *PageCreate) SetNillableReferrer(s *string) *PageCreate
- func (pc *PageCreate) SetNillableSearch(s *string) *PageCreate
- func (pc *PageCreate) SetNillableTitle(s *string) *PageCreate
- func (pc *PageCreate) SetPath(s string) *PageCreate
- func (pc *PageCreate) SetReferrer(s string) *PageCreate
- func (pc *PageCreate) SetSearch(s string) *PageCreate
- func (pc *PageCreate) SetTitle(s string) *PageCreate
- type PageCreateBulk
- type PageDelete
- type PageDeleteOne
- type PageEdges
- type PageGroupBy
- func (pgb *PageGroupBy) Aggregate(fns ...AggregateFunc) *PageGroupBy
- func (pgb *PageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (pgb *PageGroupBy) BoolX(ctx context.Context) bool
- func (pgb *PageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (pgb *PageGroupBy) BoolsX(ctx context.Context) []bool
- func (pgb *PageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (pgb *PageGroupBy) Float64X(ctx context.Context) float64
- func (pgb *PageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (pgb *PageGroupBy) Float64sX(ctx context.Context) []float64
- func (pgb *PageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (pgb *PageGroupBy) IntX(ctx context.Context) int
- func (pgb *PageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (pgb *PageGroupBy) IntsX(ctx context.Context) []int
- func (pgb *PageGroupBy) Scan(ctx context.Context, v interface{}) error
- func (pgb *PageGroupBy) ScanX(ctx context.Context, v interface{})
- func (pgb *PageGroupBy) String(ctx context.Context) (_ string, err error)
- func (pgb *PageGroupBy) StringX(ctx context.Context) string
- func (pgb *PageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (pgb *PageGroupBy) StringsX(ctx context.Context) []string
- type PageMutation
- func (m *PageMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *PageMutation) AddField(name string, value ent.Value) error
- func (m *PageMutation) AddedEdges() []string
- func (m *PageMutation) AddedField(name string) (ent.Value, bool)
- func (m *PageMutation) AddedFields() []string
- func (m *PageMutation) AddedIDs(name string) []ent.Value
- func (m *PageMutation) ClearEdge(name string) error
- func (m *PageMutation) ClearField(name string) error
- func (m *PageMutation) ClearHash()
- func (m *PageMutation) ClearReferrer()
- func (m *PageMutation) ClearSearch()
- func (m *PageMutation) ClearTitle()
- func (m *PageMutation) ClearedEdges() []string
- func (m *PageMutation) ClearedFields() []string
- func (m PageMutation) Client() *Client
- func (m *PageMutation) EdgeCleared(name string) bool
- func (m *PageMutation) EventsIDs() (ids []uuid.UUID)
- func (m *PageMutation) Field(name string) (ent.Value, bool)
- func (m *PageMutation) FieldCleared(name string) bool
- func (m *PageMutation) Fields() []string
- func (m *PageMutation) Hash() (r string, exists bool)
- func (m *PageMutation) HashCleared() bool
- func (m *PageMutation) Hostname() (r string, exists bool)
- func (m *PageMutation) ID() (id int, exists bool)
- func (m *PageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PageMutation) OldHash(ctx context.Context) (v string, err error)
- func (m *PageMutation) OldHostname(ctx context.Context) (v string, err error)
- func (m *PageMutation) OldPath(ctx context.Context) (v string, err error)
- func (m *PageMutation) OldReferrer(ctx context.Context) (v string, err error)
- func (m *PageMutation) OldSearch(ctx context.Context) (v string, err error)
- func (m *PageMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *PageMutation) Op() Op
- func (m *PageMutation) Path() (r string, exists bool)
- func (m *PageMutation) Referrer() (r string, exists bool)
- func (m *PageMutation) ReferrerCleared() bool
- func (m *PageMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *PageMutation) RemovedEdges() []string
- func (m *PageMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *PageMutation) RemovedIDs(name string) []ent.Value
- func (m *PageMutation) ResetEdge(name string) error
- func (m *PageMutation) ResetEvents()
- func (m *PageMutation) ResetField(name string) error
- func (m *PageMutation) ResetHash()
- func (m *PageMutation) ResetHostname()
- func (m *PageMutation) ResetPath()
- func (m *PageMutation) ResetReferrer()
- func (m *PageMutation) ResetSearch()
- func (m *PageMutation) ResetTitle()
- func (m *PageMutation) Search() (r string, exists bool)
- func (m *PageMutation) SearchCleared() bool
- func (m *PageMutation) SetField(name string, value ent.Value) error
- func (m *PageMutation) SetHash(s string)
- func (m *PageMutation) SetHostname(s string)
- func (m *PageMutation) SetPath(s string)
- func (m *PageMutation) SetReferrer(s string)
- func (m *PageMutation) SetSearch(s string)
- func (m *PageMutation) SetTitle(s string)
- func (m *PageMutation) Title() (r string, exists bool)
- func (m *PageMutation) TitleCleared() bool
- func (m PageMutation) Tx() (*Tx, error)
- func (m *PageMutation) Type() string
- type PageQuery
- func (pq *PageQuery) All(ctx context.Context) ([]*Page, error)
- func (pq *PageQuery) AllX(ctx context.Context) []*Page
- func (pq *PageQuery) Clone() *PageQuery
- func (pq *PageQuery) Count(ctx context.Context) (int, error)
- func (pq *PageQuery) CountX(ctx context.Context) int
- func (pq *PageQuery) Exist(ctx context.Context) (bool, error)
- func (pq *PageQuery) ExistX(ctx context.Context) bool
- func (pq *PageQuery) First(ctx context.Context) (*Page, error)
- func (pq *PageQuery) FirstID(ctx context.Context) (id int, err error)
- func (pq *PageQuery) FirstX(ctx context.Context) *Page
- func (pq *PageQuery) FirstXID(ctx context.Context) int
- func (pq *PageQuery) GroupBy(field string, fields ...string) *PageGroupBy
- func (pq *PageQuery) IDs(ctx context.Context) ([]int, error)
- func (pq *PageQuery) IDsX(ctx context.Context) []int
- func (pq *PageQuery) Limit(limit int) *PageQuery
- func (pq *PageQuery) Offset(offset int) *PageQuery
- func (pq *PageQuery) Only(ctx context.Context) (*Page, error)
- func (pq *PageQuery) OnlyID(ctx context.Context) (id int, err error)
- func (pq *PageQuery) OnlyIDX(ctx context.Context) int
- func (pq *PageQuery) OnlyX(ctx context.Context) *Page
- func (pq *PageQuery) Order(o ...OrderFunc) *PageQuery
- func (pq *PageQuery) QueryEvents() *EventQuery
- func (pq *PageQuery) Select(field string, fields ...string) *PageSelect
- func (pq *PageQuery) Where(ps ...predicate.Page) *PageQuery
- func (pq *PageQuery) WithEvents(opts ...func(*EventQuery)) *PageQuery
- type PageSelect
- func (ps *PageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ps *PageSelect) BoolX(ctx context.Context) bool
- func (ps *PageSelect) Bools(ctx context.Context) ([]bool, error)
- func (ps *PageSelect) BoolsX(ctx context.Context) []bool
- func (ps *PageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ps *PageSelect) Float64X(ctx context.Context) float64
- func (ps *PageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ps *PageSelect) Float64sX(ctx context.Context) []float64
- func (ps *PageSelect) Int(ctx context.Context) (_ int, err error)
- func (ps *PageSelect) IntX(ctx context.Context) int
- func (ps *PageSelect) Ints(ctx context.Context) ([]int, error)
- func (ps *PageSelect) IntsX(ctx context.Context) []int
- func (ps *PageSelect) Scan(ctx context.Context, v interface{}) error
- func (ps *PageSelect) ScanX(ctx context.Context, v interface{})
- func (ps *PageSelect) String(ctx context.Context) (_ string, err error)
- func (ps *PageSelect) StringX(ctx context.Context) string
- func (ps *PageSelect) Strings(ctx context.Context) ([]string, error)
- func (ps *PageSelect) StringsX(ctx context.Context) []string
- type PageUpdate
- func (pu *PageUpdate) AddEventIDs(ids ...uuid.UUID) *PageUpdate
- func (pu *PageUpdate) AddEvents(e ...*Event) *PageUpdate
- func (pu *PageUpdate) ClearHash() *PageUpdate
- func (pu *PageUpdate) ClearReferrer() *PageUpdate
- func (pu *PageUpdate) ClearSearch() *PageUpdate
- func (pu *PageUpdate) ClearTitle() *PageUpdate
- func (pu *PageUpdate) Exec(ctx context.Context) error
- func (pu *PageUpdate) ExecX(ctx context.Context)
- func (pu *PageUpdate) Mutation() *PageMutation
- func (pu *PageUpdate) RemoveEventIDs(ids ...uuid.UUID) *PageUpdate
- func (pu *PageUpdate) RemoveEvents(e ...*Event) *PageUpdate
- func (pu *PageUpdate) Save(ctx context.Context) (int, error)
- func (pu *PageUpdate) SaveX(ctx context.Context) int
- func (pu *PageUpdate) SetHash(s string) *PageUpdate
- func (pu *PageUpdate) SetHostname(s string) *PageUpdate
- func (pu *PageUpdate) SetNillableHash(s *string) *PageUpdate
- func (pu *PageUpdate) SetNillableReferrer(s *string) *PageUpdate
- func (pu *PageUpdate) SetNillableSearch(s *string) *PageUpdate
- func (pu *PageUpdate) SetNillableTitle(s *string) *PageUpdate
- func (pu *PageUpdate) SetPath(s string) *PageUpdate
- func (pu *PageUpdate) SetReferrer(s string) *PageUpdate
- func (pu *PageUpdate) SetSearch(s string) *PageUpdate
- func (pu *PageUpdate) SetTitle(s string) *PageUpdate
- func (pu *PageUpdate) Where(ps ...predicate.Page) *PageUpdate
- type PageUpdateOne
- func (puo *PageUpdateOne) AddEventIDs(ids ...uuid.UUID) *PageUpdateOne
- func (puo *PageUpdateOne) AddEvents(e ...*Event) *PageUpdateOne
- func (puo *PageUpdateOne) ClearHash() *PageUpdateOne
- func (puo *PageUpdateOne) ClearReferrer() *PageUpdateOne
- func (puo *PageUpdateOne) ClearSearch() *PageUpdateOne
- func (puo *PageUpdateOne) ClearTitle() *PageUpdateOne
- func (puo *PageUpdateOne) Exec(ctx context.Context) error
- func (puo *PageUpdateOne) ExecX(ctx context.Context)
- func (puo *PageUpdateOne) Mutation() *PageMutation
- func (puo *PageUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *PageUpdateOne
- func (puo *PageUpdateOne) RemoveEvents(e ...*Event) *PageUpdateOne
- func (puo *PageUpdateOne) Save(ctx context.Context) (*Page, error)
- func (puo *PageUpdateOne) SaveX(ctx context.Context) *Page
- func (puo *PageUpdateOne) SetHash(s string) *PageUpdateOne
- func (puo *PageUpdateOne) SetHostname(s string) *PageUpdateOne
- func (puo *PageUpdateOne) SetNillableHash(s *string) *PageUpdateOne
- func (puo *PageUpdateOne) SetNillableReferrer(s *string) *PageUpdateOne
- func (puo *PageUpdateOne) SetNillableSearch(s *string) *PageUpdateOne
- func (puo *PageUpdateOne) SetNillableTitle(s *string) *PageUpdateOne
- func (puo *PageUpdateOne) SetPath(s string) *PageUpdateOne
- func (puo *PageUpdateOne) SetReferrer(s string) *PageUpdateOne
- func (puo *PageUpdateOne) SetSearch(s string) *PageUpdateOne
- func (puo *PageUpdateOne) SetTitle(s string) *PageUpdateOne
- type Pages
- type Policy
- type Query
- type Referrer
- type ReferrerClient
- func (c *ReferrerClient) Create() *ReferrerCreate
- func (c *ReferrerClient) CreateBulk(builders ...*ReferrerCreate) *ReferrerCreateBulk
- func (c *ReferrerClient) Delete() *ReferrerDelete
- func (c *ReferrerClient) DeleteOne(r *Referrer) *ReferrerDeleteOne
- func (c *ReferrerClient) DeleteOneID(id int) *ReferrerDeleteOne
- func (c *ReferrerClient) Get(ctx context.Context, id int) (*Referrer, error)
- func (c *ReferrerClient) GetX(ctx context.Context, id int) *Referrer
- func (c *ReferrerClient) Hooks() []Hook
- func (c *ReferrerClient) Query() *ReferrerQuery
- func (c *ReferrerClient) QueryEvents(r *Referrer) *EventQuery
- func (c *ReferrerClient) Update() *ReferrerUpdate
- func (c *ReferrerClient) UpdateOne(r *Referrer) *ReferrerUpdateOne
- func (c *ReferrerClient) UpdateOneID(id int) *ReferrerUpdateOne
- func (c *ReferrerClient) Use(hooks ...Hook)
- type ReferrerCreate
- func (rc *ReferrerCreate) AddEventIDs(ids ...uuid.UUID) *ReferrerCreate
- func (rc *ReferrerCreate) AddEvents(e ...*Event) *ReferrerCreate
- func (rc *ReferrerCreate) Mutation() *ReferrerMutation
- func (rc *ReferrerCreate) Save(ctx context.Context) (*Referrer, error)
- func (rc *ReferrerCreate) SaveX(ctx context.Context) *Referrer
- func (rc *ReferrerCreate) SetHostname(s string) *ReferrerCreate
- func (rc *ReferrerCreate) SetLink(s string) *ReferrerCreate
- func (rc *ReferrerCreate) SetName(s string) *ReferrerCreate
- func (rc *ReferrerCreate) SetNillableHostname(s *string) *ReferrerCreate
- func (rc *ReferrerCreate) SetNillableLink(s *string) *ReferrerCreate
- func (rc *ReferrerCreate) SetNillableType(s *string) *ReferrerCreate
- func (rc *ReferrerCreate) SetType(s string) *ReferrerCreate
- type ReferrerCreateBulk
- type ReferrerDelete
- type ReferrerDeleteOne
- type ReferrerEdges
- type ReferrerGroupBy
- func (rgb *ReferrerGroupBy) Aggregate(fns ...AggregateFunc) *ReferrerGroupBy
- func (rgb *ReferrerGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (rgb *ReferrerGroupBy) BoolX(ctx context.Context) bool
- func (rgb *ReferrerGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (rgb *ReferrerGroupBy) BoolsX(ctx context.Context) []bool
- func (rgb *ReferrerGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (rgb *ReferrerGroupBy) Float64X(ctx context.Context) float64
- func (rgb *ReferrerGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (rgb *ReferrerGroupBy) Float64sX(ctx context.Context) []float64
- func (rgb *ReferrerGroupBy) Int(ctx context.Context) (_ int, err error)
- func (rgb *ReferrerGroupBy) IntX(ctx context.Context) int
- func (rgb *ReferrerGroupBy) Ints(ctx context.Context) ([]int, error)
- func (rgb *ReferrerGroupBy) IntsX(ctx context.Context) []int
- func (rgb *ReferrerGroupBy) Scan(ctx context.Context, v interface{}) error
- func (rgb *ReferrerGroupBy) ScanX(ctx context.Context, v interface{})
- func (rgb *ReferrerGroupBy) String(ctx context.Context) (_ string, err error)
- func (rgb *ReferrerGroupBy) StringX(ctx context.Context) string
- func (rgb *ReferrerGroupBy) Strings(ctx context.Context) ([]string, error)
- func (rgb *ReferrerGroupBy) StringsX(ctx context.Context) []string
- type ReferrerMutation
- func (m *ReferrerMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) AddField(name string, value ent.Value) error
- func (m *ReferrerMutation) AddedEdges() []string
- func (m *ReferrerMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReferrerMutation) AddedFields() []string
- func (m *ReferrerMutation) AddedIDs(name string) []ent.Value
- func (m *ReferrerMutation) ClearEdge(name string) error
- func (m *ReferrerMutation) ClearField(name string) error
- func (m *ReferrerMutation) ClearHostname()
- func (m *ReferrerMutation) ClearLink()
- func (m *ReferrerMutation) ClearType()
- func (m *ReferrerMutation) ClearedEdges() []string
- func (m *ReferrerMutation) ClearedFields() []string
- func (m ReferrerMutation) Client() *Client
- func (m *ReferrerMutation) EdgeCleared(name string) bool
- func (m *ReferrerMutation) EventsIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) Field(name string) (ent.Value, bool)
- func (m *ReferrerMutation) FieldCleared(name string) bool
- func (m *ReferrerMutation) Fields() []string
- func (m *ReferrerMutation) GetType() (r string, exists bool)
- func (m *ReferrerMutation) Hostname() (r string, exists bool)
- func (m *ReferrerMutation) HostnameCleared() bool
- func (m *ReferrerMutation) ID() (id int, exists bool)
- func (m *ReferrerMutation) Link() (r string, exists bool)
- func (m *ReferrerMutation) LinkCleared() bool
- func (m *ReferrerMutation) Name() (r string, exists bool)
- func (m *ReferrerMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReferrerMutation) OldHostname(ctx context.Context) (v string, err error)
- func (m *ReferrerMutation) OldLink(ctx context.Context) (v string, err error)
- func (m *ReferrerMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ReferrerMutation) OldType(ctx context.Context) (v string, err error)
- func (m *ReferrerMutation) Op() Op
- func (m *ReferrerMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *ReferrerMutation) RemovedEdges() []string
- func (m *ReferrerMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *ReferrerMutation) RemovedIDs(name string) []ent.Value
- func (m *ReferrerMutation) ResetEdge(name string) error
- func (m *ReferrerMutation) ResetEvents()
- func (m *ReferrerMutation) ResetField(name string) error
- func (m *ReferrerMutation) ResetHostname()
- func (m *ReferrerMutation) ResetLink()
- func (m *ReferrerMutation) ResetName()
- func (m *ReferrerMutation) ResetType()
- func (m *ReferrerMutation) SetField(name string, value ent.Value) error
- func (m *ReferrerMutation) SetHostname(s string)
- func (m *ReferrerMutation) SetLink(s string)
- func (m *ReferrerMutation) SetName(s string)
- func (m *ReferrerMutation) SetType(s string)
- func (m ReferrerMutation) Tx() (*Tx, error)
- func (m *ReferrerMutation) Type() string
- func (m *ReferrerMutation) TypeCleared() bool
- type ReferrerQuery
- func (rq *ReferrerQuery) All(ctx context.Context) ([]*Referrer, error)
- func (rq *ReferrerQuery) AllX(ctx context.Context) []*Referrer
- func (rq *ReferrerQuery) Clone() *ReferrerQuery
- func (rq *ReferrerQuery) Count(ctx context.Context) (int, error)
- func (rq *ReferrerQuery) CountX(ctx context.Context) int
- func (rq *ReferrerQuery) Exist(ctx context.Context) (bool, error)
- func (rq *ReferrerQuery) ExistX(ctx context.Context) bool
- func (rq *ReferrerQuery) First(ctx context.Context) (*Referrer, error)
- func (rq *ReferrerQuery) FirstID(ctx context.Context) (id int, err error)
- func (rq *ReferrerQuery) FirstX(ctx context.Context) *Referrer
- func (rq *ReferrerQuery) FirstXID(ctx context.Context) int
- func (rq *ReferrerQuery) GroupBy(field string, fields ...string) *ReferrerGroupBy
- func (rq *ReferrerQuery) IDs(ctx context.Context) ([]int, error)
- func (rq *ReferrerQuery) IDsX(ctx context.Context) []int
- func (rq *ReferrerQuery) Limit(limit int) *ReferrerQuery
- func (rq *ReferrerQuery) Offset(offset int) *ReferrerQuery
- func (rq *ReferrerQuery) Only(ctx context.Context) (*Referrer, error)
- func (rq *ReferrerQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rq *ReferrerQuery) OnlyIDX(ctx context.Context) int
- func (rq *ReferrerQuery) OnlyX(ctx context.Context) *Referrer
- func (rq *ReferrerQuery) Order(o ...OrderFunc) *ReferrerQuery
- func (rq *ReferrerQuery) QueryEvents() *EventQuery
- func (rq *ReferrerQuery) Select(field string, fields ...string) *ReferrerSelect
- func (rq *ReferrerQuery) Where(ps ...predicate.Referrer) *ReferrerQuery
- func (rq *ReferrerQuery) WithEvents(opts ...func(*EventQuery)) *ReferrerQuery
- type ReferrerSelect
- func (rs *ReferrerSelect) Bool(ctx context.Context) (_ bool, err error)
- func (rs *ReferrerSelect) BoolX(ctx context.Context) bool
- func (rs *ReferrerSelect) Bools(ctx context.Context) ([]bool, error)
- func (rs *ReferrerSelect) BoolsX(ctx context.Context) []bool
- func (rs *ReferrerSelect) Float64(ctx context.Context) (_ float64, err error)
- func (rs *ReferrerSelect) Float64X(ctx context.Context) float64
- func (rs *ReferrerSelect) Float64s(ctx context.Context) ([]float64, error)
- func (rs *ReferrerSelect) Float64sX(ctx context.Context) []float64
- func (rs *ReferrerSelect) Int(ctx context.Context) (_ int, err error)
- func (rs *ReferrerSelect) IntX(ctx context.Context) int
- func (rs *ReferrerSelect) Ints(ctx context.Context) ([]int, error)
- func (rs *ReferrerSelect) IntsX(ctx context.Context) []int
- func (rs *ReferrerSelect) Scan(ctx context.Context, v interface{}) error
- func (rs *ReferrerSelect) ScanX(ctx context.Context, v interface{})
- func (rs *ReferrerSelect) String(ctx context.Context) (_ string, err error)
- func (rs *ReferrerSelect) StringX(ctx context.Context) string
- func (rs *ReferrerSelect) Strings(ctx context.Context) ([]string, error)
- func (rs *ReferrerSelect) StringsX(ctx context.Context) []string
- type ReferrerUpdate
- func (ru *ReferrerUpdate) AddEventIDs(ids ...uuid.UUID) *ReferrerUpdate
- func (ru *ReferrerUpdate) AddEvents(e ...*Event) *ReferrerUpdate
- func (ru *ReferrerUpdate) ClearHostname() *ReferrerUpdate
- func (ru *ReferrerUpdate) ClearLink() *ReferrerUpdate
- func (ru *ReferrerUpdate) ClearType() *ReferrerUpdate
- func (ru *ReferrerUpdate) Exec(ctx context.Context) error
- func (ru *ReferrerUpdate) ExecX(ctx context.Context)
- func (ru *ReferrerUpdate) Mutation() *ReferrerMutation
- func (ru *ReferrerUpdate) RemoveEventIDs(ids ...uuid.UUID) *ReferrerUpdate
- func (ru *ReferrerUpdate) RemoveEvents(e ...*Event) *ReferrerUpdate
- func (ru *ReferrerUpdate) Save(ctx context.Context) (int, error)
- func (ru *ReferrerUpdate) SaveX(ctx context.Context) int
- func (ru *ReferrerUpdate) SetHostname(s string) *ReferrerUpdate
- func (ru *ReferrerUpdate) SetLink(s string) *ReferrerUpdate
- func (ru *ReferrerUpdate) SetName(s string) *ReferrerUpdate
- func (ru *ReferrerUpdate) SetNillableHostname(s *string) *ReferrerUpdate
- func (ru *ReferrerUpdate) SetNillableLink(s *string) *ReferrerUpdate
- func (ru *ReferrerUpdate) SetNillableType(s *string) *ReferrerUpdate
- func (ru *ReferrerUpdate) SetType(s string) *ReferrerUpdate
- func (ru *ReferrerUpdate) Where(ps ...predicate.Referrer) *ReferrerUpdate
- type ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) AddEventIDs(ids ...uuid.UUID) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) AddEvents(e ...*Event) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) ClearHostname() *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) ClearLink() *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) ClearType() *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) Exec(ctx context.Context) error
- func (ruo *ReferrerUpdateOne) ExecX(ctx context.Context)
- func (ruo *ReferrerUpdateOne) Mutation() *ReferrerMutation
- func (ruo *ReferrerUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) RemoveEvents(e ...*Event) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) Save(ctx context.Context) (*Referrer, error)
- func (ruo *ReferrerUpdateOne) SaveX(ctx context.Context) *Referrer
- func (ruo *ReferrerUpdateOne) SetHostname(s string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) SetLink(s string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) SetName(s string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) SetNillableHostname(s *string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) SetNillableLink(s *string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) SetNillableType(s *string) *ReferrerUpdateOne
- func (ruo *ReferrerUpdateOne) SetType(s string) *ReferrerUpdateOne
- type Referrers
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Screen
- type ScreenClient
- func (c *ScreenClient) Create() *ScreenCreate
- func (c *ScreenClient) CreateBulk(builders ...*ScreenCreate) *ScreenCreateBulk
- func (c *ScreenClient) Delete() *ScreenDelete
- func (c *ScreenClient) DeleteOne(s *Screen) *ScreenDeleteOne
- func (c *ScreenClient) DeleteOneID(id int) *ScreenDeleteOne
- func (c *ScreenClient) Get(ctx context.Context, id int) (*Screen, error)
- func (c *ScreenClient) GetX(ctx context.Context, id int) *Screen
- func (c *ScreenClient) Hooks() []Hook
- func (c *ScreenClient) Query() *ScreenQuery
- func (c *ScreenClient) QueryEvents(s *Screen) *EventQuery
- func (c *ScreenClient) Update() *ScreenUpdate
- func (c *ScreenClient) UpdateOne(s *Screen) *ScreenUpdateOne
- func (c *ScreenClient) UpdateOneID(id int) *ScreenUpdateOne
- func (c *ScreenClient) Use(hooks ...Hook)
- type ScreenCreate
- func (sc *ScreenCreate) AddEventIDs(ids ...uuid.UUID) *ScreenCreate
- func (sc *ScreenCreate) AddEvents(e ...*Event) *ScreenCreate
- func (sc *ScreenCreate) Mutation() *ScreenMutation
- func (sc *ScreenCreate) Save(ctx context.Context) (*Screen, error)
- func (sc *ScreenCreate) SaveX(ctx context.Context) *Screen
- func (sc *ScreenCreate) SetCategory(s string) *ScreenCreate
- func (sc *ScreenCreate) SetName(s string) *ScreenCreate
- func (sc *ScreenCreate) SetNillableCategory(s *string) *ScreenCreate
- type ScreenCreateBulk
- type ScreenDelete
- type ScreenDeleteOne
- type ScreenEdges
- type ScreenGroupBy
- func (sgb *ScreenGroupBy) Aggregate(fns ...AggregateFunc) *ScreenGroupBy
- func (sgb *ScreenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sgb *ScreenGroupBy) BoolX(ctx context.Context) bool
- func (sgb *ScreenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sgb *ScreenGroupBy) BoolsX(ctx context.Context) []bool
- func (sgb *ScreenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sgb *ScreenGroupBy) Float64X(ctx context.Context) float64
- func (sgb *ScreenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sgb *ScreenGroupBy) Float64sX(ctx context.Context) []float64
- func (sgb *ScreenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sgb *ScreenGroupBy) IntX(ctx context.Context) int
- func (sgb *ScreenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sgb *ScreenGroupBy) IntsX(ctx context.Context) []int
- func (sgb *ScreenGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sgb *ScreenGroupBy) ScanX(ctx context.Context, v interface{})
- func (sgb *ScreenGroupBy) String(ctx context.Context) (_ string, err error)
- func (sgb *ScreenGroupBy) StringX(ctx context.Context) string
- func (sgb *ScreenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sgb *ScreenGroupBy) StringsX(ctx context.Context) []string
- type ScreenMutation
- func (m *ScreenMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *ScreenMutation) AddField(name string, value ent.Value) error
- func (m *ScreenMutation) AddedEdges() []string
- func (m *ScreenMutation) AddedField(name string) (ent.Value, bool)
- func (m *ScreenMutation) AddedFields() []string
- func (m *ScreenMutation) AddedIDs(name string) []ent.Value
- func (m *ScreenMutation) Category() (r string, exists bool)
- func (m *ScreenMutation) CategoryCleared() bool
- func (m *ScreenMutation) ClearCategory()
- func (m *ScreenMutation) ClearEdge(name string) error
- func (m *ScreenMutation) ClearField(name string) error
- func (m *ScreenMutation) ClearedEdges() []string
- func (m *ScreenMutation) ClearedFields() []string
- func (m ScreenMutation) Client() *Client
- func (m *ScreenMutation) EdgeCleared(name string) bool
- func (m *ScreenMutation) EventsIDs() (ids []uuid.UUID)
- func (m *ScreenMutation) Field(name string) (ent.Value, bool)
- func (m *ScreenMutation) FieldCleared(name string) bool
- func (m *ScreenMutation) Fields() []string
- func (m *ScreenMutation) ID() (id int, exists bool)
- func (m *ScreenMutation) Name() (r string, exists bool)
- func (m *ScreenMutation) OldCategory(ctx context.Context) (v string, err error)
- func (m *ScreenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ScreenMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ScreenMutation) Op() Op
- func (m *ScreenMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *ScreenMutation) RemovedEdges() []string
- func (m *ScreenMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *ScreenMutation) RemovedIDs(name string) []ent.Value
- func (m *ScreenMutation) ResetCategory()
- func (m *ScreenMutation) ResetEdge(name string) error
- func (m *ScreenMutation) ResetEvents()
- func (m *ScreenMutation) ResetField(name string) error
- func (m *ScreenMutation) ResetName()
- func (m *ScreenMutation) SetCategory(s string)
- func (m *ScreenMutation) SetField(name string, value ent.Value) error
- func (m *ScreenMutation) SetName(s string)
- func (m ScreenMutation) Tx() (*Tx, error)
- func (m *ScreenMutation) Type() string
- type ScreenQuery
- func (sq *ScreenQuery) All(ctx context.Context) ([]*Screen, error)
- func (sq *ScreenQuery) AllX(ctx context.Context) []*Screen
- func (sq *ScreenQuery) Clone() *ScreenQuery
- func (sq *ScreenQuery) Count(ctx context.Context) (int, error)
- func (sq *ScreenQuery) CountX(ctx context.Context) int
- func (sq *ScreenQuery) Exist(ctx context.Context) (bool, error)
- func (sq *ScreenQuery) ExistX(ctx context.Context) bool
- func (sq *ScreenQuery) First(ctx context.Context) (*Screen, error)
- func (sq *ScreenQuery) FirstID(ctx context.Context) (id int, err error)
- func (sq *ScreenQuery) FirstX(ctx context.Context) *Screen
- func (sq *ScreenQuery) FirstXID(ctx context.Context) int
- func (sq *ScreenQuery) GroupBy(field string, fields ...string) *ScreenGroupBy
- func (sq *ScreenQuery) IDs(ctx context.Context) ([]int, error)
- func (sq *ScreenQuery) IDsX(ctx context.Context) []int
- func (sq *ScreenQuery) Limit(limit int) *ScreenQuery
- func (sq *ScreenQuery) Offset(offset int) *ScreenQuery
- func (sq *ScreenQuery) Only(ctx context.Context) (*Screen, error)
- func (sq *ScreenQuery) OnlyID(ctx context.Context) (id int, err error)
- func (sq *ScreenQuery) OnlyIDX(ctx context.Context) int
- func (sq *ScreenQuery) OnlyX(ctx context.Context) *Screen
- func (sq *ScreenQuery) Order(o ...OrderFunc) *ScreenQuery
- func (sq *ScreenQuery) QueryEvents() *EventQuery
- func (sq *ScreenQuery) Select(field string, fields ...string) *ScreenSelect
- func (sq *ScreenQuery) Where(ps ...predicate.Screen) *ScreenQuery
- func (sq *ScreenQuery) WithEvents(opts ...func(*EventQuery)) *ScreenQuery
- type ScreenSelect
- func (ss *ScreenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ss *ScreenSelect) BoolX(ctx context.Context) bool
- func (ss *ScreenSelect) Bools(ctx context.Context) ([]bool, error)
- func (ss *ScreenSelect) BoolsX(ctx context.Context) []bool
- func (ss *ScreenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ss *ScreenSelect) Float64X(ctx context.Context) float64
- func (ss *ScreenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ss *ScreenSelect) Float64sX(ctx context.Context) []float64
- func (ss *ScreenSelect) Int(ctx context.Context) (_ int, err error)
- func (ss *ScreenSelect) IntX(ctx context.Context) int
- func (ss *ScreenSelect) Ints(ctx context.Context) ([]int, error)
- func (ss *ScreenSelect) IntsX(ctx context.Context) []int
- func (ss *ScreenSelect) Scan(ctx context.Context, v interface{}) error
- func (ss *ScreenSelect) ScanX(ctx context.Context, v interface{})
- func (ss *ScreenSelect) String(ctx context.Context) (_ string, err error)
- func (ss *ScreenSelect) StringX(ctx context.Context) string
- func (ss *ScreenSelect) Strings(ctx context.Context) ([]string, error)
- func (ss *ScreenSelect) StringsX(ctx context.Context) []string
- type ScreenUpdate
- func (su *ScreenUpdate) AddEventIDs(ids ...uuid.UUID) *ScreenUpdate
- func (su *ScreenUpdate) AddEvents(e ...*Event) *ScreenUpdate
- func (su *ScreenUpdate) ClearCategory() *ScreenUpdate
- func (su *ScreenUpdate) Exec(ctx context.Context) error
- func (su *ScreenUpdate) ExecX(ctx context.Context)
- func (su *ScreenUpdate) Mutation() *ScreenMutation
- func (su *ScreenUpdate) RemoveEventIDs(ids ...uuid.UUID) *ScreenUpdate
- func (su *ScreenUpdate) RemoveEvents(e ...*Event) *ScreenUpdate
- func (su *ScreenUpdate) Save(ctx context.Context) (int, error)
- func (su *ScreenUpdate) SaveX(ctx context.Context) int
- func (su *ScreenUpdate) SetCategory(s string) *ScreenUpdate
- func (su *ScreenUpdate) SetName(s string) *ScreenUpdate
- func (su *ScreenUpdate) SetNillableCategory(s *string) *ScreenUpdate
- func (su *ScreenUpdate) Where(ps ...predicate.Screen) *ScreenUpdate
- type ScreenUpdateOne
- func (suo *ScreenUpdateOne) AddEventIDs(ids ...uuid.UUID) *ScreenUpdateOne
- func (suo *ScreenUpdateOne) AddEvents(e ...*Event) *ScreenUpdateOne
- func (suo *ScreenUpdateOne) ClearCategory() *ScreenUpdateOne
- func (suo *ScreenUpdateOne) Exec(ctx context.Context) error
- func (suo *ScreenUpdateOne) ExecX(ctx context.Context)
- func (suo *ScreenUpdateOne) Mutation() *ScreenMutation
- func (suo *ScreenUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ScreenUpdateOne
- func (suo *ScreenUpdateOne) RemoveEvents(e ...*Event) *ScreenUpdateOne
- func (suo *ScreenUpdateOne) Save(ctx context.Context) (*Screen, error)
- func (suo *ScreenUpdateOne) SaveX(ctx context.Context) *Screen
- func (suo *ScreenUpdateOne) SetCategory(s string) *ScreenUpdateOne
- func (suo *ScreenUpdateOne) SetName(s string) *ScreenUpdateOne
- func (suo *ScreenUpdateOne) SetNillableCategory(s *string) *ScreenUpdateOne
- type Screens
- type Session
- type SessionClient
- func (c *SessionClient) Create() *SessionCreate
- func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
- func (c *SessionClient) Delete() *SessionDelete
- func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne
- func (c *SessionClient) DeleteOneID(id uuid.UUID) *SessionDeleteOne
- func (c *SessionClient) Get(ctx context.Context, id uuid.UUID) (*Session, error)
- func (c *SessionClient) GetX(ctx context.Context, id uuid.UUID) *Session
- func (c *SessionClient) Hooks() []Hook
- func (c *SessionClient) Query() *SessionQuery
- func (c *SessionClient) QueryEvents(s *Session) *EventQuery
- func (c *SessionClient) Update() *SessionUpdate
- func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne
- func (c *SessionClient) UpdateOneID(id uuid.UUID) *SessionUpdateOne
- func (c *SessionClient) Use(hooks ...Hook)
- type SessionCreate
- func (sc *SessionCreate) AddEventIDs(ids ...uuid.UUID) *SessionCreate
- func (sc *SessionCreate) AddEvents(e ...*Event) *SessionCreate
- func (sc *SessionCreate) Mutation() *SessionMutation
- func (sc *SessionCreate) Save(ctx context.Context) (*Session, error)
- func (sc *SessionCreate) SaveX(ctx context.Context) *Session
- func (sc *SessionCreate) SetDuration(i int) *SessionCreate
- func (sc *SessionCreate) SetFinishedAt(t time.Time) *SessionCreate
- func (sc *SessionCreate) SetID(u uuid.UUID) *SessionCreate
- func (sc *SessionCreate) SetIsBounce(b bool) *SessionCreate
- func (sc *SessionCreate) SetIsFinished(b bool) *SessionCreate
- func (sc *SessionCreate) SetIsUnique(b bool) *SessionCreate
- func (sc *SessionCreate) SetNewUser(b bool) *SessionCreate
- func (sc *SessionCreate) SetNillableDuration(i *int) *SessionCreate
- func (sc *SessionCreate) SetNillableFinishedAt(t *time.Time) *SessionCreate
- func (sc *SessionCreate) SetStartedAt(t time.Time) *SessionCreate
- type SessionCreateBulk
- type SessionDelete
- type SessionDeleteOne
- type SessionEdges
- type SessionGroupBy
- func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
- func (sgb *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (sgb *SessionGroupBy) BoolX(ctx context.Context) bool
- func (sgb *SessionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sgb *SessionGroupBy) BoolsX(ctx context.Context) []bool
- func (sgb *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (sgb *SessionGroupBy) Float64X(ctx context.Context) float64
- func (sgb *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sgb *SessionGroupBy) Float64sX(ctx context.Context) []float64
- func (sgb *SessionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (sgb *SessionGroupBy) IntX(ctx context.Context) int
- func (sgb *SessionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sgb *SessionGroupBy) IntsX(ctx context.Context) []int
- func (sgb *SessionGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sgb *SessionGroupBy) ScanX(ctx context.Context, v interface{})
- func (sgb *SessionGroupBy) String(ctx context.Context) (_ string, err error)
- func (sgb *SessionGroupBy) StringX(ctx context.Context) string
- func (sgb *SessionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sgb *SessionGroupBy) StringsX(ctx context.Context) []string
- type SessionMutation
- func (m *SessionMutation) AddDuration(i int)
- func (m *SessionMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *SessionMutation) AddField(name string, value ent.Value) error
- func (m *SessionMutation) AddedDuration() (r int, exists bool)
- func (m *SessionMutation) AddedEdges() []string
- func (m *SessionMutation) AddedField(name string) (ent.Value, bool)
- func (m *SessionMutation) AddedFields() []string
- func (m *SessionMutation) AddedIDs(name string) []ent.Value
- func (m *SessionMutation) ClearDuration()
- func (m *SessionMutation) ClearEdge(name string) error
- func (m *SessionMutation) ClearField(name string) error
- func (m *SessionMutation) ClearFinishedAt()
- func (m *SessionMutation) ClearedEdges() []string
- func (m *SessionMutation) ClearedFields() []string
- func (m SessionMutation) Client() *Client
- func (m *SessionMutation) Duration() (r int, exists bool)
- func (m *SessionMutation) DurationCleared() bool
- func (m *SessionMutation) EdgeCleared(name string) bool
- func (m *SessionMutation) EventsIDs() (ids []uuid.UUID)
- func (m *SessionMutation) Field(name string) (ent.Value, bool)
- func (m *SessionMutation) FieldCleared(name string) bool
- func (m *SessionMutation) Fields() []string
- func (m *SessionMutation) FinishedAt() (r time.Time, exists bool)
- func (m *SessionMutation) FinishedAtCleared() bool
- func (m *SessionMutation) ID() (id uuid.UUID, exists bool)
- func (m *SessionMutation) IsBounce() (r bool, exists bool)
- func (m *SessionMutation) IsFinished() (r bool, exists bool)
- func (m *SessionMutation) IsUnique() (r bool, exists bool)
- func (m *SessionMutation) NewUser() (r bool, exists bool)
- func (m *SessionMutation) OldDuration(ctx context.Context) (v int, err error)
- func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SessionMutation) OldFinishedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldIsBounce(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldIsFinished(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldIsUnique(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldNewUser(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldStartedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) Op() Op
- func (m *SessionMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *SessionMutation) RemovedEdges() []string
- func (m *SessionMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *SessionMutation) RemovedIDs(name string) []ent.Value
- func (m *SessionMutation) ResetDuration()
- func (m *SessionMutation) ResetEdge(name string) error
- func (m *SessionMutation) ResetEvents()
- func (m *SessionMutation) ResetField(name string) error
- func (m *SessionMutation) ResetFinishedAt()
- func (m *SessionMutation) ResetIsBounce()
- func (m *SessionMutation) ResetIsFinished()
- func (m *SessionMutation) ResetIsUnique()
- func (m *SessionMutation) ResetNewUser()
- func (m *SessionMutation) ResetStartedAt()
- func (m *SessionMutation) SetDuration(i int)
- func (m *SessionMutation) SetField(name string, value ent.Value) error
- func (m *SessionMutation) SetFinishedAt(t time.Time)
- func (m *SessionMutation) SetID(id uuid.UUID)
- func (m *SessionMutation) SetIsBounce(b bool)
- func (m *SessionMutation) SetIsFinished(b bool)
- func (m *SessionMutation) SetIsUnique(b bool)
- func (m *SessionMutation) SetNewUser(b bool)
- func (m *SessionMutation) SetStartedAt(t time.Time)
- func (m *SessionMutation) StartedAt() (r time.Time, exists bool)
- func (m SessionMutation) Tx() (*Tx, error)
- func (m *SessionMutation) Type() string
- type SessionQuery
- func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error)
- func (sq *SessionQuery) AllX(ctx context.Context) []*Session
- func (sq *SessionQuery) Clone() *SessionQuery
- func (sq *SessionQuery) Count(ctx context.Context) (int, error)
- func (sq *SessionQuery) CountX(ctx context.Context) int
- func (sq *SessionQuery) Exist(ctx context.Context) (bool, error)
- func (sq *SessionQuery) ExistX(ctx context.Context) bool
- func (sq *SessionQuery) First(ctx context.Context) (*Session, error)
- func (sq *SessionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *SessionQuery) FirstX(ctx context.Context) *Session
- func (sq *SessionQuery) FirstXID(ctx context.Context) uuid.UUID
- func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
- func (sq *SessionQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (sq *SessionQuery) IDsX(ctx context.Context) []uuid.UUID
- func (sq *SessionQuery) Limit(limit int) *SessionQuery
- func (sq *SessionQuery) Offset(offset int) *SessionQuery
- func (sq *SessionQuery) Only(ctx context.Context) (*Session, error)
- func (sq *SessionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *SessionQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (sq *SessionQuery) OnlyX(ctx context.Context) *Session
- func (sq *SessionQuery) Order(o ...OrderFunc) *SessionQuery
- func (sq *SessionQuery) QueryEvents() *EventQuery
- func (sq *SessionQuery) Select(field string, fields ...string) *SessionSelect
- func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
- func (sq *SessionQuery) WithEvents(opts ...func(*EventQuery)) *SessionQuery
- type SessionSelect
- func (ss *SessionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ss *SessionSelect) BoolX(ctx context.Context) bool
- func (ss *SessionSelect) Bools(ctx context.Context) ([]bool, error)
- func (ss *SessionSelect) BoolsX(ctx context.Context) []bool
- func (ss *SessionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ss *SessionSelect) Float64X(ctx context.Context) float64
- func (ss *SessionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ss *SessionSelect) Float64sX(ctx context.Context) []float64
- func (ss *SessionSelect) Int(ctx context.Context) (_ int, err error)
- func (ss *SessionSelect) IntX(ctx context.Context) int
- func (ss *SessionSelect) Ints(ctx context.Context) ([]int, error)
- func (ss *SessionSelect) IntsX(ctx context.Context) []int
- func (ss *SessionSelect) Scan(ctx context.Context, v interface{}) error
- func (ss *SessionSelect) ScanX(ctx context.Context, v interface{})
- func (ss *SessionSelect) String(ctx context.Context) (_ string, err error)
- func (ss *SessionSelect) StringX(ctx context.Context) string
- func (ss *SessionSelect) Strings(ctx context.Context) ([]string, error)
- func (ss *SessionSelect) StringsX(ctx context.Context) []string
- type SessionUpdate
- func (su *SessionUpdate) AddDuration(i int) *SessionUpdate
- func (su *SessionUpdate) AddEventIDs(ids ...uuid.UUID) *SessionUpdate
- func (su *SessionUpdate) AddEvents(e ...*Event) *SessionUpdate
- func (su *SessionUpdate) ClearDuration() *SessionUpdate
- func (su *SessionUpdate) ClearFinishedAt() *SessionUpdate
- func (su *SessionUpdate) Exec(ctx context.Context) error
- func (su *SessionUpdate) ExecX(ctx context.Context)
- func (su *SessionUpdate) Mutation() *SessionMutation
- func (su *SessionUpdate) RemoveEventIDs(ids ...uuid.UUID) *SessionUpdate
- func (su *SessionUpdate) RemoveEvents(e ...*Event) *SessionUpdate
- func (su *SessionUpdate) Save(ctx context.Context) (int, error)
- func (su *SessionUpdate) SaveX(ctx context.Context) int
- func (su *SessionUpdate) SetDuration(i int) *SessionUpdate
- func (su *SessionUpdate) SetFinishedAt(t time.Time) *SessionUpdate
- func (su *SessionUpdate) SetIsBounce(b bool) *SessionUpdate
- func (su *SessionUpdate) SetIsFinished(b bool) *SessionUpdate
- func (su *SessionUpdate) SetIsUnique(b bool) *SessionUpdate
- func (su *SessionUpdate) SetNewUser(b bool) *SessionUpdate
- func (su *SessionUpdate) SetNillableDuration(i *int) *SessionUpdate
- func (su *SessionUpdate) SetNillableFinishedAt(t *time.Time) *SessionUpdate
- func (su *SessionUpdate) SetStartedAt(t time.Time) *SessionUpdate
- func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
- type SessionUpdateOne
- func (suo *SessionUpdateOne) AddDuration(i int) *SessionUpdateOne
- func (suo *SessionUpdateOne) AddEventIDs(ids ...uuid.UUID) *SessionUpdateOne
- func (suo *SessionUpdateOne) AddEvents(e ...*Event) *SessionUpdateOne
- func (suo *SessionUpdateOne) ClearDuration() *SessionUpdateOne
- func (suo *SessionUpdateOne) ClearFinishedAt() *SessionUpdateOne
- func (suo *SessionUpdateOne) Exec(ctx context.Context) error
- func (suo *SessionUpdateOne) ExecX(ctx context.Context)
- func (suo *SessionUpdateOne) Mutation() *SessionMutation
- func (suo *SessionUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *SessionUpdateOne
- func (suo *SessionUpdateOne) RemoveEvents(e ...*Event) *SessionUpdateOne
- func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
- func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session
- func (suo *SessionUpdateOne) SetDuration(i int) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetFinishedAt(t time.Time) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetIsBounce(b bool) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetIsFinished(b bool) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetIsUnique(b bool) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNewUser(b bool) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNillableDuration(i *int) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNillableFinishedAt(t *time.Time) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetStartedAt(t time.Time) *SessionUpdateOne
- type Sessions
- type Timing
- type TimingClient
- func (c *TimingClient) Create() *TimingCreate
- func (c *TimingClient) CreateBulk(builders ...*TimingCreate) *TimingCreateBulk
- func (c *TimingClient) Delete() *TimingDelete
- func (c *TimingClient) DeleteOne(t *Timing) *TimingDeleteOne
- func (c *TimingClient) DeleteOneID(id int) *TimingDeleteOne
- func (c *TimingClient) Get(ctx context.Context, id int) (*Timing, error)
- func (c *TimingClient) GetX(ctx context.Context, id int) *Timing
- func (c *TimingClient) Hooks() []Hook
- func (c *TimingClient) Query() *TimingQuery
- func (c *TimingClient) QueryEvents(t *Timing) *EventQuery
- func (c *TimingClient) Update() *TimingUpdate
- func (c *TimingClient) UpdateOne(t *Timing) *TimingUpdateOne
- func (c *TimingClient) UpdateOneID(id int) *TimingUpdateOne
- func (c *TimingClient) Use(hooks ...Hook)
- type TimingCreate
- func (tc *TimingCreate) AddEventIDs(ids ...uuid.UUID) *TimingCreate
- func (tc *TimingCreate) AddEvents(e ...*Event) *TimingCreate
- func (tc *TimingCreate) Mutation() *TimingMutation
- func (tc *TimingCreate) Save(ctx context.Context) (*Timing, error)
- func (tc *TimingCreate) SaveX(ctx context.Context) *Timing
- func (tc *TimingCreate) SetCategory(s string) *TimingCreate
- func (tc *TimingCreate) SetTimingLabel(s string) *TimingCreate
- func (tc *TimingCreate) SetUnit(s string) *TimingCreate
- func (tc *TimingCreate) SetValue(f float64) *TimingCreate
- func (tc *TimingCreate) SetVariable(s string) *TimingCreate
- type TimingCreateBulk
- type TimingDelete
- type TimingDeleteOne
- type TimingEdges
- type TimingGroupBy
- func (tgb *TimingGroupBy) Aggregate(fns ...AggregateFunc) *TimingGroupBy
- func (tgb *TimingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (tgb *TimingGroupBy) BoolX(ctx context.Context) bool
- func (tgb *TimingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (tgb *TimingGroupBy) BoolsX(ctx context.Context) []bool
- func (tgb *TimingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (tgb *TimingGroupBy) Float64X(ctx context.Context) float64
- func (tgb *TimingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (tgb *TimingGroupBy) Float64sX(ctx context.Context) []float64
- func (tgb *TimingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (tgb *TimingGroupBy) IntX(ctx context.Context) int
- func (tgb *TimingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (tgb *TimingGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TimingGroupBy) Scan(ctx context.Context, v interface{}) error
- func (tgb *TimingGroupBy) ScanX(ctx context.Context, v interface{})
- func (tgb *TimingGroupBy) String(ctx context.Context) (_ string, err error)
- func (tgb *TimingGroupBy) StringX(ctx context.Context) string
- func (tgb *TimingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (tgb *TimingGroupBy) StringsX(ctx context.Context) []string
- type TimingMutation
- func (m *TimingMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *TimingMutation) AddField(name string, value ent.Value) error
- func (m *TimingMutation) AddValue(f float64)
- func (m *TimingMutation) AddedEdges() []string
- func (m *TimingMutation) AddedField(name string) (ent.Value, bool)
- func (m *TimingMutation) AddedFields() []string
- func (m *TimingMutation) AddedIDs(name string) []ent.Value
- func (m *TimingMutation) AddedValue() (r float64, exists bool)
- func (m *TimingMutation) Category() (r string, exists bool)
- func (m *TimingMutation) ClearEdge(name string) error
- func (m *TimingMutation) ClearField(name string) error
- func (m *TimingMutation) ClearedEdges() []string
- func (m *TimingMutation) ClearedFields() []string
- func (m TimingMutation) Client() *Client
- func (m *TimingMutation) EdgeCleared(name string) bool
- func (m *TimingMutation) EventsIDs() (ids []uuid.UUID)
- func (m *TimingMutation) Field(name string) (ent.Value, bool)
- func (m *TimingMutation) FieldCleared(name string) bool
- func (m *TimingMutation) Fields() []string
- func (m *TimingMutation) ID() (id int, exists bool)
- func (m *TimingMutation) OldCategory(ctx context.Context) (v string, err error)
- func (m *TimingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TimingMutation) OldTimingLabel(ctx context.Context) (v string, err error)
- func (m *TimingMutation) OldUnit(ctx context.Context) (v string, err error)
- func (m *TimingMutation) OldValue(ctx context.Context) (v float64, err error)
- func (m *TimingMutation) OldVariable(ctx context.Context) (v string, err error)
- func (m *TimingMutation) Op() Op
- func (m *TimingMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *TimingMutation) RemovedEdges() []string
- func (m *TimingMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *TimingMutation) RemovedIDs(name string) []ent.Value
- func (m *TimingMutation) ResetCategory()
- func (m *TimingMutation) ResetEdge(name string) error
- func (m *TimingMutation) ResetEvents()
- func (m *TimingMutation) ResetField(name string) error
- func (m *TimingMutation) ResetTimingLabel()
- func (m *TimingMutation) ResetUnit()
- func (m *TimingMutation) ResetValue()
- func (m *TimingMutation) ResetVariable()
- func (m *TimingMutation) SetCategory(s string)
- func (m *TimingMutation) SetField(name string, value ent.Value) error
- func (m *TimingMutation) SetTimingLabel(s string)
- func (m *TimingMutation) SetUnit(s string)
- func (m *TimingMutation) SetValue(f float64)
- func (m *TimingMutation) SetVariable(s string)
- func (m *TimingMutation) TimingLabel() (r string, exists bool)
- func (m TimingMutation) Tx() (*Tx, error)
- func (m *TimingMutation) Type() string
- func (m *TimingMutation) Unit() (r string, exists bool)
- func (m *TimingMutation) Value() (r float64, exists bool)
- func (m *TimingMutation) Variable() (r string, exists bool)
- type TimingQuery
- func (tq *TimingQuery) All(ctx context.Context) ([]*Timing, error)
- func (tq *TimingQuery) AllX(ctx context.Context) []*Timing
- func (tq *TimingQuery) Clone() *TimingQuery
- func (tq *TimingQuery) Count(ctx context.Context) (int, error)
- func (tq *TimingQuery) CountX(ctx context.Context) int
- func (tq *TimingQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TimingQuery) ExistX(ctx context.Context) bool
- func (tq *TimingQuery) First(ctx context.Context) (*Timing, error)
- func (tq *TimingQuery) FirstID(ctx context.Context) (id int, err error)
- func (tq *TimingQuery) FirstX(ctx context.Context) *Timing
- func (tq *TimingQuery) FirstXID(ctx context.Context) int
- func (tq *TimingQuery) GroupBy(field string, fields ...string) *TimingGroupBy
- func (tq *TimingQuery) IDs(ctx context.Context) ([]int, error)
- func (tq *TimingQuery) IDsX(ctx context.Context) []int
- func (tq *TimingQuery) Limit(limit int) *TimingQuery
- func (tq *TimingQuery) Offset(offset int) *TimingQuery
- func (tq *TimingQuery) Only(ctx context.Context) (*Timing, error)
- func (tq *TimingQuery) OnlyID(ctx context.Context) (id int, err error)
- func (tq *TimingQuery) OnlyIDX(ctx context.Context) int
- func (tq *TimingQuery) OnlyX(ctx context.Context) *Timing
- func (tq *TimingQuery) Order(o ...OrderFunc) *TimingQuery
- func (tq *TimingQuery) QueryEvents() *EventQuery
- func (tq *TimingQuery) Select(field string, fields ...string) *TimingSelect
- func (tq *TimingQuery) Where(ps ...predicate.Timing) *TimingQuery
- func (tq *TimingQuery) WithEvents(opts ...func(*EventQuery)) *TimingQuery
- type TimingSelect
- func (ts *TimingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ts *TimingSelect) BoolX(ctx context.Context) bool
- func (ts *TimingSelect) Bools(ctx context.Context) ([]bool, error)
- func (ts *TimingSelect) BoolsX(ctx context.Context) []bool
- func (ts *TimingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ts *TimingSelect) Float64X(ctx context.Context) float64
- func (ts *TimingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ts *TimingSelect) Float64sX(ctx context.Context) []float64
- func (ts *TimingSelect) Int(ctx context.Context) (_ int, err error)
- func (ts *TimingSelect) IntX(ctx context.Context) int
- func (ts *TimingSelect) Ints(ctx context.Context) ([]int, error)
- func (ts *TimingSelect) IntsX(ctx context.Context) []int
- func (ts *TimingSelect) Scan(ctx context.Context, v interface{}) error
- func (ts *TimingSelect) ScanX(ctx context.Context, v interface{})
- func (ts *TimingSelect) String(ctx context.Context) (_ string, err error)
- func (ts *TimingSelect) StringX(ctx context.Context) string
- func (ts *TimingSelect) Strings(ctx context.Context) ([]string, error)
- func (ts *TimingSelect) StringsX(ctx context.Context) []string
- type TimingUpdate
- func (tu *TimingUpdate) AddEventIDs(ids ...uuid.UUID) *TimingUpdate
- func (tu *TimingUpdate) AddEvents(e ...*Event) *TimingUpdate
- func (tu *TimingUpdate) AddValue(f float64) *TimingUpdate
- func (tu *TimingUpdate) Exec(ctx context.Context) error
- func (tu *TimingUpdate) ExecX(ctx context.Context)
- func (tu *TimingUpdate) Mutation() *TimingMutation
- func (tu *TimingUpdate) RemoveEventIDs(ids ...uuid.UUID) *TimingUpdate
- func (tu *TimingUpdate) RemoveEvents(e ...*Event) *TimingUpdate
- func (tu *TimingUpdate) Save(ctx context.Context) (int, error)
- func (tu *TimingUpdate) SaveX(ctx context.Context) int
- func (tu *TimingUpdate) SetCategory(s string) *TimingUpdate
- func (tu *TimingUpdate) SetTimingLabel(s string) *TimingUpdate
- func (tu *TimingUpdate) SetUnit(s string) *TimingUpdate
- func (tu *TimingUpdate) SetValue(f float64) *TimingUpdate
- func (tu *TimingUpdate) SetVariable(s string) *TimingUpdate
- func (tu *TimingUpdate) Where(ps ...predicate.Timing) *TimingUpdate
- type TimingUpdateOne
- func (tuo *TimingUpdateOne) AddEventIDs(ids ...uuid.UUID) *TimingUpdateOne
- func (tuo *TimingUpdateOne) AddEvents(e ...*Event) *TimingUpdateOne
- func (tuo *TimingUpdateOne) AddValue(f float64) *TimingUpdateOne
- func (tuo *TimingUpdateOne) Exec(ctx context.Context) error
- func (tuo *TimingUpdateOne) ExecX(ctx context.Context)
- func (tuo *TimingUpdateOne) Mutation() *TimingMutation
- func (tuo *TimingUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *TimingUpdateOne
- func (tuo *TimingUpdateOne) RemoveEvents(e ...*Event) *TimingUpdateOne
- func (tuo *TimingUpdateOne) Save(ctx context.Context) (*Timing, error)
- func (tuo *TimingUpdateOne) SaveX(ctx context.Context) *Timing
- func (tuo *TimingUpdateOne) SetCategory(s string) *TimingUpdateOne
- func (tuo *TimingUpdateOne) SetTimingLabel(s string) *TimingUpdateOne
- func (tuo *TimingUpdateOne) SetUnit(s string) *TimingUpdateOne
- func (tuo *TimingUpdateOne) SetValue(f float64) *TimingUpdateOne
- func (tuo *TimingUpdateOne) SetVariable(s string) *TimingUpdateOne
- type Timings
- 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(u *User) *UserDeleteOne
- func (c *UserClient) DeleteOneID(id string) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id string) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id string) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryAliases(u *User) *AliasQuery
- func (c *UserClient) QueryEvents(u *User) *EventQuery
- func (c *UserClient) QueryGroups(u *User) *GroupQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id string) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserCreate
- func (uc *UserCreate) AddAliasIDs(ids ...int) *UserCreate
- func (uc *UserCreate) AddAliases(a ...*Alias) *UserCreate
- func (uc *UserCreate) AddEventIDs(ids ...uuid.UUID) *UserCreate
- func (uc *UserCreate) AddEvents(e ...*Event) *UserCreate
- func (uc *UserCreate) AddGroupIDs(ids ...int) *UserCreate
- func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate
- func (uc *UserCreate) Mutation() *UserMutation
- func (uc *UserCreate) Save(ctx context.Context) (*User, error)
- func (uc *UserCreate) SaveX(ctx context.Context) *User
- func (uc *UserCreate) SetAge(i int) *UserCreate
- func (uc *UserCreate) SetBirthday(t time.Time) *UserCreate
- func (uc *UserCreate) SetEmail(s string) *UserCreate
- func (uc *UserCreate) SetExtra(m map[string]interface{}) *UserCreate
- func (uc *UserCreate) SetFirstName(s string) *UserCreate
- func (uc *UserCreate) SetGender(u user.Gender) *UserCreate
- func (uc *UserCreate) SetID(s string) *UserCreate
- func (uc *UserCreate) SetIsAnonymous(b bool) *UserCreate
- func (uc *UserCreate) SetLastName(s string) *UserCreate
- func (uc *UserCreate) SetName(s string) *UserCreate
- func (uc *UserCreate) SetNillableAge(i *int) *UserCreate
- func (uc *UserCreate) SetNillableBirthday(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableEmail(s *string) *UserCreate
- func (uc *UserCreate) SetNillableFirstName(s *string) *UserCreate
- func (uc *UserCreate) SetNillableGender(u *user.Gender) *UserCreate
- func (uc *UserCreate) SetNillableLastName(s *string) *UserCreate
- func (uc *UserCreate) SetNillableName(s *string) *UserCreate
- func (uc *UserCreate) SetNillablePhone(s *string) *UserCreate
- func (uc *UserCreate) SetNillableTitle(s *string) *UserCreate
- func (uc *UserCreate) SetNillableUsername(s *string) *UserCreate
- func (uc *UserCreate) SetNillableWebsite(s *string) *UserCreate
- func (uc *UserCreate) SetPhone(s string) *UserCreate
- func (uc *UserCreate) SetTitle(s string) *UserCreate
- func (uc *UserCreate) SetUsername(s string) *UserCreate
- func (uc *UserCreate) SetWebsite(s string) *UserCreate
- type UserCreateBulk
- type UserDelete
- type UserDeleteOne
- type UserEdges
- type UserGroupBy
- func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ugb *UserGroupBy) BoolX(ctx context.Context) bool
- func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool
- func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ugb *UserGroupBy) Float64X(ctx context.Context) float64
- func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64
- func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ugb *UserGroupBy) IntX(ctx context.Context) int
- func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ugb *UserGroupBy) IntsX(ctx context.Context) []int
- func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{})
- func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error)
- func (ugb *UserGroupBy) StringX(ctx context.Context) string
- func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ugb *UserGroupBy) StringsX(ctx context.Context) []string
- type UserMutation
- func (m *UserMutation) AddAge(i int)
- func (m *UserMutation) AddAliasIDs(ids ...int)
- func (m *UserMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *UserMutation) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddGroupIDs(ids ...int)
- func (m *UserMutation) AddedAge() (r int, exists bool)
- func (m *UserMutation) AddedEdges() []string
- func (m *UserMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserMutation) AddedFields() []string
- func (m *UserMutation) AddedIDs(name string) []ent.Value
- func (m *UserMutation) Age() (r int, exists bool)
- func (m *UserMutation) AgeCleared() bool
- func (m *UserMutation) AliasesIDs() (ids []int)
- func (m *UserMutation) Birthday() (r time.Time, exists bool)
- func (m *UserMutation) BirthdayCleared() bool
- func (m *UserMutation) ClearAge()
- func (m *UserMutation) ClearBirthday()
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearEmail()
- func (m *UserMutation) ClearExtra()
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearFirstName()
- func (m *UserMutation) ClearGender()
- func (m *UserMutation) ClearLastName()
- func (m *UserMutation) ClearName()
- func (m *UserMutation) ClearPhone()
- func (m *UserMutation) ClearTitle()
- func (m *UserMutation) ClearUsername()
- func (m *UserMutation) ClearWebsite()
- 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) Email() (r string, exists bool)
- func (m *UserMutation) EmailCleared() bool
- func (m *UserMutation) EventsIDs() (ids []uuid.UUID)
- func (m *UserMutation) Extra() (r map[string]interface{}, exists bool)
- func (m *UserMutation) ExtraCleared() 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) FirstName() (r string, exists bool)
- func (m *UserMutation) FirstNameCleared() bool
- func (m *UserMutation) Gender() (r user.Gender, exists bool)
- func (m *UserMutation) GenderCleared() bool
- func (m *UserMutation) GroupsIDs() (ids []int)
- func (m *UserMutation) ID() (id string, exists bool)
- func (m *UserMutation) IsAnonymous() (r bool, exists bool)
- func (m *UserMutation) LastName() (r string, exists bool)
- func (m *UserMutation) LastNameCleared() bool
- func (m *UserMutation) Name() (r string, exists bool)
- func (m *UserMutation) NameCleared() bool
- func (m *UserMutation) OldAge(ctx context.Context) (v int, err error)
- func (m *UserMutation) OldBirthday(ctx context.Context) (v *time.Time, err error)
- func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldExtra(ctx context.Context) (v map[string]interface{}, err error)
- func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserMutation) OldFirstName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldGender(ctx context.Context) (v user.Gender, err error)
- func (m *UserMutation) OldIsAnonymous(ctx context.Context) (v bool, err error)
- func (m *UserMutation) OldLastName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldPhone(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldWebsite(ctx context.Context) (v string, err error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) Phone() (r string, exists bool)
- func (m *UserMutation) PhoneCleared() bool
- func (m *UserMutation) RemoveAliasIDs(ids ...int)
- func (m *UserMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *UserMutation) RemoveGroupIDs(ids ...int)
- func (m *UserMutation) RemovedAliasesIDs() (ids []int)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *UserMutation) RemovedGroupsIDs() (ids []int)
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) ResetAge()
- func (m *UserMutation) ResetAliases()
- func (m *UserMutation) ResetBirthday()
- func (m *UserMutation) ResetEdge(name string) error
- func (m *UserMutation) ResetEmail()
- func (m *UserMutation) ResetEvents()
- func (m *UserMutation) ResetExtra()
- func (m *UserMutation) ResetField(name string) error
- func (m *UserMutation) ResetFirstName()
- func (m *UserMutation) ResetGender()
- func (m *UserMutation) ResetGroups()
- func (m *UserMutation) ResetIsAnonymous()
- func (m *UserMutation) ResetLastName()
- func (m *UserMutation) ResetName()
- func (m *UserMutation) ResetPhone()
- func (m *UserMutation) ResetTitle()
- func (m *UserMutation) ResetUsername()
- func (m *UserMutation) ResetWebsite()
- func (m *UserMutation) SetAge(i int)
- func (m *UserMutation) SetBirthday(t time.Time)
- func (m *UserMutation) SetEmail(s string)
- func (m *UserMutation) SetExtra(value map[string]interface{})
- func (m *UserMutation) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetFirstName(s string)
- func (m *UserMutation) SetGender(u user.Gender)
- func (m *UserMutation) SetID(id string)
- func (m *UserMutation) SetIsAnonymous(b bool)
- func (m *UserMutation) SetLastName(s string)
- func (m *UserMutation) SetName(s string)
- func (m *UserMutation) SetPhone(s string)
- func (m *UserMutation) SetTitle(s string)
- func (m *UserMutation) SetUsername(s string)
- func (m *UserMutation) SetWebsite(s string)
- func (m *UserMutation) Title() (r string, exists bool)
- func (m *UserMutation) TitleCleared() bool
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) Username() (r string, exists bool)
- func (m *UserMutation) UsernameCleared() bool
- func (m *UserMutation) Website() (r string, exists bool)
- func (m *UserMutation) WebsiteCleared() bool
- type UserQuery
- func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
- func (uq *UserQuery) AllX(ctx context.Context) []*User
- func (uq *UserQuery) Clone() *UserQuery
- func (uq *UserQuery) Count(ctx context.Context) (int, error)
- func (uq *UserQuery) CountX(ctx context.Context) int
- func (uq *UserQuery) Exist(ctx context.Context) (bool, error)
- func (uq *UserQuery) ExistX(ctx context.Context) bool
- func (uq *UserQuery) First(ctx context.Context) (*User, error)
- func (uq *UserQuery) FirstID(ctx context.Context) (id string, err error)
- func (uq *UserQuery) FirstX(ctx context.Context) *User
- func (uq *UserQuery) FirstXID(ctx context.Context) string
- func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (uq *UserQuery) IDs(ctx context.Context) ([]string, error)
- func (uq *UserQuery) IDsX(ctx context.Context) []string
- func (uq *UserQuery) Limit(limit int) *UserQuery
- func (uq *UserQuery) Offset(offset int) *UserQuery
- func (uq *UserQuery) Only(ctx context.Context) (*User, error)
- func (uq *UserQuery) OnlyID(ctx context.Context) (id string, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) string
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery
- func (uq *UserQuery) QueryAliases() *AliasQuery
- func (uq *UserQuery) QueryEvents() *EventQuery
- func (uq *UserQuery) QueryGroups() *GroupQuery
- func (uq *UserQuery) Select(field string, fields ...string) *UserSelect
- func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
- func (uq *UserQuery) WithAliases(opts ...func(*AliasQuery)) *UserQuery
- func (uq *UserQuery) WithEvents(opts ...func(*EventQuery)) *UserQuery
- func (uq *UserQuery) WithGroups(opts ...func(*GroupQuery)) *UserQuery
- type UserSelect
- func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (us *UserSelect) BoolX(ctx context.Context) bool
- func (us *UserSelect) Bools(ctx context.Context) ([]bool, error)
- func (us *UserSelect) BoolsX(ctx context.Context) []bool
- func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (us *UserSelect) Float64X(ctx context.Context) float64
- func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (us *UserSelect) Float64sX(ctx context.Context) []float64
- func (us *UserSelect) Int(ctx context.Context) (_ int, err error)
- func (us *UserSelect) IntX(ctx context.Context) int
- func (us *UserSelect) Ints(ctx context.Context) ([]int, error)
- func (us *UserSelect) IntsX(ctx context.Context) []int
- func (us *UserSelect) Scan(ctx context.Context, v interface{}) error
- func (us *UserSelect) ScanX(ctx context.Context, v interface{})
- func (us *UserSelect) String(ctx context.Context) (_ string, err error)
- func (us *UserSelect) StringX(ctx context.Context) string
- func (us *UserSelect) Strings(ctx context.Context) ([]string, error)
- func (us *UserSelect) StringsX(ctx context.Context) []string
- type UserUpdate
- func (uu *UserUpdate) AddAge(i int) *UserUpdate
- func (uu *UserUpdate) AddAliasIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) AddAliases(a ...*Alias) *UserUpdate
- func (uu *UserUpdate) AddEventIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) AddEvents(e ...*Event) *UserUpdate
- func (uu *UserUpdate) AddGroupIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate
- func (uu *UserUpdate) ClearAge() *UserUpdate
- func (uu *UserUpdate) ClearBirthday() *UserUpdate
- func (uu *UserUpdate) ClearEmail() *UserUpdate
- func (uu *UserUpdate) ClearExtra() *UserUpdate
- func (uu *UserUpdate) ClearFirstName() *UserUpdate
- func (uu *UserUpdate) ClearGender() *UserUpdate
- func (uu *UserUpdate) ClearLastName() *UserUpdate
- func (uu *UserUpdate) ClearName() *UserUpdate
- func (uu *UserUpdate) ClearPhone() *UserUpdate
- func (uu *UserUpdate) ClearTitle() *UserUpdate
- func (uu *UserUpdate) ClearUsername() *UserUpdate
- func (uu *UserUpdate) ClearWebsite() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveAliasIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) RemoveAliases(a ...*Alias) *UserUpdate
- func (uu *UserUpdate) RemoveEventIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) RemoveEvents(e ...*Event) *UserUpdate
- func (uu *UserUpdate) RemoveGroupIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetAge(i int) *UserUpdate
- func (uu *UserUpdate) SetBirthday(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetEmail(s string) *UserUpdate
- func (uu *UserUpdate) SetExtra(m map[string]interface{}) *UserUpdate
- func (uu *UserUpdate) SetFirstName(s string) *UserUpdate
- func (uu *UserUpdate) SetGender(u user.Gender) *UserUpdate
- func (uu *UserUpdate) SetIsAnonymous(b bool) *UserUpdate
- func (uu *UserUpdate) SetLastName(s string) *UserUpdate
- func (uu *UserUpdate) SetName(s string) *UserUpdate
- func (uu *UserUpdate) SetNillableAge(i *int) *UserUpdate
- func (uu *UserUpdate) SetNillableBirthday(t *time.Time) *UserUpdate
- func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableGender(u *user.Gender) *UserUpdate
- func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillablePhone(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableTitle(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableUsername(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableWebsite(s *string) *UserUpdate
- func (uu *UserUpdate) SetPhone(s string) *UserUpdate
- func (uu *UserUpdate) SetTitle(s string) *UserUpdate
- func (uu *UserUpdate) SetUsername(s string) *UserUpdate
- func (uu *UserUpdate) SetWebsite(s string) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddAge(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddAliasIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddAliases(a ...*Alias) *UserUpdateOne
- func (uuo *UserUpdateOne) AddEventIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddEvents(e ...*Event) *UserUpdateOne
- func (uuo *UserUpdateOne) AddGroupIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearAge() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearBirthday() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearEmail() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearExtra() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearFirstName() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearGender() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearLastName() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearName() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearPhone() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearTitle() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearUsername() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearWebsite() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveAliasIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveAliases(a ...*Alias) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveEvents(e ...*Event) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne
- func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
- func (uuo *UserUpdateOne) SetAge(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) SetBirthday(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetExtra(m map[string]interface{}) *UserUpdateOne
- func (uuo *UserUpdateOne) SetFirstName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetGender(u user.Gender) *UserUpdateOne
- func (uuo *UserUpdateOne) SetIsAnonymous(b bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetLastName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableAge(i *int) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableBirthday(t *time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableGender(u *user.Gender) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillablePhone(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableTitle(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableUsername(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableWebsite(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetPhone(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetTitle(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetWebsite(s string) *UserUpdateOne
- type Users
- type ValidationError
- type Value
- type Viewport
- type ViewportClient
- func (c *ViewportClient) Create() *ViewportCreate
- func (c *ViewportClient) CreateBulk(builders ...*ViewportCreate) *ViewportCreateBulk
- func (c *ViewportClient) Delete() *ViewportDelete
- func (c *ViewportClient) DeleteOne(v *Viewport) *ViewportDeleteOne
- func (c *ViewportClient) DeleteOneID(id int) *ViewportDeleteOne
- func (c *ViewportClient) Get(ctx context.Context, id int) (*Viewport, error)
- func (c *ViewportClient) GetX(ctx context.Context, id int) *Viewport
- func (c *ViewportClient) Hooks() []Hook
- func (c *ViewportClient) Query() *ViewportQuery
- func (c *ViewportClient) QueryEvents(v *Viewport) *EventQuery
- func (c *ViewportClient) Update() *ViewportUpdate
- func (c *ViewportClient) UpdateOne(v *Viewport) *ViewportUpdateOne
- func (c *ViewportClient) UpdateOneID(id int) *ViewportUpdateOne
- func (c *ViewportClient) Use(hooks ...Hook)
- type ViewportCreate
- func (vc *ViewportCreate) AddEventIDs(ids ...uuid.UUID) *ViewportCreate
- func (vc *ViewportCreate) AddEvents(e ...*Event) *ViewportCreate
- func (vc *ViewportCreate) Mutation() *ViewportMutation
- func (vc *ViewportCreate) Save(ctx context.Context) (*Viewport, error)
- func (vc *ViewportCreate) SaveX(ctx context.Context) *Viewport
- func (vc *ViewportCreate) SetDensity(i int) *ViewportCreate
- func (vc *ViewportCreate) SetHeight(i int) *ViewportCreate
- func (vc *ViewportCreate) SetWidth(i int) *ViewportCreate
- type ViewportCreateBulk
- type ViewportDelete
- type ViewportDeleteOne
- type ViewportEdges
- type ViewportGroupBy
- func (vgb *ViewportGroupBy) Aggregate(fns ...AggregateFunc) *ViewportGroupBy
- func (vgb *ViewportGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (vgb *ViewportGroupBy) BoolX(ctx context.Context) bool
- func (vgb *ViewportGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (vgb *ViewportGroupBy) BoolsX(ctx context.Context) []bool
- func (vgb *ViewportGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (vgb *ViewportGroupBy) Float64X(ctx context.Context) float64
- func (vgb *ViewportGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (vgb *ViewportGroupBy) Float64sX(ctx context.Context) []float64
- func (vgb *ViewportGroupBy) Int(ctx context.Context) (_ int, err error)
- func (vgb *ViewportGroupBy) IntX(ctx context.Context) int
- func (vgb *ViewportGroupBy) Ints(ctx context.Context) ([]int, error)
- func (vgb *ViewportGroupBy) IntsX(ctx context.Context) []int
- func (vgb *ViewportGroupBy) Scan(ctx context.Context, v interface{}) error
- func (vgb *ViewportGroupBy) ScanX(ctx context.Context, v interface{})
- func (vgb *ViewportGroupBy) String(ctx context.Context) (_ string, err error)
- func (vgb *ViewportGroupBy) StringX(ctx context.Context) string
- func (vgb *ViewportGroupBy) Strings(ctx context.Context) ([]string, error)
- func (vgb *ViewportGroupBy) StringsX(ctx context.Context) []string
- type ViewportMutation
- func (m *ViewportMutation) AddDensity(i int)
- func (m *ViewportMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *ViewportMutation) AddField(name string, value ent.Value) error
- func (m *ViewportMutation) AddHeight(i int)
- func (m *ViewportMutation) AddWidth(i int)
- func (m *ViewportMutation) AddedDensity() (r int, exists bool)
- func (m *ViewportMutation) AddedEdges() []string
- func (m *ViewportMutation) AddedField(name string) (ent.Value, bool)
- func (m *ViewportMutation) AddedFields() []string
- func (m *ViewportMutation) AddedHeight() (r int, exists bool)
- func (m *ViewportMutation) AddedIDs(name string) []ent.Value
- func (m *ViewportMutation) AddedWidth() (r int, exists bool)
- func (m *ViewportMutation) ClearEdge(name string) error
- func (m *ViewportMutation) ClearField(name string) error
- func (m *ViewportMutation) ClearedEdges() []string
- func (m *ViewportMutation) ClearedFields() []string
- func (m ViewportMutation) Client() *Client
- func (m *ViewportMutation) Density() (r int, exists bool)
- func (m *ViewportMutation) EdgeCleared(name string) bool
- func (m *ViewportMutation) EventsIDs() (ids []uuid.UUID)
- func (m *ViewportMutation) Field(name string) (ent.Value, bool)
- func (m *ViewportMutation) FieldCleared(name string) bool
- func (m *ViewportMutation) Fields() []string
- func (m *ViewportMutation) Height() (r int, exists bool)
- func (m *ViewportMutation) ID() (id int, exists bool)
- func (m *ViewportMutation) OldDensity(ctx context.Context) (v int, err error)
- func (m *ViewportMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ViewportMutation) OldHeight(ctx context.Context) (v int, err error)
- func (m *ViewportMutation) OldWidth(ctx context.Context) (v int, err error)
- func (m *ViewportMutation) Op() Op
- func (m *ViewportMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *ViewportMutation) RemovedEdges() []string
- func (m *ViewportMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *ViewportMutation) RemovedIDs(name string) []ent.Value
- func (m *ViewportMutation) ResetDensity()
- func (m *ViewportMutation) ResetEdge(name string) error
- func (m *ViewportMutation) ResetEvents()
- func (m *ViewportMutation) ResetField(name string) error
- func (m *ViewportMutation) ResetHeight()
- func (m *ViewportMutation) ResetWidth()
- func (m *ViewportMutation) SetDensity(i int)
- func (m *ViewportMutation) SetField(name string, value ent.Value) error
- func (m *ViewportMutation) SetHeight(i int)
- func (m *ViewportMutation) SetWidth(i int)
- func (m ViewportMutation) Tx() (*Tx, error)
- func (m *ViewportMutation) Type() string
- func (m *ViewportMutation) Width() (r int, exists bool)
- type ViewportQuery
- func (vq *ViewportQuery) All(ctx context.Context) ([]*Viewport, error)
- func (vq *ViewportQuery) AllX(ctx context.Context) []*Viewport
- func (vq *ViewportQuery) Clone() *ViewportQuery
- func (vq *ViewportQuery) Count(ctx context.Context) (int, error)
- func (vq *ViewportQuery) CountX(ctx context.Context) int
- func (vq *ViewportQuery) Exist(ctx context.Context) (bool, error)
- func (vq *ViewportQuery) ExistX(ctx context.Context) bool
- func (vq *ViewportQuery) First(ctx context.Context) (*Viewport, error)
- func (vq *ViewportQuery) FirstID(ctx context.Context) (id int, err error)
- func (vq *ViewportQuery) FirstX(ctx context.Context) *Viewport
- func (vq *ViewportQuery) FirstXID(ctx context.Context) int
- func (vq *ViewportQuery) GroupBy(field string, fields ...string) *ViewportGroupBy
- func (vq *ViewportQuery) IDs(ctx context.Context) ([]int, error)
- func (vq *ViewportQuery) IDsX(ctx context.Context) []int
- func (vq *ViewportQuery) Limit(limit int) *ViewportQuery
- func (vq *ViewportQuery) Offset(offset int) *ViewportQuery
- func (vq *ViewportQuery) Only(ctx context.Context) (*Viewport, error)
- func (vq *ViewportQuery) OnlyID(ctx context.Context) (id int, err error)
- func (vq *ViewportQuery) OnlyIDX(ctx context.Context) int
- func (vq *ViewportQuery) OnlyX(ctx context.Context) *Viewport
- func (vq *ViewportQuery) Order(o ...OrderFunc) *ViewportQuery
- func (vq *ViewportQuery) QueryEvents() *EventQuery
- func (vq *ViewportQuery) Select(field string, fields ...string) *ViewportSelect
- func (vq *ViewportQuery) Where(ps ...predicate.Viewport) *ViewportQuery
- func (vq *ViewportQuery) WithEvents(opts ...func(*EventQuery)) *ViewportQuery
- type ViewportSelect
- func (vs *ViewportSelect) Bool(ctx context.Context) (_ bool, err error)
- func (vs *ViewportSelect) BoolX(ctx context.Context) bool
- func (vs *ViewportSelect) Bools(ctx context.Context) ([]bool, error)
- func (vs *ViewportSelect) BoolsX(ctx context.Context) []bool
- func (vs *ViewportSelect) Float64(ctx context.Context) (_ float64, err error)
- func (vs *ViewportSelect) Float64X(ctx context.Context) float64
- func (vs *ViewportSelect) Float64s(ctx context.Context) ([]float64, error)
- func (vs *ViewportSelect) Float64sX(ctx context.Context) []float64
- func (vs *ViewportSelect) Int(ctx context.Context) (_ int, err error)
- func (vs *ViewportSelect) IntX(ctx context.Context) int
- func (vs *ViewportSelect) Ints(ctx context.Context) ([]int, error)
- func (vs *ViewportSelect) IntsX(ctx context.Context) []int
- func (vs *ViewportSelect) Scan(ctx context.Context, v interface{}) error
- func (vs *ViewportSelect) ScanX(ctx context.Context, v interface{})
- func (vs *ViewportSelect) String(ctx context.Context) (_ string, err error)
- func (vs *ViewportSelect) StringX(ctx context.Context) string
- func (vs *ViewportSelect) Strings(ctx context.Context) ([]string, error)
- func (vs *ViewportSelect) StringsX(ctx context.Context) []string
- type ViewportUpdate
- func (vu *ViewportUpdate) AddDensity(i int) *ViewportUpdate
- func (vu *ViewportUpdate) AddEventIDs(ids ...uuid.UUID) *ViewportUpdate
- func (vu *ViewportUpdate) AddEvents(e ...*Event) *ViewportUpdate
- func (vu *ViewportUpdate) AddHeight(i int) *ViewportUpdate
- func (vu *ViewportUpdate) AddWidth(i int) *ViewportUpdate
- func (vu *ViewportUpdate) Exec(ctx context.Context) error
- func (vu *ViewportUpdate) ExecX(ctx context.Context)
- func (vu *ViewportUpdate) Mutation() *ViewportMutation
- func (vu *ViewportUpdate) RemoveEventIDs(ids ...uuid.UUID) *ViewportUpdate
- func (vu *ViewportUpdate) RemoveEvents(e ...*Event) *ViewportUpdate
- func (vu *ViewportUpdate) Save(ctx context.Context) (int, error)
- func (vu *ViewportUpdate) SaveX(ctx context.Context) int
- func (vu *ViewportUpdate) SetDensity(i int) *ViewportUpdate
- func (vu *ViewportUpdate) SetHeight(i int) *ViewportUpdate
- func (vu *ViewportUpdate) SetWidth(i int) *ViewportUpdate
- func (vu *ViewportUpdate) Where(ps ...predicate.Viewport) *ViewportUpdate
- type ViewportUpdateOne
- func (vuo *ViewportUpdateOne) AddDensity(i int) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) AddEventIDs(ids ...uuid.UUID) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) AddEvents(e ...*Event) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) AddHeight(i int) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) AddWidth(i int) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) Exec(ctx context.Context) error
- func (vuo *ViewportUpdateOne) ExecX(ctx context.Context)
- func (vuo *ViewportUpdateOne) Mutation() *ViewportMutation
- func (vuo *ViewportUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) RemoveEvents(e ...*Event) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) Save(ctx context.Context) (*Viewport, error)
- func (vuo *ViewportUpdateOne) SaveX(ctx context.Context) *Viewport
- func (vuo *ViewportUpdateOne) SetDensity(i int) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) SetHeight(i int) *ViewportUpdateOne
- func (vuo *ViewportUpdateOne) SetWidth(i int) *ViewportUpdateOne
- type Viewports
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeAction = "Action" TypeAlias = "Alias" TypeApp = "App" TypeBrowser = "Browser" TypeCampaign = "Campaign" TypeConnectivity = "Connectivity" TypeDevice = "Device" TypeEvent = "Event" TypeExtra = "Extra" TypeGroup = "Group" TypeLibrary = "Library" TypeLocation = "Location" TypeNetwork = "Network" TypeOSContext = "OSContext" TypePage = "Page" TypeReferrer = "Referrer" TypeScreen = "Screen" TypeSession = "Session" TypeTiming = "Timing" TypeUser = "User" TypeViewport = "Viewport" )
Variables ¶
This section is empty.
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 validaton error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type Action ¶
type Action struct { // ID of the ent. ID int `json:"id,omitempty"` // Action holds the value of the "action" field. Action string `json:"action,omitempty"` // Category holds the value of the "category" field. Category string `json:"category,omitempty"` // ActionLabel holds the value of the "action_label" field. ActionLabel string `json:"action_label,omitempty"` // Property holds the value of the "property" field. Property string `json:"property,omitempty"` // Value holds the value of the "value" field. Value []byte `json:"value,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ActionQuery when eager-loading is set. Edges ActionEdges `json:"edges"` // contains filtered or unexported fields }
Action is the model entity for the Action schema.
func (*Action) QueryEvent ¶
func (a *Action) QueryEvent() *EventQuery
QueryEvent queries the event edge of the Action.
func (*Action) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Action) Update ¶
func (a *Action) Update() *ActionUpdateOne
Update returns a builder for updating this Action. Note that, you need to call Action.Unwrap() before calling this method, if this Action was returned from a transaction, and the transaction was committed or rolled back.
type ActionClient ¶
type ActionClient struct {
// contains filtered or unexported fields
}
ActionClient is a client for the Action schema.
func NewActionClient ¶
func NewActionClient(c config) *ActionClient
NewActionClient returns a client for the Action from the given config.
func (*ActionClient) Create ¶
func (c *ActionClient) Create() *ActionCreate
Create returns a create builder for Action.
func (*ActionClient) CreateBulk ¶
func (c *ActionClient) CreateBulk(builders ...*ActionCreate) *ActionCreateBulk
BulkCreate returns a builder for creating a bulk of Action entities.
func (*ActionClient) Delete ¶
func (c *ActionClient) Delete() *ActionDelete
Delete returns a delete builder for Action.
func (*ActionClient) DeleteOne ¶
func (c *ActionClient) DeleteOne(a *Action) *ActionDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ActionClient) DeleteOneID ¶
func (c *ActionClient) DeleteOneID(id int) *ActionDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ActionClient) GetX ¶
func (c *ActionClient) GetX(ctx context.Context, id int) *Action
GetX is like Get, but panics if an error occurs.
func (*ActionClient) Query ¶
func (c *ActionClient) Query() *ActionQuery
Query returns a query builder for Action.
func (*ActionClient) QueryEvent ¶
func (c *ActionClient) QueryEvent(a *Action) *EventQuery
QueryEvent queries the event edge of a Action.
func (*ActionClient) Update ¶
func (c *ActionClient) Update() *ActionUpdate
Update returns an update builder for Action.
func (*ActionClient) UpdateOne ¶
func (c *ActionClient) UpdateOne(a *Action) *ActionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ActionClient) UpdateOneID ¶
func (c *ActionClient) UpdateOneID(id int) *ActionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ActionClient) Use ¶
func (c *ActionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `action.Hooks(f(g(h())))`.
type ActionCreate ¶
type ActionCreate struct {
// contains filtered or unexported fields
}
ActionCreate is the builder for creating a Action entity.
func (*ActionCreate) Mutation ¶
func (ac *ActionCreate) Mutation() *ActionMutation
Mutation returns the ActionMutation object of the builder.
func (*ActionCreate) Save ¶
func (ac *ActionCreate) Save(ctx context.Context) (*Action, error)
Save creates the Action in the database.
func (*ActionCreate) SaveX ¶
func (ac *ActionCreate) SaveX(ctx context.Context) *Action
SaveX calls Save and panics if Save returns an error.
func (*ActionCreate) SetAction ¶
func (ac *ActionCreate) SetAction(s string) *ActionCreate
SetAction sets the action field.
func (*ActionCreate) SetActionLabel ¶
func (ac *ActionCreate) SetActionLabel(s string) *ActionCreate
SetActionLabel sets the action_label field.
func (*ActionCreate) SetCategory ¶
func (ac *ActionCreate) SetCategory(s string) *ActionCreate
SetCategory sets the category field.
func (*ActionCreate) SetEvent ¶
func (ac *ActionCreate) SetEvent(e *Event) *ActionCreate
SetEvent sets the event edge to Event.
func (*ActionCreate) SetEventID ¶
func (ac *ActionCreate) SetEventID(id uuid.UUID) *ActionCreate
SetEventID sets the event edge to Event by id.
func (*ActionCreate) SetNillableActionLabel ¶
func (ac *ActionCreate) SetNillableActionLabel(s *string) *ActionCreate
SetNillableActionLabel sets the action_label field if the given value is not nil.
func (*ActionCreate) SetNillableProperty ¶
func (ac *ActionCreate) SetNillableProperty(s *string) *ActionCreate
SetNillableProperty sets the property field if the given value is not nil.
func (*ActionCreate) SetProperty ¶
func (ac *ActionCreate) SetProperty(s string) *ActionCreate
SetProperty sets the property field.
func (*ActionCreate) SetValue ¶
func (ac *ActionCreate) SetValue(b []byte) *ActionCreate
SetValue sets the value field.
type ActionCreateBulk ¶
type ActionCreateBulk struct {
// contains filtered or unexported fields
}
ActionCreateBulk is the builder for creating a bulk of Action entities.
type ActionDelete ¶
type ActionDelete struct {
// contains filtered or unexported fields
}
ActionDelete is the builder for deleting a Action entity.
func (*ActionDelete) Exec ¶
func (ad *ActionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ActionDelete) ExecX ¶
func (ad *ActionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ActionDelete) Where ¶
func (ad *ActionDelete) Where(ps ...predicate.Action) *ActionDelete
Where adds a new predicate to the delete builder.
type ActionDeleteOne ¶
type ActionDeleteOne struct {
// contains filtered or unexported fields
}
ActionDeleteOne is the builder for deleting a single Action entity.
func (*ActionDeleteOne) Exec ¶
func (ado *ActionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ActionDeleteOne) ExecX ¶
func (ado *ActionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ActionEdges ¶
type ActionEdges struct { // Event holds the value of the event edge. Event *Event // contains filtered or unexported fields }
ActionEdges holds the relations/edges for other nodes in the graph.
func (ActionEdges) EventOrErr ¶
func (e ActionEdges) EventOrErr() (*Event, error)
EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ActionGroupBy ¶
type ActionGroupBy struct {
// contains filtered or unexported fields
}
ActionGroupBy is the builder for group-by Action entities.
func (*ActionGroupBy) Aggregate ¶
func (agb *ActionGroupBy) Aggregate(fns ...AggregateFunc) *ActionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ActionGroupBy) Bool ¶
func (agb *ActionGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) BoolX ¶
func (agb *ActionGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ActionGroupBy) Bools ¶
func (agb *ActionGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) BoolsX ¶
func (agb *ActionGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ActionGroupBy) Float64 ¶
func (agb *ActionGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) Float64X ¶
func (agb *ActionGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ActionGroupBy) Float64s ¶
func (agb *ActionGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) Float64sX ¶
func (agb *ActionGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ActionGroupBy) Int ¶
func (agb *ActionGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) IntX ¶
func (agb *ActionGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ActionGroupBy) Ints ¶
func (agb *ActionGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) IntsX ¶
func (agb *ActionGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ActionGroupBy) Scan ¶
func (agb *ActionGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ActionGroupBy) ScanX ¶
func (agb *ActionGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ActionGroupBy) String ¶
func (agb *ActionGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*ActionGroupBy) StringX ¶
func (agb *ActionGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ActionMutation ¶
type ActionMutation struct {
// contains filtered or unexported fields
}
ActionMutation represents an operation that mutate the Actions nodes in the graph.
func (*ActionMutation) Action ¶
func (m *ActionMutation) Action() (r string, exists bool)
Action returns the action value in the mutation.
func (*ActionMutation) ActionLabel ¶
func (m *ActionMutation) ActionLabel() (r string, exists bool)
ActionLabel returns the action_label value in the mutation.
func (*ActionMutation) ActionLabelCleared ¶
func (m *ActionMutation) ActionLabelCleared() bool
ActionLabelCleared returns if the field action_label was cleared in this mutation.
func (*ActionMutation) AddField ¶
func (m *ActionMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ActionMutation) AddedEdges ¶
func (m *ActionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ActionMutation) AddedField ¶
func (m *ActionMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*ActionMutation) AddedFields ¶
func (m *ActionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*ActionMutation) AddedIDs ¶
func (m *ActionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*ActionMutation) Category ¶
func (m *ActionMutation) Category() (r string, exists bool)
Category returns the category value in the mutation.
func (*ActionMutation) ClearActionLabel ¶
func (m *ActionMutation) ClearActionLabel()
ClearActionLabel clears the value of action_label.
func (*ActionMutation) ClearEdge ¶
func (m *ActionMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*ActionMutation) ClearEvent ¶
func (m *ActionMutation) ClearEvent()
ClearEvent clears the event edge to Event.
func (*ActionMutation) ClearField ¶
func (m *ActionMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*ActionMutation) ClearProperty ¶
func (m *ActionMutation) ClearProperty()
ClearProperty clears the value of property.
func (*ActionMutation) ClearValue ¶
func (m *ActionMutation) ClearValue()
ClearValue clears the value of value.
func (*ActionMutation) ClearedEdges ¶
func (m *ActionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ActionMutation) ClearedFields ¶
func (m *ActionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ActionMutation) Client ¶
func (m ActionMutation) 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 (*ActionMutation) EdgeCleared ¶
func (m *ActionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*ActionMutation) EventCleared ¶
func (m *ActionMutation) EventCleared() bool
EventCleared returns if the edge event was cleared.
func (*ActionMutation) EventID ¶
func (m *ActionMutation) EventID() (id uuid.UUID, exists bool)
EventID returns the event id in the mutation.
func (*ActionMutation) EventIDs ¶
func (m *ActionMutation) EventIDs() (ids []uuid.UUID)
EventIDs returns the event ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use EventID instead. It exists only for internal usage by the builders.
func (*ActionMutation) Field ¶
func (m *ActionMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*ActionMutation) FieldCleared ¶
func (m *ActionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*ActionMutation) Fields ¶
func (m *ActionMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*ActionMutation) ID ¶
func (m *ActionMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*ActionMutation) OldAction ¶
func (m *ActionMutation) OldAction(ctx context.Context) (v string, err error)
OldAction returns the old action value of the Action. If the Action 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 database query fails.
func (*ActionMutation) OldActionLabel ¶
func (m *ActionMutation) OldActionLabel(ctx context.Context) (v string, err error)
OldActionLabel returns the old action_label value of the Action. If the Action 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 database query fails.
func (*ActionMutation) OldCategory ¶
func (m *ActionMutation) OldCategory(ctx context.Context) (v string, err error)
OldCategory returns the old category value of the Action. If the Action 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 database query fails.
func (*ActionMutation) 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 was failed.
func (*ActionMutation) OldProperty ¶
func (m *ActionMutation) OldProperty(ctx context.Context) (v string, err error)
OldProperty returns the old property value of the Action. If the Action 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 database query fails.
func (*ActionMutation) OldValue ¶
func (m *ActionMutation) OldValue(ctx context.Context) (v []byte, err error)
OldValue returns the old value value of the Action. If the Action 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 database query fails.
func (*ActionMutation) Property ¶
func (m *ActionMutation) Property() (r string, exists bool)
Property returns the property value in the mutation.
func (*ActionMutation) PropertyCleared ¶
func (m *ActionMutation) PropertyCleared() bool
PropertyCleared returns if the field property was cleared in this mutation.
func (*ActionMutation) RemovedEdges ¶
func (m *ActionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ActionMutation) RemovedIDs ¶
func (m *ActionMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*ActionMutation) ResetAction ¶
func (m *ActionMutation) ResetAction()
ResetAction reset all changes of the "action" field.
func (*ActionMutation) ResetActionLabel ¶
func (m *ActionMutation) ResetActionLabel()
ResetActionLabel reset all changes of the "action_label" field.
func (*ActionMutation) ResetCategory ¶
func (m *ActionMutation) ResetCategory()
ResetCategory reset all changes of the "category" field.
func (*ActionMutation) ResetEdge ¶
func (m *ActionMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*ActionMutation) ResetEvent ¶
func (m *ActionMutation) ResetEvent()
ResetEvent reset all changes of the "event" edge.
func (*ActionMutation) ResetField ¶
func (m *ActionMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*ActionMutation) ResetProperty ¶
func (m *ActionMutation) ResetProperty()
ResetProperty reset all changes of the "property" field.
func (*ActionMutation) ResetValue ¶
func (m *ActionMutation) ResetValue()
ResetValue reset all changes of the "value" field.
func (*ActionMutation) SetAction ¶
func (m *ActionMutation) SetAction(s string)
SetAction sets the action field.
func (*ActionMutation) SetActionLabel ¶
func (m *ActionMutation) SetActionLabel(s string)
SetActionLabel sets the action_label field.
func (*ActionMutation) SetCategory ¶
func (m *ActionMutation) SetCategory(s string)
SetCategory sets the category field.
func (*ActionMutation) SetEventID ¶
func (m *ActionMutation) SetEventID(id uuid.UUID)
SetEventID sets the event edge to Event by id.
func (*ActionMutation) SetField ¶
func (m *ActionMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ActionMutation) SetProperty ¶
func (m *ActionMutation) SetProperty(s string)
SetProperty sets the property field.
func (*ActionMutation) SetValue ¶
func (m *ActionMutation) SetValue(b []byte)
SetValue sets the value field.
func (ActionMutation) Tx ¶
func (m ActionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ActionMutation) Type ¶
func (m *ActionMutation) Type() string
Type returns the node type of this mutation (Action).
func (*ActionMutation) Value ¶
func (m *ActionMutation) Value() (r []byte, exists bool)
Value returns the value value in the mutation.
func (*ActionMutation) ValueCleared ¶
func (m *ActionMutation) ValueCleared() bool
ValueCleared returns if the field value was cleared in this mutation.
type ActionQuery ¶
type ActionQuery struct {
// contains filtered or unexported fields
}
ActionQuery is the builder for querying Action entities.
func (*ActionQuery) All ¶
func (aq *ActionQuery) All(ctx context.Context) ([]*Action, error)
All executes the query and returns a list of Actions.
func (*ActionQuery) AllX ¶
func (aq *ActionQuery) AllX(ctx context.Context) []*Action
AllX is like All, but panics if an error occurs.
func (*ActionQuery) Clone ¶
func (aq *ActionQuery) Clone() *ActionQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ActionQuery) Count ¶
func (aq *ActionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ActionQuery) CountX ¶
func (aq *ActionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ActionQuery) Exist ¶
func (aq *ActionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ActionQuery) ExistX ¶
func (aq *ActionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ActionQuery) First ¶
func (aq *ActionQuery) First(ctx context.Context) (*Action, error)
First returns the first Action entity in the query. Returns *NotFoundError when no action was found.
func (*ActionQuery) FirstID ¶
func (aq *ActionQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Action id in the query. Returns *NotFoundError when no id was found.
func (*ActionQuery) FirstX ¶
func (aq *ActionQuery) FirstX(ctx context.Context) *Action
FirstX is like First, but panics if an error occurs.
func (*ActionQuery) FirstXID ¶
func (aq *ActionQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*ActionQuery) GroupBy ¶
func (aq *ActionQuery) GroupBy(field string, fields ...string) *ActionGroupBy
GroupBy 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 { Action string `json:"action,omitempty"` Count int `json:"count,omitempty"` } client.Action.Query(). GroupBy(action.FieldAction). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ActionQuery) IDs ¶
func (aq *ActionQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Action ids.
func (*ActionQuery) IDsX ¶
func (aq *ActionQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ActionQuery) Limit ¶
func (aq *ActionQuery) Limit(limit int) *ActionQuery
Limit adds a limit step to the query.
func (*ActionQuery) Offset ¶
func (aq *ActionQuery) Offset(offset int) *ActionQuery
Offset adds an offset step to the query.
func (*ActionQuery) Only ¶
func (aq *ActionQuery) Only(ctx context.Context) (*Action, error)
Only returns the only Action entity in the query, returns an error if not exactly one entity was returned.
func (*ActionQuery) OnlyID ¶
func (aq *ActionQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Action id in the query, returns an error if not exactly one id was returned.
func (*ActionQuery) OnlyIDX ¶
func (aq *ActionQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ActionQuery) OnlyX ¶
func (aq *ActionQuery) OnlyX(ctx context.Context) *Action
OnlyX is like Only, but panics if an error occurs.
func (*ActionQuery) Order ¶
func (aq *ActionQuery) Order(o ...OrderFunc) *ActionQuery
Order adds an order step to the query.
func (*ActionQuery) QueryEvent ¶
func (aq *ActionQuery) QueryEvent() *EventQuery
QueryEvent chains the current query on the event edge.
func (*ActionQuery) Select ¶
func (aq *ActionQuery) Select(field string, fields ...string) *ActionSelect
Select one or more fields from the given query.
Example:
var v []struct { Action string `json:"action,omitempty"` } client.Action.Query(). Select(action.FieldAction). Scan(ctx, &v)
func (*ActionQuery) Where ¶
func (aq *ActionQuery) Where(ps ...predicate.Action) *ActionQuery
Where adds a new predicate for the builder.
func (*ActionQuery) WithEvent ¶
func (aq *ActionQuery) WithEvent(opts ...func(*EventQuery)) *ActionQuery
WithEvent tells the query-builder to eager-loads the nodes that are connected to
the "event" edge. The optional arguments used to configure the query builder of the edge.
type ActionSelect ¶
type ActionSelect struct {
// contains filtered or unexported fields
}
ActionSelect is the builder for select fields of Action entities.
func (*ActionSelect) Bool ¶
func (as *ActionSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*ActionSelect) BoolX ¶
func (as *ActionSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ActionSelect) Bools ¶
func (as *ActionSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ActionSelect) BoolsX ¶
func (as *ActionSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ActionSelect) Float64 ¶
func (as *ActionSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*ActionSelect) Float64X ¶
func (as *ActionSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ActionSelect) Float64s ¶
func (as *ActionSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ActionSelect) Float64sX ¶
func (as *ActionSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ActionSelect) Int ¶
func (as *ActionSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*ActionSelect) IntX ¶
func (as *ActionSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ActionSelect) Ints ¶
func (as *ActionSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ActionSelect) IntsX ¶
func (as *ActionSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ActionSelect) Scan ¶
func (as *ActionSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ActionSelect) ScanX ¶
func (as *ActionSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ActionSelect) String ¶
func (as *ActionSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*ActionSelect) StringX ¶
func (as *ActionSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ActionUpdate ¶
type ActionUpdate struct {
// contains filtered or unexported fields
}
ActionUpdate is the builder for updating Action entities.
func (*ActionUpdate) ClearActionLabel ¶
func (au *ActionUpdate) ClearActionLabel() *ActionUpdate
ClearActionLabel clears the value of action_label.
func (*ActionUpdate) ClearEvent ¶
func (au *ActionUpdate) ClearEvent() *ActionUpdate
ClearEvent clears the event edge to Event.
func (*ActionUpdate) ClearProperty ¶
func (au *ActionUpdate) ClearProperty() *ActionUpdate
ClearProperty clears the value of property.
func (*ActionUpdate) ClearValue ¶
func (au *ActionUpdate) ClearValue() *ActionUpdate
ClearValue clears the value of value.
func (*ActionUpdate) Exec ¶
func (au *ActionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ActionUpdate) ExecX ¶
func (au *ActionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ActionUpdate) Mutation ¶
func (au *ActionUpdate) Mutation() *ActionMutation
Mutation returns the ActionMutation object of the builder.
func (*ActionUpdate) Save ¶
func (au *ActionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ActionUpdate) SaveX ¶
func (au *ActionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ActionUpdate) SetAction ¶
func (au *ActionUpdate) SetAction(s string) *ActionUpdate
SetAction sets the action field.
func (*ActionUpdate) SetActionLabel ¶
func (au *ActionUpdate) SetActionLabel(s string) *ActionUpdate
SetActionLabel sets the action_label field.
func (*ActionUpdate) SetCategory ¶
func (au *ActionUpdate) SetCategory(s string) *ActionUpdate
SetCategory sets the category field.
func (*ActionUpdate) SetEvent ¶
func (au *ActionUpdate) SetEvent(e *Event) *ActionUpdate
SetEvent sets the event edge to Event.
func (*ActionUpdate) SetEventID ¶
func (au *ActionUpdate) SetEventID(id uuid.UUID) *ActionUpdate
SetEventID sets the event edge to Event by id.
func (*ActionUpdate) SetNillableActionLabel ¶
func (au *ActionUpdate) SetNillableActionLabel(s *string) *ActionUpdate
SetNillableActionLabel sets the action_label field if the given value is not nil.
func (*ActionUpdate) SetNillableProperty ¶
func (au *ActionUpdate) SetNillableProperty(s *string) *ActionUpdate
SetNillableProperty sets the property field if the given value is not nil.
func (*ActionUpdate) SetProperty ¶
func (au *ActionUpdate) SetProperty(s string) *ActionUpdate
SetProperty sets the property field.
func (*ActionUpdate) SetValue ¶
func (au *ActionUpdate) SetValue(b []byte) *ActionUpdate
SetValue sets the value field.
func (*ActionUpdate) Where ¶
func (au *ActionUpdate) Where(ps ...predicate.Action) *ActionUpdate
Where adds a new predicate for the builder.
type ActionUpdateOne ¶
type ActionUpdateOne struct {
// contains filtered or unexported fields
}
ActionUpdateOne is the builder for updating a single Action entity.
func (*ActionUpdateOne) ClearActionLabel ¶
func (auo *ActionUpdateOne) ClearActionLabel() *ActionUpdateOne
ClearActionLabel clears the value of action_label.
func (*ActionUpdateOne) ClearEvent ¶
func (auo *ActionUpdateOne) ClearEvent() *ActionUpdateOne
ClearEvent clears the event edge to Event.
func (*ActionUpdateOne) ClearProperty ¶
func (auo *ActionUpdateOne) ClearProperty() *ActionUpdateOne
ClearProperty clears the value of property.
func (*ActionUpdateOne) ClearValue ¶
func (auo *ActionUpdateOne) ClearValue() *ActionUpdateOne
ClearValue clears the value of value.
func (*ActionUpdateOne) Exec ¶
func (auo *ActionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ActionUpdateOne) ExecX ¶
func (auo *ActionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ActionUpdateOne) Mutation ¶
func (auo *ActionUpdateOne) Mutation() *ActionMutation
Mutation returns the ActionMutation object of the builder.
func (*ActionUpdateOne) Save ¶
func (auo *ActionUpdateOne) Save(ctx context.Context) (*Action, error)
Save executes the query and returns the updated entity.
func (*ActionUpdateOne) SaveX ¶
func (auo *ActionUpdateOne) SaveX(ctx context.Context) *Action
SaveX is like Save, but panics if an error occurs.
func (*ActionUpdateOne) SetAction ¶
func (auo *ActionUpdateOne) SetAction(s string) *ActionUpdateOne
SetAction sets the action field.
func (*ActionUpdateOne) SetActionLabel ¶
func (auo *ActionUpdateOne) SetActionLabel(s string) *ActionUpdateOne
SetActionLabel sets the action_label field.
func (*ActionUpdateOne) SetCategory ¶
func (auo *ActionUpdateOne) SetCategory(s string) *ActionUpdateOne
SetCategory sets the category field.
func (*ActionUpdateOne) SetEvent ¶
func (auo *ActionUpdateOne) SetEvent(e *Event) *ActionUpdateOne
SetEvent sets the event edge to Event.
func (*ActionUpdateOne) SetEventID ¶
func (auo *ActionUpdateOne) SetEventID(id uuid.UUID) *ActionUpdateOne
SetEventID sets the event edge to Event by id.
func (*ActionUpdateOne) SetNillableActionLabel ¶
func (auo *ActionUpdateOne) SetNillableActionLabel(s *string) *ActionUpdateOne
SetNillableActionLabel sets the action_label field if the given value is not nil.
func (*ActionUpdateOne) SetNillableProperty ¶
func (auo *ActionUpdateOne) SetNillableProperty(s *string) *ActionUpdateOne
SetNillableProperty sets the property field if the given value is not nil.
func (*ActionUpdateOne) SetProperty ¶
func (auo *ActionUpdateOne) SetProperty(s string) *ActionUpdateOne
SetProperty sets the property field.
func (*ActionUpdateOne) SetValue ¶
func (auo *ActionUpdateOne) SetValue(b []byte) *ActionUpdateOne
SetValue sets the value field.
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(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.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 Alias ¶
type Alias struct { // ID of the ent. ID int `json:"id,omitempty"` // From holds the value of the "from" field. From string `json:"from,omitempty"` // To holds the value of the "to" field. To string `json:"to,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the AliasQuery when eager-loading is set. Edges AliasEdges `json:"edges"` // contains filtered or unexported fields }
Alias is the model entity for the Alias schema.
func (*Alias) QueryEvent ¶
func (a *Alias) QueryEvent() *EventQuery
QueryEvent queries the event edge of the Alias.
func (*Alias) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Alias) Update ¶
func (a *Alias) Update() *AliasUpdateOne
Update returns a builder for updating this Alias. Note that, you need to call Alias.Unwrap() before calling this method, if this Alias was returned from a transaction, and the transaction was committed or rolled back.
type AliasClient ¶
type AliasClient struct {
// contains filtered or unexported fields
}
AliasClient is a client for the Alias schema.
func NewAliasClient ¶
func NewAliasClient(c config) *AliasClient
NewAliasClient returns a client for the Alias from the given config.
func (*AliasClient) Create ¶
func (c *AliasClient) Create() *AliasCreate
Create returns a create builder for Alias.
func (*AliasClient) CreateBulk ¶
func (c *AliasClient) CreateBulk(builders ...*AliasCreate) *AliasCreateBulk
BulkCreate returns a builder for creating a bulk of Alias entities.
func (*AliasClient) Delete ¶
func (c *AliasClient) Delete() *AliasDelete
Delete returns a delete builder for Alias.
func (*AliasClient) DeleteOne ¶
func (c *AliasClient) DeleteOne(a *Alias) *AliasDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*AliasClient) DeleteOneID ¶
func (c *AliasClient) DeleteOneID(id int) *AliasDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*AliasClient) GetX ¶
func (c *AliasClient) GetX(ctx context.Context, id int) *Alias
GetX is like Get, but panics if an error occurs.
func (*AliasClient) Query ¶
func (c *AliasClient) Query() *AliasQuery
Query returns a query builder for Alias.
func (*AliasClient) QueryEvent ¶
func (c *AliasClient) QueryEvent(a *Alias) *EventQuery
QueryEvent queries the event edge of a Alias.
func (*AliasClient) QueryUser ¶
func (c *AliasClient) QueryUser(a *Alias) *UserQuery
QueryUser queries the user edge of a Alias.
func (*AliasClient) Update ¶
func (c *AliasClient) Update() *AliasUpdate
Update returns an update builder for Alias.
func (*AliasClient) UpdateOne ¶
func (c *AliasClient) UpdateOne(a *Alias) *AliasUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AliasClient) UpdateOneID ¶
func (c *AliasClient) UpdateOneID(id int) *AliasUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AliasClient) Use ¶
func (c *AliasClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `alias.Hooks(f(g(h())))`.
type AliasCreate ¶
type AliasCreate struct {
// contains filtered or unexported fields
}
AliasCreate is the builder for creating a Alias entity.
func (*AliasCreate) Mutation ¶
func (ac *AliasCreate) Mutation() *AliasMutation
Mutation returns the AliasMutation object of the builder.
func (*AliasCreate) Save ¶
func (ac *AliasCreate) Save(ctx context.Context) (*Alias, error)
Save creates the Alias in the database.
func (*AliasCreate) SaveX ¶
func (ac *AliasCreate) SaveX(ctx context.Context) *Alias
SaveX calls Save and panics if Save returns an error.
func (*AliasCreate) SetEvent ¶
func (ac *AliasCreate) SetEvent(e *Event) *AliasCreate
SetEvent sets the event edge to Event.
func (*AliasCreate) SetEventID ¶
func (ac *AliasCreate) SetEventID(id uuid.UUID) *AliasCreate
SetEventID sets the event edge to Event by id.
func (*AliasCreate) SetFrom ¶
func (ac *AliasCreate) SetFrom(s string) *AliasCreate
SetFrom sets the from field.
func (*AliasCreate) SetNillableEventID ¶
func (ac *AliasCreate) SetNillableEventID(id *uuid.UUID) *AliasCreate
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*AliasCreate) SetNillableUserID ¶
func (ac *AliasCreate) SetNillableUserID(id *string) *AliasCreate
SetNillableUserID sets the user edge to User by id if the given value is not nil.
func (*AliasCreate) SetTo ¶
func (ac *AliasCreate) SetTo(s string) *AliasCreate
SetTo sets the to field.
func (*AliasCreate) SetUser ¶
func (ac *AliasCreate) SetUser(u *User) *AliasCreate
SetUser sets the user edge to User.
func (*AliasCreate) SetUserID ¶
func (ac *AliasCreate) SetUserID(id string) *AliasCreate
SetUserID sets the user edge to User by id.
type AliasCreateBulk ¶
type AliasCreateBulk struct {
// contains filtered or unexported fields
}
AliasCreateBulk is the builder for creating a bulk of Alias entities.
type AliasDelete ¶
type AliasDelete struct {
// contains filtered or unexported fields
}
AliasDelete is the builder for deleting a Alias entity.
func (*AliasDelete) Exec ¶
func (ad *AliasDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AliasDelete) ExecX ¶
func (ad *AliasDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AliasDelete) Where ¶
func (ad *AliasDelete) Where(ps ...predicate.Alias) *AliasDelete
Where adds a new predicate to the delete builder.
type AliasDeleteOne ¶
type AliasDeleteOne struct {
// contains filtered or unexported fields
}
AliasDeleteOne is the builder for deleting a single Alias entity.
func (*AliasDeleteOne) Exec ¶
func (ado *AliasDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AliasDeleteOne) ExecX ¶
func (ado *AliasDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type AliasEdges ¶
type AliasEdges struct { // Event holds the value of the event edge. Event *Event // User holds the value of the user edge. User *User // contains filtered or unexported fields }
AliasEdges holds the relations/edges for other nodes in the graph.
func (AliasEdges) EventOrErr ¶
func (e AliasEdges) EventOrErr() (*Event, error)
EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (AliasEdges) UserOrErr ¶
func (e AliasEdges) 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.
type AliasGroupBy ¶
type AliasGroupBy struct {
// contains filtered or unexported fields
}
AliasGroupBy is the builder for group-by Alias entities.
func (*AliasGroupBy) Aggregate ¶
func (agb *AliasGroupBy) Aggregate(fns ...AggregateFunc) *AliasGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AliasGroupBy) Bool ¶
func (agb *AliasGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) BoolX ¶
func (agb *AliasGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*AliasGroupBy) Bools ¶
func (agb *AliasGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) BoolsX ¶
func (agb *AliasGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*AliasGroupBy) Float64 ¶
func (agb *AliasGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) Float64X ¶
func (agb *AliasGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*AliasGroupBy) Float64s ¶
func (agb *AliasGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) Float64sX ¶
func (agb *AliasGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*AliasGroupBy) Int ¶
func (agb *AliasGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) IntX ¶
func (agb *AliasGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*AliasGroupBy) Ints ¶
func (agb *AliasGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) IntsX ¶
func (agb *AliasGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*AliasGroupBy) Scan ¶
func (agb *AliasGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*AliasGroupBy) ScanX ¶
func (agb *AliasGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*AliasGroupBy) String ¶
func (agb *AliasGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*AliasGroupBy) StringX ¶
func (agb *AliasGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type AliasMutation ¶
type AliasMutation struct {
// contains filtered or unexported fields
}
AliasMutation represents an operation that mutate the AliasSlice nodes in the graph.
func (*AliasMutation) AddField ¶
func (m *AliasMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*AliasMutation) AddedEdges ¶
func (m *AliasMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AliasMutation) AddedField ¶
func (m *AliasMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*AliasMutation) AddedFields ¶
func (m *AliasMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*AliasMutation) AddedIDs ¶
func (m *AliasMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*AliasMutation) ClearEdge ¶
func (m *AliasMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*AliasMutation) ClearEvent ¶
func (m *AliasMutation) ClearEvent()
ClearEvent clears the event edge to Event.
func (*AliasMutation) ClearField ¶
func (m *AliasMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*AliasMutation) ClearUser ¶
func (m *AliasMutation) ClearUser()
ClearUser clears the user edge to User.
func (*AliasMutation) ClearedEdges ¶
func (m *AliasMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AliasMutation) ClearedFields ¶
func (m *AliasMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AliasMutation) Client ¶
func (m AliasMutation) 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 (*AliasMutation) EdgeCleared ¶
func (m *AliasMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*AliasMutation) EventCleared ¶
func (m *AliasMutation) EventCleared() bool
EventCleared returns if the edge event was cleared.
func (*AliasMutation) EventID ¶
func (m *AliasMutation) EventID() (id uuid.UUID, exists bool)
EventID returns the event id in the mutation.
func (*AliasMutation) EventIDs ¶
func (m *AliasMutation) EventIDs() (ids []uuid.UUID)
EventIDs returns the event ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use EventID instead. It exists only for internal usage by the builders.
func (*AliasMutation) Field ¶
func (m *AliasMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*AliasMutation) FieldCleared ¶
func (m *AliasMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*AliasMutation) Fields ¶
func (m *AliasMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*AliasMutation) From ¶
func (m *AliasMutation) From() (r string, exists bool)
From returns the from value in the mutation.
func (*AliasMutation) ID ¶
func (m *AliasMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*AliasMutation) 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 was failed.
func (*AliasMutation) OldFrom ¶
func (m *AliasMutation) OldFrom(ctx context.Context) (v string, err error)
OldFrom returns the old from value of the Alias. If the Alias 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 database query fails.
func (*AliasMutation) OldTo ¶
func (m *AliasMutation) OldTo(ctx context.Context) (v string, err error)
OldTo returns the old to value of the Alias. If the Alias 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 database query fails.
func (*AliasMutation) RemovedEdges ¶
func (m *AliasMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AliasMutation) RemovedIDs ¶
func (m *AliasMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*AliasMutation) ResetEdge ¶
func (m *AliasMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*AliasMutation) ResetEvent ¶
func (m *AliasMutation) ResetEvent()
ResetEvent reset all changes of the "event" edge.
func (*AliasMutation) ResetField ¶
func (m *AliasMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*AliasMutation) ResetFrom ¶
func (m *AliasMutation) ResetFrom()
ResetFrom reset all changes of the "from" field.
func (*AliasMutation) ResetTo ¶
func (m *AliasMutation) ResetTo()
ResetTo reset all changes of the "to" field.
func (*AliasMutation) ResetUser ¶
func (m *AliasMutation) ResetUser()
ResetUser reset all changes of the "user" edge.
func (*AliasMutation) SetEventID ¶
func (m *AliasMutation) SetEventID(id uuid.UUID)
SetEventID sets the event edge to Event by id.
func (*AliasMutation) SetField ¶
func (m *AliasMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*AliasMutation) SetFrom ¶
func (m *AliasMutation) SetFrom(s string)
SetFrom sets the from field.
func (*AliasMutation) SetUserID ¶
func (m *AliasMutation) SetUserID(id string)
SetUserID sets the user edge to User by id.
func (*AliasMutation) To ¶
func (m *AliasMutation) To() (r string, exists bool)
To returns the to value in the mutation.
func (AliasMutation) Tx ¶
func (m AliasMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AliasMutation) Type ¶
func (m *AliasMutation) Type() string
Type returns the node type of this mutation (Alias).
func (*AliasMutation) UserCleared ¶
func (m *AliasMutation) UserCleared() bool
UserCleared returns if the edge user was cleared.
func (*AliasMutation) UserID ¶
func (m *AliasMutation) UserID() (id string, exists bool)
UserID returns the user id in the mutation.
func (*AliasMutation) UserIDs ¶
func (m *AliasMutation) UserIDs() (ids []string)
UserIDs returns the user 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.
type AliasQuery ¶
type AliasQuery struct {
// contains filtered or unexported fields
}
AliasQuery is the builder for querying Alias entities.
func (*AliasQuery) All ¶
func (aq *AliasQuery) All(ctx context.Context) ([]*Alias, error)
All executes the query and returns a list of AliasSlice.
func (*AliasQuery) AllX ¶
func (aq *AliasQuery) AllX(ctx context.Context) []*Alias
AllX is like All, but panics if an error occurs.
func (*AliasQuery) Clone ¶
func (aq *AliasQuery) Clone() *AliasQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AliasQuery) Count ¶
func (aq *AliasQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AliasQuery) CountX ¶
func (aq *AliasQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AliasQuery) Exist ¶
func (aq *AliasQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AliasQuery) ExistX ¶
func (aq *AliasQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AliasQuery) First ¶
func (aq *AliasQuery) First(ctx context.Context) (*Alias, error)
First returns the first Alias entity in the query. Returns *NotFoundError when no alias was found.
func (*AliasQuery) FirstID ¶
func (aq *AliasQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Alias id in the query. Returns *NotFoundError when no id was found.
func (*AliasQuery) FirstX ¶
func (aq *AliasQuery) FirstX(ctx context.Context) *Alias
FirstX is like First, but panics if an error occurs.
func (*AliasQuery) FirstXID ¶
func (aq *AliasQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*AliasQuery) GroupBy ¶
func (aq *AliasQuery) GroupBy(field string, fields ...string) *AliasGroupBy
GroupBy 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 { From string `json:"from,omitempty"` Count int `json:"count,omitempty"` } client.Alias.Query(). GroupBy(alias.FieldFrom). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AliasQuery) IDs ¶
func (aq *AliasQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Alias ids.
func (*AliasQuery) IDsX ¶
func (aq *AliasQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*AliasQuery) Limit ¶
func (aq *AliasQuery) Limit(limit int) *AliasQuery
Limit adds a limit step to the query.
func (*AliasQuery) Offset ¶
func (aq *AliasQuery) Offset(offset int) *AliasQuery
Offset adds an offset step to the query.
func (*AliasQuery) Only ¶
func (aq *AliasQuery) Only(ctx context.Context) (*Alias, error)
Only returns the only Alias entity in the query, returns an error if not exactly one entity was returned.
func (*AliasQuery) OnlyID ¶
func (aq *AliasQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Alias id in the query, returns an error if not exactly one id was returned.
func (*AliasQuery) OnlyIDX ¶
func (aq *AliasQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AliasQuery) OnlyX ¶
func (aq *AliasQuery) OnlyX(ctx context.Context) *Alias
OnlyX is like Only, but panics if an error occurs.
func (*AliasQuery) Order ¶
func (aq *AliasQuery) Order(o ...OrderFunc) *AliasQuery
Order adds an order step to the query.
func (*AliasQuery) QueryEvent ¶
func (aq *AliasQuery) QueryEvent() *EventQuery
QueryEvent chains the current query on the event edge.
func (*AliasQuery) QueryUser ¶
func (aq *AliasQuery) QueryUser() *UserQuery
QueryUser chains the current query on the user edge.
func (*AliasQuery) Select ¶
func (aq *AliasQuery) Select(field string, fields ...string) *AliasSelect
Select one or more fields from the given query.
Example:
var v []struct { From string `json:"from,omitempty"` } client.Alias.Query(). Select(alias.FieldFrom). Scan(ctx, &v)
func (*AliasQuery) Where ¶
func (aq *AliasQuery) Where(ps ...predicate.Alias) *AliasQuery
Where adds a new predicate for the builder.
func (*AliasQuery) WithEvent ¶
func (aq *AliasQuery) WithEvent(opts ...func(*EventQuery)) *AliasQuery
WithEvent tells the query-builder to eager-loads the nodes that are connected to
the "event" edge. The optional arguments used to configure the query builder of the edge.
func (*AliasQuery) WithUser ¶
func (aq *AliasQuery) WithUser(opts ...func(*UserQuery)) *AliasQuery
WithUser tells the query-builder to eager-loads the nodes that are connected to
the "user" edge. The optional arguments used to configure the query builder of the edge.
type AliasSelect ¶
type AliasSelect struct {
// contains filtered or unexported fields
}
AliasSelect is the builder for select fields of Alias entities.
func (*AliasSelect) Bool ¶
func (as *AliasSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*AliasSelect) BoolX ¶
func (as *AliasSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*AliasSelect) Bools ¶
func (as *AliasSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*AliasSelect) BoolsX ¶
func (as *AliasSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*AliasSelect) Float64 ¶
func (as *AliasSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*AliasSelect) Float64X ¶
func (as *AliasSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*AliasSelect) Float64s ¶
func (as *AliasSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*AliasSelect) Float64sX ¶
func (as *AliasSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*AliasSelect) Int ¶
func (as *AliasSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*AliasSelect) IntX ¶
func (as *AliasSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*AliasSelect) Ints ¶
func (as *AliasSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*AliasSelect) IntsX ¶
func (as *AliasSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*AliasSelect) Scan ¶
func (as *AliasSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*AliasSelect) ScanX ¶
func (as *AliasSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*AliasSelect) String ¶
func (as *AliasSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*AliasSelect) StringX ¶
func (as *AliasSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type AliasUpdate ¶
type AliasUpdate struct {
// contains filtered or unexported fields
}
AliasUpdate is the builder for updating Alias entities.
func (*AliasUpdate) ClearEvent ¶
func (au *AliasUpdate) ClearEvent() *AliasUpdate
ClearEvent clears the event edge to Event.
func (*AliasUpdate) ClearUser ¶
func (au *AliasUpdate) ClearUser() *AliasUpdate
ClearUser clears the user edge to User.
func (*AliasUpdate) Exec ¶
func (au *AliasUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AliasUpdate) ExecX ¶
func (au *AliasUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AliasUpdate) Mutation ¶
func (au *AliasUpdate) Mutation() *AliasMutation
Mutation returns the AliasMutation object of the builder.
func (*AliasUpdate) Save ¶
func (au *AliasUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*AliasUpdate) SaveX ¶
func (au *AliasUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AliasUpdate) SetEvent ¶
func (au *AliasUpdate) SetEvent(e *Event) *AliasUpdate
SetEvent sets the event edge to Event.
func (*AliasUpdate) SetEventID ¶
func (au *AliasUpdate) SetEventID(id uuid.UUID) *AliasUpdate
SetEventID sets the event edge to Event by id.
func (*AliasUpdate) SetFrom ¶
func (au *AliasUpdate) SetFrom(s string) *AliasUpdate
SetFrom sets the from field.
func (*AliasUpdate) SetNillableEventID ¶
func (au *AliasUpdate) SetNillableEventID(id *uuid.UUID) *AliasUpdate
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*AliasUpdate) SetNillableUserID ¶
func (au *AliasUpdate) SetNillableUserID(id *string) *AliasUpdate
SetNillableUserID sets the user edge to User by id if the given value is not nil.
func (*AliasUpdate) SetTo ¶
func (au *AliasUpdate) SetTo(s string) *AliasUpdate
SetTo sets the to field.
func (*AliasUpdate) SetUser ¶
func (au *AliasUpdate) SetUser(u *User) *AliasUpdate
SetUser sets the user edge to User.
func (*AliasUpdate) SetUserID ¶
func (au *AliasUpdate) SetUserID(id string) *AliasUpdate
SetUserID sets the user edge to User by id.
func (*AliasUpdate) Where ¶
func (au *AliasUpdate) Where(ps ...predicate.Alias) *AliasUpdate
Where adds a new predicate for the builder.
type AliasUpdateOne ¶
type AliasUpdateOne struct {
// contains filtered or unexported fields
}
AliasUpdateOne is the builder for updating a single Alias entity.
func (*AliasUpdateOne) ClearEvent ¶
func (auo *AliasUpdateOne) ClearEvent() *AliasUpdateOne
ClearEvent clears the event edge to Event.
func (*AliasUpdateOne) ClearUser ¶
func (auo *AliasUpdateOne) ClearUser() *AliasUpdateOne
ClearUser clears the user edge to User.
func (*AliasUpdateOne) Exec ¶
func (auo *AliasUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AliasUpdateOne) ExecX ¶
func (auo *AliasUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AliasUpdateOne) Mutation ¶
func (auo *AliasUpdateOne) Mutation() *AliasMutation
Mutation returns the AliasMutation object of the builder.
func (*AliasUpdateOne) Save ¶
func (auo *AliasUpdateOne) Save(ctx context.Context) (*Alias, error)
Save executes the query and returns the updated entity.
func (*AliasUpdateOne) SaveX ¶
func (auo *AliasUpdateOne) SaveX(ctx context.Context) *Alias
SaveX is like Save, but panics if an error occurs.
func (*AliasUpdateOne) SetEvent ¶
func (auo *AliasUpdateOne) SetEvent(e *Event) *AliasUpdateOne
SetEvent sets the event edge to Event.
func (*AliasUpdateOne) SetEventID ¶
func (auo *AliasUpdateOne) SetEventID(id uuid.UUID) *AliasUpdateOne
SetEventID sets the event edge to Event by id.
func (*AliasUpdateOne) SetFrom ¶
func (auo *AliasUpdateOne) SetFrom(s string) *AliasUpdateOne
SetFrom sets the from field.
func (*AliasUpdateOne) SetNillableEventID ¶
func (auo *AliasUpdateOne) SetNillableEventID(id *uuid.UUID) *AliasUpdateOne
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*AliasUpdateOne) SetNillableUserID ¶
func (auo *AliasUpdateOne) SetNillableUserID(id *string) *AliasUpdateOne
SetNillableUserID sets the user edge to User by id if the given value is not nil.
func (*AliasUpdateOne) SetTo ¶
func (auo *AliasUpdateOne) SetTo(s string) *AliasUpdateOne
SetTo sets the to field.
func (*AliasUpdateOne) SetUser ¶
func (auo *AliasUpdateOne) SetUser(u *User) *AliasUpdateOne
SetUser sets the user edge to User.
func (*AliasUpdateOne) SetUserID ¶
func (auo *AliasUpdateOne) SetUserID(id string) *AliasUpdateOne
SetUserID sets the user edge to User by id.
type App ¶
type App struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // Build holds the value of the "build" field. Build string `json:"build,omitempty"` // Namespace holds the value of the "namespace" field. Namespace string `json:"namespace,omitempty"` // Properties holds the value of the "properties" field. Properties map[string]interface{} `json:"properties,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the AppQuery when eager-loading is set. Edges AppEdges `json:"edges"` // contains filtered or unexported fields }
App is the model entity for the App schema.
func (*App) QueryEvents ¶
func (a *App) QueryEvents() *EventQuery
QueryEvents queries the events edge of the App.
func (*App) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*App) Update ¶
func (a *App) Update() *AppUpdateOne
Update returns a builder for updating this App. Note that, you need to call App.Unwrap() before calling this method, if this App was returned from a transaction, and the transaction was committed or rolled back.
type AppClient ¶
type AppClient struct {
// contains filtered or unexported fields
}
AppClient is a client for the App schema.
func NewAppClient ¶
func NewAppClient(c config) *AppClient
NewAppClient returns a client for the App from the given config.
func (*AppClient) CreateBulk ¶
func (c *AppClient) CreateBulk(builders ...*AppCreate) *AppCreateBulk
BulkCreate returns a builder for creating a bulk of App entities.
func (*AppClient) DeleteOne ¶
func (c *AppClient) DeleteOne(a *App) *AppDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*AppClient) DeleteOneID ¶
func (c *AppClient) DeleteOneID(id int) *AppDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*AppClient) QueryEvents ¶
func (c *AppClient) QueryEvents(a *App) *EventQuery
QueryEvents queries the events edge of a App.
func (*AppClient) UpdateOne ¶
func (c *AppClient) UpdateOne(a *App) *AppUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AppClient) UpdateOneID ¶
func (c *AppClient) UpdateOneID(id int) *AppUpdateOne
UpdateOneID returns an update builder for the given id.
type AppCreate ¶
type AppCreate struct {
// contains filtered or unexported fields
}
AppCreate is the builder for creating a App entity.
func (*AppCreate) AddEventIDs ¶
AddEventIDs adds the events edge to Event by ids.
func (*AppCreate) Mutation ¶
func (ac *AppCreate) Mutation() *AppMutation
Mutation returns the AppMutation object of the builder.
func (*AppCreate) SetNamespace ¶
SetNamespace sets the namespace field.
func (*AppCreate) SetNillableBuild ¶
SetNillableBuild sets the build field if the given value is not nil.
func (*AppCreate) SetNillableNamespace ¶
SetNillableNamespace sets the namespace field if the given value is not nil.
func (*AppCreate) SetNillableVersion ¶
SetNillableVersion sets the version field if the given value is not nil.
func (*AppCreate) SetProperties ¶
SetProperties sets the properties field.
func (*AppCreate) SetVersion ¶
SetVersion sets the version field.
type AppCreateBulk ¶
type AppCreateBulk struct {
// contains filtered or unexported fields
}
AppCreateBulk is the builder for creating a bulk of App entities.
type AppDelete ¶
type AppDelete struct {
// contains filtered or unexported fields
}
AppDelete is the builder for deleting a App entity.
func (*AppDelete) Exec ¶
Exec executes the deletion query and returns how many vertices were deleted.
type AppDeleteOne ¶
type AppDeleteOne struct {
// contains filtered or unexported fields
}
AppDeleteOne is the builder for deleting a single App entity.
func (*AppDeleteOne) Exec ¶
func (ado *AppDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AppDeleteOne) ExecX ¶
func (ado *AppDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type AppEdges ¶
type AppEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
AppEdges holds the relations/edges for other nodes in the graph.
func (AppEdges) EventsOrErr ¶
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type AppGroupBy ¶
type AppGroupBy struct {
// contains filtered or unexported fields
}
AppGroupBy is the builder for group-by App entities.
func (*AppGroupBy) Aggregate ¶
func (agb *AppGroupBy) Aggregate(fns ...AggregateFunc) *AppGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AppGroupBy) Bool ¶
func (agb *AppGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) BoolX ¶
func (agb *AppGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*AppGroupBy) Bools ¶
func (agb *AppGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) BoolsX ¶
func (agb *AppGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*AppGroupBy) Float64 ¶
func (agb *AppGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) Float64X ¶
func (agb *AppGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*AppGroupBy) Float64s ¶
func (agb *AppGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) Float64sX ¶
func (agb *AppGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*AppGroupBy) Int ¶
func (agb *AppGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) IntX ¶
func (agb *AppGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*AppGroupBy) Ints ¶
func (agb *AppGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) IntsX ¶
func (agb *AppGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*AppGroupBy) Scan ¶
func (agb *AppGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*AppGroupBy) ScanX ¶
func (agb *AppGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*AppGroupBy) String ¶
func (agb *AppGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*AppGroupBy) StringX ¶
func (agb *AppGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type AppMutation ¶
type AppMutation struct {
// contains filtered or unexported fields
}
AppMutation represents an operation that mutate the Apps nodes in the graph.
func (*AppMutation) AddEventIDs ¶
func (m *AppMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*AppMutation) AddField ¶
func (m *AppMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*AppMutation) AddedEdges ¶
func (m *AppMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AppMutation) AddedField ¶
func (m *AppMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*AppMutation) AddedFields ¶
func (m *AppMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*AppMutation) AddedIDs ¶
func (m *AppMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*AppMutation) Build ¶
func (m *AppMutation) Build() (r string, exists bool)
Build returns the build value in the mutation.
func (*AppMutation) BuildCleared ¶
func (m *AppMutation) BuildCleared() bool
BuildCleared returns if the field build was cleared in this mutation.
func (*AppMutation) ClearBuild ¶
func (m *AppMutation) ClearBuild()
ClearBuild clears the value of build.
func (*AppMutation) ClearEdge ¶
func (m *AppMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*AppMutation) ClearField ¶
func (m *AppMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*AppMutation) ClearNamespace ¶
func (m *AppMutation) ClearNamespace()
ClearNamespace clears the value of namespace.
func (*AppMutation) ClearProperties ¶
func (m *AppMutation) ClearProperties()
ClearProperties clears the value of properties.
func (*AppMutation) ClearVersion ¶
func (m *AppMutation) ClearVersion()
ClearVersion clears the value of version.
func (*AppMutation) ClearedEdges ¶
func (m *AppMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AppMutation) ClearedFields ¶
func (m *AppMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AppMutation) Client ¶
func (m AppMutation) 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 (*AppMutation) EdgeCleared ¶
func (m *AppMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*AppMutation) EventsIDs ¶
func (m *AppMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*AppMutation) Field ¶
func (m *AppMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*AppMutation) FieldCleared ¶
func (m *AppMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*AppMutation) Fields ¶
func (m *AppMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*AppMutation) ID ¶
func (m *AppMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*AppMutation) Name ¶
func (m *AppMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*AppMutation) Namespace ¶
func (m *AppMutation) Namespace() (r string, exists bool)
Namespace returns the namespace value in the mutation.
func (*AppMutation) NamespaceCleared ¶
func (m *AppMutation) NamespaceCleared() bool
NamespaceCleared returns if the field namespace was cleared in this mutation.
func (*AppMutation) OldBuild ¶
func (m *AppMutation) OldBuild(ctx context.Context) (v string, err error)
OldBuild returns the old build value of the App. If the App 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 database query fails.
func (*AppMutation) 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 was failed.
func (*AppMutation) OldName ¶
func (m *AppMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the App. If the App 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 database query fails.
func (*AppMutation) OldNamespace ¶
func (m *AppMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old namespace value of the App. If the App 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 database query fails.
func (*AppMutation) OldProperties ¶
func (m *AppMutation) OldProperties(ctx context.Context) (v map[string]interface{}, err error)
OldProperties returns the old properties value of the App. If the App 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 database query fails.
func (*AppMutation) OldVersion ¶
func (m *AppMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old version value of the App. If the App 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 database query fails.
func (*AppMutation) Properties ¶
func (m *AppMutation) Properties() (r map[string]interface{}, exists bool)
Properties returns the properties value in the mutation.
func (*AppMutation) PropertiesCleared ¶
func (m *AppMutation) PropertiesCleared() bool
PropertiesCleared returns if the field properties was cleared in this mutation.
func (*AppMutation) RemoveEventIDs ¶
func (m *AppMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*AppMutation) RemovedEdges ¶
func (m *AppMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AppMutation) RemovedEventsIDs ¶
func (m *AppMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*AppMutation) RemovedIDs ¶
func (m *AppMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*AppMutation) ResetBuild ¶
func (m *AppMutation) ResetBuild()
ResetBuild reset all changes of the "build" field.
func (*AppMutation) ResetEdge ¶
func (m *AppMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*AppMutation) ResetEvents ¶
func (m *AppMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*AppMutation) ResetField ¶
func (m *AppMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*AppMutation) ResetName ¶
func (m *AppMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*AppMutation) ResetNamespace ¶
func (m *AppMutation) ResetNamespace()
ResetNamespace reset all changes of the "namespace" field.
func (*AppMutation) ResetProperties ¶
func (m *AppMutation) ResetProperties()
ResetProperties reset all changes of the "properties" field.
func (*AppMutation) ResetVersion ¶
func (m *AppMutation) ResetVersion()
ResetVersion reset all changes of the "version" field.
func (*AppMutation) SetBuild ¶
func (m *AppMutation) SetBuild(s string)
SetBuild sets the build field.
func (*AppMutation) SetField ¶
func (m *AppMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*AppMutation) SetNamespace ¶
func (m *AppMutation) SetNamespace(s string)
SetNamespace sets the namespace field.
func (*AppMutation) SetProperties ¶
func (m *AppMutation) SetProperties(value map[string]interface{})
SetProperties sets the properties field.
func (*AppMutation) SetVersion ¶
func (m *AppMutation) SetVersion(s string)
SetVersion sets the version field.
func (AppMutation) Tx ¶
func (m AppMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AppMutation) Type ¶
func (m *AppMutation) Type() string
Type returns the node type of this mutation (App).
func (*AppMutation) Version ¶
func (m *AppMutation) Version() (r string, exists bool)
Version returns the version value in the mutation.
func (*AppMutation) VersionCleared ¶
func (m *AppMutation) VersionCleared() bool
VersionCleared returns if the field version was cleared in this mutation.
type AppQuery ¶
type AppQuery struct {
// contains filtered or unexported fields
}
AppQuery is the builder for querying App entities.
func (*AppQuery) Clone ¶
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AppQuery) First ¶
First returns the first App entity in the query. Returns *NotFoundError when no app was found.
func (*AppQuery) FirstID ¶
FirstID returns the first App id in the query. Returns *NotFoundError when no id was found.
func (*AppQuery) GroupBy ¶
func (aq *AppQuery) GroupBy(field string, fields ...string) *AppGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.App.Query(). GroupBy(app.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AppQuery) Only ¶
Only returns the only App entity in the query, returns an error if not exactly one entity was returned.
func (*AppQuery) OnlyID ¶
OnlyID returns the only App id in the query, returns an error if not exactly one id was returned.
func (*AppQuery) QueryEvents ¶
func (aq *AppQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*AppQuery) Select ¶
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.App.Query(). Select(app.FieldName). Scan(ctx, &v)
func (*AppQuery) WithEvents ¶
func (aq *AppQuery) WithEvents(opts ...func(*EventQuery)) *AppQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type AppSelect ¶
type AppSelect struct {
// contains filtered or unexported fields
}
AppSelect is the builder for select fields of App entities.
func (*AppSelect) Bool ¶
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*AppSelect) Bools ¶
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*AppSelect) Float64 ¶
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*AppSelect) Float64s ¶
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*AppSelect) Int ¶
Int returns a single int from selector. It is only allowed when selecting one field.
func (*AppSelect) Ints ¶
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*AppSelect) String ¶
String returns a single string from selector. It is only allowed when selecting one field.
type AppUpdate ¶
type AppUpdate struct {
// contains filtered or unexported fields
}
AppUpdate is the builder for updating App entities.
func (*AppUpdate) AddEventIDs ¶
AddEventIDs adds the events edge to Event by ids.
func (*AppUpdate) ClearBuild ¶
ClearBuild clears the value of build.
func (*AppUpdate) ClearNamespace ¶
ClearNamespace clears the value of namespace.
func (*AppUpdate) ClearProperties ¶
ClearProperties clears the value of properties.
func (*AppUpdate) ClearVersion ¶
ClearVersion clears the value of version.
func (*AppUpdate) Mutation ¶
func (au *AppUpdate) Mutation() *AppMutation
Mutation returns the AppMutation object of the builder.
func (*AppUpdate) RemoveEventIDs ¶
RemoveEventIDs removes the events edge to Event by ids.
func (*AppUpdate) RemoveEvents ¶
RemoveEvents removes events edges to Event.
func (*AppUpdate) Save ¶
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*AppUpdate) SetNamespace ¶
SetNamespace sets the namespace field.
func (*AppUpdate) SetNillableBuild ¶
SetNillableBuild sets the build field if the given value is not nil.
func (*AppUpdate) SetNillableNamespace ¶
SetNillableNamespace sets the namespace field if the given value is not nil.
func (*AppUpdate) SetNillableVersion ¶
SetNillableVersion sets the version field if the given value is not nil.
func (*AppUpdate) SetProperties ¶
SetProperties sets the properties field.
func (*AppUpdate) SetVersion ¶
SetVersion sets the version field.
type AppUpdateOne ¶
type AppUpdateOne struct {
// contains filtered or unexported fields
}
AppUpdateOne is the builder for updating a single App entity.
func (*AppUpdateOne) AddEventIDs ¶
func (auo *AppUpdateOne) AddEventIDs(ids ...uuid.UUID) *AppUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*AppUpdateOne) AddEvents ¶
func (auo *AppUpdateOne) AddEvents(e ...*Event) *AppUpdateOne
AddEvents adds the events edges to Event.
func (*AppUpdateOne) ClearBuild ¶
func (auo *AppUpdateOne) ClearBuild() *AppUpdateOne
ClearBuild clears the value of build.
func (*AppUpdateOne) ClearNamespace ¶
func (auo *AppUpdateOne) ClearNamespace() *AppUpdateOne
ClearNamespace clears the value of namespace.
func (*AppUpdateOne) ClearProperties ¶
func (auo *AppUpdateOne) ClearProperties() *AppUpdateOne
ClearProperties clears the value of properties.
func (*AppUpdateOne) ClearVersion ¶
func (auo *AppUpdateOne) ClearVersion() *AppUpdateOne
ClearVersion clears the value of version.
func (*AppUpdateOne) Exec ¶
func (auo *AppUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AppUpdateOne) ExecX ¶
func (auo *AppUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppUpdateOne) Mutation ¶
func (auo *AppUpdateOne) Mutation() *AppMutation
Mutation returns the AppMutation object of the builder.
func (*AppUpdateOne) RemoveEventIDs ¶
func (auo *AppUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *AppUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*AppUpdateOne) RemoveEvents ¶
func (auo *AppUpdateOne) RemoveEvents(e ...*Event) *AppUpdateOne
RemoveEvents removes events edges to Event.
func (*AppUpdateOne) Save ¶
func (auo *AppUpdateOne) Save(ctx context.Context) (*App, error)
Save executes the query and returns the updated entity.
func (*AppUpdateOne) SaveX ¶
func (auo *AppUpdateOne) SaveX(ctx context.Context) *App
SaveX is like Save, but panics if an error occurs.
func (*AppUpdateOne) SetBuild ¶
func (auo *AppUpdateOne) SetBuild(s string) *AppUpdateOne
SetBuild sets the build field.
func (*AppUpdateOne) SetName ¶
func (auo *AppUpdateOne) SetName(s string) *AppUpdateOne
SetName sets the name field.
func (*AppUpdateOne) SetNamespace ¶
func (auo *AppUpdateOne) SetNamespace(s string) *AppUpdateOne
SetNamespace sets the namespace field.
func (*AppUpdateOne) SetNillableBuild ¶
func (auo *AppUpdateOne) SetNillableBuild(s *string) *AppUpdateOne
SetNillableBuild sets the build field if the given value is not nil.
func (*AppUpdateOne) SetNillableNamespace ¶
func (auo *AppUpdateOne) SetNillableNamespace(s *string) *AppUpdateOne
SetNillableNamespace sets the namespace field if the given value is not nil.
func (*AppUpdateOne) SetNillableVersion ¶
func (auo *AppUpdateOne) SetNillableVersion(s *string) *AppUpdateOne
SetNillableVersion sets the version field if the given value is not nil.
func (*AppUpdateOne) SetProperties ¶
func (auo *AppUpdateOne) SetProperties(m map[string]interface{}) *AppUpdateOne
SetProperties sets the properties field.
func (*AppUpdateOne) SetVersion ¶
func (auo *AppUpdateOne) SetVersion(s string) *AppUpdateOne
SetVersion sets the version field.
type Browser ¶
type Browser struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // Useragent holds the value of the "useragent" field. Useragent string `json:"useragent,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the BrowserQuery when eager-loading is set. Edges BrowserEdges `json:"edges"` // contains filtered or unexported fields }
Browser is the model entity for the Browser schema.
func (*Browser) QueryEvent ¶
func (b *Browser) QueryEvent() *EventQuery
QueryEvent queries the event edge of the Browser.
func (*Browser) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Browser) Update ¶
func (b *Browser) Update() *BrowserUpdateOne
Update returns a builder for updating this Browser. Note that, you need to call Browser.Unwrap() before calling this method, if this Browser was returned from a transaction, and the transaction was committed or rolled back.
type BrowserClient ¶
type BrowserClient struct {
// contains filtered or unexported fields
}
BrowserClient is a client for the Browser schema.
func NewBrowserClient ¶
func NewBrowserClient(c config) *BrowserClient
NewBrowserClient returns a client for the Browser from the given config.
func (*BrowserClient) Create ¶
func (c *BrowserClient) Create() *BrowserCreate
Create returns a create builder for Browser.
func (*BrowserClient) CreateBulk ¶
func (c *BrowserClient) CreateBulk(builders ...*BrowserCreate) *BrowserCreateBulk
BulkCreate returns a builder for creating a bulk of Browser entities.
func (*BrowserClient) Delete ¶
func (c *BrowserClient) Delete() *BrowserDelete
Delete returns a delete builder for Browser.
func (*BrowserClient) DeleteOne ¶
func (c *BrowserClient) DeleteOne(b *Browser) *BrowserDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*BrowserClient) DeleteOneID ¶
func (c *BrowserClient) DeleteOneID(id int) *BrowserDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*BrowserClient) GetX ¶
func (c *BrowserClient) GetX(ctx context.Context, id int) *Browser
GetX is like Get, but panics if an error occurs.
func (*BrowserClient) Hooks ¶
func (c *BrowserClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BrowserClient) Query ¶
func (c *BrowserClient) Query() *BrowserQuery
Query returns a query builder for Browser.
func (*BrowserClient) QueryEvent ¶
func (c *BrowserClient) QueryEvent(b *Browser) *EventQuery
QueryEvent queries the event edge of a Browser.
func (*BrowserClient) Update ¶
func (c *BrowserClient) Update() *BrowserUpdate
Update returns an update builder for Browser.
func (*BrowserClient) UpdateOne ¶
func (c *BrowserClient) UpdateOne(b *Browser) *BrowserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BrowserClient) UpdateOneID ¶
func (c *BrowserClient) UpdateOneID(id int) *BrowserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BrowserClient) Use ¶
func (c *BrowserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `browser.Hooks(f(g(h())))`.
type BrowserCreate ¶
type BrowserCreate struct {
// contains filtered or unexported fields
}
BrowserCreate is the builder for creating a Browser entity.
func (*BrowserCreate) Mutation ¶
func (bc *BrowserCreate) Mutation() *BrowserMutation
Mutation returns the BrowserMutation object of the builder.
func (*BrowserCreate) Save ¶
func (bc *BrowserCreate) Save(ctx context.Context) (*Browser, error)
Save creates the Browser in the database.
func (*BrowserCreate) SaveX ¶
func (bc *BrowserCreate) SaveX(ctx context.Context) *Browser
SaveX calls Save and panics if Save returns an error.
func (*BrowserCreate) SetEvent ¶
func (bc *BrowserCreate) SetEvent(e *Event) *BrowserCreate
SetEvent sets the event edge to Event.
func (*BrowserCreate) SetEventID ¶
func (bc *BrowserCreate) SetEventID(id uuid.UUID) *BrowserCreate
SetEventID sets the event edge to Event by id.
func (*BrowserCreate) SetName ¶
func (bc *BrowserCreate) SetName(s string) *BrowserCreate
SetName sets the name field.
func (*BrowserCreate) SetNillableEventID ¶
func (bc *BrowserCreate) SetNillableEventID(id *uuid.UUID) *BrowserCreate
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*BrowserCreate) SetNillableUseragent ¶
func (bc *BrowserCreate) SetNillableUseragent(s *string) *BrowserCreate
SetNillableUseragent sets the useragent field if the given value is not nil.
func (*BrowserCreate) SetUseragent ¶
func (bc *BrowserCreate) SetUseragent(s string) *BrowserCreate
SetUseragent sets the useragent field.
func (*BrowserCreate) SetVersion ¶
func (bc *BrowserCreate) SetVersion(s string) *BrowserCreate
SetVersion sets the version field.
type BrowserCreateBulk ¶
type BrowserCreateBulk struct {
// contains filtered or unexported fields
}
BrowserCreateBulk is the builder for creating a bulk of Browser entities.
type BrowserDelete ¶
type BrowserDelete struct {
// contains filtered or unexported fields
}
BrowserDelete is the builder for deleting a Browser entity.
func (*BrowserDelete) Exec ¶
func (bd *BrowserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BrowserDelete) ExecX ¶
func (bd *BrowserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BrowserDelete) Where ¶
func (bd *BrowserDelete) Where(ps ...predicate.Browser) *BrowserDelete
Where adds a new predicate to the delete builder.
type BrowserDeleteOne ¶
type BrowserDeleteOne struct {
// contains filtered or unexported fields
}
BrowserDeleteOne is the builder for deleting a single Browser entity.
func (*BrowserDeleteOne) Exec ¶
func (bdo *BrowserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BrowserDeleteOne) ExecX ¶
func (bdo *BrowserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type BrowserEdges ¶
type BrowserEdges struct { // Event holds the value of the event edge. Event *Event // contains filtered or unexported fields }
BrowserEdges holds the relations/edges for other nodes in the graph.
func (BrowserEdges) EventOrErr ¶
func (e BrowserEdges) EventOrErr() (*Event, error)
EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BrowserGroupBy ¶
type BrowserGroupBy struct {
// contains filtered or unexported fields
}
BrowserGroupBy is the builder for group-by Browser entities.
func (*BrowserGroupBy) Aggregate ¶
func (bgb *BrowserGroupBy) Aggregate(fns ...AggregateFunc) *BrowserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BrowserGroupBy) Bool ¶
func (bgb *BrowserGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) BoolX ¶
func (bgb *BrowserGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*BrowserGroupBy) Bools ¶
func (bgb *BrowserGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) BoolsX ¶
func (bgb *BrowserGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*BrowserGroupBy) Float64 ¶
func (bgb *BrowserGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) Float64X ¶
func (bgb *BrowserGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*BrowserGroupBy) Float64s ¶
func (bgb *BrowserGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) Float64sX ¶
func (bgb *BrowserGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*BrowserGroupBy) Int ¶
func (bgb *BrowserGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) IntX ¶
func (bgb *BrowserGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*BrowserGroupBy) Ints ¶
func (bgb *BrowserGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) IntsX ¶
func (bgb *BrowserGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*BrowserGroupBy) Scan ¶
func (bgb *BrowserGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*BrowserGroupBy) ScanX ¶
func (bgb *BrowserGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*BrowserGroupBy) String ¶
func (bgb *BrowserGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*BrowserGroupBy) StringX ¶
func (bgb *BrowserGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type BrowserMutation ¶
type BrowserMutation struct {
// contains filtered or unexported fields
}
BrowserMutation represents an operation that mutate the Browsers nodes in the graph.
func (*BrowserMutation) AddField ¶
func (m *BrowserMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*BrowserMutation) AddedEdges ¶
func (m *BrowserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BrowserMutation) AddedField ¶
func (m *BrowserMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*BrowserMutation) AddedFields ¶
func (m *BrowserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*BrowserMutation) AddedIDs ¶
func (m *BrowserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*BrowserMutation) ClearEdge ¶
func (m *BrowserMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*BrowserMutation) ClearEvent ¶
func (m *BrowserMutation) ClearEvent()
ClearEvent clears the event edge to Event.
func (*BrowserMutation) ClearField ¶
func (m *BrowserMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*BrowserMutation) ClearUseragent ¶
func (m *BrowserMutation) ClearUseragent()
ClearUseragent clears the value of useragent.
func (*BrowserMutation) ClearedEdges ¶
func (m *BrowserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BrowserMutation) ClearedFields ¶
func (m *BrowserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BrowserMutation) Client ¶
func (m BrowserMutation) 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 (*BrowserMutation) EdgeCleared ¶
func (m *BrowserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*BrowserMutation) EventCleared ¶
func (m *BrowserMutation) EventCleared() bool
EventCleared returns if the edge event was cleared.
func (*BrowserMutation) EventID ¶
func (m *BrowserMutation) EventID() (id uuid.UUID, exists bool)
EventID returns the event id in the mutation.
func (*BrowserMutation) EventIDs ¶
func (m *BrowserMutation) EventIDs() (ids []uuid.UUID)
EventIDs returns the event ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use EventID instead. It exists only for internal usage by the builders.
func (*BrowserMutation) Field ¶
func (m *BrowserMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*BrowserMutation) FieldCleared ¶
func (m *BrowserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*BrowserMutation) Fields ¶
func (m *BrowserMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*BrowserMutation) ID ¶
func (m *BrowserMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*BrowserMutation) Name ¶
func (m *BrowserMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*BrowserMutation) 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 was failed.
func (*BrowserMutation) OldName ¶
func (m *BrowserMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Browser. If the Browser 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 database query fails.
func (*BrowserMutation) OldUseragent ¶
func (m *BrowserMutation) OldUseragent(ctx context.Context) (v string, err error)
OldUseragent returns the old useragent value of the Browser. If the Browser 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 database query fails.
func (*BrowserMutation) OldVersion ¶
func (m *BrowserMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old version value of the Browser. If the Browser 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 database query fails.
func (*BrowserMutation) RemovedEdges ¶
func (m *BrowserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BrowserMutation) RemovedIDs ¶
func (m *BrowserMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*BrowserMutation) ResetEdge ¶
func (m *BrowserMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*BrowserMutation) ResetEvent ¶
func (m *BrowserMutation) ResetEvent()
ResetEvent reset all changes of the "event" edge.
func (*BrowserMutation) ResetField ¶
func (m *BrowserMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*BrowserMutation) ResetName ¶
func (m *BrowserMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*BrowserMutation) ResetUseragent ¶
func (m *BrowserMutation) ResetUseragent()
ResetUseragent reset all changes of the "useragent" field.
func (*BrowserMutation) ResetVersion ¶
func (m *BrowserMutation) ResetVersion()
ResetVersion reset all changes of the "version" field.
func (*BrowserMutation) SetEventID ¶
func (m *BrowserMutation) SetEventID(id uuid.UUID)
SetEventID sets the event edge to Event by id.
func (*BrowserMutation) SetField ¶
func (m *BrowserMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*BrowserMutation) SetName ¶
func (m *BrowserMutation) SetName(s string)
SetName sets the name field.
func (*BrowserMutation) SetUseragent ¶
func (m *BrowserMutation) SetUseragent(s string)
SetUseragent sets the useragent field.
func (*BrowserMutation) SetVersion ¶
func (m *BrowserMutation) SetVersion(s string)
SetVersion sets the version field.
func (BrowserMutation) Tx ¶
func (m BrowserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BrowserMutation) Type ¶
func (m *BrowserMutation) Type() string
Type returns the node type of this mutation (Browser).
func (*BrowserMutation) Useragent ¶
func (m *BrowserMutation) Useragent() (r string, exists bool)
Useragent returns the useragent value in the mutation.
func (*BrowserMutation) UseragentCleared ¶
func (m *BrowserMutation) UseragentCleared() bool
UseragentCleared returns if the field useragent was cleared in this mutation.
func (*BrowserMutation) Version ¶
func (m *BrowserMutation) Version() (r string, exists bool)
Version returns the version value in the mutation.
type BrowserQuery ¶
type BrowserQuery struct {
// contains filtered or unexported fields
}
BrowserQuery is the builder for querying Browser entities.
func (*BrowserQuery) All ¶
func (bq *BrowserQuery) All(ctx context.Context) ([]*Browser, error)
All executes the query and returns a list of Browsers.
func (*BrowserQuery) AllX ¶
func (bq *BrowserQuery) AllX(ctx context.Context) []*Browser
AllX is like All, but panics if an error occurs.
func (*BrowserQuery) Clone ¶
func (bq *BrowserQuery) Clone() *BrowserQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BrowserQuery) Count ¶
func (bq *BrowserQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BrowserQuery) CountX ¶
func (bq *BrowserQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BrowserQuery) Exist ¶
func (bq *BrowserQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BrowserQuery) ExistX ¶
func (bq *BrowserQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BrowserQuery) First ¶
func (bq *BrowserQuery) First(ctx context.Context) (*Browser, error)
First returns the first Browser entity in the query. Returns *NotFoundError when no browser was found.
func (*BrowserQuery) FirstID ¶
func (bq *BrowserQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Browser id in the query. Returns *NotFoundError when no id was found.
func (*BrowserQuery) FirstX ¶
func (bq *BrowserQuery) FirstX(ctx context.Context) *Browser
FirstX is like First, but panics if an error occurs.
func (*BrowserQuery) FirstXID ¶
func (bq *BrowserQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*BrowserQuery) GroupBy ¶
func (bq *BrowserQuery) GroupBy(field string, fields ...string) *BrowserGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Browser.Query(). GroupBy(browser.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*BrowserQuery) IDs ¶
func (bq *BrowserQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Browser ids.
func (*BrowserQuery) IDsX ¶
func (bq *BrowserQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*BrowserQuery) Limit ¶
func (bq *BrowserQuery) Limit(limit int) *BrowserQuery
Limit adds a limit step to the query.
func (*BrowserQuery) Offset ¶
func (bq *BrowserQuery) Offset(offset int) *BrowserQuery
Offset adds an offset step to the query.
func (*BrowserQuery) Only ¶
func (bq *BrowserQuery) Only(ctx context.Context) (*Browser, error)
Only returns the only Browser entity in the query, returns an error if not exactly one entity was returned.
func (*BrowserQuery) OnlyID ¶
func (bq *BrowserQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Browser id in the query, returns an error if not exactly one id was returned.
func (*BrowserQuery) OnlyIDX ¶
func (bq *BrowserQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BrowserQuery) OnlyX ¶
func (bq *BrowserQuery) OnlyX(ctx context.Context) *Browser
OnlyX is like Only, but panics if an error occurs.
func (*BrowserQuery) Order ¶
func (bq *BrowserQuery) Order(o ...OrderFunc) *BrowserQuery
Order adds an order step to the query.
func (*BrowserQuery) QueryEvent ¶
func (bq *BrowserQuery) QueryEvent() *EventQuery
QueryEvent chains the current query on the event edge.
func (*BrowserQuery) Select ¶
func (bq *BrowserQuery) Select(field string, fields ...string) *BrowserSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Browser.Query(). Select(browser.FieldName). Scan(ctx, &v)
func (*BrowserQuery) Where ¶
func (bq *BrowserQuery) Where(ps ...predicate.Browser) *BrowserQuery
Where adds a new predicate for the builder.
func (*BrowserQuery) WithEvent ¶
func (bq *BrowserQuery) WithEvent(opts ...func(*EventQuery)) *BrowserQuery
WithEvent tells the query-builder to eager-loads the nodes that are connected to
the "event" edge. The optional arguments used to configure the query builder of the edge.
type BrowserSelect ¶
type BrowserSelect struct {
// contains filtered or unexported fields
}
BrowserSelect is the builder for select fields of Browser entities.
func (*BrowserSelect) Bool ¶
func (bs *BrowserSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*BrowserSelect) BoolX ¶
func (bs *BrowserSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*BrowserSelect) Bools ¶
func (bs *BrowserSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*BrowserSelect) BoolsX ¶
func (bs *BrowserSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*BrowserSelect) Float64 ¶
func (bs *BrowserSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*BrowserSelect) Float64X ¶
func (bs *BrowserSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*BrowserSelect) Float64s ¶
func (bs *BrowserSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*BrowserSelect) Float64sX ¶
func (bs *BrowserSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*BrowserSelect) Int ¶
func (bs *BrowserSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*BrowserSelect) IntX ¶
func (bs *BrowserSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*BrowserSelect) Ints ¶
func (bs *BrowserSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*BrowserSelect) IntsX ¶
func (bs *BrowserSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*BrowserSelect) Scan ¶
func (bs *BrowserSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*BrowserSelect) ScanX ¶
func (bs *BrowserSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*BrowserSelect) String ¶
func (bs *BrowserSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*BrowserSelect) StringX ¶
func (bs *BrowserSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type BrowserUpdate ¶
type BrowserUpdate struct {
// contains filtered or unexported fields
}
BrowserUpdate is the builder for updating Browser entities.
func (*BrowserUpdate) ClearEvent ¶
func (bu *BrowserUpdate) ClearEvent() *BrowserUpdate
ClearEvent clears the event edge to Event.
func (*BrowserUpdate) ClearUseragent ¶
func (bu *BrowserUpdate) ClearUseragent() *BrowserUpdate
ClearUseragent clears the value of useragent.
func (*BrowserUpdate) Exec ¶
func (bu *BrowserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BrowserUpdate) ExecX ¶
func (bu *BrowserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BrowserUpdate) Mutation ¶
func (bu *BrowserUpdate) Mutation() *BrowserMutation
Mutation returns the BrowserMutation object of the builder.
func (*BrowserUpdate) Save ¶
func (bu *BrowserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*BrowserUpdate) SaveX ¶
func (bu *BrowserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BrowserUpdate) SetEvent ¶
func (bu *BrowserUpdate) SetEvent(e *Event) *BrowserUpdate
SetEvent sets the event edge to Event.
func (*BrowserUpdate) SetEventID ¶
func (bu *BrowserUpdate) SetEventID(id uuid.UUID) *BrowserUpdate
SetEventID sets the event edge to Event by id.
func (*BrowserUpdate) SetName ¶
func (bu *BrowserUpdate) SetName(s string) *BrowserUpdate
SetName sets the name field.
func (*BrowserUpdate) SetNillableEventID ¶
func (bu *BrowserUpdate) SetNillableEventID(id *uuid.UUID) *BrowserUpdate
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*BrowserUpdate) SetNillableUseragent ¶
func (bu *BrowserUpdate) SetNillableUseragent(s *string) *BrowserUpdate
SetNillableUseragent sets the useragent field if the given value is not nil.
func (*BrowserUpdate) SetUseragent ¶
func (bu *BrowserUpdate) SetUseragent(s string) *BrowserUpdate
SetUseragent sets the useragent field.
func (*BrowserUpdate) SetVersion ¶
func (bu *BrowserUpdate) SetVersion(s string) *BrowserUpdate
SetVersion sets the version field.
func (*BrowserUpdate) Where ¶
func (bu *BrowserUpdate) Where(ps ...predicate.Browser) *BrowserUpdate
Where adds a new predicate for the builder.
type BrowserUpdateOne ¶
type BrowserUpdateOne struct {
// contains filtered or unexported fields
}
BrowserUpdateOne is the builder for updating a single Browser entity.
func (*BrowserUpdateOne) ClearEvent ¶
func (buo *BrowserUpdateOne) ClearEvent() *BrowserUpdateOne
ClearEvent clears the event edge to Event.
func (*BrowserUpdateOne) ClearUseragent ¶
func (buo *BrowserUpdateOne) ClearUseragent() *BrowserUpdateOne
ClearUseragent clears the value of useragent.
func (*BrowserUpdateOne) Exec ¶
func (buo *BrowserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BrowserUpdateOne) ExecX ¶
func (buo *BrowserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BrowserUpdateOne) Mutation ¶
func (buo *BrowserUpdateOne) Mutation() *BrowserMutation
Mutation returns the BrowserMutation object of the builder.
func (*BrowserUpdateOne) Save ¶
func (buo *BrowserUpdateOne) Save(ctx context.Context) (*Browser, error)
Save executes the query and returns the updated entity.
func (*BrowserUpdateOne) SaveX ¶
func (buo *BrowserUpdateOne) SaveX(ctx context.Context) *Browser
SaveX is like Save, but panics if an error occurs.
func (*BrowserUpdateOne) SetEvent ¶
func (buo *BrowserUpdateOne) SetEvent(e *Event) *BrowserUpdateOne
SetEvent sets the event edge to Event.
func (*BrowserUpdateOne) SetEventID ¶
func (buo *BrowserUpdateOne) SetEventID(id uuid.UUID) *BrowserUpdateOne
SetEventID sets the event edge to Event by id.
func (*BrowserUpdateOne) SetName ¶
func (buo *BrowserUpdateOne) SetName(s string) *BrowserUpdateOne
SetName sets the name field.
func (*BrowserUpdateOne) SetNillableEventID ¶
func (buo *BrowserUpdateOne) SetNillableEventID(id *uuid.UUID) *BrowserUpdateOne
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*BrowserUpdateOne) SetNillableUseragent ¶
func (buo *BrowserUpdateOne) SetNillableUseragent(s *string) *BrowserUpdateOne
SetNillableUseragent sets the useragent field if the given value is not nil.
func (*BrowserUpdateOne) SetUseragent ¶
func (buo *BrowserUpdateOne) SetUseragent(s string) *BrowserUpdateOne
SetUseragent sets the useragent field.
func (*BrowserUpdateOne) SetVersion ¶
func (buo *BrowserUpdateOne) SetVersion(s string) *BrowserUpdateOne
SetVersion sets the version field.
type Campaign ¶
type Campaign struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Source holds the value of the "source" field. Source string `json:"source,omitempty"` // Medium holds the value of the "medium" field. Medium string `json:"medium,omitempty"` // Term holds the value of the "term" field. Term string `json:"term,omitempty"` // Content holds the value of the "content" field. Content string `json:"content,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CampaignQuery when eager-loading is set. Edges CampaignEdges `json:"edges"` // contains filtered or unexported fields }
Campaign is the model entity for the Campaign schema.
func (*Campaign) QueryEvent ¶
func (c *Campaign) QueryEvent() *EventQuery
QueryEvent queries the event edge of the Campaign.
func (*Campaign) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Campaign) Update ¶
func (c *Campaign) Update() *CampaignUpdateOne
Update returns a builder for updating this Campaign. Note that, you need to call Campaign.Unwrap() before calling this method, if this Campaign was returned from a transaction, and the transaction was committed or rolled back.
type CampaignClient ¶
type CampaignClient struct {
// contains filtered or unexported fields
}
CampaignClient is a client for the Campaign schema.
func NewCampaignClient ¶
func NewCampaignClient(c config) *CampaignClient
NewCampaignClient returns a client for the Campaign from the given config.
func (*CampaignClient) Create ¶
func (c *CampaignClient) Create() *CampaignCreate
Create returns a create builder for Campaign.
func (*CampaignClient) CreateBulk ¶
func (c *CampaignClient) CreateBulk(builders ...*CampaignCreate) *CampaignCreateBulk
BulkCreate returns a builder for creating a bulk of Campaign entities.
func (*CampaignClient) Delete ¶
func (c *CampaignClient) Delete() *CampaignDelete
Delete returns a delete builder for Campaign.
func (*CampaignClient) DeleteOne ¶
func (c *CampaignClient) DeleteOne(ca *Campaign) *CampaignDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*CampaignClient) DeleteOneID ¶
func (c *CampaignClient) DeleteOneID(id int) *CampaignDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*CampaignClient) GetX ¶
func (c *CampaignClient) GetX(ctx context.Context, id int) *Campaign
GetX is like Get, but panics if an error occurs.
func (*CampaignClient) Hooks ¶
func (c *CampaignClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CampaignClient) Query ¶
func (c *CampaignClient) Query() *CampaignQuery
Query returns a query builder for Campaign.
func (*CampaignClient) QueryEvent ¶
func (c *CampaignClient) QueryEvent(ca *Campaign) *EventQuery
QueryEvent queries the event edge of a Campaign.
func (*CampaignClient) Update ¶
func (c *CampaignClient) Update() *CampaignUpdate
Update returns an update builder for Campaign.
func (*CampaignClient) UpdateOne ¶
func (c *CampaignClient) UpdateOne(ca *Campaign) *CampaignUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CampaignClient) UpdateOneID ¶
func (c *CampaignClient) UpdateOneID(id int) *CampaignUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CampaignClient) Use ¶
func (c *CampaignClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `campaign.Hooks(f(g(h())))`.
type CampaignCreate ¶
type CampaignCreate struct {
// contains filtered or unexported fields
}
CampaignCreate is the builder for creating a Campaign entity.
func (*CampaignCreate) AddEvent ¶
func (cc *CampaignCreate) AddEvent(e ...*Event) *CampaignCreate
AddEvent adds the event edges to Event.
func (*CampaignCreate) AddEventIDs ¶
func (cc *CampaignCreate) AddEventIDs(ids ...uuid.UUID) *CampaignCreate
AddEventIDs adds the event edge to Event by ids.
func (*CampaignCreate) Mutation ¶
func (cc *CampaignCreate) Mutation() *CampaignMutation
Mutation returns the CampaignMutation object of the builder.
func (*CampaignCreate) Save ¶
func (cc *CampaignCreate) Save(ctx context.Context) (*Campaign, error)
Save creates the Campaign in the database.
func (*CampaignCreate) SaveX ¶
func (cc *CampaignCreate) SaveX(ctx context.Context) *Campaign
SaveX calls Save and panics if Save returns an error.
func (*CampaignCreate) SetContent ¶
func (cc *CampaignCreate) SetContent(s string) *CampaignCreate
SetContent sets the content field.
func (*CampaignCreate) SetMedium ¶
func (cc *CampaignCreate) SetMedium(s string) *CampaignCreate
SetMedium sets the medium field.
func (*CampaignCreate) SetName ¶
func (cc *CampaignCreate) SetName(s string) *CampaignCreate
SetName sets the name field.
func (*CampaignCreate) SetNillableContent ¶
func (cc *CampaignCreate) SetNillableContent(s *string) *CampaignCreate
SetNillableContent sets the content field if the given value is not nil.
func (*CampaignCreate) SetNillableMedium ¶
func (cc *CampaignCreate) SetNillableMedium(s *string) *CampaignCreate
SetNillableMedium sets the medium field if the given value is not nil.
func (*CampaignCreate) SetNillableSource ¶
func (cc *CampaignCreate) SetNillableSource(s *string) *CampaignCreate
SetNillableSource sets the source field if the given value is not nil.
func (*CampaignCreate) SetNillableTerm ¶
func (cc *CampaignCreate) SetNillableTerm(s *string) *CampaignCreate
SetNillableTerm sets the term field if the given value is not nil.
func (*CampaignCreate) SetSource ¶
func (cc *CampaignCreate) SetSource(s string) *CampaignCreate
SetSource sets the source field.
func (*CampaignCreate) SetTerm ¶
func (cc *CampaignCreate) SetTerm(s string) *CampaignCreate
SetTerm sets the term field.
type CampaignCreateBulk ¶
type CampaignCreateBulk struct {
// contains filtered or unexported fields
}
CampaignCreateBulk is the builder for creating a bulk of Campaign entities.
type CampaignDelete ¶
type CampaignDelete struct {
// contains filtered or unexported fields
}
CampaignDelete is the builder for deleting a Campaign entity.
func (*CampaignDelete) Exec ¶
func (cd *CampaignDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CampaignDelete) ExecX ¶
func (cd *CampaignDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CampaignDelete) Where ¶
func (cd *CampaignDelete) Where(ps ...predicate.Campaign) *CampaignDelete
Where adds a new predicate to the delete builder.
type CampaignDeleteOne ¶
type CampaignDeleteOne struct {
// contains filtered or unexported fields
}
CampaignDeleteOne is the builder for deleting a single Campaign entity.
func (*CampaignDeleteOne) Exec ¶
func (cdo *CampaignDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CampaignDeleteOne) ExecX ¶
func (cdo *CampaignDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type CampaignEdges ¶
type CampaignEdges struct { // Event holds the value of the event edge. Event []*Event // contains filtered or unexported fields }
CampaignEdges holds the relations/edges for other nodes in the graph.
func (CampaignEdges) EventOrErr ¶
func (e CampaignEdges) EventOrErr() ([]*Event, error)
EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading.
type CampaignGroupBy ¶
type CampaignGroupBy struct {
// contains filtered or unexported fields
}
CampaignGroupBy is the builder for group-by Campaign entities.
func (*CampaignGroupBy) Aggregate ¶
func (cgb *CampaignGroupBy) Aggregate(fns ...AggregateFunc) *CampaignGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CampaignGroupBy) Bool ¶
func (cgb *CampaignGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) BoolX ¶
func (cgb *CampaignGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*CampaignGroupBy) Bools ¶
func (cgb *CampaignGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) BoolsX ¶
func (cgb *CampaignGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*CampaignGroupBy) Float64 ¶
func (cgb *CampaignGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) Float64X ¶
func (cgb *CampaignGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*CampaignGroupBy) Float64s ¶
func (cgb *CampaignGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) Float64sX ¶
func (cgb *CampaignGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*CampaignGroupBy) Int ¶
func (cgb *CampaignGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) IntX ¶
func (cgb *CampaignGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*CampaignGroupBy) Ints ¶
func (cgb *CampaignGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) IntsX ¶
func (cgb *CampaignGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*CampaignGroupBy) Scan ¶
func (cgb *CampaignGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*CampaignGroupBy) ScanX ¶
func (cgb *CampaignGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*CampaignGroupBy) String ¶
func (cgb *CampaignGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*CampaignGroupBy) StringX ¶
func (cgb *CampaignGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type CampaignMutation ¶
type CampaignMutation struct {
// contains filtered or unexported fields
}
CampaignMutation represents an operation that mutate the Campaigns nodes in the graph.
func (*CampaignMutation) AddEventIDs ¶
func (m *CampaignMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the event edge to Event by ids.
func (*CampaignMutation) AddField ¶
func (m *CampaignMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*CampaignMutation) AddedEdges ¶
func (m *CampaignMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CampaignMutation) AddedField ¶
func (m *CampaignMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*CampaignMutation) AddedFields ¶
func (m *CampaignMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*CampaignMutation) AddedIDs ¶
func (m *CampaignMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*CampaignMutation) ClearContent ¶
func (m *CampaignMutation) ClearContent()
ClearContent clears the value of content.
func (*CampaignMutation) ClearEdge ¶
func (m *CampaignMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*CampaignMutation) ClearField ¶
func (m *CampaignMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*CampaignMutation) ClearMedium ¶
func (m *CampaignMutation) ClearMedium()
ClearMedium clears the value of medium.
func (*CampaignMutation) ClearSource ¶
func (m *CampaignMutation) ClearSource()
ClearSource clears the value of source.
func (*CampaignMutation) ClearTerm ¶
func (m *CampaignMutation) ClearTerm()
ClearTerm clears the value of term.
func (*CampaignMutation) ClearedEdges ¶
func (m *CampaignMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CampaignMutation) ClearedFields ¶
func (m *CampaignMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CampaignMutation) Client ¶
func (m CampaignMutation) 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 (*CampaignMutation) Content ¶
func (m *CampaignMutation) Content() (r string, exists bool)
Content returns the content value in the mutation.
func (*CampaignMutation) ContentCleared ¶
func (m *CampaignMutation) ContentCleared() bool
ContentCleared returns if the field content was cleared in this mutation.
func (*CampaignMutation) EdgeCleared ¶
func (m *CampaignMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*CampaignMutation) EventIDs ¶
func (m *CampaignMutation) EventIDs() (ids []uuid.UUID)
EventIDs returns the event ids in the mutation.
func (*CampaignMutation) Field ¶
func (m *CampaignMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*CampaignMutation) FieldCleared ¶
func (m *CampaignMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*CampaignMutation) Fields ¶
func (m *CampaignMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*CampaignMutation) ID ¶
func (m *CampaignMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*CampaignMutation) Medium ¶
func (m *CampaignMutation) Medium() (r string, exists bool)
Medium returns the medium value in the mutation.
func (*CampaignMutation) MediumCleared ¶
func (m *CampaignMutation) MediumCleared() bool
MediumCleared returns if the field medium was cleared in this mutation.
func (*CampaignMutation) Name ¶
func (m *CampaignMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*CampaignMutation) OldContent ¶
func (m *CampaignMutation) OldContent(ctx context.Context) (v string, err error)
OldContent returns the old content value of the Campaign. If the Campaign 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 database query fails.
func (*CampaignMutation) 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 was failed.
func (*CampaignMutation) OldMedium ¶
func (m *CampaignMutation) OldMedium(ctx context.Context) (v string, err error)
OldMedium returns the old medium value of the Campaign. If the Campaign 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 database query fails.
func (*CampaignMutation) OldName ¶
func (m *CampaignMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Campaign. If the Campaign 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 database query fails.
func (*CampaignMutation) OldSource ¶
func (m *CampaignMutation) OldSource(ctx context.Context) (v string, err error)
OldSource returns the old source value of the Campaign. If the Campaign 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 database query fails.
func (*CampaignMutation) OldTerm ¶
func (m *CampaignMutation) OldTerm(ctx context.Context) (v string, err error)
OldTerm returns the old term value of the Campaign. If the Campaign 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 database query fails.
func (*CampaignMutation) RemoveEventIDs ¶
func (m *CampaignMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the event edge to Event by ids.
func (*CampaignMutation) RemovedEdges ¶
func (m *CampaignMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CampaignMutation) RemovedEventIDs ¶
func (m *CampaignMutation) RemovedEventIDs() (ids []uuid.UUID)
RemovedEvent returns the removed ids of event.
func (*CampaignMutation) RemovedIDs ¶
func (m *CampaignMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*CampaignMutation) ResetContent ¶
func (m *CampaignMutation) ResetContent()
ResetContent reset all changes of the "content" field.
func (*CampaignMutation) ResetEdge ¶
func (m *CampaignMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*CampaignMutation) ResetEvent ¶
func (m *CampaignMutation) ResetEvent()
ResetEvent reset all changes of the "event" edge.
func (*CampaignMutation) ResetField ¶
func (m *CampaignMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*CampaignMutation) ResetMedium ¶
func (m *CampaignMutation) ResetMedium()
ResetMedium reset all changes of the "medium" field.
func (*CampaignMutation) ResetName ¶
func (m *CampaignMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*CampaignMutation) ResetSource ¶
func (m *CampaignMutation) ResetSource()
ResetSource reset all changes of the "source" field.
func (*CampaignMutation) ResetTerm ¶
func (m *CampaignMutation) ResetTerm()
ResetTerm reset all changes of the "term" field.
func (*CampaignMutation) SetContent ¶
func (m *CampaignMutation) SetContent(s string)
SetContent sets the content field.
func (*CampaignMutation) SetField ¶
func (m *CampaignMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*CampaignMutation) SetMedium ¶
func (m *CampaignMutation) SetMedium(s string)
SetMedium sets the medium field.
func (*CampaignMutation) SetName ¶
func (m *CampaignMutation) SetName(s string)
SetName sets the name field.
func (*CampaignMutation) SetSource ¶
func (m *CampaignMutation) SetSource(s string)
SetSource sets the source field.
func (*CampaignMutation) SetTerm ¶
func (m *CampaignMutation) SetTerm(s string)
SetTerm sets the term field.
func (*CampaignMutation) Source ¶
func (m *CampaignMutation) Source() (r string, exists bool)
Source returns the source value in the mutation.
func (*CampaignMutation) SourceCleared ¶
func (m *CampaignMutation) SourceCleared() bool
SourceCleared returns if the field source was cleared in this mutation.
func (*CampaignMutation) Term ¶
func (m *CampaignMutation) Term() (r string, exists bool)
Term returns the term value in the mutation.
func (*CampaignMutation) TermCleared ¶
func (m *CampaignMutation) TermCleared() bool
TermCleared returns if the field term was cleared in this mutation.
func (CampaignMutation) Tx ¶
func (m CampaignMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CampaignMutation) Type ¶
func (m *CampaignMutation) Type() string
Type returns the node type of this mutation (Campaign).
type CampaignQuery ¶
type CampaignQuery struct {
// contains filtered or unexported fields
}
CampaignQuery is the builder for querying Campaign entities.
func (*CampaignQuery) All ¶
func (cq *CampaignQuery) All(ctx context.Context) ([]*Campaign, error)
All executes the query and returns a list of Campaigns.
func (*CampaignQuery) AllX ¶
func (cq *CampaignQuery) AllX(ctx context.Context) []*Campaign
AllX is like All, but panics if an error occurs.
func (*CampaignQuery) Clone ¶
func (cq *CampaignQuery) Clone() *CampaignQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CampaignQuery) Count ¶
func (cq *CampaignQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CampaignQuery) CountX ¶
func (cq *CampaignQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CampaignQuery) Exist ¶
func (cq *CampaignQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CampaignQuery) ExistX ¶
func (cq *CampaignQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CampaignQuery) First ¶
func (cq *CampaignQuery) First(ctx context.Context) (*Campaign, error)
First returns the first Campaign entity in the query. Returns *NotFoundError when no campaign was found.
func (*CampaignQuery) FirstID ¶
func (cq *CampaignQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Campaign id in the query. Returns *NotFoundError when no id was found.
func (*CampaignQuery) FirstX ¶
func (cq *CampaignQuery) FirstX(ctx context.Context) *Campaign
FirstX is like First, but panics if an error occurs.
func (*CampaignQuery) FirstXID ¶
func (cq *CampaignQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*CampaignQuery) GroupBy ¶
func (cq *CampaignQuery) GroupBy(field string, fields ...string) *CampaignGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Campaign.Query(). GroupBy(campaign.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CampaignQuery) IDs ¶
func (cq *CampaignQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Campaign ids.
func (*CampaignQuery) IDsX ¶
func (cq *CampaignQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CampaignQuery) Limit ¶
func (cq *CampaignQuery) Limit(limit int) *CampaignQuery
Limit adds a limit step to the query.
func (*CampaignQuery) Offset ¶
func (cq *CampaignQuery) Offset(offset int) *CampaignQuery
Offset adds an offset step to the query.
func (*CampaignQuery) Only ¶
func (cq *CampaignQuery) Only(ctx context.Context) (*Campaign, error)
Only returns the only Campaign entity in the query, returns an error if not exactly one entity was returned.
func (*CampaignQuery) OnlyID ¶
func (cq *CampaignQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Campaign id in the query, returns an error if not exactly one id was returned.
func (*CampaignQuery) OnlyIDX ¶
func (cq *CampaignQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CampaignQuery) OnlyX ¶
func (cq *CampaignQuery) OnlyX(ctx context.Context) *Campaign
OnlyX is like Only, but panics if an error occurs.
func (*CampaignQuery) Order ¶
func (cq *CampaignQuery) Order(o ...OrderFunc) *CampaignQuery
Order adds an order step to the query.
func (*CampaignQuery) QueryEvent ¶
func (cq *CampaignQuery) QueryEvent() *EventQuery
QueryEvent chains the current query on the event edge.
func (*CampaignQuery) Select ¶
func (cq *CampaignQuery) Select(field string, fields ...string) *CampaignSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Campaign.Query(). Select(campaign.FieldName). Scan(ctx, &v)
func (*CampaignQuery) Where ¶
func (cq *CampaignQuery) Where(ps ...predicate.Campaign) *CampaignQuery
Where adds a new predicate for the builder.
func (*CampaignQuery) WithEvent ¶
func (cq *CampaignQuery) WithEvent(opts ...func(*EventQuery)) *CampaignQuery
WithEvent tells the query-builder to eager-loads the nodes that are connected to
the "event" edge. The optional arguments used to configure the query builder of the edge.
type CampaignSelect ¶
type CampaignSelect struct {
// contains filtered or unexported fields
}
CampaignSelect is the builder for select fields of Campaign entities.
func (*CampaignSelect) Bool ¶
func (cs *CampaignSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*CampaignSelect) BoolX ¶
func (cs *CampaignSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*CampaignSelect) Bools ¶
func (cs *CampaignSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*CampaignSelect) BoolsX ¶
func (cs *CampaignSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*CampaignSelect) Float64 ¶
func (cs *CampaignSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*CampaignSelect) Float64X ¶
func (cs *CampaignSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*CampaignSelect) Float64s ¶
func (cs *CampaignSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*CampaignSelect) Float64sX ¶
func (cs *CampaignSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*CampaignSelect) Int ¶
func (cs *CampaignSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*CampaignSelect) IntX ¶
func (cs *CampaignSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*CampaignSelect) Ints ¶
func (cs *CampaignSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*CampaignSelect) IntsX ¶
func (cs *CampaignSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*CampaignSelect) Scan ¶
func (cs *CampaignSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*CampaignSelect) ScanX ¶
func (cs *CampaignSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*CampaignSelect) String ¶
func (cs *CampaignSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*CampaignSelect) StringX ¶
func (cs *CampaignSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type CampaignUpdate ¶
type CampaignUpdate struct {
// contains filtered or unexported fields
}
CampaignUpdate is the builder for updating Campaign entities.
func (*CampaignUpdate) AddEvent ¶
func (cu *CampaignUpdate) AddEvent(e ...*Event) *CampaignUpdate
AddEvent adds the event edges to Event.
func (*CampaignUpdate) AddEventIDs ¶
func (cu *CampaignUpdate) AddEventIDs(ids ...uuid.UUID) *CampaignUpdate
AddEventIDs adds the event edge to Event by ids.
func (*CampaignUpdate) ClearContent ¶
func (cu *CampaignUpdate) ClearContent() *CampaignUpdate
ClearContent clears the value of content.
func (*CampaignUpdate) ClearMedium ¶
func (cu *CampaignUpdate) ClearMedium() *CampaignUpdate
ClearMedium clears the value of medium.
func (*CampaignUpdate) ClearSource ¶
func (cu *CampaignUpdate) ClearSource() *CampaignUpdate
ClearSource clears the value of source.
func (*CampaignUpdate) ClearTerm ¶
func (cu *CampaignUpdate) ClearTerm() *CampaignUpdate
ClearTerm clears the value of term.
func (*CampaignUpdate) Exec ¶
func (cu *CampaignUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CampaignUpdate) ExecX ¶
func (cu *CampaignUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CampaignUpdate) Mutation ¶
func (cu *CampaignUpdate) Mutation() *CampaignMutation
Mutation returns the CampaignMutation object of the builder.
func (*CampaignUpdate) RemoveEvent ¶
func (cu *CampaignUpdate) RemoveEvent(e ...*Event) *CampaignUpdate
RemoveEvent removes event edges to Event.
func (*CampaignUpdate) RemoveEventIDs ¶
func (cu *CampaignUpdate) RemoveEventIDs(ids ...uuid.UUID) *CampaignUpdate
RemoveEventIDs removes the event edge to Event by ids.
func (*CampaignUpdate) Save ¶
func (cu *CampaignUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*CampaignUpdate) SaveX ¶
func (cu *CampaignUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CampaignUpdate) SetContent ¶
func (cu *CampaignUpdate) SetContent(s string) *CampaignUpdate
SetContent sets the content field.
func (*CampaignUpdate) SetMedium ¶
func (cu *CampaignUpdate) SetMedium(s string) *CampaignUpdate
SetMedium sets the medium field.
func (*CampaignUpdate) SetName ¶
func (cu *CampaignUpdate) SetName(s string) *CampaignUpdate
SetName sets the name field.
func (*CampaignUpdate) SetNillableContent ¶
func (cu *CampaignUpdate) SetNillableContent(s *string) *CampaignUpdate
SetNillableContent sets the content field if the given value is not nil.
func (*CampaignUpdate) SetNillableMedium ¶
func (cu *CampaignUpdate) SetNillableMedium(s *string) *CampaignUpdate
SetNillableMedium sets the medium field if the given value is not nil.
func (*CampaignUpdate) SetNillableSource ¶
func (cu *CampaignUpdate) SetNillableSource(s *string) *CampaignUpdate
SetNillableSource sets the source field if the given value is not nil.
func (*CampaignUpdate) SetNillableTerm ¶
func (cu *CampaignUpdate) SetNillableTerm(s *string) *CampaignUpdate
SetNillableTerm sets the term field if the given value is not nil.
func (*CampaignUpdate) SetSource ¶
func (cu *CampaignUpdate) SetSource(s string) *CampaignUpdate
SetSource sets the source field.
func (*CampaignUpdate) SetTerm ¶
func (cu *CampaignUpdate) SetTerm(s string) *CampaignUpdate
SetTerm sets the term field.
func (*CampaignUpdate) Where ¶
func (cu *CampaignUpdate) Where(ps ...predicate.Campaign) *CampaignUpdate
Where adds a new predicate for the builder.
type CampaignUpdateOne ¶
type CampaignUpdateOne struct {
// contains filtered or unexported fields
}
CampaignUpdateOne is the builder for updating a single Campaign entity.
func (*CampaignUpdateOne) AddEvent ¶
func (cuo *CampaignUpdateOne) AddEvent(e ...*Event) *CampaignUpdateOne
AddEvent adds the event edges to Event.
func (*CampaignUpdateOne) AddEventIDs ¶
func (cuo *CampaignUpdateOne) AddEventIDs(ids ...uuid.UUID) *CampaignUpdateOne
AddEventIDs adds the event edge to Event by ids.
func (*CampaignUpdateOne) ClearContent ¶
func (cuo *CampaignUpdateOne) ClearContent() *CampaignUpdateOne
ClearContent clears the value of content.
func (*CampaignUpdateOne) ClearMedium ¶
func (cuo *CampaignUpdateOne) ClearMedium() *CampaignUpdateOne
ClearMedium clears the value of medium.
func (*CampaignUpdateOne) ClearSource ¶
func (cuo *CampaignUpdateOne) ClearSource() *CampaignUpdateOne
ClearSource clears the value of source.
func (*CampaignUpdateOne) ClearTerm ¶
func (cuo *CampaignUpdateOne) ClearTerm() *CampaignUpdateOne
ClearTerm clears the value of term.
func (*CampaignUpdateOne) Exec ¶
func (cuo *CampaignUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CampaignUpdateOne) ExecX ¶
func (cuo *CampaignUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CampaignUpdateOne) Mutation ¶
func (cuo *CampaignUpdateOne) Mutation() *CampaignMutation
Mutation returns the CampaignMutation object of the builder.
func (*CampaignUpdateOne) RemoveEvent ¶
func (cuo *CampaignUpdateOne) RemoveEvent(e ...*Event) *CampaignUpdateOne
RemoveEvent removes event edges to Event.
func (*CampaignUpdateOne) RemoveEventIDs ¶
func (cuo *CampaignUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *CampaignUpdateOne
RemoveEventIDs removes the event edge to Event by ids.
func (*CampaignUpdateOne) Save ¶
func (cuo *CampaignUpdateOne) Save(ctx context.Context) (*Campaign, error)
Save executes the query and returns the updated entity.
func (*CampaignUpdateOne) SaveX ¶
func (cuo *CampaignUpdateOne) SaveX(ctx context.Context) *Campaign
SaveX is like Save, but panics if an error occurs.
func (*CampaignUpdateOne) SetContent ¶
func (cuo *CampaignUpdateOne) SetContent(s string) *CampaignUpdateOne
SetContent sets the content field.
func (*CampaignUpdateOne) SetMedium ¶
func (cuo *CampaignUpdateOne) SetMedium(s string) *CampaignUpdateOne
SetMedium sets the medium field.
func (*CampaignUpdateOne) SetName ¶
func (cuo *CampaignUpdateOne) SetName(s string) *CampaignUpdateOne
SetName sets the name field.
func (*CampaignUpdateOne) SetNillableContent ¶
func (cuo *CampaignUpdateOne) SetNillableContent(s *string) *CampaignUpdateOne
SetNillableContent sets the content field if the given value is not nil.
func (*CampaignUpdateOne) SetNillableMedium ¶
func (cuo *CampaignUpdateOne) SetNillableMedium(s *string) *CampaignUpdateOne
SetNillableMedium sets the medium field if the given value is not nil.
func (*CampaignUpdateOne) SetNillableSource ¶
func (cuo *CampaignUpdateOne) SetNillableSource(s *string) *CampaignUpdateOne
SetNillableSource sets the source field if the given value is not nil.
func (*CampaignUpdateOne) SetNillableTerm ¶
func (cuo *CampaignUpdateOne) SetNillableTerm(s *string) *CampaignUpdateOne
SetNillableTerm sets the term field if the given value is not nil.
func (*CampaignUpdateOne) SetSource ¶
func (cuo *CampaignUpdateOne) SetSource(s string) *CampaignUpdateOne
SetSource sets the source field.
func (*CampaignUpdateOne) SetTerm ¶
func (cuo *CampaignUpdateOne) SetTerm(s string) *CampaignUpdateOne
SetTerm sets the term field.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Action is the client for interacting with the Action builders. Action *ActionClient // Alias is the client for interacting with the Alias builders. Alias *AliasClient // App is the client for interacting with the App builders. App *AppClient // Browser is the client for interacting with the Browser builders. Browser *BrowserClient // Campaign is the client for interacting with the Campaign builders. Campaign *CampaignClient // Connectivity is the client for interacting with the Connectivity builders. Connectivity *ConnectivityClient // Device is the client for interacting with the Device builders. Device *DeviceClient // Event is the client for interacting with the Event builders. Event *EventClient // Extra is the client for interacting with the Extra builders. Extra *ExtraClient // Group is the client for interacting with the Group builders. Group *GroupClient // Library is the client for interacting with the Library builders. Library *LibraryClient // Location is the client for interacting with the Location builders. Location *LocationClient // Network is the client for interacting with the Network builders. Network *NetworkClient // OSContext is the client for interacting with the OSContext builders. OSContext *OSContextClient // Page is the client for interacting with the Page builders. Page *PageClient // Referrer is the client for interacting with the Referrer builders. Referrer *ReferrerClient // Screen is the client for interacting with the Screen builders. Screen *ScreenClient // Session is the client for interacting with the Session builders. Session *SessionClient // Timing is the client for interacting with the Timing builders. Timing *TimingClient // User is the client for interacting with the User builders. User *UserClient // Viewport is the client for interacting with the Viewport builders. Viewport *ViewportClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns the Client stored in 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(). Action. Query(). Count(ctx)
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(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 Connectivities ¶
type Connectivities []*Connectivity
Connectivities is a parsable slice of Connectivity.
type Connectivity ¶
type Connectivity struct { // ID of the ent. ID int `json:"id,omitempty"` // Bluetooth holds the value of the "bluetooth" field. Bluetooth bool `json:"bluetooth,omitempty"` // Cellular holds the value of the "cellular" field. Cellular bool `json:"cellular,omitempty"` // Wifi holds the value of the "wifi" field. Wifi bool `json:"wifi,omitempty"` // Ethernet holds the value of the "ethernet" field. Ethernet bool `json:"ethernet,omitempty"` // Carrier holds the value of the "carrier" field. Carrier bool `json:"carrier,omitempty"` // Isp holds the value of the "isp" field. Isp bool `json:"isp,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ConnectivityQuery when eager-loading is set. Edges ConnectivityEdges `json:"edges"` // contains filtered or unexported fields }
Connectivity is the model entity for the Connectivity schema.
func (*Connectivity) QueryEvent ¶
func (c *Connectivity) QueryEvent() *EventQuery
QueryEvent queries the event edge of the Connectivity.
func (*Connectivity) String ¶
func (c *Connectivity) String() string
String implements the fmt.Stringer.
func (*Connectivity) Unwrap ¶
func (c *Connectivity) Unwrap() *Connectivity
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Connectivity) Update ¶
func (c *Connectivity) Update() *ConnectivityUpdateOne
Update returns a builder for updating this Connectivity. Note that, you need to call Connectivity.Unwrap() before calling this method, if this Connectivity was returned from a transaction, and the transaction was committed or rolled back.
type ConnectivityClient ¶
type ConnectivityClient struct {
// contains filtered or unexported fields
}
ConnectivityClient is a client for the Connectivity schema.
func NewConnectivityClient ¶
func NewConnectivityClient(c config) *ConnectivityClient
NewConnectivityClient returns a client for the Connectivity from the given config.
func (*ConnectivityClient) Create ¶
func (c *ConnectivityClient) Create() *ConnectivityCreate
Create returns a create builder for Connectivity.
func (*ConnectivityClient) CreateBulk ¶
func (c *ConnectivityClient) CreateBulk(builders ...*ConnectivityCreate) *ConnectivityCreateBulk
BulkCreate returns a builder for creating a bulk of Connectivity entities.
func (*ConnectivityClient) Delete ¶
func (c *ConnectivityClient) Delete() *ConnectivityDelete
Delete returns a delete builder for Connectivity.
func (*ConnectivityClient) DeleteOne ¶
func (c *ConnectivityClient) DeleteOne(co *Connectivity) *ConnectivityDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ConnectivityClient) DeleteOneID ¶
func (c *ConnectivityClient) DeleteOneID(id int) *ConnectivityDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ConnectivityClient) Get ¶
func (c *ConnectivityClient) Get(ctx context.Context, id int) (*Connectivity, error)
Get returns a Connectivity entity by its id.
func (*ConnectivityClient) GetX ¶
func (c *ConnectivityClient) GetX(ctx context.Context, id int) *Connectivity
GetX is like Get, but panics if an error occurs.
func (*ConnectivityClient) Hooks ¶
func (c *ConnectivityClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ConnectivityClient) Query ¶
func (c *ConnectivityClient) Query() *ConnectivityQuery
Query returns a query builder for Connectivity.
func (*ConnectivityClient) QueryEvent ¶
func (c *ConnectivityClient) QueryEvent(co *Connectivity) *EventQuery
QueryEvent queries the event edge of a Connectivity.
func (*ConnectivityClient) Update ¶
func (c *ConnectivityClient) Update() *ConnectivityUpdate
Update returns an update builder for Connectivity.
func (*ConnectivityClient) UpdateOne ¶
func (c *ConnectivityClient) UpdateOne(co *Connectivity) *ConnectivityUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ConnectivityClient) UpdateOneID ¶
func (c *ConnectivityClient) UpdateOneID(id int) *ConnectivityUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ConnectivityClient) Use ¶
func (c *ConnectivityClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `connectivity.Hooks(f(g(h())))`.
type ConnectivityCreate ¶
type ConnectivityCreate struct {
// contains filtered or unexported fields
}
ConnectivityCreate is the builder for creating a Connectivity entity.
func (*ConnectivityCreate) Mutation ¶
func (cc *ConnectivityCreate) Mutation() *ConnectivityMutation
Mutation returns the ConnectivityMutation object of the builder.
func (*ConnectivityCreate) Save ¶
func (cc *ConnectivityCreate) Save(ctx context.Context) (*Connectivity, error)
Save creates the Connectivity in the database.
func (*ConnectivityCreate) SaveX ¶
func (cc *ConnectivityCreate) SaveX(ctx context.Context) *Connectivity
SaveX calls Save and panics if Save returns an error.
func (*ConnectivityCreate) SetBluetooth ¶
func (cc *ConnectivityCreate) SetBluetooth(b bool) *ConnectivityCreate
SetBluetooth sets the bluetooth field.
func (*ConnectivityCreate) SetCarrier ¶
func (cc *ConnectivityCreate) SetCarrier(b bool) *ConnectivityCreate
SetCarrier sets the carrier field.
func (*ConnectivityCreate) SetCellular ¶
func (cc *ConnectivityCreate) SetCellular(b bool) *ConnectivityCreate
SetCellular sets the cellular field.
func (*ConnectivityCreate) SetEthernet ¶
func (cc *ConnectivityCreate) SetEthernet(b bool) *ConnectivityCreate
SetEthernet sets the ethernet field.
func (*ConnectivityCreate) SetEvent ¶
func (cc *ConnectivityCreate) SetEvent(e *Event) *ConnectivityCreate
SetEvent sets the event edge to Event.
func (*ConnectivityCreate) SetEventID ¶
func (cc *ConnectivityCreate) SetEventID(id uuid.UUID) *ConnectivityCreate
SetEventID sets the event edge to Event by id.
func (*ConnectivityCreate) SetIsp ¶
func (cc *ConnectivityCreate) SetIsp(b bool) *ConnectivityCreate
SetIsp sets the isp field.
func (*ConnectivityCreate) SetNillableEventID ¶
func (cc *ConnectivityCreate) SetNillableEventID(id *uuid.UUID) *ConnectivityCreate
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*ConnectivityCreate) SetWifi ¶
func (cc *ConnectivityCreate) SetWifi(b bool) *ConnectivityCreate
SetWifi sets the wifi field.
type ConnectivityCreateBulk ¶
type ConnectivityCreateBulk struct {
// contains filtered or unexported fields
}
ConnectivityCreateBulk is the builder for creating a bulk of Connectivity entities.
func (*ConnectivityCreateBulk) Save ¶
func (ccb *ConnectivityCreateBulk) Save(ctx context.Context) ([]*Connectivity, error)
Save creates the Connectivity entities in the database.
func (*ConnectivityCreateBulk) SaveX ¶
func (ccb *ConnectivityCreateBulk) SaveX(ctx context.Context) []*Connectivity
SaveX calls Save and panics if Save returns an error.
type ConnectivityDelete ¶
type ConnectivityDelete struct {
// contains filtered or unexported fields
}
ConnectivityDelete is the builder for deleting a Connectivity entity.
func (*ConnectivityDelete) Exec ¶
func (cd *ConnectivityDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ConnectivityDelete) ExecX ¶
func (cd *ConnectivityDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ConnectivityDelete) Where ¶
func (cd *ConnectivityDelete) Where(ps ...predicate.Connectivity) *ConnectivityDelete
Where adds a new predicate to the delete builder.
type ConnectivityDeleteOne ¶
type ConnectivityDeleteOne struct {
// contains filtered or unexported fields
}
ConnectivityDeleteOne is the builder for deleting a single Connectivity entity.
func (*ConnectivityDeleteOne) Exec ¶
func (cdo *ConnectivityDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ConnectivityDeleteOne) ExecX ¶
func (cdo *ConnectivityDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ConnectivityEdges ¶
type ConnectivityEdges struct { // Event holds the value of the event edge. Event *Event // contains filtered or unexported fields }
ConnectivityEdges holds the relations/edges for other nodes in the graph.
func (ConnectivityEdges) EventOrErr ¶
func (e ConnectivityEdges) EventOrErr() (*Event, error)
EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ConnectivityGroupBy ¶
type ConnectivityGroupBy struct {
// contains filtered or unexported fields
}
ConnectivityGroupBy is the builder for group-by Connectivity entities.
func (*ConnectivityGroupBy) Aggregate ¶
func (cgb *ConnectivityGroupBy) Aggregate(fns ...AggregateFunc) *ConnectivityGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ConnectivityGroupBy) Bool ¶
func (cgb *ConnectivityGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) BoolX ¶
func (cgb *ConnectivityGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ConnectivityGroupBy) Bools ¶
func (cgb *ConnectivityGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) BoolsX ¶
func (cgb *ConnectivityGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ConnectivityGroupBy) Float64 ¶
func (cgb *ConnectivityGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) Float64X ¶
func (cgb *ConnectivityGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ConnectivityGroupBy) Float64s ¶
func (cgb *ConnectivityGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) Float64sX ¶
func (cgb *ConnectivityGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ConnectivityGroupBy) Int ¶
func (cgb *ConnectivityGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) IntX ¶
func (cgb *ConnectivityGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ConnectivityGroupBy) Ints ¶
func (cgb *ConnectivityGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) IntsX ¶
func (cgb *ConnectivityGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ConnectivityGroupBy) Scan ¶
func (cgb *ConnectivityGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ConnectivityGroupBy) ScanX ¶
func (cgb *ConnectivityGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ConnectivityGroupBy) String ¶
func (cgb *ConnectivityGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*ConnectivityGroupBy) StringX ¶
func (cgb *ConnectivityGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ConnectivityMutation ¶
type ConnectivityMutation struct {
// contains filtered or unexported fields
}
ConnectivityMutation represents an operation that mutate the Connectivities nodes in the graph.
func (*ConnectivityMutation) AddField ¶
func (m *ConnectivityMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ConnectivityMutation) AddedEdges ¶
func (m *ConnectivityMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ConnectivityMutation) AddedField ¶
func (m *ConnectivityMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*ConnectivityMutation) AddedFields ¶
func (m *ConnectivityMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*ConnectivityMutation) AddedIDs ¶
func (m *ConnectivityMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*ConnectivityMutation) Bluetooth ¶
func (m *ConnectivityMutation) Bluetooth() (r bool, exists bool)
Bluetooth returns the bluetooth value in the mutation.
func (*ConnectivityMutation) Carrier ¶
func (m *ConnectivityMutation) Carrier() (r bool, exists bool)
Carrier returns the carrier value in the mutation.
func (*ConnectivityMutation) Cellular ¶
func (m *ConnectivityMutation) Cellular() (r bool, exists bool)
Cellular returns the cellular value in the mutation.
func (*ConnectivityMutation) ClearEdge ¶
func (m *ConnectivityMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*ConnectivityMutation) ClearEvent ¶
func (m *ConnectivityMutation) ClearEvent()
ClearEvent clears the event edge to Event.
func (*ConnectivityMutation) ClearField ¶
func (m *ConnectivityMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*ConnectivityMutation) ClearedEdges ¶
func (m *ConnectivityMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ConnectivityMutation) ClearedFields ¶
func (m *ConnectivityMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ConnectivityMutation) Client ¶
func (m ConnectivityMutation) 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 (*ConnectivityMutation) EdgeCleared ¶
func (m *ConnectivityMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*ConnectivityMutation) Ethernet ¶
func (m *ConnectivityMutation) Ethernet() (r bool, exists bool)
Ethernet returns the ethernet value in the mutation.
func (*ConnectivityMutation) EventCleared ¶
func (m *ConnectivityMutation) EventCleared() bool
EventCleared returns if the edge event was cleared.
func (*ConnectivityMutation) EventID ¶
func (m *ConnectivityMutation) EventID() (id uuid.UUID, exists bool)
EventID returns the event id in the mutation.
func (*ConnectivityMutation) EventIDs ¶
func (m *ConnectivityMutation) EventIDs() (ids []uuid.UUID)
EventIDs returns the event ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use EventID instead. It exists only for internal usage by the builders.
func (*ConnectivityMutation) Field ¶
func (m *ConnectivityMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*ConnectivityMutation) FieldCleared ¶
func (m *ConnectivityMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*ConnectivityMutation) Fields ¶
func (m *ConnectivityMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*ConnectivityMutation) ID ¶
func (m *ConnectivityMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*ConnectivityMutation) Isp ¶
func (m *ConnectivityMutation) Isp() (r bool, exists bool)
Isp returns the isp value in the mutation.
func (*ConnectivityMutation) OldBluetooth ¶
func (m *ConnectivityMutation) OldBluetooth(ctx context.Context) (v bool, err error)
OldBluetooth returns the old bluetooth value of the Connectivity. If the Connectivity 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 database query fails.
func (*ConnectivityMutation) OldCarrier ¶
func (m *ConnectivityMutation) OldCarrier(ctx context.Context) (v bool, err error)
OldCarrier returns the old carrier value of the Connectivity. If the Connectivity 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 database query fails.
func (*ConnectivityMutation) OldCellular ¶
func (m *ConnectivityMutation) OldCellular(ctx context.Context) (v bool, err error)
OldCellular returns the old cellular value of the Connectivity. If the Connectivity 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 database query fails.
func (*ConnectivityMutation) OldEthernet ¶
func (m *ConnectivityMutation) OldEthernet(ctx context.Context) (v bool, err error)
OldEthernet returns the old ethernet value of the Connectivity. If the Connectivity 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 database query fails.
func (*ConnectivityMutation) 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 was failed.
func (*ConnectivityMutation) OldIsp ¶
func (m *ConnectivityMutation) OldIsp(ctx context.Context) (v bool, err error)
OldIsp returns the old isp value of the Connectivity. If the Connectivity 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 database query fails.
func (*ConnectivityMutation) OldWifi ¶
func (m *ConnectivityMutation) OldWifi(ctx context.Context) (v bool, err error)
OldWifi returns the old wifi value of the Connectivity. If the Connectivity 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 database query fails.
func (*ConnectivityMutation) Op ¶
func (m *ConnectivityMutation) Op() Op
Op returns the operation name.
func (*ConnectivityMutation) RemovedEdges ¶
func (m *ConnectivityMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ConnectivityMutation) RemovedIDs ¶
func (m *ConnectivityMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*ConnectivityMutation) ResetBluetooth ¶
func (m *ConnectivityMutation) ResetBluetooth()
ResetBluetooth reset all changes of the "bluetooth" field.
func (*ConnectivityMutation) ResetCarrier ¶
func (m *ConnectivityMutation) ResetCarrier()
ResetCarrier reset all changes of the "carrier" field.
func (*ConnectivityMutation) ResetCellular ¶
func (m *ConnectivityMutation) ResetCellular()
ResetCellular reset all changes of the "cellular" field.
func (*ConnectivityMutation) ResetEdge ¶
func (m *ConnectivityMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*ConnectivityMutation) ResetEthernet ¶
func (m *ConnectivityMutation) ResetEthernet()
ResetEthernet reset all changes of the "ethernet" field.
func (*ConnectivityMutation) ResetEvent ¶
func (m *ConnectivityMutation) ResetEvent()
ResetEvent reset all changes of the "event" edge.
func (*ConnectivityMutation) ResetField ¶
func (m *ConnectivityMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*ConnectivityMutation) ResetIsp ¶
func (m *ConnectivityMutation) ResetIsp()
ResetIsp reset all changes of the "isp" field.
func (*ConnectivityMutation) ResetWifi ¶
func (m *ConnectivityMutation) ResetWifi()
ResetWifi reset all changes of the "wifi" field.
func (*ConnectivityMutation) SetBluetooth ¶
func (m *ConnectivityMutation) SetBluetooth(b bool)
SetBluetooth sets the bluetooth field.
func (*ConnectivityMutation) SetCarrier ¶
func (m *ConnectivityMutation) SetCarrier(b bool)
SetCarrier sets the carrier field.
func (*ConnectivityMutation) SetCellular ¶
func (m *ConnectivityMutation) SetCellular(b bool)
SetCellular sets the cellular field.
func (*ConnectivityMutation) SetEthernet ¶
func (m *ConnectivityMutation) SetEthernet(b bool)
SetEthernet sets the ethernet field.
func (*ConnectivityMutation) SetEventID ¶
func (m *ConnectivityMutation) SetEventID(id uuid.UUID)
SetEventID sets the event edge to Event by id.
func (*ConnectivityMutation) SetField ¶
func (m *ConnectivityMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ConnectivityMutation) SetIsp ¶
func (m *ConnectivityMutation) SetIsp(b bool)
SetIsp sets the isp field.
func (*ConnectivityMutation) SetWifi ¶
func (m *ConnectivityMutation) SetWifi(b bool)
SetWifi sets the wifi field.
func (ConnectivityMutation) Tx ¶
func (m ConnectivityMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ConnectivityMutation) Type ¶
func (m *ConnectivityMutation) Type() string
Type returns the node type of this mutation (Connectivity).
func (*ConnectivityMutation) Wifi ¶
func (m *ConnectivityMutation) Wifi() (r bool, exists bool)
Wifi returns the wifi value in the mutation.
type ConnectivityQuery ¶
type ConnectivityQuery struct {
// contains filtered or unexported fields
}
ConnectivityQuery is the builder for querying Connectivity entities.
func (*ConnectivityQuery) All ¶
func (cq *ConnectivityQuery) All(ctx context.Context) ([]*Connectivity, error)
All executes the query and returns a list of Connectivities.
func (*ConnectivityQuery) AllX ¶
func (cq *ConnectivityQuery) AllX(ctx context.Context) []*Connectivity
AllX is like All, but panics if an error occurs.
func (*ConnectivityQuery) Clone ¶
func (cq *ConnectivityQuery) Clone() *ConnectivityQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ConnectivityQuery) Count ¶
func (cq *ConnectivityQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ConnectivityQuery) CountX ¶
func (cq *ConnectivityQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ConnectivityQuery) Exist ¶
func (cq *ConnectivityQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ConnectivityQuery) ExistX ¶
func (cq *ConnectivityQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ConnectivityQuery) First ¶
func (cq *ConnectivityQuery) First(ctx context.Context) (*Connectivity, error)
First returns the first Connectivity entity in the query. Returns *NotFoundError when no connectivity was found.
func (*ConnectivityQuery) FirstID ¶
func (cq *ConnectivityQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Connectivity id in the query. Returns *NotFoundError when no id was found.
func (*ConnectivityQuery) FirstX ¶
func (cq *ConnectivityQuery) FirstX(ctx context.Context) *Connectivity
FirstX is like First, but panics if an error occurs.
func (*ConnectivityQuery) FirstXID ¶
func (cq *ConnectivityQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*ConnectivityQuery) GroupBy ¶
func (cq *ConnectivityQuery) GroupBy(field string, fields ...string) *ConnectivityGroupBy
GroupBy 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 { Bluetooth bool `json:"bluetooth,omitempty"` Count int `json:"count,omitempty"` } client.Connectivity.Query(). GroupBy(connectivity.FieldBluetooth). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ConnectivityQuery) IDs ¶
func (cq *ConnectivityQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Connectivity ids.
func (*ConnectivityQuery) IDsX ¶
func (cq *ConnectivityQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ConnectivityQuery) Limit ¶
func (cq *ConnectivityQuery) Limit(limit int) *ConnectivityQuery
Limit adds a limit step to the query.
func (*ConnectivityQuery) Offset ¶
func (cq *ConnectivityQuery) Offset(offset int) *ConnectivityQuery
Offset adds an offset step to the query.
func (*ConnectivityQuery) Only ¶
func (cq *ConnectivityQuery) Only(ctx context.Context) (*Connectivity, error)
Only returns the only Connectivity entity in the query, returns an error if not exactly one entity was returned.
func (*ConnectivityQuery) OnlyID ¶
func (cq *ConnectivityQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Connectivity id in the query, returns an error if not exactly one id was returned.
func (*ConnectivityQuery) OnlyIDX ¶
func (cq *ConnectivityQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ConnectivityQuery) OnlyX ¶
func (cq *ConnectivityQuery) OnlyX(ctx context.Context) *Connectivity
OnlyX is like Only, but panics if an error occurs.
func (*ConnectivityQuery) Order ¶
func (cq *ConnectivityQuery) Order(o ...OrderFunc) *ConnectivityQuery
Order adds an order step to the query.
func (*ConnectivityQuery) QueryEvent ¶
func (cq *ConnectivityQuery) QueryEvent() *EventQuery
QueryEvent chains the current query on the event edge.
func (*ConnectivityQuery) Select ¶
func (cq *ConnectivityQuery) Select(field string, fields ...string) *ConnectivitySelect
Select one or more fields from the given query.
Example:
var v []struct { Bluetooth bool `json:"bluetooth,omitempty"` } client.Connectivity.Query(). Select(connectivity.FieldBluetooth). Scan(ctx, &v)
func (*ConnectivityQuery) Where ¶
func (cq *ConnectivityQuery) Where(ps ...predicate.Connectivity) *ConnectivityQuery
Where adds a new predicate for the builder.
func (*ConnectivityQuery) WithEvent ¶
func (cq *ConnectivityQuery) WithEvent(opts ...func(*EventQuery)) *ConnectivityQuery
WithEvent tells the query-builder to eager-loads the nodes that are connected to
the "event" edge. The optional arguments used to configure the query builder of the edge.
type ConnectivitySelect ¶
type ConnectivitySelect struct {
// contains filtered or unexported fields
}
ConnectivitySelect is the builder for select fields of Connectivity entities.
func (*ConnectivitySelect) Bool ¶
func (cs *ConnectivitySelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) BoolX ¶
func (cs *ConnectivitySelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ConnectivitySelect) Bools ¶
func (cs *ConnectivitySelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) BoolsX ¶
func (cs *ConnectivitySelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ConnectivitySelect) Float64 ¶
func (cs *ConnectivitySelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) Float64X ¶
func (cs *ConnectivitySelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ConnectivitySelect) Float64s ¶
func (cs *ConnectivitySelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) Float64sX ¶
func (cs *ConnectivitySelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ConnectivitySelect) Int ¶
func (cs *ConnectivitySelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) IntX ¶
func (cs *ConnectivitySelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ConnectivitySelect) Ints ¶
func (cs *ConnectivitySelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) IntsX ¶
func (cs *ConnectivitySelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ConnectivitySelect) Scan ¶
func (cs *ConnectivitySelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ConnectivitySelect) ScanX ¶
func (cs *ConnectivitySelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ConnectivitySelect) String ¶
func (cs *ConnectivitySelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*ConnectivitySelect) StringX ¶
func (cs *ConnectivitySelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ConnectivityUpdate ¶
type ConnectivityUpdate struct {
// contains filtered or unexported fields
}
ConnectivityUpdate is the builder for updating Connectivity entities.
func (*ConnectivityUpdate) ClearEvent ¶
func (cu *ConnectivityUpdate) ClearEvent() *ConnectivityUpdate
ClearEvent clears the event edge to Event.
func (*ConnectivityUpdate) Exec ¶
func (cu *ConnectivityUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ConnectivityUpdate) ExecX ¶
func (cu *ConnectivityUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ConnectivityUpdate) Mutation ¶
func (cu *ConnectivityUpdate) Mutation() *ConnectivityMutation
Mutation returns the ConnectivityMutation object of the builder.
func (*ConnectivityUpdate) Save ¶
func (cu *ConnectivityUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ConnectivityUpdate) SaveX ¶
func (cu *ConnectivityUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ConnectivityUpdate) SetBluetooth ¶
func (cu *ConnectivityUpdate) SetBluetooth(b bool) *ConnectivityUpdate
SetBluetooth sets the bluetooth field.
func (*ConnectivityUpdate) SetCarrier ¶
func (cu *ConnectivityUpdate) SetCarrier(b bool) *ConnectivityUpdate
SetCarrier sets the carrier field.
func (*ConnectivityUpdate) SetCellular ¶
func (cu *ConnectivityUpdate) SetCellular(b bool) *ConnectivityUpdate
SetCellular sets the cellular field.
func (*ConnectivityUpdate) SetEthernet ¶
func (cu *ConnectivityUpdate) SetEthernet(b bool) *ConnectivityUpdate
SetEthernet sets the ethernet field.
func (*ConnectivityUpdate) SetEvent ¶
func (cu *ConnectivityUpdate) SetEvent(e *Event) *ConnectivityUpdate
SetEvent sets the event edge to Event.
func (*ConnectivityUpdate) SetEventID ¶
func (cu *ConnectivityUpdate) SetEventID(id uuid.UUID) *ConnectivityUpdate
SetEventID sets the event edge to Event by id.
func (*ConnectivityUpdate) SetIsp ¶
func (cu *ConnectivityUpdate) SetIsp(b bool) *ConnectivityUpdate
SetIsp sets the isp field.
func (*ConnectivityUpdate) SetNillableEventID ¶
func (cu *ConnectivityUpdate) SetNillableEventID(id *uuid.UUID) *ConnectivityUpdate
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*ConnectivityUpdate) SetWifi ¶
func (cu *ConnectivityUpdate) SetWifi(b bool) *ConnectivityUpdate
SetWifi sets the wifi field.
func (*ConnectivityUpdate) Where ¶
func (cu *ConnectivityUpdate) Where(ps ...predicate.Connectivity) *ConnectivityUpdate
Where adds a new predicate for the builder.
type ConnectivityUpdateOne ¶
type ConnectivityUpdateOne struct {
// contains filtered or unexported fields
}
ConnectivityUpdateOne is the builder for updating a single Connectivity entity.
func (*ConnectivityUpdateOne) ClearEvent ¶
func (cuo *ConnectivityUpdateOne) ClearEvent() *ConnectivityUpdateOne
ClearEvent clears the event edge to Event.
func (*ConnectivityUpdateOne) Exec ¶
func (cuo *ConnectivityUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ConnectivityUpdateOne) ExecX ¶
func (cuo *ConnectivityUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ConnectivityUpdateOne) Mutation ¶
func (cuo *ConnectivityUpdateOne) Mutation() *ConnectivityMutation
Mutation returns the ConnectivityMutation object of the builder.
func (*ConnectivityUpdateOne) Save ¶
func (cuo *ConnectivityUpdateOne) Save(ctx context.Context) (*Connectivity, error)
Save executes the query and returns the updated entity.
func (*ConnectivityUpdateOne) SaveX ¶
func (cuo *ConnectivityUpdateOne) SaveX(ctx context.Context) *Connectivity
SaveX is like Save, but panics if an error occurs.
func (*ConnectivityUpdateOne) SetBluetooth ¶
func (cuo *ConnectivityUpdateOne) SetBluetooth(b bool) *ConnectivityUpdateOne
SetBluetooth sets the bluetooth field.
func (*ConnectivityUpdateOne) SetCarrier ¶
func (cuo *ConnectivityUpdateOne) SetCarrier(b bool) *ConnectivityUpdateOne
SetCarrier sets the carrier field.
func (*ConnectivityUpdateOne) SetCellular ¶
func (cuo *ConnectivityUpdateOne) SetCellular(b bool) *ConnectivityUpdateOne
SetCellular sets the cellular field.
func (*ConnectivityUpdateOne) SetEthernet ¶
func (cuo *ConnectivityUpdateOne) SetEthernet(b bool) *ConnectivityUpdateOne
SetEthernet sets the ethernet field.
func (*ConnectivityUpdateOne) SetEvent ¶
func (cuo *ConnectivityUpdateOne) SetEvent(e *Event) *ConnectivityUpdateOne
SetEvent sets the event edge to Event.
func (*ConnectivityUpdateOne) SetEventID ¶
func (cuo *ConnectivityUpdateOne) SetEventID(id uuid.UUID) *ConnectivityUpdateOne
SetEventID sets the event edge to Event by id.
func (*ConnectivityUpdateOne) SetIsp ¶
func (cuo *ConnectivityUpdateOne) SetIsp(b bool) *ConnectivityUpdateOne
SetIsp sets the isp field.
func (*ConnectivityUpdateOne) SetNillableEventID ¶
func (cuo *ConnectivityUpdateOne) SetNillableEventID(id *uuid.UUID) *ConnectivityUpdateOne
SetNillableEventID sets the event edge to Event by id if the given value is not nil.
func (*ConnectivityUpdateOne) SetWifi ¶
func (cuo *ConnectivityUpdateOne) SetWifi(b bool) *ConnectivityUpdateOne
SetWifi sets the wifi field.
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 Device ¶
type Device struct { // ID of the ent. ID string `json:"id,omitempty"` // Manufacturer holds the value of the "manufacturer" field. Manufacturer string `json:"manufacturer,omitempty"` // Model holds the value of the "model" field. Model string `json:"model,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Type holds the value of the "type" field. Type string `json:"type,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // Mobile holds the value of the "mobile" field. Mobile bool `json:"mobile,omitempty"` // Tablet holds the value of the "tablet" field. Tablet bool `json:"tablet,omitempty"` // Desktop holds the value of the "desktop" field. Desktop bool `json:"desktop,omitempty"` // Properties holds the value of the "properties" field. Properties map[string]interface{} `json:"properties,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the DeviceQuery when eager-loading is set. Edges DeviceEdges `json:"edges"` // contains filtered or unexported fields }
Device is the model entity for the Device schema.
func (*Device) QueryEvents ¶
func (d *Device) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Device.
func (*Device) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Device) Update ¶
func (d *Device) Update() *DeviceUpdateOne
Update returns a builder for updating this Device. Note that, you need to call Device.Unwrap() before calling this method, if this Device was returned from a transaction, and the transaction was committed or rolled back.
type DeviceClient ¶
type DeviceClient struct {
// contains filtered or unexported fields
}
DeviceClient is a client for the Device schema.
func NewDeviceClient ¶
func NewDeviceClient(c config) *DeviceClient
NewDeviceClient returns a client for the Device from the given config.
func (*DeviceClient) Create ¶
func (c *DeviceClient) Create() *DeviceCreate
Create returns a create builder for Device.
func (*DeviceClient) CreateBulk ¶
func (c *DeviceClient) CreateBulk(builders ...*DeviceCreate) *DeviceCreateBulk
BulkCreate returns a builder for creating a bulk of Device entities.
func (*DeviceClient) Delete ¶
func (c *DeviceClient) Delete() *DeviceDelete
Delete returns a delete builder for Device.
func (*DeviceClient) DeleteOne ¶
func (c *DeviceClient) DeleteOne(d *Device) *DeviceDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*DeviceClient) DeleteOneID ¶
func (c *DeviceClient) DeleteOneID(id string) *DeviceDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*DeviceClient) GetX ¶
func (c *DeviceClient) GetX(ctx context.Context, id string) *Device
GetX is like Get, but panics if an error occurs.
func (*DeviceClient) Query ¶
func (c *DeviceClient) Query() *DeviceQuery
Query returns a query builder for Device.
func (*DeviceClient) QueryEvents ¶
func (c *DeviceClient) QueryEvents(d *Device) *EventQuery
QueryEvents queries the events edge of a Device.
func (*DeviceClient) Update ¶
func (c *DeviceClient) Update() *DeviceUpdate
Update returns an update builder for Device.
func (*DeviceClient) UpdateOne ¶
func (c *DeviceClient) UpdateOne(d *Device) *DeviceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceClient) UpdateOneID ¶
func (c *DeviceClient) UpdateOneID(id string) *DeviceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceClient) Use ¶
func (c *DeviceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `device.Hooks(f(g(h())))`.
type DeviceCreate ¶
type DeviceCreate struct {
// contains filtered or unexported fields
}
DeviceCreate is the builder for creating a Device entity.
func (*DeviceCreate) AddEventIDs ¶
func (dc *DeviceCreate) AddEventIDs(ids ...uuid.UUID) *DeviceCreate
AddEventIDs adds the events edge to Event by ids.
func (*DeviceCreate) AddEvents ¶
func (dc *DeviceCreate) AddEvents(e ...*Event) *DeviceCreate
AddEvents adds the events edges to Event.
func (*DeviceCreate) Mutation ¶
func (dc *DeviceCreate) Mutation() *DeviceMutation
Mutation returns the DeviceMutation object of the builder.
func (*DeviceCreate) Save ¶
func (dc *DeviceCreate) Save(ctx context.Context) (*Device, error)
Save creates the Device in the database.
func (*DeviceCreate) SaveX ¶
func (dc *DeviceCreate) SaveX(ctx context.Context) *Device
SaveX calls Save and panics if Save returns an error.
func (*DeviceCreate) SetDesktop ¶
func (dc *DeviceCreate) SetDesktop(b bool) *DeviceCreate
SetDesktop sets the desktop field.
func (*DeviceCreate) SetID ¶
func (dc *DeviceCreate) SetID(s string) *DeviceCreate
SetID sets the id field.
func (*DeviceCreate) SetManufacturer ¶
func (dc *DeviceCreate) SetManufacturer(s string) *DeviceCreate
SetManufacturer sets the manufacturer field.
func (*DeviceCreate) SetMobile ¶
func (dc *DeviceCreate) SetMobile(b bool) *DeviceCreate
SetMobile sets the mobile field.
func (*DeviceCreate) SetModel ¶
func (dc *DeviceCreate) SetModel(s string) *DeviceCreate
SetModel sets the model field.
func (*DeviceCreate) SetName ¶
func (dc *DeviceCreate) SetName(s string) *DeviceCreate
SetName sets the name field.
func (*DeviceCreate) SetNillableDesktop ¶
func (dc *DeviceCreate) SetNillableDesktop(b *bool) *DeviceCreate
SetNillableDesktop sets the desktop field if the given value is not nil.
func (*DeviceCreate) SetNillableManufacturer ¶
func (dc *DeviceCreate) SetNillableManufacturer(s *string) *DeviceCreate
SetNillableManufacturer sets the manufacturer field if the given value is not nil.
func (*DeviceCreate) SetNillableMobile ¶
func (dc *DeviceCreate) SetNillableMobile(b *bool) *DeviceCreate
SetNillableMobile sets the mobile field if the given value is not nil.
func (*DeviceCreate) SetNillableModel ¶
func (dc *DeviceCreate) SetNillableModel(s *string) *DeviceCreate
SetNillableModel sets the model field if the given value is not nil.
func (*DeviceCreate) SetNillableName ¶
func (dc *DeviceCreate) SetNillableName(s *string) *DeviceCreate
SetNillableName sets the name field if the given value is not nil.
func (*DeviceCreate) SetNillableTablet ¶
func (dc *DeviceCreate) SetNillableTablet(b *bool) *DeviceCreate
SetNillableTablet sets the tablet field if the given value is not nil.
func (*DeviceCreate) SetNillableType ¶
func (dc *DeviceCreate) SetNillableType(s *string) *DeviceCreate
SetNillableType sets the type field if the given value is not nil.
func (*DeviceCreate) SetNillableVersion ¶
func (dc *DeviceCreate) SetNillableVersion(s *string) *DeviceCreate
SetNillableVersion sets the version field if the given value is not nil.
func (*DeviceCreate) SetProperties ¶
func (dc *DeviceCreate) SetProperties(m map[string]interface{}) *DeviceCreate
SetProperties sets the properties field.
func (*DeviceCreate) SetTablet ¶
func (dc *DeviceCreate) SetTablet(b bool) *DeviceCreate
SetTablet sets the tablet field.
func (*DeviceCreate) SetType ¶
func (dc *DeviceCreate) SetType(s string) *DeviceCreate
SetType sets the type field.
func (*DeviceCreate) SetVersion ¶
func (dc *DeviceCreate) SetVersion(s string) *DeviceCreate
SetVersion sets the version field.
type DeviceCreateBulk ¶
type DeviceCreateBulk struct {
// contains filtered or unexported fields
}
DeviceCreateBulk is the builder for creating a bulk of Device entities.
type DeviceDelete ¶
type DeviceDelete struct {
// contains filtered or unexported fields
}
DeviceDelete is the builder for deleting a Device entity.
func (*DeviceDelete) Exec ¶
func (dd *DeviceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceDelete) ExecX ¶
func (dd *DeviceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDelete) Where ¶
func (dd *DeviceDelete) Where(ps ...predicate.Device) *DeviceDelete
Where adds a new predicate to the delete builder.
type DeviceDeleteOne ¶
type DeviceDeleteOne struct {
// contains filtered or unexported fields
}
DeviceDeleteOne is the builder for deleting a single Device entity.
func (*DeviceDeleteOne) Exec ¶
func (ddo *DeviceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceDeleteOne) ExecX ¶
func (ddo *DeviceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type DeviceEdges ¶
type DeviceEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
DeviceEdges holds the relations/edges for other nodes in the graph.
func (DeviceEdges) EventsOrErr ¶
func (e DeviceEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type DeviceGroupBy ¶
type DeviceGroupBy struct {
// contains filtered or unexported fields
}
DeviceGroupBy is the builder for group-by Device entities.
func (*DeviceGroupBy) Aggregate ¶
func (dgb *DeviceGroupBy) Aggregate(fns ...AggregateFunc) *DeviceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceGroupBy) Bool ¶
func (dgb *DeviceGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) BoolX ¶
func (dgb *DeviceGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*DeviceGroupBy) Bools ¶
func (dgb *DeviceGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) BoolsX ¶
func (dgb *DeviceGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*DeviceGroupBy) Float64 ¶
func (dgb *DeviceGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) Float64X ¶
func (dgb *DeviceGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*DeviceGroupBy) Float64s ¶
func (dgb *DeviceGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) Float64sX ¶
func (dgb *DeviceGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceGroupBy) Int ¶
func (dgb *DeviceGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) IntX ¶
func (dgb *DeviceGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*DeviceGroupBy) Ints ¶
func (dgb *DeviceGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) IntsX ¶
func (dgb *DeviceGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*DeviceGroupBy) Scan ¶
func (dgb *DeviceGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*DeviceGroupBy) ScanX ¶
func (dgb *DeviceGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*DeviceGroupBy) String ¶
func (dgb *DeviceGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*DeviceGroupBy) StringX ¶
func (dgb *DeviceGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type DeviceMutation ¶
type DeviceMutation struct {
// contains filtered or unexported fields
}
DeviceMutation represents an operation that mutate the Devices nodes in the graph.
func (*DeviceMutation) AddEventIDs ¶
func (m *DeviceMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*DeviceMutation) AddField ¶
func (m *DeviceMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*DeviceMutation) AddedEdges ¶
func (m *DeviceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceMutation) AddedField ¶
func (m *DeviceMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*DeviceMutation) AddedFields ¶
func (m *DeviceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*DeviceMutation) AddedIDs ¶
func (m *DeviceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*DeviceMutation) ClearDesktop ¶
func (m *DeviceMutation) ClearDesktop()
ClearDesktop clears the value of desktop.
func (*DeviceMutation) ClearEdge ¶
func (m *DeviceMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*DeviceMutation) ClearField ¶
func (m *DeviceMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*DeviceMutation) ClearManufacturer ¶
func (m *DeviceMutation) ClearManufacturer()
ClearManufacturer clears the value of manufacturer.
func (*DeviceMutation) ClearMobile ¶
func (m *DeviceMutation) ClearMobile()
ClearMobile clears the value of mobile.
func (*DeviceMutation) ClearModel ¶
func (m *DeviceMutation) ClearModel()
ClearModel clears the value of model.
func (*DeviceMutation) ClearName ¶
func (m *DeviceMutation) ClearName()
ClearName clears the value of name.
func (*DeviceMutation) ClearProperties ¶
func (m *DeviceMutation) ClearProperties()
ClearProperties clears the value of properties.
func (*DeviceMutation) ClearTablet ¶
func (m *DeviceMutation) ClearTablet()
ClearTablet clears the value of tablet.
func (*DeviceMutation) ClearType ¶
func (m *DeviceMutation) ClearType()
ClearType clears the value of type.
func (*DeviceMutation) ClearVersion ¶
func (m *DeviceMutation) ClearVersion()
ClearVersion clears the value of version.
func (*DeviceMutation) ClearedEdges ¶
func (m *DeviceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceMutation) ClearedFields ¶
func (m *DeviceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceMutation) Client ¶
func (m DeviceMutation) 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 (*DeviceMutation) Desktop ¶
func (m *DeviceMutation) Desktop() (r bool, exists bool)
Desktop returns the desktop value in the mutation.
func (*DeviceMutation) DesktopCleared ¶
func (m *DeviceMutation) DesktopCleared() bool
DesktopCleared returns if the field desktop was cleared in this mutation.
func (*DeviceMutation) EdgeCleared ¶
func (m *DeviceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*DeviceMutation) EventsIDs ¶
func (m *DeviceMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*DeviceMutation) Field ¶
func (m *DeviceMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*DeviceMutation) FieldCleared ¶
func (m *DeviceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*DeviceMutation) Fields ¶
func (m *DeviceMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*DeviceMutation) GetType ¶
func (m *DeviceMutation) GetType() (r string, exists bool)
GetType returns the type value in the mutation.
func (*DeviceMutation) ID ¶
func (m *DeviceMutation) ID() (id string, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*DeviceMutation) Manufacturer ¶
func (m *DeviceMutation) Manufacturer() (r string, exists bool)
Manufacturer returns the manufacturer value in the mutation.
func (*DeviceMutation) ManufacturerCleared ¶
func (m *DeviceMutation) ManufacturerCleared() bool
ManufacturerCleared returns if the field manufacturer was cleared in this mutation.
func (*DeviceMutation) Mobile ¶
func (m *DeviceMutation) Mobile() (r bool, exists bool)
Mobile returns the mobile value in the mutation.
func (*DeviceMutation) MobileCleared ¶
func (m *DeviceMutation) MobileCleared() bool
MobileCleared returns if the field mobile was cleared in this mutation.
func (*DeviceMutation) Model ¶
func (m *DeviceMutation) Model() (r string, exists bool)
Model returns the model value in the mutation.
func (*DeviceMutation) ModelCleared ¶
func (m *DeviceMutation) ModelCleared() bool
ModelCleared returns if the field model was cleared in this mutation.
func (*DeviceMutation) Name ¶
func (m *DeviceMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*DeviceMutation) NameCleared ¶
func (m *DeviceMutation) NameCleared() bool
NameCleared returns if the field name was cleared in this mutation.
func (*DeviceMutation) OldDesktop ¶
func (m *DeviceMutation) OldDesktop(ctx context.Context) (v bool, err error)
OldDesktop returns the old desktop value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) 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 was failed.
func (*DeviceMutation) OldManufacturer ¶
func (m *DeviceMutation) OldManufacturer(ctx context.Context) (v string, err error)
OldManufacturer returns the old manufacturer value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldMobile ¶
func (m *DeviceMutation) OldMobile(ctx context.Context) (v bool, err error)
OldMobile returns the old mobile value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldModel ¶
func (m *DeviceMutation) OldModel(ctx context.Context) (v string, err error)
OldModel returns the old model value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldName ¶
func (m *DeviceMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldProperties ¶
func (m *DeviceMutation) OldProperties(ctx context.Context) (v map[string]interface{}, err error)
OldProperties returns the old properties value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldTablet ¶
func (m *DeviceMutation) OldTablet(ctx context.Context) (v bool, err error)
OldTablet returns the old tablet value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldType ¶
func (m *DeviceMutation) OldType(ctx context.Context) (v string, err error)
OldType returns the old type value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) OldVersion ¶
func (m *DeviceMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old version value of the Device. If the Device 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 database query fails.
func (*DeviceMutation) Properties ¶
func (m *DeviceMutation) Properties() (r map[string]interface{}, exists bool)
Properties returns the properties value in the mutation.
func (*DeviceMutation) PropertiesCleared ¶
func (m *DeviceMutation) PropertiesCleared() bool
PropertiesCleared returns if the field properties was cleared in this mutation.
func (*DeviceMutation) RemoveEventIDs ¶
func (m *DeviceMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*DeviceMutation) RemovedEdges ¶
func (m *DeviceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceMutation) RemovedEventsIDs ¶
func (m *DeviceMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*DeviceMutation) RemovedIDs ¶
func (m *DeviceMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*DeviceMutation) ResetDesktop ¶
func (m *DeviceMutation) ResetDesktop()
ResetDesktop reset all changes of the "desktop" field.
func (*DeviceMutation) ResetEdge ¶
func (m *DeviceMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*DeviceMutation) ResetEvents ¶
func (m *DeviceMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*DeviceMutation) ResetField ¶
func (m *DeviceMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*DeviceMutation) ResetManufacturer ¶
func (m *DeviceMutation) ResetManufacturer()
ResetManufacturer reset all changes of the "manufacturer" field.
func (*DeviceMutation) ResetMobile ¶
func (m *DeviceMutation) ResetMobile()
ResetMobile reset all changes of the "mobile" field.
func (*DeviceMutation) ResetModel ¶
func (m *DeviceMutation) ResetModel()
ResetModel reset all changes of the "model" field.
func (*DeviceMutation) ResetName ¶
func (m *DeviceMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*DeviceMutation) ResetProperties ¶
func (m *DeviceMutation) ResetProperties()
ResetProperties reset all changes of the "properties" field.
func (*DeviceMutation) ResetTablet ¶
func (m *DeviceMutation) ResetTablet()
ResetTablet reset all changes of the "tablet" field.
func (*DeviceMutation) ResetType ¶
func (m *DeviceMutation) ResetType()
ResetType reset all changes of the "type" field.
func (*DeviceMutation) ResetVersion ¶
func (m *DeviceMutation) ResetVersion()
ResetVersion reset all changes of the "version" field.
func (*DeviceMutation) SetDesktop ¶
func (m *DeviceMutation) SetDesktop(b bool)
SetDesktop sets the desktop field.
func (*DeviceMutation) SetField ¶
func (m *DeviceMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*DeviceMutation) SetID ¶
func (m *DeviceMutation) SetID(id string)
SetID sets the value of the id field. Note that, this operation is accepted only on Device creation.
func (*DeviceMutation) SetManufacturer ¶
func (m *DeviceMutation) SetManufacturer(s string)
SetManufacturer sets the manufacturer field.
func (*DeviceMutation) SetMobile ¶
func (m *DeviceMutation) SetMobile(b bool)
SetMobile sets the mobile field.
func (*DeviceMutation) SetModel ¶
func (m *DeviceMutation) SetModel(s string)
SetModel sets the model field.
func (*DeviceMutation) SetName ¶
func (m *DeviceMutation) SetName(s string)
SetName sets the name field.
func (*DeviceMutation) SetProperties ¶
func (m *DeviceMutation) SetProperties(value map[string]interface{})
SetProperties sets the properties field.
func (*DeviceMutation) SetTablet ¶
func (m *DeviceMutation) SetTablet(b bool)
SetTablet sets the tablet field.
func (*DeviceMutation) SetType ¶
func (m *DeviceMutation) SetType(s string)
SetType sets the type field.
func (*DeviceMutation) SetVersion ¶
func (m *DeviceMutation) SetVersion(s string)
SetVersion sets the version field.
func (*DeviceMutation) Tablet ¶
func (m *DeviceMutation) Tablet() (r bool, exists bool)
Tablet returns the tablet value in the mutation.
func (*DeviceMutation) TabletCleared ¶
func (m *DeviceMutation) TabletCleared() bool
TabletCleared returns if the field tablet was cleared in this mutation.
func (DeviceMutation) Tx ¶
func (m DeviceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceMutation) Type ¶
func (m *DeviceMutation) Type() string
Type returns the node type of this mutation (Device).
func (*DeviceMutation) TypeCleared ¶
func (m *DeviceMutation) TypeCleared() bool
TypeCleared returns if the field type was cleared in this mutation.
func (*DeviceMutation) Version ¶
func (m *DeviceMutation) Version() (r string, exists bool)
Version returns the version value in the mutation.
func (*DeviceMutation) VersionCleared ¶
func (m *DeviceMutation) VersionCleared() bool
VersionCleared returns if the field version was cleared in this mutation.
type DeviceQuery ¶
type DeviceQuery struct {
// contains filtered or unexported fields
}
DeviceQuery is the builder for querying Device entities.
func (*DeviceQuery) All ¶
func (dq *DeviceQuery) All(ctx context.Context) ([]*Device, error)
All executes the query and returns a list of Devices.
func (*DeviceQuery) AllX ¶
func (dq *DeviceQuery) AllX(ctx context.Context) []*Device
AllX is like All, but panics if an error occurs.
func (*DeviceQuery) Clone ¶
func (dq *DeviceQuery) Clone() *DeviceQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceQuery) Count ¶
func (dq *DeviceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceQuery) CountX ¶
func (dq *DeviceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceQuery) Exist ¶
func (dq *DeviceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceQuery) ExistX ¶
func (dq *DeviceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceQuery) First ¶
func (dq *DeviceQuery) First(ctx context.Context) (*Device, error)
First returns the first Device entity in the query. Returns *NotFoundError when no device was found.
func (*DeviceQuery) FirstID ¶
func (dq *DeviceQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Device id in the query. Returns *NotFoundError when no id was found.
func (*DeviceQuery) FirstX ¶
func (dq *DeviceQuery) FirstX(ctx context.Context) *Device
FirstX is like First, but panics if an error occurs.
func (*DeviceQuery) FirstXID ¶
func (dq *DeviceQuery) FirstXID(ctx context.Context) string
FirstXID is like FirstID, but panics if an error occurs.
func (*DeviceQuery) GroupBy ¶
func (dq *DeviceQuery) GroupBy(field string, fields ...string) *DeviceGroupBy
GroupBy 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 { Manufacturer string `json:"manufacturer,omitempty"` Count int `json:"count,omitempty"` } client.Device.Query(). GroupBy(device.FieldManufacturer). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceQuery) IDs ¶
func (dq *DeviceQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of Device ids.
func (*DeviceQuery) IDsX ¶
func (dq *DeviceQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*DeviceQuery) Limit ¶
func (dq *DeviceQuery) Limit(limit int) *DeviceQuery
Limit adds a limit step to the query.
func (*DeviceQuery) Offset ¶
func (dq *DeviceQuery) Offset(offset int) *DeviceQuery
Offset adds an offset step to the query.
func (*DeviceQuery) Only ¶
func (dq *DeviceQuery) Only(ctx context.Context) (*Device, error)
Only returns the only Device entity in the query, returns an error if not exactly one entity was returned.
func (*DeviceQuery) OnlyID ¶
func (dq *DeviceQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID returns the only Device id in the query, returns an error if not exactly one id was returned.
func (*DeviceQuery) OnlyIDX ¶
func (dq *DeviceQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceQuery) OnlyX ¶
func (dq *DeviceQuery) OnlyX(ctx context.Context) *Device
OnlyX is like Only, but panics if an error occurs.
func (*DeviceQuery) Order ¶
func (dq *DeviceQuery) Order(o ...OrderFunc) *DeviceQuery
Order adds an order step to the query.
func (*DeviceQuery) QueryEvents ¶
func (dq *DeviceQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*DeviceQuery) Select ¶
func (dq *DeviceQuery) Select(field string, fields ...string) *DeviceSelect
Select one or more fields from the given query.
Example:
var v []struct { Manufacturer string `json:"manufacturer,omitempty"` } client.Device.Query(). Select(device.FieldManufacturer). Scan(ctx, &v)
func (*DeviceQuery) Where ¶
func (dq *DeviceQuery) Where(ps ...predicate.Device) *DeviceQuery
Where adds a new predicate for the builder.
func (*DeviceQuery) WithEvents ¶
func (dq *DeviceQuery) WithEvents(opts ...func(*EventQuery)) *DeviceQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type DeviceSelect ¶
type DeviceSelect struct {
// contains filtered or unexported fields
}
DeviceSelect is the builder for select fields of Device entities.
func (*DeviceSelect) Bool ¶
func (ds *DeviceSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*DeviceSelect) BoolX ¶
func (ds *DeviceSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*DeviceSelect) Bools ¶
func (ds *DeviceSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*DeviceSelect) BoolsX ¶
func (ds *DeviceSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*DeviceSelect) Float64 ¶
func (ds *DeviceSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*DeviceSelect) Float64X ¶
func (ds *DeviceSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*DeviceSelect) Float64s ¶
func (ds *DeviceSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*DeviceSelect) Float64sX ¶
func (ds *DeviceSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceSelect) Int ¶
func (ds *DeviceSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*DeviceSelect) IntX ¶
func (ds *DeviceSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*DeviceSelect) Ints ¶
func (ds *DeviceSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*DeviceSelect) IntsX ¶
func (ds *DeviceSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*DeviceSelect) Scan ¶
func (ds *DeviceSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*DeviceSelect) ScanX ¶
func (ds *DeviceSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*DeviceSelect) String ¶
func (ds *DeviceSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*DeviceSelect) StringX ¶
func (ds *DeviceSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type DeviceUpdate ¶
type DeviceUpdate struct {
// contains filtered or unexported fields
}
DeviceUpdate is the builder for updating Device entities.
func (*DeviceUpdate) AddEventIDs ¶
func (du *DeviceUpdate) AddEventIDs(ids ...uuid.UUID) *DeviceUpdate
AddEventIDs adds the events edge to Event by ids.
func (*DeviceUpdate) AddEvents ¶
func (du *DeviceUpdate) AddEvents(e ...*Event) *DeviceUpdate
AddEvents adds the events edges to Event.
func (*DeviceUpdate) ClearDesktop ¶
func (du *DeviceUpdate) ClearDesktop() *DeviceUpdate
ClearDesktop clears the value of desktop.
func (*DeviceUpdate) ClearManufacturer ¶
func (du *DeviceUpdate) ClearManufacturer() *DeviceUpdate
ClearManufacturer clears the value of manufacturer.
func (*DeviceUpdate) ClearMobile ¶
func (du *DeviceUpdate) ClearMobile() *DeviceUpdate
ClearMobile clears the value of mobile.
func (*DeviceUpdate) ClearModel ¶
func (du *DeviceUpdate) ClearModel() *DeviceUpdate
ClearModel clears the value of model.
func (*DeviceUpdate) ClearName ¶
func (du *DeviceUpdate) ClearName() *DeviceUpdate
ClearName clears the value of name.
func (*DeviceUpdate) ClearProperties ¶
func (du *DeviceUpdate) ClearProperties() *DeviceUpdate
ClearProperties clears the value of properties.
func (*DeviceUpdate) ClearTablet ¶
func (du *DeviceUpdate) ClearTablet() *DeviceUpdate
ClearTablet clears the value of tablet.
func (*DeviceUpdate) ClearType ¶
func (du *DeviceUpdate) ClearType() *DeviceUpdate
ClearType clears the value of type.
func (*DeviceUpdate) ClearVersion ¶
func (du *DeviceUpdate) ClearVersion() *DeviceUpdate
ClearVersion clears the value of version.
func (*DeviceUpdate) Exec ¶
func (du *DeviceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpdate) ExecX ¶
func (du *DeviceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpdate) Mutation ¶
func (du *DeviceUpdate) Mutation() *DeviceMutation
Mutation returns the DeviceMutation object of the builder.
func (*DeviceUpdate) RemoveEventIDs ¶
func (du *DeviceUpdate) RemoveEventIDs(ids ...uuid.UUID) *DeviceUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*DeviceUpdate) RemoveEvents ¶
func (du *DeviceUpdate) RemoveEvents(e ...*Event) *DeviceUpdate
RemoveEvents removes events edges to Event.
func (*DeviceUpdate) Save ¶
func (du *DeviceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*DeviceUpdate) SaveX ¶
func (du *DeviceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpdate) SetDesktop ¶
func (du *DeviceUpdate) SetDesktop(b bool) *DeviceUpdate
SetDesktop sets the desktop field.
func (*DeviceUpdate) SetManufacturer ¶
func (du *DeviceUpdate) SetManufacturer(s string) *DeviceUpdate
SetManufacturer sets the manufacturer field.
func (*DeviceUpdate) SetMobile ¶
func (du *DeviceUpdate) SetMobile(b bool) *DeviceUpdate
SetMobile sets the mobile field.
func (*DeviceUpdate) SetModel ¶
func (du *DeviceUpdate) SetModel(s string) *DeviceUpdate
SetModel sets the model field.
func (*DeviceUpdate) SetName ¶
func (du *DeviceUpdate) SetName(s string) *DeviceUpdate
SetName sets the name field.
func (*DeviceUpdate) SetNillableDesktop ¶
func (du *DeviceUpdate) SetNillableDesktop(b *bool) *DeviceUpdate
SetNillableDesktop sets the desktop field if the given value is not nil.
func (*DeviceUpdate) SetNillableManufacturer ¶
func (du *DeviceUpdate) SetNillableManufacturer(s *string) *DeviceUpdate
SetNillableManufacturer sets the manufacturer field if the given value is not nil.
func (*DeviceUpdate) SetNillableMobile ¶
func (du *DeviceUpdate) SetNillableMobile(b *bool) *DeviceUpdate
SetNillableMobile sets the mobile field if the given value is not nil.
func (*DeviceUpdate) SetNillableModel ¶
func (du *DeviceUpdate) SetNillableModel(s *string) *DeviceUpdate
SetNillableModel sets the model field if the given value is not nil.
func (*DeviceUpdate) SetNillableName ¶
func (du *DeviceUpdate) SetNillableName(s *string) *DeviceUpdate
SetNillableName sets the name field if the given value is not nil.
func (*DeviceUpdate) SetNillableTablet ¶
func (du *DeviceUpdate) SetNillableTablet(b *bool) *DeviceUpdate
SetNillableTablet sets the tablet field if the given value is not nil.
func (*DeviceUpdate) SetNillableType ¶
func (du *DeviceUpdate) SetNillableType(s *string) *DeviceUpdate
SetNillableType sets the type field if the given value is not nil.
func (*DeviceUpdate) SetNillableVersion ¶
func (du *DeviceUpdate) SetNillableVersion(s *string) *DeviceUpdate
SetNillableVersion sets the version field if the given value is not nil.
func (*DeviceUpdate) SetProperties ¶
func (du *DeviceUpdate) SetProperties(m map[string]interface{}) *DeviceUpdate
SetProperties sets the properties field.
func (*DeviceUpdate) SetTablet ¶
func (du *DeviceUpdate) SetTablet(b bool) *DeviceUpdate
SetTablet sets the tablet field.
func (*DeviceUpdate) SetType ¶
func (du *DeviceUpdate) SetType(s string) *DeviceUpdate
SetType sets the type field.
func (*DeviceUpdate) SetVersion ¶
func (du *DeviceUpdate) SetVersion(s string) *DeviceUpdate
SetVersion sets the version field.
func (*DeviceUpdate) Where ¶
func (du *DeviceUpdate) Where(ps ...predicate.Device) *DeviceUpdate
Where adds a new predicate for the builder.
type DeviceUpdateOne ¶
type DeviceUpdateOne struct {
// contains filtered or unexported fields
}
DeviceUpdateOne is the builder for updating a single Device entity.
func (*DeviceUpdateOne) AddEventIDs ¶
func (duo *DeviceUpdateOne) AddEventIDs(ids ...uuid.UUID) *DeviceUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*DeviceUpdateOne) AddEvents ¶
func (duo *DeviceUpdateOne) AddEvents(e ...*Event) *DeviceUpdateOne
AddEvents adds the events edges to Event.
func (*DeviceUpdateOne) ClearDesktop ¶
func (duo *DeviceUpdateOne) ClearDesktop() *DeviceUpdateOne
ClearDesktop clears the value of desktop.
func (*DeviceUpdateOne) ClearManufacturer ¶
func (duo *DeviceUpdateOne) ClearManufacturer() *DeviceUpdateOne
ClearManufacturer clears the value of manufacturer.
func (*DeviceUpdateOne) ClearMobile ¶
func (duo *DeviceUpdateOne) ClearMobile() *DeviceUpdateOne
ClearMobile clears the value of mobile.
func (*DeviceUpdateOne) ClearModel ¶
func (duo *DeviceUpdateOne) ClearModel() *DeviceUpdateOne
ClearModel clears the value of model.
func (*DeviceUpdateOne) ClearName ¶
func (duo *DeviceUpdateOne) ClearName() *DeviceUpdateOne
ClearName clears the value of name.
func (*DeviceUpdateOne) ClearProperties ¶
func (duo *DeviceUpdateOne) ClearProperties() *DeviceUpdateOne
ClearProperties clears the value of properties.
func (*DeviceUpdateOne) ClearTablet ¶
func (duo *DeviceUpdateOne) ClearTablet() *DeviceUpdateOne
ClearTablet clears the value of tablet.
func (*DeviceUpdateOne) ClearType ¶
func (duo *DeviceUpdateOne) ClearType() *DeviceUpdateOne
ClearType clears the value of type.
func (*DeviceUpdateOne) ClearVersion ¶
func (duo *DeviceUpdateOne) ClearVersion() *DeviceUpdateOne
ClearVersion clears the value of version.
func (*DeviceUpdateOne) Exec ¶
func (duo *DeviceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceUpdateOne) ExecX ¶
func (duo *DeviceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpdateOne) Mutation ¶
func (duo *DeviceUpdateOne) Mutation() *DeviceMutation
Mutation returns the DeviceMutation object of the builder.
func (*DeviceUpdateOne) RemoveEventIDs ¶
func (duo *DeviceUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *DeviceUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*DeviceUpdateOne) RemoveEvents ¶
func (duo *DeviceUpdateOne) RemoveEvents(e ...*Event) *DeviceUpdateOne
RemoveEvents removes events edges to Event.
func (*DeviceUpdateOne) Save ¶
func (duo *DeviceUpdateOne) Save(ctx context.Context) (*Device, error)
Save executes the query and returns the updated entity.
func (*DeviceUpdateOne) SaveX ¶
func (duo *DeviceUpdateOne) SaveX(ctx context.Context) *Device
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpdateOne) SetDesktop ¶
func (duo *DeviceUpdateOne) SetDesktop(b bool) *DeviceUpdateOne
SetDesktop sets the desktop field.
func (*DeviceUpdateOne) SetManufacturer ¶
func (duo *DeviceUpdateOne) SetManufacturer(s string) *DeviceUpdateOne
SetManufacturer sets the manufacturer field.
func (*DeviceUpdateOne) SetMobile ¶
func (duo *DeviceUpdateOne) SetMobile(b bool) *DeviceUpdateOne
SetMobile sets the mobile field.
func (*DeviceUpdateOne) SetModel ¶
func (duo *DeviceUpdateOne) SetModel(s string) *DeviceUpdateOne
SetModel sets the model field.
func (*DeviceUpdateOne) SetName ¶
func (duo *DeviceUpdateOne) SetName(s string) *DeviceUpdateOne
SetName sets the name field.
func (*DeviceUpdateOne) SetNillableDesktop ¶
func (duo *DeviceUpdateOne) SetNillableDesktop(b *bool) *DeviceUpdateOne
SetNillableDesktop sets the desktop field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableManufacturer ¶
func (duo *DeviceUpdateOne) SetNillableManufacturer(s *string) *DeviceUpdateOne
SetNillableManufacturer sets the manufacturer field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableMobile ¶
func (duo *DeviceUpdateOne) SetNillableMobile(b *bool) *DeviceUpdateOne
SetNillableMobile sets the mobile field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableModel ¶
func (duo *DeviceUpdateOne) SetNillableModel(s *string) *DeviceUpdateOne
SetNillableModel sets the model field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableName ¶
func (duo *DeviceUpdateOne) SetNillableName(s *string) *DeviceUpdateOne
SetNillableName sets the name field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableTablet ¶
func (duo *DeviceUpdateOne) SetNillableTablet(b *bool) *DeviceUpdateOne
SetNillableTablet sets the tablet field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableType ¶
func (duo *DeviceUpdateOne) SetNillableType(s *string) *DeviceUpdateOne
SetNillableType sets the type field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableVersion ¶
func (duo *DeviceUpdateOne) SetNillableVersion(s *string) *DeviceUpdateOne
SetNillableVersion sets the version field if the given value is not nil.
func (*DeviceUpdateOne) SetProperties ¶
func (duo *DeviceUpdateOne) SetProperties(m map[string]interface{}) *DeviceUpdateOne
SetProperties sets the properties field.
func (*DeviceUpdateOne) SetTablet ¶
func (duo *DeviceUpdateOne) SetTablet(b bool) *DeviceUpdateOne
SetTablet sets the tablet field.
func (*DeviceUpdateOne) SetType ¶
func (duo *DeviceUpdateOne) SetType(s string) *DeviceUpdateOne
SetType sets the type field.
func (*DeviceUpdateOne) SetVersion ¶
func (duo *DeviceUpdateOne) SetVersion(s string) *DeviceUpdateOne
SetVersion sets the version field.
type Event ¶
type Event struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // TrackingID holds the value of the "tracking_id" field. TrackingID string `json:"tracking_id,omitempty"` // Event holds the value of the "event" field. Event event.Event `json:"event,omitempty"` // NonInteractive holds the value of the "non_interactive" field. NonInteractive bool `json:"non_interactive,omitempty"` // Channel holds the value of the "channel" field. Channel string `json:"channel,omitempty"` // Platform holds the value of the "platform" field. Platform string `json:"platform,omitempty"` // Properties holds the value of the "properties" field. Properties map[string]interface{} `json:"properties,omitempty"` // Timestamp holds the value of the "timestamp" field. Timestamp time.Time `json:"timestamp,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the EventQuery when eager-loading is set. Edges EventEdges `json:"edges"` // contains filtered or unexported fields }
Event is the model entity for the Event schema.
func (*Event) QueryAction ¶
func (e *Event) QueryAction() *ActionQuery
QueryAction queries the action edge of the Event.
func (*Event) QueryAlias ¶
func (e *Event) QueryAlias() *AliasQuery
QueryAlias queries the alias edge of the Event.
func (*Event) QueryBrowser ¶
func (e *Event) QueryBrowser() *BrowserQuery
QueryBrowser queries the browser edge of the Event.
func (*Event) QueryCampaign ¶
func (e *Event) QueryCampaign() *CampaignQuery
QueryCampaign queries the campaign edge of the Event.
func (*Event) QueryConnectivity ¶
func (e *Event) QueryConnectivity() *ConnectivityQuery
QueryConnectivity queries the connectivity edge of the Event.
func (*Event) QueryDevice ¶
func (e *Event) QueryDevice() *DeviceQuery
QueryDevice queries the device edge of the Event.
func (*Event) QueryExtra ¶
func (e *Event) QueryExtra() *ExtraQuery
QueryExtra queries the extra edge of the Event.
func (*Event) QueryGroup ¶
func (e *Event) QueryGroup() *GroupQuery
QueryGroup queries the group edge of the Event.
func (*Event) QueryLibrary ¶
func (e *Event) QueryLibrary() *LibraryQuery
QueryLibrary queries the library edge of the Event.
func (*Event) QueryLocation ¶
func (e *Event) QueryLocation() *LocationQuery
QueryLocation queries the location edge of the Event.
func (*Event) QueryNetwork ¶
func (e *Event) QueryNetwork() *NetworkQuery
QueryNetwork queries the network edge of the Event.
func (*Event) QueryOs ¶
func (e *Event) QueryOs() *OSContextQuery
QueryOs queries the os edge of the Event.
func (*Event) QueryReferrer ¶
func (e *Event) QueryReferrer() *ReferrerQuery
QueryReferrer queries the referrer edge of the Event.
func (*Event) QueryScreen ¶
func (e *Event) QueryScreen() *ScreenQuery
QueryScreen queries the screen edge of the Event.
func (*Event) QuerySession ¶
func (e *Event) QuerySession() *SessionQuery
QuerySession queries the session edge of the Event.
func (*Event) QueryTiming ¶
func (e *Event) QueryTiming() *TimingQuery
QueryTiming queries the timing edge of the Event.
func (*Event) QueryViewport ¶
func (e *Event) QueryViewport() *ViewportQuery
QueryViewport queries the viewport edge of the Event.
func (*Event) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Event) Update ¶
func (e *Event) Update() *EventUpdateOne
Update returns a builder for updating this Event. Note that, you need to call Event.Unwrap() before calling this method, if this Event was returned from a transaction, and the transaction was committed or rolled back.
type EventClient ¶
type EventClient struct {
// contains filtered or unexported fields
}
EventClient is a client for the Event schema.
func NewEventClient ¶
func NewEventClient(c config) *EventClient
NewEventClient returns a client for the Event from the given config.
func (*EventClient) Create ¶
func (c *EventClient) Create() *EventCreate
Create returns a create builder for Event.
func (*EventClient) CreateBulk ¶
func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk
BulkCreate returns a builder for creating a bulk of Event entities.
func (*EventClient) Delete ¶
func (c *EventClient) Delete() *EventDelete
Delete returns a delete builder for Event.
func (*EventClient) DeleteOne ¶
func (c *EventClient) DeleteOne(e *Event) *EventDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*EventClient) DeleteOneID ¶
func (c *EventClient) DeleteOneID(id uuid.UUID) *EventDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*EventClient) Query ¶
func (c *EventClient) Query() *EventQuery
Query returns a query builder for Event.
func (*EventClient) QueryAction ¶
func (c *EventClient) QueryAction(e *Event) *ActionQuery
QueryAction queries the action edge of a Event.
func (*EventClient) QueryAlias ¶
func (c *EventClient) QueryAlias(e *Event) *AliasQuery
QueryAlias queries the alias edge of a Event.
func (*EventClient) QueryApp ¶
func (c *EventClient) QueryApp(e *Event) *AppQuery
QueryApp queries the app edge of a Event.
func (*EventClient) QueryBrowser ¶
func (c *EventClient) QueryBrowser(e *Event) *BrowserQuery
QueryBrowser queries the browser edge of a Event.
func (*EventClient) QueryCampaign ¶
func (c *EventClient) QueryCampaign(e *Event) *CampaignQuery
QueryCampaign queries the campaign edge of a Event.
func (*EventClient) QueryConnectivity ¶
func (c *EventClient) QueryConnectivity(e *Event) *ConnectivityQuery
QueryConnectivity queries the connectivity edge of a Event.
func (*EventClient) QueryDevice ¶
func (c *EventClient) QueryDevice(e *Event) *DeviceQuery
QueryDevice queries the device edge of a Event.
func (*EventClient) QueryExtra ¶
func (c *EventClient) QueryExtra(e *Event) *ExtraQuery
QueryExtra queries the extra edge of a Event.
func (*EventClient) QueryGroup ¶
func (c *EventClient) QueryGroup(e *Event) *GroupQuery
QueryGroup queries the group edge of a Event.
func (*EventClient) QueryLibrary ¶
func (c *EventClient) QueryLibrary(e *Event) *LibraryQuery
QueryLibrary queries the library edge of a Event.
func (*EventClient) QueryLocation ¶
func (c *EventClient) QueryLocation(e *Event) *LocationQuery
QueryLocation queries the location edge of a Event.
func (*EventClient) QueryNetwork ¶
func (c *EventClient) QueryNetwork(e *Event) *NetworkQuery
QueryNetwork queries the network edge of a Event.
func (*EventClient) QueryOs ¶
func (c *EventClient) QueryOs(e *Event) *OSContextQuery
QueryOs queries the os edge of a Event.
func (*EventClient) QueryPage ¶
func (c *EventClient) QueryPage(e *Event) *PageQuery
QueryPage queries the page edge of a Event.
func (*EventClient) QueryReferrer ¶
func (c *EventClient) QueryReferrer(e *Event) *ReferrerQuery
QueryReferrer queries the referrer edge of a Event.
func (*EventClient) QueryScreen ¶
func (c *EventClient) QueryScreen(e *Event) *ScreenQuery
QueryScreen queries the screen edge of a Event.
func (*EventClient) QuerySession ¶
func (c *EventClient) QuerySession(e *Event) *SessionQuery
QuerySession queries the session edge of a Event.
func (*EventClient) QueryTiming ¶
func (c *EventClient) QueryTiming(e *Event) *TimingQuery
QueryTiming queries the timing edge of a Event.
func (*EventClient) QueryUser ¶
func (c *EventClient) QueryUser(e *Event) *UserQuery
QueryUser queries the user edge of a Event.
func (*EventClient) QueryViewport ¶
func (c *EventClient) QueryViewport(e *Event) *ViewportQuery
QueryViewport queries the viewport edge of a Event.
func (*EventClient) Update ¶
func (c *EventClient) Update() *EventUpdate
Update returns an update builder for Event.
func (*EventClient) UpdateOne ¶
func (c *EventClient) UpdateOne(e *Event) *EventUpdateOne
UpdateOne returns an update builder for the given entity.
func (*EventClient) UpdateOneID ¶
func (c *EventClient) UpdateOneID(id uuid.UUID) *EventUpdateOne
UpdateOneID returns an update builder for the given id.
func (*EventClient) Use ¶
func (c *EventClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `event.Hooks(f(g(h())))`.
type EventCreate ¶
type EventCreate struct {
// contains filtered or unexported fields
}
EventCreate is the builder for creating a Event entity.
func (*EventCreate) Mutation ¶
func (ec *EventCreate) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventCreate) Save ¶
func (ec *EventCreate) Save(ctx context.Context) (*Event, error)
Save creates the Event in the database.
func (*EventCreate) SaveX ¶
func (ec *EventCreate) SaveX(ctx context.Context) *Event
SaveX calls Save and panics if Save returns an error.
func (*EventCreate) SetAction ¶
func (ec *EventCreate) SetAction(a *Action) *EventCreate
SetAction sets the action edge to Action.
func (*EventCreate) SetActionID ¶
func (ec *EventCreate) SetActionID(id int) *EventCreate
SetActionID sets the action edge to Action by id.
func (*EventCreate) SetAlias ¶
func (ec *EventCreate) SetAlias(a *Alias) *EventCreate
SetAlias sets the alias edge to Alias.
func (*EventCreate) SetAliasID ¶
func (ec *EventCreate) SetAliasID(id int) *EventCreate
SetAliasID sets the alias edge to Alias by id.
func (*EventCreate) SetApp ¶
func (ec *EventCreate) SetApp(a *App) *EventCreate
SetApp sets the app edge to App.
func (*EventCreate) SetAppID ¶
func (ec *EventCreate) SetAppID(id int) *EventCreate
SetAppID sets the app edge to App by id.
func (*EventCreate) SetBrowser ¶
func (ec *EventCreate) SetBrowser(b *Browser) *EventCreate
SetBrowser sets the browser edge to Browser.
func (*EventCreate) SetBrowserID ¶
func (ec *EventCreate) SetBrowserID(id int) *EventCreate
SetBrowserID sets the browser edge to Browser by id.
func (*EventCreate) SetCampaign ¶
func (ec *EventCreate) SetCampaign(c *Campaign) *EventCreate
SetCampaign sets the campaign edge to Campaign.
func (*EventCreate) SetCampaignID ¶
func (ec *EventCreate) SetCampaignID(id int) *EventCreate
SetCampaignID sets the campaign edge to Campaign by id.
func (*EventCreate) SetChannel ¶
func (ec *EventCreate) SetChannel(s string) *EventCreate
SetChannel sets the channel field.
func (*EventCreate) SetConnectivity ¶
func (ec *EventCreate) SetConnectivity(c *Connectivity) *EventCreate
SetConnectivity sets the connectivity edge to Connectivity.
func (*EventCreate) SetConnectivityID ¶
func (ec *EventCreate) SetConnectivityID(id int) *EventCreate
SetConnectivityID sets the connectivity edge to Connectivity by id.
func (*EventCreate) SetDevice ¶
func (ec *EventCreate) SetDevice(d *Device) *EventCreate
SetDevice sets the device edge to Device.
func (*EventCreate) SetDeviceID ¶
func (ec *EventCreate) SetDeviceID(id string) *EventCreate
SetDeviceID sets the device edge to Device by id.
func (*EventCreate) SetEvent ¶
func (ec *EventCreate) SetEvent(e event.Event) *EventCreate
SetEvent sets the event field.
func (*EventCreate) SetExtra ¶
func (ec *EventCreate) SetExtra(e *Extra) *EventCreate
SetExtra sets the extra edge to Extra.
func (*EventCreate) SetExtraID ¶
func (ec *EventCreate) SetExtraID(id int) *EventCreate
SetExtraID sets the extra edge to Extra by id.
func (*EventCreate) SetGroup ¶
func (ec *EventCreate) SetGroup(g *Group) *EventCreate
SetGroup sets the group edge to Group.
func (*EventCreate) SetGroupID ¶
func (ec *EventCreate) SetGroupID(id int) *EventCreate
SetGroupID sets the group edge to Group by id.
func (*EventCreate) SetID ¶
func (ec *EventCreate) SetID(u uuid.UUID) *EventCreate
SetID sets the id field.
func (*EventCreate) SetLibrary ¶
func (ec *EventCreate) SetLibrary(l *Library) *EventCreate
SetLibrary sets the library edge to Library.
func (*EventCreate) SetLibraryID ¶
func (ec *EventCreate) SetLibraryID(id int) *EventCreate
SetLibraryID sets the library edge to Library by id.
func (*EventCreate) SetLocation ¶
func (ec *EventCreate) SetLocation(l *Location) *EventCreate
SetLocation sets the location edge to Location.
func (*EventCreate) SetLocationID ¶
func (ec *EventCreate) SetLocationID(id int) *EventCreate
SetLocationID sets the location edge to Location by id.
func (*EventCreate) SetNetwork ¶
func (ec *EventCreate) SetNetwork(n *Network) *EventCreate
SetNetwork sets the network edge to Network.
func (*EventCreate) SetNetworkID ¶
func (ec *EventCreate) SetNetworkID(id int) *EventCreate
SetNetworkID sets the network edge to Network by id.
func (*EventCreate) SetNillableActionID ¶
func (ec *EventCreate) SetNillableActionID(id *int) *EventCreate
SetNillableActionID sets the action edge to Action by id if the given value is not nil.
func (*EventCreate) SetNillableAliasID ¶
func (ec *EventCreate) SetNillableAliasID(id *int) *EventCreate
SetNillableAliasID sets the alias edge to Alias by id if the given value is not nil.
func (*EventCreate) SetNillableAppID ¶
func (ec *EventCreate) SetNillableAppID(id *int) *EventCreate
SetNillableAppID sets the app edge to App by id if the given value is not nil.
func (*EventCreate) SetNillableBrowserID ¶
func (ec *EventCreate) SetNillableBrowserID(id *int) *EventCreate
SetNillableBrowserID sets the browser edge to Browser by id if the given value is not nil.
func (*EventCreate) SetNillableCampaignID ¶
func (ec *EventCreate) SetNillableCampaignID(id *int) *EventCreate
SetNillableCampaignID sets the campaign edge to Campaign by id if the given value is not nil.
func (*EventCreate) SetNillableChannel ¶
func (ec *EventCreate) SetNillableChannel(s *string) *EventCreate
SetNillableChannel sets the channel field if the given value is not nil.
func (*EventCreate) SetNillableConnectivityID ¶
func (ec *EventCreate) SetNillableConnectivityID(id *int) *EventCreate
SetNillableConnectivityID sets the connectivity edge to Connectivity by id if the given value is not nil.
func (*EventCreate) SetNillableDeviceID ¶
func (ec *EventCreate) SetNillableDeviceID(id *string) *EventCreate
SetNillableDeviceID sets the device edge to Device by id if the given value is not nil.
func (*EventCreate) SetNillableExtraID ¶
func (ec *EventCreate) SetNillableExtraID(id *int) *EventCreate
SetNillableExtraID sets the extra edge to Extra by id if the given value is not nil.
func (*EventCreate) SetNillableGroupID ¶
func (ec *EventCreate) SetNillableGroupID(id *int) *EventCreate
SetNillableGroupID sets the group edge to Group by id if the given value is not nil.
func (*EventCreate) SetNillableLibraryID ¶
func (ec *EventCreate) SetNillableLibraryID(id *int) *EventCreate
SetNillableLibraryID sets the library edge to Library by id if the given value is not nil.
func (*EventCreate) SetNillableLocationID ¶
func (ec *EventCreate) SetNillableLocationID(id *int) *EventCreate
SetNillableLocationID sets the location edge to Location by id if the given value is not nil.
func (*EventCreate) SetNillableNetworkID ¶
func (ec *EventCreate) SetNillableNetworkID(id *int) *EventCreate
SetNillableNetworkID sets the network edge to Network by id if the given value is not nil.
func (*EventCreate) SetNillableOsID ¶
func (ec *EventCreate) SetNillableOsID(id *int) *EventCreate
SetNillableOsID sets the os edge to OSContext by id if the given value is not nil.
func (*EventCreate) SetNillablePageID ¶
func (ec *EventCreate) SetNillablePageID(id *int) *EventCreate
SetNillablePageID sets the page edge to Page by id if the given value is not nil.
func (*EventCreate) SetNillablePlatform ¶
func (ec *EventCreate) SetNillablePlatform(s *string) *EventCreate
SetNillablePlatform sets the platform field if the given value is not nil.
func (*EventCreate) SetNillableReferrerID ¶
func (ec *EventCreate) SetNillableReferrerID(id *int) *EventCreate
SetNillableReferrerID sets the referrer edge to Referrer by id if the given value is not nil.
func (*EventCreate) SetNillableScreenID ¶
func (ec *EventCreate) SetNillableScreenID(id *int) *EventCreate
SetNillableScreenID sets the screen edge to Screen by id if the given value is not nil.
func (*EventCreate) SetNillableSessionID ¶
func (ec *EventCreate) SetNillableSessionID(id *uuid.UUID) *EventCreate
SetNillableSessionID sets the session edge to Session by id if the given value is not nil.
func (*EventCreate) SetNillableTimingID ¶
func (ec *EventCreate) SetNillableTimingID(id *int) *EventCreate
SetNillableTimingID sets the timing edge to Timing by id if the given value is not nil.
func (*EventCreate) SetNillableUserID ¶
func (ec *EventCreate) SetNillableUserID(id *string) *EventCreate
SetNillableUserID sets the user edge to User by id if the given value is not nil.
func (*EventCreate) SetNillableViewportID ¶
func (ec *EventCreate) SetNillableViewportID(id *int) *EventCreate
SetNillableViewportID sets the viewport edge to Viewport by id if the given value is not nil.
func (*EventCreate) SetNonInteractive ¶
func (ec *EventCreate) SetNonInteractive(b bool) *EventCreate
SetNonInteractive sets the non_interactive field.
func (*EventCreate) SetOs ¶
func (ec *EventCreate) SetOs(o *OSContext) *EventCreate
SetOs sets the os edge to OSContext.
func (*EventCreate) SetOsID ¶
func (ec *EventCreate) SetOsID(id int) *EventCreate
SetOsID sets the os edge to OSContext by id.
func (*EventCreate) SetPage ¶
func (ec *EventCreate) SetPage(p *Page) *EventCreate
SetPage sets the page edge to Page.
func (*EventCreate) SetPageID ¶
func (ec *EventCreate) SetPageID(id int) *EventCreate
SetPageID sets the page edge to Page by id.
func (*EventCreate) SetPlatform ¶
func (ec *EventCreate) SetPlatform(s string) *EventCreate
SetPlatform sets the platform field.
func (*EventCreate) SetProperties ¶
func (ec *EventCreate) SetProperties(m map[string]interface{}) *EventCreate
SetProperties sets the properties field.
func (*EventCreate) SetReferrer ¶
func (ec *EventCreate) SetReferrer(r *Referrer) *EventCreate
SetReferrer sets the referrer edge to Referrer.
func (*EventCreate) SetReferrerID ¶
func (ec *EventCreate) SetReferrerID(id int) *EventCreate
SetReferrerID sets the referrer edge to Referrer by id.
func (*EventCreate) SetScreen ¶
func (ec *EventCreate) SetScreen(s *Screen) *EventCreate
SetScreen sets the screen edge to Screen.
func (*EventCreate) SetScreenID ¶
func (ec *EventCreate) SetScreenID(id int) *EventCreate
SetScreenID sets the screen edge to Screen by id.
func (*EventCreate) SetSession ¶
func (ec *EventCreate) SetSession(s *Session) *EventCreate
SetSession sets the session edge to Session.
func (*EventCreate) SetSessionID ¶
func (ec *EventCreate) SetSessionID(id uuid.UUID) *EventCreate
SetSessionID sets the session edge to Session by id.
func (*EventCreate) SetTimestamp ¶
func (ec *EventCreate) SetTimestamp(t time.Time) *EventCreate
SetTimestamp sets the timestamp field.
func (*EventCreate) SetTiming ¶
func (ec *EventCreate) SetTiming(t *Timing) *EventCreate
SetTiming sets the timing edge to Timing.
func (*EventCreate) SetTimingID ¶
func (ec *EventCreate) SetTimingID(id int) *EventCreate
SetTimingID sets the timing edge to Timing by id.
func (*EventCreate) SetTrackingID ¶
func (ec *EventCreate) SetTrackingID(s string) *EventCreate
SetTrackingID sets the tracking_id field.
func (*EventCreate) SetUser ¶
func (ec *EventCreate) SetUser(u *User) *EventCreate
SetUser sets the user edge to User.
func (*EventCreate) SetUserID ¶
func (ec *EventCreate) SetUserID(id string) *EventCreate
SetUserID sets the user edge to User by id.
func (*EventCreate) SetViewport ¶
func (ec *EventCreate) SetViewport(v *Viewport) *EventCreate
SetViewport sets the viewport edge to Viewport.
func (*EventCreate) SetViewportID ¶
func (ec *EventCreate) SetViewportID(id int) *EventCreate
SetViewportID sets the viewport edge to Viewport by id.
type EventCreateBulk ¶
type EventCreateBulk struct {
// contains filtered or unexported fields
}
EventCreateBulk is the builder for creating a bulk of Event entities.
type EventDelete ¶
type EventDelete struct {
// contains filtered or unexported fields
}
EventDelete is the builder for deleting a Event entity.
func (*EventDelete) Exec ¶
func (ed *EventDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*EventDelete) ExecX ¶
func (ed *EventDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*EventDelete) Where ¶
func (ed *EventDelete) Where(ps ...predicate.Event) *EventDelete
Where adds a new predicate to the delete builder.
type EventDeleteOne ¶
type EventDeleteOne struct {
// contains filtered or unexported fields
}
EventDeleteOne is the builder for deleting a single Event entity.
func (*EventDeleteOne) Exec ¶
func (edo *EventDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*EventDeleteOne) ExecX ¶
func (edo *EventDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type EventEdges ¶
type EventEdges struct { // Action holds the value of the action edge. Action *Action // Alias holds the value of the alias edge. Alias *Alias // App holds the value of the app edge. App *App // Browser holds the value of the browser edge. Browser *Browser // Campaign holds the value of the campaign edge. Campaign *Campaign // Connectivity holds the value of the connectivity edge. Connectivity *Connectivity // Device holds the value of the device edge. Device *Device // Extra holds the value of the extra edge. Extra *Extra // Group holds the value of the group edge. Group *Group // Library holds the value of the library edge. Library *Library // Location holds the value of the location edge. Location *Location // Network holds the value of the network edge. Network *Network // Os holds the value of the os edge. Os *OSContext // Page holds the value of the page edge. Page *Page // Referrer holds the value of the referrer edge. Referrer *Referrer // Screen holds the value of the screen edge. Screen *Screen // Session holds the value of the session edge. Session *Session // Timing holds the value of the timing edge. Timing *Timing // Viewport holds the value of the viewport edge. Viewport *Viewport // User holds the value of the user edge. User *User // contains filtered or unexported fields }
EventEdges holds the relations/edges for other nodes in the graph.
func (EventEdges) ActionOrErr ¶
func (e EventEdges) ActionOrErr() (*Action, error)
ActionOrErr returns the Action value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) AliasOrErr ¶
func (e EventEdges) AliasOrErr() (*Alias, error)
AliasOrErr returns the Alias value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) AppOrErr ¶
func (e EventEdges) AppOrErr() (*App, error)
AppOrErr returns the App value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) BrowserOrErr ¶
func (e EventEdges) BrowserOrErr() (*Browser, error)
BrowserOrErr returns the Browser value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) CampaignOrErr ¶
func (e EventEdges) CampaignOrErr() (*Campaign, error)
CampaignOrErr returns the Campaign value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) ConnectivityOrErr ¶
func (e EventEdges) ConnectivityOrErr() (*Connectivity, error)
ConnectivityOrErr returns the Connectivity value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) DeviceOrErr ¶
func (e EventEdges) DeviceOrErr() (*Device, error)
DeviceOrErr returns the Device value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) ExtraOrErr ¶
func (e EventEdges) ExtraOrErr() (*Extra, error)
ExtraOrErr returns the Extra value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) GroupOrErr ¶
func (e EventEdges) GroupOrErr() (*Group, error)
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) LibraryOrErr ¶
func (e EventEdges) LibraryOrErr() (*Library, error)
LibraryOrErr returns the Library value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) LocationOrErr ¶
func (e EventEdges) LocationOrErr() (*Location, error)
LocationOrErr returns the Location value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) NetworkOrErr ¶
func (e EventEdges) NetworkOrErr() (*Network, error)
NetworkOrErr returns the Network value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) OsOrErr ¶
func (e EventEdges) OsOrErr() (*OSContext, error)
OsOrErr returns the Os value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) PageOrErr ¶
func (e EventEdges) PageOrErr() (*Page, error)
PageOrErr returns the Page value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) ReferrerOrErr ¶
func (e EventEdges) ReferrerOrErr() (*Referrer, error)
ReferrerOrErr returns the Referrer value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) ScreenOrErr ¶
func (e EventEdges) ScreenOrErr() (*Screen, error)
ScreenOrErr returns the Screen value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) SessionOrErr ¶
func (e EventEdges) SessionOrErr() (*Session, error)
SessionOrErr returns the Session value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) TimingOrErr ¶
func (e EventEdges) TimingOrErr() (*Timing, error)
TimingOrErr returns the Timing value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) UserOrErr ¶
func (e EventEdges) 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 (EventEdges) ViewportOrErr ¶
func (e EventEdges) ViewportOrErr() (*Viewport, error)
ViewportOrErr returns the Viewport value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type EventGroupBy ¶
type EventGroupBy struct {
// contains filtered or unexported fields
}
EventGroupBy is the builder for group-by Event entities.
func (*EventGroupBy) Aggregate ¶
func (egb *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*EventGroupBy) Bool ¶
func (egb *EventGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) BoolX ¶
func (egb *EventGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*EventGroupBy) Bools ¶
func (egb *EventGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) BoolsX ¶
func (egb *EventGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*EventGroupBy) Float64 ¶
func (egb *EventGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) Float64X ¶
func (egb *EventGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*EventGroupBy) Float64s ¶
func (egb *EventGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) Float64sX ¶
func (egb *EventGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*EventGroupBy) Int ¶
func (egb *EventGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) IntX ¶
func (egb *EventGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*EventGroupBy) Ints ¶
func (egb *EventGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) IntsX ¶
func (egb *EventGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*EventGroupBy) Scan ¶
func (egb *EventGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*EventGroupBy) ScanX ¶
func (egb *EventGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*EventGroupBy) String ¶
func (egb *EventGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*EventGroupBy) StringX ¶
func (egb *EventGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type EventMutation ¶
type EventMutation struct {
// contains filtered or unexported fields
}
EventMutation represents an operation that mutate the Events nodes in the graph.
func (*EventMutation) ActionCleared ¶
func (m *EventMutation) ActionCleared() bool
ActionCleared returns if the edge action was cleared.
func (*EventMutation) ActionID ¶
func (m *EventMutation) ActionID() (id int, exists bool)
ActionID returns the action id in the mutation.
func (*EventMutation) ActionIDs ¶
func (m *EventMutation) ActionIDs() (ids []int)
ActionIDs returns the action ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use ActionID instead. It exists only for internal usage by the builders.
func (*EventMutation) AddField ¶
func (m *EventMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*EventMutation) AddedEdges ¶
func (m *EventMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*EventMutation) AddedField ¶
func (m *EventMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*EventMutation) AddedFields ¶
func (m *EventMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*EventMutation) AddedIDs ¶
func (m *EventMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*EventMutation) AliasCleared ¶
func (m *EventMutation) AliasCleared() bool
AliasCleared returns if the edge alias was cleared.
func (*EventMutation) AliasID ¶
func (m *EventMutation) AliasID() (id int, exists bool)
AliasID returns the alias id in the mutation.
func (*EventMutation) AliasIDs ¶
func (m *EventMutation) AliasIDs() (ids []int)
AliasIDs returns the alias ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use AliasID instead. It exists only for internal usage by the builders.
func (*EventMutation) AppCleared ¶
func (m *EventMutation) AppCleared() bool
AppCleared returns if the edge app was cleared.
func (*EventMutation) AppID ¶
func (m *EventMutation) AppID() (id int, exists bool)
AppID returns the app id in the mutation.
func (*EventMutation) AppIDs ¶
func (m *EventMutation) AppIDs() (ids []int)
AppIDs returns the app ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use AppID instead. It exists only for internal usage by the builders.
func (*EventMutation) BrowserCleared ¶
func (m *EventMutation) BrowserCleared() bool
BrowserCleared returns if the edge browser was cleared.
func (*EventMutation) BrowserID ¶
func (m *EventMutation) BrowserID() (id int, exists bool)
BrowserID returns the browser id in the mutation.
func (*EventMutation) BrowserIDs ¶
func (m *EventMutation) BrowserIDs() (ids []int)
BrowserIDs returns the browser ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use BrowserID instead. It exists only for internal usage by the builders.
func (*EventMutation) CampaignCleared ¶
func (m *EventMutation) CampaignCleared() bool
CampaignCleared returns if the edge campaign was cleared.
func (*EventMutation) CampaignID ¶
func (m *EventMutation) CampaignID() (id int, exists bool)
CampaignID returns the campaign id in the mutation.
func (*EventMutation) CampaignIDs ¶
func (m *EventMutation) CampaignIDs() (ids []int)
CampaignIDs returns the campaign ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use CampaignID instead. It exists only for internal usage by the builders.
func (*EventMutation) Channel ¶
func (m *EventMutation) Channel() (r string, exists bool)
Channel returns the channel value in the mutation.
func (*EventMutation) ChannelCleared ¶
func (m *EventMutation) ChannelCleared() bool
ChannelCleared returns if the field channel was cleared in this mutation.
func (*EventMutation) ClearAction ¶
func (m *EventMutation) ClearAction()
ClearAction clears the action edge to Action.
func (*EventMutation) ClearAlias ¶
func (m *EventMutation) ClearAlias()
ClearAlias clears the alias edge to Alias.
func (*EventMutation) ClearApp ¶
func (m *EventMutation) ClearApp()
ClearApp clears the app edge to App.
func (*EventMutation) ClearBrowser ¶
func (m *EventMutation) ClearBrowser()
ClearBrowser clears the browser edge to Browser.
func (*EventMutation) ClearCampaign ¶
func (m *EventMutation) ClearCampaign()
ClearCampaign clears the campaign edge to Campaign.
func (*EventMutation) ClearChannel ¶
func (m *EventMutation) ClearChannel()
ClearChannel clears the value of channel.
func (*EventMutation) ClearConnectivity ¶
func (m *EventMutation) ClearConnectivity()
ClearConnectivity clears the connectivity edge to Connectivity.
func (*EventMutation) ClearDevice ¶
func (m *EventMutation) ClearDevice()
ClearDevice clears the device edge to Device.
func (*EventMutation) ClearEdge ¶
func (m *EventMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*EventMutation) ClearExtra ¶
func (m *EventMutation) ClearExtra()
ClearExtra clears the extra edge to Extra.
func (*EventMutation) ClearField ¶
func (m *EventMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*EventMutation) ClearGroup ¶
func (m *EventMutation) ClearGroup()
ClearGroup clears the group edge to Group.
func (*EventMutation) ClearLibrary ¶
func (m *EventMutation) ClearLibrary()
ClearLibrary clears the library edge to Library.
func (*EventMutation) ClearLocation ¶
func (m *EventMutation) ClearLocation()
ClearLocation clears the location edge to Location.
func (*EventMutation) ClearNetwork ¶
func (m *EventMutation) ClearNetwork()
ClearNetwork clears the network edge to Network.
func (*EventMutation) ClearOs ¶
func (m *EventMutation) ClearOs()
ClearOs clears the os edge to OSContext.
func (*EventMutation) ClearPage ¶
func (m *EventMutation) ClearPage()
ClearPage clears the page edge to Page.
func (*EventMutation) ClearPlatform ¶
func (m *EventMutation) ClearPlatform()
ClearPlatform clears the value of platform.
func (*EventMutation) ClearProperties ¶
func (m *EventMutation) ClearProperties()
ClearProperties clears the value of properties.
func (*EventMutation) ClearReferrer ¶
func (m *EventMutation) ClearReferrer()
ClearReferrer clears the referrer edge to Referrer.
func (*EventMutation) ClearScreen ¶
func (m *EventMutation) ClearScreen()
ClearScreen clears the screen edge to Screen.
func (*EventMutation) ClearSession ¶
func (m *EventMutation) ClearSession()
ClearSession clears the session edge to Session.
func (*EventMutation) ClearTiming ¶
func (m *EventMutation) ClearTiming()
ClearTiming clears the timing edge to Timing.
func (*EventMutation) ClearUser ¶
func (m *EventMutation) ClearUser()
ClearUser clears the user edge to User.
func (*EventMutation) ClearViewport ¶
func (m *EventMutation) ClearViewport()
ClearViewport clears the viewport edge to Viewport.
func (*EventMutation) ClearedEdges ¶
func (m *EventMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*EventMutation) ClearedFields ¶
func (m *EventMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (EventMutation) Client ¶
func (m EventMutation) 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 (*EventMutation) ConnectivityCleared ¶
func (m *EventMutation) ConnectivityCleared() bool
ConnectivityCleared returns if the edge connectivity was cleared.
func (*EventMutation) ConnectivityID ¶
func (m *EventMutation) ConnectivityID() (id int, exists bool)
ConnectivityID returns the connectivity id in the mutation.
func (*EventMutation) ConnectivityIDs ¶
func (m *EventMutation) ConnectivityIDs() (ids []int)
ConnectivityIDs returns the connectivity ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use ConnectivityID instead. It exists only for internal usage by the builders.
func (*EventMutation) DeviceCleared ¶
func (m *EventMutation) DeviceCleared() bool
DeviceCleared returns if the edge device was cleared.
func (*EventMutation) DeviceID ¶
func (m *EventMutation) DeviceID() (id string, exists bool)
DeviceID returns the device id in the mutation.
func (*EventMutation) DeviceIDs ¶
func (m *EventMutation) DeviceIDs() (ids []string)
DeviceIDs returns the device ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use DeviceID instead. It exists only for internal usage by the builders.
func (*EventMutation) EdgeCleared ¶
func (m *EventMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*EventMutation) Event ¶
func (m *EventMutation) Event() (r event.Event, exists bool)
Event returns the event value in the mutation.
func (*EventMutation) ExtraCleared ¶
func (m *EventMutation) ExtraCleared() bool
ExtraCleared returns if the edge extra was cleared.
func (*EventMutation) ExtraID ¶
func (m *EventMutation) ExtraID() (id int, exists bool)
ExtraID returns the extra id in the mutation.
func (*EventMutation) ExtraIDs ¶
func (m *EventMutation) ExtraIDs() (ids []int)
ExtraIDs returns the extra ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use ExtraID instead. It exists only for internal usage by the builders.
func (*EventMutation) Field ¶
func (m *EventMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*EventMutation) FieldCleared ¶
func (m *EventMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*EventMutation) Fields ¶
func (m *EventMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*EventMutation) GroupCleared ¶
func (m *EventMutation) GroupCleared() bool
GroupCleared returns if the edge group was cleared.
func (*EventMutation) GroupID ¶
func (m *EventMutation) GroupID() (id int, exists bool)
GroupID returns the group id in the mutation.
func (*EventMutation) GroupIDs ¶
func (m *EventMutation) GroupIDs() (ids []int)
GroupIDs returns the group ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use GroupID instead. It exists only for internal usage by the builders.
func (*EventMutation) ID ¶
func (m *EventMutation) ID() (id uuid.UUID, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*EventMutation) LibraryCleared ¶
func (m *EventMutation) LibraryCleared() bool
LibraryCleared returns if the edge library was cleared.
func (*EventMutation) LibraryID ¶
func (m *EventMutation) LibraryID() (id int, exists bool)
LibraryID returns the library id in the mutation.
func (*EventMutation) LibraryIDs ¶
func (m *EventMutation) LibraryIDs() (ids []int)
LibraryIDs returns the library ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use LibraryID instead. It exists only for internal usage by the builders.
func (*EventMutation) LocationCleared ¶
func (m *EventMutation) LocationCleared() bool
LocationCleared returns if the edge location was cleared.
func (*EventMutation) LocationID ¶
func (m *EventMutation) LocationID() (id int, exists bool)
LocationID returns the location id in the mutation.
func (*EventMutation) LocationIDs ¶
func (m *EventMutation) LocationIDs() (ids []int)
LocationIDs returns the location ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use LocationID instead. It exists only for internal usage by the builders.
func (*EventMutation) NetworkCleared ¶
func (m *EventMutation) NetworkCleared() bool
NetworkCleared returns if the edge network was cleared.
func (*EventMutation) NetworkID ¶
func (m *EventMutation) NetworkID() (id int, exists bool)
NetworkID returns the network id in the mutation.
func (*EventMutation) NetworkIDs ¶
func (m *EventMutation) NetworkIDs() (ids []int)
NetworkIDs returns the network ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use NetworkID instead. It exists only for internal usage by the builders.
func (*EventMutation) NonInteractive ¶
func (m *EventMutation) NonInteractive() (r bool, exists bool)
NonInteractive returns the non_interactive value in the mutation.
func (*EventMutation) OldChannel ¶
func (m *EventMutation) OldChannel(ctx context.Context) (v string, err error)
OldChannel returns the old channel value of the Event. If the Event 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 database query fails.
func (*EventMutation) OldEvent ¶
OldEvent returns the old event value of the Event. If the Event 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 database query fails.
func (*EventMutation) 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 was failed.
func (*EventMutation) OldNonInteractive ¶
func (m *EventMutation) OldNonInteractive(ctx context.Context) (v bool, err error)
OldNonInteractive returns the old non_interactive value of the Event. If the Event 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 database query fails.
func (*EventMutation) OldPlatform ¶
func (m *EventMutation) OldPlatform(ctx context.Context) (v string, err error)
OldPlatform returns the old platform value of the Event. If the Event 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 database query fails.
func (*EventMutation) OldProperties ¶
func (m *EventMutation) OldProperties(ctx context.Context) (v map[string]interface{}, err error)
OldProperties returns the old properties value of the Event. If the Event 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 database query fails.
func (*EventMutation) OldTimestamp ¶
OldTimestamp returns the old timestamp value of the Event. If the Event 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 database query fails.
func (*EventMutation) OldTrackingID ¶
func (m *EventMutation) OldTrackingID(ctx context.Context) (v string, err error)
OldTrackingID returns the old tracking_id value of the Event. If the Event 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 database query fails.
func (*EventMutation) OsCleared ¶
func (m *EventMutation) OsCleared() bool
OsCleared returns if the edge os was cleared.
func (*EventMutation) OsID ¶
func (m *EventMutation) OsID() (id int, exists bool)
OsID returns the os id in the mutation.
func (*EventMutation) OsIDs ¶
func (m *EventMutation) OsIDs() (ids []int)
OsIDs returns the os ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use OsID instead. It exists only for internal usage by the builders.
func (*EventMutation) PageCleared ¶
func (m *EventMutation) PageCleared() bool
PageCleared returns if the edge page was cleared.
func (*EventMutation) PageID ¶
func (m *EventMutation) PageID() (id int, exists bool)
PageID returns the page id in the mutation.
func (*EventMutation) PageIDs ¶
func (m *EventMutation) PageIDs() (ids []int)
PageIDs returns the page ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use PageID instead. It exists only for internal usage by the builders.
func (*EventMutation) Platform ¶
func (m *EventMutation) Platform() (r string, exists bool)
Platform returns the platform value in the mutation.
func (*EventMutation) PlatformCleared ¶
func (m *EventMutation) PlatformCleared() bool
PlatformCleared returns if the field platform was cleared in this mutation.
func (*EventMutation) Properties ¶
func (m *EventMutation) Properties() (r map[string]interface{}, exists bool)
Properties returns the properties value in the mutation.
func (*EventMutation) PropertiesCleared ¶
func (m *EventMutation) PropertiesCleared() bool
PropertiesCleared returns if the field properties was cleared in this mutation.
func (*EventMutation) ReferrerCleared ¶
func (m *EventMutation) ReferrerCleared() bool
ReferrerCleared returns if the edge referrer was cleared.
func (*EventMutation) ReferrerID ¶
func (m *EventMutation) ReferrerID() (id int, exists bool)
ReferrerID returns the referrer id in the mutation.
func (*EventMutation) ReferrerIDs ¶
func (m *EventMutation) ReferrerIDs() (ids []int)
ReferrerIDs returns the referrer ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use ReferrerID instead. It exists only for internal usage by the builders.
func (*EventMutation) RemovedEdges ¶
func (m *EventMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*EventMutation) RemovedIDs ¶
func (m *EventMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*EventMutation) ResetAction ¶
func (m *EventMutation) ResetAction()
ResetAction reset all changes of the "action" edge.
func (*EventMutation) ResetAlias ¶
func (m *EventMutation) ResetAlias()
ResetAlias reset all changes of the "alias" edge.
func (*EventMutation) ResetApp ¶
func (m *EventMutation) ResetApp()
ResetApp reset all changes of the "app" edge.
func (*EventMutation) ResetBrowser ¶
func (m *EventMutation) ResetBrowser()
ResetBrowser reset all changes of the "browser" edge.
func (*EventMutation) ResetCampaign ¶
func (m *EventMutation) ResetCampaign()
ResetCampaign reset all changes of the "campaign" edge.
func (*EventMutation) ResetChannel ¶
func (m *EventMutation) ResetChannel()
ResetChannel reset all changes of the "channel" field.
func (*EventMutation) ResetConnectivity ¶
func (m *EventMutation) ResetConnectivity()
ResetConnectivity reset all changes of the "connectivity" edge.
func (*EventMutation) ResetDevice ¶
func (m *EventMutation) ResetDevice()
ResetDevice reset all changes of the "device" edge.
func (*EventMutation) ResetEdge ¶
func (m *EventMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*EventMutation) ResetEvent ¶
func (m *EventMutation) ResetEvent()
ResetEvent reset all changes of the "event" field.
func (*EventMutation) ResetExtra ¶
func (m *EventMutation) ResetExtra()
ResetExtra reset all changes of the "extra" edge.
func (*EventMutation) ResetField ¶
func (m *EventMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*EventMutation) ResetGroup ¶
func (m *EventMutation) ResetGroup()
ResetGroup reset all changes of the "group" edge.
func (*EventMutation) ResetLibrary ¶
func (m *EventMutation) ResetLibrary()
ResetLibrary reset all changes of the "library" edge.
func (*EventMutation) ResetLocation ¶
func (m *EventMutation) ResetLocation()
ResetLocation reset all changes of the "location" edge.
func (*EventMutation) ResetNetwork ¶
func (m *EventMutation) ResetNetwork()
ResetNetwork reset all changes of the "network" edge.
func (*EventMutation) ResetNonInteractive ¶
func (m *EventMutation) ResetNonInteractive()
ResetNonInteractive reset all changes of the "non_interactive" field.
func (*EventMutation) ResetOs ¶
func (m *EventMutation) ResetOs()
ResetOs reset all changes of the "os" edge.
func (*EventMutation) ResetPage ¶
func (m *EventMutation) ResetPage()
ResetPage reset all changes of the "page" edge.
func (*EventMutation) ResetPlatform ¶
func (m *EventMutation) ResetPlatform()
ResetPlatform reset all changes of the "platform" field.
func (*EventMutation) ResetProperties ¶
func (m *EventMutation) ResetProperties()
ResetProperties reset all changes of the "properties" field.
func (*EventMutation) ResetReferrer ¶
func (m *EventMutation) ResetReferrer()
ResetReferrer reset all changes of the "referrer" edge.
func (*EventMutation) ResetScreen ¶
func (m *EventMutation) ResetScreen()
ResetScreen reset all changes of the "screen" edge.
func (*EventMutation) ResetSession ¶
func (m *EventMutation) ResetSession()
ResetSession reset all changes of the "session" edge.
func (*EventMutation) ResetTimestamp ¶
func (m *EventMutation) ResetTimestamp()
ResetTimestamp reset all changes of the "timestamp" field.
func (*EventMutation) ResetTiming ¶
func (m *EventMutation) ResetTiming()
ResetTiming reset all changes of the "timing" edge.
func (*EventMutation) ResetTrackingID ¶
func (m *EventMutation) ResetTrackingID()
ResetTrackingID reset all changes of the "tracking_id" field.
func (*EventMutation) ResetUser ¶
func (m *EventMutation) ResetUser()
ResetUser reset all changes of the "user" edge.
func (*EventMutation) ResetViewport ¶
func (m *EventMutation) ResetViewport()
ResetViewport reset all changes of the "viewport" edge.
func (*EventMutation) ScreenCleared ¶
func (m *EventMutation) ScreenCleared() bool
ScreenCleared returns if the edge screen was cleared.
func (*EventMutation) ScreenID ¶
func (m *EventMutation) ScreenID() (id int, exists bool)
ScreenID returns the screen id in the mutation.
func (*EventMutation) ScreenIDs ¶
func (m *EventMutation) ScreenIDs() (ids []int)
ScreenIDs returns the screen ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use ScreenID instead. It exists only for internal usage by the builders.
func (*EventMutation) SessionCleared ¶
func (m *EventMutation) SessionCleared() bool
SessionCleared returns if the edge session was cleared.
func (*EventMutation) SessionID ¶
func (m *EventMutation) SessionID() (id uuid.UUID, exists bool)
SessionID returns the session id in the mutation.
func (*EventMutation) SessionIDs ¶
func (m *EventMutation) SessionIDs() (ids []uuid.UUID)
SessionIDs returns the session ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use SessionID instead. It exists only for internal usage by the builders.
func (*EventMutation) SetActionID ¶
func (m *EventMutation) SetActionID(id int)
SetActionID sets the action edge to Action by id.
func (*EventMutation) SetAliasID ¶
func (m *EventMutation) SetAliasID(id int)
SetAliasID sets the alias edge to Alias by id.
func (*EventMutation) SetAppID ¶
func (m *EventMutation) SetAppID(id int)
SetAppID sets the app edge to App by id.
func (*EventMutation) SetBrowserID ¶
func (m *EventMutation) SetBrowserID(id int)
SetBrowserID sets the browser edge to Browser by id.
func (*EventMutation) SetCampaignID ¶
func (m *EventMutation) SetCampaignID(id int)
SetCampaignID sets the campaign edge to Campaign by id.
func (*EventMutation) SetChannel ¶
func (m *EventMutation) SetChannel(s string)
SetChannel sets the channel field.
func (*EventMutation) SetConnectivityID ¶
func (m *EventMutation) SetConnectivityID(id int)
SetConnectivityID sets the connectivity edge to Connectivity by id.
func (*EventMutation) SetDeviceID ¶
func (m *EventMutation) SetDeviceID(id string)
SetDeviceID sets the device edge to Device by id.
func (*EventMutation) SetEvent ¶
func (m *EventMutation) SetEvent(e event.Event)
SetEvent sets the event field.
func (*EventMutation) SetExtraID ¶
func (m *EventMutation) SetExtraID(id int)
SetExtraID sets the extra edge to Extra by id.
func (*EventMutation) SetField ¶
func (m *EventMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*EventMutation) SetGroupID ¶
func (m *EventMutation) SetGroupID(id int)
SetGroupID sets the group edge to Group by id.
func (*EventMutation) SetID ¶
func (m *EventMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that, this operation is accepted only on Event creation.
func (*EventMutation) SetLibraryID ¶
func (m *EventMutation) SetLibraryID(id int)
SetLibraryID sets the library edge to Library by id.
func (*EventMutation) SetLocationID ¶
func (m *EventMutation) SetLocationID(id int)
SetLocationID sets the location edge to Location by id.
func (*EventMutation) SetNetworkID ¶
func (m *EventMutation) SetNetworkID(id int)
SetNetworkID sets the network edge to Network by id.
func (*EventMutation) SetNonInteractive ¶
func (m *EventMutation) SetNonInteractive(b bool)
SetNonInteractive sets the non_interactive field.
func (*EventMutation) SetOsID ¶
func (m *EventMutation) SetOsID(id int)
SetOsID sets the os edge to OSContext by id.
func (*EventMutation) SetPageID ¶
func (m *EventMutation) SetPageID(id int)
SetPageID sets the page edge to Page by id.
func (*EventMutation) SetPlatform ¶
func (m *EventMutation) SetPlatform(s string)
SetPlatform sets the platform field.
func (*EventMutation) SetProperties ¶
func (m *EventMutation) SetProperties(value map[string]interface{})
SetProperties sets the properties field.
func (*EventMutation) SetReferrerID ¶
func (m *EventMutation) SetReferrerID(id int)
SetReferrerID sets the referrer edge to Referrer by id.
func (*EventMutation) SetScreenID ¶
func (m *EventMutation) SetScreenID(id int)
SetScreenID sets the screen edge to Screen by id.
func (*EventMutation) SetSessionID ¶
func (m *EventMutation) SetSessionID(id uuid.UUID)
SetSessionID sets the session edge to Session by id.
func (*EventMutation) SetTimestamp ¶
func (m *EventMutation) SetTimestamp(t time.Time)
SetTimestamp sets the timestamp field.
func (*EventMutation) SetTimingID ¶
func (m *EventMutation) SetTimingID(id int)
SetTimingID sets the timing edge to Timing by id.
func (*EventMutation) SetTrackingID ¶
func (m *EventMutation) SetTrackingID(s string)
SetTrackingID sets the tracking_id field.
func (*EventMutation) SetUserID ¶
func (m *EventMutation) SetUserID(id string)
SetUserID sets the user edge to User by id.
func (*EventMutation) SetViewportID ¶
func (m *EventMutation) SetViewportID(id int)
SetViewportID sets the viewport edge to Viewport by id.
func (*EventMutation) Timestamp ¶
func (m *EventMutation) Timestamp() (r time.Time, exists bool)
Timestamp returns the timestamp value in the mutation.
func (*EventMutation) TimingCleared ¶
func (m *EventMutation) TimingCleared() bool
TimingCleared returns if the edge timing was cleared.
func (*EventMutation) TimingID ¶
func (m *EventMutation) TimingID() (id int, exists bool)
TimingID returns the timing id in the mutation.
func (*EventMutation) TimingIDs ¶
func (m *EventMutation) TimingIDs() (ids []int)
TimingIDs returns the timing ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use TimingID instead. It exists only for internal usage by the builders.
func (*EventMutation) TrackingID ¶
func (m *EventMutation) TrackingID() (r string, exists bool)
TrackingID returns the tracking_id value in the mutation.
func (EventMutation) Tx ¶
func (m EventMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*EventMutation) Type ¶
func (m *EventMutation) Type() string
Type returns the node type of this mutation (Event).
func (*EventMutation) UserCleared ¶
func (m *EventMutation) UserCleared() bool
UserCleared returns if the edge user was cleared.
func (*EventMutation) UserID ¶
func (m *EventMutation) UserID() (id string, exists bool)
UserID returns the user id in the mutation.
func (*EventMutation) UserIDs ¶
func (m *EventMutation) UserIDs() (ids []string)
UserIDs returns the user 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 (*EventMutation) ViewportCleared ¶
func (m *EventMutation) ViewportCleared() bool
ViewportCleared returns if the edge viewport was cleared.
func (*EventMutation) ViewportID ¶
func (m *EventMutation) ViewportID() (id int, exists bool)
ViewportID returns the viewport id in the mutation.
func (*EventMutation) ViewportIDs ¶
func (m *EventMutation) ViewportIDs() (ids []int)
ViewportIDs returns the viewport ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use ViewportID instead. It exists only for internal usage by the builders.
type EventQuery ¶
type EventQuery struct {
// contains filtered or unexported fields
}
EventQuery is the builder for querying Event entities.
func (*EventQuery) All ¶
func (eq *EventQuery) All(ctx context.Context) ([]*Event, error)
All executes the query and returns a list of Events.
func (*EventQuery) AllX ¶
func (eq *EventQuery) AllX(ctx context.Context) []*Event
AllX is like All, but panics if an error occurs.
func (*EventQuery) Clone ¶
func (eq *EventQuery) Clone() *EventQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*EventQuery) Count ¶
func (eq *EventQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*EventQuery) CountX ¶
func (eq *EventQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*EventQuery) Exist ¶
func (eq *EventQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*EventQuery) ExistX ¶
func (eq *EventQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*EventQuery) First ¶
func (eq *EventQuery) First(ctx context.Context) (*Event, error)
First returns the first Event entity in the query. Returns *NotFoundError when no event was found.
func (*EventQuery) FirstID ¶
FirstID returns the first Event id in the query. Returns *NotFoundError when no id was found.
func (*EventQuery) FirstX ¶
func (eq *EventQuery) FirstX(ctx context.Context) *Event
FirstX is like First, but panics if an error occurs.
func (*EventQuery) FirstXID ¶
func (eq *EventQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*EventQuery) GroupBy ¶
func (eq *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy
GroupBy 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 { TrackingID string `json:"tracking_id,omitempty"` Count int `json:"count,omitempty"` } client.Event.Query(). GroupBy(event.FieldTrackingID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*EventQuery) IDsX ¶
func (eq *EventQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*EventQuery) Limit ¶
func (eq *EventQuery) Limit(limit int) *EventQuery
Limit adds a limit step to the query.
func (*EventQuery) Offset ¶
func (eq *EventQuery) Offset(offset int) *EventQuery
Offset adds an offset step to the query.
func (*EventQuery) Only ¶
func (eq *EventQuery) Only(ctx context.Context) (*Event, error)
Only returns the only Event entity in the query, returns an error if not exactly one entity was returned.
func (*EventQuery) OnlyID ¶
OnlyID returns the only Event id in the query, returns an error if not exactly one id was returned.
func (*EventQuery) OnlyIDX ¶
func (eq *EventQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*EventQuery) OnlyX ¶
func (eq *EventQuery) OnlyX(ctx context.Context) *Event
OnlyX is like Only, but panics if an error occurs.
func (*EventQuery) Order ¶
func (eq *EventQuery) Order(o ...OrderFunc) *EventQuery
Order adds an order step to the query.
func (*EventQuery) QueryAction ¶
func (eq *EventQuery) QueryAction() *ActionQuery
QueryAction chains the current query on the action edge.
func (*EventQuery) QueryAlias ¶
func (eq *EventQuery) QueryAlias() *AliasQuery
QueryAlias chains the current query on the alias edge.
func (*EventQuery) QueryApp ¶
func (eq *EventQuery) QueryApp() *AppQuery
QueryApp chains the current query on the app edge.
func (*EventQuery) QueryBrowser ¶
func (eq *EventQuery) QueryBrowser() *BrowserQuery
QueryBrowser chains the current query on the browser edge.
func (*EventQuery) QueryCampaign ¶
func (eq *EventQuery) QueryCampaign() *CampaignQuery
QueryCampaign chains the current query on the campaign edge.
func (*EventQuery) QueryConnectivity ¶
func (eq *EventQuery) QueryConnectivity() *ConnectivityQuery
QueryConnectivity chains the current query on the connectivity edge.
func (*EventQuery) QueryDevice ¶
func (eq *EventQuery) QueryDevice() *DeviceQuery
QueryDevice chains the current query on the device edge.
func (*EventQuery) QueryExtra ¶
func (eq *EventQuery) QueryExtra() *ExtraQuery
QueryExtra chains the current query on the extra edge.
func (*EventQuery) QueryGroup ¶
func (eq *EventQuery) QueryGroup() *GroupQuery
QueryGroup chains the current query on the group edge.
func (*EventQuery) QueryLibrary ¶
func (eq *EventQuery) QueryLibrary() *LibraryQuery
QueryLibrary chains the current query on the library edge.
func (*EventQuery) QueryLocation ¶
func (eq *EventQuery) QueryLocation() *LocationQuery
QueryLocation chains the current query on the location edge.
func (*EventQuery) QueryNetwork ¶
func (eq *EventQuery) QueryNetwork() *NetworkQuery
QueryNetwork chains the current query on the network edge.
func (*EventQuery) QueryOs ¶
func (eq *EventQuery) QueryOs() *OSContextQuery
QueryOs chains the current query on the os edge.
func (*EventQuery) QueryPage ¶
func (eq *EventQuery) QueryPage() *PageQuery
QueryPage chains the current query on the page edge.
func (*EventQuery) QueryReferrer ¶
func (eq *EventQuery) QueryReferrer() *ReferrerQuery
QueryReferrer chains the current query on the referrer edge.
func (*EventQuery) QueryScreen ¶
func (eq *EventQuery) QueryScreen() *ScreenQuery
QueryScreen chains the current query on the screen edge.
func (*EventQuery) QuerySession ¶
func (eq *EventQuery) QuerySession() *SessionQuery
QuerySession chains the current query on the session edge.
func (*EventQuery) QueryTiming ¶
func (eq *EventQuery) QueryTiming() *TimingQuery
QueryTiming chains the current query on the timing edge.
func (*EventQuery) QueryUser ¶
func (eq *EventQuery) QueryUser() *UserQuery
QueryUser chains the current query on the user edge.
func (*EventQuery) QueryViewport ¶
func (eq *EventQuery) QueryViewport() *ViewportQuery
QueryViewport chains the current query on the viewport edge.
func (*EventQuery) Select ¶
func (eq *EventQuery) Select(field string, fields ...string) *EventSelect
Select one or more fields from the given query.
Example:
var v []struct { TrackingID string `json:"tracking_id,omitempty"` } client.Event.Query(). Select(event.FieldTrackingID). Scan(ctx, &v)
func (*EventQuery) Where ¶
func (eq *EventQuery) Where(ps ...predicate.Event) *EventQuery
Where adds a new predicate for the builder.
func (*EventQuery) WithAction ¶
func (eq *EventQuery) WithAction(opts ...func(*ActionQuery)) *EventQuery
WithAction tells the query-builder to eager-loads the nodes that are connected to
the "action" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithAlias ¶
func (eq *EventQuery) WithAlias(opts ...func(*AliasQuery)) *EventQuery
WithAlias tells the query-builder to eager-loads the nodes that are connected to
the "alias" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithApp ¶
func (eq *EventQuery) WithApp(opts ...func(*AppQuery)) *EventQuery
WithApp tells the query-builder to eager-loads the nodes that are connected to
the "app" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithBrowser ¶
func (eq *EventQuery) WithBrowser(opts ...func(*BrowserQuery)) *EventQuery
WithBrowser tells the query-builder to eager-loads the nodes that are connected to
the "browser" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithCampaign ¶
func (eq *EventQuery) WithCampaign(opts ...func(*CampaignQuery)) *EventQuery
WithCampaign tells the query-builder to eager-loads the nodes that are connected to
the "campaign" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithConnectivity ¶
func (eq *EventQuery) WithConnectivity(opts ...func(*ConnectivityQuery)) *EventQuery
WithConnectivity tells the query-builder to eager-loads the nodes that are connected to
the "connectivity" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithDevice ¶
func (eq *EventQuery) WithDevice(opts ...func(*DeviceQuery)) *EventQuery
WithDevice tells the query-builder to eager-loads the nodes that are connected to
the "device" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithExtra ¶
func (eq *EventQuery) WithExtra(opts ...func(*ExtraQuery)) *EventQuery
WithExtra tells the query-builder to eager-loads the nodes that are connected to
the "extra" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithGroup ¶
func (eq *EventQuery) WithGroup(opts ...func(*GroupQuery)) *EventQuery
WithGroup tells the query-builder to eager-loads the nodes that are connected to
the "group" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithLibrary ¶
func (eq *EventQuery) WithLibrary(opts ...func(*LibraryQuery)) *EventQuery
WithLibrary tells the query-builder to eager-loads the nodes that are connected to
the "library" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithLocation ¶
func (eq *EventQuery) WithLocation(opts ...func(*LocationQuery)) *EventQuery
WithLocation tells the query-builder to eager-loads the nodes that are connected to
the "location" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithNetwork ¶
func (eq *EventQuery) WithNetwork(opts ...func(*NetworkQuery)) *EventQuery
WithNetwork tells the query-builder to eager-loads the nodes that are connected to
the "network" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithOs ¶
func (eq *EventQuery) WithOs(opts ...func(*OSContextQuery)) *EventQuery
WithOs tells the query-builder to eager-loads the nodes that are connected to
the "os" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithPage ¶
func (eq *EventQuery) WithPage(opts ...func(*PageQuery)) *EventQuery
WithPage tells the query-builder to eager-loads the nodes that are connected to
the "page" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithReferrer ¶
func (eq *EventQuery) WithReferrer(opts ...func(*ReferrerQuery)) *EventQuery
WithReferrer tells the query-builder to eager-loads the nodes that are connected to
the "referrer" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithScreen ¶
func (eq *EventQuery) WithScreen(opts ...func(*ScreenQuery)) *EventQuery
WithScreen tells the query-builder to eager-loads the nodes that are connected to
the "screen" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithSession ¶
func (eq *EventQuery) WithSession(opts ...func(*SessionQuery)) *EventQuery
WithSession tells the query-builder to eager-loads the nodes that are connected to
the "session" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithTiming ¶
func (eq *EventQuery) WithTiming(opts ...func(*TimingQuery)) *EventQuery
WithTiming tells the query-builder to eager-loads the nodes that are connected to
the "timing" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithUser ¶
func (eq *EventQuery) WithUser(opts ...func(*UserQuery)) *EventQuery
WithUser tells the query-builder to eager-loads the nodes that are connected to
the "user" edge. The optional arguments used to configure the query builder of the edge.
func (*EventQuery) WithViewport ¶
func (eq *EventQuery) WithViewport(opts ...func(*ViewportQuery)) *EventQuery
WithViewport tells the query-builder to eager-loads the nodes that are connected to
the "viewport" edge. The optional arguments used to configure the query builder of the edge.
type EventSelect ¶
type EventSelect struct {
// contains filtered or unexported fields
}
EventSelect is the builder for select fields of Event entities.
func (*EventSelect) Bool ¶
func (es *EventSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*EventSelect) BoolX ¶
func (es *EventSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*EventSelect) Bools ¶
func (es *EventSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*EventSelect) BoolsX ¶
func (es *EventSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*EventSelect) Float64 ¶
func (es *EventSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*EventSelect) Float64X ¶
func (es *EventSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*EventSelect) Float64s ¶
func (es *EventSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*EventSelect) Float64sX ¶
func (es *EventSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*EventSelect) Int ¶
func (es *EventSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*EventSelect) IntX ¶
func (es *EventSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*EventSelect) Ints ¶
func (es *EventSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*EventSelect) IntsX ¶
func (es *EventSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*EventSelect) Scan ¶
func (es *EventSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*EventSelect) ScanX ¶
func (es *EventSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*EventSelect) String ¶
func (es *EventSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*EventSelect) StringX ¶
func (es *EventSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type EventUpdate ¶
type EventUpdate struct {
// contains filtered or unexported fields
}
EventUpdate is the builder for updating Event entities.
func (*EventUpdate) ClearAction ¶
func (eu *EventUpdate) ClearAction() *EventUpdate
ClearAction clears the action edge to Action.
func (*EventUpdate) ClearAlias ¶
func (eu *EventUpdate) ClearAlias() *EventUpdate
ClearAlias clears the alias edge to Alias.
func (*EventUpdate) ClearApp ¶
func (eu *EventUpdate) ClearApp() *EventUpdate
ClearApp clears the app edge to App.
func (*EventUpdate) ClearBrowser ¶
func (eu *EventUpdate) ClearBrowser() *EventUpdate
ClearBrowser clears the browser edge to Browser.
func (*EventUpdate) ClearCampaign ¶
func (eu *EventUpdate) ClearCampaign() *EventUpdate
ClearCampaign clears the campaign edge to Campaign.
func (*EventUpdate) ClearChannel ¶
func (eu *EventUpdate) ClearChannel() *EventUpdate
ClearChannel clears the value of channel.
func (*EventUpdate) ClearConnectivity ¶
func (eu *EventUpdate) ClearConnectivity() *EventUpdate
ClearConnectivity clears the connectivity edge to Connectivity.
func (*EventUpdate) ClearDevice ¶
func (eu *EventUpdate) ClearDevice() *EventUpdate
ClearDevice clears the device edge to Device.
func (*EventUpdate) ClearExtra ¶
func (eu *EventUpdate) ClearExtra() *EventUpdate
ClearExtra clears the extra edge to Extra.
func (*EventUpdate) ClearGroup ¶
func (eu *EventUpdate) ClearGroup() *EventUpdate
ClearGroup clears the group edge to Group.
func (*EventUpdate) ClearLibrary ¶
func (eu *EventUpdate) ClearLibrary() *EventUpdate
ClearLibrary clears the library edge to Library.
func (*EventUpdate) ClearLocation ¶
func (eu *EventUpdate) ClearLocation() *EventUpdate
ClearLocation clears the location edge to Location.
func (*EventUpdate) ClearNetwork ¶
func (eu *EventUpdate) ClearNetwork() *EventUpdate
ClearNetwork clears the network edge to Network.
func (*EventUpdate) ClearOs ¶
func (eu *EventUpdate) ClearOs() *EventUpdate
ClearOs clears the os edge to OSContext.
func (*EventUpdate) ClearPage ¶
func (eu *EventUpdate) ClearPage() *EventUpdate
ClearPage clears the page edge to Page.
func (*EventUpdate) ClearPlatform ¶
func (eu *EventUpdate) ClearPlatform() *EventUpdate
ClearPlatform clears the value of platform.
func (*EventUpdate) ClearProperties ¶
func (eu *EventUpdate) ClearProperties() *EventUpdate
ClearProperties clears the value of properties.
func (*EventUpdate) ClearReferrer ¶
func (eu *EventUpdate) ClearReferrer() *EventUpdate
ClearReferrer clears the referrer edge to Referrer.
func (*EventUpdate) ClearScreen ¶
func (eu *EventUpdate) ClearScreen() *EventUpdate
ClearScreen clears the screen edge to Screen.
func (*EventUpdate) ClearSession ¶
func (eu *EventUpdate) ClearSession() *EventUpdate
ClearSession clears the session edge to Session.
func (*EventUpdate) ClearTiming ¶
func (eu *EventUpdate) ClearTiming() *EventUpdate
ClearTiming clears the timing edge to Timing.
func (*EventUpdate) ClearUser ¶
func (eu *EventUpdate) ClearUser() *EventUpdate
ClearUser clears the user edge to User.
func (*EventUpdate) ClearViewport ¶
func (eu *EventUpdate) ClearViewport() *EventUpdate
ClearViewport clears the viewport edge to Viewport.
func (*EventUpdate) Exec ¶
func (eu *EventUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*EventUpdate) ExecX ¶
func (eu *EventUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpdate) Mutation ¶
func (eu *EventUpdate) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventUpdate) Save ¶
func (eu *EventUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*EventUpdate) SaveX ¶
func (eu *EventUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*EventUpdate) SetAction ¶
func (eu *EventUpdate) SetAction(a *Action) *EventUpdate
SetAction sets the action edge to Action.
func (*EventUpdate) SetActionID ¶
func (eu *EventUpdate) SetActionID(id int) *EventUpdate
SetActionID sets the action edge to Action by id.
func (*EventUpdate) SetAlias ¶
func (eu *EventUpdate) SetAlias(a *Alias) *EventUpdate
SetAlias sets the alias edge to Alias.
func (*EventUpdate) SetAliasID ¶
func (eu *EventUpdate) SetAliasID(id int) *EventUpdate
SetAliasID sets the alias edge to Alias by id.
func (*EventUpdate) SetApp ¶
func (eu *EventUpdate) SetApp(a *App) *EventUpdate
SetApp sets the app edge to App.
func (*EventUpdate) SetAppID ¶
func (eu *EventUpdate) SetAppID(id int) *EventUpdate
SetAppID sets the app edge to App by id.
func (*EventUpdate) SetBrowser ¶
func (eu *EventUpdate) SetBrowser(b *Browser) *EventUpdate
SetBrowser sets the browser edge to Browser.
func (*EventUpdate) SetBrowserID ¶
func (eu *EventUpdate) SetBrowserID(id int) *EventUpdate
SetBrowserID sets the browser edge to Browser by id.
func (*EventUpdate) SetCampaign ¶
func (eu *EventUpdate) SetCampaign(c *Campaign) *EventUpdate
SetCampaign sets the campaign edge to Campaign.
func (*EventUpdate) SetCampaignID ¶
func (eu *EventUpdate) SetCampaignID(id int) *EventUpdate
SetCampaignID sets the campaign edge to Campaign by id.
func (*EventUpdate) SetChannel ¶
func (eu *EventUpdate) SetChannel(s string) *EventUpdate
SetChannel sets the channel field.
func (*EventUpdate) SetConnectivity ¶
func (eu *EventUpdate) SetConnectivity(c *Connectivity) *EventUpdate
SetConnectivity sets the connectivity edge to Connectivity.
func (*EventUpdate) SetConnectivityID ¶
func (eu *EventUpdate) SetConnectivityID(id int) *EventUpdate
SetConnectivityID sets the connectivity edge to Connectivity by id.
func (*EventUpdate) SetDevice ¶
func (eu *EventUpdate) SetDevice(d *Device) *EventUpdate
SetDevice sets the device edge to Device.
func (*EventUpdate) SetDeviceID ¶
func (eu *EventUpdate) SetDeviceID(id string) *EventUpdate
SetDeviceID sets the device edge to Device by id.
func (*EventUpdate) SetEvent ¶
func (eu *EventUpdate) SetEvent(e event.Event) *EventUpdate
SetEvent sets the event field.
func (*EventUpdate) SetExtra ¶
func (eu *EventUpdate) SetExtra(e *Extra) *EventUpdate
SetExtra sets the extra edge to Extra.
func (*EventUpdate) SetExtraID ¶
func (eu *EventUpdate) SetExtraID(id int) *EventUpdate
SetExtraID sets the extra edge to Extra by id.
func (*EventUpdate) SetGroup ¶
func (eu *EventUpdate) SetGroup(g *Group) *EventUpdate
SetGroup sets the group edge to Group.
func (*EventUpdate) SetGroupID ¶
func (eu *EventUpdate) SetGroupID(id int) *EventUpdate
SetGroupID sets the group edge to Group by id.
func (*EventUpdate) SetLibrary ¶
func (eu *EventUpdate) SetLibrary(l *Library) *EventUpdate
SetLibrary sets the library edge to Library.
func (*EventUpdate) SetLibraryID ¶
func (eu *EventUpdate) SetLibraryID(id int) *EventUpdate
SetLibraryID sets the library edge to Library by id.
func (*EventUpdate) SetLocation ¶
func (eu *EventUpdate) SetLocation(l *Location) *EventUpdate
SetLocation sets the location edge to Location.
func (*EventUpdate) SetLocationID ¶
func (eu *EventUpdate) SetLocationID(id int) *EventUpdate
SetLocationID sets the location edge to Location by id.
func (*EventUpdate) SetNetwork ¶
func (eu *EventUpdate) SetNetwork(n *Network) *EventUpdate
SetNetwork sets the network edge to Network.
func (*EventUpdate) SetNetworkID ¶
func (eu *EventUpdate) SetNetworkID(id int) *EventUpdate
SetNetworkID sets the network edge to Network by id.
func (*EventUpdate) SetNillableActionID ¶
func (eu *EventUpdate) SetNillableActionID(id *int) *EventUpdate
SetNillableActionID sets the action edge to Action by id if the given value is not nil.
func (*EventUpdate) SetNillableAliasID ¶
func (eu *EventUpdate) SetNillableAliasID(id *int) *EventUpdate
SetNillableAliasID sets the alias edge to Alias by id if the given value is not nil.
func (*EventUpdate) SetNillableAppID ¶
func (eu *EventUpdate) SetNillableAppID(id *int) *EventUpdate
SetNillableAppID sets the app edge to App by id if the given value is not nil.
func (*EventUpdate) SetNillableBrowserID ¶
func (eu *EventUpdate) SetNillableBrowserID(id *int) *EventUpdate
SetNillableBrowserID sets the browser edge to Browser by id if the given value is not nil.
func (*EventUpdate) SetNillableCampaignID ¶
func (eu *EventUpdate) SetNillableCampaignID(id *int) *EventUpdate
SetNillableCampaignID sets the campaign edge to Campaign by id if the given value is not nil.
func (*EventUpdate) SetNillableChannel ¶
func (eu *EventUpdate) SetNillableChannel(s *string) *EventUpdate
SetNillableChannel sets the channel field if the given value is not nil.
func (*EventUpdate) SetNillableConnectivityID ¶
func (eu *EventUpdate) SetNillableConnectivityID(id *int) *EventUpdate
SetNillableConnectivityID sets the connectivity edge to Connectivity by id if the given value is not nil.
func (*EventUpdate) SetNillableDeviceID ¶
func (eu *EventUpdate) SetNillableDeviceID(id *string) *EventUpdate
SetNillableDeviceID sets the device edge to Device by id if the given value is not nil.
func (*EventUpdate) SetNillableExtraID ¶
func (eu *EventUpdate) SetNillableExtraID(id *int) *EventUpdate
SetNillableExtraID sets the extra edge to Extra by id if the given value is not nil.
func (*EventUpdate) SetNillableGroupID ¶
func (eu *EventUpdate) SetNillableGroupID(id *int) *EventUpdate
SetNillableGroupID sets the group edge to Group by id if the given value is not nil.
func (*EventUpdate) SetNillableLibraryID ¶
func (eu *EventUpdate) SetNillableLibraryID(id *int) *EventUpdate
SetNillableLibraryID sets the library edge to Library by id if the given value is not nil.
func (*EventUpdate) SetNillableLocationID ¶
func (eu *EventUpdate) SetNillableLocationID(id *int) *EventUpdate
SetNillableLocationID sets the location edge to Location by id if the given value is not nil.
func (*EventUpdate) SetNillableNetworkID ¶
func (eu *EventUpdate) SetNillableNetworkID(id *int) *EventUpdate
SetNillableNetworkID sets the network edge to Network by id if the given value is not nil.
func (*EventUpdate) SetNillableOsID ¶
func (eu *EventUpdate) SetNillableOsID(id *int) *EventUpdate
SetNillableOsID sets the os edge to OSContext by id if the given value is not nil.
func (*EventUpdate) SetNillablePageID ¶
func (eu *EventUpdate) SetNillablePageID(id *int) *EventUpdate
SetNillablePageID sets the page edge to Page by id if the given value is not nil.
func (*EventUpdate) SetNillablePlatform ¶
func (eu *EventUpdate) SetNillablePlatform(s *string) *EventUpdate
SetNillablePlatform sets the platform field if the given value is not nil.
func (*EventUpdate) SetNillableReferrerID ¶
func (eu *EventUpdate) SetNillableReferrerID(id *int) *EventUpdate
SetNillableReferrerID sets the referrer edge to Referrer by id if the given value is not nil.
func (*EventUpdate) SetNillableScreenID ¶
func (eu *EventUpdate) SetNillableScreenID(id *int) *EventUpdate
SetNillableScreenID sets the screen edge to Screen by id if the given value is not nil.
func (*EventUpdate) SetNillableSessionID ¶
func (eu *EventUpdate) SetNillableSessionID(id *uuid.UUID) *EventUpdate
SetNillableSessionID sets the session edge to Session by id if the given value is not nil.
func (*EventUpdate) SetNillableTimingID ¶
func (eu *EventUpdate) SetNillableTimingID(id *int) *EventUpdate
SetNillableTimingID sets the timing edge to Timing by id if the given value is not nil.
func (*EventUpdate) SetNillableUserID ¶
func (eu *EventUpdate) SetNillableUserID(id *string) *EventUpdate
SetNillableUserID sets the user edge to User by id if the given value is not nil.
func (*EventUpdate) SetNillableViewportID ¶
func (eu *EventUpdate) SetNillableViewportID(id *int) *EventUpdate
SetNillableViewportID sets the viewport edge to Viewport by id if the given value is not nil.
func (*EventUpdate) SetNonInteractive ¶
func (eu *EventUpdate) SetNonInteractive(b bool) *EventUpdate
SetNonInteractive sets the non_interactive field.
func (*EventUpdate) SetOs ¶
func (eu *EventUpdate) SetOs(o *OSContext) *EventUpdate
SetOs sets the os edge to OSContext.
func (*EventUpdate) SetOsID ¶
func (eu *EventUpdate) SetOsID(id int) *EventUpdate
SetOsID sets the os edge to OSContext by id.
func (*EventUpdate) SetPage ¶
func (eu *EventUpdate) SetPage(p *Page) *EventUpdate
SetPage sets the page edge to Page.
func (*EventUpdate) SetPageID ¶
func (eu *EventUpdate) SetPageID(id int) *EventUpdate
SetPageID sets the page edge to Page by id.
func (*EventUpdate) SetPlatform ¶
func (eu *EventUpdate) SetPlatform(s string) *EventUpdate
SetPlatform sets the platform field.
func (*EventUpdate) SetProperties ¶
func (eu *EventUpdate) SetProperties(m map[string]interface{}) *EventUpdate
SetProperties sets the properties field.
func (*EventUpdate) SetReferrer ¶
func (eu *EventUpdate) SetReferrer(r *Referrer) *EventUpdate
SetReferrer sets the referrer edge to Referrer.
func (*EventUpdate) SetReferrerID ¶
func (eu *EventUpdate) SetReferrerID(id int) *EventUpdate
SetReferrerID sets the referrer edge to Referrer by id.
func (*EventUpdate) SetScreen ¶
func (eu *EventUpdate) SetScreen(s *Screen) *EventUpdate
SetScreen sets the screen edge to Screen.
func (*EventUpdate) SetScreenID ¶
func (eu *EventUpdate) SetScreenID(id int) *EventUpdate
SetScreenID sets the screen edge to Screen by id.
func (*EventUpdate) SetSession ¶
func (eu *EventUpdate) SetSession(s *Session) *EventUpdate
SetSession sets the session edge to Session.
func (*EventUpdate) SetSessionID ¶
func (eu *EventUpdate) SetSessionID(id uuid.UUID) *EventUpdate
SetSessionID sets the session edge to Session by id.
func (*EventUpdate) SetTimestamp ¶
func (eu *EventUpdate) SetTimestamp(t time.Time) *EventUpdate
SetTimestamp sets the timestamp field.
func (*EventUpdate) SetTiming ¶
func (eu *EventUpdate) SetTiming(t *Timing) *EventUpdate
SetTiming sets the timing edge to Timing.
func (*EventUpdate) SetTimingID ¶
func (eu *EventUpdate) SetTimingID(id int) *EventUpdate
SetTimingID sets the timing edge to Timing by id.
func (*EventUpdate) SetTrackingID ¶
func (eu *EventUpdate) SetTrackingID(s string) *EventUpdate
SetTrackingID sets the tracking_id field.
func (*EventUpdate) SetUser ¶
func (eu *EventUpdate) SetUser(u *User) *EventUpdate
SetUser sets the user edge to User.
func (*EventUpdate) SetUserID ¶
func (eu *EventUpdate) SetUserID(id string) *EventUpdate
SetUserID sets the user edge to User by id.
func (*EventUpdate) SetViewport ¶
func (eu *EventUpdate) SetViewport(v *Viewport) *EventUpdate
SetViewport sets the viewport edge to Viewport.
func (*EventUpdate) SetViewportID ¶
func (eu *EventUpdate) SetViewportID(id int) *EventUpdate
SetViewportID sets the viewport edge to Viewport by id.
func (*EventUpdate) Where ¶
func (eu *EventUpdate) Where(ps ...predicate.Event) *EventUpdate
Where adds a new predicate for the builder.
type EventUpdateOne ¶
type EventUpdateOne struct {
// contains filtered or unexported fields
}
EventUpdateOne is the builder for updating a single Event entity.
func (*EventUpdateOne) ClearAction ¶
func (euo *EventUpdateOne) ClearAction() *EventUpdateOne
ClearAction clears the action edge to Action.
func (*EventUpdateOne) ClearAlias ¶
func (euo *EventUpdateOne) ClearAlias() *EventUpdateOne
ClearAlias clears the alias edge to Alias.
func (*EventUpdateOne) ClearApp ¶
func (euo *EventUpdateOne) ClearApp() *EventUpdateOne
ClearApp clears the app edge to App.
func (*EventUpdateOne) ClearBrowser ¶
func (euo *EventUpdateOne) ClearBrowser() *EventUpdateOne
ClearBrowser clears the browser edge to Browser.
func (*EventUpdateOne) ClearCampaign ¶
func (euo *EventUpdateOne) ClearCampaign() *EventUpdateOne
ClearCampaign clears the campaign edge to Campaign.
func (*EventUpdateOne) ClearChannel ¶
func (euo *EventUpdateOne) ClearChannel() *EventUpdateOne
ClearChannel clears the value of channel.
func (*EventUpdateOne) ClearConnectivity ¶
func (euo *EventUpdateOne) ClearConnectivity() *EventUpdateOne
ClearConnectivity clears the connectivity edge to Connectivity.
func (*EventUpdateOne) ClearDevice ¶
func (euo *EventUpdateOne) ClearDevice() *EventUpdateOne
ClearDevice clears the device edge to Device.
func (*EventUpdateOne) ClearExtra ¶
func (euo *EventUpdateOne) ClearExtra() *EventUpdateOne
ClearExtra clears the extra edge to Extra.
func (*EventUpdateOne) ClearGroup ¶
func (euo *EventUpdateOne) ClearGroup() *EventUpdateOne
ClearGroup clears the group edge to Group.
func (*EventUpdateOne) ClearLibrary ¶
func (euo *EventUpdateOne) ClearLibrary() *EventUpdateOne
ClearLibrary clears the library edge to Library.
func (*EventUpdateOne) ClearLocation ¶
func (euo *EventUpdateOne) ClearLocation() *EventUpdateOne
ClearLocation clears the location edge to Location.
func (*EventUpdateOne) ClearNetwork ¶
func (euo *EventUpdateOne) ClearNetwork() *EventUpdateOne
ClearNetwork clears the network edge to Network.
func (*EventUpdateOne) ClearOs ¶
func (euo *EventUpdateOne) ClearOs() *EventUpdateOne
ClearOs clears the os edge to OSContext.
func (*EventUpdateOne) ClearPage ¶
func (euo *EventUpdateOne) ClearPage() *EventUpdateOne
ClearPage clears the page edge to Page.
func (*EventUpdateOne) ClearPlatform ¶
func (euo *EventUpdateOne) ClearPlatform() *EventUpdateOne
ClearPlatform clears the value of platform.
func (*EventUpdateOne) ClearProperties ¶
func (euo *EventUpdateOne) ClearProperties() *EventUpdateOne
ClearProperties clears the value of properties.
func (*EventUpdateOne) ClearReferrer ¶
func (euo *EventUpdateOne) ClearReferrer() *EventUpdateOne
ClearReferrer clears the referrer edge to Referrer.
func (*EventUpdateOne) ClearScreen ¶
func (euo *EventUpdateOne) ClearScreen() *EventUpdateOne
ClearScreen clears the screen edge to Screen.
func (*EventUpdateOne) ClearSession ¶
func (euo *EventUpdateOne) ClearSession() *EventUpdateOne
ClearSession clears the session edge to Session.
func (*EventUpdateOne) ClearTiming ¶
func (euo *EventUpdateOne) ClearTiming() *EventUpdateOne
ClearTiming clears the timing edge to Timing.
func (*EventUpdateOne) ClearUser ¶
func (euo *EventUpdateOne) ClearUser() *EventUpdateOne
ClearUser clears the user edge to User.
func (*EventUpdateOne) ClearViewport ¶
func (euo *EventUpdateOne) ClearViewport() *EventUpdateOne
ClearViewport clears the viewport edge to Viewport.
func (*EventUpdateOne) Exec ¶
func (euo *EventUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*EventUpdateOne) ExecX ¶
func (euo *EventUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpdateOne) Mutation ¶
func (euo *EventUpdateOne) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventUpdateOne) Save ¶
func (euo *EventUpdateOne) Save(ctx context.Context) (*Event, error)
Save executes the query and returns the updated entity.
func (*EventUpdateOne) SaveX ¶
func (euo *EventUpdateOne) SaveX(ctx context.Context) *Event
SaveX is like Save, but panics if an error occurs.
func (*EventUpdateOne) SetAction ¶
func (euo *EventUpdateOne) SetAction(a *Action) *EventUpdateOne
SetAction sets the action edge to Action.
func (*EventUpdateOne) SetActionID ¶
func (euo *EventUpdateOne) SetActionID(id int) *EventUpdateOne
SetActionID sets the action edge to Action by id.
func (*EventUpdateOne) SetAlias ¶
func (euo *EventUpdateOne) SetAlias(a *Alias) *EventUpdateOne
SetAlias sets the alias edge to Alias.
func (*EventUpdateOne) SetAliasID ¶
func (euo *EventUpdateOne) SetAliasID(id int) *EventUpdateOne
SetAliasID sets the alias edge to Alias by id.
func (*EventUpdateOne) SetApp ¶
func (euo *EventUpdateOne) SetApp(a *App) *EventUpdateOne
SetApp sets the app edge to App.
func (*EventUpdateOne) SetAppID ¶
func (euo *EventUpdateOne) SetAppID(id int) *EventUpdateOne
SetAppID sets the app edge to App by id.
func (*EventUpdateOne) SetBrowser ¶
func (euo *EventUpdateOne) SetBrowser(b *Browser) *EventUpdateOne
SetBrowser sets the browser edge to Browser.
func (*EventUpdateOne) SetBrowserID ¶
func (euo *EventUpdateOne) SetBrowserID(id int) *EventUpdateOne
SetBrowserID sets the browser edge to Browser by id.
func (*EventUpdateOne) SetCampaign ¶
func (euo *EventUpdateOne) SetCampaign(c *Campaign) *EventUpdateOne
SetCampaign sets the campaign edge to Campaign.
func (*EventUpdateOne) SetCampaignID ¶
func (euo *EventUpdateOne) SetCampaignID(id int) *EventUpdateOne
SetCampaignID sets the campaign edge to Campaign by id.
func (*EventUpdateOne) SetChannel ¶
func (euo *EventUpdateOne) SetChannel(s string) *EventUpdateOne
SetChannel sets the channel field.
func (*EventUpdateOne) SetConnectivity ¶
func (euo *EventUpdateOne) SetConnectivity(c *Connectivity) *EventUpdateOne
SetConnectivity sets the connectivity edge to Connectivity.
func (*EventUpdateOne) SetConnectivityID ¶
func (euo *EventUpdateOne) SetConnectivityID(id int) *EventUpdateOne
SetConnectivityID sets the connectivity edge to Connectivity by id.
func (*EventUpdateOne) SetDevice ¶
func (euo *EventUpdateOne) SetDevice(d *Device) *EventUpdateOne
SetDevice sets the device edge to Device.
func (*EventUpdateOne) SetDeviceID ¶
func (euo *EventUpdateOne) SetDeviceID(id string) *EventUpdateOne
SetDeviceID sets the device edge to Device by id.
func (*EventUpdateOne) SetEvent ¶
func (euo *EventUpdateOne) SetEvent(e event.Event) *EventUpdateOne
SetEvent sets the event field.
func (*EventUpdateOne) SetExtra ¶
func (euo *EventUpdateOne) SetExtra(e *Extra) *EventUpdateOne
SetExtra sets the extra edge to Extra.
func (*EventUpdateOne) SetExtraID ¶
func (euo *EventUpdateOne) SetExtraID(id int) *EventUpdateOne
SetExtraID sets the extra edge to Extra by id.
func (*EventUpdateOne) SetGroup ¶
func (euo *EventUpdateOne) SetGroup(g *Group) *EventUpdateOne
SetGroup sets the group edge to Group.
func (*EventUpdateOne) SetGroupID ¶
func (euo *EventUpdateOne) SetGroupID(id int) *EventUpdateOne
SetGroupID sets the group edge to Group by id.
func (*EventUpdateOne) SetLibrary ¶
func (euo *EventUpdateOne) SetLibrary(l *Library) *EventUpdateOne
SetLibrary sets the library edge to Library.
func (*EventUpdateOne) SetLibraryID ¶
func (euo *EventUpdateOne) SetLibraryID(id int) *EventUpdateOne
SetLibraryID sets the library edge to Library by id.
func (*EventUpdateOne) SetLocation ¶
func (euo *EventUpdateOne) SetLocation(l *Location) *EventUpdateOne
SetLocation sets the location edge to Location.
func (*EventUpdateOne) SetLocationID ¶
func (euo *EventUpdateOne) SetLocationID(id int) *EventUpdateOne
SetLocationID sets the location edge to Location by id.
func (*EventUpdateOne) SetNetwork ¶
func (euo *EventUpdateOne) SetNetwork(n *Network) *EventUpdateOne
SetNetwork sets the network edge to Network.
func (*EventUpdateOne) SetNetworkID ¶
func (euo *EventUpdateOne) SetNetworkID(id int) *EventUpdateOne
SetNetworkID sets the network edge to Network by id.
func (*EventUpdateOne) SetNillableActionID ¶
func (euo *EventUpdateOne) SetNillableActionID(id *int) *EventUpdateOne
SetNillableActionID sets the action edge to Action by id if the given value is not nil.
func (*EventUpdateOne) SetNillableAliasID ¶
func (euo *EventUpdateOne) SetNillableAliasID(id *int) *EventUpdateOne
SetNillableAliasID sets the alias edge to Alias by id if the given value is not nil.
func (*EventUpdateOne) SetNillableAppID ¶
func (euo *EventUpdateOne) SetNillableAppID(id *int) *EventUpdateOne
SetNillableAppID sets the app edge to App by id if the given value is not nil.
func (*EventUpdateOne) SetNillableBrowserID ¶
func (euo *EventUpdateOne) SetNillableBrowserID(id *int) *EventUpdateOne
SetNillableBrowserID sets the browser edge to Browser by id if the given value is not nil.
func (*EventUpdateOne) SetNillableCampaignID ¶
func (euo *EventUpdateOne) SetNillableCampaignID(id *int) *EventUpdateOne
SetNillableCampaignID sets the campaign edge to Campaign by id if the given value is not nil.
func (*EventUpdateOne) SetNillableChannel ¶
func (euo *EventUpdateOne) SetNillableChannel(s *string) *EventUpdateOne
SetNillableChannel sets the channel field if the given value is not nil.
func (*EventUpdateOne) SetNillableConnectivityID ¶
func (euo *EventUpdateOne) SetNillableConnectivityID(id *int) *EventUpdateOne
SetNillableConnectivityID sets the connectivity edge to Connectivity by id if the given value is not nil.
func (*EventUpdateOne) SetNillableDeviceID ¶
func (euo *EventUpdateOne) SetNillableDeviceID(id *string) *EventUpdateOne
SetNillableDeviceID sets the device edge to Device by id if the given value is not nil.
func (*EventUpdateOne) SetNillableExtraID ¶
func (euo *EventUpdateOne) SetNillableExtraID(id *int) *EventUpdateOne
SetNillableExtraID sets the extra edge to Extra by id if the given value is not nil.
func (*EventUpdateOne) SetNillableGroupID ¶
func (euo *EventUpdateOne) SetNillableGroupID(id *int) *EventUpdateOne
SetNillableGroupID sets the group edge to Group by id if the given value is not nil.
func (*EventUpdateOne) SetNillableLibraryID ¶
func (euo *EventUpdateOne) SetNillableLibraryID(id *int) *EventUpdateOne
SetNillableLibraryID sets the library edge to Library by id if the given value is not nil.
func (*EventUpdateOne) SetNillableLocationID ¶
func (euo *EventUpdateOne) SetNillableLocationID(id *int) *EventUpdateOne
SetNillableLocationID sets the location edge to Location by id if the given value is not nil.
func (*EventUpdateOne) SetNillableNetworkID ¶
func (euo *EventUpdateOne) SetNillableNetworkID(id *int) *EventUpdateOne
SetNillableNetworkID sets the network edge to Network by id if the given value is not nil.
func (*EventUpdateOne) SetNillableOsID ¶
func (euo *EventUpdateOne) SetNillableOsID(id *int) *EventUpdateOne
SetNillableOsID sets the os edge to OSContext by id if the given value is not nil.
func (*EventUpdateOne) SetNillablePageID ¶
func (euo *EventUpdateOne) SetNillablePageID(id *int) *EventUpdateOne
SetNillablePageID sets the page edge to Page by id if the given value is not nil.
func (*EventUpdateOne) SetNillablePlatform ¶
func (euo *EventUpdateOne) SetNillablePlatform(s *string) *EventUpdateOne
SetNillablePlatform sets the platform field if the given value is not nil.
func (*EventUpdateOne) SetNillableReferrerID ¶
func (euo *EventUpdateOne) SetNillableReferrerID(id *int) *EventUpdateOne
SetNillableReferrerID sets the referrer edge to Referrer by id if the given value is not nil.
func (*EventUpdateOne) SetNillableScreenID ¶
func (euo *EventUpdateOne) SetNillableScreenID(id *int) *EventUpdateOne
SetNillableScreenID sets the screen edge to Screen by id if the given value is not nil.
func (*EventUpdateOne) SetNillableSessionID ¶
func (euo *EventUpdateOne) SetNillableSessionID(id *uuid.UUID) *EventUpdateOne
SetNillableSessionID sets the session edge to Session by id if the given value is not nil.
func (*EventUpdateOne) SetNillableTimingID ¶
func (euo *EventUpdateOne) SetNillableTimingID(id *int) *EventUpdateOne
SetNillableTimingID sets the timing edge to Timing by id if the given value is not nil.
func (*EventUpdateOne) SetNillableUserID ¶
func (euo *EventUpdateOne) SetNillableUserID(id *string) *EventUpdateOne
SetNillableUserID sets the user edge to User by id if the given value is not nil.
func (*EventUpdateOne) SetNillableViewportID ¶
func (euo *EventUpdateOne) SetNillableViewportID(id *int) *EventUpdateOne
SetNillableViewportID sets the viewport edge to Viewport by id if the given value is not nil.
func (*EventUpdateOne) SetNonInteractive ¶
func (euo *EventUpdateOne) SetNonInteractive(b bool) *EventUpdateOne
SetNonInteractive sets the non_interactive field.
func (*EventUpdateOne) SetOs ¶
func (euo *EventUpdateOne) SetOs(o *OSContext) *EventUpdateOne
SetOs sets the os edge to OSContext.
func (*EventUpdateOne) SetOsID ¶
func (euo *EventUpdateOne) SetOsID(id int) *EventUpdateOne
SetOsID sets the os edge to OSContext by id.
func (*EventUpdateOne) SetPage ¶
func (euo *EventUpdateOne) SetPage(p *Page) *EventUpdateOne
SetPage sets the page edge to Page.
func (*EventUpdateOne) SetPageID ¶
func (euo *EventUpdateOne) SetPageID(id int) *EventUpdateOne
SetPageID sets the page edge to Page by id.
func (*EventUpdateOne) SetPlatform ¶
func (euo *EventUpdateOne) SetPlatform(s string) *EventUpdateOne
SetPlatform sets the platform field.
func (*EventUpdateOne) SetProperties ¶
func (euo *EventUpdateOne) SetProperties(m map[string]interface{}) *EventUpdateOne
SetProperties sets the properties field.
func (*EventUpdateOne) SetReferrer ¶
func (euo *EventUpdateOne) SetReferrer(r *Referrer) *EventUpdateOne
SetReferrer sets the referrer edge to Referrer.
func (*EventUpdateOne) SetReferrerID ¶
func (euo *EventUpdateOne) SetReferrerID(id int) *EventUpdateOne
SetReferrerID sets the referrer edge to Referrer by id.
func (*EventUpdateOne) SetScreen ¶
func (euo *EventUpdateOne) SetScreen(s *Screen) *EventUpdateOne
SetScreen sets the screen edge to Screen.
func (*EventUpdateOne) SetScreenID ¶
func (euo *EventUpdateOne) SetScreenID(id int) *EventUpdateOne
SetScreenID sets the screen edge to Screen by id.
func (*EventUpdateOne) SetSession ¶
func (euo *EventUpdateOne) SetSession(s *Session) *EventUpdateOne
SetSession sets the session edge to Session.
func (*EventUpdateOne) SetSessionID ¶
func (euo *EventUpdateOne) SetSessionID(id uuid.UUID) *EventUpdateOne
SetSessionID sets the session edge to Session by id.
func (*EventUpdateOne) SetTimestamp ¶
func (euo *EventUpdateOne) SetTimestamp(t time.Time) *EventUpdateOne
SetTimestamp sets the timestamp field.
func (*EventUpdateOne) SetTiming ¶
func (euo *EventUpdateOne) SetTiming(t *Timing) *EventUpdateOne
SetTiming sets the timing edge to Timing.
func (*EventUpdateOne) SetTimingID ¶
func (euo *EventUpdateOne) SetTimingID(id int) *EventUpdateOne
SetTimingID sets the timing edge to Timing by id.
func (*EventUpdateOne) SetTrackingID ¶
func (euo *EventUpdateOne) SetTrackingID(s string) *EventUpdateOne
SetTrackingID sets the tracking_id field.
func (*EventUpdateOne) SetUser ¶
func (euo *EventUpdateOne) SetUser(u *User) *EventUpdateOne
SetUser sets the user edge to User.
func (*EventUpdateOne) SetUserID ¶
func (euo *EventUpdateOne) SetUserID(id string) *EventUpdateOne
SetUserID sets the user edge to User by id.
func (*EventUpdateOne) SetViewport ¶
func (euo *EventUpdateOne) SetViewport(v *Viewport) *EventUpdateOne
SetViewport sets the viewport edge to Viewport.
func (*EventUpdateOne) SetViewportID ¶
func (euo *EventUpdateOne) SetViewportID(id int) *EventUpdateOne
SetViewportID sets the viewport edge to Viewport by id.
type Extra ¶
type Extra struct { // ID of the ent. ID int `json:"id,omitempty"` // Values holds the value of the "values" field. Values map[string]interface{} `json:"values,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ExtraQuery when eager-loading is set. Edges ExtraEdges `json:"edges"` // contains filtered or unexported fields }
Extra is the model entity for the Extra schema.
func (*Extra) QueryEvent ¶
func (e *Extra) QueryEvent() *EventQuery
QueryEvent queries the event edge of the Extra.
func (*Extra) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Extra) Update ¶
func (e *Extra) Update() *ExtraUpdateOne
Update returns a builder for updating this Extra. Note that, you need to call Extra.Unwrap() before calling this method, if this Extra was returned from a transaction, and the transaction was committed or rolled back.
type ExtraClient ¶
type ExtraClient struct {
// contains filtered or unexported fields
}
ExtraClient is a client for the Extra schema.
func NewExtraClient ¶
func NewExtraClient(c config) *ExtraClient
NewExtraClient returns a client for the Extra from the given config.
func (*ExtraClient) Create ¶
func (c *ExtraClient) Create() *ExtraCreate
Create returns a create builder for Extra.
func (*ExtraClient) CreateBulk ¶
func (c *ExtraClient) CreateBulk(builders ...*ExtraCreate) *ExtraCreateBulk
BulkCreate returns a builder for creating a bulk of Extra entities.
func (*ExtraClient) Delete ¶
func (c *ExtraClient) Delete() *ExtraDelete
Delete returns a delete builder for Extra.
func (*ExtraClient) DeleteOne ¶
func (c *ExtraClient) DeleteOne(e *Extra) *ExtraDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ExtraClient) DeleteOneID ¶
func (c *ExtraClient) DeleteOneID(id int) *ExtraDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ExtraClient) GetX ¶
func (c *ExtraClient) GetX(ctx context.Context, id int) *Extra
GetX is like Get, but panics if an error occurs.
func (*ExtraClient) Query ¶
func (c *ExtraClient) Query() *ExtraQuery
Query returns a query builder for Extra.
func (*ExtraClient) QueryEvent ¶
func (c *ExtraClient) QueryEvent(e *Extra) *EventQuery
QueryEvent queries the event edge of a Extra.
func (*ExtraClient) Update ¶
func (c *ExtraClient) Update() *ExtraUpdate
Update returns an update builder for Extra.
func (*ExtraClient) UpdateOne ¶
func (c *ExtraClient) UpdateOne(e *Extra) *ExtraUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ExtraClient) UpdateOneID ¶
func (c *ExtraClient) UpdateOneID(id int) *ExtraUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ExtraClient) Use ¶
func (c *ExtraClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `extra.Hooks(f(g(h())))`.
type ExtraCreate ¶
type ExtraCreate struct {
// contains filtered or unexported fields
}
ExtraCreate is the builder for creating a Extra entity.
func (*ExtraCreate) AddEvent ¶
func (ec *ExtraCreate) AddEvent(e ...*Event) *ExtraCreate
AddEvent adds the event edges to Event.
func (*ExtraCreate) AddEventIDs ¶
func (ec *ExtraCreate) AddEventIDs(ids ...uuid.UUID) *ExtraCreate
AddEventIDs adds the event edge to Event by ids.
func (*ExtraCreate) Mutation ¶
func (ec *ExtraCreate) Mutation() *ExtraMutation
Mutation returns the ExtraMutation object of the builder.
func (*ExtraCreate) Save ¶
func (ec *ExtraCreate) Save(ctx context.Context) (*Extra, error)
Save creates the Extra in the database.
func (*ExtraCreate) SaveX ¶
func (ec *ExtraCreate) SaveX(ctx context.Context) *Extra
SaveX calls Save and panics if Save returns an error.
func (*ExtraCreate) SetValues ¶
func (ec *ExtraCreate) SetValues(m map[string]interface{}) *ExtraCreate
SetValues sets the values field.
type ExtraCreateBulk ¶
type ExtraCreateBulk struct {
// contains filtered or unexported fields
}
ExtraCreateBulk is the builder for creating a bulk of Extra entities.
type ExtraDelete ¶
type ExtraDelete struct {
// contains filtered or unexported fields
}
ExtraDelete is the builder for deleting a Extra entity.
func (*ExtraDelete) Exec ¶
func (ed *ExtraDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ExtraDelete) ExecX ¶
func (ed *ExtraDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ExtraDelete) Where ¶
func (ed *ExtraDelete) Where(ps ...predicate.Extra) *ExtraDelete
Where adds a new predicate to the delete builder.
type ExtraDeleteOne ¶
type ExtraDeleteOne struct {
// contains filtered or unexported fields
}
ExtraDeleteOne is the builder for deleting a single Extra entity.
func (*ExtraDeleteOne) Exec ¶
func (edo *ExtraDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ExtraDeleteOne) ExecX ¶
func (edo *ExtraDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ExtraEdges ¶
type ExtraEdges struct { // Event holds the value of the event edge. Event []*Event // contains filtered or unexported fields }
ExtraEdges holds the relations/edges for other nodes in the graph.
func (ExtraEdges) EventOrErr ¶
func (e ExtraEdges) EventOrErr() ([]*Event, error)
EventOrErr returns the Event value or an error if the edge was not loaded in eager-loading.
type ExtraGroupBy ¶
type ExtraGroupBy struct {
// contains filtered or unexported fields
}
ExtraGroupBy is the builder for group-by Extra entities.
func (*ExtraGroupBy) Aggregate ¶
func (egb *ExtraGroupBy) Aggregate(fns ...AggregateFunc) *ExtraGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ExtraGroupBy) Bool ¶
func (egb *ExtraGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) BoolX ¶
func (egb *ExtraGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ExtraGroupBy) Bools ¶
func (egb *ExtraGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) BoolsX ¶
func (egb *ExtraGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ExtraGroupBy) Float64 ¶
func (egb *ExtraGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) Float64X ¶
func (egb *ExtraGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ExtraGroupBy) Float64s ¶
func (egb *ExtraGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) Float64sX ¶
func (egb *ExtraGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ExtraGroupBy) Int ¶
func (egb *ExtraGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) IntX ¶
func (egb *ExtraGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ExtraGroupBy) Ints ¶
func (egb *ExtraGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) IntsX ¶
func (egb *ExtraGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ExtraGroupBy) Scan ¶
func (egb *ExtraGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ExtraGroupBy) ScanX ¶
func (egb *ExtraGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ExtraGroupBy) String ¶
func (egb *ExtraGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*ExtraGroupBy) StringX ¶
func (egb *ExtraGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ExtraMutation ¶
type ExtraMutation struct {
// contains filtered or unexported fields
}
ExtraMutation represents an operation that mutate the Extras nodes in the graph.
func (*ExtraMutation) AddEventIDs ¶
func (m *ExtraMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the event edge to Event by ids.
func (*ExtraMutation) AddField ¶
func (m *ExtraMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ExtraMutation) AddedEdges ¶
func (m *ExtraMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ExtraMutation) AddedField ¶
func (m *ExtraMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*ExtraMutation) AddedFields ¶
func (m *ExtraMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*ExtraMutation) AddedIDs ¶
func (m *ExtraMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*ExtraMutation) ClearEdge ¶
func (m *ExtraMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*ExtraMutation) ClearField ¶
func (m *ExtraMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*ExtraMutation) ClearedEdges ¶
func (m *ExtraMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ExtraMutation) ClearedFields ¶
func (m *ExtraMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ExtraMutation) Client ¶
func (m ExtraMutation) 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 (*ExtraMutation) EdgeCleared ¶
func (m *ExtraMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*ExtraMutation) EventIDs ¶
func (m *ExtraMutation) EventIDs() (ids []uuid.UUID)
EventIDs returns the event ids in the mutation.
func (*ExtraMutation) Field ¶
func (m *ExtraMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*ExtraMutation) FieldCleared ¶
func (m *ExtraMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*ExtraMutation) Fields ¶
func (m *ExtraMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*ExtraMutation) ID ¶
func (m *ExtraMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*ExtraMutation) 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 was failed.
func (*ExtraMutation) OldValues ¶
func (m *ExtraMutation) OldValues(ctx context.Context) (v map[string]interface{}, err error)
OldValues returns the old values value of the Extra. If the Extra 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 database query fails.
func (*ExtraMutation) RemoveEventIDs ¶
func (m *ExtraMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the event edge to Event by ids.
func (*ExtraMutation) RemovedEdges ¶
func (m *ExtraMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ExtraMutation) RemovedEventIDs ¶
func (m *ExtraMutation) RemovedEventIDs() (ids []uuid.UUID)
RemovedEvent returns the removed ids of event.
func (*ExtraMutation) RemovedIDs ¶
func (m *ExtraMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*ExtraMutation) ResetEdge ¶
func (m *ExtraMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*ExtraMutation) ResetEvent ¶
func (m *ExtraMutation) ResetEvent()
ResetEvent reset all changes of the "event" edge.
func (*ExtraMutation) ResetField ¶
func (m *ExtraMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*ExtraMutation) ResetValues ¶
func (m *ExtraMutation) ResetValues()
ResetValues reset all changes of the "values" field.
func (*ExtraMutation) SetField ¶
func (m *ExtraMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ExtraMutation) SetValues ¶
func (m *ExtraMutation) SetValues(value map[string]interface{})
SetValues sets the values field.
func (ExtraMutation) Tx ¶
func (m ExtraMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ExtraMutation) Type ¶
func (m *ExtraMutation) Type() string
Type returns the node type of this mutation (Extra).
func (*ExtraMutation) Values ¶
func (m *ExtraMutation) Values() (r map[string]interface{}, exists bool)
Values returns the values value in the mutation.
type ExtraQuery ¶
type ExtraQuery struct {
// contains filtered or unexported fields
}
ExtraQuery is the builder for querying Extra entities.
func (*ExtraQuery) All ¶
func (eq *ExtraQuery) All(ctx context.Context) ([]*Extra, error)
All executes the query and returns a list of Extras.
func (*ExtraQuery) AllX ¶
func (eq *ExtraQuery) AllX(ctx context.Context) []*Extra
AllX is like All, but panics if an error occurs.
func (*ExtraQuery) Clone ¶
func (eq *ExtraQuery) Clone() *ExtraQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ExtraQuery) Count ¶
func (eq *ExtraQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ExtraQuery) CountX ¶
func (eq *ExtraQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ExtraQuery) Exist ¶
func (eq *ExtraQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ExtraQuery) ExistX ¶
func (eq *ExtraQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ExtraQuery) First ¶
func (eq *ExtraQuery) First(ctx context.Context) (*Extra, error)
First returns the first Extra entity in the query. Returns *NotFoundError when no extra was found.
func (*ExtraQuery) FirstID ¶
func (eq *ExtraQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Extra id in the query. Returns *NotFoundError when no id was found.
func (*ExtraQuery) FirstX ¶
func (eq *ExtraQuery) FirstX(ctx context.Context) *Extra
FirstX is like First, but panics if an error occurs.
func (*ExtraQuery) FirstXID ¶
func (eq *ExtraQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*ExtraQuery) GroupBy ¶
func (eq *ExtraQuery) GroupBy(field string, fields ...string) *ExtraGroupBy
GroupBy 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 { Values map[string]interface {} `json:"values,omitempty"` Count int `json:"count,omitempty"` } client.Extra.Query(). GroupBy(extra.FieldValues). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ExtraQuery) IDs ¶
func (eq *ExtraQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Extra ids.
func (*ExtraQuery) IDsX ¶
func (eq *ExtraQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ExtraQuery) Limit ¶
func (eq *ExtraQuery) Limit(limit int) *ExtraQuery
Limit adds a limit step to the query.
func (*ExtraQuery) Offset ¶
func (eq *ExtraQuery) Offset(offset int) *ExtraQuery
Offset adds an offset step to the query.
func (*ExtraQuery) Only ¶
func (eq *ExtraQuery) Only(ctx context.Context) (*Extra, error)
Only returns the only Extra entity in the query, returns an error if not exactly one entity was returned.
func (*ExtraQuery) OnlyID ¶
func (eq *ExtraQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Extra id in the query, returns an error if not exactly one id was returned.
func (*ExtraQuery) OnlyIDX ¶
func (eq *ExtraQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ExtraQuery) OnlyX ¶
func (eq *ExtraQuery) OnlyX(ctx context.Context) *Extra
OnlyX is like Only, but panics if an error occurs.
func (*ExtraQuery) Order ¶
func (eq *ExtraQuery) Order(o ...OrderFunc) *ExtraQuery
Order adds an order step to the query.
func (*ExtraQuery) QueryEvent ¶
func (eq *ExtraQuery) QueryEvent() *EventQuery
QueryEvent chains the current query on the event edge.
func (*ExtraQuery) Select ¶
func (eq *ExtraQuery) Select(field string, fields ...string) *ExtraSelect
Select one or more fields from the given query.
Example:
var v []struct { Values map[string]interface {} `json:"values,omitempty"` } client.Extra.Query(). Select(extra.FieldValues). Scan(ctx, &v)
func (*ExtraQuery) Where ¶
func (eq *ExtraQuery) Where(ps ...predicate.Extra) *ExtraQuery
Where adds a new predicate for the builder.
func (*ExtraQuery) WithEvent ¶
func (eq *ExtraQuery) WithEvent(opts ...func(*EventQuery)) *ExtraQuery
WithEvent tells the query-builder to eager-loads the nodes that are connected to
the "event" edge. The optional arguments used to configure the query builder of the edge.
type ExtraSelect ¶
type ExtraSelect struct {
// contains filtered or unexported fields
}
ExtraSelect is the builder for select fields of Extra entities.
func (*ExtraSelect) Bool ¶
func (es *ExtraSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*ExtraSelect) BoolX ¶
func (es *ExtraSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ExtraSelect) Bools ¶
func (es *ExtraSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ExtraSelect) BoolsX ¶
func (es *ExtraSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ExtraSelect) Float64 ¶
func (es *ExtraSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*ExtraSelect) Float64X ¶
func (es *ExtraSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ExtraSelect) Float64s ¶
func (es *ExtraSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ExtraSelect) Float64sX ¶
func (es *ExtraSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ExtraSelect) Int ¶
func (es *ExtraSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*ExtraSelect) IntX ¶
func (es *ExtraSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ExtraSelect) Ints ¶
func (es *ExtraSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ExtraSelect) IntsX ¶
func (es *ExtraSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ExtraSelect) Scan ¶
func (es *ExtraSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ExtraSelect) ScanX ¶
func (es *ExtraSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ExtraSelect) String ¶
func (es *ExtraSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*ExtraSelect) StringX ¶
func (es *ExtraSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ExtraUpdate ¶
type ExtraUpdate struct {
// contains filtered or unexported fields
}
ExtraUpdate is the builder for updating Extra entities.
func (*ExtraUpdate) AddEvent ¶
func (eu *ExtraUpdate) AddEvent(e ...*Event) *ExtraUpdate
AddEvent adds the event edges to Event.
func (*ExtraUpdate) AddEventIDs ¶
func (eu *ExtraUpdate) AddEventIDs(ids ...uuid.UUID) *ExtraUpdate
AddEventIDs adds the event edge to Event by ids.
func (*ExtraUpdate) Exec ¶
func (eu *ExtraUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ExtraUpdate) ExecX ¶
func (eu *ExtraUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ExtraUpdate) Mutation ¶
func (eu *ExtraUpdate) Mutation() *ExtraMutation
Mutation returns the ExtraMutation object of the builder.
func (*ExtraUpdate) RemoveEvent ¶
func (eu *ExtraUpdate) RemoveEvent(e ...*Event) *ExtraUpdate
RemoveEvent removes event edges to Event.
func (*ExtraUpdate) RemoveEventIDs ¶
func (eu *ExtraUpdate) RemoveEventIDs(ids ...uuid.UUID) *ExtraUpdate
RemoveEventIDs removes the event edge to Event by ids.
func (*ExtraUpdate) Save ¶
func (eu *ExtraUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ExtraUpdate) SaveX ¶
func (eu *ExtraUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ExtraUpdate) SetValues ¶
func (eu *ExtraUpdate) SetValues(m map[string]interface{}) *ExtraUpdate
SetValues sets the values field.
func (*ExtraUpdate) Where ¶
func (eu *ExtraUpdate) Where(ps ...predicate.Extra) *ExtraUpdate
Where adds a new predicate for the builder.
type ExtraUpdateOne ¶
type ExtraUpdateOne struct {
// contains filtered or unexported fields
}
ExtraUpdateOne is the builder for updating a single Extra entity.
func (*ExtraUpdateOne) AddEvent ¶
func (euo *ExtraUpdateOne) AddEvent(e ...*Event) *ExtraUpdateOne
AddEvent adds the event edges to Event.
func (*ExtraUpdateOne) AddEventIDs ¶
func (euo *ExtraUpdateOne) AddEventIDs(ids ...uuid.UUID) *ExtraUpdateOne
AddEventIDs adds the event edge to Event by ids.
func (*ExtraUpdateOne) Exec ¶
func (euo *ExtraUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ExtraUpdateOne) ExecX ¶
func (euo *ExtraUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ExtraUpdateOne) Mutation ¶
func (euo *ExtraUpdateOne) Mutation() *ExtraMutation
Mutation returns the ExtraMutation object of the builder.
func (*ExtraUpdateOne) RemoveEvent ¶
func (euo *ExtraUpdateOne) RemoveEvent(e ...*Event) *ExtraUpdateOne
RemoveEvent removes event edges to Event.
func (*ExtraUpdateOne) RemoveEventIDs ¶
func (euo *ExtraUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ExtraUpdateOne
RemoveEventIDs removes the event edge to Event by ids.
func (*ExtraUpdateOne) Save ¶
func (euo *ExtraUpdateOne) Save(ctx context.Context) (*Extra, error)
Save executes the query and returns the updated entity.
func (*ExtraUpdateOne) SaveX ¶
func (euo *ExtraUpdateOne) SaveX(ctx context.Context) *Extra
SaveX is like Save, but panics if an error occurs.
func (*ExtraUpdateOne) SetValues ¶
func (euo *ExtraUpdateOne) SetValues(m map[string]interface{}) *ExtraUpdateOne
SetValues sets the values field.
type Group ¶
type Group struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GroupQuery when eager-loading is set. Edges GroupEdges `json:"edges"` // contains filtered or unexported fields }
Group is the model entity for the Group schema.
func (*Group) QueryEvents ¶
func (gr *Group) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Group.
func (*Group) QueryUsers ¶
QueryUsers queries the users edge of the Group.
func (*Group) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Group) Update ¶
func (gr *Group) Update() *GroupUpdateOne
Update returns a builder for updating this Group. Note that, you need to call Group.Unwrap() before calling this method, if this Group was returned from a transaction, and the transaction was committed or rolled back.
type GroupClient ¶
type GroupClient struct {
// contains filtered or unexported fields
}
GroupClient is a client for the Group schema.
func NewGroupClient ¶
func NewGroupClient(c config) *GroupClient
NewGroupClient returns a client for the Group from the given config.
func (*GroupClient) Create ¶
func (c *GroupClient) Create() *GroupCreate
Create returns a create builder for Group.
func (*GroupClient) CreateBulk ¶
func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk
BulkCreate returns a builder for creating a bulk of Group entities.
func (*GroupClient) Delete ¶
func (c *GroupClient) Delete() *GroupDelete
Delete returns a delete builder for Group.
func (*GroupClient) DeleteOne ¶
func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*GroupClient) DeleteOneID ¶
func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*GroupClient) GetX ¶
func (c *GroupClient) GetX(ctx context.Context, id int) *Group
GetX is like Get, but panics if an error occurs.
func (*GroupClient) Query ¶
func (c *GroupClient) Query() *GroupQuery
Query returns a query builder for Group.
func (*GroupClient) QueryEvents ¶
func (c *GroupClient) QueryEvents(gr *Group) *EventQuery
QueryEvents queries the events edge of a Group.
func (*GroupClient) QueryUsers ¶
func (c *GroupClient) QueryUsers(gr *Group) *UserQuery
QueryUsers queries the users edge of a Group.
func (*GroupClient) Update ¶
func (c *GroupClient) Update() *GroupUpdate
Update returns an update builder for Group.
func (*GroupClient) UpdateOne ¶
func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GroupClient) UpdateOneID ¶
func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GroupClient) Use ¶
func (c *GroupClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `group.Hooks(f(g(h())))`.
type GroupCreate ¶
type GroupCreate struct {
// contains filtered or unexported fields
}
GroupCreate is the builder for creating a Group entity.
func (*GroupCreate) AddEventIDs ¶
func (gc *GroupCreate) AddEventIDs(ids ...uuid.UUID) *GroupCreate
AddEventIDs adds the events edge to Event by ids.
func (*GroupCreate) AddEvents ¶
func (gc *GroupCreate) AddEvents(e ...*Event) *GroupCreate
AddEvents adds the events edges to Event.
func (*GroupCreate) AddUserIDs ¶
func (gc *GroupCreate) AddUserIDs(ids ...string) *GroupCreate
AddUserIDs adds the users edge to User by ids.
func (*GroupCreate) AddUsers ¶
func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate
AddUsers adds the users edges to User.
func (*GroupCreate) Mutation ¶
func (gc *GroupCreate) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupCreate) Save ¶
func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)
Save creates the Group in the database.
func (*GroupCreate) SaveX ¶
func (gc *GroupCreate) SaveX(ctx context.Context) *Group
SaveX calls Save and panics if Save returns an error.
func (*GroupCreate) SetName ¶
func (gc *GroupCreate) SetName(s string) *GroupCreate
SetName sets the name field.
type GroupCreateBulk ¶
type GroupCreateBulk struct {
// contains filtered or unexported fields
}
GroupCreateBulk is the builder for creating a bulk of Group entities.
type GroupDelete ¶
type GroupDelete struct {
// contains filtered or unexported fields
}
GroupDelete is the builder for deleting a Group entity.
func (*GroupDelete) Exec ¶
func (gd *GroupDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GroupDelete) ExecX ¶
func (gd *GroupDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GroupDelete) Where ¶
func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete
Where adds a new predicate to the delete builder.
type GroupDeleteOne ¶
type GroupDeleteOne struct {
// contains filtered or unexported fields
}
GroupDeleteOne is the builder for deleting a single Group entity.
func (*GroupDeleteOne) Exec ¶
func (gdo *GroupDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GroupDeleteOne) ExecX ¶
func (gdo *GroupDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type GroupEdges ¶
type GroupEdges struct { // Events holds the value of the events edge. Events []*Event // Users holds the value of the users edge. Users []*User // contains filtered or unexported fields }
GroupEdges holds the relations/edges for other nodes in the graph.
func (GroupEdges) EventsOrErr ¶
func (e GroupEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
func (GroupEdges) UsersOrErr ¶
func (e GroupEdges) UsersOrErr() ([]*User, error)
UsersOrErr returns the Users value or an error if the edge was not loaded in eager-loading.
type GroupGroupBy ¶
type GroupGroupBy struct {
// contains filtered or unexported fields
}
GroupGroupBy is the builder for group-by Group entities.
func (*GroupGroupBy) Aggregate ¶
func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GroupGroupBy) Bool ¶
func (ggb *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) BoolX ¶
func (ggb *GroupGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*GroupGroupBy) Bools ¶
func (ggb *GroupGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) BoolsX ¶
func (ggb *GroupGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*GroupGroupBy) Float64 ¶
func (ggb *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) Float64X ¶
func (ggb *GroupGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*GroupGroupBy) Float64s ¶
func (ggb *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) Float64sX ¶
func (ggb *GroupGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*GroupGroupBy) Int ¶
func (ggb *GroupGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) IntX ¶
func (ggb *GroupGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*GroupGroupBy) Ints ¶
func (ggb *GroupGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) IntsX ¶
func (ggb *GroupGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*GroupGroupBy) Scan ¶
func (ggb *GroupGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*GroupGroupBy) ScanX ¶
func (ggb *GroupGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*GroupGroupBy) String ¶
func (ggb *GroupGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*GroupGroupBy) StringX ¶
func (ggb *GroupGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type GroupMutation ¶
type GroupMutation struct {
// contains filtered or unexported fields
}
GroupMutation represents an operation that mutate the Groups nodes in the graph.
func (*GroupMutation) AddEventIDs ¶
func (m *GroupMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*GroupMutation) AddField ¶
func (m *GroupMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*GroupMutation) AddUserIDs ¶
func (m *GroupMutation) AddUserIDs(ids ...string)
AddUserIDs adds the users edge to User by ids.
func (*GroupMutation) AddedEdges ¶
func (m *GroupMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GroupMutation) AddedField ¶
func (m *GroupMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*GroupMutation) AddedFields ¶
func (m *GroupMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*GroupMutation) AddedIDs ¶
func (m *GroupMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*GroupMutation) ClearEdge ¶
func (m *GroupMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*GroupMutation) ClearField ¶
func (m *GroupMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*GroupMutation) ClearedEdges ¶
func (m *GroupMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GroupMutation) ClearedFields ¶
func (m *GroupMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GroupMutation) Client ¶
func (m GroupMutation) 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 (*GroupMutation) EdgeCleared ¶
func (m *GroupMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*GroupMutation) EventsIDs ¶
func (m *GroupMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*GroupMutation) Field ¶
func (m *GroupMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*GroupMutation) FieldCleared ¶
func (m *GroupMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*GroupMutation) Fields ¶
func (m *GroupMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*GroupMutation) ID ¶
func (m *GroupMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*GroupMutation) Name ¶
func (m *GroupMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*GroupMutation) 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 was failed.
func (*GroupMutation) OldName ¶
func (m *GroupMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Group. If the Group 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 database query fails.
func (*GroupMutation) RemoveEventIDs ¶
func (m *GroupMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*GroupMutation) RemoveUserIDs ¶
func (m *GroupMutation) RemoveUserIDs(ids ...string)
RemoveUserIDs removes the users edge to User by ids.
func (*GroupMutation) RemovedEdges ¶
func (m *GroupMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GroupMutation) RemovedEventsIDs ¶
func (m *GroupMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*GroupMutation) RemovedIDs ¶
func (m *GroupMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*GroupMutation) RemovedUsersIDs ¶
func (m *GroupMutation) RemovedUsersIDs() (ids []string)
RemovedUsers returns the removed ids of users.
func (*GroupMutation) ResetEdge ¶
func (m *GroupMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*GroupMutation) ResetEvents ¶
func (m *GroupMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*GroupMutation) ResetField ¶
func (m *GroupMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*GroupMutation) ResetName ¶
func (m *GroupMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*GroupMutation) ResetUsers ¶
func (m *GroupMutation) ResetUsers()
ResetUsers reset all changes of the "users" edge.
func (*GroupMutation) SetField ¶
func (m *GroupMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*GroupMutation) SetName ¶
func (m *GroupMutation) SetName(s string)
SetName sets the name field.
func (GroupMutation) Tx ¶
func (m GroupMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GroupMutation) Type ¶
func (m *GroupMutation) Type() string
Type returns the node type of this mutation (Group).
func (*GroupMutation) UsersIDs ¶
func (m *GroupMutation) UsersIDs() (ids []string)
UsersIDs returns the users ids in the mutation.
type GroupQuery ¶
type GroupQuery struct {
// contains filtered or unexported fields
}
GroupQuery is the builder for querying Group entities.
func (*GroupQuery) All ¶
func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)
All executes the query and returns a list of Groups.
func (*GroupQuery) AllX ¶
func (gq *GroupQuery) AllX(ctx context.Context) []*Group
AllX is like All, but panics if an error occurs.
func (*GroupQuery) Clone ¶
func (gq *GroupQuery) Clone() *GroupQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GroupQuery) Count ¶
func (gq *GroupQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GroupQuery) CountX ¶
func (gq *GroupQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GroupQuery) Exist ¶
func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GroupQuery) ExistX ¶
func (gq *GroupQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GroupQuery) First ¶
func (gq *GroupQuery) First(ctx context.Context) (*Group, error)
First returns the first Group entity in the query. Returns *NotFoundError when no group was found.
func (*GroupQuery) FirstID ¶
func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Group id in the query. Returns *NotFoundError when no id was found.
func (*GroupQuery) FirstX ¶
func (gq *GroupQuery) FirstX(ctx context.Context) *Group
FirstX is like First, but panics if an error occurs.
func (*GroupQuery) FirstXID ¶
func (gq *GroupQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*GroupQuery) GroupBy ¶
func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Group.Query(). GroupBy(group.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*GroupQuery) IDs ¶
func (gq *GroupQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Group ids.
func (*GroupQuery) IDsX ¶
func (gq *GroupQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*GroupQuery) Limit ¶
func (gq *GroupQuery) Limit(limit int) *GroupQuery
Limit adds a limit step to the query.
func (*GroupQuery) Offset ¶
func (gq *GroupQuery) Offset(offset int) *GroupQuery
Offset adds an offset step to the query.
func (*GroupQuery) Only ¶
func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)
Only returns the only Group entity in the query, returns an error if not exactly one entity was returned.
func (*GroupQuery) OnlyID ¶
func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Group id in the query, returns an error if not exactly one id was returned.
func (*GroupQuery) OnlyIDX ¶
func (gq *GroupQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GroupQuery) OnlyX ¶
func (gq *GroupQuery) OnlyX(ctx context.Context) *Group
OnlyX is like Only, but panics if an error occurs.
func (*GroupQuery) Order ¶
func (gq *GroupQuery) Order(o ...OrderFunc) *GroupQuery
Order adds an order step to the query.
func (*GroupQuery) QueryEvents ¶
func (gq *GroupQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*GroupQuery) QueryUsers ¶
func (gq *GroupQuery) QueryUsers() *UserQuery
QueryUsers chains the current query on the users edge.
func (*GroupQuery) Select ¶
func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Group.Query(). Select(group.FieldName). Scan(ctx, &v)
func (*GroupQuery) Where ¶
func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery
Where adds a new predicate for the builder.
func (*GroupQuery) WithEvents ¶
func (gq *GroupQuery) WithEvents(opts ...func(*EventQuery)) *GroupQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
func (*GroupQuery) WithUsers ¶
func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery
WithUsers tells the query-builder to eager-loads the nodes that are connected to
the "users" edge. The optional arguments used to configure the query builder of the edge.
type GroupSelect ¶
type GroupSelect struct {
// contains filtered or unexported fields
}
GroupSelect is the builder for select fields of Group entities.
func (*GroupSelect) Bool ¶
func (gs *GroupSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*GroupSelect) BoolX ¶
func (gs *GroupSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*GroupSelect) Bools ¶
func (gs *GroupSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*GroupSelect) BoolsX ¶
func (gs *GroupSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*GroupSelect) Float64 ¶
func (gs *GroupSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*GroupSelect) Float64X ¶
func (gs *GroupSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*GroupSelect) Float64s ¶
func (gs *GroupSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*GroupSelect) Float64sX ¶
func (gs *GroupSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*GroupSelect) Int ¶
func (gs *GroupSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*GroupSelect) IntX ¶
func (gs *GroupSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*GroupSelect) Ints ¶
func (gs *GroupSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*GroupSelect) IntsX ¶
func (gs *GroupSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*GroupSelect) Scan ¶
func (gs *GroupSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*GroupSelect) ScanX ¶
func (gs *GroupSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*GroupSelect) String ¶
func (gs *GroupSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*GroupSelect) StringX ¶
func (gs *GroupSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type GroupUpdate ¶
type GroupUpdate struct {
// contains filtered or unexported fields
}
GroupUpdate is the builder for updating Group entities.
func (*GroupUpdate) AddEventIDs ¶
func (gu *GroupUpdate) AddEventIDs(ids ...uuid.UUID) *GroupUpdate
AddEventIDs adds the events edge to Event by ids.
func (*GroupUpdate) AddEvents ¶
func (gu *GroupUpdate) AddEvents(e ...*Event) *GroupUpdate
AddEvents adds the events edges to Event.
func (*GroupUpdate) AddUserIDs ¶
func (gu *GroupUpdate) AddUserIDs(ids ...string) *GroupUpdate
AddUserIDs adds the users edge to User by ids.
func (*GroupUpdate) AddUsers ¶
func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate
AddUsers adds the users edges to User.
func (*GroupUpdate) Exec ¶
func (gu *GroupUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupUpdate) ExecX ¶
func (gu *GroupUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupUpdate) Mutation ¶
func (gu *GroupUpdate) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupUpdate) RemoveEventIDs ¶
func (gu *GroupUpdate) RemoveEventIDs(ids ...uuid.UUID) *GroupUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*GroupUpdate) RemoveEvents ¶
func (gu *GroupUpdate) RemoveEvents(e ...*Event) *GroupUpdate
RemoveEvents removes events edges to Event.
func (*GroupUpdate) RemoveUserIDs ¶
func (gu *GroupUpdate) RemoveUserIDs(ids ...string) *GroupUpdate
RemoveUserIDs removes the users edge to User by ids.
func (*GroupUpdate) RemoveUsers ¶
func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate
RemoveUsers removes users edges to User.
func (*GroupUpdate) Save ¶
func (gu *GroupUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*GroupUpdate) SaveX ¶
func (gu *GroupUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GroupUpdate) SetName ¶
func (gu *GroupUpdate) SetName(s string) *GroupUpdate
SetName sets the name field.
func (*GroupUpdate) Where ¶
func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate
Where adds a new predicate for the builder.
type GroupUpdateOne ¶
type GroupUpdateOne struct {
// contains filtered or unexported fields
}
GroupUpdateOne is the builder for updating a single Group entity.
func (*GroupUpdateOne) AddEventIDs ¶
func (guo *GroupUpdateOne) AddEventIDs(ids ...uuid.UUID) *GroupUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*GroupUpdateOne) AddEvents ¶
func (guo *GroupUpdateOne) AddEvents(e ...*Event) *GroupUpdateOne
AddEvents adds the events edges to Event.
func (*GroupUpdateOne) AddUserIDs ¶
func (guo *GroupUpdateOne) AddUserIDs(ids ...string) *GroupUpdateOne
AddUserIDs adds the users edge to User by ids.
func (*GroupUpdateOne) AddUsers ¶
func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne
AddUsers adds the users edges to User.
func (*GroupUpdateOne) Exec ¶
func (guo *GroupUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GroupUpdateOne) ExecX ¶
func (guo *GroupUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupUpdateOne) Mutation ¶
func (guo *GroupUpdateOne) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupUpdateOne) RemoveEventIDs ¶
func (guo *GroupUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *GroupUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*GroupUpdateOne) RemoveEvents ¶
func (guo *GroupUpdateOne) RemoveEvents(e ...*Event) *GroupUpdateOne
RemoveEvents removes events edges to Event.
func (*GroupUpdateOne) RemoveUserIDs ¶
func (guo *GroupUpdateOne) RemoveUserIDs(ids ...string) *GroupUpdateOne
RemoveUserIDs removes the users edge to User by ids.
func (*GroupUpdateOne) RemoveUsers ¶
func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne
RemoveUsers removes users edges to User.
func (*GroupUpdateOne) Save ¶
func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)
Save executes the query and returns the updated entity.
func (*GroupUpdateOne) SaveX ¶
func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group
SaveX is like Save, but panics if an error occurs.
func (*GroupUpdateOne) SetName ¶
func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne
SetName sets the name field.
type Library ¶
type Library struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the LibraryQuery when eager-loading is set. Edges LibraryEdges `json:"edges"` // contains filtered or unexported fields }
Library is the model entity for the Library schema.
func (*Library) QueryEvents ¶
func (l *Library) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Library.
func (*Library) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Library) Update ¶
func (l *Library) Update() *LibraryUpdateOne
Update returns a builder for updating this Library. Note that, you need to call Library.Unwrap() before calling this method, if this Library was returned from a transaction, and the transaction was committed or rolled back.
type LibraryClient ¶
type LibraryClient struct {
// contains filtered or unexported fields
}
LibraryClient is a client for the Library schema.
func NewLibraryClient ¶
func NewLibraryClient(c config) *LibraryClient
NewLibraryClient returns a client for the Library from the given config.
func (*LibraryClient) Create ¶
func (c *LibraryClient) Create() *LibraryCreate
Create returns a create builder for Library.
func (*LibraryClient) CreateBulk ¶
func (c *LibraryClient) CreateBulk(builders ...*LibraryCreate) *LibraryCreateBulk
BulkCreate returns a builder for creating a bulk of Library entities.
func (*LibraryClient) Delete ¶
func (c *LibraryClient) Delete() *LibraryDelete
Delete returns a delete builder for Library.
func (*LibraryClient) DeleteOne ¶
func (c *LibraryClient) DeleteOne(l *Library) *LibraryDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*LibraryClient) DeleteOneID ¶
func (c *LibraryClient) DeleteOneID(id int) *LibraryDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*LibraryClient) GetX ¶
func (c *LibraryClient) GetX(ctx context.Context, id int) *Library
GetX is like Get, but panics if an error occurs.
func (*LibraryClient) Hooks ¶
func (c *LibraryClient) Hooks() []Hook
Hooks returns the client hooks.
func (*LibraryClient) Query ¶
func (c *LibraryClient) Query() *LibraryQuery
Query returns a query builder for Library.
func (*LibraryClient) QueryEvents ¶
func (c *LibraryClient) QueryEvents(l *Library) *EventQuery
QueryEvents queries the events edge of a Library.
func (*LibraryClient) Update ¶
func (c *LibraryClient) Update() *LibraryUpdate
Update returns an update builder for Library.
func (*LibraryClient) UpdateOne ¶
func (c *LibraryClient) UpdateOne(l *Library) *LibraryUpdateOne
UpdateOne returns an update builder for the given entity.
func (*LibraryClient) UpdateOneID ¶
func (c *LibraryClient) UpdateOneID(id int) *LibraryUpdateOne
UpdateOneID returns an update builder for the given id.
func (*LibraryClient) Use ¶
func (c *LibraryClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `library.Hooks(f(g(h())))`.
type LibraryCreate ¶
type LibraryCreate struct {
// contains filtered or unexported fields
}
LibraryCreate is the builder for creating a Library entity.
func (*LibraryCreate) AddEventIDs ¶
func (lc *LibraryCreate) AddEventIDs(ids ...uuid.UUID) *LibraryCreate
AddEventIDs adds the events edge to Event by ids.
func (*LibraryCreate) AddEvents ¶
func (lc *LibraryCreate) AddEvents(e ...*Event) *LibraryCreate
AddEvents adds the events edges to Event.
func (*LibraryCreate) Mutation ¶
func (lc *LibraryCreate) Mutation() *LibraryMutation
Mutation returns the LibraryMutation object of the builder.
func (*LibraryCreate) Save ¶
func (lc *LibraryCreate) Save(ctx context.Context) (*Library, error)
Save creates the Library in the database.
func (*LibraryCreate) SaveX ¶
func (lc *LibraryCreate) SaveX(ctx context.Context) *Library
SaveX calls Save and panics if Save returns an error.
func (*LibraryCreate) SetName ¶
func (lc *LibraryCreate) SetName(s string) *LibraryCreate
SetName sets the name field.
func (*LibraryCreate) SetNillableVersion ¶
func (lc *LibraryCreate) SetNillableVersion(s *string) *LibraryCreate
SetNillableVersion sets the version field if the given value is not nil.
func (*LibraryCreate) SetVersion ¶
func (lc *LibraryCreate) SetVersion(s string) *LibraryCreate
SetVersion sets the version field.
type LibraryCreateBulk ¶
type LibraryCreateBulk struct {
// contains filtered or unexported fields
}
LibraryCreateBulk is the builder for creating a bulk of Library entities.
type LibraryDelete ¶
type LibraryDelete struct {
// contains filtered or unexported fields
}
LibraryDelete is the builder for deleting a Library entity.
func (*LibraryDelete) Exec ¶
func (ld *LibraryDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*LibraryDelete) ExecX ¶
func (ld *LibraryDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*LibraryDelete) Where ¶
func (ld *LibraryDelete) Where(ps ...predicate.Library) *LibraryDelete
Where adds a new predicate to the delete builder.
type LibraryDeleteOne ¶
type LibraryDeleteOne struct {
// contains filtered or unexported fields
}
LibraryDeleteOne is the builder for deleting a single Library entity.
func (*LibraryDeleteOne) Exec ¶
func (ldo *LibraryDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*LibraryDeleteOne) ExecX ¶
func (ldo *LibraryDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type LibraryEdges ¶
type LibraryEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
LibraryEdges holds the relations/edges for other nodes in the graph.
func (LibraryEdges) EventsOrErr ¶
func (e LibraryEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type LibraryGroupBy ¶
type LibraryGroupBy struct {
// contains filtered or unexported fields
}
LibraryGroupBy is the builder for group-by Library entities.
func (*LibraryGroupBy) Aggregate ¶
func (lgb *LibraryGroupBy) Aggregate(fns ...AggregateFunc) *LibraryGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*LibraryGroupBy) Bool ¶
func (lgb *LibraryGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) BoolX ¶
func (lgb *LibraryGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*LibraryGroupBy) Bools ¶
func (lgb *LibraryGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) BoolsX ¶
func (lgb *LibraryGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*LibraryGroupBy) Float64 ¶
func (lgb *LibraryGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) Float64X ¶
func (lgb *LibraryGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*LibraryGroupBy) Float64s ¶
func (lgb *LibraryGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) Float64sX ¶
func (lgb *LibraryGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*LibraryGroupBy) Int ¶
func (lgb *LibraryGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) IntX ¶
func (lgb *LibraryGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*LibraryGroupBy) Ints ¶
func (lgb *LibraryGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) IntsX ¶
func (lgb *LibraryGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*LibraryGroupBy) Scan ¶
func (lgb *LibraryGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*LibraryGroupBy) ScanX ¶
func (lgb *LibraryGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*LibraryGroupBy) String ¶
func (lgb *LibraryGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*LibraryGroupBy) StringX ¶
func (lgb *LibraryGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type LibraryMutation ¶
type LibraryMutation struct {
// contains filtered or unexported fields
}
LibraryMutation represents an operation that mutate the Libraries nodes in the graph.
func (*LibraryMutation) AddEventIDs ¶
func (m *LibraryMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*LibraryMutation) AddField ¶
func (m *LibraryMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*LibraryMutation) AddedEdges ¶
func (m *LibraryMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*LibraryMutation) AddedField ¶
func (m *LibraryMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*LibraryMutation) AddedFields ¶
func (m *LibraryMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*LibraryMutation) AddedIDs ¶
func (m *LibraryMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*LibraryMutation) ClearEdge ¶
func (m *LibraryMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*LibraryMutation) ClearField ¶
func (m *LibraryMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*LibraryMutation) ClearVersion ¶
func (m *LibraryMutation) ClearVersion()
ClearVersion clears the value of version.
func (*LibraryMutation) ClearedEdges ¶
func (m *LibraryMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*LibraryMutation) ClearedFields ¶
func (m *LibraryMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (LibraryMutation) Client ¶
func (m LibraryMutation) 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 (*LibraryMutation) EdgeCleared ¶
func (m *LibraryMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*LibraryMutation) EventsIDs ¶
func (m *LibraryMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*LibraryMutation) Field ¶
func (m *LibraryMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*LibraryMutation) FieldCleared ¶
func (m *LibraryMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*LibraryMutation) Fields ¶
func (m *LibraryMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*LibraryMutation) ID ¶
func (m *LibraryMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*LibraryMutation) Name ¶
func (m *LibraryMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*LibraryMutation) 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 was failed.
func (*LibraryMutation) OldName ¶
func (m *LibraryMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Library. If the Library 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 database query fails.
func (*LibraryMutation) OldVersion ¶
func (m *LibraryMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old version value of the Library. If the Library 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 database query fails.
func (*LibraryMutation) RemoveEventIDs ¶
func (m *LibraryMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*LibraryMutation) RemovedEdges ¶
func (m *LibraryMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*LibraryMutation) RemovedEventsIDs ¶
func (m *LibraryMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*LibraryMutation) RemovedIDs ¶
func (m *LibraryMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*LibraryMutation) ResetEdge ¶
func (m *LibraryMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*LibraryMutation) ResetEvents ¶
func (m *LibraryMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*LibraryMutation) ResetField ¶
func (m *LibraryMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*LibraryMutation) ResetName ¶
func (m *LibraryMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*LibraryMutation) ResetVersion ¶
func (m *LibraryMutation) ResetVersion()
ResetVersion reset all changes of the "version" field.
func (*LibraryMutation) SetField ¶
func (m *LibraryMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*LibraryMutation) SetName ¶
func (m *LibraryMutation) SetName(s string)
SetName sets the name field.
func (*LibraryMutation) SetVersion ¶
func (m *LibraryMutation) SetVersion(s string)
SetVersion sets the version field.
func (LibraryMutation) Tx ¶
func (m LibraryMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*LibraryMutation) Type ¶
func (m *LibraryMutation) Type() string
Type returns the node type of this mutation (Library).
func (*LibraryMutation) Version ¶
func (m *LibraryMutation) Version() (r string, exists bool)
Version returns the version value in the mutation.
func (*LibraryMutation) VersionCleared ¶
func (m *LibraryMutation) VersionCleared() bool
VersionCleared returns if the field version was cleared in this mutation.
type LibraryQuery ¶
type LibraryQuery struct {
// contains filtered or unexported fields
}
LibraryQuery is the builder for querying Library entities.
func (*LibraryQuery) All ¶
func (lq *LibraryQuery) All(ctx context.Context) ([]*Library, error)
All executes the query and returns a list of Libraries.
func (*LibraryQuery) AllX ¶
func (lq *LibraryQuery) AllX(ctx context.Context) []*Library
AllX is like All, but panics if an error occurs.
func (*LibraryQuery) Clone ¶
func (lq *LibraryQuery) Clone() *LibraryQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*LibraryQuery) Count ¶
func (lq *LibraryQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*LibraryQuery) CountX ¶
func (lq *LibraryQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*LibraryQuery) Exist ¶
func (lq *LibraryQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*LibraryQuery) ExistX ¶
func (lq *LibraryQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*LibraryQuery) First ¶
func (lq *LibraryQuery) First(ctx context.Context) (*Library, error)
First returns the first Library entity in the query. Returns *NotFoundError when no library was found.
func (*LibraryQuery) FirstID ¶
func (lq *LibraryQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Library id in the query. Returns *NotFoundError when no id was found.
func (*LibraryQuery) FirstX ¶
func (lq *LibraryQuery) FirstX(ctx context.Context) *Library
FirstX is like First, but panics if an error occurs.
func (*LibraryQuery) FirstXID ¶
func (lq *LibraryQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*LibraryQuery) GroupBy ¶
func (lq *LibraryQuery) GroupBy(field string, fields ...string) *LibraryGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Library.Query(). GroupBy(library.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*LibraryQuery) IDs ¶
func (lq *LibraryQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Library ids.
func (*LibraryQuery) IDsX ¶
func (lq *LibraryQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*LibraryQuery) Limit ¶
func (lq *LibraryQuery) Limit(limit int) *LibraryQuery
Limit adds a limit step to the query.
func (*LibraryQuery) Offset ¶
func (lq *LibraryQuery) Offset(offset int) *LibraryQuery
Offset adds an offset step to the query.
func (*LibraryQuery) Only ¶
func (lq *LibraryQuery) Only(ctx context.Context) (*Library, error)
Only returns the only Library entity in the query, returns an error if not exactly one entity was returned.
func (*LibraryQuery) OnlyID ¶
func (lq *LibraryQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Library id in the query, returns an error if not exactly one id was returned.
func (*LibraryQuery) OnlyIDX ¶
func (lq *LibraryQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*LibraryQuery) OnlyX ¶
func (lq *LibraryQuery) OnlyX(ctx context.Context) *Library
OnlyX is like Only, but panics if an error occurs.
func (*LibraryQuery) Order ¶
func (lq *LibraryQuery) Order(o ...OrderFunc) *LibraryQuery
Order adds an order step to the query.
func (*LibraryQuery) QueryEvents ¶
func (lq *LibraryQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*LibraryQuery) Select ¶
func (lq *LibraryQuery) Select(field string, fields ...string) *LibrarySelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Library.Query(). Select(library.FieldName). Scan(ctx, &v)
func (*LibraryQuery) Where ¶
func (lq *LibraryQuery) Where(ps ...predicate.Library) *LibraryQuery
Where adds a new predicate for the builder.
func (*LibraryQuery) WithEvents ¶
func (lq *LibraryQuery) WithEvents(opts ...func(*EventQuery)) *LibraryQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type LibrarySelect ¶
type LibrarySelect struct {
// contains filtered or unexported fields
}
LibrarySelect is the builder for select fields of Library entities.
func (*LibrarySelect) Bool ¶
func (ls *LibrarySelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*LibrarySelect) BoolX ¶
func (ls *LibrarySelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*LibrarySelect) Bools ¶
func (ls *LibrarySelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*LibrarySelect) BoolsX ¶
func (ls *LibrarySelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*LibrarySelect) Float64 ¶
func (ls *LibrarySelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*LibrarySelect) Float64X ¶
func (ls *LibrarySelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*LibrarySelect) Float64s ¶
func (ls *LibrarySelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*LibrarySelect) Float64sX ¶
func (ls *LibrarySelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*LibrarySelect) Int ¶
func (ls *LibrarySelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*LibrarySelect) IntX ¶
func (ls *LibrarySelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*LibrarySelect) Ints ¶
func (ls *LibrarySelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*LibrarySelect) IntsX ¶
func (ls *LibrarySelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*LibrarySelect) Scan ¶
func (ls *LibrarySelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*LibrarySelect) ScanX ¶
func (ls *LibrarySelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*LibrarySelect) String ¶
func (ls *LibrarySelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*LibrarySelect) StringX ¶
func (ls *LibrarySelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type LibraryUpdate ¶
type LibraryUpdate struct {
// contains filtered or unexported fields
}
LibraryUpdate is the builder for updating Library entities.
func (*LibraryUpdate) AddEventIDs ¶
func (lu *LibraryUpdate) AddEventIDs(ids ...uuid.UUID) *LibraryUpdate
AddEventIDs adds the events edge to Event by ids.
func (*LibraryUpdate) AddEvents ¶
func (lu *LibraryUpdate) AddEvents(e ...*Event) *LibraryUpdate
AddEvents adds the events edges to Event.
func (*LibraryUpdate) ClearVersion ¶
func (lu *LibraryUpdate) ClearVersion() *LibraryUpdate
ClearVersion clears the value of version.
func (*LibraryUpdate) Exec ¶
func (lu *LibraryUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*LibraryUpdate) ExecX ¶
func (lu *LibraryUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LibraryUpdate) Mutation ¶
func (lu *LibraryUpdate) Mutation() *LibraryMutation
Mutation returns the LibraryMutation object of the builder.
func (*LibraryUpdate) RemoveEventIDs ¶
func (lu *LibraryUpdate) RemoveEventIDs(ids ...uuid.UUID) *LibraryUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*LibraryUpdate) RemoveEvents ¶
func (lu *LibraryUpdate) RemoveEvents(e ...*Event) *LibraryUpdate
RemoveEvents removes events edges to Event.
func (*LibraryUpdate) Save ¶
func (lu *LibraryUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*LibraryUpdate) SaveX ¶
func (lu *LibraryUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*LibraryUpdate) SetName ¶
func (lu *LibraryUpdate) SetName(s string) *LibraryUpdate
SetName sets the name field.
func (*LibraryUpdate) SetNillableVersion ¶
func (lu *LibraryUpdate) SetNillableVersion(s *string) *LibraryUpdate
SetNillableVersion sets the version field if the given value is not nil.
func (*LibraryUpdate) SetVersion ¶
func (lu *LibraryUpdate) SetVersion(s string) *LibraryUpdate
SetVersion sets the version field.
func (*LibraryUpdate) Where ¶
func (lu *LibraryUpdate) Where(ps ...predicate.Library) *LibraryUpdate
Where adds a new predicate for the builder.
type LibraryUpdateOne ¶
type LibraryUpdateOne struct {
// contains filtered or unexported fields
}
LibraryUpdateOne is the builder for updating a single Library entity.
func (*LibraryUpdateOne) AddEventIDs ¶
func (luo *LibraryUpdateOne) AddEventIDs(ids ...uuid.UUID) *LibraryUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*LibraryUpdateOne) AddEvents ¶
func (luo *LibraryUpdateOne) AddEvents(e ...*Event) *LibraryUpdateOne
AddEvents adds the events edges to Event.
func (*LibraryUpdateOne) ClearVersion ¶
func (luo *LibraryUpdateOne) ClearVersion() *LibraryUpdateOne
ClearVersion clears the value of version.
func (*LibraryUpdateOne) Exec ¶
func (luo *LibraryUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*LibraryUpdateOne) ExecX ¶
func (luo *LibraryUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LibraryUpdateOne) Mutation ¶
func (luo *LibraryUpdateOne) Mutation() *LibraryMutation
Mutation returns the LibraryMutation object of the builder.
func (*LibraryUpdateOne) RemoveEventIDs ¶
func (luo *LibraryUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *LibraryUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*LibraryUpdateOne) RemoveEvents ¶
func (luo *LibraryUpdateOne) RemoveEvents(e ...*Event) *LibraryUpdateOne
RemoveEvents removes events edges to Event.
func (*LibraryUpdateOne) Save ¶
func (luo *LibraryUpdateOne) Save(ctx context.Context) (*Library, error)
Save executes the query and returns the updated entity.
func (*LibraryUpdateOne) SaveX ¶
func (luo *LibraryUpdateOne) SaveX(ctx context.Context) *Library
SaveX is like Save, but panics if an error occurs.
func (*LibraryUpdateOne) SetName ¶
func (luo *LibraryUpdateOne) SetName(s string) *LibraryUpdateOne
SetName sets the name field.
func (*LibraryUpdateOne) SetNillableVersion ¶
func (luo *LibraryUpdateOne) SetNillableVersion(s *string) *LibraryUpdateOne
SetNillableVersion sets the version field if the given value is not nil.
func (*LibraryUpdateOne) SetVersion ¶
func (luo *LibraryUpdateOne) SetVersion(s string) *LibraryUpdateOne
SetVersion sets the version field.
type Location ¶
type Location struct { // ID of the ent. ID int `json:"id,omitempty"` // Street holds the value of the "street" field. Street string `json:"street,omitempty"` // City holds the value of the "city" field. City string `json:"city,omitempty"` // State holds the value of the "state" field. State string `json:"state,omitempty"` // Postalcode holds the value of the "postalcode" field. Postalcode string `json:"postalcode,omitempty"` // Region holds the value of the "region" field. Region string `json:"region,omitempty"` // Locale holds the value of the "locale" field. Locale string `json:"locale,omitempty"` // Country holds the value of the "country" field. Country string `json:"country,omitempty"` // Longitude holds the value of the "longitude" field. Longitude float64 `json:"longitude,omitempty"` // Latitude holds the value of the "latitude" field. Latitude float64 `json:"latitude,omitempty"` // Timezone holds the value of the "timezone" field. Timezone string `json:"timezone,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the LocationQuery when eager-loading is set. Edges LocationEdges `json:"edges"` // contains filtered or unexported fields }
Location is the model entity for the Location schema.
func (*Location) QueryEvents ¶
func (l *Location) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Location.
func (*Location) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Location) Update ¶
func (l *Location) Update() *LocationUpdateOne
Update returns a builder for updating this Location. Note that, you need to call Location.Unwrap() before calling this method, if this Location was returned from a transaction, and the transaction was committed or rolled back.
type LocationClient ¶
type LocationClient struct {
// contains filtered or unexported fields
}
LocationClient is a client for the Location schema.
func NewLocationClient ¶
func NewLocationClient(c config) *LocationClient
NewLocationClient returns a client for the Location from the given config.
func (*LocationClient) Create ¶
func (c *LocationClient) Create() *LocationCreate
Create returns a create builder for Location.
func (*LocationClient) CreateBulk ¶
func (c *LocationClient) CreateBulk(builders ...*LocationCreate) *LocationCreateBulk
BulkCreate returns a builder for creating a bulk of Location entities.
func (*LocationClient) Delete ¶
func (c *LocationClient) Delete() *LocationDelete
Delete returns a delete builder for Location.
func (*LocationClient) DeleteOne ¶
func (c *LocationClient) DeleteOne(l *Location) *LocationDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*LocationClient) DeleteOneID ¶
func (c *LocationClient) DeleteOneID(id int) *LocationDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*LocationClient) GetX ¶
func (c *LocationClient) GetX(ctx context.Context, id int) *Location
GetX is like Get, but panics if an error occurs.
func (*LocationClient) Hooks ¶
func (c *LocationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*LocationClient) Query ¶
func (c *LocationClient) Query() *LocationQuery
Query returns a query builder for Location.
func (*LocationClient) QueryEvents ¶
func (c *LocationClient) QueryEvents(l *Location) *EventQuery
QueryEvents queries the events edge of a Location.
func (*LocationClient) Update ¶
func (c *LocationClient) Update() *LocationUpdate
Update returns an update builder for Location.
func (*LocationClient) UpdateOne ¶
func (c *LocationClient) UpdateOne(l *Location) *LocationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*LocationClient) UpdateOneID ¶
func (c *LocationClient) UpdateOneID(id int) *LocationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*LocationClient) Use ¶
func (c *LocationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `location.Hooks(f(g(h())))`.
type LocationCreate ¶
type LocationCreate struct {
// contains filtered or unexported fields
}
LocationCreate is the builder for creating a Location entity.
func (*LocationCreate) AddEventIDs ¶
func (lc *LocationCreate) AddEventIDs(ids ...uuid.UUID) *LocationCreate
AddEventIDs adds the events edge to Event by ids.
func (*LocationCreate) AddEvents ¶
func (lc *LocationCreate) AddEvents(e ...*Event) *LocationCreate
AddEvents adds the events edges to Event.
func (*LocationCreate) Mutation ¶
func (lc *LocationCreate) Mutation() *LocationMutation
Mutation returns the LocationMutation object of the builder.
func (*LocationCreate) Save ¶
func (lc *LocationCreate) Save(ctx context.Context) (*Location, error)
Save creates the Location in the database.
func (*LocationCreate) SaveX ¶
func (lc *LocationCreate) SaveX(ctx context.Context) *Location
SaveX calls Save and panics if Save returns an error.
func (*LocationCreate) SetCity ¶
func (lc *LocationCreate) SetCity(s string) *LocationCreate
SetCity sets the city field.
func (*LocationCreate) SetCountry ¶
func (lc *LocationCreate) SetCountry(s string) *LocationCreate
SetCountry sets the country field.
func (*LocationCreate) SetLatitude ¶
func (lc *LocationCreate) SetLatitude(f float64) *LocationCreate
SetLatitude sets the latitude field.
func (*LocationCreate) SetLocale ¶
func (lc *LocationCreate) SetLocale(s string) *LocationCreate
SetLocale sets the locale field.
func (*LocationCreate) SetLongitude ¶
func (lc *LocationCreate) SetLongitude(f float64) *LocationCreate
SetLongitude sets the longitude field.
func (*LocationCreate) SetNillableCity ¶
func (lc *LocationCreate) SetNillableCity(s *string) *LocationCreate
SetNillableCity sets the city field if the given value is not nil.
func (*LocationCreate) SetNillableCountry ¶
func (lc *LocationCreate) SetNillableCountry(s *string) *LocationCreate
SetNillableCountry sets the country field if the given value is not nil.
func (*LocationCreate) SetNillableLatitude ¶
func (lc *LocationCreate) SetNillableLatitude(f *float64) *LocationCreate
SetNillableLatitude sets the latitude field if the given value is not nil.
func (*LocationCreate) SetNillableLocale ¶
func (lc *LocationCreate) SetNillableLocale(s *string) *LocationCreate
SetNillableLocale sets the locale field if the given value is not nil.
func (*LocationCreate) SetNillableLongitude ¶
func (lc *LocationCreate) SetNillableLongitude(f *float64) *LocationCreate
SetNillableLongitude sets the longitude field if the given value is not nil.
func (*LocationCreate) SetNillablePostalcode ¶
func (lc *LocationCreate) SetNillablePostalcode(s *string) *LocationCreate
SetNillablePostalcode sets the postalcode field if the given value is not nil.
func (*LocationCreate) SetNillableRegion ¶
func (lc *LocationCreate) SetNillableRegion(s *string) *LocationCreate
SetNillableRegion sets the region field if the given value is not nil.
func (*LocationCreate) SetNillableState ¶
func (lc *LocationCreate) SetNillableState(s *string) *LocationCreate
SetNillableState sets the state field if the given value is not nil.
func (*LocationCreate) SetNillableStreet ¶
func (lc *LocationCreate) SetNillableStreet(s *string) *LocationCreate
SetNillableStreet sets the street field if the given value is not nil.
func (*LocationCreate) SetNillableTimezone ¶
func (lc *LocationCreate) SetNillableTimezone(s *string) *LocationCreate
SetNillableTimezone sets the timezone field if the given value is not nil.
func (*LocationCreate) SetPostalcode ¶
func (lc *LocationCreate) SetPostalcode(s string) *LocationCreate
SetPostalcode sets the postalcode field.
func (*LocationCreate) SetRegion ¶
func (lc *LocationCreate) SetRegion(s string) *LocationCreate
SetRegion sets the region field.
func (*LocationCreate) SetState ¶
func (lc *LocationCreate) SetState(s string) *LocationCreate
SetState sets the state field.
func (*LocationCreate) SetStreet ¶
func (lc *LocationCreate) SetStreet(s string) *LocationCreate
SetStreet sets the street field.
func (*LocationCreate) SetTimezone ¶
func (lc *LocationCreate) SetTimezone(s string) *LocationCreate
SetTimezone sets the timezone field.
type LocationCreateBulk ¶
type LocationCreateBulk struct {
// contains filtered or unexported fields
}
LocationCreateBulk is the builder for creating a bulk of Location entities.
type LocationDelete ¶
type LocationDelete struct {
// contains filtered or unexported fields
}
LocationDelete is the builder for deleting a Location entity.
func (*LocationDelete) Exec ¶
func (ld *LocationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*LocationDelete) ExecX ¶
func (ld *LocationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*LocationDelete) Where ¶
func (ld *LocationDelete) Where(ps ...predicate.Location) *LocationDelete
Where adds a new predicate to the delete builder.
type LocationDeleteOne ¶
type LocationDeleteOne struct {
// contains filtered or unexported fields
}
LocationDeleteOne is the builder for deleting a single Location entity.
func (*LocationDeleteOne) Exec ¶
func (ldo *LocationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*LocationDeleteOne) ExecX ¶
func (ldo *LocationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type LocationEdges ¶
type LocationEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
LocationEdges holds the relations/edges for other nodes in the graph.
func (LocationEdges) EventsOrErr ¶
func (e LocationEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type LocationGroupBy ¶
type LocationGroupBy struct {
// contains filtered or unexported fields
}
LocationGroupBy is the builder for group-by Location entities.
func (*LocationGroupBy) Aggregate ¶
func (lgb *LocationGroupBy) Aggregate(fns ...AggregateFunc) *LocationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*LocationGroupBy) Bool ¶
func (lgb *LocationGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) BoolX ¶
func (lgb *LocationGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*LocationGroupBy) Bools ¶
func (lgb *LocationGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) BoolsX ¶
func (lgb *LocationGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*LocationGroupBy) Float64 ¶
func (lgb *LocationGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) Float64X ¶
func (lgb *LocationGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*LocationGroupBy) Float64s ¶
func (lgb *LocationGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) Float64sX ¶
func (lgb *LocationGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*LocationGroupBy) Int ¶
func (lgb *LocationGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) IntX ¶
func (lgb *LocationGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*LocationGroupBy) Ints ¶
func (lgb *LocationGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) IntsX ¶
func (lgb *LocationGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*LocationGroupBy) Scan ¶
func (lgb *LocationGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*LocationGroupBy) ScanX ¶
func (lgb *LocationGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*LocationGroupBy) String ¶
func (lgb *LocationGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*LocationGroupBy) StringX ¶
func (lgb *LocationGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type LocationMutation ¶
type LocationMutation struct {
// contains filtered or unexported fields
}
LocationMutation represents an operation that mutate the Locations nodes in the graph.
func (*LocationMutation) AddEventIDs ¶
func (m *LocationMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*LocationMutation) AddField ¶
func (m *LocationMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*LocationMutation) AddLatitude ¶
func (m *LocationMutation) AddLatitude(f float64)
AddLatitude adds f to latitude.
func (*LocationMutation) AddLongitude ¶
func (m *LocationMutation) AddLongitude(f float64)
AddLongitude adds f to longitude.
func (*LocationMutation) AddedEdges ¶
func (m *LocationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*LocationMutation) AddedField ¶
func (m *LocationMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*LocationMutation) AddedFields ¶
func (m *LocationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*LocationMutation) AddedIDs ¶
func (m *LocationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*LocationMutation) AddedLatitude ¶
func (m *LocationMutation) AddedLatitude() (r float64, exists bool)
AddedLatitude returns the value that was added to the latitude field in this mutation.
func (*LocationMutation) AddedLongitude ¶
func (m *LocationMutation) AddedLongitude() (r float64, exists bool)
AddedLongitude returns the value that was added to the longitude field in this mutation.
func (*LocationMutation) City ¶
func (m *LocationMutation) City() (r string, exists bool)
City returns the city value in the mutation.
func (*LocationMutation) CityCleared ¶
func (m *LocationMutation) CityCleared() bool
CityCleared returns if the field city was cleared in this mutation.
func (*LocationMutation) ClearCity ¶
func (m *LocationMutation) ClearCity()
ClearCity clears the value of city.
func (*LocationMutation) ClearCountry ¶
func (m *LocationMutation) ClearCountry()
ClearCountry clears the value of country.
func (*LocationMutation) ClearEdge ¶
func (m *LocationMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*LocationMutation) ClearField ¶
func (m *LocationMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*LocationMutation) ClearLatitude ¶
func (m *LocationMutation) ClearLatitude()
ClearLatitude clears the value of latitude.
func (*LocationMutation) ClearLocale ¶
func (m *LocationMutation) ClearLocale()
ClearLocale clears the value of locale.
func (*LocationMutation) ClearLongitude ¶
func (m *LocationMutation) ClearLongitude()
ClearLongitude clears the value of longitude.
func (*LocationMutation) ClearPostalcode ¶
func (m *LocationMutation) ClearPostalcode()
ClearPostalcode clears the value of postalcode.
func (*LocationMutation) ClearRegion ¶
func (m *LocationMutation) ClearRegion()
ClearRegion clears the value of region.
func (*LocationMutation) ClearState ¶
func (m *LocationMutation) ClearState()
ClearState clears the value of state.
func (*LocationMutation) ClearStreet ¶
func (m *LocationMutation) ClearStreet()
ClearStreet clears the value of street.
func (*LocationMutation) ClearTimezone ¶
func (m *LocationMutation) ClearTimezone()
ClearTimezone clears the value of timezone.
func (*LocationMutation) ClearedEdges ¶
func (m *LocationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*LocationMutation) ClearedFields ¶
func (m *LocationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (LocationMutation) Client ¶
func (m LocationMutation) 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 (*LocationMutation) Country ¶
func (m *LocationMutation) Country() (r string, exists bool)
Country returns the country value in the mutation.
func (*LocationMutation) CountryCleared ¶
func (m *LocationMutation) CountryCleared() bool
CountryCleared returns if the field country was cleared in this mutation.
func (*LocationMutation) EdgeCleared ¶
func (m *LocationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*LocationMutation) EventsIDs ¶
func (m *LocationMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*LocationMutation) Field ¶
func (m *LocationMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*LocationMutation) FieldCleared ¶
func (m *LocationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*LocationMutation) Fields ¶
func (m *LocationMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*LocationMutation) ID ¶
func (m *LocationMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*LocationMutation) Latitude ¶
func (m *LocationMutation) Latitude() (r float64, exists bool)
Latitude returns the latitude value in the mutation.
func (*LocationMutation) LatitudeCleared ¶
func (m *LocationMutation) LatitudeCleared() bool
LatitudeCleared returns if the field latitude was cleared in this mutation.
func (*LocationMutation) Locale ¶
func (m *LocationMutation) Locale() (r string, exists bool)
Locale returns the locale value in the mutation.
func (*LocationMutation) LocaleCleared ¶
func (m *LocationMutation) LocaleCleared() bool
LocaleCleared returns if the field locale was cleared in this mutation.
func (*LocationMutation) Longitude ¶
func (m *LocationMutation) Longitude() (r float64, exists bool)
Longitude returns the longitude value in the mutation.
func (*LocationMutation) LongitudeCleared ¶
func (m *LocationMutation) LongitudeCleared() bool
LongitudeCleared returns if the field longitude was cleared in this mutation.
func (*LocationMutation) OldCity ¶
func (m *LocationMutation) OldCity(ctx context.Context) (v string, err error)
OldCity returns the old city value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldCountry ¶
func (m *LocationMutation) OldCountry(ctx context.Context) (v string, err error)
OldCountry returns the old country value of the Location. If the Location 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 database query fails.
func (*LocationMutation) 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 was failed.
func (*LocationMutation) OldLatitude ¶
func (m *LocationMutation) OldLatitude(ctx context.Context) (v float64, err error)
OldLatitude returns the old latitude value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldLocale ¶
func (m *LocationMutation) OldLocale(ctx context.Context) (v string, err error)
OldLocale returns the old locale value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldLongitude ¶
func (m *LocationMutation) OldLongitude(ctx context.Context) (v float64, err error)
OldLongitude returns the old longitude value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldPostalcode ¶
func (m *LocationMutation) OldPostalcode(ctx context.Context) (v string, err error)
OldPostalcode returns the old postalcode value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldRegion ¶
func (m *LocationMutation) OldRegion(ctx context.Context) (v string, err error)
OldRegion returns the old region value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldState ¶
func (m *LocationMutation) OldState(ctx context.Context) (v string, err error)
OldState returns the old state value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldStreet ¶
func (m *LocationMutation) OldStreet(ctx context.Context) (v string, err error)
OldStreet returns the old street value of the Location. If the Location 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 database query fails.
func (*LocationMutation) OldTimezone ¶
func (m *LocationMutation) OldTimezone(ctx context.Context) (v string, err error)
OldTimezone returns the old timezone value of the Location. If the Location 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 database query fails.
func (*LocationMutation) Postalcode ¶
func (m *LocationMutation) Postalcode() (r string, exists bool)
Postalcode returns the postalcode value in the mutation.
func (*LocationMutation) PostalcodeCleared ¶
func (m *LocationMutation) PostalcodeCleared() bool
PostalcodeCleared returns if the field postalcode was cleared in this mutation.
func (*LocationMutation) Region ¶
func (m *LocationMutation) Region() (r string, exists bool)
Region returns the region value in the mutation.
func (*LocationMutation) RegionCleared ¶
func (m *LocationMutation) RegionCleared() bool
RegionCleared returns if the field region was cleared in this mutation.
func (*LocationMutation) RemoveEventIDs ¶
func (m *LocationMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*LocationMutation) RemovedEdges ¶
func (m *LocationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*LocationMutation) RemovedEventsIDs ¶
func (m *LocationMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*LocationMutation) RemovedIDs ¶
func (m *LocationMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*LocationMutation) ResetCity ¶
func (m *LocationMutation) ResetCity()
ResetCity reset all changes of the "city" field.
func (*LocationMutation) ResetCountry ¶
func (m *LocationMutation) ResetCountry()
ResetCountry reset all changes of the "country" field.
func (*LocationMutation) ResetEdge ¶
func (m *LocationMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*LocationMutation) ResetEvents ¶
func (m *LocationMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*LocationMutation) ResetField ¶
func (m *LocationMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*LocationMutation) ResetLatitude ¶
func (m *LocationMutation) ResetLatitude()
ResetLatitude reset all changes of the "latitude" field.
func (*LocationMutation) ResetLocale ¶
func (m *LocationMutation) ResetLocale()
ResetLocale reset all changes of the "locale" field.
func (*LocationMutation) ResetLongitude ¶
func (m *LocationMutation) ResetLongitude()
ResetLongitude reset all changes of the "longitude" field.
func (*LocationMutation) ResetPostalcode ¶
func (m *LocationMutation) ResetPostalcode()
ResetPostalcode reset all changes of the "postalcode" field.
func (*LocationMutation) ResetRegion ¶
func (m *LocationMutation) ResetRegion()
ResetRegion reset all changes of the "region" field.
func (*LocationMutation) ResetState ¶
func (m *LocationMutation) ResetState()
ResetState reset all changes of the "state" field.
func (*LocationMutation) ResetStreet ¶
func (m *LocationMutation) ResetStreet()
ResetStreet reset all changes of the "street" field.
func (*LocationMutation) ResetTimezone ¶
func (m *LocationMutation) ResetTimezone()
ResetTimezone reset all changes of the "timezone" field.
func (*LocationMutation) SetCity ¶
func (m *LocationMutation) SetCity(s string)
SetCity sets the city field.
func (*LocationMutation) SetCountry ¶
func (m *LocationMutation) SetCountry(s string)
SetCountry sets the country field.
func (*LocationMutation) SetField ¶
func (m *LocationMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*LocationMutation) SetLatitude ¶
func (m *LocationMutation) SetLatitude(f float64)
SetLatitude sets the latitude field.
func (*LocationMutation) SetLocale ¶
func (m *LocationMutation) SetLocale(s string)
SetLocale sets the locale field.
func (*LocationMutation) SetLongitude ¶
func (m *LocationMutation) SetLongitude(f float64)
SetLongitude sets the longitude field.
func (*LocationMutation) SetPostalcode ¶
func (m *LocationMutation) SetPostalcode(s string)
SetPostalcode sets the postalcode field.
func (*LocationMutation) SetRegion ¶
func (m *LocationMutation) SetRegion(s string)
SetRegion sets the region field.
func (*LocationMutation) SetState ¶
func (m *LocationMutation) SetState(s string)
SetState sets the state field.
func (*LocationMutation) SetStreet ¶
func (m *LocationMutation) SetStreet(s string)
SetStreet sets the street field.
func (*LocationMutation) SetTimezone ¶
func (m *LocationMutation) SetTimezone(s string)
SetTimezone sets the timezone field.
func (*LocationMutation) State ¶
func (m *LocationMutation) State() (r string, exists bool)
State returns the state value in the mutation.
func (*LocationMutation) StateCleared ¶
func (m *LocationMutation) StateCleared() bool
StateCleared returns if the field state was cleared in this mutation.
func (*LocationMutation) Street ¶
func (m *LocationMutation) Street() (r string, exists bool)
Street returns the street value in the mutation.
func (*LocationMutation) StreetCleared ¶
func (m *LocationMutation) StreetCleared() bool
StreetCleared returns if the field street was cleared in this mutation.
func (*LocationMutation) Timezone ¶
func (m *LocationMutation) Timezone() (r string, exists bool)
Timezone returns the timezone value in the mutation.
func (*LocationMutation) TimezoneCleared ¶
func (m *LocationMutation) TimezoneCleared() bool
TimezoneCleared returns if the field timezone was cleared in this mutation.
func (LocationMutation) Tx ¶
func (m LocationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*LocationMutation) Type ¶
func (m *LocationMutation) Type() string
Type returns the node type of this mutation (Location).
type LocationQuery ¶
type LocationQuery struct {
// contains filtered or unexported fields
}
LocationQuery is the builder for querying Location entities.
func (*LocationQuery) All ¶
func (lq *LocationQuery) All(ctx context.Context) ([]*Location, error)
All executes the query and returns a list of Locations.
func (*LocationQuery) AllX ¶
func (lq *LocationQuery) AllX(ctx context.Context) []*Location
AllX is like All, but panics if an error occurs.
func (*LocationQuery) Clone ¶
func (lq *LocationQuery) Clone() *LocationQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*LocationQuery) Count ¶
func (lq *LocationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*LocationQuery) CountX ¶
func (lq *LocationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*LocationQuery) Exist ¶
func (lq *LocationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*LocationQuery) ExistX ¶
func (lq *LocationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*LocationQuery) First ¶
func (lq *LocationQuery) First(ctx context.Context) (*Location, error)
First returns the first Location entity in the query. Returns *NotFoundError when no location was found.
func (*LocationQuery) FirstID ¶
func (lq *LocationQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Location id in the query. Returns *NotFoundError when no id was found.
func (*LocationQuery) FirstX ¶
func (lq *LocationQuery) FirstX(ctx context.Context) *Location
FirstX is like First, but panics if an error occurs.
func (*LocationQuery) FirstXID ¶
func (lq *LocationQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*LocationQuery) GroupBy ¶
func (lq *LocationQuery) GroupBy(field string, fields ...string) *LocationGroupBy
GroupBy 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 { Street string `json:"street,omitempty"` Count int `json:"count,omitempty"` } client.Location.Query(). GroupBy(location.FieldStreet). Aggregate(ent.Count()). Scan(ctx, &v)
func (*LocationQuery) IDs ¶
func (lq *LocationQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Location ids.
func (*LocationQuery) IDsX ¶
func (lq *LocationQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*LocationQuery) Limit ¶
func (lq *LocationQuery) Limit(limit int) *LocationQuery
Limit adds a limit step to the query.
func (*LocationQuery) Offset ¶
func (lq *LocationQuery) Offset(offset int) *LocationQuery
Offset adds an offset step to the query.
func (*LocationQuery) Only ¶
func (lq *LocationQuery) Only(ctx context.Context) (*Location, error)
Only returns the only Location entity in the query, returns an error if not exactly one entity was returned.
func (*LocationQuery) OnlyID ¶
func (lq *LocationQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Location id in the query, returns an error if not exactly one id was returned.
func (*LocationQuery) OnlyIDX ¶
func (lq *LocationQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*LocationQuery) OnlyX ¶
func (lq *LocationQuery) OnlyX(ctx context.Context) *Location
OnlyX is like Only, but panics if an error occurs.
func (*LocationQuery) Order ¶
func (lq *LocationQuery) Order(o ...OrderFunc) *LocationQuery
Order adds an order step to the query.
func (*LocationQuery) QueryEvents ¶
func (lq *LocationQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*LocationQuery) Select ¶
func (lq *LocationQuery) Select(field string, fields ...string) *LocationSelect
Select one or more fields from the given query.
Example:
var v []struct { Street string `json:"street,omitempty"` } client.Location.Query(). Select(location.FieldStreet). Scan(ctx, &v)
func (*LocationQuery) Where ¶
func (lq *LocationQuery) Where(ps ...predicate.Location) *LocationQuery
Where adds a new predicate for the builder.
func (*LocationQuery) WithEvents ¶
func (lq *LocationQuery) WithEvents(opts ...func(*EventQuery)) *LocationQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type LocationSelect ¶
type LocationSelect struct {
// contains filtered or unexported fields
}
LocationSelect is the builder for select fields of Location entities.
func (*LocationSelect) Bool ¶
func (ls *LocationSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*LocationSelect) BoolX ¶
func (ls *LocationSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*LocationSelect) Bools ¶
func (ls *LocationSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*LocationSelect) BoolsX ¶
func (ls *LocationSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*LocationSelect) Float64 ¶
func (ls *LocationSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*LocationSelect) Float64X ¶
func (ls *LocationSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*LocationSelect) Float64s ¶
func (ls *LocationSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*LocationSelect) Float64sX ¶
func (ls *LocationSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*LocationSelect) Int ¶
func (ls *LocationSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*LocationSelect) IntX ¶
func (ls *LocationSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*LocationSelect) Ints ¶
func (ls *LocationSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*LocationSelect) IntsX ¶
func (ls *LocationSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*LocationSelect) Scan ¶
func (ls *LocationSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*LocationSelect) ScanX ¶
func (ls *LocationSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*LocationSelect) String ¶
func (ls *LocationSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*LocationSelect) StringX ¶
func (ls *LocationSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type LocationUpdate ¶
type LocationUpdate struct {
// contains filtered or unexported fields
}
LocationUpdate is the builder for updating Location entities.
func (*LocationUpdate) AddEventIDs ¶
func (lu *LocationUpdate) AddEventIDs(ids ...uuid.UUID) *LocationUpdate
AddEventIDs adds the events edge to Event by ids.
func (*LocationUpdate) AddEvents ¶
func (lu *LocationUpdate) AddEvents(e ...*Event) *LocationUpdate
AddEvents adds the events edges to Event.
func (*LocationUpdate) AddLatitude ¶
func (lu *LocationUpdate) AddLatitude(f float64) *LocationUpdate
AddLatitude adds f to latitude.
func (*LocationUpdate) AddLongitude ¶
func (lu *LocationUpdate) AddLongitude(f float64) *LocationUpdate
AddLongitude adds f to longitude.
func (*LocationUpdate) ClearCity ¶
func (lu *LocationUpdate) ClearCity() *LocationUpdate
ClearCity clears the value of city.
func (*LocationUpdate) ClearCountry ¶
func (lu *LocationUpdate) ClearCountry() *LocationUpdate
ClearCountry clears the value of country.
func (*LocationUpdate) ClearLatitude ¶
func (lu *LocationUpdate) ClearLatitude() *LocationUpdate
ClearLatitude clears the value of latitude.
func (*LocationUpdate) ClearLocale ¶
func (lu *LocationUpdate) ClearLocale() *LocationUpdate
ClearLocale clears the value of locale.
func (*LocationUpdate) ClearLongitude ¶
func (lu *LocationUpdate) ClearLongitude() *LocationUpdate
ClearLongitude clears the value of longitude.
func (*LocationUpdate) ClearPostalcode ¶
func (lu *LocationUpdate) ClearPostalcode() *LocationUpdate
ClearPostalcode clears the value of postalcode.
func (*LocationUpdate) ClearRegion ¶
func (lu *LocationUpdate) ClearRegion() *LocationUpdate
ClearRegion clears the value of region.
func (*LocationUpdate) ClearState ¶
func (lu *LocationUpdate) ClearState() *LocationUpdate
ClearState clears the value of state.
func (*LocationUpdate) ClearStreet ¶
func (lu *LocationUpdate) ClearStreet() *LocationUpdate
ClearStreet clears the value of street.
func (*LocationUpdate) ClearTimezone ¶
func (lu *LocationUpdate) ClearTimezone() *LocationUpdate
ClearTimezone clears the value of timezone.
func (*LocationUpdate) Exec ¶
func (lu *LocationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*LocationUpdate) ExecX ¶
func (lu *LocationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LocationUpdate) Mutation ¶
func (lu *LocationUpdate) Mutation() *LocationMutation
Mutation returns the LocationMutation object of the builder.
func (*LocationUpdate) RemoveEventIDs ¶
func (lu *LocationUpdate) RemoveEventIDs(ids ...uuid.UUID) *LocationUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*LocationUpdate) RemoveEvents ¶
func (lu *LocationUpdate) RemoveEvents(e ...*Event) *LocationUpdate
RemoveEvents removes events edges to Event.
func (*LocationUpdate) Save ¶
func (lu *LocationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*LocationUpdate) SaveX ¶
func (lu *LocationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*LocationUpdate) SetCity ¶
func (lu *LocationUpdate) SetCity(s string) *LocationUpdate
SetCity sets the city field.
func (*LocationUpdate) SetCountry ¶
func (lu *LocationUpdate) SetCountry(s string) *LocationUpdate
SetCountry sets the country field.
func (*LocationUpdate) SetLatitude ¶
func (lu *LocationUpdate) SetLatitude(f float64) *LocationUpdate
SetLatitude sets the latitude field.
func (*LocationUpdate) SetLocale ¶
func (lu *LocationUpdate) SetLocale(s string) *LocationUpdate
SetLocale sets the locale field.
func (*LocationUpdate) SetLongitude ¶
func (lu *LocationUpdate) SetLongitude(f float64) *LocationUpdate
SetLongitude sets the longitude field.
func (*LocationUpdate) SetNillableCity ¶
func (lu *LocationUpdate) SetNillableCity(s *string) *LocationUpdate
SetNillableCity sets the city field if the given value is not nil.
func (*LocationUpdate) SetNillableCountry ¶
func (lu *LocationUpdate) SetNillableCountry(s *string) *LocationUpdate
SetNillableCountry sets the country field if the given value is not nil.
func (*LocationUpdate) SetNillableLatitude ¶
func (lu *LocationUpdate) SetNillableLatitude(f *float64) *LocationUpdate
SetNillableLatitude sets the latitude field if the given value is not nil.
func (*LocationUpdate) SetNillableLocale ¶
func (lu *LocationUpdate) SetNillableLocale(s *string) *LocationUpdate
SetNillableLocale sets the locale field if the given value is not nil.
func (*LocationUpdate) SetNillableLongitude ¶
func (lu *LocationUpdate) SetNillableLongitude(f *float64) *LocationUpdate
SetNillableLongitude sets the longitude field if the given value is not nil.
func (*LocationUpdate) SetNillablePostalcode ¶
func (lu *LocationUpdate) SetNillablePostalcode(s *string) *LocationUpdate
SetNillablePostalcode sets the postalcode field if the given value is not nil.
func (*LocationUpdate) SetNillableRegion ¶
func (lu *LocationUpdate) SetNillableRegion(s *string) *LocationUpdate
SetNillableRegion sets the region field if the given value is not nil.
func (*LocationUpdate) SetNillableState ¶
func (lu *LocationUpdate) SetNillableState(s *string) *LocationUpdate
SetNillableState sets the state field if the given value is not nil.
func (*LocationUpdate) SetNillableStreet ¶
func (lu *LocationUpdate) SetNillableStreet(s *string) *LocationUpdate
SetNillableStreet sets the street field if the given value is not nil.
func (*LocationUpdate) SetNillableTimezone ¶
func (lu *LocationUpdate) SetNillableTimezone(s *string) *LocationUpdate
SetNillableTimezone sets the timezone field if the given value is not nil.
func (*LocationUpdate) SetPostalcode ¶
func (lu *LocationUpdate) SetPostalcode(s string) *LocationUpdate
SetPostalcode sets the postalcode field.
func (*LocationUpdate) SetRegion ¶
func (lu *LocationUpdate) SetRegion(s string) *LocationUpdate
SetRegion sets the region field.
func (*LocationUpdate) SetState ¶
func (lu *LocationUpdate) SetState(s string) *LocationUpdate
SetState sets the state field.
func (*LocationUpdate) SetStreet ¶
func (lu *LocationUpdate) SetStreet(s string) *LocationUpdate
SetStreet sets the street field.
func (*LocationUpdate) SetTimezone ¶
func (lu *LocationUpdate) SetTimezone(s string) *LocationUpdate
SetTimezone sets the timezone field.
func (*LocationUpdate) Where ¶
func (lu *LocationUpdate) Where(ps ...predicate.Location) *LocationUpdate
Where adds a new predicate for the builder.
type LocationUpdateOne ¶
type LocationUpdateOne struct {
// contains filtered or unexported fields
}
LocationUpdateOne is the builder for updating a single Location entity.
func (*LocationUpdateOne) AddEventIDs ¶
func (luo *LocationUpdateOne) AddEventIDs(ids ...uuid.UUID) *LocationUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*LocationUpdateOne) AddEvents ¶
func (luo *LocationUpdateOne) AddEvents(e ...*Event) *LocationUpdateOne
AddEvents adds the events edges to Event.
func (*LocationUpdateOne) AddLatitude ¶
func (luo *LocationUpdateOne) AddLatitude(f float64) *LocationUpdateOne
AddLatitude adds f to latitude.
func (*LocationUpdateOne) AddLongitude ¶
func (luo *LocationUpdateOne) AddLongitude(f float64) *LocationUpdateOne
AddLongitude adds f to longitude.
func (*LocationUpdateOne) ClearCity ¶
func (luo *LocationUpdateOne) ClearCity() *LocationUpdateOne
ClearCity clears the value of city.
func (*LocationUpdateOne) ClearCountry ¶
func (luo *LocationUpdateOne) ClearCountry() *LocationUpdateOne
ClearCountry clears the value of country.
func (*LocationUpdateOne) ClearLatitude ¶
func (luo *LocationUpdateOne) ClearLatitude() *LocationUpdateOne
ClearLatitude clears the value of latitude.
func (*LocationUpdateOne) ClearLocale ¶
func (luo *LocationUpdateOne) ClearLocale() *LocationUpdateOne
ClearLocale clears the value of locale.
func (*LocationUpdateOne) ClearLongitude ¶
func (luo *LocationUpdateOne) ClearLongitude() *LocationUpdateOne
ClearLongitude clears the value of longitude.
func (*LocationUpdateOne) ClearPostalcode ¶
func (luo *LocationUpdateOne) ClearPostalcode() *LocationUpdateOne
ClearPostalcode clears the value of postalcode.
func (*LocationUpdateOne) ClearRegion ¶
func (luo *LocationUpdateOne) ClearRegion() *LocationUpdateOne
ClearRegion clears the value of region.
func (*LocationUpdateOne) ClearState ¶
func (luo *LocationUpdateOne) ClearState() *LocationUpdateOne
ClearState clears the value of state.
func (*LocationUpdateOne) ClearStreet ¶
func (luo *LocationUpdateOne) ClearStreet() *LocationUpdateOne
ClearStreet clears the value of street.
func (*LocationUpdateOne) ClearTimezone ¶
func (luo *LocationUpdateOne) ClearTimezone() *LocationUpdateOne
ClearTimezone clears the value of timezone.
func (*LocationUpdateOne) Exec ¶
func (luo *LocationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*LocationUpdateOne) ExecX ¶
func (luo *LocationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LocationUpdateOne) Mutation ¶
func (luo *LocationUpdateOne) Mutation() *LocationMutation
Mutation returns the LocationMutation object of the builder.
func (*LocationUpdateOne) RemoveEventIDs ¶
func (luo *LocationUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *LocationUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*LocationUpdateOne) RemoveEvents ¶
func (luo *LocationUpdateOne) RemoveEvents(e ...*Event) *LocationUpdateOne
RemoveEvents removes events edges to Event.
func (*LocationUpdateOne) Save ¶
func (luo *LocationUpdateOne) Save(ctx context.Context) (*Location, error)
Save executes the query and returns the updated entity.
func (*LocationUpdateOne) SaveX ¶
func (luo *LocationUpdateOne) SaveX(ctx context.Context) *Location
SaveX is like Save, but panics if an error occurs.
func (*LocationUpdateOne) SetCity ¶
func (luo *LocationUpdateOne) SetCity(s string) *LocationUpdateOne
SetCity sets the city field.
func (*LocationUpdateOne) SetCountry ¶
func (luo *LocationUpdateOne) SetCountry(s string) *LocationUpdateOne
SetCountry sets the country field.
func (*LocationUpdateOne) SetLatitude ¶
func (luo *LocationUpdateOne) SetLatitude(f float64) *LocationUpdateOne
SetLatitude sets the latitude field.
func (*LocationUpdateOne) SetLocale ¶
func (luo *LocationUpdateOne) SetLocale(s string) *LocationUpdateOne
SetLocale sets the locale field.
func (*LocationUpdateOne) SetLongitude ¶
func (luo *LocationUpdateOne) SetLongitude(f float64) *LocationUpdateOne
SetLongitude sets the longitude field.
func (*LocationUpdateOne) SetNillableCity ¶
func (luo *LocationUpdateOne) SetNillableCity(s *string) *LocationUpdateOne
SetNillableCity sets the city field if the given value is not nil.
func (*LocationUpdateOne) SetNillableCountry ¶
func (luo *LocationUpdateOne) SetNillableCountry(s *string) *LocationUpdateOne
SetNillableCountry sets the country field if the given value is not nil.
func (*LocationUpdateOne) SetNillableLatitude ¶
func (luo *LocationUpdateOne) SetNillableLatitude(f *float64) *LocationUpdateOne
SetNillableLatitude sets the latitude field if the given value is not nil.
func (*LocationUpdateOne) SetNillableLocale ¶
func (luo *LocationUpdateOne) SetNillableLocale(s *string) *LocationUpdateOne
SetNillableLocale sets the locale field if the given value is not nil.
func (*LocationUpdateOne) SetNillableLongitude ¶
func (luo *LocationUpdateOne) SetNillableLongitude(f *float64) *LocationUpdateOne
SetNillableLongitude sets the longitude field if the given value is not nil.
func (*LocationUpdateOne) SetNillablePostalcode ¶
func (luo *LocationUpdateOne) SetNillablePostalcode(s *string) *LocationUpdateOne
SetNillablePostalcode sets the postalcode field if the given value is not nil.
func (*LocationUpdateOne) SetNillableRegion ¶
func (luo *LocationUpdateOne) SetNillableRegion(s *string) *LocationUpdateOne
SetNillableRegion sets the region field if the given value is not nil.
func (*LocationUpdateOne) SetNillableState ¶
func (luo *LocationUpdateOne) SetNillableState(s *string) *LocationUpdateOne
SetNillableState sets the state field if the given value is not nil.
func (*LocationUpdateOne) SetNillableStreet ¶
func (luo *LocationUpdateOne) SetNillableStreet(s *string) *LocationUpdateOne
SetNillableStreet sets the street field if the given value is not nil.
func (*LocationUpdateOne) SetNillableTimezone ¶
func (luo *LocationUpdateOne) SetNillableTimezone(s *string) *LocationUpdateOne
SetNillableTimezone sets the timezone field if the given value is not nil.
func (*LocationUpdateOne) SetPostalcode ¶
func (luo *LocationUpdateOne) SetPostalcode(s string) *LocationUpdateOne
SetPostalcode sets the postalcode field.
func (*LocationUpdateOne) SetRegion ¶
func (luo *LocationUpdateOne) SetRegion(s string) *LocationUpdateOne
SetRegion sets the region field.
func (*LocationUpdateOne) SetState ¶
func (luo *LocationUpdateOne) SetState(s string) *LocationUpdateOne
SetState sets the state field.
func (*LocationUpdateOne) SetStreet ¶
func (luo *LocationUpdateOne) SetStreet(s string) *LocationUpdateOne
SetStreet sets the street field.
func (*LocationUpdateOne) SetTimezone ¶
func (luo *LocationUpdateOne) SetTimezone(s string) *LocationUpdateOne
SetTimezone sets the timezone field.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflict in user's code.
type Network ¶
type Network struct { // ID of the ent. ID int `json:"id,omitempty"` // IP holds the value of the "ip" field. IP string `json:"ip,omitempty"` // Useragent holds the value of the "useragent" field. Useragent string `json:"useragent,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the NetworkQuery when eager-loading is set. Edges NetworkEdges `json:"edges"` // contains filtered or unexported fields }
Network is the model entity for the Network schema.
func (*Network) QueryEvents ¶
func (n *Network) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Network.
func (*Network) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Network) Update ¶
func (n *Network) Update() *NetworkUpdateOne
Update returns a builder for updating this Network. Note that, you need to call Network.Unwrap() before calling this method, if this Network was returned from a transaction, and the transaction was committed or rolled back.
type NetworkClient ¶
type NetworkClient struct {
// contains filtered or unexported fields
}
NetworkClient is a client for the Network schema.
func NewNetworkClient ¶
func NewNetworkClient(c config) *NetworkClient
NewNetworkClient returns a client for the Network from the given config.
func (*NetworkClient) Create ¶
func (c *NetworkClient) Create() *NetworkCreate
Create returns a create builder for Network.
func (*NetworkClient) CreateBulk ¶
func (c *NetworkClient) CreateBulk(builders ...*NetworkCreate) *NetworkCreateBulk
BulkCreate returns a builder for creating a bulk of Network entities.
func (*NetworkClient) Delete ¶
func (c *NetworkClient) Delete() *NetworkDelete
Delete returns a delete builder for Network.
func (*NetworkClient) DeleteOne ¶
func (c *NetworkClient) DeleteOne(n *Network) *NetworkDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*NetworkClient) DeleteOneID ¶
func (c *NetworkClient) DeleteOneID(id int) *NetworkDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*NetworkClient) GetX ¶
func (c *NetworkClient) GetX(ctx context.Context, id int) *Network
GetX is like Get, but panics if an error occurs.
func (*NetworkClient) Hooks ¶
func (c *NetworkClient) Hooks() []Hook
Hooks returns the client hooks.
func (*NetworkClient) Query ¶
func (c *NetworkClient) Query() *NetworkQuery
Query returns a query builder for Network.
func (*NetworkClient) QueryEvents ¶
func (c *NetworkClient) QueryEvents(n *Network) *EventQuery
QueryEvents queries the events edge of a Network.
func (*NetworkClient) Update ¶
func (c *NetworkClient) Update() *NetworkUpdate
Update returns an update builder for Network.
func (*NetworkClient) UpdateOne ¶
func (c *NetworkClient) UpdateOne(n *Network) *NetworkUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NetworkClient) UpdateOneID ¶
func (c *NetworkClient) UpdateOneID(id int) *NetworkUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NetworkClient) Use ¶
func (c *NetworkClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `network.Hooks(f(g(h())))`.
type NetworkCreate ¶
type NetworkCreate struct {
// contains filtered or unexported fields
}
NetworkCreate is the builder for creating a Network entity.
func (*NetworkCreate) AddEventIDs ¶
func (nc *NetworkCreate) AddEventIDs(ids ...uuid.UUID) *NetworkCreate
AddEventIDs adds the events edge to Event by ids.
func (*NetworkCreate) AddEvents ¶
func (nc *NetworkCreate) AddEvents(e ...*Event) *NetworkCreate
AddEvents adds the events edges to Event.
func (*NetworkCreate) Mutation ¶
func (nc *NetworkCreate) Mutation() *NetworkMutation
Mutation returns the NetworkMutation object of the builder.
func (*NetworkCreate) Save ¶
func (nc *NetworkCreate) Save(ctx context.Context) (*Network, error)
Save creates the Network in the database.
func (*NetworkCreate) SaveX ¶
func (nc *NetworkCreate) SaveX(ctx context.Context) *Network
SaveX calls Save and panics if Save returns an error.
func (*NetworkCreate) SetIP ¶
func (nc *NetworkCreate) SetIP(s string) *NetworkCreate
SetIP sets the ip field.
func (*NetworkCreate) SetNillableUseragent ¶
func (nc *NetworkCreate) SetNillableUseragent(s *string) *NetworkCreate
SetNillableUseragent sets the useragent field if the given value is not nil.
func (*NetworkCreate) SetUseragent ¶
func (nc *NetworkCreate) SetUseragent(s string) *NetworkCreate
SetUseragent sets the useragent field.
type NetworkCreateBulk ¶
type NetworkCreateBulk struct {
// contains filtered or unexported fields
}
NetworkCreateBulk is the builder for creating a bulk of Network entities.
type NetworkDelete ¶
type NetworkDelete struct {
// contains filtered or unexported fields
}
NetworkDelete is the builder for deleting a Network entity.
func (*NetworkDelete) Exec ¶
func (nd *NetworkDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NetworkDelete) ExecX ¶
func (nd *NetworkDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NetworkDelete) Where ¶
func (nd *NetworkDelete) Where(ps ...predicate.Network) *NetworkDelete
Where adds a new predicate to the delete builder.
type NetworkDeleteOne ¶
type NetworkDeleteOne struct {
// contains filtered or unexported fields
}
NetworkDeleteOne is the builder for deleting a single Network entity.
func (*NetworkDeleteOne) Exec ¶
func (ndo *NetworkDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NetworkDeleteOne) ExecX ¶
func (ndo *NetworkDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type NetworkEdges ¶
type NetworkEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
NetworkEdges holds the relations/edges for other nodes in the graph.
func (NetworkEdges) EventsOrErr ¶
func (e NetworkEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type NetworkGroupBy ¶
type NetworkGroupBy struct {
// contains filtered or unexported fields
}
NetworkGroupBy is the builder for group-by Network entities.
func (*NetworkGroupBy) Aggregate ¶
func (ngb *NetworkGroupBy) Aggregate(fns ...AggregateFunc) *NetworkGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NetworkGroupBy) Bool ¶
func (ngb *NetworkGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) BoolX ¶
func (ngb *NetworkGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*NetworkGroupBy) Bools ¶
func (ngb *NetworkGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) BoolsX ¶
func (ngb *NetworkGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*NetworkGroupBy) Float64 ¶
func (ngb *NetworkGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) Float64X ¶
func (ngb *NetworkGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*NetworkGroupBy) Float64s ¶
func (ngb *NetworkGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) Float64sX ¶
func (ngb *NetworkGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*NetworkGroupBy) Int ¶
func (ngb *NetworkGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) IntX ¶
func (ngb *NetworkGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*NetworkGroupBy) Ints ¶
func (ngb *NetworkGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) IntsX ¶
func (ngb *NetworkGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*NetworkGroupBy) Scan ¶
func (ngb *NetworkGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*NetworkGroupBy) ScanX ¶
func (ngb *NetworkGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*NetworkGroupBy) String ¶
func (ngb *NetworkGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*NetworkGroupBy) StringX ¶
func (ngb *NetworkGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type NetworkMutation ¶
type NetworkMutation struct {
// contains filtered or unexported fields
}
NetworkMutation represents an operation that mutate the Networks nodes in the graph.
func (*NetworkMutation) AddEventIDs ¶
func (m *NetworkMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*NetworkMutation) AddField ¶
func (m *NetworkMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*NetworkMutation) AddedEdges ¶
func (m *NetworkMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NetworkMutation) AddedField ¶
func (m *NetworkMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*NetworkMutation) AddedFields ¶
func (m *NetworkMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*NetworkMutation) AddedIDs ¶
func (m *NetworkMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*NetworkMutation) ClearEdge ¶
func (m *NetworkMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*NetworkMutation) ClearField ¶
func (m *NetworkMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*NetworkMutation) ClearUseragent ¶
func (m *NetworkMutation) ClearUseragent()
ClearUseragent clears the value of useragent.
func (*NetworkMutation) ClearedEdges ¶
func (m *NetworkMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NetworkMutation) ClearedFields ¶
func (m *NetworkMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NetworkMutation) Client ¶
func (m NetworkMutation) 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 (*NetworkMutation) EdgeCleared ¶
func (m *NetworkMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*NetworkMutation) EventsIDs ¶
func (m *NetworkMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*NetworkMutation) Field ¶
func (m *NetworkMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*NetworkMutation) FieldCleared ¶
func (m *NetworkMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*NetworkMutation) Fields ¶
func (m *NetworkMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*NetworkMutation) ID ¶
func (m *NetworkMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*NetworkMutation) IP ¶
func (m *NetworkMutation) IP() (r string, exists bool)
IP returns the ip value in the mutation.
func (*NetworkMutation) 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 was failed.
func (*NetworkMutation) OldIP ¶
func (m *NetworkMutation) OldIP(ctx context.Context) (v string, err error)
OldIP returns the old ip value of the Network. If the Network 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 database query fails.
func (*NetworkMutation) OldUseragent ¶
func (m *NetworkMutation) OldUseragent(ctx context.Context) (v string, err error)
OldUseragent returns the old useragent value of the Network. If the Network 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 database query fails.
func (*NetworkMutation) RemoveEventIDs ¶
func (m *NetworkMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*NetworkMutation) RemovedEdges ¶
func (m *NetworkMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NetworkMutation) RemovedEventsIDs ¶
func (m *NetworkMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*NetworkMutation) RemovedIDs ¶
func (m *NetworkMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*NetworkMutation) ResetEdge ¶
func (m *NetworkMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*NetworkMutation) ResetEvents ¶
func (m *NetworkMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*NetworkMutation) ResetField ¶
func (m *NetworkMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*NetworkMutation) ResetIP ¶
func (m *NetworkMutation) ResetIP()
ResetIP reset all changes of the "ip" field.
func (*NetworkMutation) ResetUseragent ¶
func (m *NetworkMutation) ResetUseragent()
ResetUseragent reset all changes of the "useragent" field.
func (*NetworkMutation) SetField ¶
func (m *NetworkMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*NetworkMutation) SetUseragent ¶
func (m *NetworkMutation) SetUseragent(s string)
SetUseragent sets the useragent field.
func (NetworkMutation) Tx ¶
func (m NetworkMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NetworkMutation) Type ¶
func (m *NetworkMutation) Type() string
Type returns the node type of this mutation (Network).
func (*NetworkMutation) Useragent ¶
func (m *NetworkMutation) Useragent() (r string, exists bool)
Useragent returns the useragent value in the mutation.
func (*NetworkMutation) UseragentCleared ¶
func (m *NetworkMutation) UseragentCleared() bool
UseragentCleared returns if the field useragent was cleared in this mutation.
type NetworkQuery ¶
type NetworkQuery struct {
// contains filtered or unexported fields
}
NetworkQuery is the builder for querying Network entities.
func (*NetworkQuery) All ¶
func (nq *NetworkQuery) All(ctx context.Context) ([]*Network, error)
All executes the query and returns a list of Networks.
func (*NetworkQuery) AllX ¶
func (nq *NetworkQuery) AllX(ctx context.Context) []*Network
AllX is like All, but panics if an error occurs.
func (*NetworkQuery) Clone ¶
func (nq *NetworkQuery) Clone() *NetworkQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NetworkQuery) Count ¶
func (nq *NetworkQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*NetworkQuery) CountX ¶
func (nq *NetworkQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*NetworkQuery) Exist ¶
func (nq *NetworkQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*NetworkQuery) ExistX ¶
func (nq *NetworkQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*NetworkQuery) First ¶
func (nq *NetworkQuery) First(ctx context.Context) (*Network, error)
First returns the first Network entity in the query. Returns *NotFoundError when no network was found.
func (*NetworkQuery) FirstID ¶
func (nq *NetworkQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Network id in the query. Returns *NotFoundError when no id was found.
func (*NetworkQuery) FirstX ¶
func (nq *NetworkQuery) FirstX(ctx context.Context) *Network
FirstX is like First, but panics if an error occurs.
func (*NetworkQuery) FirstXID ¶
func (nq *NetworkQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*NetworkQuery) GroupBy ¶
func (nq *NetworkQuery) GroupBy(field string, fields ...string) *NetworkGroupBy
GroupBy 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 { IP string `json:"ip,omitempty"` Count int `json:"count,omitempty"` } client.Network.Query(). GroupBy(network.FieldIP). Aggregate(ent.Count()). Scan(ctx, &v)
func (*NetworkQuery) IDs ¶
func (nq *NetworkQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Network ids.
func (*NetworkQuery) IDsX ¶
func (nq *NetworkQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*NetworkQuery) Limit ¶
func (nq *NetworkQuery) Limit(limit int) *NetworkQuery
Limit adds a limit step to the query.
func (*NetworkQuery) Offset ¶
func (nq *NetworkQuery) Offset(offset int) *NetworkQuery
Offset adds an offset step to the query.
func (*NetworkQuery) Only ¶
func (nq *NetworkQuery) Only(ctx context.Context) (*Network, error)
Only returns the only Network entity in the query, returns an error if not exactly one entity was returned.
func (*NetworkQuery) OnlyID ¶
func (nq *NetworkQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Network id in the query, returns an error if not exactly one id was returned.
func (*NetworkQuery) OnlyIDX ¶
func (nq *NetworkQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*NetworkQuery) OnlyX ¶
func (nq *NetworkQuery) OnlyX(ctx context.Context) *Network
OnlyX is like Only, but panics if an error occurs.
func (*NetworkQuery) Order ¶
func (nq *NetworkQuery) Order(o ...OrderFunc) *NetworkQuery
Order adds an order step to the query.
func (*NetworkQuery) QueryEvents ¶
func (nq *NetworkQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*NetworkQuery) Select ¶
func (nq *NetworkQuery) Select(field string, fields ...string) *NetworkSelect
Select one or more fields from the given query.
Example:
var v []struct { IP string `json:"ip,omitempty"` } client.Network.Query(). Select(network.FieldIP). Scan(ctx, &v)
func (*NetworkQuery) Where ¶
func (nq *NetworkQuery) Where(ps ...predicate.Network) *NetworkQuery
Where adds a new predicate for the builder.
func (*NetworkQuery) WithEvents ¶
func (nq *NetworkQuery) WithEvents(opts ...func(*EventQuery)) *NetworkQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type NetworkSelect ¶
type NetworkSelect struct {
// contains filtered or unexported fields
}
NetworkSelect is the builder for select fields of Network entities.
func (*NetworkSelect) Bool ¶
func (ns *NetworkSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*NetworkSelect) BoolX ¶
func (ns *NetworkSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*NetworkSelect) Bools ¶
func (ns *NetworkSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*NetworkSelect) BoolsX ¶
func (ns *NetworkSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*NetworkSelect) Float64 ¶
func (ns *NetworkSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*NetworkSelect) Float64X ¶
func (ns *NetworkSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*NetworkSelect) Float64s ¶
func (ns *NetworkSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*NetworkSelect) Float64sX ¶
func (ns *NetworkSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*NetworkSelect) Int ¶
func (ns *NetworkSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*NetworkSelect) IntX ¶
func (ns *NetworkSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*NetworkSelect) Ints ¶
func (ns *NetworkSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*NetworkSelect) IntsX ¶
func (ns *NetworkSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*NetworkSelect) Scan ¶
func (ns *NetworkSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*NetworkSelect) ScanX ¶
func (ns *NetworkSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*NetworkSelect) String ¶
func (ns *NetworkSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*NetworkSelect) StringX ¶
func (ns *NetworkSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type NetworkUpdate ¶
type NetworkUpdate struct {
// contains filtered or unexported fields
}
NetworkUpdate is the builder for updating Network entities.
func (*NetworkUpdate) AddEventIDs ¶
func (nu *NetworkUpdate) AddEventIDs(ids ...uuid.UUID) *NetworkUpdate
AddEventIDs adds the events edge to Event by ids.
func (*NetworkUpdate) AddEvents ¶
func (nu *NetworkUpdate) AddEvents(e ...*Event) *NetworkUpdate
AddEvents adds the events edges to Event.
func (*NetworkUpdate) ClearUseragent ¶
func (nu *NetworkUpdate) ClearUseragent() *NetworkUpdate
ClearUseragent clears the value of useragent.
func (*NetworkUpdate) Exec ¶
func (nu *NetworkUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NetworkUpdate) ExecX ¶
func (nu *NetworkUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NetworkUpdate) Mutation ¶
func (nu *NetworkUpdate) Mutation() *NetworkMutation
Mutation returns the NetworkMutation object of the builder.
func (*NetworkUpdate) RemoveEventIDs ¶
func (nu *NetworkUpdate) RemoveEventIDs(ids ...uuid.UUID) *NetworkUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*NetworkUpdate) RemoveEvents ¶
func (nu *NetworkUpdate) RemoveEvents(e ...*Event) *NetworkUpdate
RemoveEvents removes events edges to Event.
func (*NetworkUpdate) Save ¶
func (nu *NetworkUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*NetworkUpdate) SaveX ¶
func (nu *NetworkUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NetworkUpdate) SetIP ¶
func (nu *NetworkUpdate) SetIP(s string) *NetworkUpdate
SetIP sets the ip field.
func (*NetworkUpdate) SetNillableUseragent ¶
func (nu *NetworkUpdate) SetNillableUseragent(s *string) *NetworkUpdate
SetNillableUseragent sets the useragent field if the given value is not nil.
func (*NetworkUpdate) SetUseragent ¶
func (nu *NetworkUpdate) SetUseragent(s string) *NetworkUpdate
SetUseragent sets the useragent field.
func (*NetworkUpdate) Where ¶
func (nu *NetworkUpdate) Where(ps ...predicate.Network) *NetworkUpdate
Where adds a new predicate for the builder.
type NetworkUpdateOne ¶
type NetworkUpdateOne struct {
// contains filtered or unexported fields
}
NetworkUpdateOne is the builder for updating a single Network entity.
func (*NetworkUpdateOne) AddEventIDs ¶
func (nuo *NetworkUpdateOne) AddEventIDs(ids ...uuid.UUID) *NetworkUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*NetworkUpdateOne) AddEvents ¶
func (nuo *NetworkUpdateOne) AddEvents(e ...*Event) *NetworkUpdateOne
AddEvents adds the events edges to Event.
func (*NetworkUpdateOne) ClearUseragent ¶
func (nuo *NetworkUpdateOne) ClearUseragent() *NetworkUpdateOne
ClearUseragent clears the value of useragent.
func (*NetworkUpdateOne) Exec ¶
func (nuo *NetworkUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NetworkUpdateOne) ExecX ¶
func (nuo *NetworkUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NetworkUpdateOne) Mutation ¶
func (nuo *NetworkUpdateOne) Mutation() *NetworkMutation
Mutation returns the NetworkMutation object of the builder.
func (*NetworkUpdateOne) RemoveEventIDs ¶
func (nuo *NetworkUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *NetworkUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*NetworkUpdateOne) RemoveEvents ¶
func (nuo *NetworkUpdateOne) RemoveEvents(e ...*Event) *NetworkUpdateOne
RemoveEvents removes events edges to Event.
func (*NetworkUpdateOne) Save ¶
func (nuo *NetworkUpdateOne) Save(ctx context.Context) (*Network, error)
Save executes the query and returns the updated entity.
func (*NetworkUpdateOne) SaveX ¶
func (nuo *NetworkUpdateOne) SaveX(ctx context.Context) *Network
SaveX is like Save, but panics if an error occurs.
func (*NetworkUpdateOne) SetIP ¶
func (nuo *NetworkUpdateOne) SetIP(s string) *NetworkUpdateOne
SetIP sets the ip field.
func (*NetworkUpdateOne) SetNillableUseragent ¶
func (nuo *NetworkUpdateOne) SetNillableUseragent(s *string) *NetworkUpdateOne
SetNillableUseragent sets the useragent field if the given value is not nil.
func (*NetworkUpdateOne) SetUseragent ¶
func (nuo *NetworkUpdateOne) SetUseragent(s string) *NetworkUpdateOne
SetUseragent sets the useragent field.
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.
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 OSContext ¶
type OSContext struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Family holds the value of the "family" field. Family string `json:"family,omitempty"` // Platform holds the value of the "platform" field. Platform string `json:"platform,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OSContextQuery when eager-loading is set. Edges OSContextEdges `json:"edges"` // contains filtered or unexported fields }
OSContext is the model entity for the OSContext schema.
func (*OSContext) QueryEvents ¶
func (oc *OSContext) QueryEvents() *EventQuery
QueryEvents queries the events edge of the OSContext.
func (*OSContext) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*OSContext) Update ¶
func (oc *OSContext) Update() *OSContextUpdateOne
Update returns a builder for updating this OSContext. Note that, you need to call OSContext.Unwrap() before calling this method, if this OSContext was returned from a transaction, and the transaction was committed or rolled back.
type OSContextClient ¶
type OSContextClient struct {
// contains filtered or unexported fields
}
OSContextClient is a client for the OSContext schema.
func NewOSContextClient ¶
func NewOSContextClient(c config) *OSContextClient
NewOSContextClient returns a client for the OSContext from the given config.
func (*OSContextClient) Create ¶
func (c *OSContextClient) Create() *OSContextCreate
Create returns a create builder for OSContext.
func (*OSContextClient) CreateBulk ¶
func (c *OSContextClient) CreateBulk(builders ...*OSContextCreate) *OSContextCreateBulk
BulkCreate returns a builder for creating a bulk of OSContext entities.
func (*OSContextClient) Delete ¶
func (c *OSContextClient) Delete() *OSContextDelete
Delete returns a delete builder for OSContext.
func (*OSContextClient) DeleteOne ¶
func (c *OSContextClient) DeleteOne(oc *OSContext) *OSContextDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*OSContextClient) DeleteOneID ¶
func (c *OSContextClient) DeleteOneID(id int) *OSContextDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*OSContextClient) GetX ¶
func (c *OSContextClient) GetX(ctx context.Context, id int) *OSContext
GetX is like Get, but panics if an error occurs.
func (*OSContextClient) Hooks ¶
func (c *OSContextClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OSContextClient) Query ¶
func (c *OSContextClient) Query() *OSContextQuery
Query returns a query builder for OSContext.
func (*OSContextClient) QueryEvents ¶
func (c *OSContextClient) QueryEvents(oc *OSContext) *EventQuery
QueryEvents queries the events edge of a OSContext.
func (*OSContextClient) Update ¶
func (c *OSContextClient) Update() *OSContextUpdate
Update returns an update builder for OSContext.
func (*OSContextClient) UpdateOne ¶
func (c *OSContextClient) UpdateOne(oc *OSContext) *OSContextUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OSContextClient) UpdateOneID ¶
func (c *OSContextClient) UpdateOneID(id int) *OSContextUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OSContextClient) Use ¶
func (c *OSContextClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `oscontext.Hooks(f(g(h())))`.
type OSContextCreate ¶
type OSContextCreate struct {
// contains filtered or unexported fields
}
OSContextCreate is the builder for creating a OSContext entity.
func (*OSContextCreate) AddEventIDs ¶
func (occ *OSContextCreate) AddEventIDs(ids ...uuid.UUID) *OSContextCreate
AddEventIDs adds the events edge to Event by ids.
func (*OSContextCreate) AddEvents ¶
func (occ *OSContextCreate) AddEvents(e ...*Event) *OSContextCreate
AddEvents adds the events edges to Event.
func (*OSContextCreate) Mutation ¶
func (occ *OSContextCreate) Mutation() *OSContextMutation
Mutation returns the OSContextMutation object of the builder.
func (*OSContextCreate) Save ¶
func (occ *OSContextCreate) Save(ctx context.Context) (*OSContext, error)
Save creates the OSContext in the database.
func (*OSContextCreate) SaveX ¶
func (occ *OSContextCreate) SaveX(ctx context.Context) *OSContext
SaveX calls Save and panics if Save returns an error.
func (*OSContextCreate) SetFamily ¶
func (occ *OSContextCreate) SetFamily(s string) *OSContextCreate
SetFamily sets the family field.
func (*OSContextCreate) SetName ¶
func (occ *OSContextCreate) SetName(s string) *OSContextCreate
SetName sets the name field.
func (*OSContextCreate) SetNillablePlatform ¶
func (occ *OSContextCreate) SetNillablePlatform(s *string) *OSContextCreate
SetNillablePlatform sets the platform field if the given value is not nil.
func (*OSContextCreate) SetPlatform ¶
func (occ *OSContextCreate) SetPlatform(s string) *OSContextCreate
SetPlatform sets the platform field.
func (*OSContextCreate) SetVersion ¶
func (occ *OSContextCreate) SetVersion(s string) *OSContextCreate
SetVersion sets the version field.
type OSContextCreateBulk ¶
type OSContextCreateBulk struct {
// contains filtered or unexported fields
}
OSContextCreateBulk is the builder for creating a bulk of OSContext entities.
type OSContextDelete ¶
type OSContextDelete struct {
// contains filtered or unexported fields
}
OSContextDelete is the builder for deleting a OSContext entity.
func (*OSContextDelete) Exec ¶
func (ocd *OSContextDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OSContextDelete) ExecX ¶
func (ocd *OSContextDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OSContextDelete) Where ¶
func (ocd *OSContextDelete) Where(ps ...predicate.OSContext) *OSContextDelete
Where adds a new predicate to the delete builder.
type OSContextDeleteOne ¶
type OSContextDeleteOne struct {
// contains filtered or unexported fields
}
OSContextDeleteOne is the builder for deleting a single OSContext entity.
func (*OSContextDeleteOne) Exec ¶
func (ocdo *OSContextDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OSContextDeleteOne) ExecX ¶
func (ocdo *OSContextDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type OSContextEdges ¶
type OSContextEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
OSContextEdges holds the relations/edges for other nodes in the graph.
func (OSContextEdges) EventsOrErr ¶
func (e OSContextEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type OSContextGroupBy ¶
type OSContextGroupBy struct {
// contains filtered or unexported fields
}
OSContextGroupBy is the builder for group-by OSContext entities.
func (*OSContextGroupBy) Aggregate ¶
func (ocgb *OSContextGroupBy) Aggregate(fns ...AggregateFunc) *OSContextGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OSContextGroupBy) Bool ¶
func (ocgb *OSContextGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) BoolX ¶
func (ocgb *OSContextGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*OSContextGroupBy) Bools ¶
func (ocgb *OSContextGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) BoolsX ¶
func (ocgb *OSContextGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*OSContextGroupBy) Float64 ¶
func (ocgb *OSContextGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) Float64X ¶
func (ocgb *OSContextGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*OSContextGroupBy) Float64s ¶
func (ocgb *OSContextGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) Float64sX ¶
func (ocgb *OSContextGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*OSContextGroupBy) Int ¶
func (ocgb *OSContextGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) IntX ¶
func (ocgb *OSContextGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*OSContextGroupBy) Ints ¶
func (ocgb *OSContextGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) IntsX ¶
func (ocgb *OSContextGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*OSContextGroupBy) Scan ¶
func (ocgb *OSContextGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*OSContextGroupBy) ScanX ¶
func (ocgb *OSContextGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*OSContextGroupBy) String ¶
func (ocgb *OSContextGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*OSContextGroupBy) StringX ¶
func (ocgb *OSContextGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type OSContextMutation ¶
type OSContextMutation struct {
// contains filtered or unexported fields
}
OSContextMutation represents an operation that mutate the OSContexts nodes in the graph.
func (*OSContextMutation) AddEventIDs ¶
func (m *OSContextMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*OSContextMutation) AddField ¶
func (m *OSContextMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*OSContextMutation) AddedEdges ¶
func (m *OSContextMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OSContextMutation) AddedField ¶
func (m *OSContextMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*OSContextMutation) AddedFields ¶
func (m *OSContextMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*OSContextMutation) AddedIDs ¶
func (m *OSContextMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*OSContextMutation) ClearEdge ¶
func (m *OSContextMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*OSContextMutation) ClearField ¶
func (m *OSContextMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*OSContextMutation) ClearPlatform ¶
func (m *OSContextMutation) ClearPlatform()
ClearPlatform clears the value of platform.
func (*OSContextMutation) ClearedEdges ¶
func (m *OSContextMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OSContextMutation) ClearedFields ¶
func (m *OSContextMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OSContextMutation) Client ¶
func (m OSContextMutation) 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 (*OSContextMutation) EdgeCleared ¶
func (m *OSContextMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*OSContextMutation) EventsIDs ¶
func (m *OSContextMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*OSContextMutation) Family ¶
func (m *OSContextMutation) Family() (r string, exists bool)
Family returns the family value in the mutation.
func (*OSContextMutation) Field ¶
func (m *OSContextMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*OSContextMutation) FieldCleared ¶
func (m *OSContextMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*OSContextMutation) Fields ¶
func (m *OSContextMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*OSContextMutation) ID ¶
func (m *OSContextMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*OSContextMutation) Name ¶
func (m *OSContextMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*OSContextMutation) OldFamily ¶
func (m *OSContextMutation) OldFamily(ctx context.Context) (v string, err error)
OldFamily returns the old family value of the OSContext. If the OSContext 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 database query fails.
func (*OSContextMutation) 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 was failed.
func (*OSContextMutation) OldName ¶
func (m *OSContextMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the OSContext. If the OSContext 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 database query fails.
func (*OSContextMutation) OldPlatform ¶
func (m *OSContextMutation) OldPlatform(ctx context.Context) (v string, err error)
OldPlatform returns the old platform value of the OSContext. If the OSContext 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 database query fails.
func (*OSContextMutation) OldVersion ¶
func (m *OSContextMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old version value of the OSContext. If the OSContext 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 database query fails.
func (*OSContextMutation) Platform ¶
func (m *OSContextMutation) Platform() (r string, exists bool)
Platform returns the platform value in the mutation.
func (*OSContextMutation) PlatformCleared ¶
func (m *OSContextMutation) PlatformCleared() bool
PlatformCleared returns if the field platform was cleared in this mutation.
func (*OSContextMutation) RemoveEventIDs ¶
func (m *OSContextMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*OSContextMutation) RemovedEdges ¶
func (m *OSContextMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OSContextMutation) RemovedEventsIDs ¶
func (m *OSContextMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*OSContextMutation) RemovedIDs ¶
func (m *OSContextMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*OSContextMutation) ResetEdge ¶
func (m *OSContextMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*OSContextMutation) ResetEvents ¶
func (m *OSContextMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*OSContextMutation) ResetFamily ¶
func (m *OSContextMutation) ResetFamily()
ResetFamily reset all changes of the "family" field.
func (*OSContextMutation) ResetField ¶
func (m *OSContextMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*OSContextMutation) ResetName ¶
func (m *OSContextMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*OSContextMutation) ResetPlatform ¶
func (m *OSContextMutation) ResetPlatform()
ResetPlatform reset all changes of the "platform" field.
func (*OSContextMutation) ResetVersion ¶
func (m *OSContextMutation) ResetVersion()
ResetVersion reset all changes of the "version" field.
func (*OSContextMutation) SetFamily ¶
func (m *OSContextMutation) SetFamily(s string)
SetFamily sets the family field.
func (*OSContextMutation) SetField ¶
func (m *OSContextMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*OSContextMutation) SetName ¶
func (m *OSContextMutation) SetName(s string)
SetName sets the name field.
func (*OSContextMutation) SetPlatform ¶
func (m *OSContextMutation) SetPlatform(s string)
SetPlatform sets the platform field.
func (*OSContextMutation) SetVersion ¶
func (m *OSContextMutation) SetVersion(s string)
SetVersion sets the version field.
func (OSContextMutation) Tx ¶
func (m OSContextMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OSContextMutation) Type ¶
func (m *OSContextMutation) Type() string
Type returns the node type of this mutation (OSContext).
func (*OSContextMutation) Version ¶
func (m *OSContextMutation) Version() (r string, exists bool)
Version returns the version value in the mutation.
type OSContextQuery ¶
type OSContextQuery struct {
// contains filtered or unexported fields
}
OSContextQuery is the builder for querying OSContext entities.
func (*OSContextQuery) All ¶
func (ocq *OSContextQuery) All(ctx context.Context) ([]*OSContext, error)
All executes the query and returns a list of OSContexts.
func (*OSContextQuery) AllX ¶
func (ocq *OSContextQuery) AllX(ctx context.Context) []*OSContext
AllX is like All, but panics if an error occurs.
func (*OSContextQuery) Clone ¶
func (ocq *OSContextQuery) Clone() *OSContextQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OSContextQuery) Count ¶
func (ocq *OSContextQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OSContextQuery) CountX ¶
func (ocq *OSContextQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OSContextQuery) Exist ¶
func (ocq *OSContextQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OSContextQuery) ExistX ¶
func (ocq *OSContextQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OSContextQuery) First ¶
func (ocq *OSContextQuery) First(ctx context.Context) (*OSContext, error)
First returns the first OSContext entity in the query. Returns *NotFoundError when no oscontext was found.
func (*OSContextQuery) FirstID ¶
func (ocq *OSContextQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first OSContext id in the query. Returns *NotFoundError when no id was found.
func (*OSContextQuery) FirstX ¶
func (ocq *OSContextQuery) FirstX(ctx context.Context) *OSContext
FirstX is like First, but panics if an error occurs.
func (*OSContextQuery) FirstXID ¶
func (ocq *OSContextQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*OSContextQuery) GroupBy ¶
func (ocq *OSContextQuery) GroupBy(field string, fields ...string) *OSContextGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.OSContext.Query(). GroupBy(oscontext.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*OSContextQuery) IDs ¶
func (ocq *OSContextQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of OSContext ids.
func (*OSContextQuery) IDsX ¶
func (ocq *OSContextQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*OSContextQuery) Limit ¶
func (ocq *OSContextQuery) Limit(limit int) *OSContextQuery
Limit adds a limit step to the query.
func (*OSContextQuery) Offset ¶
func (ocq *OSContextQuery) Offset(offset int) *OSContextQuery
Offset adds an offset step to the query.
func (*OSContextQuery) Only ¶
func (ocq *OSContextQuery) Only(ctx context.Context) (*OSContext, error)
Only returns the only OSContext entity in the query, returns an error if not exactly one entity was returned.
func (*OSContextQuery) OnlyID ¶
func (ocq *OSContextQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only OSContext id in the query, returns an error if not exactly one id was returned.
func (*OSContextQuery) OnlyIDX ¶
func (ocq *OSContextQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OSContextQuery) OnlyX ¶
func (ocq *OSContextQuery) OnlyX(ctx context.Context) *OSContext
OnlyX is like Only, but panics if an error occurs.
func (*OSContextQuery) Order ¶
func (ocq *OSContextQuery) Order(o ...OrderFunc) *OSContextQuery
Order adds an order step to the query.
func (*OSContextQuery) QueryEvents ¶
func (ocq *OSContextQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*OSContextQuery) Select ¶
func (ocq *OSContextQuery) Select(field string, fields ...string) *OSContextSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.OSContext.Query(). Select(oscontext.FieldName). Scan(ctx, &v)
func (*OSContextQuery) Where ¶
func (ocq *OSContextQuery) Where(ps ...predicate.OSContext) *OSContextQuery
Where adds a new predicate for the builder.
func (*OSContextQuery) WithEvents ¶
func (ocq *OSContextQuery) WithEvents(opts ...func(*EventQuery)) *OSContextQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type OSContextSelect ¶
type OSContextSelect struct {
// contains filtered or unexported fields
}
OSContextSelect is the builder for select fields of OSContext entities.
func (*OSContextSelect) Bool ¶
func (ocs *OSContextSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*OSContextSelect) BoolX ¶
func (ocs *OSContextSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*OSContextSelect) Bools ¶
func (ocs *OSContextSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*OSContextSelect) BoolsX ¶
func (ocs *OSContextSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*OSContextSelect) Float64 ¶
func (ocs *OSContextSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*OSContextSelect) Float64X ¶
func (ocs *OSContextSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*OSContextSelect) Float64s ¶
func (ocs *OSContextSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*OSContextSelect) Float64sX ¶
func (ocs *OSContextSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*OSContextSelect) Int ¶
func (ocs *OSContextSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*OSContextSelect) IntX ¶
func (ocs *OSContextSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*OSContextSelect) Ints ¶
func (ocs *OSContextSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*OSContextSelect) IntsX ¶
func (ocs *OSContextSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*OSContextSelect) Scan ¶
func (ocs *OSContextSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*OSContextSelect) ScanX ¶
func (ocs *OSContextSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*OSContextSelect) String ¶
func (ocs *OSContextSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*OSContextSelect) StringX ¶
func (ocs *OSContextSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type OSContextUpdate ¶
type OSContextUpdate struct {
// contains filtered or unexported fields
}
OSContextUpdate is the builder for updating OSContext entities.
func (*OSContextUpdate) AddEventIDs ¶
func (ocu *OSContextUpdate) AddEventIDs(ids ...uuid.UUID) *OSContextUpdate
AddEventIDs adds the events edge to Event by ids.
func (*OSContextUpdate) AddEvents ¶
func (ocu *OSContextUpdate) AddEvents(e ...*Event) *OSContextUpdate
AddEvents adds the events edges to Event.
func (*OSContextUpdate) ClearPlatform ¶
func (ocu *OSContextUpdate) ClearPlatform() *OSContextUpdate
ClearPlatform clears the value of platform.
func (*OSContextUpdate) Exec ¶
func (ocu *OSContextUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OSContextUpdate) ExecX ¶
func (ocu *OSContextUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OSContextUpdate) Mutation ¶
func (ocu *OSContextUpdate) Mutation() *OSContextMutation
Mutation returns the OSContextMutation object of the builder.
func (*OSContextUpdate) RemoveEventIDs ¶
func (ocu *OSContextUpdate) RemoveEventIDs(ids ...uuid.UUID) *OSContextUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*OSContextUpdate) RemoveEvents ¶
func (ocu *OSContextUpdate) RemoveEvents(e ...*Event) *OSContextUpdate
RemoveEvents removes events edges to Event.
func (*OSContextUpdate) Save ¶
func (ocu *OSContextUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*OSContextUpdate) SaveX ¶
func (ocu *OSContextUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OSContextUpdate) SetFamily ¶
func (ocu *OSContextUpdate) SetFamily(s string) *OSContextUpdate
SetFamily sets the family field.
func (*OSContextUpdate) SetName ¶
func (ocu *OSContextUpdate) SetName(s string) *OSContextUpdate
SetName sets the name field.
func (*OSContextUpdate) SetNillablePlatform ¶
func (ocu *OSContextUpdate) SetNillablePlatform(s *string) *OSContextUpdate
SetNillablePlatform sets the platform field if the given value is not nil.
func (*OSContextUpdate) SetPlatform ¶
func (ocu *OSContextUpdate) SetPlatform(s string) *OSContextUpdate
SetPlatform sets the platform field.
func (*OSContextUpdate) SetVersion ¶
func (ocu *OSContextUpdate) SetVersion(s string) *OSContextUpdate
SetVersion sets the version field.
func (*OSContextUpdate) Where ¶
func (ocu *OSContextUpdate) Where(ps ...predicate.OSContext) *OSContextUpdate
Where adds a new predicate for the builder.
type OSContextUpdateOne ¶
type OSContextUpdateOne struct {
// contains filtered or unexported fields
}
OSContextUpdateOne is the builder for updating a single OSContext entity.
func (*OSContextUpdateOne) AddEventIDs ¶
func (ocuo *OSContextUpdateOne) AddEventIDs(ids ...uuid.UUID) *OSContextUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*OSContextUpdateOne) AddEvents ¶
func (ocuo *OSContextUpdateOne) AddEvents(e ...*Event) *OSContextUpdateOne
AddEvents adds the events edges to Event.
func (*OSContextUpdateOne) ClearPlatform ¶
func (ocuo *OSContextUpdateOne) ClearPlatform() *OSContextUpdateOne
ClearPlatform clears the value of platform.
func (*OSContextUpdateOne) Exec ¶
func (ocuo *OSContextUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OSContextUpdateOne) ExecX ¶
func (ocuo *OSContextUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OSContextUpdateOne) Mutation ¶
func (ocuo *OSContextUpdateOne) Mutation() *OSContextMutation
Mutation returns the OSContextMutation object of the builder.
func (*OSContextUpdateOne) RemoveEventIDs ¶
func (ocuo *OSContextUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *OSContextUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*OSContextUpdateOne) RemoveEvents ¶
func (ocuo *OSContextUpdateOne) RemoveEvents(e ...*Event) *OSContextUpdateOne
RemoveEvents removes events edges to Event.
func (*OSContextUpdateOne) Save ¶
func (ocuo *OSContextUpdateOne) Save(ctx context.Context) (*OSContext, error)
Save executes the query and returns the updated entity.
func (*OSContextUpdateOne) SaveX ¶
func (ocuo *OSContextUpdateOne) SaveX(ctx context.Context) *OSContext
SaveX is like Save, but panics if an error occurs.
func (*OSContextUpdateOne) SetFamily ¶
func (ocuo *OSContextUpdateOne) SetFamily(s string) *OSContextUpdateOne
SetFamily sets the family field.
func (*OSContextUpdateOne) SetName ¶
func (ocuo *OSContextUpdateOne) SetName(s string) *OSContextUpdateOne
SetName sets the name field.
func (*OSContextUpdateOne) SetNillablePlatform ¶
func (ocuo *OSContextUpdateOne) SetNillablePlatform(s *string) *OSContextUpdateOne
SetNillablePlatform sets the platform field if the given value is not nil.
func (*OSContextUpdateOne) SetPlatform ¶
func (ocuo *OSContextUpdateOne) SetPlatform(s string) *OSContextUpdateOne
SetPlatform sets the platform field.
func (*OSContextUpdateOne) SetVersion ¶
func (ocuo *OSContextUpdateOne) SetVersion(s string) *OSContextUpdateOne
SetVersion sets the version field.
type Page ¶
type Page struct { // ID of the ent. ID int `json:"id,omitempty"` // Hostname holds the value of the "hostname" field. Hostname string `json:"hostname,omitempty"` // Path holds the value of the "path" field. Path string `json:"path,omitempty"` // Referrer holds the value of the "referrer" field. Referrer string `json:"referrer,omitempty"` // Search holds the value of the "search" field. Search string `json:"search,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // Hash holds the value of the "hash" field. Hash string `json:"hash,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the PageQuery when eager-loading is set. Edges PageEdges `json:"edges"` // contains filtered or unexported fields }
Page is the model entity for the Page schema.
func (*Page) QueryEvents ¶
func (pa *Page) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Page.
func (*Page) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Page) Update ¶
func (pa *Page) Update() *PageUpdateOne
Update returns a builder for updating this Page. Note that, you need to call Page.Unwrap() before calling this method, if this Page was returned from a transaction, and the transaction was committed or rolled back.
type PageClient ¶
type PageClient struct {
// contains filtered or unexported fields
}
PageClient is a client for the Page schema.
func NewPageClient ¶
func NewPageClient(c config) *PageClient
NewPageClient returns a client for the Page from the given config.
func (*PageClient) Create ¶
func (c *PageClient) Create() *PageCreate
Create returns a create builder for Page.
func (*PageClient) CreateBulk ¶
func (c *PageClient) CreateBulk(builders ...*PageCreate) *PageCreateBulk
BulkCreate returns a builder for creating a bulk of Page entities.
func (*PageClient) Delete ¶
func (c *PageClient) Delete() *PageDelete
Delete returns a delete builder for Page.
func (*PageClient) DeleteOne ¶
func (c *PageClient) DeleteOne(pa *Page) *PageDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*PageClient) DeleteOneID ¶
func (c *PageClient) DeleteOneID(id int) *PageDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*PageClient) GetX ¶
func (c *PageClient) GetX(ctx context.Context, id int) *Page
GetX is like Get, but panics if an error occurs.
func (*PageClient) Query ¶
func (c *PageClient) Query() *PageQuery
Query returns a query builder for Page.
func (*PageClient) QueryEvents ¶
func (c *PageClient) QueryEvents(pa *Page) *EventQuery
QueryEvents queries the events edge of a Page.
func (*PageClient) Update ¶
func (c *PageClient) Update() *PageUpdate
Update returns an update builder for Page.
func (*PageClient) UpdateOne ¶
func (c *PageClient) UpdateOne(pa *Page) *PageUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PageClient) UpdateOneID ¶
func (c *PageClient) UpdateOneID(id int) *PageUpdateOne
UpdateOneID returns an update builder for the given id.
func (*PageClient) Use ¶
func (c *PageClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `page.Hooks(f(g(h())))`.
type PageCreate ¶
type PageCreate struct {
// contains filtered or unexported fields
}
PageCreate is the builder for creating a Page entity.
func (*PageCreate) AddEventIDs ¶
func (pc *PageCreate) AddEventIDs(ids ...uuid.UUID) *PageCreate
AddEventIDs adds the events edge to Event by ids.
func (*PageCreate) AddEvents ¶
func (pc *PageCreate) AddEvents(e ...*Event) *PageCreate
AddEvents adds the events edges to Event.
func (*PageCreate) Mutation ¶
func (pc *PageCreate) Mutation() *PageMutation
Mutation returns the PageMutation object of the builder.
func (*PageCreate) Save ¶
func (pc *PageCreate) Save(ctx context.Context) (*Page, error)
Save creates the Page in the database.
func (*PageCreate) SaveX ¶
func (pc *PageCreate) SaveX(ctx context.Context) *Page
SaveX calls Save and panics if Save returns an error.
func (*PageCreate) SetHash ¶
func (pc *PageCreate) SetHash(s string) *PageCreate
SetHash sets the hash field.
func (*PageCreate) SetHostname ¶
func (pc *PageCreate) SetHostname(s string) *PageCreate
SetHostname sets the hostname field.
func (*PageCreate) SetNillableHash ¶
func (pc *PageCreate) SetNillableHash(s *string) *PageCreate
SetNillableHash sets the hash field if the given value is not nil.
func (*PageCreate) SetNillableReferrer ¶
func (pc *PageCreate) SetNillableReferrer(s *string) *PageCreate
SetNillableReferrer sets the referrer field if the given value is not nil.
func (*PageCreate) SetNillableSearch ¶
func (pc *PageCreate) SetNillableSearch(s *string) *PageCreate
SetNillableSearch sets the search field if the given value is not nil.
func (*PageCreate) SetNillableTitle ¶
func (pc *PageCreate) SetNillableTitle(s *string) *PageCreate
SetNillableTitle sets the title field if the given value is not nil.
func (*PageCreate) SetPath ¶
func (pc *PageCreate) SetPath(s string) *PageCreate
SetPath sets the path field.
func (*PageCreate) SetReferrer ¶
func (pc *PageCreate) SetReferrer(s string) *PageCreate
SetReferrer sets the referrer field.
func (*PageCreate) SetSearch ¶
func (pc *PageCreate) SetSearch(s string) *PageCreate
SetSearch sets the search field.
func (*PageCreate) SetTitle ¶
func (pc *PageCreate) SetTitle(s string) *PageCreate
SetTitle sets the title field.
type PageCreateBulk ¶
type PageCreateBulk struct {
// contains filtered or unexported fields
}
PageCreateBulk is the builder for creating a bulk of Page entities.
type PageDelete ¶
type PageDelete struct {
// contains filtered or unexported fields
}
PageDelete is the builder for deleting a Page entity.
func (*PageDelete) Exec ¶
func (pd *PageDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*PageDelete) ExecX ¶
func (pd *PageDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*PageDelete) Where ¶
func (pd *PageDelete) Where(ps ...predicate.Page) *PageDelete
Where adds a new predicate to the delete builder.
type PageDeleteOne ¶
type PageDeleteOne struct {
// contains filtered or unexported fields
}
PageDeleteOne is the builder for deleting a single Page entity.
func (*PageDeleteOne) Exec ¶
func (pdo *PageDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PageDeleteOne) ExecX ¶
func (pdo *PageDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type PageEdges ¶
type PageEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
PageEdges holds the relations/edges for other nodes in the graph.
func (PageEdges) EventsOrErr ¶
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type PageGroupBy ¶
type PageGroupBy struct {
// contains filtered or unexported fields
}
PageGroupBy is the builder for group-by Page entities.
func (*PageGroupBy) Aggregate ¶
func (pgb *PageGroupBy) Aggregate(fns ...AggregateFunc) *PageGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PageGroupBy) Bool ¶
func (pgb *PageGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) BoolX ¶
func (pgb *PageGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*PageGroupBy) Bools ¶
func (pgb *PageGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) BoolsX ¶
func (pgb *PageGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*PageGroupBy) Float64 ¶
func (pgb *PageGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) Float64X ¶
func (pgb *PageGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*PageGroupBy) Float64s ¶
func (pgb *PageGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) Float64sX ¶
func (pgb *PageGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*PageGroupBy) Int ¶
func (pgb *PageGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) IntX ¶
func (pgb *PageGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*PageGroupBy) Ints ¶
func (pgb *PageGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) IntsX ¶
func (pgb *PageGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*PageGroupBy) Scan ¶
func (pgb *PageGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*PageGroupBy) ScanX ¶
func (pgb *PageGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*PageGroupBy) String ¶
func (pgb *PageGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*PageGroupBy) StringX ¶
func (pgb *PageGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type PageMutation ¶
type PageMutation struct {
// contains filtered or unexported fields
}
PageMutation represents an operation that mutate the Pages nodes in the graph.
func (*PageMutation) AddEventIDs ¶
func (m *PageMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*PageMutation) AddField ¶
func (m *PageMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*PageMutation) AddedEdges ¶
func (m *PageMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*PageMutation) AddedField ¶
func (m *PageMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*PageMutation) AddedFields ¶
func (m *PageMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*PageMutation) AddedIDs ¶
func (m *PageMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*PageMutation) ClearEdge ¶
func (m *PageMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*PageMutation) ClearField ¶
func (m *PageMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*PageMutation) ClearHash ¶
func (m *PageMutation) ClearHash()
ClearHash clears the value of hash.
func (*PageMutation) ClearReferrer ¶
func (m *PageMutation) ClearReferrer()
ClearReferrer clears the value of referrer.
func (*PageMutation) ClearSearch ¶
func (m *PageMutation) ClearSearch()
ClearSearch clears the value of search.
func (*PageMutation) ClearTitle ¶
func (m *PageMutation) ClearTitle()
ClearTitle clears the value of title.
func (*PageMutation) ClearedEdges ¶
func (m *PageMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*PageMutation) ClearedFields ¶
func (m *PageMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (PageMutation) Client ¶
func (m PageMutation) 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 (*PageMutation) EdgeCleared ¶
func (m *PageMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*PageMutation) EventsIDs ¶
func (m *PageMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*PageMutation) Field ¶
func (m *PageMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*PageMutation) FieldCleared ¶
func (m *PageMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*PageMutation) Fields ¶
func (m *PageMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*PageMutation) Hash ¶
func (m *PageMutation) Hash() (r string, exists bool)
Hash returns the hash value in the mutation.
func (*PageMutation) HashCleared ¶
func (m *PageMutation) HashCleared() bool
HashCleared returns if the field hash was cleared in this mutation.
func (*PageMutation) Hostname ¶
func (m *PageMutation) Hostname() (r string, exists bool)
Hostname returns the hostname value in the mutation.
func (*PageMutation) ID ¶
func (m *PageMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*PageMutation) 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 was failed.
func (*PageMutation) OldHash ¶
func (m *PageMutation) OldHash(ctx context.Context) (v string, err error)
OldHash returns the old hash value of the Page. If the Page 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 database query fails.
func (*PageMutation) OldHostname ¶
func (m *PageMutation) OldHostname(ctx context.Context) (v string, err error)
OldHostname returns the old hostname value of the Page. If the Page 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 database query fails.
func (*PageMutation) OldPath ¶
func (m *PageMutation) OldPath(ctx context.Context) (v string, err error)
OldPath returns the old path value of the Page. If the Page 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 database query fails.
func (*PageMutation) OldReferrer ¶
func (m *PageMutation) OldReferrer(ctx context.Context) (v string, err error)
OldReferrer returns the old referrer value of the Page. If the Page 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 database query fails.
func (*PageMutation) OldSearch ¶
func (m *PageMutation) OldSearch(ctx context.Context) (v string, err error)
OldSearch returns the old search value of the Page. If the Page 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 database query fails.
func (*PageMutation) OldTitle ¶
func (m *PageMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old title value of the Page. If the Page 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 database query fails.
func (*PageMutation) Path ¶
func (m *PageMutation) Path() (r string, exists bool)
Path returns the path value in the mutation.
func (*PageMutation) Referrer ¶
func (m *PageMutation) Referrer() (r string, exists bool)
Referrer returns the referrer value in the mutation.
func (*PageMutation) ReferrerCleared ¶
func (m *PageMutation) ReferrerCleared() bool
ReferrerCleared returns if the field referrer was cleared in this mutation.
func (*PageMutation) RemoveEventIDs ¶
func (m *PageMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*PageMutation) RemovedEdges ¶
func (m *PageMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*PageMutation) RemovedEventsIDs ¶
func (m *PageMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*PageMutation) RemovedIDs ¶
func (m *PageMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*PageMutation) ResetEdge ¶
func (m *PageMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*PageMutation) ResetEvents ¶
func (m *PageMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*PageMutation) ResetField ¶
func (m *PageMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*PageMutation) ResetHash ¶
func (m *PageMutation) ResetHash()
ResetHash reset all changes of the "hash" field.
func (*PageMutation) ResetHostname ¶
func (m *PageMutation) ResetHostname()
ResetHostname reset all changes of the "hostname" field.
func (*PageMutation) ResetPath ¶
func (m *PageMutation) ResetPath()
ResetPath reset all changes of the "path" field.
func (*PageMutation) ResetReferrer ¶
func (m *PageMutation) ResetReferrer()
ResetReferrer reset all changes of the "referrer" field.
func (*PageMutation) ResetSearch ¶
func (m *PageMutation) ResetSearch()
ResetSearch reset all changes of the "search" field.
func (*PageMutation) ResetTitle ¶
func (m *PageMutation) ResetTitle()
ResetTitle reset all changes of the "title" field.
func (*PageMutation) Search ¶
func (m *PageMutation) Search() (r string, exists bool)
Search returns the search value in the mutation.
func (*PageMutation) SearchCleared ¶
func (m *PageMutation) SearchCleared() bool
SearchCleared returns if the field search was cleared in this mutation.
func (*PageMutation) SetField ¶
func (m *PageMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*PageMutation) SetHash ¶
func (m *PageMutation) SetHash(s string)
SetHash sets the hash field.
func (*PageMutation) SetHostname ¶
func (m *PageMutation) SetHostname(s string)
SetHostname sets the hostname field.
func (*PageMutation) SetPath ¶
func (m *PageMutation) SetPath(s string)
SetPath sets the path field.
func (*PageMutation) SetReferrer ¶
func (m *PageMutation) SetReferrer(s string)
SetReferrer sets the referrer field.
func (*PageMutation) SetSearch ¶
func (m *PageMutation) SetSearch(s string)
SetSearch sets the search field.
func (*PageMutation) SetTitle ¶
func (m *PageMutation) SetTitle(s string)
SetTitle sets the title field.
func (*PageMutation) Title ¶
func (m *PageMutation) Title() (r string, exists bool)
Title returns the title value in the mutation.
func (*PageMutation) TitleCleared ¶
func (m *PageMutation) TitleCleared() bool
TitleCleared returns if the field title was cleared in this mutation.
func (PageMutation) Tx ¶
func (m PageMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*PageMutation) Type ¶
func (m *PageMutation) Type() string
Type returns the node type of this mutation (Page).
type PageQuery ¶
type PageQuery struct {
// contains filtered or unexported fields
}
PageQuery is the builder for querying Page entities.
func (*PageQuery) Clone ¶
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*PageQuery) First ¶
First returns the first Page entity in the query. Returns *NotFoundError when no page was found.
func (*PageQuery) FirstID ¶
FirstID returns the first Page id in the query. Returns *NotFoundError when no id was found.
func (*PageQuery) GroupBy ¶
func (pq *PageQuery) GroupBy(field string, fields ...string) *PageGroupBy
GroupBy 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 { Hostname string `json:"hostname,omitempty"` Count int `json:"count,omitempty"` } client.Page.Query(). GroupBy(page.FieldHostname). Aggregate(ent.Count()). Scan(ctx, &v)
func (*PageQuery) Only ¶
Only returns the only Page entity in the query, returns an error if not exactly one entity was returned.
func (*PageQuery) OnlyID ¶
OnlyID returns the only Page id in the query, returns an error if not exactly one id was returned.
func (*PageQuery) QueryEvents ¶
func (pq *PageQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*PageQuery) Select ¶
func (pq *PageQuery) Select(field string, fields ...string) *PageSelect
Select one or more fields from the given query.
Example:
var v []struct { Hostname string `json:"hostname,omitempty"` } client.Page.Query(). Select(page.FieldHostname). Scan(ctx, &v)
func (*PageQuery) WithEvents ¶
func (pq *PageQuery) WithEvents(opts ...func(*EventQuery)) *PageQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type PageSelect ¶
type PageSelect struct {
// contains filtered or unexported fields
}
PageSelect is the builder for select fields of Page entities.
func (*PageSelect) Bool ¶
func (ps *PageSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*PageSelect) BoolX ¶
func (ps *PageSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*PageSelect) Bools ¶
func (ps *PageSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*PageSelect) BoolsX ¶
func (ps *PageSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*PageSelect) Float64 ¶
func (ps *PageSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*PageSelect) Float64X ¶
func (ps *PageSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*PageSelect) Float64s ¶
func (ps *PageSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*PageSelect) Float64sX ¶
func (ps *PageSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*PageSelect) Int ¶
func (ps *PageSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*PageSelect) IntX ¶
func (ps *PageSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*PageSelect) Ints ¶
func (ps *PageSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*PageSelect) IntsX ¶
func (ps *PageSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*PageSelect) Scan ¶
func (ps *PageSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*PageSelect) ScanX ¶
func (ps *PageSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*PageSelect) String ¶
func (ps *PageSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*PageSelect) StringX ¶
func (ps *PageSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type PageUpdate ¶
type PageUpdate struct {
// contains filtered or unexported fields
}
PageUpdate is the builder for updating Page entities.
func (*PageUpdate) AddEventIDs ¶
func (pu *PageUpdate) AddEventIDs(ids ...uuid.UUID) *PageUpdate
AddEventIDs adds the events edge to Event by ids.
func (*PageUpdate) AddEvents ¶
func (pu *PageUpdate) AddEvents(e ...*Event) *PageUpdate
AddEvents adds the events edges to Event.
func (*PageUpdate) ClearHash ¶
func (pu *PageUpdate) ClearHash() *PageUpdate
ClearHash clears the value of hash.
func (*PageUpdate) ClearReferrer ¶
func (pu *PageUpdate) ClearReferrer() *PageUpdate
ClearReferrer clears the value of referrer.
func (*PageUpdate) ClearSearch ¶
func (pu *PageUpdate) ClearSearch() *PageUpdate
ClearSearch clears the value of search.
func (*PageUpdate) ClearTitle ¶
func (pu *PageUpdate) ClearTitle() *PageUpdate
ClearTitle clears the value of title.
func (*PageUpdate) Exec ¶
func (pu *PageUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*PageUpdate) ExecX ¶
func (pu *PageUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PageUpdate) Mutation ¶
func (pu *PageUpdate) Mutation() *PageMutation
Mutation returns the PageMutation object of the builder.
func (*PageUpdate) RemoveEventIDs ¶
func (pu *PageUpdate) RemoveEventIDs(ids ...uuid.UUID) *PageUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*PageUpdate) RemoveEvents ¶
func (pu *PageUpdate) RemoveEvents(e ...*Event) *PageUpdate
RemoveEvents removes events edges to Event.
func (*PageUpdate) Save ¶
func (pu *PageUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*PageUpdate) SaveX ¶
func (pu *PageUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*PageUpdate) SetHash ¶
func (pu *PageUpdate) SetHash(s string) *PageUpdate
SetHash sets the hash field.
func (*PageUpdate) SetHostname ¶
func (pu *PageUpdate) SetHostname(s string) *PageUpdate
SetHostname sets the hostname field.
func (*PageUpdate) SetNillableHash ¶
func (pu *PageUpdate) SetNillableHash(s *string) *PageUpdate
SetNillableHash sets the hash field if the given value is not nil.
func (*PageUpdate) SetNillableReferrer ¶
func (pu *PageUpdate) SetNillableReferrer(s *string) *PageUpdate
SetNillableReferrer sets the referrer field if the given value is not nil.
func (*PageUpdate) SetNillableSearch ¶
func (pu *PageUpdate) SetNillableSearch(s *string) *PageUpdate
SetNillableSearch sets the search field if the given value is not nil.
func (*PageUpdate) SetNillableTitle ¶
func (pu *PageUpdate) SetNillableTitle(s *string) *PageUpdate
SetNillableTitle sets the title field if the given value is not nil.
func (*PageUpdate) SetPath ¶
func (pu *PageUpdate) SetPath(s string) *PageUpdate
SetPath sets the path field.
func (*PageUpdate) SetReferrer ¶
func (pu *PageUpdate) SetReferrer(s string) *PageUpdate
SetReferrer sets the referrer field.
func (*PageUpdate) SetSearch ¶
func (pu *PageUpdate) SetSearch(s string) *PageUpdate
SetSearch sets the search field.
func (*PageUpdate) SetTitle ¶
func (pu *PageUpdate) SetTitle(s string) *PageUpdate
SetTitle sets the title field.
func (*PageUpdate) Where ¶
func (pu *PageUpdate) Where(ps ...predicate.Page) *PageUpdate
Where adds a new predicate for the builder.
type PageUpdateOne ¶
type PageUpdateOne struct {
// contains filtered or unexported fields
}
PageUpdateOne is the builder for updating a single Page entity.
func (*PageUpdateOne) AddEventIDs ¶
func (puo *PageUpdateOne) AddEventIDs(ids ...uuid.UUID) *PageUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*PageUpdateOne) AddEvents ¶
func (puo *PageUpdateOne) AddEvents(e ...*Event) *PageUpdateOne
AddEvents adds the events edges to Event.
func (*PageUpdateOne) ClearHash ¶
func (puo *PageUpdateOne) ClearHash() *PageUpdateOne
ClearHash clears the value of hash.
func (*PageUpdateOne) ClearReferrer ¶
func (puo *PageUpdateOne) ClearReferrer() *PageUpdateOne
ClearReferrer clears the value of referrer.
func (*PageUpdateOne) ClearSearch ¶
func (puo *PageUpdateOne) ClearSearch() *PageUpdateOne
ClearSearch clears the value of search.
func (*PageUpdateOne) ClearTitle ¶
func (puo *PageUpdateOne) ClearTitle() *PageUpdateOne
ClearTitle clears the value of title.
func (*PageUpdateOne) Exec ¶
func (puo *PageUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PageUpdateOne) ExecX ¶
func (puo *PageUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PageUpdateOne) Mutation ¶
func (puo *PageUpdateOne) Mutation() *PageMutation
Mutation returns the PageMutation object of the builder.
func (*PageUpdateOne) RemoveEventIDs ¶
func (puo *PageUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *PageUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*PageUpdateOne) RemoveEvents ¶
func (puo *PageUpdateOne) RemoveEvents(e ...*Event) *PageUpdateOne
RemoveEvents removes events edges to Event.
func (*PageUpdateOne) Save ¶
func (puo *PageUpdateOne) Save(ctx context.Context) (*Page, error)
Save executes the query and returns the updated entity.
func (*PageUpdateOne) SaveX ¶
func (puo *PageUpdateOne) SaveX(ctx context.Context) *Page
SaveX is like Save, but panics if an error occurs.
func (*PageUpdateOne) SetHash ¶
func (puo *PageUpdateOne) SetHash(s string) *PageUpdateOne
SetHash sets the hash field.
func (*PageUpdateOne) SetHostname ¶
func (puo *PageUpdateOne) SetHostname(s string) *PageUpdateOne
SetHostname sets the hostname field.
func (*PageUpdateOne) SetNillableHash ¶
func (puo *PageUpdateOne) SetNillableHash(s *string) *PageUpdateOne
SetNillableHash sets the hash field if the given value is not nil.
func (*PageUpdateOne) SetNillableReferrer ¶
func (puo *PageUpdateOne) SetNillableReferrer(s *string) *PageUpdateOne
SetNillableReferrer sets the referrer field if the given value is not nil.
func (*PageUpdateOne) SetNillableSearch ¶
func (puo *PageUpdateOne) SetNillableSearch(s *string) *PageUpdateOne
SetNillableSearch sets the search field if the given value is not nil.
func (*PageUpdateOne) SetNillableTitle ¶
func (puo *PageUpdateOne) SetNillableTitle(s *string) *PageUpdateOne
SetNillableTitle sets the title field if the given value is not nil.
func (*PageUpdateOne) SetPath ¶
func (puo *PageUpdateOne) SetPath(s string) *PageUpdateOne
SetPath sets the path field.
func (*PageUpdateOne) SetReferrer ¶
func (puo *PageUpdateOne) SetReferrer(s string) *PageUpdateOne
SetReferrer sets the referrer field.
func (*PageUpdateOne) SetSearch ¶
func (puo *PageUpdateOne) SetSearch(s string) *PageUpdateOne
SetSearch sets the search field.
func (*PageUpdateOne) SetTitle ¶
func (puo *PageUpdateOne) SetTitle(s string) *PageUpdateOne
SetTitle sets the title field.
type Referrer ¶
type Referrer struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Type holds the value of the "type" field. Type string `json:"type,omitempty"` // Hostname holds the value of the "hostname" field. Hostname string `json:"hostname,omitempty"` // Link holds the value of the "link" field. Link string `json:"link,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ReferrerQuery when eager-loading is set. Edges ReferrerEdges `json:"edges"` // contains filtered or unexported fields }
Referrer is the model entity for the Referrer schema.
func (*Referrer) QueryEvents ¶
func (r *Referrer) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Referrer.
func (*Referrer) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Referrer) Update ¶
func (r *Referrer) Update() *ReferrerUpdateOne
Update returns a builder for updating this Referrer. Note that, you need to call Referrer.Unwrap() before calling this method, if this Referrer was returned from a transaction, and the transaction was committed or rolled back.
type ReferrerClient ¶
type ReferrerClient struct {
// contains filtered or unexported fields
}
ReferrerClient is a client for the Referrer schema.
func NewReferrerClient ¶
func NewReferrerClient(c config) *ReferrerClient
NewReferrerClient returns a client for the Referrer from the given config.
func (*ReferrerClient) Create ¶
func (c *ReferrerClient) Create() *ReferrerCreate
Create returns a create builder for Referrer.
func (*ReferrerClient) CreateBulk ¶
func (c *ReferrerClient) CreateBulk(builders ...*ReferrerCreate) *ReferrerCreateBulk
BulkCreate returns a builder for creating a bulk of Referrer entities.
func (*ReferrerClient) Delete ¶
func (c *ReferrerClient) Delete() *ReferrerDelete
Delete returns a delete builder for Referrer.
func (*ReferrerClient) DeleteOne ¶
func (c *ReferrerClient) DeleteOne(r *Referrer) *ReferrerDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ReferrerClient) DeleteOneID ¶
func (c *ReferrerClient) DeleteOneID(id int) *ReferrerDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ReferrerClient) GetX ¶
func (c *ReferrerClient) GetX(ctx context.Context, id int) *Referrer
GetX is like Get, but panics if an error occurs.
func (*ReferrerClient) Hooks ¶
func (c *ReferrerClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ReferrerClient) Query ¶
func (c *ReferrerClient) Query() *ReferrerQuery
Query returns a query builder for Referrer.
func (*ReferrerClient) QueryEvents ¶
func (c *ReferrerClient) QueryEvents(r *Referrer) *EventQuery
QueryEvents queries the events edge of a Referrer.
func (*ReferrerClient) Update ¶
func (c *ReferrerClient) Update() *ReferrerUpdate
Update returns an update builder for Referrer.
func (*ReferrerClient) UpdateOne ¶
func (c *ReferrerClient) UpdateOne(r *Referrer) *ReferrerUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReferrerClient) UpdateOneID ¶
func (c *ReferrerClient) UpdateOneID(id int) *ReferrerUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ReferrerClient) Use ¶
func (c *ReferrerClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `referrer.Hooks(f(g(h())))`.
type ReferrerCreate ¶
type ReferrerCreate struct {
// contains filtered or unexported fields
}
ReferrerCreate is the builder for creating a Referrer entity.
func (*ReferrerCreate) AddEventIDs ¶
func (rc *ReferrerCreate) AddEventIDs(ids ...uuid.UUID) *ReferrerCreate
AddEventIDs adds the events edge to Event by ids.
func (*ReferrerCreate) AddEvents ¶
func (rc *ReferrerCreate) AddEvents(e ...*Event) *ReferrerCreate
AddEvents adds the events edges to Event.
func (*ReferrerCreate) Mutation ¶
func (rc *ReferrerCreate) Mutation() *ReferrerMutation
Mutation returns the ReferrerMutation object of the builder.
func (*ReferrerCreate) Save ¶
func (rc *ReferrerCreate) Save(ctx context.Context) (*Referrer, error)
Save creates the Referrer in the database.
func (*ReferrerCreate) SaveX ¶
func (rc *ReferrerCreate) SaveX(ctx context.Context) *Referrer
SaveX calls Save and panics if Save returns an error.
func (*ReferrerCreate) SetHostname ¶
func (rc *ReferrerCreate) SetHostname(s string) *ReferrerCreate
SetHostname sets the hostname field.
func (*ReferrerCreate) SetLink ¶
func (rc *ReferrerCreate) SetLink(s string) *ReferrerCreate
SetLink sets the link field.
func (*ReferrerCreate) SetName ¶
func (rc *ReferrerCreate) SetName(s string) *ReferrerCreate
SetName sets the name field.
func (*ReferrerCreate) SetNillableHostname ¶
func (rc *ReferrerCreate) SetNillableHostname(s *string) *ReferrerCreate
SetNillableHostname sets the hostname field if the given value is not nil.
func (*ReferrerCreate) SetNillableLink ¶
func (rc *ReferrerCreate) SetNillableLink(s *string) *ReferrerCreate
SetNillableLink sets the link field if the given value is not nil.
func (*ReferrerCreate) SetNillableType ¶
func (rc *ReferrerCreate) SetNillableType(s *string) *ReferrerCreate
SetNillableType sets the type field if the given value is not nil.
func (*ReferrerCreate) SetType ¶
func (rc *ReferrerCreate) SetType(s string) *ReferrerCreate
SetType sets the type field.
type ReferrerCreateBulk ¶
type ReferrerCreateBulk struct {
// contains filtered or unexported fields
}
ReferrerCreateBulk is the builder for creating a bulk of Referrer entities.
type ReferrerDelete ¶
type ReferrerDelete struct {
// contains filtered or unexported fields
}
ReferrerDelete is the builder for deleting a Referrer entity.
func (*ReferrerDelete) Exec ¶
func (rd *ReferrerDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ReferrerDelete) ExecX ¶
func (rd *ReferrerDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerDelete) Where ¶
func (rd *ReferrerDelete) Where(ps ...predicate.Referrer) *ReferrerDelete
Where adds a new predicate to the delete builder.
type ReferrerDeleteOne ¶
type ReferrerDeleteOne struct {
// contains filtered or unexported fields
}
ReferrerDeleteOne is the builder for deleting a single Referrer entity.
func (*ReferrerDeleteOne) Exec ¶
func (rdo *ReferrerDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ReferrerDeleteOne) ExecX ¶
func (rdo *ReferrerDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ReferrerEdges ¶
type ReferrerEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
ReferrerEdges holds the relations/edges for other nodes in the graph.
func (ReferrerEdges) EventsOrErr ¶
func (e ReferrerEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type ReferrerGroupBy ¶
type ReferrerGroupBy struct {
// contains filtered or unexported fields
}
ReferrerGroupBy is the builder for group-by Referrer entities.
func (*ReferrerGroupBy) Aggregate ¶
func (rgb *ReferrerGroupBy) Aggregate(fns ...AggregateFunc) *ReferrerGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReferrerGroupBy) Bool ¶
func (rgb *ReferrerGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) BoolX ¶
func (rgb *ReferrerGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ReferrerGroupBy) Bools ¶
func (rgb *ReferrerGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) BoolsX ¶
func (rgb *ReferrerGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ReferrerGroupBy) Float64 ¶
func (rgb *ReferrerGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) Float64X ¶
func (rgb *ReferrerGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ReferrerGroupBy) Float64s ¶
func (rgb *ReferrerGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) Float64sX ¶
func (rgb *ReferrerGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ReferrerGroupBy) Int ¶
func (rgb *ReferrerGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) IntX ¶
func (rgb *ReferrerGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ReferrerGroupBy) Ints ¶
func (rgb *ReferrerGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) IntsX ¶
func (rgb *ReferrerGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ReferrerGroupBy) Scan ¶
func (rgb *ReferrerGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ReferrerGroupBy) ScanX ¶
func (rgb *ReferrerGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ReferrerGroupBy) String ¶
func (rgb *ReferrerGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*ReferrerGroupBy) StringX ¶
func (rgb *ReferrerGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ReferrerMutation ¶
type ReferrerMutation struct {
// contains filtered or unexported fields
}
ReferrerMutation represents an operation that mutate the Referrers nodes in the graph.
func (*ReferrerMutation) AddEventIDs ¶
func (m *ReferrerMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*ReferrerMutation) AddField ¶
func (m *ReferrerMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ReferrerMutation) AddedEdges ¶
func (m *ReferrerMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ReferrerMutation) AddedField ¶
func (m *ReferrerMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*ReferrerMutation) AddedFields ¶
func (m *ReferrerMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*ReferrerMutation) AddedIDs ¶
func (m *ReferrerMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*ReferrerMutation) ClearEdge ¶
func (m *ReferrerMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*ReferrerMutation) ClearField ¶
func (m *ReferrerMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*ReferrerMutation) ClearHostname ¶
func (m *ReferrerMutation) ClearHostname()
ClearHostname clears the value of hostname.
func (*ReferrerMutation) ClearLink ¶
func (m *ReferrerMutation) ClearLink()
ClearLink clears the value of link.
func (*ReferrerMutation) ClearType ¶
func (m *ReferrerMutation) ClearType()
ClearType clears the value of type.
func (*ReferrerMutation) ClearedEdges ¶
func (m *ReferrerMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ReferrerMutation) ClearedFields ¶
func (m *ReferrerMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ReferrerMutation) Client ¶
func (m ReferrerMutation) 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 (*ReferrerMutation) EdgeCleared ¶
func (m *ReferrerMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*ReferrerMutation) EventsIDs ¶
func (m *ReferrerMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*ReferrerMutation) Field ¶
func (m *ReferrerMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*ReferrerMutation) FieldCleared ¶
func (m *ReferrerMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*ReferrerMutation) Fields ¶
func (m *ReferrerMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*ReferrerMutation) GetType ¶
func (m *ReferrerMutation) GetType() (r string, exists bool)
GetType returns the type value in the mutation.
func (*ReferrerMutation) Hostname ¶
func (m *ReferrerMutation) Hostname() (r string, exists bool)
Hostname returns the hostname value in the mutation.
func (*ReferrerMutation) HostnameCleared ¶
func (m *ReferrerMutation) HostnameCleared() bool
HostnameCleared returns if the field hostname was cleared in this mutation.
func (*ReferrerMutation) ID ¶
func (m *ReferrerMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*ReferrerMutation) Link ¶
func (m *ReferrerMutation) Link() (r string, exists bool)
Link returns the link value in the mutation.
func (*ReferrerMutation) LinkCleared ¶
func (m *ReferrerMutation) LinkCleared() bool
LinkCleared returns if the field link was cleared in this mutation.
func (*ReferrerMutation) Name ¶
func (m *ReferrerMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*ReferrerMutation) 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 was failed.
func (*ReferrerMutation) OldHostname ¶
func (m *ReferrerMutation) OldHostname(ctx context.Context) (v string, err error)
OldHostname returns the old hostname value of the Referrer. If the Referrer 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 database query fails.
func (*ReferrerMutation) OldLink ¶
func (m *ReferrerMutation) OldLink(ctx context.Context) (v string, err error)
OldLink returns the old link value of the Referrer. If the Referrer 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 database query fails.
func (*ReferrerMutation) OldName ¶
func (m *ReferrerMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Referrer. If the Referrer 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 database query fails.
func (*ReferrerMutation) OldType ¶
func (m *ReferrerMutation) OldType(ctx context.Context) (v string, err error)
OldType returns the old type value of the Referrer. If the Referrer 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 database query fails.
func (*ReferrerMutation) RemoveEventIDs ¶
func (m *ReferrerMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*ReferrerMutation) RemovedEdges ¶
func (m *ReferrerMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ReferrerMutation) RemovedEventsIDs ¶
func (m *ReferrerMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*ReferrerMutation) RemovedIDs ¶
func (m *ReferrerMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*ReferrerMutation) ResetEdge ¶
func (m *ReferrerMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*ReferrerMutation) ResetEvents ¶
func (m *ReferrerMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*ReferrerMutation) ResetField ¶
func (m *ReferrerMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*ReferrerMutation) ResetHostname ¶
func (m *ReferrerMutation) ResetHostname()
ResetHostname reset all changes of the "hostname" field.
func (*ReferrerMutation) ResetLink ¶
func (m *ReferrerMutation) ResetLink()
ResetLink reset all changes of the "link" field.
func (*ReferrerMutation) ResetName ¶
func (m *ReferrerMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*ReferrerMutation) ResetType ¶
func (m *ReferrerMutation) ResetType()
ResetType reset all changes of the "type" field.
func (*ReferrerMutation) SetField ¶
func (m *ReferrerMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ReferrerMutation) SetHostname ¶
func (m *ReferrerMutation) SetHostname(s string)
SetHostname sets the hostname field.
func (*ReferrerMutation) SetLink ¶
func (m *ReferrerMutation) SetLink(s string)
SetLink sets the link field.
func (*ReferrerMutation) SetName ¶
func (m *ReferrerMutation) SetName(s string)
SetName sets the name field.
func (*ReferrerMutation) SetType ¶
func (m *ReferrerMutation) SetType(s string)
SetType sets the type field.
func (ReferrerMutation) Tx ¶
func (m ReferrerMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ReferrerMutation) Type ¶
func (m *ReferrerMutation) Type() string
Type returns the node type of this mutation (Referrer).
func (*ReferrerMutation) TypeCleared ¶
func (m *ReferrerMutation) TypeCleared() bool
TypeCleared returns if the field type was cleared in this mutation.
type ReferrerQuery ¶
type ReferrerQuery struct {
// contains filtered or unexported fields
}
ReferrerQuery is the builder for querying Referrer entities.
func (*ReferrerQuery) All ¶
func (rq *ReferrerQuery) All(ctx context.Context) ([]*Referrer, error)
All executes the query and returns a list of Referrers.
func (*ReferrerQuery) AllX ¶
func (rq *ReferrerQuery) AllX(ctx context.Context) []*Referrer
AllX is like All, but panics if an error occurs.
func (*ReferrerQuery) Clone ¶
func (rq *ReferrerQuery) Clone() *ReferrerQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ReferrerQuery) Count ¶
func (rq *ReferrerQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ReferrerQuery) CountX ¶
func (rq *ReferrerQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ReferrerQuery) Exist ¶
func (rq *ReferrerQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ReferrerQuery) ExistX ¶
func (rq *ReferrerQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ReferrerQuery) First ¶
func (rq *ReferrerQuery) First(ctx context.Context) (*Referrer, error)
First returns the first Referrer entity in the query. Returns *NotFoundError when no referrer was found.
func (*ReferrerQuery) FirstID ¶
func (rq *ReferrerQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Referrer id in the query. Returns *NotFoundError when no id was found.
func (*ReferrerQuery) FirstX ¶
func (rq *ReferrerQuery) FirstX(ctx context.Context) *Referrer
FirstX is like First, but panics if an error occurs.
func (*ReferrerQuery) FirstXID ¶
func (rq *ReferrerQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*ReferrerQuery) GroupBy ¶
func (rq *ReferrerQuery) GroupBy(field string, fields ...string) *ReferrerGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Referrer.Query(). GroupBy(referrer.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ReferrerQuery) IDs ¶
func (rq *ReferrerQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Referrer ids.
func (*ReferrerQuery) IDsX ¶
func (rq *ReferrerQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ReferrerQuery) Limit ¶
func (rq *ReferrerQuery) Limit(limit int) *ReferrerQuery
Limit adds a limit step to the query.
func (*ReferrerQuery) Offset ¶
func (rq *ReferrerQuery) Offset(offset int) *ReferrerQuery
Offset adds an offset step to the query.
func (*ReferrerQuery) Only ¶
func (rq *ReferrerQuery) Only(ctx context.Context) (*Referrer, error)
Only returns the only Referrer entity in the query, returns an error if not exactly one entity was returned.
func (*ReferrerQuery) OnlyID ¶
func (rq *ReferrerQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Referrer id in the query, returns an error if not exactly one id was returned.
func (*ReferrerQuery) OnlyIDX ¶
func (rq *ReferrerQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ReferrerQuery) OnlyX ¶
func (rq *ReferrerQuery) OnlyX(ctx context.Context) *Referrer
OnlyX is like Only, but panics if an error occurs.
func (*ReferrerQuery) Order ¶
func (rq *ReferrerQuery) Order(o ...OrderFunc) *ReferrerQuery
Order adds an order step to the query.
func (*ReferrerQuery) QueryEvents ¶
func (rq *ReferrerQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*ReferrerQuery) Select ¶
func (rq *ReferrerQuery) Select(field string, fields ...string) *ReferrerSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Referrer.Query(). Select(referrer.FieldName). Scan(ctx, &v)
func (*ReferrerQuery) Where ¶
func (rq *ReferrerQuery) Where(ps ...predicate.Referrer) *ReferrerQuery
Where adds a new predicate for the builder.
func (*ReferrerQuery) WithEvents ¶
func (rq *ReferrerQuery) WithEvents(opts ...func(*EventQuery)) *ReferrerQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type ReferrerSelect ¶
type ReferrerSelect struct {
// contains filtered or unexported fields
}
ReferrerSelect is the builder for select fields of Referrer entities.
func (*ReferrerSelect) Bool ¶
func (rs *ReferrerSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) BoolX ¶
func (rs *ReferrerSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ReferrerSelect) Bools ¶
func (rs *ReferrerSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) BoolsX ¶
func (rs *ReferrerSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ReferrerSelect) Float64 ¶
func (rs *ReferrerSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Float64X ¶
func (rs *ReferrerSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ReferrerSelect) Float64s ¶
func (rs *ReferrerSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) Float64sX ¶
func (rs *ReferrerSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ReferrerSelect) Int ¶
func (rs *ReferrerSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) IntX ¶
func (rs *ReferrerSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ReferrerSelect) Ints ¶
func (rs *ReferrerSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) IntsX ¶
func (rs *ReferrerSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ReferrerSelect) Scan ¶
func (rs *ReferrerSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ReferrerSelect) ScanX ¶
func (rs *ReferrerSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ReferrerSelect) String ¶
func (rs *ReferrerSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*ReferrerSelect) StringX ¶
func (rs *ReferrerSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ReferrerUpdate ¶
type ReferrerUpdate struct {
// contains filtered or unexported fields
}
ReferrerUpdate is the builder for updating Referrer entities.
func (*ReferrerUpdate) AddEventIDs ¶
func (ru *ReferrerUpdate) AddEventIDs(ids ...uuid.UUID) *ReferrerUpdate
AddEventIDs adds the events edge to Event by ids.
func (*ReferrerUpdate) AddEvents ¶
func (ru *ReferrerUpdate) AddEvents(e ...*Event) *ReferrerUpdate
AddEvents adds the events edges to Event.
func (*ReferrerUpdate) ClearHostname ¶
func (ru *ReferrerUpdate) ClearHostname() *ReferrerUpdate
ClearHostname clears the value of hostname.
func (*ReferrerUpdate) ClearLink ¶
func (ru *ReferrerUpdate) ClearLink() *ReferrerUpdate
ClearLink clears the value of link.
func (*ReferrerUpdate) ClearType ¶
func (ru *ReferrerUpdate) ClearType() *ReferrerUpdate
ClearType clears the value of type.
func (*ReferrerUpdate) Exec ¶
func (ru *ReferrerUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ReferrerUpdate) ExecX ¶
func (ru *ReferrerUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerUpdate) Mutation ¶
func (ru *ReferrerUpdate) Mutation() *ReferrerMutation
Mutation returns the ReferrerMutation object of the builder.
func (*ReferrerUpdate) RemoveEventIDs ¶
func (ru *ReferrerUpdate) RemoveEventIDs(ids ...uuid.UUID) *ReferrerUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*ReferrerUpdate) RemoveEvents ¶
func (ru *ReferrerUpdate) RemoveEvents(e ...*Event) *ReferrerUpdate
RemoveEvents removes events edges to Event.
func (*ReferrerUpdate) Save ¶
func (ru *ReferrerUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ReferrerUpdate) SaveX ¶
func (ru *ReferrerUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ReferrerUpdate) SetHostname ¶
func (ru *ReferrerUpdate) SetHostname(s string) *ReferrerUpdate
SetHostname sets the hostname field.
func (*ReferrerUpdate) SetLink ¶
func (ru *ReferrerUpdate) SetLink(s string) *ReferrerUpdate
SetLink sets the link field.
func (*ReferrerUpdate) SetName ¶
func (ru *ReferrerUpdate) SetName(s string) *ReferrerUpdate
SetName sets the name field.
func (*ReferrerUpdate) SetNillableHostname ¶
func (ru *ReferrerUpdate) SetNillableHostname(s *string) *ReferrerUpdate
SetNillableHostname sets the hostname field if the given value is not nil.
func (*ReferrerUpdate) SetNillableLink ¶
func (ru *ReferrerUpdate) SetNillableLink(s *string) *ReferrerUpdate
SetNillableLink sets the link field if the given value is not nil.
func (*ReferrerUpdate) SetNillableType ¶
func (ru *ReferrerUpdate) SetNillableType(s *string) *ReferrerUpdate
SetNillableType sets the type field if the given value is not nil.
func (*ReferrerUpdate) SetType ¶
func (ru *ReferrerUpdate) SetType(s string) *ReferrerUpdate
SetType sets the type field.
func (*ReferrerUpdate) Where ¶
func (ru *ReferrerUpdate) Where(ps ...predicate.Referrer) *ReferrerUpdate
Where adds a new predicate for the builder.
type ReferrerUpdateOne ¶
type ReferrerUpdateOne struct {
// contains filtered or unexported fields
}
ReferrerUpdateOne is the builder for updating a single Referrer entity.
func (*ReferrerUpdateOne) AddEventIDs ¶
func (ruo *ReferrerUpdateOne) AddEventIDs(ids ...uuid.UUID) *ReferrerUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*ReferrerUpdateOne) AddEvents ¶
func (ruo *ReferrerUpdateOne) AddEvents(e ...*Event) *ReferrerUpdateOne
AddEvents adds the events edges to Event.
func (*ReferrerUpdateOne) ClearHostname ¶
func (ruo *ReferrerUpdateOne) ClearHostname() *ReferrerUpdateOne
ClearHostname clears the value of hostname.
func (*ReferrerUpdateOne) ClearLink ¶
func (ruo *ReferrerUpdateOne) ClearLink() *ReferrerUpdateOne
ClearLink clears the value of link.
func (*ReferrerUpdateOne) ClearType ¶
func (ruo *ReferrerUpdateOne) ClearType() *ReferrerUpdateOne
ClearType clears the value of type.
func (*ReferrerUpdateOne) Exec ¶
func (ruo *ReferrerUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ReferrerUpdateOne) ExecX ¶
func (ruo *ReferrerUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReferrerUpdateOne) Mutation ¶
func (ruo *ReferrerUpdateOne) Mutation() *ReferrerMutation
Mutation returns the ReferrerMutation object of the builder.
func (*ReferrerUpdateOne) RemoveEventIDs ¶
func (ruo *ReferrerUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ReferrerUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*ReferrerUpdateOne) RemoveEvents ¶
func (ruo *ReferrerUpdateOne) RemoveEvents(e ...*Event) *ReferrerUpdateOne
RemoveEvents removes events edges to Event.
func (*ReferrerUpdateOne) Save ¶
func (ruo *ReferrerUpdateOne) Save(ctx context.Context) (*Referrer, error)
Save executes the query and returns the updated entity.
func (*ReferrerUpdateOne) SaveX ¶
func (ruo *ReferrerUpdateOne) SaveX(ctx context.Context) *Referrer
SaveX is like Save, but panics if an error occurs.
func (*ReferrerUpdateOne) SetHostname ¶
func (ruo *ReferrerUpdateOne) SetHostname(s string) *ReferrerUpdateOne
SetHostname sets the hostname field.
func (*ReferrerUpdateOne) SetLink ¶
func (ruo *ReferrerUpdateOne) SetLink(s string) *ReferrerUpdateOne
SetLink sets the link field.
func (*ReferrerUpdateOne) SetName ¶
func (ruo *ReferrerUpdateOne) SetName(s string) *ReferrerUpdateOne
SetName sets the name field.
func (*ReferrerUpdateOne) SetNillableHostname ¶
func (ruo *ReferrerUpdateOne) SetNillableHostname(s *string) *ReferrerUpdateOne
SetNillableHostname sets the hostname field if the given value is not nil.
func (*ReferrerUpdateOne) SetNillableLink ¶
func (ruo *ReferrerUpdateOne) SetNillableLink(s *string) *ReferrerUpdateOne
SetNillableLink sets the link field if the given value is not nil.
func (*ReferrerUpdateOne) SetNillableType ¶
func (ruo *ReferrerUpdateOne) SetNillableType(s *string) *ReferrerUpdateOne
SetNillableType sets the type field if the given value is not nil.
func (*ReferrerUpdateOne) SetType ¶
func (ruo *ReferrerUpdateOne) SetType(s string) *ReferrerUpdateOne
SetType sets the type field.
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(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 Rollbacker method.
type Screen ¶
type Screen struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Category holds the value of the "category" field. Category string `json:"category,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ScreenQuery when eager-loading is set. Edges ScreenEdges `json:"edges"` // contains filtered or unexported fields }
Screen is the model entity for the Screen schema.
func (*Screen) QueryEvents ¶
func (s *Screen) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Screen.
func (*Screen) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Screen) Update ¶
func (s *Screen) Update() *ScreenUpdateOne
Update returns a builder for updating this Screen. Note that, you need to call Screen.Unwrap() before calling this method, if this Screen was returned from a transaction, and the transaction was committed or rolled back.
type ScreenClient ¶
type ScreenClient struct {
// contains filtered or unexported fields
}
ScreenClient is a client for the Screen schema.
func NewScreenClient ¶
func NewScreenClient(c config) *ScreenClient
NewScreenClient returns a client for the Screen from the given config.
func (*ScreenClient) Create ¶
func (c *ScreenClient) Create() *ScreenCreate
Create returns a create builder for Screen.
func (*ScreenClient) CreateBulk ¶
func (c *ScreenClient) CreateBulk(builders ...*ScreenCreate) *ScreenCreateBulk
BulkCreate returns a builder for creating a bulk of Screen entities.
func (*ScreenClient) Delete ¶
func (c *ScreenClient) Delete() *ScreenDelete
Delete returns a delete builder for Screen.
func (*ScreenClient) DeleteOne ¶
func (c *ScreenClient) DeleteOne(s *Screen) *ScreenDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ScreenClient) DeleteOneID ¶
func (c *ScreenClient) DeleteOneID(id int) *ScreenDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ScreenClient) GetX ¶
func (c *ScreenClient) GetX(ctx context.Context, id int) *Screen
GetX is like Get, but panics if an error occurs.
func (*ScreenClient) Query ¶
func (c *ScreenClient) Query() *ScreenQuery
Query returns a query builder for Screen.
func (*ScreenClient) QueryEvents ¶
func (c *ScreenClient) QueryEvents(s *Screen) *EventQuery
QueryEvents queries the events edge of a Screen.
func (*ScreenClient) Update ¶
func (c *ScreenClient) Update() *ScreenUpdate
Update returns an update builder for Screen.
func (*ScreenClient) UpdateOne ¶
func (c *ScreenClient) UpdateOne(s *Screen) *ScreenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ScreenClient) UpdateOneID ¶
func (c *ScreenClient) UpdateOneID(id int) *ScreenUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ScreenClient) Use ¶
func (c *ScreenClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `screen.Hooks(f(g(h())))`.
type ScreenCreate ¶
type ScreenCreate struct {
// contains filtered or unexported fields
}
ScreenCreate is the builder for creating a Screen entity.
func (*ScreenCreate) AddEventIDs ¶
func (sc *ScreenCreate) AddEventIDs(ids ...uuid.UUID) *ScreenCreate
AddEventIDs adds the events edge to Event by ids.
func (*ScreenCreate) AddEvents ¶
func (sc *ScreenCreate) AddEvents(e ...*Event) *ScreenCreate
AddEvents adds the events edges to Event.
func (*ScreenCreate) Mutation ¶
func (sc *ScreenCreate) Mutation() *ScreenMutation
Mutation returns the ScreenMutation object of the builder.
func (*ScreenCreate) Save ¶
func (sc *ScreenCreate) Save(ctx context.Context) (*Screen, error)
Save creates the Screen in the database.
func (*ScreenCreate) SaveX ¶
func (sc *ScreenCreate) SaveX(ctx context.Context) *Screen
SaveX calls Save and panics if Save returns an error.
func (*ScreenCreate) SetCategory ¶
func (sc *ScreenCreate) SetCategory(s string) *ScreenCreate
SetCategory sets the category field.
func (*ScreenCreate) SetName ¶
func (sc *ScreenCreate) SetName(s string) *ScreenCreate
SetName sets the name field.
func (*ScreenCreate) SetNillableCategory ¶
func (sc *ScreenCreate) SetNillableCategory(s *string) *ScreenCreate
SetNillableCategory sets the category field if the given value is not nil.
type ScreenCreateBulk ¶
type ScreenCreateBulk struct {
// contains filtered or unexported fields
}
ScreenCreateBulk is the builder for creating a bulk of Screen entities.
type ScreenDelete ¶
type ScreenDelete struct {
// contains filtered or unexported fields
}
ScreenDelete is the builder for deleting a Screen entity.
func (*ScreenDelete) Exec ¶
func (sd *ScreenDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ScreenDelete) ExecX ¶
func (sd *ScreenDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ScreenDelete) Where ¶
func (sd *ScreenDelete) Where(ps ...predicate.Screen) *ScreenDelete
Where adds a new predicate to the delete builder.
type ScreenDeleteOne ¶
type ScreenDeleteOne struct {
// contains filtered or unexported fields
}
ScreenDeleteOne is the builder for deleting a single Screen entity.
func (*ScreenDeleteOne) Exec ¶
func (sdo *ScreenDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ScreenDeleteOne) ExecX ¶
func (sdo *ScreenDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ScreenEdges ¶
type ScreenEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
ScreenEdges holds the relations/edges for other nodes in the graph.
func (ScreenEdges) EventsOrErr ¶
func (e ScreenEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type ScreenGroupBy ¶
type ScreenGroupBy struct {
// contains filtered or unexported fields
}
ScreenGroupBy is the builder for group-by Screen entities.
func (*ScreenGroupBy) Aggregate ¶
func (sgb *ScreenGroupBy) Aggregate(fns ...AggregateFunc) *ScreenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ScreenGroupBy) Bool ¶
func (sgb *ScreenGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) BoolX ¶
func (sgb *ScreenGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ScreenGroupBy) Bools ¶
func (sgb *ScreenGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) BoolsX ¶
func (sgb *ScreenGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ScreenGroupBy) Float64 ¶
func (sgb *ScreenGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) Float64X ¶
func (sgb *ScreenGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ScreenGroupBy) Float64s ¶
func (sgb *ScreenGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) Float64sX ¶
func (sgb *ScreenGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ScreenGroupBy) Int ¶
func (sgb *ScreenGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) IntX ¶
func (sgb *ScreenGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ScreenGroupBy) Ints ¶
func (sgb *ScreenGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) IntsX ¶
func (sgb *ScreenGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ScreenGroupBy) Scan ¶
func (sgb *ScreenGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ScreenGroupBy) ScanX ¶
func (sgb *ScreenGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ScreenGroupBy) String ¶
func (sgb *ScreenGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*ScreenGroupBy) StringX ¶
func (sgb *ScreenGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ScreenMutation ¶
type ScreenMutation struct {
// contains filtered or unexported fields
}
ScreenMutation represents an operation that mutate the Screens nodes in the graph.
func (*ScreenMutation) AddEventIDs ¶
func (m *ScreenMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*ScreenMutation) AddField ¶
func (m *ScreenMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ScreenMutation) AddedEdges ¶
func (m *ScreenMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ScreenMutation) AddedField ¶
func (m *ScreenMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*ScreenMutation) AddedFields ¶
func (m *ScreenMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*ScreenMutation) AddedIDs ¶
func (m *ScreenMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*ScreenMutation) Category ¶
func (m *ScreenMutation) Category() (r string, exists bool)
Category returns the category value in the mutation.
func (*ScreenMutation) CategoryCleared ¶
func (m *ScreenMutation) CategoryCleared() bool
CategoryCleared returns if the field category was cleared in this mutation.
func (*ScreenMutation) ClearCategory ¶
func (m *ScreenMutation) ClearCategory()
ClearCategory clears the value of category.
func (*ScreenMutation) ClearEdge ¶
func (m *ScreenMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*ScreenMutation) ClearField ¶
func (m *ScreenMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*ScreenMutation) ClearedEdges ¶
func (m *ScreenMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ScreenMutation) ClearedFields ¶
func (m *ScreenMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ScreenMutation) Client ¶
func (m ScreenMutation) 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 (*ScreenMutation) EdgeCleared ¶
func (m *ScreenMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*ScreenMutation) EventsIDs ¶
func (m *ScreenMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*ScreenMutation) Field ¶
func (m *ScreenMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*ScreenMutation) FieldCleared ¶
func (m *ScreenMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*ScreenMutation) Fields ¶
func (m *ScreenMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*ScreenMutation) ID ¶
func (m *ScreenMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*ScreenMutation) Name ¶
func (m *ScreenMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*ScreenMutation) OldCategory ¶
func (m *ScreenMutation) OldCategory(ctx context.Context) (v string, err error)
OldCategory returns the old category value of the Screen. If the Screen 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 database query fails.
func (*ScreenMutation) 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 was failed.
func (*ScreenMutation) OldName ¶
func (m *ScreenMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the Screen. If the Screen 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 database query fails.
func (*ScreenMutation) RemoveEventIDs ¶
func (m *ScreenMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*ScreenMutation) RemovedEdges ¶
func (m *ScreenMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ScreenMutation) RemovedEventsIDs ¶
func (m *ScreenMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*ScreenMutation) RemovedIDs ¶
func (m *ScreenMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*ScreenMutation) ResetCategory ¶
func (m *ScreenMutation) ResetCategory()
ResetCategory reset all changes of the "category" field.
func (*ScreenMutation) ResetEdge ¶
func (m *ScreenMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*ScreenMutation) ResetEvents ¶
func (m *ScreenMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*ScreenMutation) ResetField ¶
func (m *ScreenMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*ScreenMutation) ResetName ¶
func (m *ScreenMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*ScreenMutation) SetCategory ¶
func (m *ScreenMutation) SetCategory(s string)
SetCategory sets the category field.
func (*ScreenMutation) SetField ¶
func (m *ScreenMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ScreenMutation) SetName ¶
func (m *ScreenMutation) SetName(s string)
SetName sets the name field.
func (ScreenMutation) Tx ¶
func (m ScreenMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ScreenMutation) Type ¶
func (m *ScreenMutation) Type() string
Type returns the node type of this mutation (Screen).
type ScreenQuery ¶
type ScreenQuery struct {
// contains filtered or unexported fields
}
ScreenQuery is the builder for querying Screen entities.
func (*ScreenQuery) All ¶
func (sq *ScreenQuery) All(ctx context.Context) ([]*Screen, error)
All executes the query and returns a list of Screens.
func (*ScreenQuery) AllX ¶
func (sq *ScreenQuery) AllX(ctx context.Context) []*Screen
AllX is like All, but panics if an error occurs.
func (*ScreenQuery) Clone ¶
func (sq *ScreenQuery) Clone() *ScreenQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ScreenQuery) Count ¶
func (sq *ScreenQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ScreenQuery) CountX ¶
func (sq *ScreenQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ScreenQuery) Exist ¶
func (sq *ScreenQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ScreenQuery) ExistX ¶
func (sq *ScreenQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ScreenQuery) First ¶
func (sq *ScreenQuery) First(ctx context.Context) (*Screen, error)
First returns the first Screen entity in the query. Returns *NotFoundError when no screen was found.
func (*ScreenQuery) FirstID ¶
func (sq *ScreenQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Screen id in the query. Returns *NotFoundError when no id was found.
func (*ScreenQuery) FirstX ¶
func (sq *ScreenQuery) FirstX(ctx context.Context) *Screen
FirstX is like First, but panics if an error occurs.
func (*ScreenQuery) FirstXID ¶
func (sq *ScreenQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*ScreenQuery) GroupBy ¶
func (sq *ScreenQuery) GroupBy(field string, fields ...string) *ScreenGroupBy
GroupBy 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 { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Screen.Query(). GroupBy(screen.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ScreenQuery) IDs ¶
func (sq *ScreenQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Screen ids.
func (*ScreenQuery) IDsX ¶
func (sq *ScreenQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ScreenQuery) Limit ¶
func (sq *ScreenQuery) Limit(limit int) *ScreenQuery
Limit adds a limit step to the query.
func (*ScreenQuery) Offset ¶
func (sq *ScreenQuery) Offset(offset int) *ScreenQuery
Offset adds an offset step to the query.
func (*ScreenQuery) Only ¶
func (sq *ScreenQuery) Only(ctx context.Context) (*Screen, error)
Only returns the only Screen entity in the query, returns an error if not exactly one entity was returned.
func (*ScreenQuery) OnlyID ¶
func (sq *ScreenQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Screen id in the query, returns an error if not exactly one id was returned.
func (*ScreenQuery) OnlyIDX ¶
func (sq *ScreenQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ScreenQuery) OnlyX ¶
func (sq *ScreenQuery) OnlyX(ctx context.Context) *Screen
OnlyX is like Only, but panics if an error occurs.
func (*ScreenQuery) Order ¶
func (sq *ScreenQuery) Order(o ...OrderFunc) *ScreenQuery
Order adds an order step to the query.
func (*ScreenQuery) QueryEvents ¶
func (sq *ScreenQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*ScreenQuery) Select ¶
func (sq *ScreenQuery) Select(field string, fields ...string) *ScreenSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Screen.Query(). Select(screen.FieldName). Scan(ctx, &v)
func (*ScreenQuery) Where ¶
func (sq *ScreenQuery) Where(ps ...predicate.Screen) *ScreenQuery
Where adds a new predicate for the builder.
func (*ScreenQuery) WithEvents ¶
func (sq *ScreenQuery) WithEvents(opts ...func(*EventQuery)) *ScreenQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type ScreenSelect ¶
type ScreenSelect struct {
// contains filtered or unexported fields
}
ScreenSelect is the builder for select fields of Screen entities.
func (*ScreenSelect) Bool ¶
func (ss *ScreenSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*ScreenSelect) BoolX ¶
func (ss *ScreenSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ScreenSelect) Bools ¶
func (ss *ScreenSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ScreenSelect) BoolsX ¶
func (ss *ScreenSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ScreenSelect) Float64 ¶
func (ss *ScreenSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*ScreenSelect) Float64X ¶
func (ss *ScreenSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ScreenSelect) Float64s ¶
func (ss *ScreenSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ScreenSelect) Float64sX ¶
func (ss *ScreenSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ScreenSelect) Int ¶
func (ss *ScreenSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*ScreenSelect) IntX ¶
func (ss *ScreenSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ScreenSelect) Ints ¶
func (ss *ScreenSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ScreenSelect) IntsX ¶
func (ss *ScreenSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ScreenSelect) Scan ¶
func (ss *ScreenSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ScreenSelect) ScanX ¶
func (ss *ScreenSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ScreenSelect) String ¶
func (ss *ScreenSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*ScreenSelect) StringX ¶
func (ss *ScreenSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ScreenUpdate ¶
type ScreenUpdate struct {
// contains filtered or unexported fields
}
ScreenUpdate is the builder for updating Screen entities.
func (*ScreenUpdate) AddEventIDs ¶
func (su *ScreenUpdate) AddEventIDs(ids ...uuid.UUID) *ScreenUpdate
AddEventIDs adds the events edge to Event by ids.
func (*ScreenUpdate) AddEvents ¶
func (su *ScreenUpdate) AddEvents(e ...*Event) *ScreenUpdate
AddEvents adds the events edges to Event.
func (*ScreenUpdate) ClearCategory ¶
func (su *ScreenUpdate) ClearCategory() *ScreenUpdate
ClearCategory clears the value of category.
func (*ScreenUpdate) Exec ¶
func (su *ScreenUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ScreenUpdate) ExecX ¶
func (su *ScreenUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ScreenUpdate) Mutation ¶
func (su *ScreenUpdate) Mutation() *ScreenMutation
Mutation returns the ScreenMutation object of the builder.
func (*ScreenUpdate) RemoveEventIDs ¶
func (su *ScreenUpdate) RemoveEventIDs(ids ...uuid.UUID) *ScreenUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*ScreenUpdate) RemoveEvents ¶
func (su *ScreenUpdate) RemoveEvents(e ...*Event) *ScreenUpdate
RemoveEvents removes events edges to Event.
func (*ScreenUpdate) Save ¶
func (su *ScreenUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ScreenUpdate) SaveX ¶
func (su *ScreenUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ScreenUpdate) SetCategory ¶
func (su *ScreenUpdate) SetCategory(s string) *ScreenUpdate
SetCategory sets the category field.
func (*ScreenUpdate) SetName ¶
func (su *ScreenUpdate) SetName(s string) *ScreenUpdate
SetName sets the name field.
func (*ScreenUpdate) SetNillableCategory ¶
func (su *ScreenUpdate) SetNillableCategory(s *string) *ScreenUpdate
SetNillableCategory sets the category field if the given value is not nil.
func (*ScreenUpdate) Where ¶
func (su *ScreenUpdate) Where(ps ...predicate.Screen) *ScreenUpdate
Where adds a new predicate for the builder.
type ScreenUpdateOne ¶
type ScreenUpdateOne struct {
// contains filtered or unexported fields
}
ScreenUpdateOne is the builder for updating a single Screen entity.
func (*ScreenUpdateOne) AddEventIDs ¶
func (suo *ScreenUpdateOne) AddEventIDs(ids ...uuid.UUID) *ScreenUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*ScreenUpdateOne) AddEvents ¶
func (suo *ScreenUpdateOne) AddEvents(e ...*Event) *ScreenUpdateOne
AddEvents adds the events edges to Event.
func (*ScreenUpdateOne) ClearCategory ¶
func (suo *ScreenUpdateOne) ClearCategory() *ScreenUpdateOne
ClearCategory clears the value of category.
func (*ScreenUpdateOne) Exec ¶
func (suo *ScreenUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ScreenUpdateOne) ExecX ¶
func (suo *ScreenUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ScreenUpdateOne) Mutation ¶
func (suo *ScreenUpdateOne) Mutation() *ScreenMutation
Mutation returns the ScreenMutation object of the builder.
func (*ScreenUpdateOne) RemoveEventIDs ¶
func (suo *ScreenUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ScreenUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*ScreenUpdateOne) RemoveEvents ¶
func (suo *ScreenUpdateOne) RemoveEvents(e ...*Event) *ScreenUpdateOne
RemoveEvents removes events edges to Event.
func (*ScreenUpdateOne) Save ¶
func (suo *ScreenUpdateOne) Save(ctx context.Context) (*Screen, error)
Save executes the query and returns the updated entity.
func (*ScreenUpdateOne) SaveX ¶
func (suo *ScreenUpdateOne) SaveX(ctx context.Context) *Screen
SaveX is like Save, but panics if an error occurs.
func (*ScreenUpdateOne) SetCategory ¶
func (suo *ScreenUpdateOne) SetCategory(s string) *ScreenUpdateOne
SetCategory sets the category field.
func (*ScreenUpdateOne) SetName ¶
func (suo *ScreenUpdateOne) SetName(s string) *ScreenUpdateOne
SetName sets the name field.
func (*ScreenUpdateOne) SetNillableCategory ¶
func (suo *ScreenUpdateOne) SetNillableCategory(s *string) *ScreenUpdateOne
SetNillableCategory sets the category field if the given value is not nil.
type Session ¶
type Session struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // NewUser holds the value of the "new_user" field. NewUser bool `json:"new_user,omitempty"` // IsUnique holds the value of the "is_unique" field. IsUnique bool `json:"is_unique,omitempty"` // IsBounce holds the value of the "is_bounce" field. IsBounce bool `json:"is_bounce,omitempty"` // IsFinished holds the value of the "is_finished" field. IsFinished bool `json:"is_finished,omitempty"` // Duration holds the value of the "duration" field. Duration int `json:"duration,omitempty"` // StartedAt holds the value of the "started_at" field. StartedAt time.Time `json:"started_at,omitempty"` // FinishedAt holds the value of the "finished_at" field. FinishedAt *time.Time `json:"finished_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SessionQuery when eager-loading is set. Edges SessionEdges `json:"edges"` // contains filtered or unexported fields }
Session is the model entity for the Session schema.
func (*Session) QueryEvents ¶
func (s *Session) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Session.
func (*Session) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Session) Update ¶
func (s *Session) Update() *SessionUpdateOne
Update returns a builder for updating this Session. Note that, you need to call Session.Unwrap() before calling this method, if this Session was returned from a transaction, and the transaction was committed or rolled back.
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient is a client for the Session schema.
func NewSessionClient ¶
func NewSessionClient(c config) *SessionClient
NewSessionClient returns a client for the Session from the given config.
func (*SessionClient) Create ¶
func (c *SessionClient) Create() *SessionCreate
Create returns a create builder for Session.
func (*SessionClient) CreateBulk ¶
func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
BulkCreate returns a builder for creating a bulk of Session entities.
func (*SessionClient) Delete ¶
func (c *SessionClient) Delete() *SessionDelete
Delete returns a delete builder for Session.
func (*SessionClient) DeleteOne ¶
func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*SessionClient) DeleteOneID ¶
func (c *SessionClient) DeleteOneID(id uuid.UUID) *SessionDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*SessionClient) Hooks ¶
func (c *SessionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SessionClient) Query ¶
func (c *SessionClient) Query() *SessionQuery
Query returns a query builder for Session.
func (*SessionClient) QueryEvents ¶
func (c *SessionClient) QueryEvents(s *Session) *EventQuery
QueryEvents queries the events edge of a Session.
func (*SessionClient) Update ¶
func (c *SessionClient) Update() *SessionUpdate
Update returns an update builder for Session.
func (*SessionClient) UpdateOne ¶
func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SessionClient) UpdateOneID ¶
func (c *SessionClient) UpdateOneID(id uuid.UUID) *SessionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SessionClient) Use ¶
func (c *SessionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `session.Hooks(f(g(h())))`.
type SessionCreate ¶
type SessionCreate struct {
// contains filtered or unexported fields
}
SessionCreate is the builder for creating a Session entity.
func (*SessionCreate) AddEventIDs ¶
func (sc *SessionCreate) AddEventIDs(ids ...uuid.UUID) *SessionCreate
AddEventIDs adds the events edge to Event by ids.
func (*SessionCreate) AddEvents ¶
func (sc *SessionCreate) AddEvents(e ...*Event) *SessionCreate
AddEvents adds the events edges to Event.
func (*SessionCreate) Mutation ¶
func (sc *SessionCreate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionCreate) Save ¶
func (sc *SessionCreate) Save(ctx context.Context) (*Session, error)
Save creates the Session in the database.
func (*SessionCreate) SaveX ¶
func (sc *SessionCreate) SaveX(ctx context.Context) *Session
SaveX calls Save and panics if Save returns an error.
func (*SessionCreate) SetDuration ¶
func (sc *SessionCreate) SetDuration(i int) *SessionCreate
SetDuration sets the duration field.
func (*SessionCreate) SetFinishedAt ¶
func (sc *SessionCreate) SetFinishedAt(t time.Time) *SessionCreate
SetFinishedAt sets the finished_at field.
func (*SessionCreate) SetID ¶
func (sc *SessionCreate) SetID(u uuid.UUID) *SessionCreate
SetID sets the id field.
func (*SessionCreate) SetIsBounce ¶
func (sc *SessionCreate) SetIsBounce(b bool) *SessionCreate
SetIsBounce sets the is_bounce field.
func (*SessionCreate) SetIsFinished ¶
func (sc *SessionCreate) SetIsFinished(b bool) *SessionCreate
SetIsFinished sets the is_finished field.
func (*SessionCreate) SetIsUnique ¶
func (sc *SessionCreate) SetIsUnique(b bool) *SessionCreate
SetIsUnique sets the is_unique field.
func (*SessionCreate) SetNewUser ¶
func (sc *SessionCreate) SetNewUser(b bool) *SessionCreate
SetNewUser sets the new_user field.
func (*SessionCreate) SetNillableDuration ¶
func (sc *SessionCreate) SetNillableDuration(i *int) *SessionCreate
SetNillableDuration sets the duration field if the given value is not nil.
func (*SessionCreate) SetNillableFinishedAt ¶
func (sc *SessionCreate) SetNillableFinishedAt(t *time.Time) *SessionCreate
SetNillableFinishedAt sets the finished_at field if the given value is not nil.
func (*SessionCreate) SetStartedAt ¶
func (sc *SessionCreate) SetStartedAt(t time.Time) *SessionCreate
SetStartedAt sets the started_at field.
type SessionCreateBulk ¶
type SessionCreateBulk struct {
// contains filtered or unexported fields
}
SessionCreateBulk is the builder for creating a bulk of Session entities.
type SessionDelete ¶
type SessionDelete struct {
// contains filtered or unexported fields
}
SessionDelete is the builder for deleting a Session entity.
func (*SessionDelete) Exec ¶
func (sd *SessionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SessionDelete) ExecX ¶
func (sd *SessionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SessionDelete) Where ¶
func (sd *SessionDelete) Where(ps ...predicate.Session) *SessionDelete
Where adds a new predicate to the delete builder.
type SessionDeleteOne ¶
type SessionDeleteOne struct {
// contains filtered or unexported fields
}
SessionDeleteOne is the builder for deleting a single Session entity.
func (*SessionDeleteOne) Exec ¶
func (sdo *SessionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SessionDeleteOne) ExecX ¶
func (sdo *SessionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SessionEdges ¶
type SessionEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
SessionEdges holds the relations/edges for other nodes in the graph.
func (SessionEdges) EventsOrErr ¶
func (e SessionEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type SessionGroupBy ¶
type SessionGroupBy struct {
// contains filtered or unexported fields
}
SessionGroupBy is the builder for group-by Session entities.
func (*SessionGroupBy) Aggregate ¶
func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SessionGroupBy) Bool ¶
func (sgb *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) BoolX ¶
func (sgb *SessionGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SessionGroupBy) Bools ¶
func (sgb *SessionGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) BoolsX ¶
func (sgb *SessionGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SessionGroupBy) Float64 ¶
func (sgb *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) Float64X ¶
func (sgb *SessionGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SessionGroupBy) Float64s ¶
func (sgb *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) Float64sX ¶
func (sgb *SessionGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SessionGroupBy) Int ¶
func (sgb *SessionGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) IntX ¶
func (sgb *SessionGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SessionGroupBy) Ints ¶
func (sgb *SessionGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) IntsX ¶
func (sgb *SessionGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SessionGroupBy) Scan ¶
func (sgb *SessionGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*SessionGroupBy) ScanX ¶
func (sgb *SessionGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SessionGroupBy) String ¶
func (sgb *SessionGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*SessionGroupBy) StringX ¶
func (sgb *SessionGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SessionMutation ¶
type SessionMutation struct {
// contains filtered or unexported fields
}
SessionMutation represents an operation that mutate the Sessions nodes in the graph.
func (*SessionMutation) AddDuration ¶
func (m *SessionMutation) AddDuration(i int)
AddDuration adds i to duration.
func (*SessionMutation) AddEventIDs ¶
func (m *SessionMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*SessionMutation) AddField ¶
func (m *SessionMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*SessionMutation) AddedDuration ¶
func (m *SessionMutation) AddedDuration() (r int, exists bool)
AddedDuration returns the value that was added to the duration field in this mutation.
func (*SessionMutation) AddedEdges ¶
func (m *SessionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SessionMutation) AddedField ¶
func (m *SessionMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*SessionMutation) AddedFields ¶
func (m *SessionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*SessionMutation) AddedIDs ¶
func (m *SessionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*SessionMutation) ClearDuration ¶
func (m *SessionMutation) ClearDuration()
ClearDuration clears the value of duration.
func (*SessionMutation) ClearEdge ¶
func (m *SessionMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*SessionMutation) ClearField ¶
func (m *SessionMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*SessionMutation) ClearFinishedAt ¶
func (m *SessionMutation) ClearFinishedAt()
ClearFinishedAt clears the value of finished_at.
func (*SessionMutation) ClearedEdges ¶
func (m *SessionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SessionMutation) ClearedFields ¶
func (m *SessionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SessionMutation) Client ¶
func (m SessionMutation) 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 (*SessionMutation) Duration ¶
func (m *SessionMutation) Duration() (r int, exists bool)
Duration returns the duration value in the mutation.
func (*SessionMutation) DurationCleared ¶
func (m *SessionMutation) DurationCleared() bool
DurationCleared returns if the field duration was cleared in this mutation.
func (*SessionMutation) EdgeCleared ¶
func (m *SessionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*SessionMutation) EventsIDs ¶
func (m *SessionMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*SessionMutation) Field ¶
func (m *SessionMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*SessionMutation) FieldCleared ¶
func (m *SessionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*SessionMutation) Fields ¶
func (m *SessionMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*SessionMutation) FinishedAt ¶
func (m *SessionMutation) FinishedAt() (r time.Time, exists bool)
FinishedAt returns the finished_at value in the mutation.
func (*SessionMutation) FinishedAtCleared ¶
func (m *SessionMutation) FinishedAtCleared() bool
FinishedAtCleared returns if the field finished_at was cleared in this mutation.
func (*SessionMutation) ID ¶
func (m *SessionMutation) ID() (id uuid.UUID, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*SessionMutation) IsBounce ¶
func (m *SessionMutation) IsBounce() (r bool, exists bool)
IsBounce returns the is_bounce value in the mutation.
func (*SessionMutation) IsFinished ¶
func (m *SessionMutation) IsFinished() (r bool, exists bool)
IsFinished returns the is_finished value in the mutation.
func (*SessionMutation) IsUnique ¶
func (m *SessionMutation) IsUnique() (r bool, exists bool)
IsUnique returns the is_unique value in the mutation.
func (*SessionMutation) NewUser ¶
func (m *SessionMutation) NewUser() (r bool, exists bool)
NewUser returns the new_user value in the mutation.
func (*SessionMutation) OldDuration ¶
func (m *SessionMutation) OldDuration(ctx context.Context) (v int, err error)
OldDuration returns the old duration value of the Session. If the Session 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 database query fails.
func (*SessionMutation) 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 was failed.
func (*SessionMutation) OldFinishedAt ¶
OldFinishedAt returns the old finished_at value of the Session. If the Session 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 database query fails.
func (*SessionMutation) OldIsBounce ¶
func (m *SessionMutation) OldIsBounce(ctx context.Context) (v bool, err error)
OldIsBounce returns the old is_bounce value of the Session. If the Session 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 database query fails.
func (*SessionMutation) OldIsFinished ¶
func (m *SessionMutation) OldIsFinished(ctx context.Context) (v bool, err error)
OldIsFinished returns the old is_finished value of the Session. If the Session 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 database query fails.
func (*SessionMutation) OldIsUnique ¶
func (m *SessionMutation) OldIsUnique(ctx context.Context) (v bool, err error)
OldIsUnique returns the old is_unique value of the Session. If the Session 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 database query fails.
func (*SessionMutation) OldNewUser ¶
func (m *SessionMutation) OldNewUser(ctx context.Context) (v bool, err error)
OldNewUser returns the old new_user value of the Session. If the Session 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 database query fails.
func (*SessionMutation) OldStartedAt ¶
OldStartedAt returns the old started_at value of the Session. If the Session 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 database query fails.
func (*SessionMutation) RemoveEventIDs ¶
func (m *SessionMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*SessionMutation) RemovedEdges ¶
func (m *SessionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SessionMutation) RemovedEventsIDs ¶
func (m *SessionMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*SessionMutation) RemovedIDs ¶
func (m *SessionMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*SessionMutation) ResetDuration ¶
func (m *SessionMutation) ResetDuration()
ResetDuration reset all changes of the "duration" field.
func (*SessionMutation) ResetEdge ¶
func (m *SessionMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*SessionMutation) ResetEvents ¶
func (m *SessionMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*SessionMutation) ResetField ¶
func (m *SessionMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*SessionMutation) ResetFinishedAt ¶
func (m *SessionMutation) ResetFinishedAt()
ResetFinishedAt reset all changes of the "finished_at" field.
func (*SessionMutation) ResetIsBounce ¶
func (m *SessionMutation) ResetIsBounce()
ResetIsBounce reset all changes of the "is_bounce" field.
func (*SessionMutation) ResetIsFinished ¶
func (m *SessionMutation) ResetIsFinished()
ResetIsFinished reset all changes of the "is_finished" field.
func (*SessionMutation) ResetIsUnique ¶
func (m *SessionMutation) ResetIsUnique()
ResetIsUnique reset all changes of the "is_unique" field.
func (*SessionMutation) ResetNewUser ¶
func (m *SessionMutation) ResetNewUser()
ResetNewUser reset all changes of the "new_user" field.
func (*SessionMutation) ResetStartedAt ¶
func (m *SessionMutation) ResetStartedAt()
ResetStartedAt reset all changes of the "started_at" field.
func (*SessionMutation) SetDuration ¶
func (m *SessionMutation) SetDuration(i int)
SetDuration sets the duration field.
func (*SessionMutation) SetField ¶
func (m *SessionMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*SessionMutation) SetFinishedAt ¶
func (m *SessionMutation) SetFinishedAt(t time.Time)
SetFinishedAt sets the finished_at field.
func (*SessionMutation) SetID ¶
func (m *SessionMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that, this operation is accepted only on Session creation.
func (*SessionMutation) SetIsBounce ¶
func (m *SessionMutation) SetIsBounce(b bool)
SetIsBounce sets the is_bounce field.
func (*SessionMutation) SetIsFinished ¶
func (m *SessionMutation) SetIsFinished(b bool)
SetIsFinished sets the is_finished field.
func (*SessionMutation) SetIsUnique ¶
func (m *SessionMutation) SetIsUnique(b bool)
SetIsUnique sets the is_unique field.
func (*SessionMutation) SetNewUser ¶
func (m *SessionMutation) SetNewUser(b bool)
SetNewUser sets the new_user field.
func (*SessionMutation) SetStartedAt ¶
func (m *SessionMutation) SetStartedAt(t time.Time)
SetStartedAt sets the started_at field.
func (*SessionMutation) StartedAt ¶
func (m *SessionMutation) StartedAt() (r time.Time, exists bool)
StartedAt returns the started_at value in the mutation.
func (SessionMutation) Tx ¶
func (m SessionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SessionMutation) Type ¶
func (m *SessionMutation) Type() string
Type returns the node type of this mutation (Session).
type SessionQuery ¶
type SessionQuery struct {
// contains filtered or unexported fields
}
SessionQuery is the builder for querying Session entities.
func (*SessionQuery) All ¶
func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error)
All executes the query and returns a list of Sessions.
func (*SessionQuery) AllX ¶
func (sq *SessionQuery) AllX(ctx context.Context) []*Session
AllX is like All, but panics if an error occurs.
func (*SessionQuery) Clone ¶
func (sq *SessionQuery) Clone() *SessionQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SessionQuery) Count ¶
func (sq *SessionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SessionQuery) CountX ¶
func (sq *SessionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SessionQuery) Exist ¶
func (sq *SessionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SessionQuery) ExistX ¶
func (sq *SessionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SessionQuery) First ¶
func (sq *SessionQuery) First(ctx context.Context) (*Session, error)
First returns the first Session entity in the query. Returns *NotFoundError when no session was found.
func (*SessionQuery) FirstID ¶
FirstID returns the first Session id in the query. Returns *NotFoundError when no id was found.
func (*SessionQuery) FirstX ¶
func (sq *SessionQuery) FirstX(ctx context.Context) *Session
FirstX is like First, but panics if an error occurs.
func (*SessionQuery) FirstXID ¶
func (sq *SessionQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*SessionQuery) GroupBy ¶
func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
GroupBy 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 { NewUser bool `json:"new_user,omitempty"` Count int `json:"count,omitempty"` } client.Session.Query(). GroupBy(session.FieldNewUser). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SessionQuery) IDsX ¶
func (sq *SessionQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*SessionQuery) Limit ¶
func (sq *SessionQuery) Limit(limit int) *SessionQuery
Limit adds a limit step to the query.
func (*SessionQuery) Offset ¶
func (sq *SessionQuery) Offset(offset int) *SessionQuery
Offset adds an offset step to the query.
func (*SessionQuery) Only ¶
func (sq *SessionQuery) Only(ctx context.Context) (*Session, error)
Only returns the only Session entity in the query, returns an error if not exactly one entity was returned.
func (*SessionQuery) OnlyID ¶
OnlyID returns the only Session id in the query, returns an error if not exactly one id was returned.
func (*SessionQuery) OnlyIDX ¶
func (sq *SessionQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SessionQuery) OnlyX ¶
func (sq *SessionQuery) OnlyX(ctx context.Context) *Session
OnlyX is like Only, but panics if an error occurs.
func (*SessionQuery) Order ¶
func (sq *SessionQuery) Order(o ...OrderFunc) *SessionQuery
Order adds an order step to the query.
func (*SessionQuery) QueryEvents ¶
func (sq *SessionQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*SessionQuery) Select ¶
func (sq *SessionQuery) Select(field string, fields ...string) *SessionSelect
Select one or more fields from the given query.
Example:
var v []struct { NewUser bool `json:"new_user,omitempty"` } client.Session.Query(). Select(session.FieldNewUser). Scan(ctx, &v)
func (*SessionQuery) Where ¶
func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
Where adds a new predicate for the builder.
func (*SessionQuery) WithEvents ¶
func (sq *SessionQuery) WithEvents(opts ...func(*EventQuery)) *SessionQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type SessionSelect ¶
type SessionSelect struct {
// contains filtered or unexported fields
}
SessionSelect is the builder for select fields of Session entities.
func (*SessionSelect) Bool ¶
func (ss *SessionSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*SessionSelect) BoolX ¶
func (ss *SessionSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*SessionSelect) Bools ¶
func (ss *SessionSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*SessionSelect) BoolsX ¶
func (ss *SessionSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*SessionSelect) Float64 ¶
func (ss *SessionSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64X ¶
func (ss *SessionSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*SessionSelect) Float64s ¶
func (ss *SessionSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64sX ¶
func (ss *SessionSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*SessionSelect) Int ¶
func (ss *SessionSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*SessionSelect) IntX ¶
func (ss *SessionSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*SessionSelect) Ints ¶
func (ss *SessionSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*SessionSelect) IntsX ¶
func (ss *SessionSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*SessionSelect) Scan ¶
func (ss *SessionSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*SessionSelect) ScanX ¶
func (ss *SessionSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*SessionSelect) String ¶
func (ss *SessionSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*SessionSelect) StringX ¶
func (ss *SessionSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type SessionUpdate ¶
type SessionUpdate struct {
// contains filtered or unexported fields
}
SessionUpdate is the builder for updating Session entities.
func (*SessionUpdate) AddDuration ¶
func (su *SessionUpdate) AddDuration(i int) *SessionUpdate
AddDuration adds i to duration.
func (*SessionUpdate) AddEventIDs ¶
func (su *SessionUpdate) AddEventIDs(ids ...uuid.UUID) *SessionUpdate
AddEventIDs adds the events edge to Event by ids.
func (*SessionUpdate) AddEvents ¶
func (su *SessionUpdate) AddEvents(e ...*Event) *SessionUpdate
AddEvents adds the events edges to Event.
func (*SessionUpdate) ClearDuration ¶
func (su *SessionUpdate) ClearDuration() *SessionUpdate
ClearDuration clears the value of duration.
func (*SessionUpdate) ClearFinishedAt ¶
func (su *SessionUpdate) ClearFinishedAt() *SessionUpdate
ClearFinishedAt clears the value of finished_at.
func (*SessionUpdate) Exec ¶
func (su *SessionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionUpdate) ExecX ¶
func (su *SessionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdate) Mutation ¶
func (su *SessionUpdate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdate) RemoveEventIDs ¶
func (su *SessionUpdate) RemoveEventIDs(ids ...uuid.UUID) *SessionUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*SessionUpdate) RemoveEvents ¶
func (su *SessionUpdate) RemoveEvents(e ...*Event) *SessionUpdate
RemoveEvents removes events edges to Event.
func (*SessionUpdate) Save ¶
func (su *SessionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*SessionUpdate) SaveX ¶
func (su *SessionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdate) SetDuration ¶
func (su *SessionUpdate) SetDuration(i int) *SessionUpdate
SetDuration sets the duration field.
func (*SessionUpdate) SetFinishedAt ¶
func (su *SessionUpdate) SetFinishedAt(t time.Time) *SessionUpdate
SetFinishedAt sets the finished_at field.
func (*SessionUpdate) SetIsBounce ¶
func (su *SessionUpdate) SetIsBounce(b bool) *SessionUpdate
SetIsBounce sets the is_bounce field.
func (*SessionUpdate) SetIsFinished ¶
func (su *SessionUpdate) SetIsFinished(b bool) *SessionUpdate
SetIsFinished sets the is_finished field.
func (*SessionUpdate) SetIsUnique ¶
func (su *SessionUpdate) SetIsUnique(b bool) *SessionUpdate
SetIsUnique sets the is_unique field.
func (*SessionUpdate) SetNewUser ¶
func (su *SessionUpdate) SetNewUser(b bool) *SessionUpdate
SetNewUser sets the new_user field.
func (*SessionUpdate) SetNillableDuration ¶
func (su *SessionUpdate) SetNillableDuration(i *int) *SessionUpdate
SetNillableDuration sets the duration field if the given value is not nil.
func (*SessionUpdate) SetNillableFinishedAt ¶
func (su *SessionUpdate) SetNillableFinishedAt(t *time.Time) *SessionUpdate
SetNillableFinishedAt sets the finished_at field if the given value is not nil.
func (*SessionUpdate) SetStartedAt ¶
func (su *SessionUpdate) SetStartedAt(t time.Time) *SessionUpdate
SetStartedAt sets the started_at field.
func (*SessionUpdate) Where ¶
func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
Where adds a new predicate for the builder.
type SessionUpdateOne ¶
type SessionUpdateOne struct {
// contains filtered or unexported fields
}
SessionUpdateOne is the builder for updating a single Session entity.
func (*SessionUpdateOne) AddDuration ¶
func (suo *SessionUpdateOne) AddDuration(i int) *SessionUpdateOne
AddDuration adds i to duration.
func (*SessionUpdateOne) AddEventIDs ¶
func (suo *SessionUpdateOne) AddEventIDs(ids ...uuid.UUID) *SessionUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*SessionUpdateOne) AddEvents ¶
func (suo *SessionUpdateOne) AddEvents(e ...*Event) *SessionUpdateOne
AddEvents adds the events edges to Event.
func (*SessionUpdateOne) ClearDuration ¶
func (suo *SessionUpdateOne) ClearDuration() *SessionUpdateOne
ClearDuration clears the value of duration.
func (*SessionUpdateOne) ClearFinishedAt ¶
func (suo *SessionUpdateOne) ClearFinishedAt() *SessionUpdateOne
ClearFinishedAt clears the value of finished_at.
func (*SessionUpdateOne) Exec ¶
func (suo *SessionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SessionUpdateOne) ExecX ¶
func (suo *SessionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdateOne) Mutation ¶
func (suo *SessionUpdateOne) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdateOne) RemoveEventIDs ¶
func (suo *SessionUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *SessionUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*SessionUpdateOne) RemoveEvents ¶
func (suo *SessionUpdateOne) RemoveEvents(e ...*Event) *SessionUpdateOne
RemoveEvents removes events edges to Event.
func (*SessionUpdateOne) Save ¶
func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
Save executes the query and returns the updated entity.
func (*SessionUpdateOne) SaveX ¶
func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdateOne) SetDuration ¶
func (suo *SessionUpdateOne) SetDuration(i int) *SessionUpdateOne
SetDuration sets the duration field.
func (*SessionUpdateOne) SetFinishedAt ¶
func (suo *SessionUpdateOne) SetFinishedAt(t time.Time) *SessionUpdateOne
SetFinishedAt sets the finished_at field.
func (*SessionUpdateOne) SetIsBounce ¶
func (suo *SessionUpdateOne) SetIsBounce(b bool) *SessionUpdateOne
SetIsBounce sets the is_bounce field.
func (*SessionUpdateOne) SetIsFinished ¶
func (suo *SessionUpdateOne) SetIsFinished(b bool) *SessionUpdateOne
SetIsFinished sets the is_finished field.
func (*SessionUpdateOne) SetIsUnique ¶
func (suo *SessionUpdateOne) SetIsUnique(b bool) *SessionUpdateOne
SetIsUnique sets the is_unique field.
func (*SessionUpdateOne) SetNewUser ¶
func (suo *SessionUpdateOne) SetNewUser(b bool) *SessionUpdateOne
SetNewUser sets the new_user field.
func (*SessionUpdateOne) SetNillableDuration ¶
func (suo *SessionUpdateOne) SetNillableDuration(i *int) *SessionUpdateOne
SetNillableDuration sets the duration field if the given value is not nil.
func (*SessionUpdateOne) SetNillableFinishedAt ¶
func (suo *SessionUpdateOne) SetNillableFinishedAt(t *time.Time) *SessionUpdateOne
SetNillableFinishedAt sets the finished_at field if the given value is not nil.
func (*SessionUpdateOne) SetStartedAt ¶
func (suo *SessionUpdateOne) SetStartedAt(t time.Time) *SessionUpdateOne
SetStartedAt sets the started_at field.
type Timing ¶
type Timing struct { // ID of the ent. ID int `json:"id,omitempty"` // Category holds the value of the "category" field. Category string `json:"category,omitempty"` // TimingLabel holds the value of the "timing_label" field. TimingLabel string `json:"timing_label,omitempty"` // Unit holds the value of the "unit" field. Unit string `json:"unit,omitempty"` // Variable holds the value of the "variable" field. Variable string `json:"variable,omitempty"` // Value holds the value of the "value" field. Value float64 `json:"value,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TimingQuery when eager-loading is set. Edges TimingEdges `json:"edges"` // contains filtered or unexported fields }
Timing is the model entity for the Timing schema.
func (*Timing) QueryEvents ¶
func (t *Timing) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Timing.
func (*Timing) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Timing) Update ¶
func (t *Timing) Update() *TimingUpdateOne
Update returns a builder for updating this Timing. Note that, you need to call Timing.Unwrap() before calling this method, if this Timing was returned from a transaction, and the transaction was committed or rolled back.
type TimingClient ¶
type TimingClient struct {
// contains filtered or unexported fields
}
TimingClient is a client for the Timing schema.
func NewTimingClient ¶
func NewTimingClient(c config) *TimingClient
NewTimingClient returns a client for the Timing from the given config.
func (*TimingClient) Create ¶
func (c *TimingClient) Create() *TimingCreate
Create returns a create builder for Timing.
func (*TimingClient) CreateBulk ¶
func (c *TimingClient) CreateBulk(builders ...*TimingCreate) *TimingCreateBulk
BulkCreate returns a builder for creating a bulk of Timing entities.
func (*TimingClient) Delete ¶
func (c *TimingClient) Delete() *TimingDelete
Delete returns a delete builder for Timing.
func (*TimingClient) DeleteOne ¶
func (c *TimingClient) DeleteOne(t *Timing) *TimingDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*TimingClient) DeleteOneID ¶
func (c *TimingClient) DeleteOneID(id int) *TimingDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*TimingClient) GetX ¶
func (c *TimingClient) GetX(ctx context.Context, id int) *Timing
GetX is like Get, but panics if an error occurs.
func (*TimingClient) Query ¶
func (c *TimingClient) Query() *TimingQuery
Query returns a query builder for Timing.
func (*TimingClient) QueryEvents ¶
func (c *TimingClient) QueryEvents(t *Timing) *EventQuery
QueryEvents queries the events edge of a Timing.
func (*TimingClient) Update ¶
func (c *TimingClient) Update() *TimingUpdate
Update returns an update builder for Timing.
func (*TimingClient) UpdateOne ¶
func (c *TimingClient) UpdateOne(t *Timing) *TimingUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TimingClient) UpdateOneID ¶
func (c *TimingClient) UpdateOneID(id int) *TimingUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TimingClient) Use ¶
func (c *TimingClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `timing.Hooks(f(g(h())))`.
type TimingCreate ¶
type TimingCreate struct {
// contains filtered or unexported fields
}
TimingCreate is the builder for creating a Timing entity.
func (*TimingCreate) AddEventIDs ¶
func (tc *TimingCreate) AddEventIDs(ids ...uuid.UUID) *TimingCreate
AddEventIDs adds the events edge to Event by ids.
func (*TimingCreate) AddEvents ¶
func (tc *TimingCreate) AddEvents(e ...*Event) *TimingCreate
AddEvents adds the events edges to Event.
func (*TimingCreate) Mutation ¶
func (tc *TimingCreate) Mutation() *TimingMutation
Mutation returns the TimingMutation object of the builder.
func (*TimingCreate) Save ¶
func (tc *TimingCreate) Save(ctx context.Context) (*Timing, error)
Save creates the Timing in the database.
func (*TimingCreate) SaveX ¶
func (tc *TimingCreate) SaveX(ctx context.Context) *Timing
SaveX calls Save and panics if Save returns an error.
func (*TimingCreate) SetCategory ¶
func (tc *TimingCreate) SetCategory(s string) *TimingCreate
SetCategory sets the category field.
func (*TimingCreate) SetTimingLabel ¶
func (tc *TimingCreate) SetTimingLabel(s string) *TimingCreate
SetTimingLabel sets the timing_label field.
func (*TimingCreate) SetUnit ¶
func (tc *TimingCreate) SetUnit(s string) *TimingCreate
SetUnit sets the unit field.
func (*TimingCreate) SetValue ¶
func (tc *TimingCreate) SetValue(f float64) *TimingCreate
SetValue sets the value field.
func (*TimingCreate) SetVariable ¶
func (tc *TimingCreate) SetVariable(s string) *TimingCreate
SetVariable sets the variable field.
type TimingCreateBulk ¶
type TimingCreateBulk struct {
// contains filtered or unexported fields
}
TimingCreateBulk is the builder for creating a bulk of Timing entities.
type TimingDelete ¶
type TimingDelete struct {
// contains filtered or unexported fields
}
TimingDelete is the builder for deleting a Timing entity.
func (*TimingDelete) Exec ¶
func (td *TimingDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TimingDelete) ExecX ¶
func (td *TimingDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TimingDelete) Where ¶
func (td *TimingDelete) Where(ps ...predicate.Timing) *TimingDelete
Where adds a new predicate to the delete builder.
type TimingDeleteOne ¶
type TimingDeleteOne struct {
// contains filtered or unexported fields
}
TimingDeleteOne is the builder for deleting a single Timing entity.
func (*TimingDeleteOne) Exec ¶
func (tdo *TimingDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TimingDeleteOne) ExecX ¶
func (tdo *TimingDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TimingEdges ¶
type TimingEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
TimingEdges holds the relations/edges for other nodes in the graph.
func (TimingEdges) EventsOrErr ¶
func (e TimingEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type TimingGroupBy ¶
type TimingGroupBy struct {
// contains filtered or unexported fields
}
TimingGroupBy is the builder for group-by Timing entities.
func (*TimingGroupBy) Aggregate ¶
func (tgb *TimingGroupBy) Aggregate(fns ...AggregateFunc) *TimingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TimingGroupBy) Bool ¶
func (tgb *TimingGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) BoolX ¶
func (tgb *TimingGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*TimingGroupBy) Bools ¶
func (tgb *TimingGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) BoolsX ¶
func (tgb *TimingGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TimingGroupBy) Float64 ¶
func (tgb *TimingGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) Float64X ¶
func (tgb *TimingGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*TimingGroupBy) Float64s ¶
func (tgb *TimingGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) Float64sX ¶
func (tgb *TimingGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TimingGroupBy) Int ¶
func (tgb *TimingGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) IntX ¶
func (tgb *TimingGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*TimingGroupBy) Ints ¶
func (tgb *TimingGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) IntsX ¶
func (tgb *TimingGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TimingGroupBy) Scan ¶
func (tgb *TimingGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*TimingGroupBy) ScanX ¶
func (tgb *TimingGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*TimingGroupBy) String ¶
func (tgb *TimingGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*TimingGroupBy) StringX ¶
func (tgb *TimingGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type TimingMutation ¶
type TimingMutation struct {
// contains filtered or unexported fields
}
TimingMutation represents an operation that mutate the Timings nodes in the graph.
func (*TimingMutation) AddEventIDs ¶
func (m *TimingMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*TimingMutation) AddField ¶
func (m *TimingMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*TimingMutation) AddValue ¶
func (m *TimingMutation) AddValue(f float64)
AddValue adds f to value.
func (*TimingMutation) AddedEdges ¶
func (m *TimingMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TimingMutation) AddedField ¶
func (m *TimingMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*TimingMutation) AddedFields ¶
func (m *TimingMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*TimingMutation) AddedIDs ¶
func (m *TimingMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*TimingMutation) AddedValue ¶
func (m *TimingMutation) AddedValue() (r float64, exists bool)
AddedValue returns the value that was added to the value field in this mutation.
func (*TimingMutation) Category ¶
func (m *TimingMutation) Category() (r string, exists bool)
Category returns the category value in the mutation.
func (*TimingMutation) ClearEdge ¶
func (m *TimingMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*TimingMutation) ClearField ¶
func (m *TimingMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*TimingMutation) ClearedEdges ¶
func (m *TimingMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TimingMutation) ClearedFields ¶
func (m *TimingMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TimingMutation) Client ¶
func (m TimingMutation) 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 (*TimingMutation) EdgeCleared ¶
func (m *TimingMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*TimingMutation) EventsIDs ¶
func (m *TimingMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*TimingMutation) Field ¶
func (m *TimingMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*TimingMutation) FieldCleared ¶
func (m *TimingMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*TimingMutation) Fields ¶
func (m *TimingMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*TimingMutation) ID ¶
func (m *TimingMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*TimingMutation) OldCategory ¶
func (m *TimingMutation) OldCategory(ctx context.Context) (v string, err error)
OldCategory returns the old category value of the Timing. If the Timing 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 database query fails.
func (*TimingMutation) 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 was failed.
func (*TimingMutation) OldTimingLabel ¶
func (m *TimingMutation) OldTimingLabel(ctx context.Context) (v string, err error)
OldTimingLabel returns the old timing_label value of the Timing. If the Timing 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 database query fails.
func (*TimingMutation) OldUnit ¶
func (m *TimingMutation) OldUnit(ctx context.Context) (v string, err error)
OldUnit returns the old unit value of the Timing. If the Timing 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 database query fails.
func (*TimingMutation) OldValue ¶
func (m *TimingMutation) OldValue(ctx context.Context) (v float64, err error)
OldValue returns the old value value of the Timing. If the Timing 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 database query fails.
func (*TimingMutation) OldVariable ¶
func (m *TimingMutation) OldVariable(ctx context.Context) (v string, err error)
OldVariable returns the old variable value of the Timing. If the Timing 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 database query fails.
func (*TimingMutation) RemoveEventIDs ¶
func (m *TimingMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*TimingMutation) RemovedEdges ¶
func (m *TimingMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TimingMutation) RemovedEventsIDs ¶
func (m *TimingMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*TimingMutation) RemovedIDs ¶
func (m *TimingMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*TimingMutation) ResetCategory ¶
func (m *TimingMutation) ResetCategory()
ResetCategory reset all changes of the "category" field.
func (*TimingMutation) ResetEdge ¶
func (m *TimingMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*TimingMutation) ResetEvents ¶
func (m *TimingMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*TimingMutation) ResetField ¶
func (m *TimingMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*TimingMutation) ResetTimingLabel ¶
func (m *TimingMutation) ResetTimingLabel()
ResetTimingLabel reset all changes of the "timing_label" field.
func (*TimingMutation) ResetUnit ¶
func (m *TimingMutation) ResetUnit()
ResetUnit reset all changes of the "unit" field.
func (*TimingMutation) ResetValue ¶
func (m *TimingMutation) ResetValue()
ResetValue reset all changes of the "value" field.
func (*TimingMutation) ResetVariable ¶
func (m *TimingMutation) ResetVariable()
ResetVariable reset all changes of the "variable" field.
func (*TimingMutation) SetCategory ¶
func (m *TimingMutation) SetCategory(s string)
SetCategory sets the category field.
func (*TimingMutation) SetField ¶
func (m *TimingMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*TimingMutation) SetTimingLabel ¶
func (m *TimingMutation) SetTimingLabel(s string)
SetTimingLabel sets the timing_label field.
func (*TimingMutation) SetUnit ¶
func (m *TimingMutation) SetUnit(s string)
SetUnit sets the unit field.
func (*TimingMutation) SetValue ¶
func (m *TimingMutation) SetValue(f float64)
SetValue sets the value field.
func (*TimingMutation) SetVariable ¶
func (m *TimingMutation) SetVariable(s string)
SetVariable sets the variable field.
func (*TimingMutation) TimingLabel ¶
func (m *TimingMutation) TimingLabel() (r string, exists bool)
TimingLabel returns the timing_label value in the mutation.
func (TimingMutation) Tx ¶
func (m TimingMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TimingMutation) Type ¶
func (m *TimingMutation) Type() string
Type returns the node type of this mutation (Timing).
func (*TimingMutation) Unit ¶
func (m *TimingMutation) Unit() (r string, exists bool)
Unit returns the unit value in the mutation.
func (*TimingMutation) Value ¶
func (m *TimingMutation) Value() (r float64, exists bool)
Value returns the value value in the mutation.
func (*TimingMutation) Variable ¶
func (m *TimingMutation) Variable() (r string, exists bool)
Variable returns the variable value in the mutation.
type TimingQuery ¶
type TimingQuery struct {
// contains filtered or unexported fields
}
TimingQuery is the builder for querying Timing entities.
func (*TimingQuery) All ¶
func (tq *TimingQuery) All(ctx context.Context) ([]*Timing, error)
All executes the query and returns a list of Timings.
func (*TimingQuery) AllX ¶
func (tq *TimingQuery) AllX(ctx context.Context) []*Timing
AllX is like All, but panics if an error occurs.
func (*TimingQuery) Clone ¶
func (tq *TimingQuery) Clone() *TimingQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TimingQuery) Count ¶
func (tq *TimingQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*TimingQuery) CountX ¶
func (tq *TimingQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*TimingQuery) Exist ¶
func (tq *TimingQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TimingQuery) ExistX ¶
func (tq *TimingQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TimingQuery) First ¶
func (tq *TimingQuery) First(ctx context.Context) (*Timing, error)
First returns the first Timing entity in the query. Returns *NotFoundError when no timing was found.
func (*TimingQuery) FirstID ¶
func (tq *TimingQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Timing id in the query. Returns *NotFoundError when no id was found.
func (*TimingQuery) FirstX ¶
func (tq *TimingQuery) FirstX(ctx context.Context) *Timing
FirstX is like First, but panics if an error occurs.
func (*TimingQuery) FirstXID ¶
func (tq *TimingQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*TimingQuery) GroupBy ¶
func (tq *TimingQuery) GroupBy(field string, fields ...string) *TimingGroupBy
GroupBy 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 { Category string `json:"category,omitempty"` Count int `json:"count,omitempty"` } client.Timing.Query(). GroupBy(timing.FieldCategory). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TimingQuery) IDs ¶
func (tq *TimingQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Timing ids.
func (*TimingQuery) IDsX ¶
func (tq *TimingQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*TimingQuery) Limit ¶
func (tq *TimingQuery) Limit(limit int) *TimingQuery
Limit adds a limit step to the query.
func (*TimingQuery) Offset ¶
func (tq *TimingQuery) Offset(offset int) *TimingQuery
Offset adds an offset step to the query.
func (*TimingQuery) Only ¶
func (tq *TimingQuery) Only(ctx context.Context) (*Timing, error)
Only returns the only Timing entity in the query, returns an error if not exactly one entity was returned.
func (*TimingQuery) OnlyID ¶
func (tq *TimingQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Timing id in the query, returns an error if not exactly one id was returned.
func (*TimingQuery) OnlyIDX ¶
func (tq *TimingQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*TimingQuery) OnlyX ¶
func (tq *TimingQuery) OnlyX(ctx context.Context) *Timing
OnlyX is like Only, but panics if an error occurs.
func (*TimingQuery) Order ¶
func (tq *TimingQuery) Order(o ...OrderFunc) *TimingQuery
Order adds an order step to the query.
func (*TimingQuery) QueryEvents ¶
func (tq *TimingQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*TimingQuery) Select ¶
func (tq *TimingQuery) Select(field string, fields ...string) *TimingSelect
Select one or more fields from the given query.
Example:
var v []struct { Category string `json:"category,omitempty"` } client.Timing.Query(). Select(timing.FieldCategory). Scan(ctx, &v)
func (*TimingQuery) Where ¶
func (tq *TimingQuery) Where(ps ...predicate.Timing) *TimingQuery
Where adds a new predicate for the builder.
func (*TimingQuery) WithEvents ¶
func (tq *TimingQuery) WithEvents(opts ...func(*EventQuery)) *TimingQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type TimingSelect ¶
type TimingSelect struct {
// contains filtered or unexported fields
}
TimingSelect is the builder for select fields of Timing entities.
func (*TimingSelect) Bool ¶
func (ts *TimingSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*TimingSelect) BoolX ¶
func (ts *TimingSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*TimingSelect) Bools ¶
func (ts *TimingSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*TimingSelect) BoolsX ¶
func (ts *TimingSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TimingSelect) Float64 ¶
func (ts *TimingSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*TimingSelect) Float64X ¶
func (ts *TimingSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*TimingSelect) Float64s ¶
func (ts *TimingSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*TimingSelect) Float64sX ¶
func (ts *TimingSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TimingSelect) Int ¶
func (ts *TimingSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*TimingSelect) IntX ¶
func (ts *TimingSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*TimingSelect) Ints ¶
func (ts *TimingSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*TimingSelect) IntsX ¶
func (ts *TimingSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TimingSelect) Scan ¶
func (ts *TimingSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*TimingSelect) ScanX ¶
func (ts *TimingSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*TimingSelect) String ¶
func (ts *TimingSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*TimingSelect) StringX ¶
func (ts *TimingSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type TimingUpdate ¶
type TimingUpdate struct {
// contains filtered or unexported fields
}
TimingUpdate is the builder for updating Timing entities.
func (*TimingUpdate) AddEventIDs ¶
func (tu *TimingUpdate) AddEventIDs(ids ...uuid.UUID) *TimingUpdate
AddEventIDs adds the events edge to Event by ids.
func (*TimingUpdate) AddEvents ¶
func (tu *TimingUpdate) AddEvents(e ...*Event) *TimingUpdate
AddEvents adds the events edges to Event.
func (*TimingUpdate) AddValue ¶
func (tu *TimingUpdate) AddValue(f float64) *TimingUpdate
AddValue adds f to value.
func (*TimingUpdate) Exec ¶
func (tu *TimingUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TimingUpdate) ExecX ¶
func (tu *TimingUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TimingUpdate) Mutation ¶
func (tu *TimingUpdate) Mutation() *TimingMutation
Mutation returns the TimingMutation object of the builder.
func (*TimingUpdate) RemoveEventIDs ¶
func (tu *TimingUpdate) RemoveEventIDs(ids ...uuid.UUID) *TimingUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*TimingUpdate) RemoveEvents ¶
func (tu *TimingUpdate) RemoveEvents(e ...*Event) *TimingUpdate
RemoveEvents removes events edges to Event.
func (*TimingUpdate) Save ¶
func (tu *TimingUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*TimingUpdate) SaveX ¶
func (tu *TimingUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TimingUpdate) SetCategory ¶
func (tu *TimingUpdate) SetCategory(s string) *TimingUpdate
SetCategory sets the category field.
func (*TimingUpdate) SetTimingLabel ¶
func (tu *TimingUpdate) SetTimingLabel(s string) *TimingUpdate
SetTimingLabel sets the timing_label field.
func (*TimingUpdate) SetUnit ¶
func (tu *TimingUpdate) SetUnit(s string) *TimingUpdate
SetUnit sets the unit field.
func (*TimingUpdate) SetValue ¶
func (tu *TimingUpdate) SetValue(f float64) *TimingUpdate
SetValue sets the value field.
func (*TimingUpdate) SetVariable ¶
func (tu *TimingUpdate) SetVariable(s string) *TimingUpdate
SetVariable sets the variable field.
func (*TimingUpdate) Where ¶
func (tu *TimingUpdate) Where(ps ...predicate.Timing) *TimingUpdate
Where adds a new predicate for the builder.
type TimingUpdateOne ¶
type TimingUpdateOne struct {
// contains filtered or unexported fields
}
TimingUpdateOne is the builder for updating a single Timing entity.
func (*TimingUpdateOne) AddEventIDs ¶
func (tuo *TimingUpdateOne) AddEventIDs(ids ...uuid.UUID) *TimingUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*TimingUpdateOne) AddEvents ¶
func (tuo *TimingUpdateOne) AddEvents(e ...*Event) *TimingUpdateOne
AddEvents adds the events edges to Event.
func (*TimingUpdateOne) AddValue ¶
func (tuo *TimingUpdateOne) AddValue(f float64) *TimingUpdateOne
AddValue adds f to value.
func (*TimingUpdateOne) Exec ¶
func (tuo *TimingUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TimingUpdateOne) ExecX ¶
func (tuo *TimingUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TimingUpdateOne) Mutation ¶
func (tuo *TimingUpdateOne) Mutation() *TimingMutation
Mutation returns the TimingMutation object of the builder.
func (*TimingUpdateOne) RemoveEventIDs ¶
func (tuo *TimingUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *TimingUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*TimingUpdateOne) RemoveEvents ¶
func (tuo *TimingUpdateOne) RemoveEvents(e ...*Event) *TimingUpdateOne
RemoveEvents removes events edges to Event.
func (*TimingUpdateOne) Save ¶
func (tuo *TimingUpdateOne) Save(ctx context.Context) (*Timing, error)
Save executes the query and returns the updated entity.
func (*TimingUpdateOne) SaveX ¶
func (tuo *TimingUpdateOne) SaveX(ctx context.Context) *Timing
SaveX is like Save, but panics if an error occurs.
func (*TimingUpdateOne) SetCategory ¶
func (tuo *TimingUpdateOne) SetCategory(s string) *TimingUpdateOne
SetCategory sets the category field.
func (*TimingUpdateOne) SetTimingLabel ¶
func (tuo *TimingUpdateOne) SetTimingLabel(s string) *TimingUpdateOne
SetTimingLabel sets the timing_label field.
func (*TimingUpdateOne) SetUnit ¶
func (tuo *TimingUpdateOne) SetUnit(s string) *TimingUpdateOne
SetUnit sets the unit field.
func (*TimingUpdateOne) SetValue ¶
func (tuo *TimingUpdateOne) SetValue(f float64) *TimingUpdateOne
SetValue sets the value field.
func (*TimingUpdateOne) SetVariable ¶
func (tuo *TimingUpdateOne) SetVariable(s string) *TimingUpdateOne
SetVariable sets the variable field.
type Tx ¶
type Tx struct { // Action is the client for interacting with the Action builders. Action *ActionClient // Alias is the client for interacting with the Alias builders. Alias *AliasClient // App is the client for interacting with the App builders. App *AppClient // Browser is the client for interacting with the Browser builders. Browser *BrowserClient // Campaign is the client for interacting with the Campaign builders. Campaign *CampaignClient // Connectivity is the client for interacting with the Connectivity builders. Connectivity *ConnectivityClient // Device is the client for interacting with the Device builders. Device *DeviceClient // Event is the client for interacting with the Event builders. Event *EventClient // Extra is the client for interacting with the Extra builders. Extra *ExtraClient // Group is the client for interacting with the Group builders. Group *GroupClient // Library is the client for interacting with the Library builders. Library *LibraryClient // Location is the client for interacting with the Location builders. Location *LocationClient // Network is the client for interacting with the Network builders. Network *NetworkClient // OSContext is the client for interacting with the OSContext builders. OSContext *OSContextClient // Page is the client for interacting with the Page builders. Page *PageClient // Referrer is the client for interacting with the Referrer builders. Referrer *ReferrerClient // Screen is the client for interacting with the Screen builders. Screen *ScreenClient // Session is the client for interacting with the Session builders. Session *SessionClient // Timing is the client for interacting with the Timing builders. Timing *TimingClient // User is the client for interacting with the User builders. User *UserClient // Viewport is the client for interacting with the Viewport builders. Viewport *ViewportClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns the Tx stored in 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 string `json:"id,omitempty"` // IsAnonymous holds the value of the "is_anonymous" field. IsAnonymous bool `json:"is_anonymous,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // FirstName holds the value of the "first_name" field. FirstName string `json:"first_name,omitempty"` // LastName holds the value of the "last_name" field. LastName string `json:"last_name,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // Username holds the value of the "username" field. Username string `json:"username,omitempty"` // Age holds the value of the "age" field. Age int `json:"age,omitempty"` // Birthday holds the value of the "birthday" field. Birthday *time.Time `json:"birthday,omitempty"` // Gender holds the value of the "gender" field. Gender user.Gender `json:"gender,omitempty"` // Phone holds the value of the "phone" field. Phone string `json:"phone,omitempty"` // Website holds the value of the "website" field. Website string `json:"website,omitempty"` // Extra holds the value of the "extra" field. Extra map[string]interface{} `json:"extra,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserQuery when eager-loading is set. Edges UserEdges `json:"edges"` // contains filtered or unexported fields }
User is the model entity for the User schema.
func (*User) QueryAliases ¶
func (u *User) QueryAliases() *AliasQuery
QueryAliases queries the aliases edge of the User.
func (*User) QueryEvents ¶
func (u *User) QueryEvents() *EventQuery
QueryEvents queries the events edge of the User.
func (*User) QueryGroups ¶
func (u *User) QueryGroups() *GroupQuery
QueryGroups queries the groups edge of the User.
func (*User) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*User) Update ¶
func (u *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 create builder for User.
func (*UserClient) CreateBulk ¶
func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
BulkCreate 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(u *User) *UserDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*UserClient) DeleteOneID ¶
func (c *UserClient) DeleteOneID(id string) *UserDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*UserClient) GetX ¶
func (c *UserClient) GetX(ctx context.Context, id string) *User
GetX is like Get, but panics if an error occurs.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) QueryAliases ¶
func (c *UserClient) QueryAliases(u *User) *AliasQuery
QueryAliases queries the aliases edge of a User.
func (*UserClient) QueryEvents ¶
func (c *UserClient) QueryEvents(u *User) *EventQuery
QueryEvents queries the events edge of a User.
func (*UserClient) QueryGroups ¶
func (c *UserClient) QueryGroups(u *User) *GroupQuery
QueryGroups queries the groups edge of a User.
func (*UserClient) Update ¶
func (c *UserClient) Update() *UserUpdate
Update returns an update builder for User.
func (*UserClient) UpdateOne ¶
func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserClient) UpdateOneID ¶
func (c *UserClient) UpdateOneID(id string) *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) AddAliasIDs ¶
func (uc *UserCreate) AddAliasIDs(ids ...int) *UserCreate
AddAliasIDs adds the aliases edge to Alias by ids.
func (*UserCreate) AddAliases ¶
func (uc *UserCreate) AddAliases(a ...*Alias) *UserCreate
AddAliases adds the aliases edges to Alias.
func (*UserCreate) AddEventIDs ¶
func (uc *UserCreate) AddEventIDs(ids ...uuid.UUID) *UserCreate
AddEventIDs adds the events edge to Event by ids.
func (*UserCreate) AddEvents ¶
func (uc *UserCreate) AddEvents(e ...*Event) *UserCreate
AddEvents adds the events edges to Event.
func (*UserCreate) AddGroupIDs ¶
func (uc *UserCreate) AddGroupIDs(ids ...int) *UserCreate
AddGroupIDs adds the groups edge to Group by ids.
func (*UserCreate) AddGroups ¶
func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate
AddGroups adds the groups edges to Group.
func (*UserCreate) Mutation ¶
func (uc *UserCreate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserCreate) Save ¶
func (uc *UserCreate) Save(ctx context.Context) (*User, error)
Save creates the User in the database.
func (*UserCreate) SaveX ¶
func (uc *UserCreate) SaveX(ctx context.Context) *User
SaveX calls Save and panics if Save returns an error.
func (*UserCreate) SetAge ¶
func (uc *UserCreate) SetAge(i int) *UserCreate
SetAge sets the age field.
func (*UserCreate) SetBirthday ¶
func (uc *UserCreate) SetBirthday(t time.Time) *UserCreate
SetBirthday sets the birthday field.
func (*UserCreate) SetEmail ¶
func (uc *UserCreate) SetEmail(s string) *UserCreate
SetEmail sets the email field.
func (*UserCreate) SetExtra ¶
func (uc *UserCreate) SetExtra(m map[string]interface{}) *UserCreate
SetExtra sets the extra field.
func (*UserCreate) SetFirstName ¶
func (uc *UserCreate) SetFirstName(s string) *UserCreate
SetFirstName sets the first_name field.
func (*UserCreate) SetGender ¶
func (uc *UserCreate) SetGender(u user.Gender) *UserCreate
SetGender sets the gender field.
func (*UserCreate) SetID ¶
func (uc *UserCreate) SetID(s string) *UserCreate
SetID sets the id field.
func (*UserCreate) SetIsAnonymous ¶
func (uc *UserCreate) SetIsAnonymous(b bool) *UserCreate
SetIsAnonymous sets the is_anonymous field.
func (*UserCreate) SetLastName ¶
func (uc *UserCreate) SetLastName(s string) *UserCreate
SetLastName sets the last_name field.
func (*UserCreate) SetName ¶
func (uc *UserCreate) SetName(s string) *UserCreate
SetName sets the name field.
func (*UserCreate) SetNillableAge ¶
func (uc *UserCreate) SetNillableAge(i *int) *UserCreate
SetNillableAge sets the age field if the given value is not nil.
func (*UserCreate) SetNillableBirthday ¶
func (uc *UserCreate) SetNillableBirthday(t *time.Time) *UserCreate
SetNillableBirthday sets the birthday field if the given value is not nil.
func (*UserCreate) SetNillableEmail ¶
func (uc *UserCreate) SetNillableEmail(s *string) *UserCreate
SetNillableEmail sets the email field if the given value is not nil.
func (*UserCreate) SetNillableFirstName ¶
func (uc *UserCreate) SetNillableFirstName(s *string) *UserCreate
SetNillableFirstName sets the first_name field if the given value is not nil.
func (*UserCreate) SetNillableGender ¶
func (uc *UserCreate) SetNillableGender(u *user.Gender) *UserCreate
SetNillableGender sets the gender field if the given value is not nil.
func (*UserCreate) SetNillableLastName ¶
func (uc *UserCreate) SetNillableLastName(s *string) *UserCreate
SetNillableLastName sets the last_name field if the given value is not nil.
func (*UserCreate) SetNillableName ¶
func (uc *UserCreate) SetNillableName(s *string) *UserCreate
SetNillableName sets the name field if the given value is not nil.
func (*UserCreate) SetNillablePhone ¶
func (uc *UserCreate) SetNillablePhone(s *string) *UserCreate
SetNillablePhone sets the phone field if the given value is not nil.
func (*UserCreate) SetNillableTitle ¶
func (uc *UserCreate) SetNillableTitle(s *string) *UserCreate
SetNillableTitle sets the title field if the given value is not nil.
func (*UserCreate) SetNillableUsername ¶
func (uc *UserCreate) SetNillableUsername(s *string) *UserCreate
SetNillableUsername sets the username field if the given value is not nil.
func (*UserCreate) SetNillableWebsite ¶
func (uc *UserCreate) SetNillableWebsite(s *string) *UserCreate
SetNillableWebsite sets the website field if the given value is not nil.
func (*UserCreate) SetPhone ¶
func (uc *UserCreate) SetPhone(s string) *UserCreate
SetPhone sets the phone field.
func (*UserCreate) SetTitle ¶
func (uc *UserCreate) SetTitle(s string) *UserCreate
SetTitle sets the title field.
func (*UserCreate) SetUsername ¶
func (uc *UserCreate) SetUsername(s string) *UserCreate
SetUsername sets the username field.
func (*UserCreate) SetWebsite ¶
func (uc *UserCreate) SetWebsite(s string) *UserCreate
SetWebsite sets the website field.
type UserCreateBulk ¶
type UserCreateBulk struct {
// contains filtered or unexported fields
}
UserCreateBulk is the builder for creating a bulk of User entities.
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
UserDelete is the builder for deleting a User entity.
func (*UserDelete) Exec ¶
func (ud *UserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserDelete) ExecX ¶
func (ud *UserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserDelete) Where ¶
func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete
Where adds a new predicate to the delete 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 (udo *UserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserDeleteOne) ExecX ¶
func (udo *UserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type UserEdges ¶
type UserEdges struct { // Aliases holds the value of the aliases edge. Aliases []*Alias // Events holds the value of the events edge. Events []*Event // Groups holds the value of the groups edge. Groups []*Group // contains filtered or unexported fields }
UserEdges holds the relations/edges for other nodes in the graph.
func (UserEdges) AliasesOrErr ¶
AliasesOrErr returns the Aliases value or an error if the edge was not loaded in eager-loading.
func (UserEdges) EventsOrErr ¶
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
func (UserEdges) GroupsOrErr ¶
GroupsOrErr returns the Groups value or an error if the edge was not loaded in eager-loading.
type UserGroupBy ¶
type UserGroupBy struct {
// contains filtered or unexported fields
}
UserGroupBy is the builder for group-by User entities.
func (*UserGroupBy) Aggregate ¶
func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserGroupBy) Bool ¶
func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) BoolX ¶
func (ugb *UserGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*UserGroupBy) Bools ¶
func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) BoolsX ¶
func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*UserGroupBy) Float64 ¶
func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) Float64X ¶
func (ugb *UserGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*UserGroupBy) Float64s ¶
func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) Float64sX ¶
func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*UserGroupBy) Int ¶
func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) IntX ¶
func (ugb *UserGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*UserGroupBy) Ints ¶
func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) IntsX ¶
func (ugb *UserGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*UserGroupBy) Scan ¶
func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*UserGroupBy) ScanX ¶
func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*UserGroupBy) String ¶
func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*UserGroupBy) StringX ¶
func (ugb *UserGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type UserMutation ¶
type UserMutation struct {
// contains filtered or unexported fields
}
UserMutation represents an operation that mutate the Users nodes in the graph.
func (*UserMutation) AddAliasIDs ¶
func (m *UserMutation) AddAliasIDs(ids ...int)
AddAliasIDs adds the aliases edge to Alias by ids.
func (*UserMutation) AddEventIDs ¶
func (m *UserMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*UserMutation) AddField ¶
func (m *UserMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*UserMutation) AddGroupIDs ¶
func (m *UserMutation) AddGroupIDs(ids ...int)
AddGroupIDs adds the groups edge to Group by ids.
func (*UserMutation) AddedAge ¶
func (m *UserMutation) AddedAge() (r int, exists bool)
AddedAge returns the value that was added to the age field in this mutation.
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 in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*UserMutation) AddedFields ¶
func (m *UserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or 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.
func (*UserMutation) Age ¶
func (m *UserMutation) Age() (r int, exists bool)
Age returns the age value in the mutation.
func (*UserMutation) AgeCleared ¶
func (m *UserMutation) AgeCleared() bool
AgeCleared returns if the field age was cleared in this mutation.
func (*UserMutation) AliasesIDs ¶
func (m *UserMutation) AliasesIDs() (ids []int)
AliasesIDs returns the aliases ids in the mutation.
func (*UserMutation) Birthday ¶
func (m *UserMutation) Birthday() (r time.Time, exists bool)
Birthday returns the birthday value in the mutation.
func (*UserMutation) BirthdayCleared ¶
func (m *UserMutation) BirthdayCleared() bool
BirthdayCleared returns if the field birthday was cleared in this mutation.
func (*UserMutation) ClearBirthday ¶
func (m *UserMutation) ClearBirthday()
ClearBirthday clears the value of birthday.
func (*UserMutation) ClearEdge ¶
func (m *UserMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*UserMutation) ClearEmail ¶
func (m *UserMutation) ClearEmail()
ClearEmail clears the value of email.
func (*UserMutation) ClearExtra ¶
func (m *UserMutation) ClearExtra()
ClearExtra clears the value of extra.
func (*UserMutation) ClearField ¶
func (m *UserMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ClearFirstName ¶
func (m *UserMutation) ClearFirstName()
ClearFirstName clears the value of first_name.
func (*UserMutation) ClearGender ¶
func (m *UserMutation) ClearGender()
ClearGender clears the value of gender.
func (*UserMutation) ClearLastName ¶
func (m *UserMutation) ClearLastName()
ClearLastName clears the value of last_name.
func (*UserMutation) ClearName ¶
func (m *UserMutation) ClearName()
ClearName clears the value of name.
func (*UserMutation) ClearPhone ¶
func (m *UserMutation) ClearPhone()
ClearPhone clears the value of phone.
func (*UserMutation) ClearTitle ¶
func (m *UserMutation) ClearTitle()
ClearTitle clears the value of title.
func (*UserMutation) ClearUsername ¶
func (m *UserMutation) ClearUsername()
ClearUsername clears the value of username.
func (*UserMutation) ClearWebsite ¶
func (m *UserMutation) ClearWebsite()
ClearWebsite clears the value of website.
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 indicates if this edge was cleared in this mutation.
func (*UserMutation) Email ¶
func (m *UserMutation) Email() (r string, exists bool)
Email returns the email value in the mutation.
func (*UserMutation) EmailCleared ¶
func (m *UserMutation) EmailCleared() bool
EmailCleared returns if the field email was cleared in this mutation.
func (*UserMutation) EventsIDs ¶
func (m *UserMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*UserMutation) Extra ¶
func (m *UserMutation) Extra() (r map[string]interface{}, exists bool)
Extra returns the extra value in the mutation.
func (*UserMutation) ExtraCleared ¶
func (m *UserMutation) ExtraCleared() bool
ExtraCleared returns if the field extra 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 value indicates that this field was not set, or was not define in the schema.
func (*UserMutation) FieldCleared ¶
func (m *UserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field 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 in/decremented, call AddedFields().
func (*UserMutation) FirstName ¶
func (m *UserMutation) FirstName() (r string, exists bool)
FirstName returns the first_name value in the mutation.
func (*UserMutation) FirstNameCleared ¶
func (m *UserMutation) FirstNameCleared() bool
FirstNameCleared returns if the field first_name was cleared in this mutation.
func (*UserMutation) Gender ¶
func (m *UserMutation) Gender() (r user.Gender, exists bool)
Gender returns the gender value in the mutation.
func (*UserMutation) GenderCleared ¶
func (m *UserMutation) GenderCleared() bool
GenderCleared returns if the field gender was cleared in this mutation.
func (*UserMutation) GroupsIDs ¶
func (m *UserMutation) GroupsIDs() (ids []int)
GroupsIDs returns the groups ids in the mutation.
func (*UserMutation) ID ¶
func (m *UserMutation) ID() (id string, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*UserMutation) IsAnonymous ¶
func (m *UserMutation) IsAnonymous() (r bool, exists bool)
IsAnonymous returns the is_anonymous value in the mutation.
func (*UserMutation) LastName ¶
func (m *UserMutation) LastName() (r string, exists bool)
LastName returns the last_name value in the mutation.
func (*UserMutation) LastNameCleared ¶
func (m *UserMutation) LastNameCleared() bool
LastNameCleared returns if the field last_name was cleared in this mutation.
func (*UserMutation) Name ¶
func (m *UserMutation) Name() (r string, exists bool)
Name returns the name value in the mutation.
func (*UserMutation) NameCleared ¶
func (m *UserMutation) NameCleared() bool
NameCleared returns if the field name was cleared in this mutation.
func (*UserMutation) OldAge ¶
func (m *UserMutation) OldAge(ctx context.Context) (v int, err error)
OldAge returns the old age value of the User. If the User 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 database query fails.
func (*UserMutation) OldBirthday ¶
OldBirthday returns the old birthday value of the User. If the User 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 database query fails.
func (*UserMutation) OldEmail ¶
func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old email value of the User. If the User 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 database query fails.
func (*UserMutation) OldExtra ¶
func (m *UserMutation) OldExtra(ctx context.Context) (v map[string]interface{}, err error)
OldExtra returns the old extra value of the User. If the User 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 database query fails.
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 was failed.
func (*UserMutation) OldFirstName ¶
func (m *UserMutation) OldFirstName(ctx context.Context) (v string, err error)
OldFirstName returns the old first_name value of the User. If the User 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 database query fails.
func (*UserMutation) OldGender ¶
OldGender returns the old gender value of the User. If the User 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 database query fails.
func (*UserMutation) OldIsAnonymous ¶
func (m *UserMutation) OldIsAnonymous(ctx context.Context) (v bool, err error)
OldIsAnonymous returns the old is_anonymous value of the User. If the User 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 database query fails.
func (*UserMutation) OldLastName ¶
func (m *UserMutation) OldLastName(ctx context.Context) (v string, err error)
OldLastName returns the old last_name value of the User. If the User 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 database query fails.
func (*UserMutation) OldName ¶
func (m *UserMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old name value of the User. If the User 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 database query fails.
func (*UserMutation) OldPhone ¶
func (m *UserMutation) OldPhone(ctx context.Context) (v string, err error)
OldPhone returns the old phone value of the User. If the User 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 database query fails.
func (*UserMutation) OldTitle ¶
func (m *UserMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old title value of the User. If the User 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 database query fails.
func (*UserMutation) OldUsername ¶
func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old username value of the User. If the User 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 database query fails.
func (*UserMutation) OldWebsite ¶
func (m *UserMutation) OldWebsite(ctx context.Context) (v string, err error)
OldWebsite returns the old website value of the User. If the User 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 database query fails.
func (*UserMutation) Phone ¶
func (m *UserMutation) Phone() (r string, exists bool)
Phone returns the phone value in the mutation.
func (*UserMutation) PhoneCleared ¶
func (m *UserMutation) PhoneCleared() bool
PhoneCleared returns if the field phone was cleared in this mutation.
func (*UserMutation) RemoveAliasIDs ¶
func (m *UserMutation) RemoveAliasIDs(ids ...int)
RemoveAliasIDs removes the aliases edge to Alias by ids.
func (*UserMutation) RemoveEventIDs ¶
func (m *UserMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*UserMutation) RemoveGroupIDs ¶
func (m *UserMutation) RemoveGroupIDs(ids ...int)
RemoveGroupIDs removes the groups edge to Group by ids.
func (*UserMutation) RemovedAliasesIDs ¶
func (m *UserMutation) RemovedAliasesIDs() (ids []int)
RemovedAliases returns the removed ids of aliases.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedEventsIDs ¶
func (m *UserMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*UserMutation) RemovedGroupsIDs ¶
func (m *UserMutation) RemovedGroupsIDs() (ids []int)
RemovedGroups returns the removed ids of groups.
func (*UserMutation) RemovedIDs ¶
func (m *UserMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*UserMutation) ResetAge ¶
func (m *UserMutation) ResetAge()
ResetAge reset all changes of the "age" field.
func (*UserMutation) ResetAliases ¶
func (m *UserMutation) ResetAliases()
ResetAliases reset all changes of the "aliases" edge.
func (*UserMutation) ResetBirthday ¶
func (m *UserMutation) ResetBirthday()
ResetBirthday reset all changes of the "birthday" field.
func (*UserMutation) ResetEdge ¶
func (m *UserMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*UserMutation) ResetEmail ¶
func (m *UserMutation) ResetEmail()
ResetEmail reset all changes of the "email" field.
func (*UserMutation) ResetEvents ¶
func (m *UserMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*UserMutation) ResetExtra ¶
func (m *UserMutation) ResetExtra()
ResetExtra reset all changes of the "extra" field.
func (*UserMutation) ResetField ¶
func (m *UserMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ResetFirstName ¶
func (m *UserMutation) ResetFirstName()
ResetFirstName reset all changes of the "first_name" field.
func (*UserMutation) ResetGender ¶
func (m *UserMutation) ResetGender()
ResetGender reset all changes of the "gender" field.
func (*UserMutation) ResetGroups ¶
func (m *UserMutation) ResetGroups()
ResetGroups reset all changes of the "groups" edge.
func (*UserMutation) ResetIsAnonymous ¶
func (m *UserMutation) ResetIsAnonymous()
ResetIsAnonymous reset all changes of the "is_anonymous" field.
func (*UserMutation) ResetLastName ¶
func (m *UserMutation) ResetLastName()
ResetLastName reset all changes of the "last_name" field.
func (*UserMutation) ResetName ¶
func (m *UserMutation) ResetName()
ResetName reset all changes of the "name" field.
func (*UserMutation) ResetPhone ¶
func (m *UserMutation) ResetPhone()
ResetPhone reset all changes of the "phone" field.
func (*UserMutation) ResetTitle ¶
func (m *UserMutation) ResetTitle()
ResetTitle reset all changes of the "title" field.
func (*UserMutation) ResetUsername ¶
func (m *UserMutation) ResetUsername()
ResetUsername reset all changes of the "username" field.
func (*UserMutation) ResetWebsite ¶
func (m *UserMutation) ResetWebsite()
ResetWebsite reset all changes of the "website" field.
func (*UserMutation) SetBirthday ¶
func (m *UserMutation) SetBirthday(t time.Time)
SetBirthday sets the birthday field.
func (*UserMutation) SetEmail ¶
func (m *UserMutation) SetEmail(s string)
SetEmail sets the email field.
func (*UserMutation) SetExtra ¶
func (m *UserMutation) SetExtra(value map[string]interface{})
SetExtra sets the extra field.
func (*UserMutation) SetField ¶
func (m *UserMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*UserMutation) SetFirstName ¶
func (m *UserMutation) SetFirstName(s string)
SetFirstName sets the first_name field.
func (*UserMutation) SetGender ¶
func (m *UserMutation) SetGender(u user.Gender)
SetGender sets the gender field.
func (*UserMutation) SetID ¶
func (m *UserMutation) SetID(id string)
SetID sets the value of the id field. Note that, this operation is accepted only on User creation.
func (*UserMutation) SetIsAnonymous ¶
func (m *UserMutation) SetIsAnonymous(b bool)
SetIsAnonymous sets the is_anonymous field.
func (*UserMutation) SetLastName ¶
func (m *UserMutation) SetLastName(s string)
SetLastName sets the last_name field.
func (*UserMutation) SetName ¶
func (m *UserMutation) SetName(s string)
SetName sets the name field.
func (*UserMutation) SetPhone ¶
func (m *UserMutation) SetPhone(s string)
SetPhone sets the phone field.
func (*UserMutation) SetTitle ¶
func (m *UserMutation) SetTitle(s string)
SetTitle sets the title field.
func (*UserMutation) SetUsername ¶
func (m *UserMutation) SetUsername(s string)
SetUsername sets the username field.
func (*UserMutation) SetWebsite ¶
func (m *UserMutation) SetWebsite(s string)
SetWebsite sets the website field.
func (*UserMutation) Title ¶
func (m *UserMutation) Title() (r string, exists bool)
Title returns the title value in the mutation.
func (*UserMutation) TitleCleared ¶
func (m *UserMutation) TitleCleared() bool
TitleCleared returns if the field title was cleared in this mutation.
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) Username ¶
func (m *UserMutation) Username() (r string, exists bool)
Username returns the username value in the mutation.
func (*UserMutation) UsernameCleared ¶
func (m *UserMutation) UsernameCleared() bool
UsernameCleared returns if the field username was cleared in this mutation.
func (*UserMutation) Website ¶
func (m *UserMutation) Website() (r string, exists bool)
Website returns the website value in the mutation.
func (*UserMutation) WebsiteCleared ¶
func (m *UserMutation) WebsiteCleared() bool
WebsiteCleared returns if the field website was cleared in this mutation.
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
UserQuery is the builder for querying User entities.
func (*UserQuery) Clone ¶
Clone returns a duplicate of the query 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 in the query. Returns *NotFoundError when no user was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User id in the query. Returns *NotFoundError when no id was found.
func (*UserQuery) GroupBy ¶
func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
GroupBy 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 { IsAnonymous bool `json:"is_anonymous,omitempty"` Count int `json:"count,omitempty"` } client.User.Query(). GroupBy(user.FieldIsAnonymous). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserQuery) Only ¶
Only returns the only User entity in the query, returns an error if not exactly one entity was returned.
func (*UserQuery) OnlyID ¶
OnlyID returns the only User id in the query, returns an error if not exactly one id was returned.
func (*UserQuery) QueryAliases ¶
func (uq *UserQuery) QueryAliases() *AliasQuery
QueryAliases chains the current query on the aliases edge.
func (*UserQuery) QueryEvents ¶
func (uq *UserQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*UserQuery) QueryGroups ¶
func (uq *UserQuery) QueryGroups() *GroupQuery
QueryGroups chains the current query on the groups edge.
func (*UserQuery) Select ¶
func (uq *UserQuery) Select(field string, fields ...string) *UserSelect
Select one or more fields from the given query.
Example:
var v []struct { IsAnonymous bool `json:"is_anonymous,omitempty"` } client.User.Query(). Select(user.FieldIsAnonymous). Scan(ctx, &v)
func (*UserQuery) WithAliases ¶
func (uq *UserQuery) WithAliases(opts ...func(*AliasQuery)) *UserQuery
WithAliases tells the query-builder to eager-loads the nodes that are connected to
the "aliases" edge. The optional arguments used to configure the query builder of the edge.
func (*UserQuery) WithEvents ¶
func (uq *UserQuery) WithEvents(opts ...func(*EventQuery)) *UserQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
func (*UserQuery) WithGroups ¶
func (uq *UserQuery) WithGroups(opts ...func(*GroupQuery)) *UserQuery
WithGroups tells the query-builder to eager-loads the nodes that are connected to
the "groups" edge. The optional arguments used to configure the query builder of the edge.
type UserSelect ¶
type UserSelect struct {
// contains filtered or unexported fields
}
UserSelect is the builder for select fields of User entities.
func (*UserSelect) Bool ¶
func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*UserSelect) BoolX ¶
func (us *UserSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*UserSelect) Bools ¶
func (us *UserSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*UserSelect) BoolsX ¶
func (us *UserSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*UserSelect) Float64 ¶
func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*UserSelect) Float64X ¶
func (us *UserSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*UserSelect) Float64s ¶
func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*UserSelect) Float64sX ¶
func (us *UserSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*UserSelect) Int ¶
func (us *UserSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*UserSelect) IntX ¶
func (us *UserSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*UserSelect) Ints ¶
func (us *UserSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*UserSelect) IntsX ¶
func (us *UserSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*UserSelect) Scan ¶
func (us *UserSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*UserSelect) ScanX ¶
func (us *UserSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*UserSelect) String ¶
func (us *UserSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*UserSelect) StringX ¶
func (us *UserSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) AddAliasIDs ¶
func (uu *UserUpdate) AddAliasIDs(ids ...int) *UserUpdate
AddAliasIDs adds the aliases edge to Alias by ids.
func (*UserUpdate) AddAliases ¶
func (uu *UserUpdate) AddAliases(a ...*Alias) *UserUpdate
AddAliases adds the aliases edges to Alias.
func (*UserUpdate) AddEventIDs ¶
func (uu *UserUpdate) AddEventIDs(ids ...uuid.UUID) *UserUpdate
AddEventIDs adds the events edge to Event by ids.
func (*UserUpdate) AddEvents ¶
func (uu *UserUpdate) AddEvents(e ...*Event) *UserUpdate
AddEvents adds the events edges to Event.
func (*UserUpdate) AddGroupIDs ¶
func (uu *UserUpdate) AddGroupIDs(ids ...int) *UserUpdate
AddGroupIDs adds the groups edge to Group by ids.
func (*UserUpdate) AddGroups ¶
func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate
AddGroups adds the groups edges to Group.
func (*UserUpdate) ClearAge ¶
func (uu *UserUpdate) ClearAge() *UserUpdate
ClearAge clears the value of age.
func (*UserUpdate) ClearBirthday ¶
func (uu *UserUpdate) ClearBirthday() *UserUpdate
ClearBirthday clears the value of birthday.
func (*UserUpdate) ClearEmail ¶
func (uu *UserUpdate) ClearEmail() *UserUpdate
ClearEmail clears the value of email.
func (*UserUpdate) ClearExtra ¶
func (uu *UserUpdate) ClearExtra() *UserUpdate
ClearExtra clears the value of extra.
func (*UserUpdate) ClearFirstName ¶
func (uu *UserUpdate) ClearFirstName() *UserUpdate
ClearFirstName clears the value of first_name.
func (*UserUpdate) ClearGender ¶
func (uu *UserUpdate) ClearGender() *UserUpdate
ClearGender clears the value of gender.
func (*UserUpdate) ClearLastName ¶
func (uu *UserUpdate) ClearLastName() *UserUpdate
ClearLastName clears the value of last_name.
func (*UserUpdate) ClearName ¶
func (uu *UserUpdate) ClearName() *UserUpdate
ClearName clears the value of name.
func (*UserUpdate) ClearPhone ¶
func (uu *UserUpdate) ClearPhone() *UserUpdate
ClearPhone clears the value of phone.
func (*UserUpdate) ClearTitle ¶
func (uu *UserUpdate) ClearTitle() *UserUpdate
ClearTitle clears the value of title.
func (*UserUpdate) ClearUsername ¶
func (uu *UserUpdate) ClearUsername() *UserUpdate
ClearUsername clears the value of username.
func (*UserUpdate) ClearWebsite ¶
func (uu *UserUpdate) ClearWebsite() *UserUpdate
ClearWebsite clears the value of website.
func (*UserUpdate) Exec ¶
func (uu *UserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpdate) ExecX ¶
func (uu *UserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdate) Mutation ¶
func (uu *UserUpdate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdate) RemoveAliasIDs ¶
func (uu *UserUpdate) RemoveAliasIDs(ids ...int) *UserUpdate
RemoveAliasIDs removes the aliases edge to Alias by ids.
func (*UserUpdate) RemoveAliases ¶
func (uu *UserUpdate) RemoveAliases(a ...*Alias) *UserUpdate
RemoveAliases removes aliases edges to Alias.
func (*UserUpdate) RemoveEventIDs ¶
func (uu *UserUpdate) RemoveEventIDs(ids ...uuid.UUID) *UserUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*UserUpdate) RemoveEvents ¶
func (uu *UserUpdate) RemoveEvents(e ...*Event) *UserUpdate
RemoveEvents removes events edges to Event.
func (*UserUpdate) RemoveGroupIDs ¶
func (uu *UserUpdate) RemoveGroupIDs(ids ...int) *UserUpdate
RemoveGroupIDs removes the groups edge to Group by ids.
func (*UserUpdate) RemoveGroups ¶
func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate
RemoveGroups removes groups edges to Group.
func (*UserUpdate) Save ¶
func (uu *UserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*UserUpdate) SaveX ¶
func (uu *UserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserUpdate) SetAge ¶
func (uu *UserUpdate) SetAge(i int) *UserUpdate
SetAge sets the age field.
func (*UserUpdate) SetBirthday ¶
func (uu *UserUpdate) SetBirthday(t time.Time) *UserUpdate
SetBirthday sets the birthday field.
func (*UserUpdate) SetEmail ¶
func (uu *UserUpdate) SetEmail(s string) *UserUpdate
SetEmail sets the email field.
func (*UserUpdate) SetExtra ¶
func (uu *UserUpdate) SetExtra(m map[string]interface{}) *UserUpdate
SetExtra sets the extra field.
func (*UserUpdate) SetFirstName ¶
func (uu *UserUpdate) SetFirstName(s string) *UserUpdate
SetFirstName sets the first_name field.
func (*UserUpdate) SetGender ¶
func (uu *UserUpdate) SetGender(u user.Gender) *UserUpdate
SetGender sets the gender field.
func (*UserUpdate) SetIsAnonymous ¶
func (uu *UserUpdate) SetIsAnonymous(b bool) *UserUpdate
SetIsAnonymous sets the is_anonymous field.
func (*UserUpdate) SetLastName ¶
func (uu *UserUpdate) SetLastName(s string) *UserUpdate
SetLastName sets the last_name field.
func (*UserUpdate) SetName ¶
func (uu *UserUpdate) SetName(s string) *UserUpdate
SetName sets the name field.
func (*UserUpdate) SetNillableAge ¶
func (uu *UserUpdate) SetNillableAge(i *int) *UserUpdate
SetNillableAge sets the age field if the given value is not nil.
func (*UserUpdate) SetNillableBirthday ¶
func (uu *UserUpdate) SetNillableBirthday(t *time.Time) *UserUpdate
SetNillableBirthday sets the birthday field if the given value is not nil.
func (*UserUpdate) SetNillableEmail ¶
func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate
SetNillableEmail sets the email field if the given value is not nil.
func (*UserUpdate) SetNillableFirstName ¶
func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate
SetNillableFirstName sets the first_name field if the given value is not nil.
func (*UserUpdate) SetNillableGender ¶
func (uu *UserUpdate) SetNillableGender(u *user.Gender) *UserUpdate
SetNillableGender sets the gender field if the given value is not nil.
func (*UserUpdate) SetNillableLastName ¶
func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate
SetNillableLastName sets the last_name field if the given value is not nil.
func (*UserUpdate) SetNillableName ¶
func (uu *UserUpdate) SetNillableName(s *string) *UserUpdate
SetNillableName sets the name field if the given value is not nil.
func (*UserUpdate) SetNillablePhone ¶
func (uu *UserUpdate) SetNillablePhone(s *string) *UserUpdate
SetNillablePhone sets the phone field if the given value is not nil.
func (*UserUpdate) SetNillableTitle ¶
func (uu *UserUpdate) SetNillableTitle(s *string) *UserUpdate
SetNillableTitle sets the title field if the given value is not nil.
func (*UserUpdate) SetNillableUsername ¶
func (uu *UserUpdate) SetNillableUsername(s *string) *UserUpdate
SetNillableUsername sets the username field if the given value is not nil.
func (*UserUpdate) SetNillableWebsite ¶
func (uu *UserUpdate) SetNillableWebsite(s *string) *UserUpdate
SetNillableWebsite sets the website field if the given value is not nil.
func (*UserUpdate) SetPhone ¶
func (uu *UserUpdate) SetPhone(s string) *UserUpdate
SetPhone sets the phone field.
func (*UserUpdate) SetTitle ¶
func (uu *UserUpdate) SetTitle(s string) *UserUpdate
SetTitle sets the title field.
func (*UserUpdate) SetUsername ¶
func (uu *UserUpdate) SetUsername(s string) *UserUpdate
SetUsername sets the username field.
func (*UserUpdate) SetWebsite ¶
func (uu *UserUpdate) SetWebsite(s string) *UserUpdate
SetWebsite sets the website field.
func (*UserUpdate) Where ¶
func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
Where adds a new predicate for the builder.
type UserUpdateOne ¶
type UserUpdateOne struct {
// contains filtered or unexported fields
}
UserUpdateOne is the builder for updating a single User entity.
func (*UserUpdateOne) AddAge ¶
func (uuo *UserUpdateOne) AddAge(i int) *UserUpdateOne
AddAge adds i to age.
func (*UserUpdateOne) AddAliasIDs ¶
func (uuo *UserUpdateOne) AddAliasIDs(ids ...int) *UserUpdateOne
AddAliasIDs adds the aliases edge to Alias by ids.
func (*UserUpdateOne) AddAliases ¶
func (uuo *UserUpdateOne) AddAliases(a ...*Alias) *UserUpdateOne
AddAliases adds the aliases edges to Alias.
func (*UserUpdateOne) AddEventIDs ¶
func (uuo *UserUpdateOne) AddEventIDs(ids ...uuid.UUID) *UserUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*UserUpdateOne) AddEvents ¶
func (uuo *UserUpdateOne) AddEvents(e ...*Event) *UserUpdateOne
AddEvents adds the events edges to Event.
func (*UserUpdateOne) AddGroupIDs ¶
func (uuo *UserUpdateOne) AddGroupIDs(ids ...int) *UserUpdateOne
AddGroupIDs adds the groups edge to Group by ids.
func (*UserUpdateOne) AddGroups ¶
func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne
AddGroups adds the groups edges to Group.
func (*UserUpdateOne) ClearAge ¶
func (uuo *UserUpdateOne) ClearAge() *UserUpdateOne
ClearAge clears the value of age.
func (*UserUpdateOne) ClearBirthday ¶
func (uuo *UserUpdateOne) ClearBirthday() *UserUpdateOne
ClearBirthday clears the value of birthday.
func (*UserUpdateOne) ClearEmail ¶
func (uuo *UserUpdateOne) ClearEmail() *UserUpdateOne
ClearEmail clears the value of email.
func (*UserUpdateOne) ClearExtra ¶
func (uuo *UserUpdateOne) ClearExtra() *UserUpdateOne
ClearExtra clears the value of extra.
func (*UserUpdateOne) ClearFirstName ¶
func (uuo *UserUpdateOne) ClearFirstName() *UserUpdateOne
ClearFirstName clears the value of first_name.
func (*UserUpdateOne) ClearGender ¶
func (uuo *UserUpdateOne) ClearGender() *UserUpdateOne
ClearGender clears the value of gender.
func (*UserUpdateOne) ClearLastName ¶
func (uuo *UserUpdateOne) ClearLastName() *UserUpdateOne
ClearLastName clears the value of last_name.
func (*UserUpdateOne) ClearName ¶
func (uuo *UserUpdateOne) ClearName() *UserUpdateOne
ClearName clears the value of name.
func (*UserUpdateOne) ClearPhone ¶
func (uuo *UserUpdateOne) ClearPhone() *UserUpdateOne
ClearPhone clears the value of phone.
func (*UserUpdateOne) ClearTitle ¶
func (uuo *UserUpdateOne) ClearTitle() *UserUpdateOne
ClearTitle clears the value of title.
func (*UserUpdateOne) ClearUsername ¶
func (uuo *UserUpdateOne) ClearUsername() *UserUpdateOne
ClearUsername clears the value of username.
func (*UserUpdateOne) ClearWebsite ¶
func (uuo *UserUpdateOne) ClearWebsite() *UserUpdateOne
ClearWebsite clears the value of website.
func (*UserUpdateOne) Exec ¶
func (uuo *UserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserUpdateOne) ExecX ¶
func (uuo *UserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdateOne) Mutation ¶
func (uuo *UserUpdateOne) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdateOne) RemoveAliasIDs ¶
func (uuo *UserUpdateOne) RemoveAliasIDs(ids ...int) *UserUpdateOne
RemoveAliasIDs removes the aliases edge to Alias by ids.
func (*UserUpdateOne) RemoveAliases ¶
func (uuo *UserUpdateOne) RemoveAliases(a ...*Alias) *UserUpdateOne
RemoveAliases removes aliases edges to Alias.
func (*UserUpdateOne) RemoveEventIDs ¶
func (uuo *UserUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *UserUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*UserUpdateOne) RemoveEvents ¶
func (uuo *UserUpdateOne) RemoveEvents(e ...*Event) *UserUpdateOne
RemoveEvents removes events edges to Event.
func (*UserUpdateOne) RemoveGroupIDs ¶
func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...int) *UserUpdateOne
RemoveGroupIDs removes the groups edge to Group by ids.
func (*UserUpdateOne) RemoveGroups ¶
func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne
RemoveGroups removes groups edges to Group.
func (*UserUpdateOne) Save ¶
func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
Save executes the query and returns the updated entity.
func (*UserUpdateOne) SaveX ¶
func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
SaveX is like Save, but panics if an error occurs.
func (*UserUpdateOne) SetAge ¶
func (uuo *UserUpdateOne) SetAge(i int) *UserUpdateOne
SetAge sets the age field.
func (*UserUpdateOne) SetBirthday ¶
func (uuo *UserUpdateOne) SetBirthday(t time.Time) *UserUpdateOne
SetBirthday sets the birthday field.
func (*UserUpdateOne) SetEmail ¶
func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
SetEmail sets the email field.
func (*UserUpdateOne) SetExtra ¶
func (uuo *UserUpdateOne) SetExtra(m map[string]interface{}) *UserUpdateOne
SetExtra sets the extra field.
func (*UserUpdateOne) SetFirstName ¶
func (uuo *UserUpdateOne) SetFirstName(s string) *UserUpdateOne
SetFirstName sets the first_name field.
func (*UserUpdateOne) SetGender ¶
func (uuo *UserUpdateOne) SetGender(u user.Gender) *UserUpdateOne
SetGender sets the gender field.
func (*UserUpdateOne) SetIsAnonymous ¶
func (uuo *UserUpdateOne) SetIsAnonymous(b bool) *UserUpdateOne
SetIsAnonymous sets the is_anonymous field.
func (*UserUpdateOne) SetLastName ¶
func (uuo *UserUpdateOne) SetLastName(s string) *UserUpdateOne
SetLastName sets the last_name field.
func (*UserUpdateOne) SetName ¶
func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne
SetName sets the name field.
func (*UserUpdateOne) SetNillableAge ¶
func (uuo *UserUpdateOne) SetNillableAge(i *int) *UserUpdateOne
SetNillableAge sets the age field if the given value is not nil.
func (*UserUpdateOne) SetNillableBirthday ¶
func (uuo *UserUpdateOne) SetNillableBirthday(t *time.Time) *UserUpdateOne
SetNillableBirthday sets the birthday field if the given value is not nil.
func (*UserUpdateOne) SetNillableEmail ¶
func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne
SetNillableEmail sets the email field if the given value is not nil.
func (*UserUpdateOne) SetNillableFirstName ¶
func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne
SetNillableFirstName sets the first_name field if the given value is not nil.
func (*UserUpdateOne) SetNillableGender ¶
func (uuo *UserUpdateOne) SetNillableGender(u *user.Gender) *UserUpdateOne
SetNillableGender sets the gender field if the given value is not nil.
func (*UserUpdateOne) SetNillableLastName ¶
func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne
SetNillableLastName sets the last_name field if the given value is not nil.
func (*UserUpdateOne) SetNillableName ¶
func (uuo *UserUpdateOne) SetNillableName(s *string) *UserUpdateOne
SetNillableName sets the name field if the given value is not nil.
func (*UserUpdateOne) SetNillablePhone ¶
func (uuo *UserUpdateOne) SetNillablePhone(s *string) *UserUpdateOne
SetNillablePhone sets the phone field if the given value is not nil.
func (*UserUpdateOne) SetNillableTitle ¶
func (uuo *UserUpdateOne) SetNillableTitle(s *string) *UserUpdateOne
SetNillableTitle sets the title field if the given value is not nil.
func (*UserUpdateOne) SetNillableUsername ¶
func (uuo *UserUpdateOne) SetNillableUsername(s *string) *UserUpdateOne
SetNillableUsername sets the username field if the given value is not nil.
func (*UserUpdateOne) SetNillableWebsite ¶
func (uuo *UserUpdateOne) SetNillableWebsite(s *string) *UserUpdateOne
SetNillableWebsite sets the website field if the given value is not nil.
func (*UserUpdateOne) SetPhone ¶
func (uuo *UserUpdateOne) SetPhone(s string) *UserUpdateOne
SetPhone sets the phone field.
func (*UserUpdateOne) SetTitle ¶
func (uuo *UserUpdateOne) SetTitle(s string) *UserUpdateOne
SetTitle sets the title field.
func (*UserUpdateOne) SetUsername ¶
func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne
SetUsername sets the username field.
func (*UserUpdateOne) SetWebsite ¶
func (uuo *UserUpdateOne) SetWebsite(s string) *UserUpdateOne
SetWebsite sets the website field.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field 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 Viewport ¶
type Viewport struct { // ID of the ent. ID int `json:"id,omitempty"` // Density holds the value of the "density" field. Density int `json:"density,omitempty"` // Width holds the value of the "width" field. Width int `json:"width,omitempty"` // Height holds the value of the "height" field. Height int `json:"height,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ViewportQuery when eager-loading is set. Edges ViewportEdges `json:"edges"` // contains filtered or unexported fields }
Viewport is the model entity for the Viewport schema.
func (*Viewport) QueryEvents ¶
func (v *Viewport) QueryEvents() *EventQuery
QueryEvents queries the events edge of the Viewport.
func (*Viewport) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Viewport) Update ¶
func (v *Viewport) Update() *ViewportUpdateOne
Update returns a builder for updating this Viewport. Note that, you need to call Viewport.Unwrap() before calling this method, if this Viewport was returned from a transaction, and the transaction was committed or rolled back.
type ViewportClient ¶
type ViewportClient struct {
// contains filtered or unexported fields
}
ViewportClient is a client for the Viewport schema.
func NewViewportClient ¶
func NewViewportClient(c config) *ViewportClient
NewViewportClient returns a client for the Viewport from the given config.
func (*ViewportClient) Create ¶
func (c *ViewportClient) Create() *ViewportCreate
Create returns a create builder for Viewport.
func (*ViewportClient) CreateBulk ¶
func (c *ViewportClient) CreateBulk(builders ...*ViewportCreate) *ViewportCreateBulk
BulkCreate returns a builder for creating a bulk of Viewport entities.
func (*ViewportClient) Delete ¶
func (c *ViewportClient) Delete() *ViewportDelete
Delete returns a delete builder for Viewport.
func (*ViewportClient) DeleteOne ¶
func (c *ViewportClient) DeleteOne(v *Viewport) *ViewportDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ViewportClient) DeleteOneID ¶
func (c *ViewportClient) DeleteOneID(id int) *ViewportDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ViewportClient) GetX ¶
func (c *ViewportClient) GetX(ctx context.Context, id int) *Viewport
GetX is like Get, but panics if an error occurs.
func (*ViewportClient) Hooks ¶
func (c *ViewportClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ViewportClient) Query ¶
func (c *ViewportClient) Query() *ViewportQuery
Query returns a query builder for Viewport.
func (*ViewportClient) QueryEvents ¶
func (c *ViewportClient) QueryEvents(v *Viewport) *EventQuery
QueryEvents queries the events edge of a Viewport.
func (*ViewportClient) Update ¶
func (c *ViewportClient) Update() *ViewportUpdate
Update returns an update builder for Viewport.
func (*ViewportClient) UpdateOne ¶
func (c *ViewportClient) UpdateOne(v *Viewport) *ViewportUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ViewportClient) UpdateOneID ¶
func (c *ViewportClient) UpdateOneID(id int) *ViewportUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ViewportClient) Use ¶
func (c *ViewportClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `viewport.Hooks(f(g(h())))`.
type ViewportCreate ¶
type ViewportCreate struct {
// contains filtered or unexported fields
}
ViewportCreate is the builder for creating a Viewport entity.
func (*ViewportCreate) AddEventIDs ¶
func (vc *ViewportCreate) AddEventIDs(ids ...uuid.UUID) *ViewportCreate
AddEventIDs adds the events edge to Event by ids.
func (*ViewportCreate) AddEvents ¶
func (vc *ViewportCreate) AddEvents(e ...*Event) *ViewportCreate
AddEvents adds the events edges to Event.
func (*ViewportCreate) Mutation ¶
func (vc *ViewportCreate) Mutation() *ViewportMutation
Mutation returns the ViewportMutation object of the builder.
func (*ViewportCreate) Save ¶
func (vc *ViewportCreate) Save(ctx context.Context) (*Viewport, error)
Save creates the Viewport in the database.
func (*ViewportCreate) SaveX ¶
func (vc *ViewportCreate) SaveX(ctx context.Context) *Viewport
SaveX calls Save and panics if Save returns an error.
func (*ViewportCreate) SetDensity ¶
func (vc *ViewportCreate) SetDensity(i int) *ViewportCreate
SetDensity sets the density field.
func (*ViewportCreate) SetHeight ¶
func (vc *ViewportCreate) SetHeight(i int) *ViewportCreate
SetHeight sets the height field.
func (*ViewportCreate) SetWidth ¶
func (vc *ViewportCreate) SetWidth(i int) *ViewportCreate
SetWidth sets the width field.
type ViewportCreateBulk ¶
type ViewportCreateBulk struct {
// contains filtered or unexported fields
}
ViewportCreateBulk is the builder for creating a bulk of Viewport entities.
type ViewportDelete ¶
type ViewportDelete struct {
// contains filtered or unexported fields
}
ViewportDelete is the builder for deleting a Viewport entity.
func (*ViewportDelete) Exec ¶
func (vd *ViewportDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ViewportDelete) ExecX ¶
func (vd *ViewportDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ViewportDelete) Where ¶
func (vd *ViewportDelete) Where(ps ...predicate.Viewport) *ViewportDelete
Where adds a new predicate to the delete builder.
type ViewportDeleteOne ¶
type ViewportDeleteOne struct {
// contains filtered or unexported fields
}
ViewportDeleteOne is the builder for deleting a single Viewport entity.
func (*ViewportDeleteOne) Exec ¶
func (vdo *ViewportDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ViewportDeleteOne) ExecX ¶
func (vdo *ViewportDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ViewportEdges ¶
type ViewportEdges struct { // Events holds the value of the events edge. Events []*Event // contains filtered or unexported fields }
ViewportEdges holds the relations/edges for other nodes in the graph.
func (ViewportEdges) EventsOrErr ¶
func (e ViewportEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type ViewportGroupBy ¶
type ViewportGroupBy struct {
// contains filtered or unexported fields
}
ViewportGroupBy is the builder for group-by Viewport entities.
func (*ViewportGroupBy) Aggregate ¶
func (vgb *ViewportGroupBy) Aggregate(fns ...AggregateFunc) *ViewportGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ViewportGroupBy) Bool ¶
func (vgb *ViewportGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) BoolX ¶
func (vgb *ViewportGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ViewportGroupBy) Bools ¶
func (vgb *ViewportGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) BoolsX ¶
func (vgb *ViewportGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ViewportGroupBy) Float64 ¶
func (vgb *ViewportGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) Float64X ¶
func (vgb *ViewportGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ViewportGroupBy) Float64s ¶
func (vgb *ViewportGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) Float64sX ¶
func (vgb *ViewportGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ViewportGroupBy) Int ¶
func (vgb *ViewportGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) IntX ¶
func (vgb *ViewportGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ViewportGroupBy) Ints ¶
func (vgb *ViewportGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) IntsX ¶
func (vgb *ViewportGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ViewportGroupBy) Scan ¶
func (vgb *ViewportGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ViewportGroupBy) ScanX ¶
func (vgb *ViewportGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ViewportGroupBy) String ¶
func (vgb *ViewportGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from group-by. It is only allowed when querying group-by with one field.
func (*ViewportGroupBy) StringX ¶
func (vgb *ViewportGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ViewportMutation ¶
type ViewportMutation struct {
// contains filtered or unexported fields
}
ViewportMutation represents an operation that mutate the Viewports nodes in the graph.
func (*ViewportMutation) AddDensity ¶
func (m *ViewportMutation) AddDensity(i int)
AddDensity adds i to density.
func (*ViewportMutation) AddEventIDs ¶
func (m *ViewportMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the events edge to Event by ids.
func (*ViewportMutation) AddField ¶
func (m *ViewportMutation) AddField(name string, value ent.Value) error
AddField adds the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ViewportMutation) AddHeight ¶
func (m *ViewportMutation) AddHeight(i int)
AddHeight adds i to height.
func (*ViewportMutation) AddWidth ¶
func (m *ViewportMutation) AddWidth(i int)
AddWidth adds i to width.
func (*ViewportMutation) AddedDensity ¶
func (m *ViewportMutation) AddedDensity() (r int, exists bool)
AddedDensity returns the value that was added to the density field in this mutation.
func (*ViewportMutation) AddedEdges ¶
func (m *ViewportMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ViewportMutation) AddedField ¶
func (m *ViewportMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was in/decremented from a field with the given name. The second value indicates that this field was not set, or was not define in the schema.
func (*ViewportMutation) AddedFields ¶
func (m *ViewportMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented or decremented during this mutation.
func (*ViewportMutation) AddedHeight ¶
func (m *ViewportMutation) AddedHeight() (r int, exists bool)
AddedHeight returns the value that was added to the height field in this mutation.
func (*ViewportMutation) AddedIDs ¶
func (m *ViewportMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all ids (to other nodes) that were added for the given edge name.
func (*ViewportMutation) AddedWidth ¶
func (m *ViewportMutation) AddedWidth() (r int, exists bool)
AddedWidth returns the value that was added to the width field in this mutation.
func (*ViewportMutation) ClearEdge ¶
func (m *ViewportMutation) ClearEdge(name string) error
ClearEdge clears the value for the given name. It returns an error if the edge name is not defined in the schema.
func (*ViewportMutation) ClearField ¶
func (m *ViewportMutation) ClearField(name string) error
ClearField clears the value for the given name. It returns an error if the field is not defined in the schema.
func (*ViewportMutation) ClearedEdges ¶
func (m *ViewportMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ViewportMutation) ClearedFields ¶
func (m *ViewportMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ViewportMutation) Client ¶
func (m ViewportMutation) 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 (*ViewportMutation) Density ¶
func (m *ViewportMutation) Density() (r int, exists bool)
Density returns the density value in the mutation.
func (*ViewportMutation) EdgeCleared ¶
func (m *ViewportMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean indicates if this edge was cleared in this mutation.
func (*ViewportMutation) EventsIDs ¶
func (m *ViewportMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the events ids in the mutation.
func (*ViewportMutation) Field ¶
func (m *ViewportMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean value indicates that this field was not set, or was not define in the schema.
func (*ViewportMutation) FieldCleared ¶
func (m *ViewportMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicates if this field was cleared in this mutation.
func (*ViewportMutation) Fields ¶
func (m *ViewportMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that, in order to get all numeric fields that were in/decremented, call AddedFields().
func (*ViewportMutation) Height ¶
func (m *ViewportMutation) Height() (r int, exists bool)
Height returns the height value in the mutation.
func (*ViewportMutation) ID ¶
func (m *ViewportMutation) ID() (id int, exists bool)
ID returns the id value in the mutation. Note that, the id is available only if it was provided to the builder.
func (*ViewportMutation) OldDensity ¶
func (m *ViewportMutation) OldDensity(ctx context.Context) (v int, err error)
OldDensity returns the old density value of the Viewport. If the Viewport 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 database query fails.
func (*ViewportMutation) 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 was failed.
func (*ViewportMutation) OldHeight ¶
func (m *ViewportMutation) OldHeight(ctx context.Context) (v int, err error)
OldHeight returns the old height value of the Viewport. If the Viewport 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 database query fails.
func (*ViewportMutation) OldWidth ¶
func (m *ViewportMutation) OldWidth(ctx context.Context) (v int, err error)
OldWidth returns the old width value of the Viewport. If the Viewport 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 database query fails.
func (*ViewportMutation) RemoveEventIDs ¶
func (m *ViewportMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the events edge to Event by ids.
func (*ViewportMutation) RemovedEdges ¶
func (m *ViewportMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ViewportMutation) RemovedEventsIDs ¶
func (m *ViewportMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed ids of events.
func (*ViewportMutation) RemovedIDs ¶
func (m *ViewportMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all ids (to other nodes) that were removed for the given edge name.
func (*ViewportMutation) ResetDensity ¶
func (m *ViewportMutation) ResetDensity()
ResetDensity reset all changes of the "density" field.
func (*ViewportMutation) ResetEdge ¶
func (m *ViewportMutation) ResetEdge(name string) error
ResetEdge resets all changes in the mutation regarding the given edge name. It returns an error if the edge is not defined in the schema.
func (*ViewportMutation) ResetEvents ¶
func (m *ViewportMutation) ResetEvents()
ResetEvents reset all changes of the "events" edge.
func (*ViewportMutation) ResetField ¶
func (m *ViewportMutation) ResetField(name string) error
ResetField resets all changes in the mutation regarding the given field name. It returns an error if the field is not defined in the schema.
func (*ViewportMutation) ResetHeight ¶
func (m *ViewportMutation) ResetHeight()
ResetHeight reset all changes of the "height" field.
func (*ViewportMutation) ResetWidth ¶
func (m *ViewportMutation) ResetWidth()
ResetWidth reset all changes of the "width" field.
func (*ViewportMutation) SetDensity ¶
func (m *ViewportMutation) SetDensity(i int)
SetDensity sets the density field.
func (*ViewportMutation) SetField ¶
func (m *ViewportMutation) SetField(name string, value ent.Value) error
SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.
func (*ViewportMutation) SetHeight ¶
func (m *ViewportMutation) SetHeight(i int)
SetHeight sets the height field.
func (*ViewportMutation) SetWidth ¶
func (m *ViewportMutation) SetWidth(i int)
SetWidth sets the width field.
func (ViewportMutation) Tx ¶
func (m ViewportMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ViewportMutation) Type ¶
func (m *ViewportMutation) Type() string
Type returns the node type of this mutation (Viewport).
func (*ViewportMutation) Width ¶
func (m *ViewportMutation) Width() (r int, exists bool)
Width returns the width value in the mutation.
type ViewportQuery ¶
type ViewportQuery struct {
// contains filtered or unexported fields
}
ViewportQuery is the builder for querying Viewport entities.
func (*ViewportQuery) All ¶
func (vq *ViewportQuery) All(ctx context.Context) ([]*Viewport, error)
All executes the query and returns a list of Viewports.
func (*ViewportQuery) AllX ¶
func (vq *ViewportQuery) AllX(ctx context.Context) []*Viewport
AllX is like All, but panics if an error occurs.
func (*ViewportQuery) Clone ¶
func (vq *ViewportQuery) Clone() *ViewportQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ViewportQuery) Count ¶
func (vq *ViewportQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ViewportQuery) CountX ¶
func (vq *ViewportQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ViewportQuery) Exist ¶
func (vq *ViewportQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ViewportQuery) ExistX ¶
func (vq *ViewportQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ViewportQuery) First ¶
func (vq *ViewportQuery) First(ctx context.Context) (*Viewport, error)
First returns the first Viewport entity in the query. Returns *NotFoundError when no viewport was found.
func (*ViewportQuery) FirstID ¶
func (vq *ViewportQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Viewport id in the query. Returns *NotFoundError when no id was found.
func (*ViewportQuery) FirstX ¶
func (vq *ViewportQuery) FirstX(ctx context.Context) *Viewport
FirstX is like First, but panics if an error occurs.
func (*ViewportQuery) FirstXID ¶
func (vq *ViewportQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*ViewportQuery) GroupBy ¶
func (vq *ViewportQuery) GroupBy(field string, fields ...string) *ViewportGroupBy
GroupBy 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 { Density int `json:"density,omitempty"` Count int `json:"count,omitempty"` } client.Viewport.Query(). GroupBy(viewport.FieldDensity). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ViewportQuery) IDs ¶
func (vq *ViewportQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Viewport ids.
func (*ViewportQuery) IDsX ¶
func (vq *ViewportQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ViewportQuery) Limit ¶
func (vq *ViewportQuery) Limit(limit int) *ViewportQuery
Limit adds a limit step to the query.
func (*ViewportQuery) Offset ¶
func (vq *ViewportQuery) Offset(offset int) *ViewportQuery
Offset adds an offset step to the query.
func (*ViewportQuery) Only ¶
func (vq *ViewportQuery) Only(ctx context.Context) (*Viewport, error)
Only returns the only Viewport entity in the query, returns an error if not exactly one entity was returned.
func (*ViewportQuery) OnlyID ¶
func (vq *ViewportQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Viewport id in the query, returns an error if not exactly one id was returned.
func (*ViewportQuery) OnlyIDX ¶
func (vq *ViewportQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ViewportQuery) OnlyX ¶
func (vq *ViewportQuery) OnlyX(ctx context.Context) *Viewport
OnlyX is like Only, but panics if an error occurs.
func (*ViewportQuery) Order ¶
func (vq *ViewportQuery) Order(o ...OrderFunc) *ViewportQuery
Order adds an order step to the query.
func (*ViewportQuery) QueryEvents ¶
func (vq *ViewportQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the events edge.
func (*ViewportQuery) Select ¶
func (vq *ViewportQuery) Select(field string, fields ...string) *ViewportSelect
Select one or more fields from the given query.
Example:
var v []struct { Density int `json:"density,omitempty"` } client.Viewport.Query(). Select(viewport.FieldDensity). Scan(ctx, &v)
func (*ViewportQuery) Where ¶
func (vq *ViewportQuery) Where(ps ...predicate.Viewport) *ViewportQuery
Where adds a new predicate for the builder.
func (*ViewportQuery) WithEvents ¶
func (vq *ViewportQuery) WithEvents(opts ...func(*EventQuery)) *ViewportQuery
WithEvents tells the query-builder to eager-loads the nodes that are connected to
the "events" edge. The optional arguments used to configure the query builder of the edge.
type ViewportSelect ¶
type ViewportSelect struct {
// contains filtered or unexported fields
}
ViewportSelect is the builder for select fields of Viewport entities.
func (*ViewportSelect) Bool ¶
func (vs *ViewportSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from selector. It is only allowed when selecting one field.
func (*ViewportSelect) BoolX ¶
func (vs *ViewportSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ViewportSelect) Bools ¶
func (vs *ViewportSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ViewportSelect) BoolsX ¶
func (vs *ViewportSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ViewportSelect) Float64 ¶
func (vs *ViewportSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from selector. It is only allowed when selecting one field.
func (*ViewportSelect) Float64X ¶
func (vs *ViewportSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ViewportSelect) Float64s ¶
func (vs *ViewportSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ViewportSelect) Float64sX ¶
func (vs *ViewportSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ViewportSelect) Int ¶
func (vs *ViewportSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from selector. It is only allowed when selecting one field.
func (*ViewportSelect) IntX ¶
func (vs *ViewportSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ViewportSelect) Ints ¶
func (vs *ViewportSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ViewportSelect) IntsX ¶
func (vs *ViewportSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ViewportSelect) Scan ¶
func (vs *ViewportSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ViewportSelect) ScanX ¶
func (vs *ViewportSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ViewportSelect) String ¶
func (vs *ViewportSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from selector. It is only allowed when selecting one field.
func (*ViewportSelect) StringX ¶
func (vs *ViewportSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ViewportUpdate ¶
type ViewportUpdate struct {
// contains filtered or unexported fields
}
ViewportUpdate is the builder for updating Viewport entities.
func (*ViewportUpdate) AddDensity ¶
func (vu *ViewportUpdate) AddDensity(i int) *ViewportUpdate
AddDensity adds i to density.
func (*ViewportUpdate) AddEventIDs ¶
func (vu *ViewportUpdate) AddEventIDs(ids ...uuid.UUID) *ViewportUpdate
AddEventIDs adds the events edge to Event by ids.
func (*ViewportUpdate) AddEvents ¶
func (vu *ViewportUpdate) AddEvents(e ...*Event) *ViewportUpdate
AddEvents adds the events edges to Event.
func (*ViewportUpdate) AddHeight ¶
func (vu *ViewportUpdate) AddHeight(i int) *ViewportUpdate
AddHeight adds i to height.
func (*ViewportUpdate) AddWidth ¶
func (vu *ViewportUpdate) AddWidth(i int) *ViewportUpdate
AddWidth adds i to width.
func (*ViewportUpdate) Exec ¶
func (vu *ViewportUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ViewportUpdate) ExecX ¶
func (vu *ViewportUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ViewportUpdate) Mutation ¶
func (vu *ViewportUpdate) Mutation() *ViewportMutation
Mutation returns the ViewportMutation object of the builder.
func (*ViewportUpdate) RemoveEventIDs ¶
func (vu *ViewportUpdate) RemoveEventIDs(ids ...uuid.UUID) *ViewportUpdate
RemoveEventIDs removes the events edge to Event by ids.
func (*ViewportUpdate) RemoveEvents ¶
func (vu *ViewportUpdate) RemoveEvents(e ...*Event) *ViewportUpdate
RemoveEvents removes events edges to Event.
func (*ViewportUpdate) Save ¶
func (vu *ViewportUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ViewportUpdate) SaveX ¶
func (vu *ViewportUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ViewportUpdate) SetDensity ¶
func (vu *ViewportUpdate) SetDensity(i int) *ViewportUpdate
SetDensity sets the density field.
func (*ViewportUpdate) SetHeight ¶
func (vu *ViewportUpdate) SetHeight(i int) *ViewportUpdate
SetHeight sets the height field.
func (*ViewportUpdate) SetWidth ¶
func (vu *ViewportUpdate) SetWidth(i int) *ViewportUpdate
SetWidth sets the width field.
func (*ViewportUpdate) Where ¶
func (vu *ViewportUpdate) Where(ps ...predicate.Viewport) *ViewportUpdate
Where adds a new predicate for the builder.
type ViewportUpdateOne ¶
type ViewportUpdateOne struct {
// contains filtered or unexported fields
}
ViewportUpdateOne is the builder for updating a single Viewport entity.
func (*ViewportUpdateOne) AddDensity ¶
func (vuo *ViewportUpdateOne) AddDensity(i int) *ViewportUpdateOne
AddDensity adds i to density.
func (*ViewportUpdateOne) AddEventIDs ¶
func (vuo *ViewportUpdateOne) AddEventIDs(ids ...uuid.UUID) *ViewportUpdateOne
AddEventIDs adds the events edge to Event by ids.
func (*ViewportUpdateOne) AddEvents ¶
func (vuo *ViewportUpdateOne) AddEvents(e ...*Event) *ViewportUpdateOne
AddEvents adds the events edges to Event.
func (*ViewportUpdateOne) AddHeight ¶
func (vuo *ViewportUpdateOne) AddHeight(i int) *ViewportUpdateOne
AddHeight adds i to height.
func (*ViewportUpdateOne) AddWidth ¶
func (vuo *ViewportUpdateOne) AddWidth(i int) *ViewportUpdateOne
AddWidth adds i to width.
func (*ViewportUpdateOne) Exec ¶
func (vuo *ViewportUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ViewportUpdateOne) ExecX ¶
func (vuo *ViewportUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ViewportUpdateOne) Mutation ¶
func (vuo *ViewportUpdateOne) Mutation() *ViewportMutation
Mutation returns the ViewportMutation object of the builder.
func (*ViewportUpdateOne) RemoveEventIDs ¶
func (vuo *ViewportUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ViewportUpdateOne
RemoveEventIDs removes the events edge to Event by ids.
func (*ViewportUpdateOne) RemoveEvents ¶
func (vuo *ViewportUpdateOne) RemoveEvents(e ...*Event) *ViewportUpdateOne
RemoveEvents removes events edges to Event.
func (*ViewportUpdateOne) Save ¶
func (vuo *ViewportUpdateOne) Save(ctx context.Context) (*Viewport, error)
Save executes the query and returns the updated entity.
func (*ViewportUpdateOne) SaveX ¶
func (vuo *ViewportUpdateOne) SaveX(ctx context.Context) *Viewport
SaveX is like Save, but panics if an error occurs.
func (*ViewportUpdateOne) SetDensity ¶
func (vuo *ViewportUpdateOne) SetDensity(i int) *ViewportUpdateOne
SetDensity sets the density field.
func (*ViewportUpdateOne) SetHeight ¶
func (vuo *ViewportUpdateOne) SetHeight(i int) *ViewportUpdateOne
SetHeight sets the height field.
func (*ViewportUpdateOne) SetWidth ¶
func (vuo *ViewportUpdateOne) SetWidth(i int) *ViewportUpdateOne
SetWidth sets the width field.
Source Files ¶
- action.go
- action_create.go
- action_delete.go
- action_query.go
- action_update.go
- alias.go
- alias_create.go
- alias_delete.go
- alias_query.go
- alias_update.go
- app.go
- app_create.go
- app_delete.go
- app_query.go
- app_update.go
- browser.go
- browser_create.go
- browser_delete.go
- browser_query.go
- browser_update.go
- campaign.go
- campaign_create.go
- campaign_delete.go
- campaign_query.go
- campaign_update.go
- client.go
- config.go
- connectivity.go
- connectivity_create.go
- connectivity_delete.go
- connectivity_query.go
- connectivity_update.go
- context.go
- device.go
- device_create.go
- device_delete.go
- device_query.go
- device_update.go
- ent.go
- event.go
- event_create.go
- event_delete.go
- event_query.go
- event_update.go
- extra.go
- extra_create.go
- extra_delete.go
- extra_query.go
- extra_update.go
- group.go
- group_create.go
- group_delete.go
- group_query.go
- group_update.go
- library.go
- library_create.go
- library_delete.go
- library_query.go
- library_update.go
- location.go
- location_create.go
- location_delete.go
- location_query.go
- location_update.go
- mutation.go
- network.go
- network_create.go
- network_delete.go
- network_query.go
- network_update.go
- oscontext.go
- oscontext_create.go
- oscontext_delete.go
- oscontext_query.go
- oscontext_update.go
- page.go
- page_create.go
- page_delete.go
- page_query.go
- page_update.go
- referrer.go
- referrer_create.go
- referrer_delete.go
- referrer_query.go
- referrer_update.go
- runtime.go
- screen.go
- screen_create.go
- screen_delete.go
- screen_query.go
- screen_update.go
- session.go
- session_create.go
- session_delete.go
- session_query.go
- session_update.go
- timing.go
- timing_create.go
- timing_delete.go
- timing_query.go
- timing_update.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go
- viewport.go
- viewport_create.go
- viewport_delete.go
- viewport_query.go
- viewport_update.go