Documentation ¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)
- type Address
- func (a *Address) Business(ctx context.Context) (*Business, error)
- func (n *Address) IsNode()
- func (a *Address) NamedTimetables(name string) ([]*Timetable, error)
- func (a *Address) Node(ctx context.Context) (node *Node, err error)
- func (a *Address) QueryBusiness() *BusinessQuery
- func (a *Address) QueryTimetables() *TimetableQuery
- func (a *Address) String() string
- func (a *Address) Timetables(ctx context.Context) (result []*Timetable, err error)
- func (a *Address) ToEdge(order *AddressOrder) *AddressEdge
- func (a *Address) Unwrap() *Address
- func (a *Address) Update() *AddressUpdateOne
- func (a *Address) Value(name string) (ent.Value, error)
- type AddressClient
- func (c *AddressClient) Create() *AddressCreate
- func (c *AddressClient) CreateBulk(builders ...*AddressCreate) *AddressCreateBulk
- func (c *AddressClient) Delete() *AddressDelete
- func (c *AddressClient) DeleteOne(a *Address) *AddressDeleteOne
- func (c *AddressClient) DeleteOneID(id uuid.UUID) *AddressDeleteOne
- func (c *AddressClient) Get(ctx context.Context, id uuid.UUID) (*Address, error)
- func (c *AddressClient) GetX(ctx context.Context, id uuid.UUID) *Address
- func (c *AddressClient) Hooks() []Hook
- func (c *AddressClient) Intercept(interceptors ...Interceptor)
- func (c *AddressClient) Interceptors() []Interceptor
- func (c *AddressClient) Query() *AddressQuery
- func (c *AddressClient) QueryBusiness(a *Address) *BusinessQuery
- func (c *AddressClient) QueryTimetables(a *Address) *TimetableQuery
- func (c *AddressClient) Update() *AddressUpdate
- func (c *AddressClient) UpdateOne(a *Address) *AddressUpdateOne
- func (c *AddressClient) UpdateOneID(id uuid.UUID) *AddressUpdateOne
- func (c *AddressClient) Use(hooks ...Hook)
- type AddressConnection
- type AddressCreate
- func (ac *AddressCreate) AddTimetableIDs(ids ...uuid.UUID) *AddressCreate
- func (ac *AddressCreate) AddTimetables(t ...*Timetable) *AddressCreate
- func (ac *AddressCreate) Exec(ctx context.Context) error
- func (ac *AddressCreate) ExecX(ctx context.Context)
- func (ac *AddressCreate) Mutation() *AddressMutation
- func (ac *AddressCreate) Save(ctx context.Context) (*Address, error)
- func (ac *AddressCreate) SaveX(ctx context.Context) *Address
- func (ac *AddressCreate) SetAddition(s string) *AddressCreate
- func (ac *AddressCreate) SetBusiness(b *Business) *AddressCreate
- func (ac *AddressCreate) SetBusinessID(id uuid.UUID) *AddressCreate
- func (ac *AddressCreate) SetCity(s string) *AddressCreate
- func (ac *AddressCreate) SetComment(s string) *AddressCreate
- func (ac *AddressCreate) SetCountry(s string) *AddressCreate
- func (ac *AddressCreate) SetCreatedAt(t time.Time) *AddressCreate
- func (ac *AddressCreate) SetDeletedAt(t time.Time) *AddressCreate
- func (ac *AddressCreate) SetID(u uuid.UUID) *AddressCreate
- func (c *AddressCreate) SetInput(i CreateAddressInput) *AddressCreate
- func (ac *AddressCreate) SetLocale(s string) *AddressCreate
- func (ac *AddressCreate) SetNillableAddition(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableBusinessID(id *uuid.UUID) *AddressCreate
- func (ac *AddressCreate) SetNillableCity(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableComment(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableCountry(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableCreatedAt(t *time.Time) *AddressCreate
- func (ac *AddressCreate) SetNillableDeletedAt(t *time.Time) *AddressCreate
- func (ac *AddressCreate) SetNillableID(u *uuid.UUID) *AddressCreate
- func (ac *AddressCreate) SetNillableLocale(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillablePrimary(b *bool) *AddressCreate
- func (ac *AddressCreate) SetNillableState(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableStreet(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableTelephone(s *string) *AddressCreate
- func (ac *AddressCreate) SetNillableUpdatedAt(t *time.Time) *AddressCreate
- func (ac *AddressCreate) SetNillableZip(s *string) *AddressCreate
- func (ac *AddressCreate) SetPrimary(b bool) *AddressCreate
- func (ac *AddressCreate) SetState(s string) *AddressCreate
- func (ac *AddressCreate) SetStreet(s string) *AddressCreate
- func (ac *AddressCreate) SetTelephone(s string) *AddressCreate
- func (ac *AddressCreate) SetUpdatedAt(t time.Time) *AddressCreate
- func (ac *AddressCreate) SetZip(s string) *AddressCreate
- type AddressCreateBulk
- type AddressDelete
- type AddressDeleteOne
- type AddressEdge
- type AddressEdges
- type AddressGroupBy
- func (agb *AddressGroupBy) Aggregate(fns ...AggregateFunc) *AddressGroupBy
- func (s *AddressGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AddressGroupBy) BoolX(ctx context.Context) bool
- func (s *AddressGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AddressGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AddressGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AddressGroupBy) Float64X(ctx context.Context) float64
- func (s *AddressGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AddressGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AddressGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AddressGroupBy) IntX(ctx context.Context) int
- func (s *AddressGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AddressGroupBy) IntsX(ctx context.Context) []int
- func (agb *AddressGroupBy) Scan(ctx context.Context, v any) error
- func (s *AddressGroupBy) ScanX(ctx context.Context, v any)
- func (s *AddressGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AddressGroupBy) StringX(ctx context.Context) string
- func (s *AddressGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AddressGroupBy) StringsX(ctx context.Context) []string
- type AddressMutation
- func (m *AddressMutation) AddField(name string, value ent.Value) error
- func (m *AddressMutation) AddTimetableIDs(ids ...uuid.UUID)
- func (m *AddressMutation) AddedEdges() []string
- func (m *AddressMutation) AddedField(name string) (ent.Value, bool)
- func (m *AddressMutation) AddedFields() []string
- func (m *AddressMutation) AddedIDs(name string) []ent.Value
- func (m *AddressMutation) Addition() (r string, exists bool)
- func (m *AddressMutation) AdditionCleared() bool
- func (m *AddressMutation) BusinessCleared() bool
- func (m *AddressMutation) BusinessID() (id uuid.UUID, exists bool)
- func (m *AddressMutation) BusinessIDs() (ids []uuid.UUID)
- func (m *AddressMutation) City() (r string, exists bool)
- func (m *AddressMutation) CityCleared() bool
- func (m *AddressMutation) ClearAddition()
- func (m *AddressMutation) ClearBusiness()
- func (m *AddressMutation) ClearCity()
- func (m *AddressMutation) ClearComment()
- func (m *AddressMutation) ClearCountry()
- func (m *AddressMutation) ClearDeletedAt()
- func (m *AddressMutation) ClearEdge(name string) error
- func (m *AddressMutation) ClearField(name string) error
- func (m *AddressMutation) ClearState()
- func (m *AddressMutation) ClearStreet()
- func (m *AddressMutation) ClearTelephone()
- func (m *AddressMutation) ClearTimetables()
- func (m *AddressMutation) ClearZip()
- func (m *AddressMutation) ClearedEdges() []string
- func (m *AddressMutation) ClearedFields() []string
- func (m AddressMutation) Client() *Client
- func (m *AddressMutation) Comment() (r string, exists bool)
- func (m *AddressMutation) CommentCleared() bool
- func (m *AddressMutation) Country() (r string, exists bool)
- func (m *AddressMutation) CountryCleared() bool
- func (m *AddressMutation) CreatedAt() (r time.Time, exists bool)
- func (m *AddressMutation) DeletedAt() (r time.Time, exists bool)
- func (m *AddressMutation) DeletedAtCleared() bool
- func (m *AddressMutation) EdgeCleared(name string) bool
- func (m *AddressMutation) Field(name string) (ent.Value, bool)
- func (m *AddressMutation) FieldCleared(name string) bool
- func (m *AddressMutation) Fields() []string
- func (m *AddressMutation) ID() (id uuid.UUID, exists bool)
- func (m *AddressMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *AddressMutation) Locale() (r string, exists bool)
- func (m *AddressMutation) OldAddition(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldCity(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldComment(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldCountry(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AddressMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *AddressMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AddressMutation) OldLocale(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldPrimary(ctx context.Context) (v bool, err error)
- func (m *AddressMutation) OldState(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldStreet(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldTelephone(ctx context.Context) (v string, err error)
- func (m *AddressMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AddressMutation) OldZip(ctx context.Context) (v string, err error)
- func (m *AddressMutation) Op() Op
- func (m *AddressMutation) Primary() (r bool, exists bool)
- func (m *AddressMutation) RemoveTimetableIDs(ids ...uuid.UUID)
- func (m *AddressMutation) RemovedEdges() []string
- func (m *AddressMutation) RemovedIDs(name string) []ent.Value
- func (m *AddressMutation) RemovedTimetablesIDs() (ids []uuid.UUID)
- func (m *AddressMutation) ResetAddition()
- func (m *AddressMutation) ResetBusiness()
- func (m *AddressMutation) ResetCity()
- func (m *AddressMutation) ResetComment()
- func (m *AddressMutation) ResetCountry()
- func (m *AddressMutation) ResetCreatedAt()
- func (m *AddressMutation) ResetDeletedAt()
- func (m *AddressMutation) ResetEdge(name string) error
- func (m *AddressMutation) ResetField(name string) error
- func (m *AddressMutation) ResetLocale()
- func (m *AddressMutation) ResetPrimary()
- func (m *AddressMutation) ResetState()
- func (m *AddressMutation) ResetStreet()
- func (m *AddressMutation) ResetTelephone()
- func (m *AddressMutation) ResetTimetables()
- func (m *AddressMutation) ResetUpdatedAt()
- func (m *AddressMutation) ResetZip()
- func (m *AddressMutation) SetAddition(s string)
- func (m *AddressMutation) SetBusinessID(id uuid.UUID)
- func (m *AddressMutation) SetCity(s string)
- func (m *AddressMutation) SetComment(s string)
- func (m *AddressMutation) SetCountry(s string)
- func (m *AddressMutation) SetCreatedAt(t time.Time)
- func (m *AddressMutation) SetDeletedAt(t time.Time)
- func (m *AddressMutation) SetField(name string, value ent.Value) error
- func (m *AddressMutation) SetID(id uuid.UUID)
- func (m *AddressMutation) SetLocale(s string)
- func (m *AddressMutation) SetOp(op Op)
- func (m *AddressMutation) SetPrimary(b bool)
- func (m *AddressMutation) SetState(s string)
- func (m *AddressMutation) SetStreet(s string)
- func (m *AddressMutation) SetTelephone(s string)
- func (m *AddressMutation) SetUpdatedAt(t time.Time)
- func (m *AddressMutation) SetZip(s string)
- func (m *AddressMutation) State() (r string, exists bool)
- func (m *AddressMutation) StateCleared() bool
- func (m *AddressMutation) Street() (r string, exists bool)
- func (m *AddressMutation) StreetCleared() bool
- func (m *AddressMutation) Telephone() (r string, exists bool)
- func (m *AddressMutation) TelephoneCleared() bool
- func (m *AddressMutation) TimetablesCleared() bool
- func (m *AddressMutation) TimetablesIDs() (ids []uuid.UUID)
- func (m AddressMutation) Tx() (*Tx, error)
- func (m *AddressMutation) Type() string
- func (m *AddressMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *AddressMutation) Where(ps ...predicate.Address)
- func (m *AddressMutation) WhereP(ps ...func(*sql.Selector))
- func (m *AddressMutation) Zip() (r string, exists bool)
- func (m *AddressMutation) ZipCleared() bool
- type AddressOrder
- type AddressOrderField
- type AddressPaginateOption
- type AddressQuery
- func (aq *AddressQuery) Aggregate(fns ...AggregateFunc) *AddressSelect
- func (aq *AddressQuery) All(ctx context.Context) ([]*Address, error)
- func (aq *AddressQuery) AllX(ctx context.Context) []*Address
- func (aq *AddressQuery) Clone() *AddressQuery
- func (a *AddressQuery) CollectFields(ctx context.Context, satisfies ...string) (*AddressQuery, error)
- func (aq *AddressQuery) Count(ctx context.Context) (int, error)
- func (aq *AddressQuery) CountX(ctx context.Context) int
- func (aq *AddressQuery) Exist(ctx context.Context) (bool, error)
- func (aq *AddressQuery) ExistX(ctx context.Context) bool
- func (aq *AddressQuery) First(ctx context.Context) (*Address, error)
- func (aq *AddressQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (aq *AddressQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (aq *AddressQuery) FirstX(ctx context.Context) *Address
- func (aq *AddressQuery) GroupBy(field string, fields ...string) *AddressGroupBy
- func (aq *AddressQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (aq *AddressQuery) IDsX(ctx context.Context) []uuid.UUID
- func (aq *AddressQuery) Limit(limit int) *AddressQuery
- func (aq *AddressQuery) Offset(offset int) *AddressQuery
- func (aq *AddressQuery) Only(ctx context.Context) (*Address, error)
- func (aq *AddressQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (aq *AddressQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (aq *AddressQuery) OnlyX(ctx context.Context) *Address
- func (aq *AddressQuery) Order(o ...address.OrderOption) *AddressQuery
- func (a *AddressQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*AddressConnection, error)
- func (aq *AddressQuery) QueryBusiness() *BusinessQuery
- func (aq *AddressQuery) QueryTimetables() *TimetableQuery
- func (aq *AddressQuery) Select(fields ...string) *AddressSelect
- func (aq *AddressQuery) Unique(unique bool) *AddressQuery
- func (aq *AddressQuery) Where(ps ...predicate.Address) *AddressQuery
- func (aq *AddressQuery) WithBusiness(opts ...func(*BusinessQuery)) *AddressQuery
- func (aq *AddressQuery) WithNamedTimetables(name string, opts ...func(*TimetableQuery)) *AddressQuery
- func (aq *AddressQuery) WithTimetables(opts ...func(*TimetableQuery)) *AddressQuery
- type AddressSelect
- func (as *AddressSelect) Aggregate(fns ...AggregateFunc) *AddressSelect
- func (s *AddressSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AddressSelect) BoolX(ctx context.Context) bool
- func (s *AddressSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AddressSelect) BoolsX(ctx context.Context) []bool
- func (s *AddressSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AddressSelect) Float64X(ctx context.Context) float64
- func (s *AddressSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AddressSelect) Float64sX(ctx context.Context) []float64
- func (s *AddressSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AddressSelect) IntX(ctx context.Context) int
- func (s *AddressSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AddressSelect) IntsX(ctx context.Context) []int
- func (as *AddressSelect) Scan(ctx context.Context, v any) error
- func (s *AddressSelect) ScanX(ctx context.Context, v any)
- func (s *AddressSelect) String(ctx context.Context) (_ string, err error)
- func (s *AddressSelect) StringX(ctx context.Context) string
- func (s *AddressSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AddressSelect) StringsX(ctx context.Context) []string
- type AddressUpdate
- func (au *AddressUpdate) AddTimetableIDs(ids ...uuid.UUID) *AddressUpdate
- func (au *AddressUpdate) AddTimetables(t ...*Timetable) *AddressUpdate
- func (au *AddressUpdate) ClearAddition() *AddressUpdate
- func (au *AddressUpdate) ClearBusiness() *AddressUpdate
- func (au *AddressUpdate) ClearCity() *AddressUpdate
- func (au *AddressUpdate) ClearComment() *AddressUpdate
- func (au *AddressUpdate) ClearCountry() *AddressUpdate
- func (au *AddressUpdate) ClearDeletedAt() *AddressUpdate
- func (au *AddressUpdate) ClearState() *AddressUpdate
- func (au *AddressUpdate) ClearStreet() *AddressUpdate
- func (au *AddressUpdate) ClearTelephone() *AddressUpdate
- func (au *AddressUpdate) ClearTimetables() *AddressUpdate
- func (au *AddressUpdate) ClearZip() *AddressUpdate
- func (au *AddressUpdate) Exec(ctx context.Context) error
- func (au *AddressUpdate) ExecX(ctx context.Context)
- func (au *AddressUpdate) Mutation() *AddressMutation
- func (au *AddressUpdate) RemoveTimetableIDs(ids ...uuid.UUID) *AddressUpdate
- func (au *AddressUpdate) RemoveTimetables(t ...*Timetable) *AddressUpdate
- func (au *AddressUpdate) Save(ctx context.Context) (int, error)
- func (au *AddressUpdate) SaveX(ctx context.Context) int
- func (au *AddressUpdate) SetAddition(s string) *AddressUpdate
- func (au *AddressUpdate) SetBusiness(b *Business) *AddressUpdate
- func (au *AddressUpdate) SetBusinessID(id uuid.UUID) *AddressUpdate
- func (au *AddressUpdate) SetCity(s string) *AddressUpdate
- func (au *AddressUpdate) SetComment(s string) *AddressUpdate
- func (au *AddressUpdate) SetCountry(s string) *AddressUpdate
- func (au *AddressUpdate) SetDeletedAt(t time.Time) *AddressUpdate
- func (c *AddressUpdate) SetInput(i UpdateAddressInput) *AddressUpdate
- func (au *AddressUpdate) SetLocale(s string) *AddressUpdate
- func (au *AddressUpdate) SetNillableAddition(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableBusinessID(id *uuid.UUID) *AddressUpdate
- func (au *AddressUpdate) SetNillableCity(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableComment(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableCountry(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableDeletedAt(t *time.Time) *AddressUpdate
- func (au *AddressUpdate) SetNillableLocale(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillablePrimary(b *bool) *AddressUpdate
- func (au *AddressUpdate) SetNillableState(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableStreet(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableTelephone(s *string) *AddressUpdate
- func (au *AddressUpdate) SetNillableZip(s *string) *AddressUpdate
- func (au *AddressUpdate) SetPrimary(b bool) *AddressUpdate
- func (au *AddressUpdate) SetState(s string) *AddressUpdate
- func (au *AddressUpdate) SetStreet(s string) *AddressUpdate
- func (au *AddressUpdate) SetTelephone(s string) *AddressUpdate
- func (au *AddressUpdate) SetUpdatedAt(t time.Time) *AddressUpdate
- func (au *AddressUpdate) SetZip(s string) *AddressUpdate
- func (au *AddressUpdate) Where(ps ...predicate.Address) *AddressUpdate
- type AddressUpdateOne
- func (auo *AddressUpdateOne) AddTimetableIDs(ids ...uuid.UUID) *AddressUpdateOne
- func (auo *AddressUpdateOne) AddTimetables(t ...*Timetable) *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearAddition() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearBusiness() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearCity() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearComment() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearCountry() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearDeletedAt() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearState() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearStreet() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearTelephone() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearTimetables() *AddressUpdateOne
- func (auo *AddressUpdateOne) ClearZip() *AddressUpdateOne
- func (auo *AddressUpdateOne) Exec(ctx context.Context) error
- func (auo *AddressUpdateOne) ExecX(ctx context.Context)
- func (auo *AddressUpdateOne) Mutation() *AddressMutation
- func (auo *AddressUpdateOne) RemoveTimetableIDs(ids ...uuid.UUID) *AddressUpdateOne
- func (auo *AddressUpdateOne) RemoveTimetables(t ...*Timetable) *AddressUpdateOne
- func (auo *AddressUpdateOne) Save(ctx context.Context) (*Address, error)
- func (auo *AddressUpdateOne) SaveX(ctx context.Context) *Address
- func (auo *AddressUpdateOne) Select(field string, fields ...string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetAddition(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetBusiness(b *Business) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetBusinessID(id uuid.UUID) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetCity(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetComment(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetCountry(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetDeletedAt(t time.Time) *AddressUpdateOne
- func (c *AddressUpdateOne) SetInput(i UpdateAddressInput) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetLocale(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableAddition(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableBusinessID(id *uuid.UUID) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableCity(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableComment(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableCountry(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableDeletedAt(t *time.Time) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableLocale(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillablePrimary(b *bool) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableState(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableStreet(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableTelephone(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetNillableZip(s *string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetPrimary(b bool) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetState(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetStreet(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetTelephone(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetUpdatedAt(t time.Time) *AddressUpdateOne
- func (auo *AddressUpdateOne) SetZip(s string) *AddressUpdateOne
- func (auo *AddressUpdateOne) Where(ps ...predicate.Address) *AddressUpdateOne
- type AddressWhereInput
- type Addresses
- type AggregateFunc
- type AuditLog
- func (n *AuditLog) IsNode()
- func (al *AuditLog) Node(ctx context.Context) (node *Node, err error)
- func (al *AuditLog) String() string
- func (al *AuditLog) ToEdge(order *AuditLogOrder) *AuditLogEdge
- func (al *AuditLog) Unwrap() *AuditLog
- func (al *AuditLog) Update() *AuditLogUpdateOne
- func (al *AuditLog) Value(name string) (ent.Value, error)
- type AuditLogClient
- func (c *AuditLogClient) Create() *AuditLogCreate
- func (c *AuditLogClient) CreateBulk(builders ...*AuditLogCreate) *AuditLogCreateBulk
- func (c *AuditLogClient) Delete() *AuditLogDelete
- func (c *AuditLogClient) DeleteOne(al *AuditLog) *AuditLogDeleteOne
- func (c *AuditLogClient) DeleteOneID(id uuid.UUID) *AuditLogDeleteOne
- func (c *AuditLogClient) Get(ctx context.Context, id uuid.UUID) (*AuditLog, error)
- func (c *AuditLogClient) GetX(ctx context.Context, id uuid.UUID) *AuditLog
- func (c *AuditLogClient) Hooks() []Hook
- func (c *AuditLogClient) Intercept(interceptors ...Interceptor)
- func (c *AuditLogClient) Interceptors() []Interceptor
- func (c *AuditLogClient) Query() *AuditLogQuery
- func (c *AuditLogClient) Update() *AuditLogUpdate
- func (c *AuditLogClient) UpdateOne(al *AuditLog) *AuditLogUpdateOne
- func (c *AuditLogClient) UpdateOneID(id uuid.UUID) *AuditLogUpdateOne
- func (c *AuditLogClient) Use(hooks ...Hook)
- type AuditLogConnection
- type AuditLogCreate
- func (alc *AuditLogCreate) Exec(ctx context.Context) error
- func (alc *AuditLogCreate) ExecX(ctx context.Context)
- func (alc *AuditLogCreate) Mutation() *AuditLogMutation
- func (alc *AuditLogCreate) Save(ctx context.Context) (*AuditLog, error)
- func (alc *AuditLogCreate) SaveX(ctx context.Context) *AuditLog
- func (alc *AuditLogCreate) SetAction(s string) *AuditLogCreate
- func (alc *AuditLogCreate) SetEntitySchema(s string) *AuditLogCreate
- func (alc *AuditLogCreate) SetEntityUUID(s string) *AuditLogCreate
- func (alc *AuditLogCreate) SetEntityValues(m map[string]interface{}) *AuditLogCreate
- func (alc *AuditLogCreate) SetID(u uuid.UUID) *AuditLogCreate
- func (alc *AuditLogCreate) SetNillableEntityUUID(s *string) *AuditLogCreate
- func (alc *AuditLogCreate) SetNillableID(u *uuid.UUID) *AuditLogCreate
- func (alc *AuditLogCreate) SetNillableTimestamp(t *time.Time) *AuditLogCreate
- func (alc *AuditLogCreate) SetTimestamp(t time.Time) *AuditLogCreate
- func (alc *AuditLogCreate) SetUser(s string) *AuditLogCreate
- type AuditLogCreateBulk
- type AuditLogDelete
- type AuditLogDeleteOne
- type AuditLogEdge
- type AuditLogGroupBy
- func (algb *AuditLogGroupBy) Aggregate(fns ...AggregateFunc) *AuditLogGroupBy
- func (s *AuditLogGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AuditLogGroupBy) BoolX(ctx context.Context) bool
- func (s *AuditLogGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AuditLogGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AuditLogGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AuditLogGroupBy) Float64X(ctx context.Context) float64
- func (s *AuditLogGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AuditLogGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AuditLogGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AuditLogGroupBy) IntX(ctx context.Context) int
- func (s *AuditLogGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AuditLogGroupBy) IntsX(ctx context.Context) []int
- func (algb *AuditLogGroupBy) Scan(ctx context.Context, v any) error
- func (s *AuditLogGroupBy) ScanX(ctx context.Context, v any)
- func (s *AuditLogGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AuditLogGroupBy) StringX(ctx context.Context) string
- func (s *AuditLogGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AuditLogGroupBy) StringsX(ctx context.Context) []string
- type AuditLogMutation
- func (m *AuditLogMutation) Action() (r string, exists bool)
- func (m *AuditLogMutation) AddField(name string, value ent.Value) error
- func (m *AuditLogMutation) AddedEdges() []string
- func (m *AuditLogMutation) AddedField(name string) (ent.Value, bool)
- func (m *AuditLogMutation) AddedFields() []string
- func (m *AuditLogMutation) AddedIDs(name string) []ent.Value
- func (m *AuditLogMutation) ClearEdge(name string) error
- func (m *AuditLogMutation) ClearEntityUUID()
- func (m *AuditLogMutation) ClearEntityValues()
- func (m *AuditLogMutation) ClearField(name string) error
- func (m *AuditLogMutation) ClearedEdges() []string
- func (m *AuditLogMutation) ClearedFields() []string
- func (m AuditLogMutation) Client() *Client
- func (m *AuditLogMutation) EdgeCleared(name string) bool
- func (m *AuditLogMutation) EntitySchema() (r string, exists bool)
- func (m *AuditLogMutation) EntityUUID() (r string, exists bool)
- func (m *AuditLogMutation) EntityUUIDCleared() bool
- func (m *AuditLogMutation) EntityValues() (r map[string]interface{}, exists bool)
- func (m *AuditLogMutation) EntityValuesCleared() bool
- func (m *AuditLogMutation) Field(name string) (ent.Value, bool)
- func (m *AuditLogMutation) FieldCleared(name string) bool
- func (m *AuditLogMutation) Fields() []string
- func (m *AuditLogMutation) ID() (id uuid.UUID, exists bool)
- func (m *AuditLogMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *AuditLogMutation) OldAction(ctx context.Context) (v string, err error)
- func (m *AuditLogMutation) OldEntitySchema(ctx context.Context) (v string, err error)
- func (m *AuditLogMutation) OldEntityUUID(ctx context.Context) (v string, err error)
- func (m *AuditLogMutation) OldEntityValues(ctx context.Context) (v map[string]interface{}, err error)
- func (m *AuditLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AuditLogMutation) OldTimestamp(ctx context.Context) (v time.Time, err error)
- func (m *AuditLogMutation) OldUser(ctx context.Context) (v string, err error)
- func (m *AuditLogMutation) Op() Op
- func (m *AuditLogMutation) RemovedEdges() []string
- func (m *AuditLogMutation) RemovedIDs(name string) []ent.Value
- func (m *AuditLogMutation) ResetAction()
- func (m *AuditLogMutation) ResetEdge(name string) error
- func (m *AuditLogMutation) ResetEntitySchema()
- func (m *AuditLogMutation) ResetEntityUUID()
- func (m *AuditLogMutation) ResetEntityValues()
- func (m *AuditLogMutation) ResetField(name string) error
- func (m *AuditLogMutation) ResetTimestamp()
- func (m *AuditLogMutation) ResetUser()
- func (m *AuditLogMutation) SetAction(s string)
- func (m *AuditLogMutation) SetEntitySchema(s string)
- func (m *AuditLogMutation) SetEntityUUID(s string)
- func (m *AuditLogMutation) SetEntityValues(value map[string]interface{})
- func (m *AuditLogMutation) SetField(name string, value ent.Value) error
- func (m *AuditLogMutation) SetID(id uuid.UUID)
- func (m *AuditLogMutation) SetOp(op Op)
- func (m *AuditLogMutation) SetTimestamp(t time.Time)
- func (m *AuditLogMutation) SetUser(s string)
- func (m *AuditLogMutation) Timestamp() (r time.Time, exists bool)
- func (m AuditLogMutation) Tx() (*Tx, error)
- func (m *AuditLogMutation) Type() string
- func (m *AuditLogMutation) User() (r string, exists bool)
- func (m *AuditLogMutation) Where(ps ...predicate.AuditLog)
- func (m *AuditLogMutation) WhereP(ps ...func(*sql.Selector))
- type AuditLogOrder
- type AuditLogOrderField
- type AuditLogPaginateOption
- type AuditLogQuery
- func (alq *AuditLogQuery) Aggregate(fns ...AggregateFunc) *AuditLogSelect
- func (alq *AuditLogQuery) All(ctx context.Context) ([]*AuditLog, error)
- func (alq *AuditLogQuery) AllX(ctx context.Context) []*AuditLog
- func (alq *AuditLogQuery) Clone() *AuditLogQuery
- func (al *AuditLogQuery) CollectFields(ctx context.Context, satisfies ...string) (*AuditLogQuery, error)
- func (alq *AuditLogQuery) Count(ctx context.Context) (int, error)
- func (alq *AuditLogQuery) CountX(ctx context.Context) int
- func (alq *AuditLogQuery) Exist(ctx context.Context) (bool, error)
- func (alq *AuditLogQuery) ExistX(ctx context.Context) bool
- func (alq *AuditLogQuery) First(ctx context.Context) (*AuditLog, error)
- func (alq *AuditLogQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (alq *AuditLogQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (alq *AuditLogQuery) FirstX(ctx context.Context) *AuditLog
- func (alq *AuditLogQuery) GroupBy(field string, fields ...string) *AuditLogGroupBy
- func (alq *AuditLogQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (alq *AuditLogQuery) IDsX(ctx context.Context) []uuid.UUID
- func (alq *AuditLogQuery) Limit(limit int) *AuditLogQuery
- func (alq *AuditLogQuery) Offset(offset int) *AuditLogQuery
- func (alq *AuditLogQuery) Only(ctx context.Context) (*AuditLog, error)
- func (alq *AuditLogQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (alq *AuditLogQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (alq *AuditLogQuery) OnlyX(ctx context.Context) *AuditLog
- func (alq *AuditLogQuery) Order(o ...auditlog.OrderOption) *AuditLogQuery
- func (al *AuditLogQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*AuditLogConnection, error)
- func (alq *AuditLogQuery) Select(fields ...string) *AuditLogSelect
- func (alq *AuditLogQuery) Unique(unique bool) *AuditLogQuery
- func (alq *AuditLogQuery) Where(ps ...predicate.AuditLog) *AuditLogQuery
- type AuditLogSelect
- func (als *AuditLogSelect) Aggregate(fns ...AggregateFunc) *AuditLogSelect
- func (s *AuditLogSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AuditLogSelect) BoolX(ctx context.Context) bool
- func (s *AuditLogSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AuditLogSelect) BoolsX(ctx context.Context) []bool
- func (s *AuditLogSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AuditLogSelect) Float64X(ctx context.Context) float64
- func (s *AuditLogSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AuditLogSelect) Float64sX(ctx context.Context) []float64
- func (s *AuditLogSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AuditLogSelect) IntX(ctx context.Context) int
- func (s *AuditLogSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AuditLogSelect) IntsX(ctx context.Context) []int
- func (als *AuditLogSelect) Scan(ctx context.Context, v any) error
- func (s *AuditLogSelect) ScanX(ctx context.Context, v any)
- func (s *AuditLogSelect) String(ctx context.Context) (_ string, err error)
- func (s *AuditLogSelect) StringX(ctx context.Context) string
- func (s *AuditLogSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AuditLogSelect) StringsX(ctx context.Context) []string
- type AuditLogUpdate
- func (alu *AuditLogUpdate) Exec(ctx context.Context) error
- func (alu *AuditLogUpdate) ExecX(ctx context.Context)
- func (alu *AuditLogUpdate) Mutation() *AuditLogMutation
- func (alu *AuditLogUpdate) Save(ctx context.Context) (int, error)
- func (alu *AuditLogUpdate) SaveX(ctx context.Context) int
- func (alu *AuditLogUpdate) Where(ps ...predicate.AuditLog) *AuditLogUpdate
- type AuditLogUpdateOne
- func (aluo *AuditLogUpdateOne) Exec(ctx context.Context) error
- func (aluo *AuditLogUpdateOne) ExecX(ctx context.Context)
- func (aluo *AuditLogUpdateOne) Mutation() *AuditLogMutation
- func (aluo *AuditLogUpdateOne) Save(ctx context.Context) (*AuditLog, error)
- func (aluo *AuditLogUpdateOne) SaveX(ctx context.Context) *AuditLog
- func (aluo *AuditLogUpdateOne) Select(field string, fields ...string) *AuditLogUpdateOne
- func (aluo *AuditLogUpdateOne) Where(ps ...predicate.AuditLog) *AuditLogUpdateOne
- type AuditLogWhereInput
- type AuditLogs
- type Business
- func (b *Business) Addresses(ctx context.Context) (result []*Address, err error)
- func (n *Business) IsNode()
- func (b *Business) NamedAddresses(name string) ([]*Address, error)
- func (b *Business) NamedOperators(name string) ([]*Operator, error)
- func (b *Business) NamedTags(name string) ([]*Tag, error)
- func (b *Business) NamedUsers(name string) ([]*User, error)
- func (b *Business) Node(ctx context.Context) (node *Node, err error)
- func (b *Business) Operators(ctx context.Context) (result []*Operator, err error)
- func (b *Business) QueryAddresses() *AddressQuery
- func (b *Business) QueryOperators() *OperatorQuery
- func (b *Business) QueryTags() *TagQuery
- func (b *Business) QueryUsers() *UserQuery
- func (b *Business) String() string
- func (b *Business) Tags(ctx context.Context) (result []*Tag, err error)
- func (b *Business) ToEdge(order *BusinessOrder) *BusinessEdge
- func (b *Business) Unwrap() *Business
- func (b *Business) Update() *BusinessUpdateOne
- func (b *Business) Users(ctx context.Context) (result []*User, err error)
- func (b *Business) Value(name string) (ent.Value, error)
- type BusinessClient
- func (c *BusinessClient) Create() *BusinessCreate
- func (c *BusinessClient) CreateBulk(builders ...*BusinessCreate) *BusinessCreateBulk
- func (c *BusinessClient) Delete() *BusinessDelete
- func (c *BusinessClient) DeleteOne(b *Business) *BusinessDeleteOne
- func (c *BusinessClient) DeleteOneID(id uuid.UUID) *BusinessDeleteOne
- func (c *BusinessClient) Get(ctx context.Context, id uuid.UUID) (*Business, error)
- func (c *BusinessClient) GetX(ctx context.Context, id uuid.UUID) *Business
- func (c *BusinessClient) Hooks() []Hook
- func (c *BusinessClient) Intercept(interceptors ...Interceptor)
- func (c *BusinessClient) Interceptors() []Interceptor
- func (c *BusinessClient) Query() *BusinessQuery
- func (c *BusinessClient) QueryAddresses(b *Business) *AddressQuery
- func (c *BusinessClient) QueryOperators(b *Business) *OperatorQuery
- func (c *BusinessClient) QueryTags(b *Business) *TagQuery
- func (c *BusinessClient) QueryUsers(b *Business) *UserQuery
- func (c *BusinessClient) Update() *BusinessUpdate
- func (c *BusinessClient) UpdateOne(b *Business) *BusinessUpdateOne
- func (c *BusinessClient) UpdateOneID(id uuid.UUID) *BusinessUpdateOne
- func (c *BusinessClient) Use(hooks ...Hook)
- type BusinessConnection
- type BusinessCreate
- func (bc *BusinessCreate) AddAddressIDs(ids ...uuid.UUID) *BusinessCreate
- func (bc *BusinessCreate) AddAddresses(a ...*Address) *BusinessCreate
- func (bc *BusinessCreate) AddOperatorIDs(ids ...uuid.UUID) *BusinessCreate
- func (bc *BusinessCreate) AddOperators(o ...*Operator) *BusinessCreate
- func (bc *BusinessCreate) AddTagIDs(ids ...uuid.UUID) *BusinessCreate
- func (bc *BusinessCreate) AddTags(t ...*Tag) *BusinessCreate
- func (bc *BusinessCreate) AddUserIDs(ids ...uuid.UUID) *BusinessCreate
- func (bc *BusinessCreate) AddUsers(u ...*User) *BusinessCreate
- func (bc *BusinessCreate) Exec(ctx context.Context) error
- func (bc *BusinessCreate) ExecX(ctx context.Context)
- func (bc *BusinessCreate) Mutation() *BusinessMutation
- func (bc *BusinessCreate) Save(ctx context.Context) (*Business, error)
- func (bc *BusinessCreate) SaveX(ctx context.Context) *Business
- func (bc *BusinessCreate) SetActive(b bool) *BusinessCreate
- func (bc *BusinessCreate) SetAlias(s string) *BusinessCreate
- func (bc *BusinessCreate) SetComment(s string) *BusinessCreate
- func (bc *BusinessCreate) SetCreatedAt(t time.Time) *BusinessCreate
- func (bc *BusinessCreate) SetDeletedAt(t time.Time) *BusinessCreate
- func (bc *BusinessCreate) SetEmail(s string) *BusinessCreate
- func (bc *BusinessCreate) SetID(u uuid.UUID) *BusinessCreate
- func (c *BusinessCreate) SetInput(i CreateBusinessInput) *BusinessCreate
- func (bc *BusinessCreate) SetName1(s string) *BusinessCreate
- func (bc *BusinessCreate) SetName2(s string) *BusinessCreate
- func (bc *BusinessCreate) SetNillableActive(b *bool) *BusinessCreate
- func (bc *BusinessCreate) SetNillableComment(s *string) *BusinessCreate
- func (bc *BusinessCreate) SetNillableCreatedAt(t *time.Time) *BusinessCreate
- func (bc *BusinessCreate) SetNillableDeletedAt(t *time.Time) *BusinessCreate
- func (bc *BusinessCreate) SetNillableEmail(s *string) *BusinessCreate
- func (bc *BusinessCreate) SetNillableID(u *uuid.UUID) *BusinessCreate
- func (bc *BusinessCreate) SetNillableName2(s *string) *BusinessCreate
- func (bc *BusinessCreate) SetNillableTelephone(s *string) *BusinessCreate
- func (bc *BusinessCreate) SetNillableUpdatedAt(t *time.Time) *BusinessCreate
- func (bc *BusinessCreate) SetNillableWebsite(s *string) *BusinessCreate
- func (bc *BusinessCreate) SetTelephone(s string) *BusinessCreate
- func (bc *BusinessCreate) SetUpdatedAt(t time.Time) *BusinessCreate
- func (bc *BusinessCreate) SetWebsite(s string) *BusinessCreate
- type BusinessCreateBulk
- type BusinessDelete
- type BusinessDeleteOne
- type BusinessEdge
- type BusinessEdges
- type BusinessGroupBy
- func (bgb *BusinessGroupBy) Aggregate(fns ...AggregateFunc) *BusinessGroupBy
- func (s *BusinessGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BusinessGroupBy) BoolX(ctx context.Context) bool
- func (s *BusinessGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BusinessGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BusinessGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BusinessGroupBy) Float64X(ctx context.Context) float64
- func (s *BusinessGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BusinessGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BusinessGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BusinessGroupBy) IntX(ctx context.Context) int
- func (s *BusinessGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BusinessGroupBy) IntsX(ctx context.Context) []int
- func (bgb *BusinessGroupBy) Scan(ctx context.Context, v any) error
- func (s *BusinessGroupBy) ScanX(ctx context.Context, v any)
- func (s *BusinessGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BusinessGroupBy) StringX(ctx context.Context) string
- func (s *BusinessGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BusinessGroupBy) StringsX(ctx context.Context) []string
- type BusinessMutation
- func (m *BusinessMutation) Active() (r bool, exists bool)
- func (m *BusinessMutation) AddAddressIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) AddField(name string, value ent.Value) error
- func (m *BusinessMutation) AddOperatorIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) AddTagIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) AddUserIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) AddedEdges() []string
- func (m *BusinessMutation) AddedField(name string) (ent.Value, bool)
- func (m *BusinessMutation) AddedFields() []string
- func (m *BusinessMutation) AddedIDs(name string) []ent.Value
- func (m *BusinessMutation) AddressesCleared() bool
- func (m *BusinessMutation) AddressesIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) Alias() (r string, exists bool)
- func (m *BusinessMutation) ClearAddresses()
- func (m *BusinessMutation) ClearComment()
- func (m *BusinessMutation) ClearDeletedAt()
- func (m *BusinessMutation) ClearEdge(name string) error
- func (m *BusinessMutation) ClearEmail()
- func (m *BusinessMutation) ClearField(name string) error
- func (m *BusinessMutation) ClearName2()
- func (m *BusinessMutation) ClearOperators()
- func (m *BusinessMutation) ClearTags()
- func (m *BusinessMutation) ClearTelephone()
- func (m *BusinessMutation) ClearUsers()
- func (m *BusinessMutation) ClearWebsite()
- func (m *BusinessMutation) ClearedEdges() []string
- func (m *BusinessMutation) ClearedFields() []string
- func (m BusinessMutation) Client() *Client
- func (m *BusinessMutation) Comment() (r string, exists bool)
- func (m *BusinessMutation) CommentCleared() bool
- func (m *BusinessMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BusinessMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BusinessMutation) DeletedAtCleared() bool
- func (m *BusinessMutation) EdgeCleared(name string) bool
- func (m *BusinessMutation) Email() (r string, exists bool)
- func (m *BusinessMutation) EmailCleared() bool
- func (m *BusinessMutation) Field(name string) (ent.Value, bool)
- func (m *BusinessMutation) FieldCleared(name string) bool
- func (m *BusinessMutation) Fields() []string
- func (m *BusinessMutation) ID() (id uuid.UUID, exists bool)
- func (m *BusinessMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *BusinessMutation) Name1() (r string, exists bool)
- func (m *BusinessMutation) Name2() (r string, exists bool)
- func (m *BusinessMutation) Name2Cleared() bool
- func (m *BusinessMutation) OldActive(ctx context.Context) (v bool, err error)
- func (m *BusinessMutation) OldAlias(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) OldComment(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BusinessMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *BusinessMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BusinessMutation) OldName1(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) OldName2(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) OldTelephone(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BusinessMutation) OldWebsite(ctx context.Context) (v string, err error)
- func (m *BusinessMutation) Op() Op
- func (m *BusinessMutation) OperatorsCleared() bool
- func (m *BusinessMutation) OperatorsIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) RemoveAddressIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) RemoveOperatorIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) RemoveTagIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) RemoveUserIDs(ids ...uuid.UUID)
- func (m *BusinessMutation) RemovedAddressesIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) RemovedEdges() []string
- func (m *BusinessMutation) RemovedIDs(name string) []ent.Value
- func (m *BusinessMutation) RemovedOperatorsIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) RemovedTagsIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) RemovedUsersIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) ResetActive()
- func (m *BusinessMutation) ResetAddresses()
- func (m *BusinessMutation) ResetAlias()
- func (m *BusinessMutation) ResetComment()
- func (m *BusinessMutation) ResetCreatedAt()
- func (m *BusinessMutation) ResetDeletedAt()
- func (m *BusinessMutation) ResetEdge(name string) error
- func (m *BusinessMutation) ResetEmail()
- func (m *BusinessMutation) ResetField(name string) error
- func (m *BusinessMutation) ResetName1()
- func (m *BusinessMutation) ResetName2()
- func (m *BusinessMutation) ResetOperators()
- func (m *BusinessMutation) ResetTags()
- func (m *BusinessMutation) ResetTelephone()
- func (m *BusinessMutation) ResetUpdatedAt()
- func (m *BusinessMutation) ResetUsers()
- func (m *BusinessMutation) ResetWebsite()
- func (m *BusinessMutation) SetActive(b bool)
- func (m *BusinessMutation) SetAlias(s string)
- func (m *BusinessMutation) SetComment(s string)
- func (m *BusinessMutation) SetCreatedAt(t time.Time)
- func (m *BusinessMutation) SetDeletedAt(t time.Time)
- func (m *BusinessMutation) SetEmail(s string)
- func (m *BusinessMutation) SetField(name string, value ent.Value) error
- func (m *BusinessMutation) SetID(id uuid.UUID)
- func (m *BusinessMutation) SetName1(s string)
- func (m *BusinessMutation) SetName2(s string)
- func (m *BusinessMutation) SetOp(op Op)
- func (m *BusinessMutation) SetTelephone(s string)
- func (m *BusinessMutation) SetUpdatedAt(t time.Time)
- func (m *BusinessMutation) SetWebsite(s string)
- func (m *BusinessMutation) TagsCleared() bool
- func (m *BusinessMutation) TagsIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) Telephone() (r string, exists bool)
- func (m *BusinessMutation) TelephoneCleared() bool
- func (m BusinessMutation) Tx() (*Tx, error)
- func (m *BusinessMutation) Type() string
- func (m *BusinessMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BusinessMutation) UsersCleared() bool
- func (m *BusinessMutation) UsersIDs() (ids []uuid.UUID)
- func (m *BusinessMutation) Website() (r string, exists bool)
- func (m *BusinessMutation) WebsiteCleared() bool
- func (m *BusinessMutation) Where(ps ...predicate.Business)
- func (m *BusinessMutation) WhereP(ps ...func(*sql.Selector))
- type BusinessOrder
- type BusinessOrderField
- type BusinessPaginateOption
- type BusinessQuery
- func (bq *BusinessQuery) Aggregate(fns ...AggregateFunc) *BusinessSelect
- func (bq *BusinessQuery) All(ctx context.Context) ([]*Business, error)
- func (bq *BusinessQuery) AllX(ctx context.Context) []*Business
- func (bq *BusinessQuery) Clone() *BusinessQuery
- func (b *BusinessQuery) CollectFields(ctx context.Context, satisfies ...string) (*BusinessQuery, error)
- func (bq *BusinessQuery) Count(ctx context.Context) (int, error)
- func (bq *BusinessQuery) CountX(ctx context.Context) int
- func (bq *BusinessQuery) Exist(ctx context.Context) (bool, error)
- func (bq *BusinessQuery) ExistX(ctx context.Context) bool
- func (bq *BusinessQuery) First(ctx context.Context) (*Business, error)
- func (bq *BusinessQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (bq *BusinessQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (bq *BusinessQuery) FirstX(ctx context.Context) *Business
- func (bq *BusinessQuery) GroupBy(field string, fields ...string) *BusinessGroupBy
- func (bq *BusinessQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (bq *BusinessQuery) IDsX(ctx context.Context) []uuid.UUID
- func (bq *BusinessQuery) Limit(limit int) *BusinessQuery
- func (bq *BusinessQuery) Offset(offset int) *BusinessQuery
- func (bq *BusinessQuery) Only(ctx context.Context) (*Business, error)
- func (bq *BusinessQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (bq *BusinessQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (bq *BusinessQuery) OnlyX(ctx context.Context) *Business
- func (bq *BusinessQuery) Order(o ...business.OrderOption) *BusinessQuery
- func (b *BusinessQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*BusinessConnection, error)
- func (bq *BusinessQuery) QueryAddresses() *AddressQuery
- func (bq *BusinessQuery) QueryOperators() *OperatorQuery
- func (bq *BusinessQuery) QueryTags() *TagQuery
- func (bq *BusinessQuery) QueryUsers() *UserQuery
- func (bq *BusinessQuery) Select(fields ...string) *BusinessSelect
- func (bq *BusinessQuery) Unique(unique bool) *BusinessQuery
- func (bq *BusinessQuery) Where(ps ...predicate.Business) *BusinessQuery
- func (bq *BusinessQuery) WithAddresses(opts ...func(*AddressQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithNamedAddresses(name string, opts ...func(*AddressQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithNamedOperators(name string, opts ...func(*OperatorQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithNamedTags(name string, opts ...func(*TagQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithOperators(opts ...func(*OperatorQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithTags(opts ...func(*TagQuery)) *BusinessQuery
- func (bq *BusinessQuery) WithUsers(opts ...func(*UserQuery)) *BusinessQuery
- type BusinessSelect
- func (bs *BusinessSelect) Aggregate(fns ...AggregateFunc) *BusinessSelect
- func (s *BusinessSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BusinessSelect) BoolX(ctx context.Context) bool
- func (s *BusinessSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BusinessSelect) BoolsX(ctx context.Context) []bool
- func (s *BusinessSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BusinessSelect) Float64X(ctx context.Context) float64
- func (s *BusinessSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BusinessSelect) Float64sX(ctx context.Context) []float64
- func (s *BusinessSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BusinessSelect) IntX(ctx context.Context) int
- func (s *BusinessSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BusinessSelect) IntsX(ctx context.Context) []int
- func (bs *BusinessSelect) Scan(ctx context.Context, v any) error
- func (s *BusinessSelect) ScanX(ctx context.Context, v any)
- func (s *BusinessSelect) String(ctx context.Context) (_ string, err error)
- func (s *BusinessSelect) StringX(ctx context.Context) string
- func (s *BusinessSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BusinessSelect) StringsX(ctx context.Context) []string
- type BusinessUpdate
- func (bu *BusinessUpdate) AddAddressIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) AddAddresses(a ...*Address) *BusinessUpdate
- func (bu *BusinessUpdate) AddOperatorIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) AddOperators(o ...*Operator) *BusinessUpdate
- func (bu *BusinessUpdate) AddTagIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) AddTags(t ...*Tag) *BusinessUpdate
- func (bu *BusinessUpdate) AddUserIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) AddUsers(u ...*User) *BusinessUpdate
- func (bu *BusinessUpdate) ClearAddresses() *BusinessUpdate
- func (bu *BusinessUpdate) ClearComment() *BusinessUpdate
- func (bu *BusinessUpdate) ClearDeletedAt() *BusinessUpdate
- func (bu *BusinessUpdate) ClearEmail() *BusinessUpdate
- func (bu *BusinessUpdate) ClearName2() *BusinessUpdate
- func (bu *BusinessUpdate) ClearOperators() *BusinessUpdate
- func (bu *BusinessUpdate) ClearTags() *BusinessUpdate
- func (bu *BusinessUpdate) ClearTelephone() *BusinessUpdate
- func (bu *BusinessUpdate) ClearUsers() *BusinessUpdate
- func (bu *BusinessUpdate) ClearWebsite() *BusinessUpdate
- func (bu *BusinessUpdate) Exec(ctx context.Context) error
- func (bu *BusinessUpdate) ExecX(ctx context.Context)
- func (bu *BusinessUpdate) Mutation() *BusinessMutation
- func (bu *BusinessUpdate) RemoveAddressIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveAddresses(a ...*Address) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveOperatorIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveOperators(o ...*Operator) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveTagIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveTags(t ...*Tag) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveUserIDs(ids ...uuid.UUID) *BusinessUpdate
- func (bu *BusinessUpdate) RemoveUsers(u ...*User) *BusinessUpdate
- func (bu *BusinessUpdate) Save(ctx context.Context) (int, error)
- func (bu *BusinessUpdate) SaveX(ctx context.Context) int
- func (bu *BusinessUpdate) SetActive(b bool) *BusinessUpdate
- func (bu *BusinessUpdate) SetAlias(s string) *BusinessUpdate
- func (bu *BusinessUpdate) SetComment(s string) *BusinessUpdate
- func (bu *BusinessUpdate) SetDeletedAt(t time.Time) *BusinessUpdate
- func (bu *BusinessUpdate) SetEmail(s string) *BusinessUpdate
- func (c *BusinessUpdate) SetInput(i UpdateBusinessInput) *BusinessUpdate
- func (bu *BusinessUpdate) SetName1(s string) *BusinessUpdate
- func (bu *BusinessUpdate) SetName2(s string) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableActive(b *bool) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableComment(s *string) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableDeletedAt(t *time.Time) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableEmail(s *string) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableName2(s *string) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableTelephone(s *string) *BusinessUpdate
- func (bu *BusinessUpdate) SetNillableWebsite(s *string) *BusinessUpdate
- func (bu *BusinessUpdate) SetTelephone(s string) *BusinessUpdate
- func (bu *BusinessUpdate) SetUpdatedAt(t time.Time) *BusinessUpdate
- func (bu *BusinessUpdate) SetWebsite(s string) *BusinessUpdate
- func (bu *BusinessUpdate) Where(ps ...predicate.Business) *BusinessUpdate
- type BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddAddressIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddAddresses(a ...*Address) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddOperatorIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddOperators(o ...*Operator) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddTagIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddTags(t ...*Tag) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddUserIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) AddUsers(u ...*User) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearAddresses() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearComment() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearDeletedAt() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearEmail() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearName2() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearOperators() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearTags() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearTelephone() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearUsers() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) ClearWebsite() *BusinessUpdateOne
- func (buo *BusinessUpdateOne) Exec(ctx context.Context) error
- func (buo *BusinessUpdateOne) ExecX(ctx context.Context)
- func (buo *BusinessUpdateOne) Mutation() *BusinessMutation
- func (buo *BusinessUpdateOne) RemoveAddressIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveAddresses(a ...*Address) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveOperatorIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveOperators(o ...*Operator) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveTagIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveTags(t ...*Tag) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveUserIDs(ids ...uuid.UUID) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) RemoveUsers(u ...*User) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) Save(ctx context.Context) (*Business, error)
- func (buo *BusinessUpdateOne) SaveX(ctx context.Context) *Business
- func (buo *BusinessUpdateOne) Select(field string, fields ...string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetActive(b bool) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetAlias(s string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetComment(s string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetDeletedAt(t time.Time) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetEmail(s string) *BusinessUpdateOne
- func (c *BusinessUpdateOne) SetInput(i UpdateBusinessInput) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetName1(s string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetName2(s string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableActive(b *bool) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableComment(s *string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableDeletedAt(t *time.Time) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableEmail(s *string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableName2(s *string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableTelephone(s *string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetNillableWebsite(s *string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetTelephone(s string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetUpdatedAt(t time.Time) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) SetWebsite(s string) *BusinessUpdateOne
- func (buo *BusinessUpdateOne) Where(ps ...predicate.Business) *BusinessUpdateOne
- type BusinessWhereInput
- type Businesses
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Node(ctx context.Context, id uuid.UUID) (*Node, error)
- func (c *Client) Noder(ctx context.Context, id uuid.UUID, opts ...NodeOption) (_ Noder, err error)
- func (c *Client) Noders(ctx context.Context, ids []uuid.UUID, opts ...NodeOption) ([]Noder, error)
- func (c *Client) OpenTx(ctx context.Context) (context.Context, driver.Tx, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Content
- func (n *Content) IsNode()
- func (c *Content) Node(ctx context.Context) (node *Node, err error)
- func (c *Content) String() string
- func (c *Content) ToEdge(order *ContentOrder) *ContentEdge
- func (c *Content) Unwrap() *Content
- func (c *Content) Update() *ContentUpdateOne
- func (c *Content) Value(name string) (ent.Value, error)
- type ContentClient
- func (c *ContentClient) Create() *ContentCreate
- func (c *ContentClient) CreateBulk(builders ...*ContentCreate) *ContentCreateBulk
- func (c *ContentClient) Delete() *ContentDelete
- func (c *ContentClient) DeleteOne(co *Content) *ContentDeleteOne
- func (c *ContentClient) DeleteOneID(id uuid.UUID) *ContentDeleteOne
- func (c *ContentClient) Get(ctx context.Context, id uuid.UUID) (*Content, error)
- func (c *ContentClient) GetX(ctx context.Context, id uuid.UUID) *Content
- func (c *ContentClient) Hooks() []Hook
- func (c *ContentClient) Intercept(interceptors ...Interceptor)
- func (c *ContentClient) Interceptors() []Interceptor
- func (c *ContentClient) Query() *ContentQuery
- func (c *ContentClient) Update() *ContentUpdate
- func (c *ContentClient) UpdateOne(co *Content) *ContentUpdateOne
- func (c *ContentClient) UpdateOneID(id uuid.UUID) *ContentUpdateOne
- func (c *ContentClient) Use(hooks ...Hook)
- type ContentConnection
- type ContentCreate
- func (cc *ContentCreate) Exec(ctx context.Context) error
- func (cc *ContentCreate) ExecX(ctx context.Context)
- func (cc *ContentCreate) Mutation() *ContentMutation
- func (cc *ContentCreate) Save(ctx context.Context) (*Content, error)
- func (cc *ContentCreate) SaveX(ctx context.Context) *Content
- func (cc *ContentCreate) SetContent(s string) *ContentCreate
- func (cc *ContentCreate) SetCreatedAt(t time.Time) *ContentCreate
- func (cc *ContentCreate) SetDeletedAt(t time.Time) *ContentCreate
- func (cc *ContentCreate) SetID(u uuid.UUID) *ContentCreate
- func (cc *ContentCreate) SetLocale(s string) *ContentCreate
- func (cc *ContentCreate) SetLocation(c content.Location) *ContentCreate
- func (cc *ContentCreate) SetNillableCreatedAt(t *time.Time) *ContentCreate
- func (cc *ContentCreate) SetNillableDeletedAt(t *time.Time) *ContentCreate
- func (cc *ContentCreate) SetNillableID(u *uuid.UUID) *ContentCreate
- func (cc *ContentCreate) SetNillableLocale(s *string) *ContentCreate
- func (cc *ContentCreate) SetNillableLocation(c *content.Location) *ContentCreate
- func (cc *ContentCreate) SetNillablePublishedAt(t *time.Time) *ContentCreate
- func (cc *ContentCreate) SetNillableStatus(c *content.Status) *ContentCreate
- func (cc *ContentCreate) SetNillableTimetableType(ct *content.TimetableType) *ContentCreate
- func (cc *ContentCreate) SetNillableType(c *content.Type) *ContentCreate
- func (cc *ContentCreate) SetNillableUpdatedAt(t *time.Time) *ContentCreate
- func (cc *ContentCreate) SetPublishedAt(t time.Time) *ContentCreate
- func (cc *ContentCreate) SetStatus(c content.Status) *ContentCreate
- func (cc *ContentCreate) SetTimetableType(ct content.TimetableType) *ContentCreate
- func (cc *ContentCreate) SetType(c content.Type) *ContentCreate
- func (cc *ContentCreate) SetUpdatedAt(t time.Time) *ContentCreate
- type ContentCreateBulk
- type ContentDelete
- type ContentDeleteOne
- type ContentEdge
- type ContentGroupBy
- func (cgb *ContentGroupBy) Aggregate(fns ...AggregateFunc) *ContentGroupBy
- func (s *ContentGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ContentGroupBy) BoolX(ctx context.Context) bool
- func (s *ContentGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ContentGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ContentGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ContentGroupBy) Float64X(ctx context.Context) float64
- func (s *ContentGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ContentGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ContentGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ContentGroupBy) IntX(ctx context.Context) int
- func (s *ContentGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ContentGroupBy) IntsX(ctx context.Context) []int
- func (cgb *ContentGroupBy) Scan(ctx context.Context, v any) error
- func (s *ContentGroupBy) ScanX(ctx context.Context, v any)
- func (s *ContentGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ContentGroupBy) StringX(ctx context.Context) string
- func (s *ContentGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ContentGroupBy) StringsX(ctx context.Context) []string
- type ContentMutation
- func (m *ContentMutation) AddField(name string, value ent.Value) error
- func (m *ContentMutation) AddedEdges() []string
- func (m *ContentMutation) AddedField(name string) (ent.Value, bool)
- func (m *ContentMutation) AddedFields() []string
- func (m *ContentMutation) AddedIDs(name string) []ent.Value
- func (m *ContentMutation) ClearDeletedAt()
- func (m *ContentMutation) ClearEdge(name string) error
- func (m *ContentMutation) ClearField(name string) error
- func (m *ContentMutation) ClearPublishedAt()
- func (m *ContentMutation) ClearedEdges() []string
- func (m *ContentMutation) ClearedFields() []string
- func (m ContentMutation) Client() *Client
- func (m *ContentMutation) Content() (r string, exists bool)
- func (m *ContentMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ContentMutation) DeletedAt() (r time.Time, exists bool)
- func (m *ContentMutation) DeletedAtCleared() bool
- func (m *ContentMutation) EdgeCleared(name string) bool
- func (m *ContentMutation) Field(name string) (ent.Value, bool)
- func (m *ContentMutation) FieldCleared(name string) bool
- func (m *ContentMutation) Fields() []string
- func (m *ContentMutation) GetType() (r content.Type, exists bool)
- func (m *ContentMutation) ID() (id uuid.UUID, exists bool)
- func (m *ContentMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *ContentMutation) Locale() (r string, exists bool)
- func (m *ContentMutation) Location() (r content.Location, exists bool)
- func (m *ContentMutation) OldContent(ctx context.Context) (v string, err error)
- func (m *ContentMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ContentMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *ContentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ContentMutation) OldLocale(ctx context.Context) (v string, err error)
- func (m *ContentMutation) OldLocation(ctx context.Context) (v content.Location, err error)
- func (m *ContentMutation) OldPublishedAt(ctx context.Context) (v time.Time, err error)
- func (m *ContentMutation) OldStatus(ctx context.Context) (v content.Status, err error)
- func (m *ContentMutation) OldTimetableType(ctx context.Context) (v content.TimetableType, err error)
- func (m *ContentMutation) OldType(ctx context.Context) (v content.Type, err error)
- func (m *ContentMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ContentMutation) Op() Op
- func (m *ContentMutation) PublishedAt() (r time.Time, exists bool)
- func (m *ContentMutation) PublishedAtCleared() bool
- func (m *ContentMutation) RemovedEdges() []string
- func (m *ContentMutation) RemovedIDs(name string) []ent.Value
- func (m *ContentMutation) ResetContent()
- func (m *ContentMutation) ResetCreatedAt()
- func (m *ContentMutation) ResetDeletedAt()
- func (m *ContentMutation) ResetEdge(name string) error
- func (m *ContentMutation) ResetField(name string) error
- func (m *ContentMutation) ResetLocale()
- func (m *ContentMutation) ResetLocation()
- func (m *ContentMutation) ResetPublishedAt()
- func (m *ContentMutation) ResetStatus()
- func (m *ContentMutation) ResetTimetableType()
- func (m *ContentMutation) ResetType()
- func (m *ContentMutation) ResetUpdatedAt()
- func (m *ContentMutation) SetContent(s string)
- func (m *ContentMutation) SetCreatedAt(t time.Time)
- func (m *ContentMutation) SetDeletedAt(t time.Time)
- func (m *ContentMutation) SetField(name string, value ent.Value) error
- func (m *ContentMutation) SetID(id uuid.UUID)
- func (m *ContentMutation) SetLocale(s string)
- func (m *ContentMutation) SetLocation(c content.Location)
- func (m *ContentMutation) SetOp(op Op)
- func (m *ContentMutation) SetPublishedAt(t time.Time)
- func (m *ContentMutation) SetStatus(c content.Status)
- func (m *ContentMutation) SetTimetableType(ct content.TimetableType)
- func (m *ContentMutation) SetType(c content.Type)
- func (m *ContentMutation) SetUpdatedAt(t time.Time)
- func (m *ContentMutation) Status() (r content.Status, exists bool)
- func (m *ContentMutation) TimetableType() (r content.TimetableType, exists bool)
- func (m ContentMutation) Tx() (*Tx, error)
- func (m *ContentMutation) Type() string
- func (m *ContentMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ContentMutation) Where(ps ...predicate.Content)
- func (m *ContentMutation) WhereP(ps ...func(*sql.Selector))
- type ContentOrder
- type ContentOrderField
- type ContentPaginateOption
- type ContentQuery
- func (cq *ContentQuery) Aggregate(fns ...AggregateFunc) *ContentSelect
- func (cq *ContentQuery) All(ctx context.Context) ([]*Content, error)
- func (cq *ContentQuery) AllX(ctx context.Context) []*Content
- func (cq *ContentQuery) Clone() *ContentQuery
- func (c *ContentQuery) CollectFields(ctx context.Context, satisfies ...string) (*ContentQuery, error)
- func (cq *ContentQuery) Count(ctx context.Context) (int, error)
- func (cq *ContentQuery) CountX(ctx context.Context) int
- func (cq *ContentQuery) Exist(ctx context.Context) (bool, error)
- func (cq *ContentQuery) ExistX(ctx context.Context) bool
- func (cq *ContentQuery) First(ctx context.Context) (*Content, error)
- func (cq *ContentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (cq *ContentQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (cq *ContentQuery) FirstX(ctx context.Context) *Content
- func (cq *ContentQuery) GroupBy(field string, fields ...string) *ContentGroupBy
- func (cq *ContentQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (cq *ContentQuery) IDsX(ctx context.Context) []uuid.UUID
- func (cq *ContentQuery) Limit(limit int) *ContentQuery
- func (cq *ContentQuery) Offset(offset int) *ContentQuery
- func (cq *ContentQuery) Only(ctx context.Context) (*Content, error)
- func (cq *ContentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (cq *ContentQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (cq *ContentQuery) OnlyX(ctx context.Context) *Content
- func (cq *ContentQuery) Order(o ...content.OrderOption) *ContentQuery
- func (c *ContentQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*ContentConnection, error)
- func (cq *ContentQuery) Select(fields ...string) *ContentSelect
- func (cq *ContentQuery) Unique(unique bool) *ContentQuery
- func (cq *ContentQuery) Where(ps ...predicate.Content) *ContentQuery
- type ContentSelect
- func (cs *ContentSelect) Aggregate(fns ...AggregateFunc) *ContentSelect
- func (s *ContentSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ContentSelect) BoolX(ctx context.Context) bool
- func (s *ContentSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ContentSelect) BoolsX(ctx context.Context) []bool
- func (s *ContentSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ContentSelect) Float64X(ctx context.Context) float64
- func (s *ContentSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ContentSelect) Float64sX(ctx context.Context) []float64
- func (s *ContentSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ContentSelect) IntX(ctx context.Context) int
- func (s *ContentSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ContentSelect) IntsX(ctx context.Context) []int
- func (cs *ContentSelect) Scan(ctx context.Context, v any) error
- func (s *ContentSelect) ScanX(ctx context.Context, v any)
- func (s *ContentSelect) String(ctx context.Context) (_ string, err error)
- func (s *ContentSelect) StringX(ctx context.Context) string
- func (s *ContentSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ContentSelect) StringsX(ctx context.Context) []string
- type ContentUpdate
- func (cu *ContentUpdate) ClearDeletedAt() *ContentUpdate
- func (cu *ContentUpdate) ClearPublishedAt() *ContentUpdate
- func (cu *ContentUpdate) Exec(ctx context.Context) error
- func (cu *ContentUpdate) ExecX(ctx context.Context)
- func (cu *ContentUpdate) Mutation() *ContentMutation
- func (cu *ContentUpdate) Save(ctx context.Context) (int, error)
- func (cu *ContentUpdate) SaveX(ctx context.Context) int
- func (cu *ContentUpdate) SetContent(s string) *ContentUpdate
- func (cu *ContentUpdate) SetDeletedAt(t time.Time) *ContentUpdate
- func (cu *ContentUpdate) SetLocale(s string) *ContentUpdate
- func (cu *ContentUpdate) SetLocation(c content.Location) *ContentUpdate
- func (cu *ContentUpdate) SetNillableDeletedAt(t *time.Time) *ContentUpdate
- func (cu *ContentUpdate) SetNillableLocale(s *string) *ContentUpdate
- func (cu *ContentUpdate) SetNillableLocation(c *content.Location) *ContentUpdate
- func (cu *ContentUpdate) SetNillablePublishedAt(t *time.Time) *ContentUpdate
- func (cu *ContentUpdate) SetNillableStatus(c *content.Status) *ContentUpdate
- func (cu *ContentUpdate) SetNillableTimetableType(ct *content.TimetableType) *ContentUpdate
- func (cu *ContentUpdate) SetNillableType(c *content.Type) *ContentUpdate
- func (cu *ContentUpdate) SetPublishedAt(t time.Time) *ContentUpdate
- func (cu *ContentUpdate) SetStatus(c content.Status) *ContentUpdate
- func (cu *ContentUpdate) SetTimetableType(ct content.TimetableType) *ContentUpdate
- func (cu *ContentUpdate) SetType(c content.Type) *ContentUpdate
- func (cu *ContentUpdate) SetUpdatedAt(t time.Time) *ContentUpdate
- func (cu *ContentUpdate) Where(ps ...predicate.Content) *ContentUpdate
- type ContentUpdateOne
- func (cuo *ContentUpdateOne) ClearDeletedAt() *ContentUpdateOne
- func (cuo *ContentUpdateOne) ClearPublishedAt() *ContentUpdateOne
- func (cuo *ContentUpdateOne) Exec(ctx context.Context) error
- func (cuo *ContentUpdateOne) ExecX(ctx context.Context)
- func (cuo *ContentUpdateOne) Mutation() *ContentMutation
- func (cuo *ContentUpdateOne) Save(ctx context.Context) (*Content, error)
- func (cuo *ContentUpdateOne) SaveX(ctx context.Context) *Content
- func (cuo *ContentUpdateOne) Select(field string, fields ...string) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetContent(s string) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetDeletedAt(t time.Time) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetLocale(s string) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetLocation(c content.Location) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillableDeletedAt(t *time.Time) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillableLocale(s *string) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillableLocation(c *content.Location) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillablePublishedAt(t *time.Time) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillableStatus(c *content.Status) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillableTimetableType(ct *content.TimetableType) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetNillableType(c *content.Type) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetPublishedAt(t time.Time) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetStatus(c content.Status) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetTimetableType(ct content.TimetableType) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetType(c content.Type) *ContentUpdateOne
- func (cuo *ContentUpdateOne) SetUpdatedAt(t time.Time) *ContentUpdateOne
- func (cuo *ContentUpdateOne) Where(ps ...predicate.Content) *ContentUpdateOne
- type ContentWhereInput
- type Contents
- type CreateAddressInput
- type CreateBusinessInput
- type CreateTimetableInput
- type CreateUserInput
- type Cursor
- type Edge
- type Field
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type Node
- type NodeOption
- type Noder
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Operator
- func (o *Operator) Businesses(ctx context.Context) (result []*Business, err error)
- func (n *Operator) IsNode()
- func (o *Operator) NamedBusinesses(name string) ([]*Business, error)
- func (o *Operator) NamedTimetable(name string) ([]*Timetable, error)
- func (o *Operator) Node(ctx context.Context) (node *Node, err error)
- func (o *Operator) QueryBusinesses() *BusinessQuery
- func (o *Operator) QueryTimetable() *TimetableQuery
- func (o *Operator) String() string
- func (o *Operator) Timetable(ctx context.Context) (result []*Timetable, err error)
- func (o *Operator) ToEdge(order *OperatorOrder) *OperatorEdge
- func (o *Operator) Unwrap() *Operator
- func (o *Operator) Update() *OperatorUpdateOne
- func (o *Operator) Value(name string) (ent.Value, error)
- type OperatorClient
- func (c *OperatorClient) Create() *OperatorCreate
- func (c *OperatorClient) CreateBulk(builders ...*OperatorCreate) *OperatorCreateBulk
- func (c *OperatorClient) Delete() *OperatorDelete
- func (c *OperatorClient) DeleteOne(o *Operator) *OperatorDeleteOne
- func (c *OperatorClient) DeleteOneID(id uuid.UUID) *OperatorDeleteOne
- func (c *OperatorClient) Get(ctx context.Context, id uuid.UUID) (*Operator, error)
- func (c *OperatorClient) GetX(ctx context.Context, id uuid.UUID) *Operator
- func (c *OperatorClient) Hooks() []Hook
- func (c *OperatorClient) Intercept(interceptors ...Interceptor)
- func (c *OperatorClient) Interceptors() []Interceptor
- func (c *OperatorClient) Query() *OperatorQuery
- func (c *OperatorClient) QueryBusinesses(o *Operator) *BusinessQuery
- func (c *OperatorClient) QueryTimetable(o *Operator) *TimetableQuery
- func (c *OperatorClient) Update() *OperatorUpdate
- func (c *OperatorClient) UpdateOne(o *Operator) *OperatorUpdateOne
- func (c *OperatorClient) UpdateOneID(id uuid.UUID) *OperatorUpdateOne
- func (c *OperatorClient) Use(hooks ...Hook)
- type OperatorConnection
- type OperatorCreate
- func (oc *OperatorCreate) AddBusinessIDs(ids ...uuid.UUID) *OperatorCreate
- func (oc *OperatorCreate) AddBusinesses(b ...*Business) *OperatorCreate
- func (oc *OperatorCreate) AddTimetable(t ...*Timetable) *OperatorCreate
- func (oc *OperatorCreate) AddTimetableIDs(ids ...uuid.UUID) *OperatorCreate
- func (oc *OperatorCreate) Exec(ctx context.Context) error
- func (oc *OperatorCreate) ExecX(ctx context.Context)
- func (oc *OperatorCreate) Mutation() *OperatorMutation
- func (oc *OperatorCreate) Save(ctx context.Context) (*Operator, error)
- func (oc *OperatorCreate) SaveX(ctx context.Context) *Operator
- func (oc *OperatorCreate) SetEmail(s string) *OperatorCreate
- func (oc *OperatorCreate) SetFirstname(s string) *OperatorCreate
- func (oc *OperatorCreate) SetID(u uuid.UUID) *OperatorCreate
- func (oc *OperatorCreate) SetNillableID(u *uuid.UUID) *OperatorCreate
- func (oc *OperatorCreate) SetNillableTitle(s *string) *OperatorCreate
- func (oc *OperatorCreate) SetSurname(s string) *OperatorCreate
- func (oc *OperatorCreate) SetTitle(s string) *OperatorCreate
- type OperatorCreateBulk
- type OperatorDelete
- type OperatorDeleteOne
- type OperatorEdge
- type OperatorEdges
- type OperatorGroupBy
- func (ogb *OperatorGroupBy) Aggregate(fns ...AggregateFunc) *OperatorGroupBy
- func (s *OperatorGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OperatorGroupBy) BoolX(ctx context.Context) bool
- func (s *OperatorGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OperatorGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OperatorGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OperatorGroupBy) Float64X(ctx context.Context) float64
- func (s *OperatorGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OperatorGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OperatorGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OperatorGroupBy) IntX(ctx context.Context) int
- func (s *OperatorGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OperatorGroupBy) IntsX(ctx context.Context) []int
- func (ogb *OperatorGroupBy) Scan(ctx context.Context, v any) error
- func (s *OperatorGroupBy) ScanX(ctx context.Context, v any)
- func (s *OperatorGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OperatorGroupBy) StringX(ctx context.Context) string
- func (s *OperatorGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OperatorGroupBy) StringsX(ctx context.Context) []string
- type OperatorMutation
- func (m *OperatorMutation) AddBusinessIDs(ids ...uuid.UUID)
- func (m *OperatorMutation) AddField(name string, value ent.Value) error
- func (m *OperatorMutation) AddTimetableIDs(ids ...uuid.UUID)
- func (m *OperatorMutation) AddedEdges() []string
- func (m *OperatorMutation) AddedField(name string) (ent.Value, bool)
- func (m *OperatorMutation) AddedFields() []string
- func (m *OperatorMutation) AddedIDs(name string) []ent.Value
- func (m *OperatorMutation) BusinessesCleared() bool
- func (m *OperatorMutation) BusinessesIDs() (ids []uuid.UUID)
- func (m *OperatorMutation) ClearBusinesses()
- func (m *OperatorMutation) ClearEdge(name string) error
- func (m *OperatorMutation) ClearField(name string) error
- func (m *OperatorMutation) ClearTimetable()
- func (m *OperatorMutation) ClearTitle()
- func (m *OperatorMutation) ClearedEdges() []string
- func (m *OperatorMutation) ClearedFields() []string
- func (m OperatorMutation) Client() *Client
- func (m *OperatorMutation) EdgeCleared(name string) bool
- func (m *OperatorMutation) Email() (r string, exists bool)
- func (m *OperatorMutation) Field(name string) (ent.Value, bool)
- func (m *OperatorMutation) FieldCleared(name string) bool
- func (m *OperatorMutation) Fields() []string
- func (m *OperatorMutation) Firstname() (r string, exists bool)
- func (m *OperatorMutation) ID() (id uuid.UUID, exists bool)
- func (m *OperatorMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *OperatorMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *OperatorMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OperatorMutation) OldFirstname(ctx context.Context) (v string, err error)
- func (m *OperatorMutation) OldSurname(ctx context.Context) (v string, err error)
- func (m *OperatorMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *OperatorMutation) Op() Op
- func (m *OperatorMutation) RemoveBusinessIDs(ids ...uuid.UUID)
- func (m *OperatorMutation) RemoveTimetableIDs(ids ...uuid.UUID)
- func (m *OperatorMutation) RemovedBusinessesIDs() (ids []uuid.UUID)
- func (m *OperatorMutation) RemovedEdges() []string
- func (m *OperatorMutation) RemovedIDs(name string) []ent.Value
- func (m *OperatorMutation) RemovedTimetableIDs() (ids []uuid.UUID)
- func (m *OperatorMutation) ResetBusinesses()
- func (m *OperatorMutation) ResetEdge(name string) error
- func (m *OperatorMutation) ResetEmail()
- func (m *OperatorMutation) ResetField(name string) error
- func (m *OperatorMutation) ResetFirstname()
- func (m *OperatorMutation) ResetSurname()
- func (m *OperatorMutation) ResetTimetable()
- func (m *OperatorMutation) ResetTitle()
- func (m *OperatorMutation) SetEmail(s string)
- func (m *OperatorMutation) SetField(name string, value ent.Value) error
- func (m *OperatorMutation) SetFirstname(s string)
- func (m *OperatorMutation) SetID(id uuid.UUID)
- func (m *OperatorMutation) SetOp(op Op)
- func (m *OperatorMutation) SetSurname(s string)
- func (m *OperatorMutation) SetTitle(s string)
- func (m *OperatorMutation) Surname() (r string, exists bool)
- func (m *OperatorMutation) TimetableCleared() bool
- func (m *OperatorMutation) TimetableIDs() (ids []uuid.UUID)
- func (m *OperatorMutation) Title() (r string, exists bool)
- func (m *OperatorMutation) TitleCleared() bool
- func (m OperatorMutation) Tx() (*Tx, error)
- func (m *OperatorMutation) Type() string
- func (m *OperatorMutation) Where(ps ...predicate.Operator)
- func (m *OperatorMutation) WhereP(ps ...func(*sql.Selector))
- type OperatorOrder
- type OperatorOrderField
- type OperatorPaginateOption
- type OperatorQuery
- func (oq *OperatorQuery) Aggregate(fns ...AggregateFunc) *OperatorSelect
- func (oq *OperatorQuery) All(ctx context.Context) ([]*Operator, error)
- func (oq *OperatorQuery) AllX(ctx context.Context) []*Operator
- func (oq *OperatorQuery) Clone() *OperatorQuery
- func (o *OperatorQuery) CollectFields(ctx context.Context, satisfies ...string) (*OperatorQuery, error)
- func (oq *OperatorQuery) Count(ctx context.Context) (int, error)
- func (oq *OperatorQuery) CountX(ctx context.Context) int
- func (oq *OperatorQuery) Exist(ctx context.Context) (bool, error)
- func (oq *OperatorQuery) ExistX(ctx context.Context) bool
- func (oq *OperatorQuery) First(ctx context.Context) (*Operator, error)
- func (oq *OperatorQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (oq *OperatorQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (oq *OperatorQuery) FirstX(ctx context.Context) *Operator
- func (oq *OperatorQuery) GroupBy(field string, fields ...string) *OperatorGroupBy
- func (oq *OperatorQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (oq *OperatorQuery) IDsX(ctx context.Context) []uuid.UUID
- func (oq *OperatorQuery) Limit(limit int) *OperatorQuery
- func (oq *OperatorQuery) Offset(offset int) *OperatorQuery
- func (oq *OperatorQuery) Only(ctx context.Context) (*Operator, error)
- func (oq *OperatorQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (oq *OperatorQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (oq *OperatorQuery) OnlyX(ctx context.Context) *Operator
- func (oq *OperatorQuery) Order(o ...operator.OrderOption) *OperatorQuery
- func (o *OperatorQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*OperatorConnection, error)
- func (oq *OperatorQuery) QueryBusinesses() *BusinessQuery
- func (oq *OperatorQuery) QueryTimetable() *TimetableQuery
- func (oq *OperatorQuery) Select(fields ...string) *OperatorSelect
- func (oq *OperatorQuery) Unique(unique bool) *OperatorQuery
- func (oq *OperatorQuery) Where(ps ...predicate.Operator) *OperatorQuery
- func (oq *OperatorQuery) WithBusinesses(opts ...func(*BusinessQuery)) *OperatorQuery
- func (oq *OperatorQuery) WithNamedBusinesses(name string, opts ...func(*BusinessQuery)) *OperatorQuery
- func (oq *OperatorQuery) WithNamedTimetable(name string, opts ...func(*TimetableQuery)) *OperatorQuery
- func (oq *OperatorQuery) WithTimetable(opts ...func(*TimetableQuery)) *OperatorQuery
- type OperatorSelect
- func (os *OperatorSelect) Aggregate(fns ...AggregateFunc) *OperatorSelect
- func (s *OperatorSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OperatorSelect) BoolX(ctx context.Context) bool
- func (s *OperatorSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OperatorSelect) BoolsX(ctx context.Context) []bool
- func (s *OperatorSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OperatorSelect) Float64X(ctx context.Context) float64
- func (s *OperatorSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OperatorSelect) Float64sX(ctx context.Context) []float64
- func (s *OperatorSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OperatorSelect) IntX(ctx context.Context) int
- func (s *OperatorSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OperatorSelect) IntsX(ctx context.Context) []int
- func (os *OperatorSelect) Scan(ctx context.Context, v any) error
- func (s *OperatorSelect) ScanX(ctx context.Context, v any)
- func (s *OperatorSelect) String(ctx context.Context) (_ string, err error)
- func (s *OperatorSelect) StringX(ctx context.Context) string
- func (s *OperatorSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OperatorSelect) StringsX(ctx context.Context) []string
- type OperatorUpdate
- func (ou *OperatorUpdate) AddBusinessIDs(ids ...uuid.UUID) *OperatorUpdate
- func (ou *OperatorUpdate) AddBusinesses(b ...*Business) *OperatorUpdate
- func (ou *OperatorUpdate) AddTimetable(t ...*Timetable) *OperatorUpdate
- func (ou *OperatorUpdate) AddTimetableIDs(ids ...uuid.UUID) *OperatorUpdate
- func (ou *OperatorUpdate) ClearBusinesses() *OperatorUpdate
- func (ou *OperatorUpdate) ClearTimetable() *OperatorUpdate
- func (ou *OperatorUpdate) ClearTitle() *OperatorUpdate
- func (ou *OperatorUpdate) Exec(ctx context.Context) error
- func (ou *OperatorUpdate) ExecX(ctx context.Context)
- func (ou *OperatorUpdate) Mutation() *OperatorMutation
- func (ou *OperatorUpdate) RemoveBusinessIDs(ids ...uuid.UUID) *OperatorUpdate
- func (ou *OperatorUpdate) RemoveBusinesses(b ...*Business) *OperatorUpdate
- func (ou *OperatorUpdate) RemoveTimetable(t ...*Timetable) *OperatorUpdate
- func (ou *OperatorUpdate) RemoveTimetableIDs(ids ...uuid.UUID) *OperatorUpdate
- func (ou *OperatorUpdate) Save(ctx context.Context) (int, error)
- func (ou *OperatorUpdate) SaveX(ctx context.Context) int
- func (ou *OperatorUpdate) SetEmail(s string) *OperatorUpdate
- func (ou *OperatorUpdate) SetFirstname(s string) *OperatorUpdate
- func (ou *OperatorUpdate) SetNillableTitle(s *string) *OperatorUpdate
- func (ou *OperatorUpdate) SetSurname(s string) *OperatorUpdate
- func (ou *OperatorUpdate) SetTitle(s string) *OperatorUpdate
- func (ou *OperatorUpdate) Where(ps ...predicate.Operator) *OperatorUpdate
- type OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddBusinessIDs(ids ...uuid.UUID) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddBusinesses(b ...*Business) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddTimetable(t ...*Timetable) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddTimetableIDs(ids ...uuid.UUID) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearBusinesses() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearTimetable() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearTitle() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) Exec(ctx context.Context) error
- func (ouo *OperatorUpdateOne) ExecX(ctx context.Context)
- func (ouo *OperatorUpdateOne) Mutation() *OperatorMutation
- func (ouo *OperatorUpdateOne) RemoveBusinessIDs(ids ...uuid.UUID) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) RemoveBusinesses(b ...*Business) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) RemoveTimetable(t ...*Timetable) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) RemoveTimetableIDs(ids ...uuid.UUID) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) Save(ctx context.Context) (*Operator, error)
- func (ouo *OperatorUpdateOne) SaveX(ctx context.Context) *Operator
- func (ouo *OperatorUpdateOne) Select(field string, fields ...string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetEmail(s string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetFirstname(s string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetNillableTitle(s *string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetSurname(s string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetTitle(s string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) Where(ps ...predicate.Operator) *OperatorUpdateOne
- type OperatorWhereInput
- type Operators
- type Option
- type OrderDirection
- type OrderFunc
- type PageInfo
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Tag
- func (t *Tag) Business(ctx context.Context) (result []*Business, err error)
- func (n *Tag) IsNode()
- func (t *Tag) NamedBusiness(name string) ([]*Business, error)
- func (t *Tag) NamedUser(name string) ([]*User, error)
- func (t *Tag) Node(ctx context.Context) (node *Node, err error)
- func (t *Tag) QueryBusiness() *BusinessQuery
- func (t *Tag) QueryUser() *UserQuery
- func (t *Tag) String() string
- func (t *Tag) ToEdge(order *TagOrder) *TagEdge
- func (t *Tag) Unwrap() *Tag
- func (t *Tag) Update() *TagUpdateOne
- func (t *Tag) User(ctx context.Context) (result []*User, err error)
- func (t *Tag) Value(name string) (ent.Value, error)
- type TagClient
- func (c *TagClient) Create() *TagCreate
- func (c *TagClient) CreateBulk(builders ...*TagCreate) *TagCreateBulk
- func (c *TagClient) Delete() *TagDelete
- func (c *TagClient) DeleteOne(t *Tag) *TagDeleteOne
- func (c *TagClient) DeleteOneID(id uuid.UUID) *TagDeleteOne
- func (c *TagClient) Get(ctx context.Context, id uuid.UUID) (*Tag, error)
- func (c *TagClient) GetX(ctx context.Context, id uuid.UUID) *Tag
- func (c *TagClient) Hooks() []Hook
- func (c *TagClient) Intercept(interceptors ...Interceptor)
- func (c *TagClient) Interceptors() []Interceptor
- func (c *TagClient) Query() *TagQuery
- func (c *TagClient) QueryBusiness(t *Tag) *BusinessQuery
- func (c *TagClient) QueryUser(t *Tag) *UserQuery
- func (c *TagClient) Update() *TagUpdate
- func (c *TagClient) UpdateOne(t *Tag) *TagUpdateOne
- func (c *TagClient) UpdateOneID(id uuid.UUID) *TagUpdateOne
- func (c *TagClient) Use(hooks ...Hook)
- type TagConnection
- type TagCreate
- func (tc *TagCreate) AddBusinesIDs(ids ...uuid.UUID) *TagCreate
- func (tc *TagCreate) AddBusiness(b ...*Business) *TagCreate
- func (tc *TagCreate) AddUser(u ...*User) *TagCreate
- func (tc *TagCreate) AddUserIDs(ids ...uuid.UUID) *TagCreate
- func (tc *TagCreate) Exec(ctx context.Context) error
- func (tc *TagCreate) ExecX(ctx context.Context)
- func (tc *TagCreate) Mutation() *TagMutation
- func (tc *TagCreate) Save(ctx context.Context) (*Tag, error)
- func (tc *TagCreate) SaveX(ctx context.Context) *Tag
- func (tc *TagCreate) SetComment(s string) *TagCreate
- func (tc *TagCreate) SetCreatedAt(t time.Time) *TagCreate
- func (tc *TagCreate) SetDeletedAt(t time.Time) *TagCreate
- func (tc *TagCreate) SetID(u uuid.UUID) *TagCreate
- func (tc *TagCreate) SetName(s string) *TagCreate
- func (tc *TagCreate) SetNillableComment(s *string) *TagCreate
- func (tc *TagCreate) SetNillableCreatedAt(t *time.Time) *TagCreate
- func (tc *TagCreate) SetNillableDeletedAt(t *time.Time) *TagCreate
- func (tc *TagCreate) SetNillableID(u *uuid.UUID) *TagCreate
- func (tc *TagCreate) SetNillableUpdatedAt(t *time.Time) *TagCreate
- func (tc *TagCreate) SetUpdatedAt(t time.Time) *TagCreate
- type TagCreateBulk
- type TagDelete
- type TagDeleteOne
- type TagEdge
- type TagEdges
- type TagGroupBy
- func (tgb *TagGroupBy) Aggregate(fns ...AggregateFunc) *TagGroupBy
- func (s *TagGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TagGroupBy) BoolX(ctx context.Context) bool
- func (s *TagGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TagGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TagGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TagGroupBy) Float64X(ctx context.Context) float64
- func (s *TagGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TagGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TagGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TagGroupBy) IntX(ctx context.Context) int
- func (s *TagGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TagGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TagGroupBy) Scan(ctx context.Context, v any) error
- func (s *TagGroupBy) ScanX(ctx context.Context, v any)
- func (s *TagGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TagGroupBy) StringX(ctx context.Context) string
- func (s *TagGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TagGroupBy) StringsX(ctx context.Context) []string
- type TagMutation
- func (m *TagMutation) AddBusinesIDs(ids ...uuid.UUID)
- func (m *TagMutation) AddField(name string, value ent.Value) error
- func (m *TagMutation) AddUserIDs(ids ...uuid.UUID)
- func (m *TagMutation) AddedEdges() []string
- func (m *TagMutation) AddedField(name string) (ent.Value, bool)
- func (m *TagMutation) AddedFields() []string
- func (m *TagMutation) AddedIDs(name string) []ent.Value
- func (m *TagMutation) BusinessCleared() bool
- func (m *TagMutation) BusinessIDs() (ids []uuid.UUID)
- func (m *TagMutation) ClearBusiness()
- func (m *TagMutation) ClearComment()
- func (m *TagMutation) ClearDeletedAt()
- func (m *TagMutation) ClearEdge(name string) error
- func (m *TagMutation) ClearField(name string) error
- func (m *TagMutation) ClearUser()
- func (m *TagMutation) ClearedEdges() []string
- func (m *TagMutation) ClearedFields() []string
- func (m TagMutation) Client() *Client
- func (m *TagMutation) Comment() (r string, exists bool)
- func (m *TagMutation) CommentCleared() bool
- func (m *TagMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TagMutation) DeletedAt() (r time.Time, exists bool)
- func (m *TagMutation) DeletedAtCleared() bool
- func (m *TagMutation) EdgeCleared(name string) bool
- func (m *TagMutation) Field(name string) (ent.Value, bool)
- func (m *TagMutation) FieldCleared(name string) bool
- func (m *TagMutation) Fields() []string
- func (m *TagMutation) ID() (id uuid.UUID, exists bool)
- func (m *TagMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TagMutation) Name() (r string, exists bool)
- func (m *TagMutation) OldComment(ctx context.Context) (v string, err error)
- func (m *TagMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TagMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *TagMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TagMutation) OldName(ctx context.Context) (v string, err error)
- func (m *TagMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TagMutation) Op() Op
- func (m *TagMutation) RemoveBusinesIDs(ids ...uuid.UUID)
- func (m *TagMutation) RemoveUserIDs(ids ...uuid.UUID)
- func (m *TagMutation) RemovedBusinessIDs() (ids []uuid.UUID)
- func (m *TagMutation) RemovedEdges() []string
- func (m *TagMutation) RemovedIDs(name string) []ent.Value
- func (m *TagMutation) RemovedUserIDs() (ids []uuid.UUID)
- func (m *TagMutation) ResetBusiness()
- func (m *TagMutation) ResetComment()
- func (m *TagMutation) ResetCreatedAt()
- func (m *TagMutation) ResetDeletedAt()
- func (m *TagMutation) ResetEdge(name string) error
- func (m *TagMutation) ResetField(name string) error
- func (m *TagMutation) ResetName()
- func (m *TagMutation) ResetUpdatedAt()
- func (m *TagMutation) ResetUser()
- func (m *TagMutation) SetComment(s string)
- func (m *TagMutation) SetCreatedAt(t time.Time)
- func (m *TagMutation) SetDeletedAt(t time.Time)
- func (m *TagMutation) SetField(name string, value ent.Value) error
- func (m *TagMutation) SetID(id uuid.UUID)
- func (m *TagMutation) SetName(s string)
- func (m *TagMutation) SetOp(op Op)
- func (m *TagMutation) SetUpdatedAt(t time.Time)
- func (m TagMutation) Tx() (*Tx, error)
- func (m *TagMutation) Type() string
- func (m *TagMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *TagMutation) UserCleared() bool
- func (m *TagMutation) UserIDs() (ids []uuid.UUID)
- func (m *TagMutation) Where(ps ...predicate.Tag)
- func (m *TagMutation) WhereP(ps ...func(*sql.Selector))
- type TagOrder
- type TagOrderField
- type TagPaginateOption
- type TagQuery
- func (tq *TagQuery) Aggregate(fns ...AggregateFunc) *TagSelect
- func (tq *TagQuery) All(ctx context.Context) ([]*Tag, error)
- func (tq *TagQuery) AllX(ctx context.Context) []*Tag
- func (tq *TagQuery) Clone() *TagQuery
- func (t *TagQuery) CollectFields(ctx context.Context, satisfies ...string) (*TagQuery, error)
- func (tq *TagQuery) Count(ctx context.Context) (int, error)
- func (tq *TagQuery) CountX(ctx context.Context) int
- func (tq *TagQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TagQuery) ExistX(ctx context.Context) bool
- func (tq *TagQuery) First(ctx context.Context) (*Tag, error)
- func (tq *TagQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TagQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tq *TagQuery) FirstX(ctx context.Context) *Tag
- func (tq *TagQuery) GroupBy(field string, fields ...string) *TagGroupBy
- func (tq *TagQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tq *TagQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tq *TagQuery) Limit(limit int) *TagQuery
- func (tq *TagQuery) Offset(offset int) *TagQuery
- func (tq *TagQuery) Only(ctx context.Context) (*Tag, error)
- func (tq *TagQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TagQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tq *TagQuery) OnlyX(ctx context.Context) *Tag
- func (tq *TagQuery) Order(o ...tag.OrderOption) *TagQuery
- func (t *TagQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*TagConnection, error)
- func (tq *TagQuery) QueryBusiness() *BusinessQuery
- func (tq *TagQuery) QueryUser() *UserQuery
- func (tq *TagQuery) Select(fields ...string) *TagSelect
- func (tq *TagQuery) Unique(unique bool) *TagQuery
- func (tq *TagQuery) Where(ps ...predicate.Tag) *TagQuery
- func (tq *TagQuery) WithBusiness(opts ...func(*BusinessQuery)) *TagQuery
- func (tq *TagQuery) WithNamedBusiness(name string, opts ...func(*BusinessQuery)) *TagQuery
- func (tq *TagQuery) WithNamedUser(name string, opts ...func(*UserQuery)) *TagQuery
- func (tq *TagQuery) WithUser(opts ...func(*UserQuery)) *TagQuery
- type TagSelect
- func (ts *TagSelect) Aggregate(fns ...AggregateFunc) *TagSelect
- func (s *TagSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TagSelect) BoolX(ctx context.Context) bool
- func (s *TagSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TagSelect) BoolsX(ctx context.Context) []bool
- func (s *TagSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TagSelect) Float64X(ctx context.Context) float64
- func (s *TagSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TagSelect) Float64sX(ctx context.Context) []float64
- func (s *TagSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TagSelect) IntX(ctx context.Context) int
- func (s *TagSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TagSelect) IntsX(ctx context.Context) []int
- func (ts *TagSelect) Scan(ctx context.Context, v any) error
- func (s *TagSelect) ScanX(ctx context.Context, v any)
- func (s *TagSelect) String(ctx context.Context) (_ string, err error)
- func (s *TagSelect) StringX(ctx context.Context) string
- func (s *TagSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TagSelect) StringsX(ctx context.Context) []string
- type TagUpdate
- func (tu *TagUpdate) AddBusinesIDs(ids ...uuid.UUID) *TagUpdate
- func (tu *TagUpdate) AddBusiness(b ...*Business) *TagUpdate
- func (tu *TagUpdate) AddUser(u ...*User) *TagUpdate
- func (tu *TagUpdate) AddUserIDs(ids ...uuid.UUID) *TagUpdate
- func (tu *TagUpdate) ClearBusiness() *TagUpdate
- func (tu *TagUpdate) ClearComment() *TagUpdate
- func (tu *TagUpdate) ClearDeletedAt() *TagUpdate
- func (tu *TagUpdate) ClearUser() *TagUpdate
- func (tu *TagUpdate) Exec(ctx context.Context) error
- func (tu *TagUpdate) ExecX(ctx context.Context)
- func (tu *TagUpdate) Mutation() *TagMutation
- func (tu *TagUpdate) RemoveBusinesIDs(ids ...uuid.UUID) *TagUpdate
- func (tu *TagUpdate) RemoveBusiness(b ...*Business) *TagUpdate
- func (tu *TagUpdate) RemoveUser(u ...*User) *TagUpdate
- func (tu *TagUpdate) RemoveUserIDs(ids ...uuid.UUID) *TagUpdate
- func (tu *TagUpdate) Save(ctx context.Context) (int, error)
- func (tu *TagUpdate) SaveX(ctx context.Context) int
- func (tu *TagUpdate) SetComment(s string) *TagUpdate
- func (tu *TagUpdate) SetDeletedAt(t time.Time) *TagUpdate
- func (tu *TagUpdate) SetName(s string) *TagUpdate
- func (tu *TagUpdate) SetNillableComment(s *string) *TagUpdate
- func (tu *TagUpdate) SetNillableDeletedAt(t *time.Time) *TagUpdate
- func (tu *TagUpdate) SetUpdatedAt(t time.Time) *TagUpdate
- func (tu *TagUpdate) Where(ps ...predicate.Tag) *TagUpdate
- type TagUpdateOne
- func (tuo *TagUpdateOne) AddBusinesIDs(ids ...uuid.UUID) *TagUpdateOne
- func (tuo *TagUpdateOne) AddBusiness(b ...*Business) *TagUpdateOne
- func (tuo *TagUpdateOne) AddUser(u ...*User) *TagUpdateOne
- func (tuo *TagUpdateOne) AddUserIDs(ids ...uuid.UUID) *TagUpdateOne
- func (tuo *TagUpdateOne) ClearBusiness() *TagUpdateOne
- func (tuo *TagUpdateOne) ClearComment() *TagUpdateOne
- func (tuo *TagUpdateOne) ClearDeletedAt() *TagUpdateOne
- func (tuo *TagUpdateOne) ClearUser() *TagUpdateOne
- func (tuo *TagUpdateOne) Exec(ctx context.Context) error
- func (tuo *TagUpdateOne) ExecX(ctx context.Context)
- func (tuo *TagUpdateOne) Mutation() *TagMutation
- func (tuo *TagUpdateOne) RemoveBusinesIDs(ids ...uuid.UUID) *TagUpdateOne
- func (tuo *TagUpdateOne) RemoveBusiness(b ...*Business) *TagUpdateOne
- func (tuo *TagUpdateOne) RemoveUser(u ...*User) *TagUpdateOne
- func (tuo *TagUpdateOne) RemoveUserIDs(ids ...uuid.UUID) *TagUpdateOne
- func (tuo *TagUpdateOne) Save(ctx context.Context) (*Tag, error)
- func (tuo *TagUpdateOne) SaveX(ctx context.Context) *Tag
- func (tuo *TagUpdateOne) Select(field string, fields ...string) *TagUpdateOne
- func (tuo *TagUpdateOne) SetComment(s string) *TagUpdateOne
- func (tuo *TagUpdateOne) SetDeletedAt(t time.Time) *TagUpdateOne
- func (tuo *TagUpdateOne) SetName(s string) *TagUpdateOne
- func (tuo *TagUpdateOne) SetNillableComment(s *string) *TagUpdateOne
- func (tuo *TagUpdateOne) SetNillableDeletedAt(t *time.Time) *TagUpdateOne
- func (tuo *TagUpdateOne) SetUpdatedAt(t time.Time) *TagUpdateOne
- func (tuo *TagUpdateOne) Where(ps ...predicate.Tag) *TagUpdateOne
- type TagWhereInput
- type Tags
- type Timetable
- func (t *Timetable) Address(ctx context.Context) (*Address, error)
- func (t *Timetable) I18nDate(field string) string
- func (n *Timetable) IsNode()
- func (t *Timetable) NamedOperatorsOnDuty(name string) ([]*Operator, error)
- func (t *Timetable) Node(ctx context.Context) (node *Node, err error)
- func (t *Timetable) OperatorsOnDuty(ctx context.Context) (result []*Operator, err error)
- func (t *Timetable) QueryAddress() *AddressQuery
- func (t *Timetable) QueryOperatorsOnDuty() *OperatorQuery
- func (t *Timetable) String() string
- func (t *Timetable) ToEdge(order *TimetableOrder) *TimetableEdge
- func (t *Timetable) Unwrap() *Timetable
- func (t *Timetable) Update() *TimetableUpdateOne
- func (t *Timetable) Value(name string) (ent.Value, error)
- type TimetableClient
- func (c *TimetableClient) Create() *TimetableCreate
- func (c *TimetableClient) CreateBulk(builders ...*TimetableCreate) *TimetableCreateBulk
- func (c *TimetableClient) Delete() *TimetableDelete
- func (c *TimetableClient) DeleteOne(t *Timetable) *TimetableDeleteOne
- func (c *TimetableClient) DeleteOneID(id uuid.UUID) *TimetableDeleteOne
- func (c *TimetableClient) Get(ctx context.Context, id uuid.UUID) (*Timetable, error)
- func (c *TimetableClient) GetX(ctx context.Context, id uuid.UUID) *Timetable
- func (c *TimetableClient) Hooks() []Hook
- func (c *TimetableClient) Intercept(interceptors ...Interceptor)
- func (c *TimetableClient) Interceptors() []Interceptor
- func (c *TimetableClient) Query() *TimetableQuery
- func (c *TimetableClient) QueryAddress(t *Timetable) *AddressQuery
- func (c *TimetableClient) QueryOperatorsOnDuty(t *Timetable) *OperatorQuery
- func (c *TimetableClient) Update() *TimetableUpdate
- func (c *TimetableClient) UpdateOne(t *Timetable) *TimetableUpdateOne
- func (c *TimetableClient) UpdateOneID(id uuid.UUID) *TimetableUpdateOne
- func (c *TimetableClient) Use(hooks ...Hook)
- type TimetableConnection
- type TimetableCreate
- func (tc *TimetableCreate) AddOperatorsOnDuty(o ...*Operator) *TimetableCreate
- func (tc *TimetableCreate) AddOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableCreate
- func (tc *TimetableCreate) Exec(ctx context.Context) error
- func (tc *TimetableCreate) ExecX(ctx context.Context)
- func (tc *TimetableCreate) Mutation() *TimetableMutation
- func (tc *TimetableCreate) Save(ctx context.Context) (*Timetable, error)
- func (tc *TimetableCreate) SaveX(ctx context.Context) *Timetable
- func (tc *TimetableCreate) SetAddress(a *Address) *TimetableCreate
- func (tc *TimetableCreate) SetAddressID(id uuid.UUID) *TimetableCreate
- func (tc *TimetableCreate) SetAvailabilityByEmail(s string) *TimetableCreate
- func (tc *TimetableCreate) SetAvailabilityByPhone(s string) *TimetableCreate
- func (tc *TimetableCreate) SetAvailabilityBySms(s string) *TimetableCreate
- func (tc *TimetableCreate) SetAvailabilityByWhatsapp(s string) *TimetableCreate
- func (tc *TimetableCreate) SetComment(s string) *TimetableCreate
- func (tc *TimetableCreate) SetCreatedAt(t time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetDatetimeFrom(t time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetDatetimeTo(t time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetDeletedAt(t time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetDuration(i int) *TimetableCreate
- func (tc *TimetableCreate) SetID(u uuid.UUID) *TimetableCreate
- func (c *TimetableCreate) SetInput(i CreateTimetableInput) *TimetableCreate
- func (tc *TimetableCreate) SetNillableAvailabilityByEmail(s *string) *TimetableCreate
- func (tc *TimetableCreate) SetNillableAvailabilityByPhone(s *string) *TimetableCreate
- func (tc *TimetableCreate) SetNillableAvailabilityBySms(s *string) *TimetableCreate
- func (tc *TimetableCreate) SetNillableAvailabilityByWhatsapp(s *string) *TimetableCreate
- func (tc *TimetableCreate) SetNillableComment(s *string) *TimetableCreate
- func (tc *TimetableCreate) SetNillableCreatedAt(t *time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetNillableDatetimeTo(t *time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetNillableDeletedAt(t *time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetNillableDuration(i *int) *TimetableCreate
- func (tc *TimetableCreate) SetNillableID(u *uuid.UUID) *TimetableCreate
- func (tc *TimetableCreate) SetNillableTimeWholeDay(b *bool) *TimetableCreate
- func (tc *TimetableCreate) SetNillableTimetableType(tt *timetable.TimetableType) *TimetableCreate
- func (tc *TimetableCreate) SetNillableUpdatedAt(t *time.Time) *TimetableCreate
- func (tc *TimetableCreate) SetTimeWholeDay(b bool) *TimetableCreate
- func (tc *TimetableCreate) SetTimetableType(tt timetable.TimetableType) *TimetableCreate
- func (tc *TimetableCreate) SetUpdatedAt(t time.Time) *TimetableCreate
- type TimetableCreateBulk
- type TimetableDelete
- type TimetableDeleteOne
- type TimetableEdge
- type TimetableEdges
- type TimetableGroupBy
- func (tgb *TimetableGroupBy) Aggregate(fns ...AggregateFunc) *TimetableGroupBy
- func (s *TimetableGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TimetableGroupBy) BoolX(ctx context.Context) bool
- func (s *TimetableGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TimetableGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TimetableGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TimetableGroupBy) Float64X(ctx context.Context) float64
- func (s *TimetableGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TimetableGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TimetableGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TimetableGroupBy) IntX(ctx context.Context) int
- func (s *TimetableGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TimetableGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TimetableGroupBy) Scan(ctx context.Context, v any) error
- func (s *TimetableGroupBy) ScanX(ctx context.Context, v any)
- func (s *TimetableGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TimetableGroupBy) StringX(ctx context.Context) string
- func (s *TimetableGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TimetableGroupBy) StringsX(ctx context.Context) []string
- type TimetableMutation
- func (m *TimetableMutation) AddDuration(i int)
- func (m *TimetableMutation) AddField(name string, value ent.Value) error
- func (m *TimetableMutation) AddOperatorsOnDutyIDs(ids ...uuid.UUID)
- func (m *TimetableMutation) AddedDuration() (r int, exists bool)
- func (m *TimetableMutation) AddedEdges() []string
- func (m *TimetableMutation) AddedField(name string) (ent.Value, bool)
- func (m *TimetableMutation) AddedFields() []string
- func (m *TimetableMutation) AddedIDs(name string) []ent.Value
- func (m *TimetableMutation) AddressCleared() bool
- func (m *TimetableMutation) AddressID() (id uuid.UUID, exists bool)
- func (m *TimetableMutation) AddressIDs() (ids []uuid.UUID)
- func (m *TimetableMutation) AvailabilityByEmail() (r string, exists bool)
- func (m *TimetableMutation) AvailabilityByEmailCleared() bool
- func (m *TimetableMutation) AvailabilityByPhone() (r string, exists bool)
- func (m *TimetableMutation) AvailabilityByPhoneCleared() bool
- func (m *TimetableMutation) AvailabilityBySms() (r string, exists bool)
- func (m *TimetableMutation) AvailabilityBySmsCleared() bool
- func (m *TimetableMutation) AvailabilityByWhatsapp() (r string, exists bool)
- func (m *TimetableMutation) AvailabilityByWhatsappCleared() bool
- func (m *TimetableMutation) ClearAddress()
- func (m *TimetableMutation) ClearAvailabilityByEmail()
- func (m *TimetableMutation) ClearAvailabilityByPhone()
- func (m *TimetableMutation) ClearAvailabilityBySms()
- func (m *TimetableMutation) ClearAvailabilityByWhatsapp()
- func (m *TimetableMutation) ClearComment()
- func (m *TimetableMutation) ClearDatetimeTo()
- func (m *TimetableMutation) ClearDeletedAt()
- func (m *TimetableMutation) ClearDuration()
- func (m *TimetableMutation) ClearEdge(name string) error
- func (m *TimetableMutation) ClearField(name string) error
- func (m *TimetableMutation) ClearOperatorsOnDuty()
- func (m *TimetableMutation) ClearedEdges() []string
- func (m *TimetableMutation) ClearedFields() []string
- func (m TimetableMutation) Client() *Client
- func (m *TimetableMutation) Comment() (r string, exists bool)
- func (m *TimetableMutation) CommentCleared() bool
- func (m *TimetableMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TimetableMutation) DatetimeFrom() (r time.Time, exists bool)
- func (m *TimetableMutation) DatetimeTo() (r time.Time, exists bool)
- func (m *TimetableMutation) DatetimeToCleared() bool
- func (m *TimetableMutation) DeletedAt() (r time.Time, exists bool)
- func (m *TimetableMutation) DeletedAtCleared() bool
- func (m *TimetableMutation) Duration() (r int, exists bool)
- func (m *TimetableMutation) DurationCleared() bool
- func (m *TimetableMutation) EdgeCleared(name string) bool
- func (m *TimetableMutation) Field(name string) (ent.Value, bool)
- func (m *TimetableMutation) FieldCleared(name string) bool
- func (m *TimetableMutation) Fields() []string
- func (m *TimetableMutation) ID() (id uuid.UUID, exists bool)
- func (m *TimetableMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TimetableMutation) OldAvailabilityByEmail(ctx context.Context) (v string, err error)
- func (m *TimetableMutation) OldAvailabilityByPhone(ctx context.Context) (v string, err error)
- func (m *TimetableMutation) OldAvailabilityBySms(ctx context.Context) (v string, err error)
- func (m *TimetableMutation) OldAvailabilityByWhatsapp(ctx context.Context) (v string, err error)
- func (m *TimetableMutation) OldComment(ctx context.Context) (v string, err error)
- func (m *TimetableMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TimetableMutation) OldDatetimeFrom(ctx context.Context) (v time.Time, err error)
- func (m *TimetableMutation) OldDatetimeTo(ctx context.Context) (v time.Time, err error)
- func (m *TimetableMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *TimetableMutation) OldDuration(ctx context.Context) (v int, err error)
- func (m *TimetableMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TimetableMutation) OldTimeWholeDay(ctx context.Context) (v bool, err error)
- func (m *TimetableMutation) OldTimetableType(ctx context.Context) (v timetable.TimetableType, err error)
- func (m *TimetableMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TimetableMutation) Op() Op
- func (m *TimetableMutation) OperatorsOnDutyCleared() bool
- func (m *TimetableMutation) OperatorsOnDutyIDs() (ids []uuid.UUID)
- func (m *TimetableMutation) RemoveOperatorsOnDutyIDs(ids ...uuid.UUID)
- func (m *TimetableMutation) RemovedEdges() []string
- func (m *TimetableMutation) RemovedIDs(name string) []ent.Value
- func (m *TimetableMutation) RemovedOperatorsOnDutyIDs() (ids []uuid.UUID)
- func (m *TimetableMutation) ResetAddress()
- func (m *TimetableMutation) ResetAvailabilityByEmail()
- func (m *TimetableMutation) ResetAvailabilityByPhone()
- func (m *TimetableMutation) ResetAvailabilityBySms()
- func (m *TimetableMutation) ResetAvailabilityByWhatsapp()
- func (m *TimetableMutation) ResetComment()
- func (m *TimetableMutation) ResetCreatedAt()
- func (m *TimetableMutation) ResetDatetimeFrom()
- func (m *TimetableMutation) ResetDatetimeTo()
- func (m *TimetableMutation) ResetDeletedAt()
- func (m *TimetableMutation) ResetDuration()
- func (m *TimetableMutation) ResetEdge(name string) error
- func (m *TimetableMutation) ResetField(name string) error
- func (m *TimetableMutation) ResetOperatorsOnDuty()
- func (m *TimetableMutation) ResetTimeWholeDay()
- func (m *TimetableMutation) ResetTimetableType()
- func (m *TimetableMutation) ResetUpdatedAt()
- func (m *TimetableMutation) SetAddressID(id uuid.UUID)
- func (m *TimetableMutation) SetAvailabilityByEmail(s string)
- func (m *TimetableMutation) SetAvailabilityByPhone(s string)
- func (m *TimetableMutation) SetAvailabilityBySms(s string)
- func (m *TimetableMutation) SetAvailabilityByWhatsapp(s string)
- func (m *TimetableMutation) SetComment(s string)
- func (m *TimetableMutation) SetCreatedAt(t time.Time)
- func (m *TimetableMutation) SetDatetimeFrom(t time.Time)
- func (m *TimetableMutation) SetDatetimeTo(t time.Time)
- func (m *TimetableMutation) SetDeletedAt(t time.Time)
- func (m *TimetableMutation) SetDuration(i int)
- func (m *TimetableMutation) SetField(name string, value ent.Value) error
- func (m *TimetableMutation) SetID(id uuid.UUID)
- func (m *TimetableMutation) SetOp(op Op)
- func (m *TimetableMutation) SetTimeWholeDay(b bool)
- func (m *TimetableMutation) SetTimetableType(tt timetable.TimetableType)
- func (m *TimetableMutation) SetUpdatedAt(t time.Time)
- func (m *TimetableMutation) TimeWholeDay() (r bool, exists bool)
- func (m *TimetableMutation) TimetableType() (r timetable.TimetableType, exists bool)
- func (m TimetableMutation) Tx() (*Tx, error)
- func (m *TimetableMutation) Type() string
- func (m *TimetableMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *TimetableMutation) Where(ps ...predicate.Timetable)
- func (m *TimetableMutation) WhereP(ps ...func(*sql.Selector))
- type TimetableOrder
- type TimetableOrderField
- type TimetablePaginateOption
- type TimetableQuery
- func (tq *TimetableQuery) Aggregate(fns ...AggregateFunc) *TimetableSelect
- func (tq *TimetableQuery) All(ctx context.Context) ([]*Timetable, error)
- func (tq *TimetableQuery) AllX(ctx context.Context) []*Timetable
- func (tq *TimetableQuery) Clone() *TimetableQuery
- func (t *TimetableQuery) CollectFields(ctx context.Context, satisfies ...string) (*TimetableQuery, error)
- func (tq *TimetableQuery) Count(ctx context.Context) (int, error)
- func (tq *TimetableQuery) CountX(ctx context.Context) int
- func (tq *TimetableQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TimetableQuery) ExistX(ctx context.Context) bool
- func (tq *TimetableQuery) First(ctx context.Context) (*Timetable, error)
- func (tq *TimetableQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TimetableQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tq *TimetableQuery) FirstX(ctx context.Context) *Timetable
- func (tq *TimetableQuery) GroupBy(field string, fields ...string) *TimetableGroupBy
- func (tq *TimetableQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tq *TimetableQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tq *TimetableQuery) Limit(limit int) *TimetableQuery
- func (tq *TimetableQuery) Offset(offset int) *TimetableQuery
- func (tq *TimetableQuery) Only(ctx context.Context) (*Timetable, error)
- func (tq *TimetableQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TimetableQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tq *TimetableQuery) OnlyX(ctx context.Context) *Timetable
- func (tq *TimetableQuery) Order(o ...timetable.OrderOption) *TimetableQuery
- func (t *TimetableQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*TimetableConnection, error)
- func (tq *TimetableQuery) QueryAddress() *AddressQuery
- func (tq *TimetableQuery) QueryOperatorsOnDuty() *OperatorQuery
- func (tq *TimetableQuery) Select(fields ...string) *TimetableSelect
- func (tq *TimetableQuery) Unique(unique bool) *TimetableQuery
- func (tq *TimetableQuery) Where(ps ...predicate.Timetable) *TimetableQuery
- func (tq *TimetableQuery) WithAddress(opts ...func(*AddressQuery)) *TimetableQuery
- func (tq *TimetableQuery) WithNamedOperatorsOnDuty(name string, opts ...func(*OperatorQuery)) *TimetableQuery
- func (tq *TimetableQuery) WithOperatorsOnDuty(opts ...func(*OperatorQuery)) *TimetableQuery
- type TimetableSelect
- func (ts *TimetableSelect) Aggregate(fns ...AggregateFunc) *TimetableSelect
- func (s *TimetableSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TimetableSelect) BoolX(ctx context.Context) bool
- func (s *TimetableSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TimetableSelect) BoolsX(ctx context.Context) []bool
- func (s *TimetableSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TimetableSelect) Float64X(ctx context.Context) float64
- func (s *TimetableSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TimetableSelect) Float64sX(ctx context.Context) []float64
- func (s *TimetableSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TimetableSelect) IntX(ctx context.Context) int
- func (s *TimetableSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TimetableSelect) IntsX(ctx context.Context) []int
- func (ts *TimetableSelect) Scan(ctx context.Context, v any) error
- func (s *TimetableSelect) ScanX(ctx context.Context, v any)
- func (s *TimetableSelect) String(ctx context.Context) (_ string, err error)
- func (s *TimetableSelect) StringX(ctx context.Context) string
- func (s *TimetableSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TimetableSelect) StringsX(ctx context.Context) []string
- type TimetableUpdate
- func (tu *TimetableUpdate) AddDuration(i int) *TimetableUpdate
- func (tu *TimetableUpdate) AddOperatorsOnDuty(o ...*Operator) *TimetableUpdate
- func (tu *TimetableUpdate) AddOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdate
- func (tu *TimetableUpdate) ClearAddress() *TimetableUpdate
- func (tu *TimetableUpdate) ClearAvailabilityByEmail() *TimetableUpdate
- func (tu *TimetableUpdate) ClearAvailabilityByPhone() *TimetableUpdate
- func (tu *TimetableUpdate) ClearAvailabilityBySms() *TimetableUpdate
- func (tu *TimetableUpdate) ClearAvailabilityByWhatsapp() *TimetableUpdate
- func (tu *TimetableUpdate) ClearComment() *TimetableUpdate
- func (tu *TimetableUpdate) ClearDatetimeTo() *TimetableUpdate
- func (tu *TimetableUpdate) ClearDeletedAt() *TimetableUpdate
- func (tu *TimetableUpdate) ClearDuration() *TimetableUpdate
- func (tu *TimetableUpdate) ClearOperatorsOnDuty() *TimetableUpdate
- func (tu *TimetableUpdate) Exec(ctx context.Context) error
- func (tu *TimetableUpdate) ExecX(ctx context.Context)
- func (tu *TimetableUpdate) Mutation() *TimetableMutation
- func (tu *TimetableUpdate) RemoveOperatorsOnDuty(o ...*Operator) *TimetableUpdate
- func (tu *TimetableUpdate) RemoveOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdate
- func (tu *TimetableUpdate) Save(ctx context.Context) (int, error)
- func (tu *TimetableUpdate) SaveX(ctx context.Context) int
- func (tu *TimetableUpdate) SetAddress(a *Address) *TimetableUpdate
- func (tu *TimetableUpdate) SetAddressID(id uuid.UUID) *TimetableUpdate
- func (tu *TimetableUpdate) SetAvailabilityByEmail(s string) *TimetableUpdate
- func (tu *TimetableUpdate) SetAvailabilityByPhone(s string) *TimetableUpdate
- func (tu *TimetableUpdate) SetAvailabilityBySms(s string) *TimetableUpdate
- func (tu *TimetableUpdate) SetAvailabilityByWhatsapp(s string) *TimetableUpdate
- func (tu *TimetableUpdate) SetComment(s string) *TimetableUpdate
- func (tu *TimetableUpdate) SetDatetimeFrom(t time.Time) *TimetableUpdate
- func (tu *TimetableUpdate) SetDatetimeTo(t time.Time) *TimetableUpdate
- func (tu *TimetableUpdate) SetDeletedAt(t time.Time) *TimetableUpdate
- func (tu *TimetableUpdate) SetDuration(i int) *TimetableUpdate
- func (c *TimetableUpdate) SetInput(i UpdateTimetableInput) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableAvailabilityByEmail(s *string) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableAvailabilityByPhone(s *string) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableAvailabilityBySms(s *string) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableAvailabilityByWhatsapp(s *string) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableComment(s *string) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableDatetimeTo(t *time.Time) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableDeletedAt(t *time.Time) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableDuration(i *int) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableTimeWholeDay(b *bool) *TimetableUpdate
- func (tu *TimetableUpdate) SetNillableTimetableType(tt *timetable.TimetableType) *TimetableUpdate
- func (tu *TimetableUpdate) SetTimeWholeDay(b bool) *TimetableUpdate
- func (tu *TimetableUpdate) SetTimetableType(tt timetable.TimetableType) *TimetableUpdate
- func (tu *TimetableUpdate) SetUpdatedAt(t time.Time) *TimetableUpdate
- func (tu *TimetableUpdate) Where(ps ...predicate.Timetable) *TimetableUpdate
- type TimetableUpdateOne
- func (tuo *TimetableUpdateOne) AddDuration(i int) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) AddOperatorsOnDuty(o ...*Operator) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) AddOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearAddress() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearAvailabilityByEmail() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearAvailabilityByPhone() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearAvailabilityBySms() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearAvailabilityByWhatsapp() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearComment() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearDatetimeTo() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearDeletedAt() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearDuration() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) ClearOperatorsOnDuty() *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) Exec(ctx context.Context) error
- func (tuo *TimetableUpdateOne) ExecX(ctx context.Context)
- func (tuo *TimetableUpdateOne) Mutation() *TimetableMutation
- func (tuo *TimetableUpdateOne) RemoveOperatorsOnDuty(o ...*Operator) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) RemoveOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) Save(ctx context.Context) (*Timetable, error)
- func (tuo *TimetableUpdateOne) SaveX(ctx context.Context) *Timetable
- func (tuo *TimetableUpdateOne) Select(field string, fields ...string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetAddress(a *Address) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetAddressID(id uuid.UUID) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetAvailabilityByEmail(s string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetAvailabilityByPhone(s string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetAvailabilityBySms(s string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetAvailabilityByWhatsapp(s string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetComment(s string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetDatetimeFrom(t time.Time) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetDatetimeTo(t time.Time) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetDeletedAt(t time.Time) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetDuration(i int) *TimetableUpdateOne
- func (c *TimetableUpdateOne) SetInput(i UpdateTimetableInput) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableAvailabilityByEmail(s *string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableAvailabilityByPhone(s *string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableAvailabilityBySms(s *string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableAvailabilityByWhatsapp(s *string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableComment(s *string) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableDatetimeTo(t *time.Time) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableDeletedAt(t *time.Time) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableDuration(i *int) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableTimeWholeDay(b *bool) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetNillableTimetableType(tt *timetable.TimetableType) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetTimeWholeDay(b bool) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetTimetableType(tt timetable.TimetableType) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) SetUpdatedAt(t time.Time) *TimetableUpdateOne
- func (tuo *TimetableUpdateOne) Where(ps ...predicate.Timetable) *TimetableUpdateOne
- type TimetableWhereInput
- type Timetables
- type TraverseFunc
- type Traverser
- type Tx
- type UpdateAddressInput
- type UpdateBusinessInput
- type UpdateTimetableInput
- type UpdateUserInput
- type User
- func (u *User) Businesses(ctx context.Context) (result []*Business, err error)
- func (n *User) IsNode()
- func (u *User) NamedBusinesses(name string) ([]*Business, error)
- func (u *User) NamedTags(name string) ([]*Tag, error)
- func (u *User) Node(ctx context.Context) (node *Node, err error)
- func (u *User) QueryBusinesses() *BusinessQuery
- func (u *User) QueryTags() *TagQuery
- func (u *User) String() string
- func (u *User) Tags(ctx context.Context) (result []*Tag, err error)
- func (u *User) ToEdge(order *UserOrder) *UserEdge
- func (u *User) Unwrap() *User
- func (u *User) Update() *UserUpdateOne
- func (u *User) Value(name string) (ent.Value, error)
- 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 uuid.UUID) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryBusinesses(u *User) *BusinessQuery
- func (c *UserClient) QueryTags(u *User) *TagQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserConnection
- type UserCreate
- func (uc *UserCreate) AddBusinessIDs(ids ...uuid.UUID) *UserCreate
- func (uc *UserCreate) AddBusinesses(b ...*Business) *UserCreate
- func (uc *UserCreate) AddTagIDs(ids ...uuid.UUID) *UserCreate
- func (uc *UserCreate) AddTags(t ...*Tag) *UserCreate
- func (uc *UserCreate) Exec(ctx context.Context) error
- func (uc *UserCreate) ExecX(ctx context.Context)
- func (uc *UserCreate) Mutation() *UserMutation
- func (uc *UserCreate) Save(ctx context.Context) (*User, error)
- func (uc *UserCreate) SaveX(ctx context.Context) *User
- func (uc *UserCreate) SetActive(b bool) *UserCreate
- func (uc *UserCreate) SetComment(s string) *UserCreate
- func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetEmail(s string) *UserCreate
- func (uc *UserCreate) SetFirstname(s string) *UserCreate
- func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate
- func (c *UserCreate) SetInput(i CreateUserInput) *UserCreate
- func (uc *UserCreate) SetLogin(s string) *UserCreate
- func (uc *UserCreate) SetNillableActive(b *bool) *UserCreate
- func (uc *UserCreate) SetNillableComment(s *string) *UserCreate
- func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableDeletedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate
- func (uc *UserCreate) SetNillablePasswordhash(s *string) *UserCreate
- func (uc *UserCreate) SetNillableRole(s *string) *UserCreate
- func (uc *UserCreate) SetNillableTitle(s *string) *UserCreate
- func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableUsePublicapi(s *string) *UserCreate
- func (uc *UserCreate) SetPasswordhash(s string) *UserCreate
- func (uc *UserCreate) SetRole(s string) *UserCreate
- func (uc *UserCreate) SetSurname(s string) *UserCreate
- func (uc *UserCreate) SetTitle(s string) *UserCreate
- func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetUsePublicapi(s string) *UserCreate
- type UserCreateBulk
- type UserDelete
- type UserDeleteOne
- type UserEdge
- type UserEdges
- type UserGroupBy
- func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserGroupBy) BoolX(ctx context.Context) bool
- func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserGroupBy) Float64X(ctx context.Context) float64
- func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserGroupBy) IntX(ctx context.Context) int
- func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserGroupBy) IntsX(ctx context.Context) []int
- func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserGroupBy) StringX(ctx context.Context) string
- func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserGroupBy) StringsX(ctx context.Context) []string
- type UserMutation
- func (m *UserMutation) Active() (r bool, exists bool)
- func (m *UserMutation) AddBusinessIDs(ids ...uuid.UUID)
- func (m *UserMutation) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddTagIDs(ids ...uuid.UUID)
- 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) BusinessesCleared() bool
- func (m *UserMutation) BusinessesIDs() (ids []uuid.UUID)
- func (m *UserMutation) ClearBusinesses()
- func (m *UserMutation) ClearComment()
- func (m *UserMutation) ClearDeletedAt()
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearPasswordhash()
- func (m *UserMutation) ClearTags()
- func (m *UserMutation) ClearTitle()
- func (m *UserMutation) ClearedEdges() []string
- func (m *UserMutation) ClearedFields() []string
- func (m UserMutation) Client() *Client
- func (m *UserMutation) Comment() (r string, exists bool)
- func (m *UserMutation) CommentCleared() bool
- func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UserMutation) DeletedAt() (r time.Time, exists bool)
- func (m *UserMutation) DeletedAtCleared() bool
- func (m *UserMutation) EdgeCleared(name string) bool
- func (m *UserMutation) Email() (r string, exists bool)
- func (m *UserMutation) Field(name string) (ent.Value, bool)
- func (m *UserMutation) FieldCleared(name string) bool
- func (m *UserMutation) Fields() []string
- func (m *UserMutation) Firstname() (r string, exists bool)
- func (m *UserMutation) ID() (id uuid.UUID, exists bool)
- func (m *UserMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *UserMutation) Login() (r string, exists bool)
- func (m *UserMutation) OldActive(ctx context.Context) (v bool, err error)
- func (m *UserMutation) OldComment(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldEmail(ctx context.Context) (v string, 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) OldLogin(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldPasswordhash(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldRole(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldSurname(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldUsePublicapi(ctx context.Context) (v string, err error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) Passwordhash() (r string, exists bool)
- func (m *UserMutation) PasswordhashCleared() bool
- func (m *UserMutation) RemoveBusinessIDs(ids ...uuid.UUID)
- func (m *UserMutation) RemoveTagIDs(ids ...uuid.UUID)
- func (m *UserMutation) RemovedBusinessesIDs() (ids []uuid.UUID)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) RemovedTagsIDs() (ids []uuid.UUID)
- func (m *UserMutation) ResetActive()
- func (m *UserMutation) ResetBusinesses()
- func (m *UserMutation) ResetComment()
- func (m *UserMutation) ResetCreatedAt()
- func (m *UserMutation) ResetDeletedAt()
- func (m *UserMutation) ResetEdge(name string) error
- func (m *UserMutation) ResetEmail()
- func (m *UserMutation) ResetField(name string) error
- func (m *UserMutation) ResetFirstname()
- func (m *UserMutation) ResetLogin()
- func (m *UserMutation) ResetPasswordhash()
- func (m *UserMutation) ResetRole()
- func (m *UserMutation) ResetSurname()
- func (m *UserMutation) ResetTags()
- func (m *UserMutation) ResetTitle()
- func (m *UserMutation) ResetUpdatedAt()
- func (m *UserMutation) ResetUsePublicapi()
- func (m *UserMutation) Role() (r string, exists bool)
- func (m *UserMutation) SetActive(b bool)
- func (m *UserMutation) SetComment(s string)
- func (m *UserMutation) SetCreatedAt(t time.Time)
- func (m *UserMutation) SetDeletedAt(t time.Time)
- func (m *UserMutation) SetEmail(s string)
- func (m *UserMutation) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetFirstname(s string)
- func (m *UserMutation) SetID(id uuid.UUID)
- func (m *UserMutation) SetLogin(s string)
- func (m *UserMutation) SetOp(op Op)
- func (m *UserMutation) SetPasswordhash(s string)
- func (m *UserMutation) SetRole(s string)
- func (m *UserMutation) SetSurname(s string)
- func (m *UserMutation) SetTitle(s string)
- func (m *UserMutation) SetUpdatedAt(t time.Time)
- func (m *UserMutation) SetUsePublicapi(s string)
- func (m *UserMutation) Surname() (r string, exists bool)
- func (m *UserMutation) TagsCleared() bool
- func (m *UserMutation) TagsIDs() (ids []uuid.UUID)
- 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) UpdatedAt() (r time.Time, exists bool)
- func (m *UserMutation) UsePublicapi() (r string, exists bool)
- func (m *UserMutation) Where(ps ...predicate.User)
- func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
- type UserOrder
- type UserOrderField
- type UserPaginateOption
- type UserQuery
- func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
- func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
- func (uq *UserQuery) AllX(ctx context.Context) []*User
- func (uq *UserQuery) Clone() *UserQuery
- func (u *UserQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserQuery, error)
- 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 uuid.UUID, err error)
- func (uq *UserQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (uq *UserQuery) FirstX(ctx context.Context) *User
- func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (uq *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (uq *UserQuery) IDsX(ctx context.Context) []uuid.UUID
- 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 uuid.UUID, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
- func (u *UserQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*UserConnection, error)
- func (uq *UserQuery) QueryBusinesses() *BusinessQuery
- func (uq *UserQuery) QueryTags() *TagQuery
- func (uq *UserQuery) Select(fields ...string) *UserSelect
- func (uq *UserQuery) Unique(unique bool) *UserQuery
- func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
- func (uq *UserQuery) WithBusinesses(opts ...func(*BusinessQuery)) *UserQuery
- func (uq *UserQuery) WithNamedBusinesses(name string, opts ...func(*BusinessQuery)) *UserQuery
- func (uq *UserQuery) WithNamedTags(name string, opts ...func(*TagQuery)) *UserQuery
- func (uq *UserQuery) WithTags(opts ...func(*TagQuery)) *UserQuery
- type UserSelect
- func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
- func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSelect) BoolX(ctx context.Context) bool
- func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSelect) BoolsX(ctx context.Context) []bool
- func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSelect) Float64X(ctx context.Context) float64
- func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSelect) Float64sX(ctx context.Context) []float64
- func (s *UserSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserSelect) IntX(ctx context.Context) int
- func (s *UserSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserSelect) IntsX(ctx context.Context) []int
- func (us *UserSelect) Scan(ctx context.Context, v any) error
- func (s *UserSelect) ScanX(ctx context.Context, v any)
- func (s *UserSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserSelect) StringX(ctx context.Context) string
- func (s *UserSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserSelect) StringsX(ctx context.Context) []string
- type UserUpdate
- func (uu *UserUpdate) AddBusinessIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) AddBusinesses(b ...*Business) *UserUpdate
- func (uu *UserUpdate) AddTagIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) AddTags(t ...*Tag) *UserUpdate
- func (uu *UserUpdate) ClearBusinesses() *UserUpdate
- func (uu *UserUpdate) ClearComment() *UserUpdate
- func (uu *UserUpdate) ClearDeletedAt() *UserUpdate
- func (uu *UserUpdate) ClearPasswordhash() *UserUpdate
- func (uu *UserUpdate) ClearTags() *UserUpdate
- func (uu *UserUpdate) ClearTitle() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveBusinessIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) RemoveBusinesses(b ...*Business) *UserUpdate
- func (uu *UserUpdate) RemoveTagIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) RemoveTags(t ...*Tag) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetActive(b bool) *UserUpdate
- func (uu *UserUpdate) SetComment(s string) *UserUpdate
- func (uu *UserUpdate) SetDeletedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetEmail(s string) *UserUpdate
- func (uu *UserUpdate) SetFirstname(s string) *UserUpdate
- func (c *UserUpdate) SetInput(i UpdateUserInput) *UserUpdate
- func (uu *UserUpdate) SetLogin(s string) *UserUpdate
- func (uu *UserUpdate) SetNillableActive(b *bool) *UserUpdate
- func (uu *UserUpdate) SetNillableComment(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableDeletedAt(t *time.Time) *UserUpdate
- func (uu *UserUpdate) SetNillablePasswordhash(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableRole(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableTitle(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableUsePublicapi(s *string) *UserUpdate
- func (uu *UserUpdate) SetPasswordhash(s string) *UserUpdate
- func (uu *UserUpdate) SetRole(s string) *UserUpdate
- func (uu *UserUpdate) SetSurname(s string) *UserUpdate
- func (uu *UserUpdate) SetTitle(s string) *UserUpdate
- func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetUsePublicapi(s string) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddBusinessIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddBusinesses(b ...*Business) *UserUpdateOne
- func (uuo *UserUpdateOne) AddTagIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddTags(t ...*Tag) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearBusinesses() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearComment() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearDeletedAt() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearPasswordhash() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearTags() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearTitle() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveBusinessIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveBusinesses(b ...*Business) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveTagIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveTags(t ...*Tag) *UserUpdateOne
- func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
- func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetActive(b bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetComment(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetDeletedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetFirstname(s string) *UserUpdateOne
- func (c *UserUpdateOne) SetInput(i UpdateUserInput) *UserUpdateOne
- func (uuo *UserUpdateOne) SetLogin(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableActive(b *bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableComment(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableDeletedAt(t *time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillablePasswordhash(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableRole(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableTitle(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableUsePublicapi(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetPasswordhash(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetRole(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetSurname(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetTitle(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUsePublicapi(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
- type UserWhereInput
- type Users
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeAddress = "Address" TypeAuditLog = "AuditLog" TypeBusiness = "Business" TypeContent = "Content" TypeOperator = "Operator" TypeTag = "Tag" TypeTimetable = "Timetable" TypeUser = "User" )
Variables ¶
var ( // BusinessOrderFieldName1 orders Business by name1. BusinessOrderFieldName1 = &BusinessOrderField{ Value: func(b *Business) (ent.Value, error) { return b.Name1, nil }, column: business.FieldName1, toTerm: business.ByName1, toCursor: func(b *Business) Cursor { return Cursor{ ID: b.ID, Value: b.Name1, } }, } // BusinessOrderFieldAlias orders Business by alias. BusinessOrderFieldAlias = &BusinessOrderField{ Value: func(b *Business) (ent.Value, error) { return b.Alias, nil }, column: business.FieldAlias, toTerm: business.ByAlias, toCursor: func(b *Business) Cursor { return Cursor{ ID: b.ID, Value: b.Alias, } }, } )
var ( // AuditLogOrderFieldTimestamp orders AuditLog by timestamp. AuditLogOrderFieldTimestamp = &AuditLogOrderField{ Value: func(al *AuditLog) (ent.Value, error) { return al.Timestamp, nil }, column: auditlog.FieldTimestamp, toTerm: auditlog.ByTimestamp, toCursor: func(al *AuditLog) Cursor { return Cursor{ ID: al.ID, Value: al.Timestamp, } }, } )
var ( // ContentOrderFieldPublishedAt orders Content by published_at. ContentOrderFieldPublishedAt = &ContentOrderField{ Value: func(c *Content) (ent.Value, error) { return c.PublishedAt, nil }, column: content.FieldPublishedAt, toTerm: content.ByPublishedAt, toCursor: func(c *Content) Cursor { return Cursor{ ID: c.ID, Value: c.PublishedAt, } }, } )
var DefaultAddressOrder = &AddressOrder{ Direction: entgql.OrderDirectionAsc, Field: &AddressOrderField{ Value: func(a *Address) (ent.Value, error) { return a.ID, nil }, column: address.FieldID, toTerm: address.ByID, toCursor: func(a *Address) Cursor { return Cursor{ID: a.ID} }, }, }
DefaultAddressOrder is the default ordering of Address.
var DefaultAuditLogOrder = &AuditLogOrder{ Direction: entgql.OrderDirectionAsc, Field: &AuditLogOrderField{ Value: func(al *AuditLog) (ent.Value, error) { return al.ID, nil }, column: auditlog.FieldID, toTerm: auditlog.ByID, toCursor: func(al *AuditLog) Cursor { return Cursor{ID: al.ID} }, }, }
DefaultAuditLogOrder is the default ordering of AuditLog.
var DefaultBusinessOrder = &BusinessOrder{ Direction: entgql.OrderDirectionAsc, Field: &BusinessOrderField{ Value: func(b *Business) (ent.Value, error) { return b.ID, nil }, column: business.FieldID, toTerm: business.ByID, toCursor: func(b *Business) Cursor { return Cursor{ID: b.ID} }, }, }
DefaultBusinessOrder is the default ordering of Business.
var DefaultContentOrder = &ContentOrder{ Direction: entgql.OrderDirectionAsc, Field: &ContentOrderField{ Value: func(c *Content) (ent.Value, error) { return c.ID, nil }, column: content.FieldID, toTerm: content.ByID, toCursor: func(c *Content) Cursor { return Cursor{ID: c.ID} }, }, }
DefaultContentOrder is the default ordering of Content.
var DefaultOperatorOrder = &OperatorOrder{ Direction: entgql.OrderDirectionAsc, Field: &OperatorOrderField{ Value: func(o *Operator) (ent.Value, error) { return o.ID, nil }, column: operator.FieldID, toTerm: operator.ByID, toCursor: func(o *Operator) Cursor { return Cursor{ID: o.ID} }, }, }
DefaultOperatorOrder is the default ordering of Operator.
var DefaultTagOrder = &TagOrder{ Direction: entgql.OrderDirectionAsc, Field: &TagOrderField{ Value: func(t *Tag) (ent.Value, error) { return t.ID, nil }, column: tag.FieldID, toTerm: tag.ByID, toCursor: func(t *Tag) Cursor { return Cursor{ID: t.ID} }, }, }
DefaultTagOrder is the default ordering of Tag.
var DefaultTimetableOrder = &TimetableOrder{ Direction: entgql.OrderDirectionAsc, Field: &TimetableOrderField{ Value: func(t *Timetable) (ent.Value, error) { return t.ID, nil }, column: timetable.FieldID, toTerm: timetable.ByID, toCursor: func(t *Timetable) Cursor { return Cursor{ID: t.ID} }, }, }
DefaultTimetableOrder is the default ordering of Timetable.
var DefaultUserOrder = &UserOrder{ Direction: entgql.OrderDirectionAsc, Field: &UserOrderField{ Value: func(u *User) (ent.Value, error) { return u.ID, nil }, column: user.FieldID, toTerm: user.ByID, toCursor: func(u *User) Cursor { return Cursor{ID: u.ID} }, }, }
DefaultUserOrder is the default ordering of User.
var ErrEmptyAddressWhereInput = errors.New("ent: empty predicate AddressWhereInput")
ErrEmptyAddressWhereInput is returned in case the AddressWhereInput is empty.
var ErrEmptyAuditLogWhereInput = errors.New("ent: empty predicate AuditLogWhereInput")
ErrEmptyAuditLogWhereInput is returned in case the AuditLogWhereInput is empty.
var ErrEmptyBusinessWhereInput = errors.New("ent: empty predicate BusinessWhereInput")
ErrEmptyBusinessWhereInput is returned in case the BusinessWhereInput is empty.
var ErrEmptyContentWhereInput = errors.New("ent: empty predicate ContentWhereInput")
ErrEmptyContentWhereInput is returned in case the ContentWhereInput is empty.
var ErrEmptyOperatorWhereInput = errors.New("ent: empty predicate OperatorWhereInput")
ErrEmptyOperatorWhereInput is returned in case the OperatorWhereInput is empty.
var ErrEmptyTagWhereInput = errors.New("ent: empty predicate TagWhereInput")
ErrEmptyTagWhereInput is returned in case the TagWhereInput is empty.
var ErrEmptyTimetableWhereInput = errors.New("ent: empty predicate TimetableWhereInput")
ErrEmptyTimetableWhereInput is returned in case the TimetableWhereInput is empty.
var ErrEmptyUserWhereInput = errors.New("ent: empty predicate UserWhereInput")
ErrEmptyUserWhereInput is returned in case the UserWhereInput is empty.
var ( // OperatorOrderFieldSurname orders Operator by surname. OperatorOrderFieldSurname = &OperatorOrderField{ Value: func(o *Operator) (ent.Value, error) { return o.Surname, nil }, column: operator.FieldSurname, toTerm: operator.BySurname, toCursor: func(o *Operator) Cursor { return Cursor{ ID: o.ID, Value: o.Surname, } }, } )
var ( // TagOrderFieldName orders Tag by name. TagOrderFieldName = &TagOrderField{ Value: func(t *Tag) (ent.Value, error) { return t.Name, nil }, column: tag.FieldName, toTerm: tag.ByName, toCursor: func(t *Tag) Cursor { return Cursor{ ID: t.ID, Value: t.Name, } }, } )
var ( // TimetableOrderFieldDatetimeFrom orders Timetable by datetime_from. TimetableOrderFieldDatetimeFrom = &TimetableOrderField{ Value: func(t *Timetable) (ent.Value, error) { return t.DatetimeFrom, nil }, column: timetable.FieldDatetimeFrom, toTerm: timetable.ByDatetimeFrom, toCursor: func(t *Timetable) Cursor { return Cursor{ ID: t.ID, Value: t.DatetimeFrom, } }, } )
var ( // UserOrderFieldSurname orders User by surname. UserOrderFieldSurname = &UserOrderField{ Value: func(u *User) (ent.Value, error) { return u.Surname, nil }, column: user.FieldSurname, toTerm: user.BySurname, toCursor: func(u *User) Cursor { return Cursor{ ID: u.ID, Value: u.Surname, } }, } )
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
func NewTxContext ¶
NewTxContext returns a new context with the given Tx attached.
Types ¶
type Address ¶
type Address struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // The address addition Addition string `json:"addition,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"` // Zip holds the value of the "zip" field. Zip string `json:"zip,omitempty"` // State holds the value of the "state" field. State string `json:"state,omitempty"` // Country holds the value of the "country" field. Country string `json:"country,omitempty"` // The ICU locale identifier of the address, e.g. en_US, de_DE, ... Locale string `json:"locale,omitempty"` // Is this the primary address? Primary bool `json:"primary,omitempty"` // Telephone number Telephone string `json:"telephone,omitempty"` // A comment for this address Comment string `json:"comment,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the AddressQuery when eager-loading is set. Edges AddressEdges `json:"edges"` // contains filtered or unexported fields }
Address is the model entity for the Address schema.
func (*Address) IsNode ¶
func (n *Address) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Address) NamedTimetables ¶
NamedTimetables returns the Timetables named value or an error if the edge was not loaded in eager-loading with this name.
func (*Address) QueryBusiness ¶
func (a *Address) QueryBusiness() *BusinessQuery
QueryBusiness queries the "business" edge of the Address entity.
func (*Address) QueryTimetables ¶
func (a *Address) QueryTimetables() *TimetableQuery
QueryTimetables queries the "timetables" edge of the Address entity.
func (*Address) Timetables ¶
func (*Address) ToEdge ¶
func (a *Address) ToEdge(order *AddressOrder) *AddressEdge
ToEdge converts Address into AddressEdge.
func (*Address) Unwrap ¶
Unwrap unwraps the Address entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Address) Update ¶
func (a *Address) Update() *AddressUpdateOne
Update returns a builder for updating this Address. Note that you need to call Address.Unwrap() before calling this method if this Address was returned from a transaction, and the transaction was committed or rolled back.
type AddressClient ¶
type AddressClient struct {
// contains filtered or unexported fields
}
AddressClient is a client for the Address schema.
func NewAddressClient ¶
func NewAddressClient(c config) *AddressClient
NewAddressClient returns a client for the Address from the given config.
func (*AddressClient) Create ¶
func (c *AddressClient) Create() *AddressCreate
Create returns a builder for creating a Address entity.
func (*AddressClient) CreateBulk ¶
func (c *AddressClient) CreateBulk(builders ...*AddressCreate) *AddressCreateBulk
CreateBulk returns a builder for creating a bulk of Address entities.
func (*AddressClient) Delete ¶
func (c *AddressClient) Delete() *AddressDelete
Delete returns a delete builder for Address.
func (*AddressClient) DeleteOne ¶
func (c *AddressClient) DeleteOne(a *Address) *AddressDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AddressClient) DeleteOneID ¶
func (c *AddressClient) DeleteOneID(id uuid.UUID) *AddressDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AddressClient) Hooks ¶
func (c *AddressClient) Hooks() []Hook
Hooks returns the client hooks.
func (*AddressClient) Intercept ¶
func (c *AddressClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `address.Intercept(f(g(h())))`.
func (*AddressClient) Interceptors ¶
func (c *AddressClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AddressClient) Query ¶
func (c *AddressClient) Query() *AddressQuery
Query returns a query builder for Address.
func (*AddressClient) QueryBusiness ¶
func (c *AddressClient) QueryBusiness(a *Address) *BusinessQuery
QueryBusiness queries the business edge of a Address.
func (*AddressClient) QueryTimetables ¶
func (c *AddressClient) QueryTimetables(a *Address) *TimetableQuery
QueryTimetables queries the timetables edge of a Address.
func (*AddressClient) Update ¶
func (c *AddressClient) Update() *AddressUpdate
Update returns an update builder for Address.
func (*AddressClient) UpdateOne ¶
func (c *AddressClient) UpdateOne(a *Address) *AddressUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AddressClient) UpdateOneID ¶
func (c *AddressClient) UpdateOneID(id uuid.UUID) *AddressUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AddressClient) Use ¶
func (c *AddressClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `address.Hooks(f(g(h())))`.
type AddressConnection ¶
type AddressConnection struct { Edges []*AddressEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
AddressConnection is the connection containing edges to Address.
type AddressCreate ¶
type AddressCreate struct {
// contains filtered or unexported fields
}
AddressCreate is the builder for creating a Address entity.
func (*AddressCreate) AddTimetableIDs ¶
func (ac *AddressCreate) AddTimetableIDs(ids ...uuid.UUID) *AddressCreate
AddTimetableIDs adds the "timetables" edge to the Timetable entity by IDs.
func (*AddressCreate) AddTimetables ¶
func (ac *AddressCreate) AddTimetables(t ...*Timetable) *AddressCreate
AddTimetables adds the "timetables" edges to the Timetable entity.
func (*AddressCreate) Exec ¶
func (ac *AddressCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AddressCreate) ExecX ¶
func (ac *AddressCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AddressCreate) Mutation ¶
func (ac *AddressCreate) Mutation() *AddressMutation
Mutation returns the AddressMutation object of the builder.
func (*AddressCreate) Save ¶
func (ac *AddressCreate) Save(ctx context.Context) (*Address, error)
Save creates the Address in the database.
func (*AddressCreate) SaveX ¶
func (ac *AddressCreate) SaveX(ctx context.Context) *Address
SaveX calls Save and panics if Save returns an error.
func (*AddressCreate) SetAddition ¶
func (ac *AddressCreate) SetAddition(s string) *AddressCreate
SetAddition sets the "addition" field.
func (*AddressCreate) SetBusiness ¶
func (ac *AddressCreate) SetBusiness(b *Business) *AddressCreate
SetBusiness sets the "business" edge to the Business entity.
func (*AddressCreate) SetBusinessID ¶
func (ac *AddressCreate) SetBusinessID(id uuid.UUID) *AddressCreate
SetBusinessID sets the "business" edge to the Business entity by ID.
func (*AddressCreate) SetCity ¶
func (ac *AddressCreate) SetCity(s string) *AddressCreate
SetCity sets the "city" field.
func (*AddressCreate) SetComment ¶
func (ac *AddressCreate) SetComment(s string) *AddressCreate
SetComment sets the "comment" field.
func (*AddressCreate) SetCountry ¶
func (ac *AddressCreate) SetCountry(s string) *AddressCreate
SetCountry sets the "country" field.
func (*AddressCreate) SetCreatedAt ¶
func (ac *AddressCreate) SetCreatedAt(t time.Time) *AddressCreate
SetCreatedAt sets the "created_at" field.
func (*AddressCreate) SetDeletedAt ¶
func (ac *AddressCreate) SetDeletedAt(t time.Time) *AddressCreate
SetDeletedAt sets the "deleted_at" field.
func (*AddressCreate) SetID ¶
func (ac *AddressCreate) SetID(u uuid.UUID) *AddressCreate
SetID sets the "id" field.
func (*AddressCreate) SetInput ¶ added in v0.0.8
func (c *AddressCreate) SetInput(i CreateAddressInput) *AddressCreate
SetInput applies the change-set in the CreateAddressInput on the AddressCreate builder.
func (*AddressCreate) SetLocale ¶
func (ac *AddressCreate) SetLocale(s string) *AddressCreate
SetLocale sets the "locale" field.
func (*AddressCreate) SetNillableAddition ¶
func (ac *AddressCreate) SetNillableAddition(s *string) *AddressCreate
SetNillableAddition sets the "addition" field if the given value is not nil.
func (*AddressCreate) SetNillableBusinessID ¶
func (ac *AddressCreate) SetNillableBusinessID(id *uuid.UUID) *AddressCreate
SetNillableBusinessID sets the "business" edge to the Business entity by ID if the given value is not nil.
func (*AddressCreate) SetNillableCity ¶
func (ac *AddressCreate) SetNillableCity(s *string) *AddressCreate
SetNillableCity sets the "city" field if the given value is not nil.
func (*AddressCreate) SetNillableComment ¶
func (ac *AddressCreate) SetNillableComment(s *string) *AddressCreate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*AddressCreate) SetNillableCountry ¶
func (ac *AddressCreate) SetNillableCountry(s *string) *AddressCreate
SetNillableCountry sets the "country" field if the given value is not nil.
func (*AddressCreate) SetNillableCreatedAt ¶
func (ac *AddressCreate) SetNillableCreatedAt(t *time.Time) *AddressCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AddressCreate) SetNillableDeletedAt ¶
func (ac *AddressCreate) SetNillableDeletedAt(t *time.Time) *AddressCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*AddressCreate) SetNillableID ¶
func (ac *AddressCreate) SetNillableID(u *uuid.UUID) *AddressCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*AddressCreate) SetNillableLocale ¶
func (ac *AddressCreate) SetNillableLocale(s *string) *AddressCreate
SetNillableLocale sets the "locale" field if the given value is not nil.
func (*AddressCreate) SetNillablePrimary ¶
func (ac *AddressCreate) SetNillablePrimary(b *bool) *AddressCreate
SetNillablePrimary sets the "primary" field if the given value is not nil.
func (*AddressCreate) SetNillableState ¶
func (ac *AddressCreate) SetNillableState(s *string) *AddressCreate
SetNillableState sets the "state" field if the given value is not nil.
func (*AddressCreate) SetNillableStreet ¶
func (ac *AddressCreate) SetNillableStreet(s *string) *AddressCreate
SetNillableStreet sets the "street" field if the given value is not nil.
func (*AddressCreate) SetNillableTelephone ¶
func (ac *AddressCreate) SetNillableTelephone(s *string) *AddressCreate
SetNillableTelephone sets the "telephone" field if the given value is not nil.
func (*AddressCreate) SetNillableUpdatedAt ¶
func (ac *AddressCreate) SetNillableUpdatedAt(t *time.Time) *AddressCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AddressCreate) SetNillableZip ¶
func (ac *AddressCreate) SetNillableZip(s *string) *AddressCreate
SetNillableZip sets the "zip" field if the given value is not nil.
func (*AddressCreate) SetPrimary ¶
func (ac *AddressCreate) SetPrimary(b bool) *AddressCreate
SetPrimary sets the "primary" field.
func (*AddressCreate) SetState ¶
func (ac *AddressCreate) SetState(s string) *AddressCreate
SetState sets the "state" field.
func (*AddressCreate) SetStreet ¶
func (ac *AddressCreate) SetStreet(s string) *AddressCreate
SetStreet sets the "street" field.
func (*AddressCreate) SetTelephone ¶
func (ac *AddressCreate) SetTelephone(s string) *AddressCreate
SetTelephone sets the "telephone" field.
func (*AddressCreate) SetUpdatedAt ¶
func (ac *AddressCreate) SetUpdatedAt(t time.Time) *AddressCreate
SetUpdatedAt sets the "updated_at" field.
func (*AddressCreate) SetZip ¶
func (ac *AddressCreate) SetZip(s string) *AddressCreate
SetZip sets the "zip" field.
type AddressCreateBulk ¶
type AddressCreateBulk struct {
// contains filtered or unexported fields
}
AddressCreateBulk is the builder for creating many Address entities in bulk.
func (*AddressCreateBulk) Exec ¶
func (acb *AddressCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AddressCreateBulk) ExecX ¶
func (acb *AddressCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type AddressDelete ¶
type AddressDelete struct {
// contains filtered or unexported fields
}
AddressDelete is the builder for deleting a Address entity.
func (*AddressDelete) Exec ¶
func (ad *AddressDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AddressDelete) ExecX ¶
func (ad *AddressDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AddressDelete) Where ¶
func (ad *AddressDelete) Where(ps ...predicate.Address) *AddressDelete
Where appends a list predicates to the AddressDelete builder.
type AddressDeleteOne ¶
type AddressDeleteOne struct {
// contains filtered or unexported fields
}
AddressDeleteOne is the builder for deleting a single Address entity.
func (*AddressDeleteOne) Exec ¶
func (ado *AddressDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AddressDeleteOne) ExecX ¶
func (ado *AddressDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AddressDeleteOne) Where ¶
func (ado *AddressDeleteOne) Where(ps ...predicate.Address) *AddressDeleteOne
Where appends a list predicates to the AddressDelete builder.
type AddressEdge ¶
AddressEdge is the edge representation of Address.
type AddressEdges ¶
type AddressEdges struct { // Business holds the value of the business edge. Business *Business `json:"business,omitempty"` // Timetables holds the value of the timetables edge. Timetables []*Timetable `json:"timetables,omitempty"` // contains filtered or unexported fields }
AddressEdges holds the relations/edges for other nodes in the graph.
func (AddressEdges) BusinessOrErr ¶
func (e AddressEdges) BusinessOrErr() (*Business, error)
BusinessOrErr returns the Business value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (AddressEdges) TimetablesOrErr ¶
func (e AddressEdges) TimetablesOrErr() ([]*Timetable, error)
TimetablesOrErr returns the Timetables value or an error if the edge was not loaded in eager-loading.
type AddressGroupBy ¶
type AddressGroupBy struct {
// contains filtered or unexported fields
}
AddressGroupBy is the group-by builder for Address entities.
func (*AddressGroupBy) Aggregate ¶
func (agb *AddressGroupBy) Aggregate(fns ...AggregateFunc) *AddressGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AddressGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AddressGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AddressGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AddressGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AddressGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AddressGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AddressGroupBy) Scan ¶
func (agb *AddressGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AddressGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AddressMutation ¶
type AddressMutation struct {
// contains filtered or unexported fields
}
AddressMutation represents an operation that mutates the Address nodes in the graph.
func (*AddressMutation) AddField ¶
func (m *AddressMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*AddressMutation) AddTimetableIDs ¶
func (m *AddressMutation) AddTimetableIDs(ids ...uuid.UUID)
AddTimetableIDs adds the "timetables" edge to the Timetable entity by ids.
func (*AddressMutation) AddedEdges ¶
func (m *AddressMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AddressMutation) AddedField ¶
func (m *AddressMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AddressMutation) AddedFields ¶
func (m *AddressMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AddressMutation) AddedIDs ¶
func (m *AddressMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AddressMutation) Addition ¶
func (m *AddressMutation) Addition() (r string, exists bool)
Addition returns the value of the "addition" field in the mutation.
func (*AddressMutation) AdditionCleared ¶
func (m *AddressMutation) AdditionCleared() bool
AdditionCleared returns if the "addition" field was cleared in this mutation.
func (*AddressMutation) BusinessCleared ¶
func (m *AddressMutation) BusinessCleared() bool
BusinessCleared reports if the "business" edge to the Business entity was cleared.
func (*AddressMutation) BusinessID ¶
func (m *AddressMutation) BusinessID() (id uuid.UUID, exists bool)
BusinessID returns the "business" edge ID in the mutation.
func (*AddressMutation) BusinessIDs ¶
func (m *AddressMutation) BusinessIDs() (ids []uuid.UUID)
BusinessIDs returns the "business" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BusinessID instead. It exists only for internal usage by the builders.
func (*AddressMutation) City ¶
func (m *AddressMutation) City() (r string, exists bool)
City returns the value of the "city" field in the mutation.
func (*AddressMutation) CityCleared ¶
func (m *AddressMutation) CityCleared() bool
CityCleared returns if the "city" field was cleared in this mutation.
func (*AddressMutation) ClearAddition ¶
func (m *AddressMutation) ClearAddition()
ClearAddition clears the value of the "addition" field.
func (*AddressMutation) ClearBusiness ¶
func (m *AddressMutation) ClearBusiness()
ClearBusiness clears the "business" edge to the Business entity.
func (*AddressMutation) ClearCity ¶
func (m *AddressMutation) ClearCity()
ClearCity clears the value of the "city" field.
func (*AddressMutation) ClearComment ¶
func (m *AddressMutation) ClearComment()
ClearComment clears the value of the "comment" field.
func (*AddressMutation) ClearCountry ¶
func (m *AddressMutation) ClearCountry()
ClearCountry clears the value of the "country" field.
func (*AddressMutation) ClearDeletedAt ¶
func (m *AddressMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*AddressMutation) ClearEdge ¶
func (m *AddressMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*AddressMutation) ClearField ¶
func (m *AddressMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*AddressMutation) ClearState ¶
func (m *AddressMutation) ClearState()
ClearState clears the value of the "state" field.
func (*AddressMutation) ClearStreet ¶
func (m *AddressMutation) ClearStreet()
ClearStreet clears the value of the "street" field.
func (*AddressMutation) ClearTelephone ¶
func (m *AddressMutation) ClearTelephone()
ClearTelephone clears the value of the "telephone" field.
func (*AddressMutation) ClearTimetables ¶
func (m *AddressMutation) ClearTimetables()
ClearTimetables clears the "timetables" edge to the Timetable entity.
func (*AddressMutation) ClearZip ¶
func (m *AddressMutation) ClearZip()
ClearZip clears the value of the "zip" field.
func (*AddressMutation) ClearedEdges ¶
func (m *AddressMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AddressMutation) ClearedFields ¶
func (m *AddressMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AddressMutation) Client ¶
func (m AddressMutation) 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 (*AddressMutation) Comment ¶
func (m *AddressMutation) Comment() (r string, exists bool)
Comment returns the value of the "comment" field in the mutation.
func (*AddressMutation) CommentCleared ¶
func (m *AddressMutation) CommentCleared() bool
CommentCleared returns if the "comment" field was cleared in this mutation.
func (*AddressMutation) Country ¶
func (m *AddressMutation) Country() (r string, exists bool)
Country returns the value of the "country" field in the mutation.
func (*AddressMutation) CountryCleared ¶
func (m *AddressMutation) CountryCleared() bool
CountryCleared returns if the "country" field was cleared in this mutation.
func (*AddressMutation) CreatedAt ¶
func (m *AddressMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*AddressMutation) DeletedAt ¶
func (m *AddressMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*AddressMutation) DeletedAtCleared ¶
func (m *AddressMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*AddressMutation) EdgeCleared ¶
func (m *AddressMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AddressMutation) Field ¶
func (m *AddressMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AddressMutation) FieldCleared ¶
func (m *AddressMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AddressMutation) Fields ¶
func (m *AddressMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*AddressMutation) ID ¶
func (m *AddressMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*AddressMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*AddressMutation) Locale ¶
func (m *AddressMutation) Locale() (r string, exists bool)
Locale returns the value of the "locale" field in the mutation.
func (*AddressMutation) OldAddition ¶
func (m *AddressMutation) OldAddition(ctx context.Context) (v string, err error)
OldAddition returns the old "addition" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldCity ¶
func (m *AddressMutation) OldCity(ctx context.Context) (v string, err error)
OldCity returns the old "city" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldComment ¶
func (m *AddressMutation) OldComment(ctx context.Context) (v string, err error)
OldComment returns the old "comment" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldCountry ¶
func (m *AddressMutation) OldCountry(ctx context.Context) (v string, err error)
OldCountry returns the old "country" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*AddressMutation) OldLocale ¶
func (m *AddressMutation) OldLocale(ctx context.Context) (v string, err error)
OldLocale returns the old "locale" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldPrimary ¶
func (m *AddressMutation) OldPrimary(ctx context.Context) (v bool, err error)
OldPrimary returns the old "primary" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldState ¶
func (m *AddressMutation) OldState(ctx context.Context) (v string, err error)
OldState returns the old "state" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldStreet ¶
func (m *AddressMutation) OldStreet(ctx context.Context) (v string, err error)
OldStreet returns the old "street" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldTelephone ¶
func (m *AddressMutation) OldTelephone(ctx context.Context) (v string, err error)
OldTelephone returns the old "telephone" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) OldZip ¶
func (m *AddressMutation) OldZip(ctx context.Context) (v string, err error)
OldZip returns the old "zip" field's value of the Address entity. If the Address object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AddressMutation) Primary ¶
func (m *AddressMutation) Primary() (r bool, exists bool)
Primary returns the value of the "primary" field in the mutation.
func (*AddressMutation) RemoveTimetableIDs ¶
func (m *AddressMutation) RemoveTimetableIDs(ids ...uuid.UUID)
RemoveTimetableIDs removes the "timetables" edge to the Timetable entity by IDs.
func (*AddressMutation) RemovedEdges ¶
func (m *AddressMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AddressMutation) RemovedIDs ¶
func (m *AddressMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*AddressMutation) RemovedTimetablesIDs ¶
func (m *AddressMutation) RemovedTimetablesIDs() (ids []uuid.UUID)
RemovedTimetables returns the removed IDs of the "timetables" edge to the Timetable entity.
func (*AddressMutation) ResetAddition ¶
func (m *AddressMutation) ResetAddition()
ResetAddition resets all changes to the "addition" field.
func (*AddressMutation) ResetBusiness ¶
func (m *AddressMutation) ResetBusiness()
ResetBusiness resets all changes to the "business" edge.
func (*AddressMutation) ResetCity ¶
func (m *AddressMutation) ResetCity()
ResetCity resets all changes to the "city" field.
func (*AddressMutation) ResetComment ¶
func (m *AddressMutation) ResetComment()
ResetComment resets all changes to the "comment" field.
func (*AddressMutation) ResetCountry ¶
func (m *AddressMutation) ResetCountry()
ResetCountry resets all changes to the "country" field.
func (*AddressMutation) ResetCreatedAt ¶
func (m *AddressMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*AddressMutation) ResetDeletedAt ¶
func (m *AddressMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*AddressMutation) ResetEdge ¶
func (m *AddressMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*AddressMutation) ResetField ¶
func (m *AddressMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*AddressMutation) ResetLocale ¶
func (m *AddressMutation) ResetLocale()
ResetLocale resets all changes to the "locale" field.
func (*AddressMutation) ResetPrimary ¶
func (m *AddressMutation) ResetPrimary()
ResetPrimary resets all changes to the "primary" field.
func (*AddressMutation) ResetState ¶
func (m *AddressMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*AddressMutation) ResetStreet ¶
func (m *AddressMutation) ResetStreet()
ResetStreet resets all changes to the "street" field.
func (*AddressMutation) ResetTelephone ¶
func (m *AddressMutation) ResetTelephone()
ResetTelephone resets all changes to the "telephone" field.
func (*AddressMutation) ResetTimetables ¶
func (m *AddressMutation) ResetTimetables()
ResetTimetables resets all changes to the "timetables" edge.
func (*AddressMutation) ResetUpdatedAt ¶
func (m *AddressMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*AddressMutation) ResetZip ¶
func (m *AddressMutation) ResetZip()
ResetZip resets all changes to the "zip" field.
func (*AddressMutation) SetAddition ¶
func (m *AddressMutation) SetAddition(s string)
SetAddition sets the "addition" field.
func (*AddressMutation) SetBusinessID ¶
func (m *AddressMutation) SetBusinessID(id uuid.UUID)
SetBusinessID sets the "business" edge to the Business entity by id.
func (*AddressMutation) SetCity ¶
func (m *AddressMutation) SetCity(s string)
SetCity sets the "city" field.
func (*AddressMutation) SetComment ¶
func (m *AddressMutation) SetComment(s string)
SetComment sets the "comment" field.
func (*AddressMutation) SetCountry ¶
func (m *AddressMutation) SetCountry(s string)
SetCountry sets the "country" field.
func (*AddressMutation) SetCreatedAt ¶
func (m *AddressMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*AddressMutation) SetDeletedAt ¶
func (m *AddressMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*AddressMutation) SetField ¶
func (m *AddressMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*AddressMutation) SetID ¶
func (m *AddressMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Address entities.
func (*AddressMutation) SetLocale ¶
func (m *AddressMutation) SetLocale(s string)
SetLocale sets the "locale" field.
func (*AddressMutation) SetOp ¶
func (m *AddressMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AddressMutation) SetPrimary ¶
func (m *AddressMutation) SetPrimary(b bool)
SetPrimary sets the "primary" field.
func (*AddressMutation) SetState ¶
func (m *AddressMutation) SetState(s string)
SetState sets the "state" field.
func (*AddressMutation) SetStreet ¶
func (m *AddressMutation) SetStreet(s string)
SetStreet sets the "street" field.
func (*AddressMutation) SetTelephone ¶
func (m *AddressMutation) SetTelephone(s string)
SetTelephone sets the "telephone" field.
func (*AddressMutation) SetUpdatedAt ¶
func (m *AddressMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*AddressMutation) SetZip ¶
func (m *AddressMutation) SetZip(s string)
SetZip sets the "zip" field.
func (*AddressMutation) State ¶
func (m *AddressMutation) State() (r string, exists bool)
State returns the value of the "state" field in the mutation.
func (*AddressMutation) StateCleared ¶
func (m *AddressMutation) StateCleared() bool
StateCleared returns if the "state" field was cleared in this mutation.
func (*AddressMutation) Street ¶
func (m *AddressMutation) Street() (r string, exists bool)
Street returns the value of the "street" field in the mutation.
func (*AddressMutation) StreetCleared ¶
func (m *AddressMutation) StreetCleared() bool
StreetCleared returns if the "street" field was cleared in this mutation.
func (*AddressMutation) Telephone ¶
func (m *AddressMutation) Telephone() (r string, exists bool)
Telephone returns the value of the "telephone" field in the mutation.
func (*AddressMutation) TelephoneCleared ¶
func (m *AddressMutation) TelephoneCleared() bool
TelephoneCleared returns if the "telephone" field was cleared in this mutation.
func (*AddressMutation) TimetablesCleared ¶
func (m *AddressMutation) TimetablesCleared() bool
TimetablesCleared reports if the "timetables" edge to the Timetable entity was cleared.
func (*AddressMutation) TimetablesIDs ¶
func (m *AddressMutation) TimetablesIDs() (ids []uuid.UUID)
TimetablesIDs returns the "timetables" edge IDs in the mutation.
func (AddressMutation) Tx ¶
func (m AddressMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AddressMutation) Type ¶
func (m *AddressMutation) Type() string
Type returns the node type of this mutation (Address).
func (*AddressMutation) UpdatedAt ¶
func (m *AddressMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*AddressMutation) Where ¶
func (m *AddressMutation) Where(ps ...predicate.Address)
Where appends a list predicates to the AddressMutation builder.
func (*AddressMutation) WhereP ¶
func (m *AddressMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AddressMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*AddressMutation) Zip ¶
func (m *AddressMutation) Zip() (r string, exists bool)
Zip returns the value of the "zip" field in the mutation.
func (*AddressMutation) ZipCleared ¶
func (m *AddressMutation) ZipCleared() bool
ZipCleared returns if the "zip" field was cleared in this mutation.
type AddressOrder ¶
type AddressOrder struct { Direction OrderDirection `json:"direction"` Field *AddressOrderField `json:"field"` }
AddressOrder defines the ordering of Address.
type AddressOrderField ¶
type AddressOrderField struct { // Value extracts the ordering value from the given Address. Value func(*Address) (ent.Value, error) // contains filtered or unexported fields }
AddressOrderField defines the ordering field of Address.
type AddressPaginateOption ¶
type AddressPaginateOption func(*addressPager) error
AddressPaginateOption enables pagination customization.
func WithAddressFilter ¶
func WithAddressFilter(filter func(*AddressQuery) (*AddressQuery, error)) AddressPaginateOption
WithAddressFilter configures pagination filter.
func WithAddressOrder ¶
func WithAddressOrder(order *AddressOrder) AddressPaginateOption
WithAddressOrder configures pagination ordering.
type AddressQuery ¶
type AddressQuery struct {
// contains filtered or unexported fields
}
AddressQuery is the builder for querying Address entities.
func (*AddressQuery) Aggregate ¶
func (aq *AddressQuery) Aggregate(fns ...AggregateFunc) *AddressSelect
Aggregate returns a AddressSelect configured with the given aggregations.
func (*AddressQuery) All ¶
func (aq *AddressQuery) All(ctx context.Context) ([]*Address, error)
All executes the query and returns a list of Addresses.
func (*AddressQuery) AllX ¶
func (aq *AddressQuery) AllX(ctx context.Context) []*Address
AllX is like All, but panics if an error occurs.
func (*AddressQuery) Clone ¶
func (aq *AddressQuery) Clone() *AddressQuery
Clone returns a duplicate of the AddressQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AddressQuery) CollectFields ¶
func (a *AddressQuery) CollectFields(ctx context.Context, satisfies ...string) (*AddressQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*AddressQuery) Count ¶
func (aq *AddressQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AddressQuery) CountX ¶
func (aq *AddressQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AddressQuery) Exist ¶
func (aq *AddressQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AddressQuery) ExistX ¶
func (aq *AddressQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AddressQuery) First ¶
func (aq *AddressQuery) First(ctx context.Context) (*Address, error)
First returns the first Address entity from the query. Returns a *NotFoundError when no Address was found.
func (*AddressQuery) FirstID ¶
FirstID returns the first Address ID from the query. Returns a *NotFoundError when no Address ID was found.
func (*AddressQuery) FirstIDX ¶
func (aq *AddressQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*AddressQuery) FirstX ¶
func (aq *AddressQuery) FirstX(ctx context.Context) *Address
FirstX is like First, but panics if an error occurs.
func (*AddressQuery) GroupBy ¶
func (aq *AddressQuery) GroupBy(field string, fields ...string) *AddressGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Address.Query(). GroupBy(address.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AddressQuery) IDsX ¶
func (aq *AddressQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*AddressQuery) Limit ¶
func (aq *AddressQuery) Limit(limit int) *AddressQuery
Limit the number of records to be returned by this query.
func (*AddressQuery) Offset ¶
func (aq *AddressQuery) Offset(offset int) *AddressQuery
Offset to start from.
func (*AddressQuery) Only ¶
func (aq *AddressQuery) Only(ctx context.Context) (*Address, error)
Only returns a single Address entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Address entity is found. Returns a *NotFoundError when no Address entities are found.
func (*AddressQuery) OnlyID ¶
OnlyID is like Only, but returns the only Address ID in the query. Returns a *NotSingularError when more than one Address ID is found. Returns a *NotFoundError when no entities are found.
func (*AddressQuery) OnlyIDX ¶
func (aq *AddressQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AddressQuery) OnlyX ¶
func (aq *AddressQuery) OnlyX(ctx context.Context) *Address
OnlyX is like Only, but panics if an error occurs.
func (*AddressQuery) Order ¶
func (aq *AddressQuery) Order(o ...address.OrderOption) *AddressQuery
Order specifies how the records should be ordered.
func (*AddressQuery) Paginate ¶
func (a *AddressQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...AddressPaginateOption, ) (*AddressConnection, error)
Paginate executes the query and returns a relay based cursor connection to Address.
func (*AddressQuery) QueryBusiness ¶
func (aq *AddressQuery) QueryBusiness() *BusinessQuery
QueryBusiness chains the current query on the "business" edge.
func (*AddressQuery) QueryTimetables ¶
func (aq *AddressQuery) QueryTimetables() *TimetableQuery
QueryTimetables chains the current query on the "timetables" edge.
func (*AddressQuery) Select ¶
func (aq *AddressQuery) Select(fields ...string) *AddressSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Address.Query(). Select(address.FieldCreatedAt). Scan(ctx, &v)
func (*AddressQuery) Unique ¶
func (aq *AddressQuery) Unique(unique bool) *AddressQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*AddressQuery) Where ¶
func (aq *AddressQuery) Where(ps ...predicate.Address) *AddressQuery
Where adds a new predicate for the AddressQuery builder.
func (*AddressQuery) WithBusiness ¶
func (aq *AddressQuery) WithBusiness(opts ...func(*BusinessQuery)) *AddressQuery
WithBusiness tells the query-builder to eager-load the nodes that are connected to the "business" edge. The optional arguments are used to configure the query builder of the edge.
func (*AddressQuery) WithNamedTimetables ¶
func (aq *AddressQuery) WithNamedTimetables(name string, opts ...func(*TimetableQuery)) *AddressQuery
WithNamedTimetables tells the query-builder to eager-load the nodes that are connected to the "timetables" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*AddressQuery) WithTimetables ¶
func (aq *AddressQuery) WithTimetables(opts ...func(*TimetableQuery)) *AddressQuery
WithTimetables tells the query-builder to eager-load the nodes that are connected to the "timetables" edge. The optional arguments are used to configure the query builder of the edge.
type AddressSelect ¶
type AddressSelect struct { *AddressQuery // contains filtered or unexported fields }
AddressSelect is the builder for selecting fields of Address entities.
func (*AddressSelect) Aggregate ¶
func (as *AddressSelect) Aggregate(fns ...AggregateFunc) *AddressSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AddressSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AddressSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AddressSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AddressSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AddressSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AddressSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AddressSelect) Scan ¶
func (as *AddressSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AddressSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AddressUpdate ¶
type AddressUpdate struct {
// contains filtered or unexported fields
}
AddressUpdate is the builder for updating Address entities.
func (*AddressUpdate) AddTimetableIDs ¶
func (au *AddressUpdate) AddTimetableIDs(ids ...uuid.UUID) *AddressUpdate
AddTimetableIDs adds the "timetables" edge to the Timetable entity by IDs.
func (*AddressUpdate) AddTimetables ¶
func (au *AddressUpdate) AddTimetables(t ...*Timetable) *AddressUpdate
AddTimetables adds the "timetables" edges to the Timetable entity.
func (*AddressUpdate) ClearAddition ¶
func (au *AddressUpdate) ClearAddition() *AddressUpdate
ClearAddition clears the value of the "addition" field.
func (*AddressUpdate) ClearBusiness ¶
func (au *AddressUpdate) ClearBusiness() *AddressUpdate
ClearBusiness clears the "business" edge to the Business entity.
func (*AddressUpdate) ClearCity ¶
func (au *AddressUpdate) ClearCity() *AddressUpdate
ClearCity clears the value of the "city" field.
func (*AddressUpdate) ClearComment ¶
func (au *AddressUpdate) ClearComment() *AddressUpdate
ClearComment clears the value of the "comment" field.
func (*AddressUpdate) ClearCountry ¶
func (au *AddressUpdate) ClearCountry() *AddressUpdate
ClearCountry clears the value of the "country" field.
func (*AddressUpdate) ClearDeletedAt ¶
func (au *AddressUpdate) ClearDeletedAt() *AddressUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*AddressUpdate) ClearState ¶
func (au *AddressUpdate) ClearState() *AddressUpdate
ClearState clears the value of the "state" field.
func (*AddressUpdate) ClearStreet ¶
func (au *AddressUpdate) ClearStreet() *AddressUpdate
ClearStreet clears the value of the "street" field.
func (*AddressUpdate) ClearTelephone ¶
func (au *AddressUpdate) ClearTelephone() *AddressUpdate
ClearTelephone clears the value of the "telephone" field.
func (*AddressUpdate) ClearTimetables ¶
func (au *AddressUpdate) ClearTimetables() *AddressUpdate
ClearTimetables clears all "timetables" edges to the Timetable entity.
func (*AddressUpdate) ClearZip ¶
func (au *AddressUpdate) ClearZip() *AddressUpdate
ClearZip clears the value of the "zip" field.
func (*AddressUpdate) Exec ¶
func (au *AddressUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AddressUpdate) ExecX ¶
func (au *AddressUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AddressUpdate) Mutation ¶
func (au *AddressUpdate) Mutation() *AddressMutation
Mutation returns the AddressMutation object of the builder.
func (*AddressUpdate) RemoveTimetableIDs ¶
func (au *AddressUpdate) RemoveTimetableIDs(ids ...uuid.UUID) *AddressUpdate
RemoveTimetableIDs removes the "timetables" edge to Timetable entities by IDs.
func (*AddressUpdate) RemoveTimetables ¶
func (au *AddressUpdate) RemoveTimetables(t ...*Timetable) *AddressUpdate
RemoveTimetables removes "timetables" edges to Timetable entities.
func (*AddressUpdate) Save ¶
func (au *AddressUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*AddressUpdate) SaveX ¶
func (au *AddressUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AddressUpdate) SetAddition ¶
func (au *AddressUpdate) SetAddition(s string) *AddressUpdate
SetAddition sets the "addition" field.
func (*AddressUpdate) SetBusiness ¶
func (au *AddressUpdate) SetBusiness(b *Business) *AddressUpdate
SetBusiness sets the "business" edge to the Business entity.
func (*AddressUpdate) SetBusinessID ¶
func (au *AddressUpdate) SetBusinessID(id uuid.UUID) *AddressUpdate
SetBusinessID sets the "business" edge to the Business entity by ID.
func (*AddressUpdate) SetCity ¶
func (au *AddressUpdate) SetCity(s string) *AddressUpdate
SetCity sets the "city" field.
func (*AddressUpdate) SetComment ¶
func (au *AddressUpdate) SetComment(s string) *AddressUpdate
SetComment sets the "comment" field.
func (*AddressUpdate) SetCountry ¶
func (au *AddressUpdate) SetCountry(s string) *AddressUpdate
SetCountry sets the "country" field.
func (*AddressUpdate) SetDeletedAt ¶
func (au *AddressUpdate) SetDeletedAt(t time.Time) *AddressUpdate
SetDeletedAt sets the "deleted_at" field.
func (*AddressUpdate) SetInput ¶ added in v0.0.8
func (c *AddressUpdate) SetInput(i UpdateAddressInput) *AddressUpdate
SetInput applies the change-set in the UpdateAddressInput on the AddressUpdate builder.
func (*AddressUpdate) SetLocale ¶
func (au *AddressUpdate) SetLocale(s string) *AddressUpdate
SetLocale sets the "locale" field.
func (*AddressUpdate) SetNillableAddition ¶
func (au *AddressUpdate) SetNillableAddition(s *string) *AddressUpdate
SetNillableAddition sets the "addition" field if the given value is not nil.
func (*AddressUpdate) SetNillableBusinessID ¶
func (au *AddressUpdate) SetNillableBusinessID(id *uuid.UUID) *AddressUpdate
SetNillableBusinessID sets the "business" edge to the Business entity by ID if the given value is not nil.
func (*AddressUpdate) SetNillableCity ¶
func (au *AddressUpdate) SetNillableCity(s *string) *AddressUpdate
SetNillableCity sets the "city" field if the given value is not nil.
func (*AddressUpdate) SetNillableComment ¶
func (au *AddressUpdate) SetNillableComment(s *string) *AddressUpdate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*AddressUpdate) SetNillableCountry ¶
func (au *AddressUpdate) SetNillableCountry(s *string) *AddressUpdate
SetNillableCountry sets the "country" field if the given value is not nil.
func (*AddressUpdate) SetNillableDeletedAt ¶
func (au *AddressUpdate) SetNillableDeletedAt(t *time.Time) *AddressUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*AddressUpdate) SetNillableLocale ¶
func (au *AddressUpdate) SetNillableLocale(s *string) *AddressUpdate
SetNillableLocale sets the "locale" field if the given value is not nil.
func (*AddressUpdate) SetNillablePrimary ¶
func (au *AddressUpdate) SetNillablePrimary(b *bool) *AddressUpdate
SetNillablePrimary sets the "primary" field if the given value is not nil.
func (*AddressUpdate) SetNillableState ¶
func (au *AddressUpdate) SetNillableState(s *string) *AddressUpdate
SetNillableState sets the "state" field if the given value is not nil.
func (*AddressUpdate) SetNillableStreet ¶
func (au *AddressUpdate) SetNillableStreet(s *string) *AddressUpdate
SetNillableStreet sets the "street" field if the given value is not nil.
func (*AddressUpdate) SetNillableTelephone ¶
func (au *AddressUpdate) SetNillableTelephone(s *string) *AddressUpdate
SetNillableTelephone sets the "telephone" field if the given value is not nil.
func (*AddressUpdate) SetNillableZip ¶
func (au *AddressUpdate) SetNillableZip(s *string) *AddressUpdate
SetNillableZip sets the "zip" field if the given value is not nil.
func (*AddressUpdate) SetPrimary ¶
func (au *AddressUpdate) SetPrimary(b bool) *AddressUpdate
SetPrimary sets the "primary" field.
func (*AddressUpdate) SetState ¶
func (au *AddressUpdate) SetState(s string) *AddressUpdate
SetState sets the "state" field.
func (*AddressUpdate) SetStreet ¶
func (au *AddressUpdate) SetStreet(s string) *AddressUpdate
SetStreet sets the "street" field.
func (*AddressUpdate) SetTelephone ¶
func (au *AddressUpdate) SetTelephone(s string) *AddressUpdate
SetTelephone sets the "telephone" field.
func (*AddressUpdate) SetUpdatedAt ¶
func (au *AddressUpdate) SetUpdatedAt(t time.Time) *AddressUpdate
SetUpdatedAt sets the "updated_at" field.
func (*AddressUpdate) SetZip ¶
func (au *AddressUpdate) SetZip(s string) *AddressUpdate
SetZip sets the "zip" field.
func (*AddressUpdate) Where ¶
func (au *AddressUpdate) Where(ps ...predicate.Address) *AddressUpdate
Where appends a list predicates to the AddressUpdate builder.
type AddressUpdateOne ¶
type AddressUpdateOne struct {
// contains filtered or unexported fields
}
AddressUpdateOne is the builder for updating a single Address entity.
func (*AddressUpdateOne) AddTimetableIDs ¶
func (auo *AddressUpdateOne) AddTimetableIDs(ids ...uuid.UUID) *AddressUpdateOne
AddTimetableIDs adds the "timetables" edge to the Timetable entity by IDs.
func (*AddressUpdateOne) AddTimetables ¶
func (auo *AddressUpdateOne) AddTimetables(t ...*Timetable) *AddressUpdateOne
AddTimetables adds the "timetables" edges to the Timetable entity.
func (*AddressUpdateOne) ClearAddition ¶
func (auo *AddressUpdateOne) ClearAddition() *AddressUpdateOne
ClearAddition clears the value of the "addition" field.
func (*AddressUpdateOne) ClearBusiness ¶
func (auo *AddressUpdateOne) ClearBusiness() *AddressUpdateOne
ClearBusiness clears the "business" edge to the Business entity.
func (*AddressUpdateOne) ClearCity ¶
func (auo *AddressUpdateOne) ClearCity() *AddressUpdateOne
ClearCity clears the value of the "city" field.
func (*AddressUpdateOne) ClearComment ¶
func (auo *AddressUpdateOne) ClearComment() *AddressUpdateOne
ClearComment clears the value of the "comment" field.
func (*AddressUpdateOne) ClearCountry ¶
func (auo *AddressUpdateOne) ClearCountry() *AddressUpdateOne
ClearCountry clears the value of the "country" field.
func (*AddressUpdateOne) ClearDeletedAt ¶
func (auo *AddressUpdateOne) ClearDeletedAt() *AddressUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*AddressUpdateOne) ClearState ¶
func (auo *AddressUpdateOne) ClearState() *AddressUpdateOne
ClearState clears the value of the "state" field.
func (*AddressUpdateOne) ClearStreet ¶
func (auo *AddressUpdateOne) ClearStreet() *AddressUpdateOne
ClearStreet clears the value of the "street" field.
func (*AddressUpdateOne) ClearTelephone ¶
func (auo *AddressUpdateOne) ClearTelephone() *AddressUpdateOne
ClearTelephone clears the value of the "telephone" field.
func (*AddressUpdateOne) ClearTimetables ¶
func (auo *AddressUpdateOne) ClearTimetables() *AddressUpdateOne
ClearTimetables clears all "timetables" edges to the Timetable entity.
func (*AddressUpdateOne) ClearZip ¶
func (auo *AddressUpdateOne) ClearZip() *AddressUpdateOne
ClearZip clears the value of the "zip" field.
func (*AddressUpdateOne) Exec ¶
func (auo *AddressUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AddressUpdateOne) ExecX ¶
func (auo *AddressUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AddressUpdateOne) Mutation ¶
func (auo *AddressUpdateOne) Mutation() *AddressMutation
Mutation returns the AddressMutation object of the builder.
func (*AddressUpdateOne) RemoveTimetableIDs ¶
func (auo *AddressUpdateOne) RemoveTimetableIDs(ids ...uuid.UUID) *AddressUpdateOne
RemoveTimetableIDs removes the "timetables" edge to Timetable entities by IDs.
func (*AddressUpdateOne) RemoveTimetables ¶
func (auo *AddressUpdateOne) RemoveTimetables(t ...*Timetable) *AddressUpdateOne
RemoveTimetables removes "timetables" edges to Timetable entities.
func (*AddressUpdateOne) Save ¶
func (auo *AddressUpdateOne) Save(ctx context.Context) (*Address, error)
Save executes the query and returns the updated Address entity.
func (*AddressUpdateOne) SaveX ¶
func (auo *AddressUpdateOne) SaveX(ctx context.Context) *Address
SaveX is like Save, but panics if an error occurs.
func (*AddressUpdateOne) Select ¶
func (auo *AddressUpdateOne) Select(field string, fields ...string) *AddressUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AddressUpdateOne) SetAddition ¶
func (auo *AddressUpdateOne) SetAddition(s string) *AddressUpdateOne
SetAddition sets the "addition" field.
func (*AddressUpdateOne) SetBusiness ¶
func (auo *AddressUpdateOne) SetBusiness(b *Business) *AddressUpdateOne
SetBusiness sets the "business" edge to the Business entity.
func (*AddressUpdateOne) SetBusinessID ¶
func (auo *AddressUpdateOne) SetBusinessID(id uuid.UUID) *AddressUpdateOne
SetBusinessID sets the "business" edge to the Business entity by ID.
func (*AddressUpdateOne) SetCity ¶
func (auo *AddressUpdateOne) SetCity(s string) *AddressUpdateOne
SetCity sets the "city" field.
func (*AddressUpdateOne) SetComment ¶
func (auo *AddressUpdateOne) SetComment(s string) *AddressUpdateOne
SetComment sets the "comment" field.
func (*AddressUpdateOne) SetCountry ¶
func (auo *AddressUpdateOne) SetCountry(s string) *AddressUpdateOne
SetCountry sets the "country" field.
func (*AddressUpdateOne) SetDeletedAt ¶
func (auo *AddressUpdateOne) SetDeletedAt(t time.Time) *AddressUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*AddressUpdateOne) SetInput ¶ added in v0.0.8
func (c *AddressUpdateOne) SetInput(i UpdateAddressInput) *AddressUpdateOne
SetInput applies the change-set in the UpdateAddressInput on the AddressUpdateOne builder.
func (*AddressUpdateOne) SetLocale ¶
func (auo *AddressUpdateOne) SetLocale(s string) *AddressUpdateOne
SetLocale sets the "locale" field.
func (*AddressUpdateOne) SetNillableAddition ¶
func (auo *AddressUpdateOne) SetNillableAddition(s *string) *AddressUpdateOne
SetNillableAddition sets the "addition" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableBusinessID ¶
func (auo *AddressUpdateOne) SetNillableBusinessID(id *uuid.UUID) *AddressUpdateOne
SetNillableBusinessID sets the "business" edge to the Business entity by ID if the given value is not nil.
func (*AddressUpdateOne) SetNillableCity ¶
func (auo *AddressUpdateOne) SetNillableCity(s *string) *AddressUpdateOne
SetNillableCity sets the "city" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableComment ¶
func (auo *AddressUpdateOne) SetNillableComment(s *string) *AddressUpdateOne
SetNillableComment sets the "comment" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableCountry ¶
func (auo *AddressUpdateOne) SetNillableCountry(s *string) *AddressUpdateOne
SetNillableCountry sets the "country" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableDeletedAt ¶
func (auo *AddressUpdateOne) SetNillableDeletedAt(t *time.Time) *AddressUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableLocale ¶
func (auo *AddressUpdateOne) SetNillableLocale(s *string) *AddressUpdateOne
SetNillableLocale sets the "locale" field if the given value is not nil.
func (*AddressUpdateOne) SetNillablePrimary ¶
func (auo *AddressUpdateOne) SetNillablePrimary(b *bool) *AddressUpdateOne
SetNillablePrimary sets the "primary" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableState ¶
func (auo *AddressUpdateOne) SetNillableState(s *string) *AddressUpdateOne
SetNillableState sets the "state" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableStreet ¶
func (auo *AddressUpdateOne) SetNillableStreet(s *string) *AddressUpdateOne
SetNillableStreet sets the "street" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableTelephone ¶
func (auo *AddressUpdateOne) SetNillableTelephone(s *string) *AddressUpdateOne
SetNillableTelephone sets the "telephone" field if the given value is not nil.
func (*AddressUpdateOne) SetNillableZip ¶
func (auo *AddressUpdateOne) SetNillableZip(s *string) *AddressUpdateOne
SetNillableZip sets the "zip" field if the given value is not nil.
func (*AddressUpdateOne) SetPrimary ¶
func (auo *AddressUpdateOne) SetPrimary(b bool) *AddressUpdateOne
SetPrimary sets the "primary" field.
func (*AddressUpdateOne) SetState ¶
func (auo *AddressUpdateOne) SetState(s string) *AddressUpdateOne
SetState sets the "state" field.
func (*AddressUpdateOne) SetStreet ¶
func (auo *AddressUpdateOne) SetStreet(s string) *AddressUpdateOne
SetStreet sets the "street" field.
func (*AddressUpdateOne) SetTelephone ¶
func (auo *AddressUpdateOne) SetTelephone(s string) *AddressUpdateOne
SetTelephone sets the "telephone" field.
func (*AddressUpdateOne) SetUpdatedAt ¶
func (auo *AddressUpdateOne) SetUpdatedAt(t time.Time) *AddressUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*AddressUpdateOne) SetZip ¶
func (auo *AddressUpdateOne) SetZip(s string) *AddressUpdateOne
SetZip sets the "zip" field.
func (*AddressUpdateOne) Where ¶
func (auo *AddressUpdateOne) Where(ps ...predicate.Address) *AddressUpdateOne
Where appends a list predicates to the AddressUpdate builder.
type AddressWhereInput ¶
type AddressWhereInput struct { Predicates []predicate.Address `json:"-"` Not *AddressWhereInput `json:"not,omitempty"` Or []*AddressWhereInput `json:"or,omitempty"` And []*AddressWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "created_at" field predicates. CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` // "updated_at" field predicates. UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` // "deleted_at" field predicates. DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` // "addition" field predicates. Addition *string `json:"addition,omitempty"` AdditionNEQ *string `json:"additionNEQ,omitempty"` AdditionIn []string `json:"additionIn,omitempty"` AdditionNotIn []string `json:"additionNotIn,omitempty"` AdditionGT *string `json:"additionGT,omitempty"` AdditionGTE *string `json:"additionGTE,omitempty"` AdditionLT *string `json:"additionLT,omitempty"` AdditionLTE *string `json:"additionLTE,omitempty"` AdditionContains *string `json:"additionContains,omitempty"` AdditionHasPrefix *string `json:"additionHasPrefix,omitempty"` AdditionHasSuffix *string `json:"additionHasSuffix,omitempty"` AdditionIsNil bool `json:"additionIsNil,omitempty"` AdditionNotNil bool `json:"additionNotNil,omitempty"` AdditionEqualFold *string `json:"additionEqualFold,omitempty"` AdditionContainsFold *string `json:"additionContainsFold,omitempty"` // "street" field predicates. Street *string `json:"street,omitempty"` StreetNEQ *string `json:"streetNEQ,omitempty"` StreetIn []string `json:"streetIn,omitempty"` StreetNotIn []string `json:"streetNotIn,omitempty"` StreetGT *string `json:"streetGT,omitempty"` StreetGTE *string `json:"streetGTE,omitempty"` StreetLT *string `json:"streetLT,omitempty"` StreetLTE *string `json:"streetLTE,omitempty"` StreetContains *string `json:"streetContains,omitempty"` StreetHasPrefix *string `json:"streetHasPrefix,omitempty"` StreetHasSuffix *string `json:"streetHasSuffix,omitempty"` StreetIsNil bool `json:"streetIsNil,omitempty"` StreetNotNil bool `json:"streetNotNil,omitempty"` StreetEqualFold *string `json:"streetEqualFold,omitempty"` StreetContainsFold *string `json:"streetContainsFold,omitempty"` // "city" field predicates. City *string `json:"city,omitempty"` CityNEQ *string `json:"cityNEQ,omitempty"` CityIn []string `json:"cityIn,omitempty"` CityNotIn []string `json:"cityNotIn,omitempty"` CityGT *string `json:"cityGT,omitempty"` CityGTE *string `json:"cityGTE,omitempty"` CityLT *string `json:"cityLT,omitempty"` CityLTE *string `json:"cityLTE,omitempty"` CityContains *string `json:"cityContains,omitempty"` CityHasPrefix *string `json:"cityHasPrefix,omitempty"` CityHasSuffix *string `json:"cityHasSuffix,omitempty"` CityIsNil bool `json:"cityIsNil,omitempty"` CityNotNil bool `json:"cityNotNil,omitempty"` CityEqualFold *string `json:"cityEqualFold,omitempty"` CityContainsFold *string `json:"cityContainsFold,omitempty"` // "zip" field predicates. Zip *string `json:"zip,omitempty"` ZipNEQ *string `json:"zipNEQ,omitempty"` ZipIn []string `json:"zipIn,omitempty"` ZipNotIn []string `json:"zipNotIn,omitempty"` ZipGT *string `json:"zipGT,omitempty"` ZipGTE *string `json:"zipGTE,omitempty"` ZipLT *string `json:"zipLT,omitempty"` ZipLTE *string `json:"zipLTE,omitempty"` ZipContains *string `json:"zipContains,omitempty"` ZipHasPrefix *string `json:"zipHasPrefix,omitempty"` ZipHasSuffix *string `json:"zipHasSuffix,omitempty"` ZipIsNil bool `json:"zipIsNil,omitempty"` ZipNotNil bool `json:"zipNotNil,omitempty"` ZipEqualFold *string `json:"zipEqualFold,omitempty"` ZipContainsFold *string `json:"zipContainsFold,omitempty"` // "state" field predicates. State *string `json:"state,omitempty"` StateNEQ *string `json:"stateNEQ,omitempty"` StateIn []string `json:"stateIn,omitempty"` StateNotIn []string `json:"stateNotIn,omitempty"` StateGT *string `json:"stateGT,omitempty"` StateGTE *string `json:"stateGTE,omitempty"` StateLT *string `json:"stateLT,omitempty"` StateLTE *string `json:"stateLTE,omitempty"` StateContains *string `json:"stateContains,omitempty"` StateHasPrefix *string `json:"stateHasPrefix,omitempty"` StateHasSuffix *string `json:"stateHasSuffix,omitempty"` StateIsNil bool `json:"stateIsNil,omitempty"` StateNotNil bool `json:"stateNotNil,omitempty"` StateEqualFold *string `json:"stateEqualFold,omitempty"` StateContainsFold *string `json:"stateContainsFold,omitempty"` // "country" field predicates. Country *string `json:"country,omitempty"` CountryNEQ *string `json:"countryNEQ,omitempty"` CountryIn []string `json:"countryIn,omitempty"` CountryNotIn []string `json:"countryNotIn,omitempty"` CountryGT *string `json:"countryGT,omitempty"` CountryGTE *string `json:"countryGTE,omitempty"` CountryLT *string `json:"countryLT,omitempty"` CountryLTE *string `json:"countryLTE,omitempty"` CountryContains *string `json:"countryContains,omitempty"` CountryHasPrefix *string `json:"countryHasPrefix,omitempty"` CountryHasSuffix *string `json:"countryHasSuffix,omitempty"` CountryIsNil bool `json:"countryIsNil,omitempty"` CountryNotNil bool `json:"countryNotNil,omitempty"` CountryEqualFold *string `json:"countryEqualFold,omitempty"` CountryContainsFold *string `json:"countryContainsFold,omitempty"` // "locale" field predicates. Locale *string `json:"locale,omitempty"` LocaleNEQ *string `json:"localeNEQ,omitempty"` LocaleIn []string `json:"localeIn,omitempty"` LocaleNotIn []string `json:"localeNotIn,omitempty"` LocaleGT *string `json:"localeGT,omitempty"` LocaleGTE *string `json:"localeGTE,omitempty"` LocaleLT *string `json:"localeLT,omitempty"` LocaleLTE *string `json:"localeLTE,omitempty"` LocaleContains *string `json:"localeContains,omitempty"` LocaleHasPrefix *string `json:"localeHasPrefix,omitempty"` LocaleHasSuffix *string `json:"localeHasSuffix,omitempty"` LocaleEqualFold *string `json:"localeEqualFold,omitempty"` LocaleContainsFold *string `json:"localeContainsFold,omitempty"` // "primary" field predicates. Primary *bool `json:"primary,omitempty"` PrimaryNEQ *bool `json:"primaryNEQ,omitempty"` // "telephone" field predicates. Telephone *string `json:"telephone,omitempty"` TelephoneNEQ *string `json:"telephoneNEQ,omitempty"` TelephoneIn []string `json:"telephoneIn,omitempty"` TelephoneNotIn []string `json:"telephoneNotIn,omitempty"` TelephoneGT *string `json:"telephoneGT,omitempty"` TelephoneGTE *string `json:"telephoneGTE,omitempty"` TelephoneLT *string `json:"telephoneLT,omitempty"` TelephoneLTE *string `json:"telephoneLTE,omitempty"` TelephoneContains *string `json:"telephoneContains,omitempty"` TelephoneHasPrefix *string `json:"telephoneHasPrefix,omitempty"` TelephoneHasSuffix *string `json:"telephoneHasSuffix,omitempty"` TelephoneIsNil bool `json:"telephoneIsNil,omitempty"` TelephoneNotNil bool `json:"telephoneNotNil,omitempty"` TelephoneEqualFold *string `json:"telephoneEqualFold,omitempty"` TelephoneContainsFold *string `json:"telephoneContainsFold,omitempty"` // "comment" field predicates. Comment *string `json:"comment,omitempty"` CommentNEQ *string `json:"commentNEQ,omitempty"` CommentIn []string `json:"commentIn,omitempty"` CommentNotIn []string `json:"commentNotIn,omitempty"` CommentGT *string `json:"commentGT,omitempty"` CommentGTE *string `json:"commentGTE,omitempty"` CommentLT *string `json:"commentLT,omitempty"` CommentLTE *string `json:"commentLTE,omitempty"` CommentContains *string `json:"commentContains,omitempty"` CommentHasPrefix *string `json:"commentHasPrefix,omitempty"` CommentHasSuffix *string `json:"commentHasSuffix,omitempty"` CommentIsNil bool `json:"commentIsNil,omitempty"` CommentNotNil bool `json:"commentNotNil,omitempty"` CommentEqualFold *string `json:"commentEqualFold,omitempty"` CommentContainsFold *string `json:"commentContainsFold,omitempty"` // "business" edge predicates. HasBusiness *bool `json:"hasBusiness,omitempty"` HasBusinessWith []*BusinessWhereInput `json:"hasBusinessWith,omitempty"` // "timetables" edge predicates. HasTimetables *bool `json:"hasTimetables,omitempty"` HasTimetablesWith []*TimetableWhereInput `json:"hasTimetablesWith,omitempty"` }
AddressWhereInput represents a where input for filtering Address queries.
func (*AddressWhereInput) AddPredicates ¶
func (i *AddressWhereInput) AddPredicates(predicates ...predicate.Address)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*AddressWhereInput) Filter ¶
func (i *AddressWhereInput) Filter(q *AddressQuery) (*AddressQuery, error)
Filter applies the AddressWhereInput filter on the AddressQuery builder.
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 AuditLog ¶
type AuditLog struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // User holds the value of the "user" field. User string `json:"user,omitempty"` // Action holds the value of the "action" field. Action string `json:"action,omitempty"` // EntitySchema holds the value of the "entity_schema" field. EntitySchema string `json:"entity_schema,omitempty"` // EntityValues holds the value of the "entity_values" field. EntityValues map[string]interface{} `json:"entity_values,omitempty"` // EntityUUID holds the value of the "entity_uuid" field. EntityUUID string `json:"entity_uuid,omitempty"` // Timestamp holds the value of the "timestamp" field. Timestamp time.Time `json:"timestamp,omitempty"` // contains filtered or unexported fields }
AuditLog is the model entity for the AuditLog schema.
func (*AuditLog) IsNode ¶
func (n *AuditLog) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*AuditLog) ToEdge ¶
func (al *AuditLog) ToEdge(order *AuditLogOrder) *AuditLogEdge
ToEdge converts AuditLog into AuditLogEdge.
func (*AuditLog) Unwrap ¶
Unwrap unwraps the AuditLog entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*AuditLog) Update ¶
func (al *AuditLog) Update() *AuditLogUpdateOne
Update returns a builder for updating this AuditLog. Note that you need to call AuditLog.Unwrap() before calling this method if this AuditLog was returned from a transaction, and the transaction was committed or rolled back.
type AuditLogClient ¶
type AuditLogClient struct {
// contains filtered or unexported fields
}
AuditLogClient is a client for the AuditLog schema.
func NewAuditLogClient ¶
func NewAuditLogClient(c config) *AuditLogClient
NewAuditLogClient returns a client for the AuditLog from the given config.
func (*AuditLogClient) Create ¶
func (c *AuditLogClient) Create() *AuditLogCreate
Create returns a builder for creating a AuditLog entity.
func (*AuditLogClient) CreateBulk ¶
func (c *AuditLogClient) CreateBulk(builders ...*AuditLogCreate) *AuditLogCreateBulk
CreateBulk returns a builder for creating a bulk of AuditLog entities.
func (*AuditLogClient) Delete ¶
func (c *AuditLogClient) Delete() *AuditLogDelete
Delete returns a delete builder for AuditLog.
func (*AuditLogClient) DeleteOne ¶
func (c *AuditLogClient) DeleteOne(al *AuditLog) *AuditLogDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AuditLogClient) DeleteOneID ¶
func (c *AuditLogClient) DeleteOneID(id uuid.UUID) *AuditLogDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AuditLogClient) Hooks ¶
func (c *AuditLogClient) Hooks() []Hook
Hooks returns the client hooks.
func (*AuditLogClient) Intercept ¶
func (c *AuditLogClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `auditlog.Intercept(f(g(h())))`.
func (*AuditLogClient) Interceptors ¶
func (c *AuditLogClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AuditLogClient) Query ¶
func (c *AuditLogClient) Query() *AuditLogQuery
Query returns a query builder for AuditLog.
func (*AuditLogClient) Update ¶
func (c *AuditLogClient) Update() *AuditLogUpdate
Update returns an update builder for AuditLog.
func (*AuditLogClient) UpdateOne ¶
func (c *AuditLogClient) UpdateOne(al *AuditLog) *AuditLogUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AuditLogClient) UpdateOneID ¶
func (c *AuditLogClient) UpdateOneID(id uuid.UUID) *AuditLogUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AuditLogClient) Use ¶
func (c *AuditLogClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `auditlog.Hooks(f(g(h())))`.
type AuditLogConnection ¶
type AuditLogConnection struct { Edges []*AuditLogEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
AuditLogConnection is the connection containing edges to AuditLog.
type AuditLogCreate ¶
type AuditLogCreate struct {
// contains filtered or unexported fields
}
AuditLogCreate is the builder for creating a AuditLog entity.
func (*AuditLogCreate) Exec ¶
func (alc *AuditLogCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AuditLogCreate) ExecX ¶
func (alc *AuditLogCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuditLogCreate) Mutation ¶
func (alc *AuditLogCreate) Mutation() *AuditLogMutation
Mutation returns the AuditLogMutation object of the builder.
func (*AuditLogCreate) Save ¶
func (alc *AuditLogCreate) Save(ctx context.Context) (*AuditLog, error)
Save creates the AuditLog in the database.
func (*AuditLogCreate) SaveX ¶
func (alc *AuditLogCreate) SaveX(ctx context.Context) *AuditLog
SaveX calls Save and panics if Save returns an error.
func (*AuditLogCreate) SetAction ¶
func (alc *AuditLogCreate) SetAction(s string) *AuditLogCreate
SetAction sets the "action" field.
func (*AuditLogCreate) SetEntitySchema ¶
func (alc *AuditLogCreate) SetEntitySchema(s string) *AuditLogCreate
SetEntitySchema sets the "entity_schema" field.
func (*AuditLogCreate) SetEntityUUID ¶
func (alc *AuditLogCreate) SetEntityUUID(s string) *AuditLogCreate
SetEntityUUID sets the "entity_uuid" field.
func (*AuditLogCreate) SetEntityValues ¶
func (alc *AuditLogCreate) SetEntityValues(m map[string]interface{}) *AuditLogCreate
SetEntityValues sets the "entity_values" field.
func (*AuditLogCreate) SetID ¶
func (alc *AuditLogCreate) SetID(u uuid.UUID) *AuditLogCreate
SetID sets the "id" field.
func (*AuditLogCreate) SetNillableEntityUUID ¶
func (alc *AuditLogCreate) SetNillableEntityUUID(s *string) *AuditLogCreate
SetNillableEntityUUID sets the "entity_uuid" field if the given value is not nil.
func (*AuditLogCreate) SetNillableID ¶
func (alc *AuditLogCreate) SetNillableID(u *uuid.UUID) *AuditLogCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*AuditLogCreate) SetNillableTimestamp ¶
func (alc *AuditLogCreate) SetNillableTimestamp(t *time.Time) *AuditLogCreate
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*AuditLogCreate) SetTimestamp ¶
func (alc *AuditLogCreate) SetTimestamp(t time.Time) *AuditLogCreate
SetTimestamp sets the "timestamp" field.
func (*AuditLogCreate) SetUser ¶
func (alc *AuditLogCreate) SetUser(s string) *AuditLogCreate
SetUser sets the "user" field.
type AuditLogCreateBulk ¶
type AuditLogCreateBulk struct {
// contains filtered or unexported fields
}
AuditLogCreateBulk is the builder for creating many AuditLog entities in bulk.
func (*AuditLogCreateBulk) Exec ¶
func (alcb *AuditLogCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AuditLogCreateBulk) ExecX ¶
func (alcb *AuditLogCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type AuditLogDelete ¶
type AuditLogDelete struct {
// contains filtered or unexported fields
}
AuditLogDelete is the builder for deleting a AuditLog entity.
func (*AuditLogDelete) Exec ¶
func (ald *AuditLogDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AuditLogDelete) ExecX ¶
func (ald *AuditLogDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AuditLogDelete) Where ¶
func (ald *AuditLogDelete) Where(ps ...predicate.AuditLog) *AuditLogDelete
Where appends a list predicates to the AuditLogDelete builder.
type AuditLogDeleteOne ¶
type AuditLogDeleteOne struct {
// contains filtered or unexported fields
}
AuditLogDeleteOne is the builder for deleting a single AuditLog entity.
func (*AuditLogDeleteOne) Exec ¶
func (aldo *AuditLogDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AuditLogDeleteOne) ExecX ¶
func (aldo *AuditLogDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuditLogDeleteOne) Where ¶
func (aldo *AuditLogDeleteOne) Where(ps ...predicate.AuditLog) *AuditLogDeleteOne
Where appends a list predicates to the AuditLogDelete builder.
type AuditLogEdge ¶
AuditLogEdge is the edge representation of AuditLog.
type AuditLogGroupBy ¶
type AuditLogGroupBy struct {
// contains filtered or unexported fields
}
AuditLogGroupBy is the group-by builder for AuditLog entities.
func (*AuditLogGroupBy) Aggregate ¶
func (algb *AuditLogGroupBy) Aggregate(fns ...AggregateFunc) *AuditLogGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AuditLogGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AuditLogGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AuditLogGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AuditLogGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AuditLogGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AuditLogGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AuditLogGroupBy) Scan ¶
func (algb *AuditLogGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AuditLogGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AuditLogMutation ¶
type AuditLogMutation struct {
// contains filtered or unexported fields
}
AuditLogMutation represents an operation that mutates the AuditLog nodes in the graph.
func (*AuditLogMutation) Action ¶
func (m *AuditLogMutation) Action() (r string, exists bool)
Action returns the value of the "action" field in the mutation.
func (*AuditLogMutation) AddField ¶
func (m *AuditLogMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*AuditLogMutation) AddedEdges ¶
func (m *AuditLogMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AuditLogMutation) AddedField ¶
func (m *AuditLogMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AuditLogMutation) AddedFields ¶
func (m *AuditLogMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AuditLogMutation) AddedIDs ¶
func (m *AuditLogMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AuditLogMutation) ClearEdge ¶
func (m *AuditLogMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*AuditLogMutation) ClearEntityUUID ¶
func (m *AuditLogMutation) ClearEntityUUID()
ClearEntityUUID clears the value of the "entity_uuid" field.
func (*AuditLogMutation) ClearEntityValues ¶
func (m *AuditLogMutation) ClearEntityValues()
ClearEntityValues clears the value of the "entity_values" field.
func (*AuditLogMutation) ClearField ¶
func (m *AuditLogMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*AuditLogMutation) ClearedEdges ¶
func (m *AuditLogMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AuditLogMutation) ClearedFields ¶
func (m *AuditLogMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AuditLogMutation) Client ¶
func (m AuditLogMutation) 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 (*AuditLogMutation) EdgeCleared ¶
func (m *AuditLogMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AuditLogMutation) EntitySchema ¶
func (m *AuditLogMutation) EntitySchema() (r string, exists bool)
EntitySchema returns the value of the "entity_schema" field in the mutation.
func (*AuditLogMutation) EntityUUID ¶
func (m *AuditLogMutation) EntityUUID() (r string, exists bool)
EntityUUID returns the value of the "entity_uuid" field in the mutation.
func (*AuditLogMutation) EntityUUIDCleared ¶
func (m *AuditLogMutation) EntityUUIDCleared() bool
EntityUUIDCleared returns if the "entity_uuid" field was cleared in this mutation.
func (*AuditLogMutation) EntityValues ¶
func (m *AuditLogMutation) EntityValues() (r map[string]interface{}, exists bool)
EntityValues returns the value of the "entity_values" field in the mutation.
func (*AuditLogMutation) EntityValuesCleared ¶
func (m *AuditLogMutation) EntityValuesCleared() bool
EntityValuesCleared returns if the "entity_values" field was cleared in this mutation.
func (*AuditLogMutation) Field ¶
func (m *AuditLogMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AuditLogMutation) FieldCleared ¶
func (m *AuditLogMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AuditLogMutation) Fields ¶
func (m *AuditLogMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*AuditLogMutation) ID ¶
func (m *AuditLogMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*AuditLogMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*AuditLogMutation) OldAction ¶
func (m *AuditLogMutation) OldAction(ctx context.Context) (v string, err error)
OldAction returns the old "action" field's value of the AuditLog entity. If the AuditLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuditLogMutation) OldEntitySchema ¶
func (m *AuditLogMutation) OldEntitySchema(ctx context.Context) (v string, err error)
OldEntitySchema returns the old "entity_schema" field's value of the AuditLog entity. If the AuditLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuditLogMutation) OldEntityUUID ¶
func (m *AuditLogMutation) OldEntityUUID(ctx context.Context) (v string, err error)
OldEntityUUID returns the old "entity_uuid" field's value of the AuditLog entity. If the AuditLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuditLogMutation) OldEntityValues ¶
func (m *AuditLogMutation) OldEntityValues(ctx context.Context) (v map[string]interface{}, err error)
OldEntityValues returns the old "entity_values" field's value of the AuditLog entity. If the AuditLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuditLogMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*AuditLogMutation) OldTimestamp ¶
OldTimestamp returns the old "timestamp" field's value of the AuditLog entity. If the AuditLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuditLogMutation) OldUser ¶
func (m *AuditLogMutation) OldUser(ctx context.Context) (v string, err error)
OldUser returns the old "user" field's value of the AuditLog entity. If the AuditLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuditLogMutation) RemovedEdges ¶
func (m *AuditLogMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AuditLogMutation) RemovedIDs ¶
func (m *AuditLogMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*AuditLogMutation) ResetAction ¶
func (m *AuditLogMutation) ResetAction()
ResetAction resets all changes to the "action" field.
func (*AuditLogMutation) ResetEdge ¶
func (m *AuditLogMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*AuditLogMutation) ResetEntitySchema ¶
func (m *AuditLogMutation) ResetEntitySchema()
ResetEntitySchema resets all changes to the "entity_schema" field.
func (*AuditLogMutation) ResetEntityUUID ¶
func (m *AuditLogMutation) ResetEntityUUID()
ResetEntityUUID resets all changes to the "entity_uuid" field.
func (*AuditLogMutation) ResetEntityValues ¶
func (m *AuditLogMutation) ResetEntityValues()
ResetEntityValues resets all changes to the "entity_values" field.
func (*AuditLogMutation) ResetField ¶
func (m *AuditLogMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*AuditLogMutation) ResetTimestamp ¶
func (m *AuditLogMutation) ResetTimestamp()
ResetTimestamp resets all changes to the "timestamp" field.
func (*AuditLogMutation) ResetUser ¶
func (m *AuditLogMutation) ResetUser()
ResetUser resets all changes to the "user" field.
func (*AuditLogMutation) SetAction ¶
func (m *AuditLogMutation) SetAction(s string)
SetAction sets the "action" field.
func (*AuditLogMutation) SetEntitySchema ¶
func (m *AuditLogMutation) SetEntitySchema(s string)
SetEntitySchema sets the "entity_schema" field.
func (*AuditLogMutation) SetEntityUUID ¶
func (m *AuditLogMutation) SetEntityUUID(s string)
SetEntityUUID sets the "entity_uuid" field.
func (*AuditLogMutation) SetEntityValues ¶
func (m *AuditLogMutation) SetEntityValues(value map[string]interface{})
SetEntityValues sets the "entity_values" field.
func (*AuditLogMutation) SetField ¶
func (m *AuditLogMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*AuditLogMutation) SetID ¶
func (m *AuditLogMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of AuditLog entities.
func (*AuditLogMutation) SetOp ¶
func (m *AuditLogMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AuditLogMutation) SetTimestamp ¶
func (m *AuditLogMutation) SetTimestamp(t time.Time)
SetTimestamp sets the "timestamp" field.
func (*AuditLogMutation) SetUser ¶
func (m *AuditLogMutation) SetUser(s string)
SetUser sets the "user" field.
func (*AuditLogMutation) Timestamp ¶
func (m *AuditLogMutation) Timestamp() (r time.Time, exists bool)
Timestamp returns the value of the "timestamp" field in the mutation.
func (AuditLogMutation) Tx ¶
func (m AuditLogMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AuditLogMutation) Type ¶
func (m *AuditLogMutation) Type() string
Type returns the node type of this mutation (AuditLog).
func (*AuditLogMutation) User ¶
func (m *AuditLogMutation) User() (r string, exists bool)
User returns the value of the "user" field in the mutation.
func (*AuditLogMutation) Where ¶
func (m *AuditLogMutation) Where(ps ...predicate.AuditLog)
Where appends a list predicates to the AuditLogMutation builder.
func (*AuditLogMutation) WhereP ¶
func (m *AuditLogMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AuditLogMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type AuditLogOrder ¶
type AuditLogOrder struct { Direction OrderDirection `json:"direction"` Field *AuditLogOrderField `json:"field"` }
AuditLogOrder defines the ordering of AuditLog.
type AuditLogOrderField ¶
type AuditLogOrderField struct { // Value extracts the ordering value from the given AuditLog. Value func(*AuditLog) (ent.Value, error) // contains filtered or unexported fields }
AuditLogOrderField defines the ordering field of AuditLog.
func (AuditLogOrderField) MarshalGQL ¶ added in v0.0.7
func (f AuditLogOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (AuditLogOrderField) String ¶ added in v0.0.7
func (f AuditLogOrderField) String() string
String implement fmt.Stringer interface.
func (*AuditLogOrderField) UnmarshalGQL ¶ added in v0.0.7
func (f *AuditLogOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type AuditLogPaginateOption ¶
type AuditLogPaginateOption func(*auditlogPager) error
AuditLogPaginateOption enables pagination customization.
func WithAuditLogFilter ¶
func WithAuditLogFilter(filter func(*AuditLogQuery) (*AuditLogQuery, error)) AuditLogPaginateOption
WithAuditLogFilter configures pagination filter.
func WithAuditLogOrder ¶
func WithAuditLogOrder(order []*AuditLogOrder) AuditLogPaginateOption
WithAuditLogOrder configures pagination ordering.
type AuditLogQuery ¶
type AuditLogQuery struct {
// contains filtered or unexported fields
}
AuditLogQuery is the builder for querying AuditLog entities.
func (*AuditLogQuery) Aggregate ¶
func (alq *AuditLogQuery) Aggregate(fns ...AggregateFunc) *AuditLogSelect
Aggregate returns a AuditLogSelect configured with the given aggregations.
func (*AuditLogQuery) All ¶
func (alq *AuditLogQuery) All(ctx context.Context) ([]*AuditLog, error)
All executes the query and returns a list of AuditLogs.
func (*AuditLogQuery) AllX ¶
func (alq *AuditLogQuery) AllX(ctx context.Context) []*AuditLog
AllX is like All, but panics if an error occurs.
func (*AuditLogQuery) Clone ¶
func (alq *AuditLogQuery) Clone() *AuditLogQuery
Clone returns a duplicate of the AuditLogQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AuditLogQuery) CollectFields ¶
func (al *AuditLogQuery) CollectFields(ctx context.Context, satisfies ...string) (*AuditLogQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*AuditLogQuery) Count ¶
func (alq *AuditLogQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AuditLogQuery) CountX ¶
func (alq *AuditLogQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AuditLogQuery) Exist ¶
func (alq *AuditLogQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AuditLogQuery) ExistX ¶
func (alq *AuditLogQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AuditLogQuery) First ¶
func (alq *AuditLogQuery) First(ctx context.Context) (*AuditLog, error)
First returns the first AuditLog entity from the query. Returns a *NotFoundError when no AuditLog was found.
func (*AuditLogQuery) FirstID ¶
FirstID returns the first AuditLog ID from the query. Returns a *NotFoundError when no AuditLog ID was found.
func (*AuditLogQuery) FirstIDX ¶
func (alq *AuditLogQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*AuditLogQuery) FirstX ¶
func (alq *AuditLogQuery) FirstX(ctx context.Context) *AuditLog
FirstX is like First, but panics if an error occurs.
func (*AuditLogQuery) GroupBy ¶
func (alq *AuditLogQuery) GroupBy(field string, fields ...string) *AuditLogGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { User string `json:"user,omitempty"` Count int `json:"count,omitempty"` } client.AuditLog.Query(). GroupBy(auditlog.FieldUser). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AuditLogQuery) IDsX ¶
func (alq *AuditLogQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*AuditLogQuery) Limit ¶
func (alq *AuditLogQuery) Limit(limit int) *AuditLogQuery
Limit the number of records to be returned by this query.
func (*AuditLogQuery) Offset ¶
func (alq *AuditLogQuery) Offset(offset int) *AuditLogQuery
Offset to start from.
func (*AuditLogQuery) Only ¶
func (alq *AuditLogQuery) Only(ctx context.Context) (*AuditLog, error)
Only returns a single AuditLog entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one AuditLog entity is found. Returns a *NotFoundError when no AuditLog entities are found.
func (*AuditLogQuery) OnlyID ¶
OnlyID is like Only, but returns the only AuditLog ID in the query. Returns a *NotSingularError when more than one AuditLog ID is found. Returns a *NotFoundError when no entities are found.
func (*AuditLogQuery) OnlyIDX ¶
func (alq *AuditLogQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AuditLogQuery) OnlyX ¶
func (alq *AuditLogQuery) OnlyX(ctx context.Context) *AuditLog
OnlyX is like Only, but panics if an error occurs.
func (*AuditLogQuery) Order ¶
func (alq *AuditLogQuery) Order(o ...auditlog.OrderOption) *AuditLogQuery
Order specifies how the records should be ordered.
func (*AuditLogQuery) Paginate ¶
func (al *AuditLogQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...AuditLogPaginateOption, ) (*AuditLogConnection, error)
Paginate executes the query and returns a relay based cursor connection to AuditLog.
func (*AuditLogQuery) Select ¶
func (alq *AuditLogQuery) Select(fields ...string) *AuditLogSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { User string `json:"user,omitempty"` } client.AuditLog.Query(). Select(auditlog.FieldUser). Scan(ctx, &v)
func (*AuditLogQuery) Unique ¶
func (alq *AuditLogQuery) Unique(unique bool) *AuditLogQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*AuditLogQuery) Where ¶
func (alq *AuditLogQuery) Where(ps ...predicate.AuditLog) *AuditLogQuery
Where adds a new predicate for the AuditLogQuery builder.
type AuditLogSelect ¶
type AuditLogSelect struct { *AuditLogQuery // contains filtered or unexported fields }
AuditLogSelect is the builder for selecting fields of AuditLog entities.
func (*AuditLogSelect) Aggregate ¶
func (als *AuditLogSelect) Aggregate(fns ...AggregateFunc) *AuditLogSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AuditLogSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AuditLogSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AuditLogSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AuditLogSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AuditLogSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AuditLogSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AuditLogSelect) Scan ¶
func (als *AuditLogSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AuditLogSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AuditLogUpdate ¶
type AuditLogUpdate struct {
// contains filtered or unexported fields
}
AuditLogUpdate is the builder for updating AuditLog entities.
func (*AuditLogUpdate) Exec ¶
func (alu *AuditLogUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AuditLogUpdate) ExecX ¶
func (alu *AuditLogUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuditLogUpdate) Mutation ¶
func (alu *AuditLogUpdate) Mutation() *AuditLogMutation
Mutation returns the AuditLogMutation object of the builder.
func (*AuditLogUpdate) Save ¶
func (alu *AuditLogUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*AuditLogUpdate) SaveX ¶
func (alu *AuditLogUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AuditLogUpdate) Where ¶
func (alu *AuditLogUpdate) Where(ps ...predicate.AuditLog) *AuditLogUpdate
Where appends a list predicates to the AuditLogUpdate builder.
type AuditLogUpdateOne ¶
type AuditLogUpdateOne struct {
// contains filtered or unexported fields
}
AuditLogUpdateOne is the builder for updating a single AuditLog entity.
func (*AuditLogUpdateOne) Exec ¶
func (aluo *AuditLogUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AuditLogUpdateOne) ExecX ¶
func (aluo *AuditLogUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuditLogUpdateOne) Mutation ¶
func (aluo *AuditLogUpdateOne) Mutation() *AuditLogMutation
Mutation returns the AuditLogMutation object of the builder.
func (*AuditLogUpdateOne) Save ¶
func (aluo *AuditLogUpdateOne) Save(ctx context.Context) (*AuditLog, error)
Save executes the query and returns the updated AuditLog entity.
func (*AuditLogUpdateOne) SaveX ¶
func (aluo *AuditLogUpdateOne) SaveX(ctx context.Context) *AuditLog
SaveX is like Save, but panics if an error occurs.
func (*AuditLogUpdateOne) Select ¶
func (aluo *AuditLogUpdateOne) Select(field string, fields ...string) *AuditLogUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AuditLogUpdateOne) Where ¶
func (aluo *AuditLogUpdateOne) Where(ps ...predicate.AuditLog) *AuditLogUpdateOne
Where appends a list predicates to the AuditLogUpdate builder.
type AuditLogWhereInput ¶
type AuditLogWhereInput struct { Predicates []predicate.AuditLog `json:"-"` Not *AuditLogWhereInput `json:"not,omitempty"` Or []*AuditLogWhereInput `json:"or,omitempty"` And []*AuditLogWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "user" field predicates. User *string `json:"user,omitempty"` UserNEQ *string `json:"userNEQ,omitempty"` UserIn []string `json:"userIn,omitempty"` UserNotIn []string `json:"userNotIn,omitempty"` UserGT *string `json:"userGT,omitempty"` UserGTE *string `json:"userGTE,omitempty"` UserLT *string `json:"userLT,omitempty"` UserLTE *string `json:"userLTE,omitempty"` UserContains *string `json:"userContains,omitempty"` UserHasPrefix *string `json:"userHasPrefix,omitempty"` UserHasSuffix *string `json:"userHasSuffix,omitempty"` UserEqualFold *string `json:"userEqualFold,omitempty"` UserContainsFold *string `json:"userContainsFold,omitempty"` // "action" field predicates. Action *string `json:"action,omitempty"` ActionNEQ *string `json:"actionNEQ,omitempty"` ActionIn []string `json:"actionIn,omitempty"` ActionNotIn []string `json:"actionNotIn,omitempty"` ActionGT *string `json:"actionGT,omitempty"` ActionGTE *string `json:"actionGTE,omitempty"` ActionLT *string `json:"actionLT,omitempty"` ActionLTE *string `json:"actionLTE,omitempty"` ActionContains *string `json:"actionContains,omitempty"` ActionHasPrefix *string `json:"actionHasPrefix,omitempty"` ActionHasSuffix *string `json:"actionHasSuffix,omitempty"` ActionEqualFold *string `json:"actionEqualFold,omitempty"` ActionContainsFold *string `json:"actionContainsFold,omitempty"` // "entity_schema" field predicates. EntitySchema *string `json:"entitySchema,omitempty"` EntitySchemaNEQ *string `json:"entitySchemaNEQ,omitempty"` EntitySchemaIn []string `json:"entitySchemaIn,omitempty"` EntitySchemaNotIn []string `json:"entitySchemaNotIn,omitempty"` EntitySchemaGT *string `json:"entitySchemaGT,omitempty"` EntitySchemaGTE *string `json:"entitySchemaGTE,omitempty"` EntitySchemaLT *string `json:"entitySchemaLT,omitempty"` EntitySchemaLTE *string `json:"entitySchemaLTE,omitempty"` EntitySchemaContains *string `json:"entitySchemaContains,omitempty"` EntitySchemaHasPrefix *string `json:"entitySchemaHasPrefix,omitempty"` EntitySchemaHasSuffix *string `json:"entitySchemaHasSuffix,omitempty"` EntitySchemaEqualFold *string `json:"entitySchemaEqualFold,omitempty"` EntitySchemaContainsFold *string `json:"entitySchemaContainsFold,omitempty"` // "entity_uuid" field predicates. EntityUUID *string `json:"entityUUID,omitempty"` EntityUUIDNEQ *string `json:"entityUUIDNEQ,omitempty"` EntityUUIDIn []string `json:"entityUUIDIn,omitempty"` EntityUUIDNotIn []string `json:"entityUUIDNotIn,omitempty"` EntityUUIDGT *string `json:"entityUUIDGT,omitempty"` EntityUUIDGTE *string `json:"entityUUIDGTE,omitempty"` EntityUUIDLT *string `json:"entityUUIDLT,omitempty"` EntityUUIDLTE *string `json:"entityUUIDLTE,omitempty"` EntityUUIDContains *string `json:"entityUUIDContains,omitempty"` EntityUUIDHasPrefix *string `json:"entityUUIDHasPrefix,omitempty"` EntityUUIDHasSuffix *string `json:"entityUUIDHasSuffix,omitempty"` EntityUUIDIsNil bool `json:"entityUUIDIsNil,omitempty"` EntityUUIDNotNil bool `json:"entityUUIDNotNil,omitempty"` EntityUUIDEqualFold *string `json:"entityUUIDEqualFold,omitempty"` EntityUUIDContainsFold *string `json:"entityUUIDContainsFold,omitempty"` // "timestamp" field predicates. Timestamp *time.Time `json:"timestamp,omitempty"` TimestampNEQ *time.Time `json:"timestampNEQ,omitempty"` TimestampIn []time.Time `json:"timestampIn,omitempty"` TimestampNotIn []time.Time `json:"timestampNotIn,omitempty"` TimestampGT *time.Time `json:"timestampGT,omitempty"` TimestampGTE *time.Time `json:"timestampGTE,omitempty"` TimestampLT *time.Time `json:"timestampLT,omitempty"` TimestampLTE *time.Time `json:"timestampLTE,omitempty"` }
AuditLogWhereInput represents a where input for filtering AuditLog queries.
func (*AuditLogWhereInput) AddPredicates ¶
func (i *AuditLogWhereInput) AddPredicates(predicates ...predicate.AuditLog)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*AuditLogWhereInput) Filter ¶
func (i *AuditLogWhereInput) Filter(q *AuditLogQuery) (*AuditLogQuery, error)
Filter applies the AuditLogWhereInput filter on the AuditLogQuery builder.
type Business ¶
type Business struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // The main name of the business Name1 string `json:"name1,omitempty"` // The optional second name of the business Name2 string `json:"name2,omitempty"` // The unqiue alias of the business (short name) Alias string `json:"alias,omitempty"` // Telephone number Telephone string `json:"telephone,omitempty"` // Email address (has to be unique) Email string `json:"email,omitempty"` // Website address Website string `json:"website,omitempty"` // A comment for this business Comment string `json:"comment,omitempty"` // Is the business active? Active bool `json:"active,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the BusinessQuery when eager-loading is set. Edges BusinessEdges `json:"edges"` // contains filtered or unexported fields }
Business is the model entity for the Business schema.
func (*Business) IsNode ¶
func (n *Business) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Business) NamedAddresses ¶
NamedAddresses returns the Addresses named value or an error if the edge was not loaded in eager-loading with this name.
func (*Business) NamedOperators ¶
NamedOperators returns the Operators named value or an error if the edge was not loaded in eager-loading with this name.
func (*Business) NamedTags ¶
NamedTags returns the Tags named value or an error if the edge was not loaded in eager-loading with this name.
func (*Business) NamedUsers ¶
NamedUsers returns the Users named value or an error if the edge was not loaded in eager-loading with this name.
func (*Business) QueryAddresses ¶
func (b *Business) QueryAddresses() *AddressQuery
QueryAddresses queries the "addresses" edge of the Business entity.
func (*Business) QueryOperators ¶
func (b *Business) QueryOperators() *OperatorQuery
QueryOperators queries the "operators" edge of the Business entity.
func (*Business) QueryUsers ¶
QueryUsers queries the "users" edge of the Business entity.
func (*Business) ToEdge ¶
func (b *Business) ToEdge(order *BusinessOrder) *BusinessEdge
ToEdge converts Business into BusinessEdge.
func (*Business) Unwrap ¶
Unwrap unwraps the Business entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Business) Update ¶
func (b *Business) Update() *BusinessUpdateOne
Update returns a builder for updating this Business. Note that you need to call Business.Unwrap() before calling this method if this Business was returned from a transaction, and the transaction was committed or rolled back.
type BusinessClient ¶
type BusinessClient struct {
// contains filtered or unexported fields
}
BusinessClient is a client for the Business schema.
func NewBusinessClient ¶
func NewBusinessClient(c config) *BusinessClient
NewBusinessClient returns a client for the Business from the given config.
func (*BusinessClient) Create ¶
func (c *BusinessClient) Create() *BusinessCreate
Create returns a builder for creating a Business entity.
func (*BusinessClient) CreateBulk ¶
func (c *BusinessClient) CreateBulk(builders ...*BusinessCreate) *BusinessCreateBulk
CreateBulk returns a builder for creating a bulk of Business entities.
func (*BusinessClient) Delete ¶
func (c *BusinessClient) Delete() *BusinessDelete
Delete returns a delete builder for Business.
func (*BusinessClient) DeleteOne ¶
func (c *BusinessClient) DeleteOne(b *Business) *BusinessDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BusinessClient) DeleteOneID ¶
func (c *BusinessClient) DeleteOneID(id uuid.UUID) *BusinessDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BusinessClient) Hooks ¶
func (c *BusinessClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BusinessClient) Intercept ¶
func (c *BusinessClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `business.Intercept(f(g(h())))`.
func (*BusinessClient) Interceptors ¶
func (c *BusinessClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BusinessClient) Query ¶
func (c *BusinessClient) Query() *BusinessQuery
Query returns a query builder for Business.
func (*BusinessClient) QueryAddresses ¶
func (c *BusinessClient) QueryAddresses(b *Business) *AddressQuery
QueryAddresses queries the addresses edge of a Business.
func (*BusinessClient) QueryOperators ¶
func (c *BusinessClient) QueryOperators(b *Business) *OperatorQuery
QueryOperators queries the operators edge of a Business.
func (*BusinessClient) QueryTags ¶
func (c *BusinessClient) QueryTags(b *Business) *TagQuery
QueryTags queries the tags edge of a Business.
func (*BusinessClient) QueryUsers ¶
func (c *BusinessClient) QueryUsers(b *Business) *UserQuery
QueryUsers queries the users edge of a Business.
func (*BusinessClient) Update ¶
func (c *BusinessClient) Update() *BusinessUpdate
Update returns an update builder for Business.
func (*BusinessClient) UpdateOne ¶
func (c *BusinessClient) UpdateOne(b *Business) *BusinessUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BusinessClient) UpdateOneID ¶
func (c *BusinessClient) UpdateOneID(id uuid.UUID) *BusinessUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BusinessClient) Use ¶
func (c *BusinessClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `business.Hooks(f(g(h())))`.
type BusinessConnection ¶
type BusinessConnection struct { Edges []*BusinessEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
BusinessConnection is the connection containing edges to Business.
type BusinessCreate ¶
type BusinessCreate struct {
// contains filtered or unexported fields
}
BusinessCreate is the builder for creating a Business entity.
func (*BusinessCreate) AddAddressIDs ¶
func (bc *BusinessCreate) AddAddressIDs(ids ...uuid.UUID) *BusinessCreate
AddAddressIDs adds the "addresses" edge to the Address entity by IDs.
func (*BusinessCreate) AddAddresses ¶
func (bc *BusinessCreate) AddAddresses(a ...*Address) *BusinessCreate
AddAddresses adds the "addresses" edges to the Address entity.
func (*BusinessCreate) AddOperatorIDs ¶
func (bc *BusinessCreate) AddOperatorIDs(ids ...uuid.UUID) *BusinessCreate
AddOperatorIDs adds the "operators" edge to the Operator entity by IDs.
func (*BusinessCreate) AddOperators ¶
func (bc *BusinessCreate) AddOperators(o ...*Operator) *BusinessCreate
AddOperators adds the "operators" edges to the Operator entity.
func (*BusinessCreate) AddTagIDs ¶
func (bc *BusinessCreate) AddTagIDs(ids ...uuid.UUID) *BusinessCreate
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*BusinessCreate) AddTags ¶
func (bc *BusinessCreate) AddTags(t ...*Tag) *BusinessCreate
AddTags adds the "tags" edges to the Tag entity.
func (*BusinessCreate) AddUserIDs ¶
func (bc *BusinessCreate) AddUserIDs(ids ...uuid.UUID) *BusinessCreate
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*BusinessCreate) AddUsers ¶
func (bc *BusinessCreate) AddUsers(u ...*User) *BusinessCreate
AddUsers adds the "users" edges to the User entity.
func (*BusinessCreate) Exec ¶
func (bc *BusinessCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BusinessCreate) ExecX ¶
func (bc *BusinessCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BusinessCreate) Mutation ¶
func (bc *BusinessCreate) Mutation() *BusinessMutation
Mutation returns the BusinessMutation object of the builder.
func (*BusinessCreate) Save ¶
func (bc *BusinessCreate) Save(ctx context.Context) (*Business, error)
Save creates the Business in the database.
func (*BusinessCreate) SaveX ¶
func (bc *BusinessCreate) SaveX(ctx context.Context) *Business
SaveX calls Save and panics if Save returns an error.
func (*BusinessCreate) SetActive ¶
func (bc *BusinessCreate) SetActive(b bool) *BusinessCreate
SetActive sets the "active" field.
func (*BusinessCreate) SetAlias ¶
func (bc *BusinessCreate) SetAlias(s string) *BusinessCreate
SetAlias sets the "alias" field.
func (*BusinessCreate) SetComment ¶
func (bc *BusinessCreate) SetComment(s string) *BusinessCreate
SetComment sets the "comment" field.
func (*BusinessCreate) SetCreatedAt ¶
func (bc *BusinessCreate) SetCreatedAt(t time.Time) *BusinessCreate
SetCreatedAt sets the "created_at" field.
func (*BusinessCreate) SetDeletedAt ¶
func (bc *BusinessCreate) SetDeletedAt(t time.Time) *BusinessCreate
SetDeletedAt sets the "deleted_at" field.
func (*BusinessCreate) SetEmail ¶
func (bc *BusinessCreate) SetEmail(s string) *BusinessCreate
SetEmail sets the "email" field.
func (*BusinessCreate) SetID ¶
func (bc *BusinessCreate) SetID(u uuid.UUID) *BusinessCreate
SetID sets the "id" field.
func (*BusinessCreate) SetInput ¶
func (c *BusinessCreate) SetInput(i CreateBusinessInput) *BusinessCreate
SetInput applies the change-set in the CreateBusinessInput on the BusinessCreate builder.
func (*BusinessCreate) SetName1 ¶
func (bc *BusinessCreate) SetName1(s string) *BusinessCreate
SetName1 sets the "name1" field.
func (*BusinessCreate) SetName2 ¶
func (bc *BusinessCreate) SetName2(s string) *BusinessCreate
SetName2 sets the "name2" field.
func (*BusinessCreate) SetNillableActive ¶
func (bc *BusinessCreate) SetNillableActive(b *bool) *BusinessCreate
SetNillableActive sets the "active" field if the given value is not nil.
func (*BusinessCreate) SetNillableComment ¶
func (bc *BusinessCreate) SetNillableComment(s *string) *BusinessCreate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*BusinessCreate) SetNillableCreatedAt ¶
func (bc *BusinessCreate) SetNillableCreatedAt(t *time.Time) *BusinessCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BusinessCreate) SetNillableDeletedAt ¶
func (bc *BusinessCreate) SetNillableDeletedAt(t *time.Time) *BusinessCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BusinessCreate) SetNillableEmail ¶
func (bc *BusinessCreate) SetNillableEmail(s *string) *BusinessCreate
SetNillableEmail sets the "email" field if the given value is not nil.
func (*BusinessCreate) SetNillableID ¶
func (bc *BusinessCreate) SetNillableID(u *uuid.UUID) *BusinessCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*BusinessCreate) SetNillableName2 ¶
func (bc *BusinessCreate) SetNillableName2(s *string) *BusinessCreate
SetNillableName2 sets the "name2" field if the given value is not nil.
func (*BusinessCreate) SetNillableTelephone ¶
func (bc *BusinessCreate) SetNillableTelephone(s *string) *BusinessCreate
SetNillableTelephone sets the "telephone" field if the given value is not nil.
func (*BusinessCreate) SetNillableUpdatedAt ¶
func (bc *BusinessCreate) SetNillableUpdatedAt(t *time.Time) *BusinessCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BusinessCreate) SetNillableWebsite ¶
func (bc *BusinessCreate) SetNillableWebsite(s *string) *BusinessCreate
SetNillableWebsite sets the "website" field if the given value is not nil.
func (*BusinessCreate) SetTelephone ¶
func (bc *BusinessCreate) SetTelephone(s string) *BusinessCreate
SetTelephone sets the "telephone" field.
func (*BusinessCreate) SetUpdatedAt ¶
func (bc *BusinessCreate) SetUpdatedAt(t time.Time) *BusinessCreate
SetUpdatedAt sets the "updated_at" field.
func (*BusinessCreate) SetWebsite ¶
func (bc *BusinessCreate) SetWebsite(s string) *BusinessCreate
SetWebsite sets the "website" field.
type BusinessCreateBulk ¶
type BusinessCreateBulk struct {
// contains filtered or unexported fields
}
BusinessCreateBulk is the builder for creating many Business entities in bulk.
func (*BusinessCreateBulk) Exec ¶
func (bcb *BusinessCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BusinessCreateBulk) ExecX ¶
func (bcb *BusinessCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type BusinessDelete ¶
type BusinessDelete struct {
// contains filtered or unexported fields
}
BusinessDelete is the builder for deleting a Business entity.
func (*BusinessDelete) Exec ¶
func (bd *BusinessDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BusinessDelete) ExecX ¶
func (bd *BusinessDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BusinessDelete) Where ¶
func (bd *BusinessDelete) Where(ps ...predicate.Business) *BusinessDelete
Where appends a list predicates to the BusinessDelete builder.
type BusinessDeleteOne ¶
type BusinessDeleteOne struct {
// contains filtered or unexported fields
}
BusinessDeleteOne is the builder for deleting a single Business entity.
func (*BusinessDeleteOne) Exec ¶
func (bdo *BusinessDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BusinessDeleteOne) ExecX ¶
func (bdo *BusinessDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BusinessDeleteOne) Where ¶
func (bdo *BusinessDeleteOne) Where(ps ...predicate.Business) *BusinessDeleteOne
Where appends a list predicates to the BusinessDelete builder.
type BusinessEdge ¶
BusinessEdge is the edge representation of Business.
type BusinessEdges ¶
type BusinessEdges struct { // Addresses holds the value of the addresses edge. Addresses []*Address `json:"addresses,omitempty"` // Tags holds the value of the tags edge. Tags []*Tag `json:"tags,omitempty"` // Users holds the value of the users edge. Users []*User `json:"users,omitempty"` // Operators holds the value of the operators edge. Operators []*Operator `json:"operators,omitempty"` // contains filtered or unexported fields }
BusinessEdges holds the relations/edges for other nodes in the graph.
func (BusinessEdges) AddressesOrErr ¶
func (e BusinessEdges) AddressesOrErr() ([]*Address, error)
AddressesOrErr returns the Addresses value or an error if the edge was not loaded in eager-loading.
func (BusinessEdges) OperatorsOrErr ¶
func (e BusinessEdges) OperatorsOrErr() ([]*Operator, error)
OperatorsOrErr returns the Operators value or an error if the edge was not loaded in eager-loading.
func (BusinessEdges) TagsOrErr ¶
func (e BusinessEdges) TagsOrErr() ([]*Tag, error)
TagsOrErr returns the Tags value or an error if the edge was not loaded in eager-loading.
func (BusinessEdges) UsersOrErr ¶
func (e BusinessEdges) UsersOrErr() ([]*User, error)
UsersOrErr returns the Users value or an error if the edge was not loaded in eager-loading.
type BusinessGroupBy ¶
type BusinessGroupBy struct {
// contains filtered or unexported fields
}
BusinessGroupBy is the group-by builder for Business entities.
func (*BusinessGroupBy) Aggregate ¶
func (bgb *BusinessGroupBy) Aggregate(fns ...AggregateFunc) *BusinessGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BusinessGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BusinessGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BusinessGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BusinessGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BusinessGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BusinessGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BusinessGroupBy) Scan ¶
func (bgb *BusinessGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BusinessGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BusinessMutation ¶
type BusinessMutation struct {
// contains filtered or unexported fields
}
BusinessMutation represents an operation that mutates the Business nodes in the graph.
func (*BusinessMutation) Active ¶
func (m *BusinessMutation) Active() (r bool, exists bool)
Active returns the value of the "active" field in the mutation.
func (*BusinessMutation) AddAddressIDs ¶
func (m *BusinessMutation) AddAddressIDs(ids ...uuid.UUID)
AddAddressIDs adds the "addresses" edge to the Address entity by ids.
func (*BusinessMutation) AddField ¶
func (m *BusinessMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*BusinessMutation) AddOperatorIDs ¶
func (m *BusinessMutation) AddOperatorIDs(ids ...uuid.UUID)
AddOperatorIDs adds the "operators" edge to the Operator entity by ids.
func (*BusinessMutation) AddTagIDs ¶
func (m *BusinessMutation) AddTagIDs(ids ...uuid.UUID)
AddTagIDs adds the "tags" edge to the Tag entity by ids.
func (*BusinessMutation) AddUserIDs ¶
func (m *BusinessMutation) AddUserIDs(ids ...uuid.UUID)
AddUserIDs adds the "users" edge to the User entity by ids.
func (*BusinessMutation) AddedEdges ¶
func (m *BusinessMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BusinessMutation) AddedField ¶
func (m *BusinessMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*BusinessMutation) AddedFields ¶
func (m *BusinessMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BusinessMutation) AddedIDs ¶
func (m *BusinessMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BusinessMutation) AddressesCleared ¶
func (m *BusinessMutation) AddressesCleared() bool
AddressesCleared reports if the "addresses" edge to the Address entity was cleared.
func (*BusinessMutation) AddressesIDs ¶
func (m *BusinessMutation) AddressesIDs() (ids []uuid.UUID)
AddressesIDs returns the "addresses" edge IDs in the mutation.
func (*BusinessMutation) Alias ¶
func (m *BusinessMutation) Alias() (r string, exists bool)
Alias returns the value of the "alias" field in the mutation.
func (*BusinessMutation) ClearAddresses ¶
func (m *BusinessMutation) ClearAddresses()
ClearAddresses clears the "addresses" edge to the Address entity.
func (*BusinessMutation) ClearComment ¶
func (m *BusinessMutation) ClearComment()
ClearComment clears the value of the "comment" field.
func (*BusinessMutation) ClearDeletedAt ¶
func (m *BusinessMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BusinessMutation) ClearEdge ¶
func (m *BusinessMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*BusinessMutation) ClearEmail ¶
func (m *BusinessMutation) ClearEmail()
ClearEmail clears the value of the "email" field.
func (*BusinessMutation) ClearField ¶
func (m *BusinessMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*BusinessMutation) ClearName2 ¶
func (m *BusinessMutation) ClearName2()
ClearName2 clears the value of the "name2" field.
func (*BusinessMutation) ClearOperators ¶
func (m *BusinessMutation) ClearOperators()
ClearOperators clears the "operators" edge to the Operator entity.
func (*BusinessMutation) ClearTags ¶
func (m *BusinessMutation) ClearTags()
ClearTags clears the "tags" edge to the Tag entity.
func (*BusinessMutation) ClearTelephone ¶
func (m *BusinessMutation) ClearTelephone()
ClearTelephone clears the value of the "telephone" field.
func (*BusinessMutation) ClearUsers ¶
func (m *BusinessMutation) ClearUsers()
ClearUsers clears the "users" edge to the User entity.
func (*BusinessMutation) ClearWebsite ¶
func (m *BusinessMutation) ClearWebsite()
ClearWebsite clears the value of the "website" field.
func (*BusinessMutation) ClearedEdges ¶
func (m *BusinessMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BusinessMutation) ClearedFields ¶
func (m *BusinessMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BusinessMutation) Client ¶
func (m BusinessMutation) 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 (*BusinessMutation) Comment ¶
func (m *BusinessMutation) Comment() (r string, exists bool)
Comment returns the value of the "comment" field in the mutation.
func (*BusinessMutation) CommentCleared ¶
func (m *BusinessMutation) CommentCleared() bool
CommentCleared returns if the "comment" field was cleared in this mutation.
func (*BusinessMutation) CreatedAt ¶
func (m *BusinessMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BusinessMutation) DeletedAt ¶
func (m *BusinessMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BusinessMutation) DeletedAtCleared ¶
func (m *BusinessMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BusinessMutation) EdgeCleared ¶
func (m *BusinessMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BusinessMutation) Email ¶
func (m *BusinessMutation) Email() (r string, exists bool)
Email returns the value of the "email" field in the mutation.
func (*BusinessMutation) EmailCleared ¶
func (m *BusinessMutation) EmailCleared() bool
EmailCleared returns if the "email" field was cleared in this mutation.
func (*BusinessMutation) Field ¶
func (m *BusinessMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*BusinessMutation) FieldCleared ¶
func (m *BusinessMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BusinessMutation) Fields ¶
func (m *BusinessMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*BusinessMutation) ID ¶
func (m *BusinessMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*BusinessMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*BusinessMutation) Name1 ¶
func (m *BusinessMutation) Name1() (r string, exists bool)
Name1 returns the value of the "name1" field in the mutation.
func (*BusinessMutation) Name2 ¶
func (m *BusinessMutation) Name2() (r string, exists bool)
Name2 returns the value of the "name2" field in the mutation.
func (*BusinessMutation) Name2Cleared ¶
func (m *BusinessMutation) Name2Cleared() bool
Name2Cleared returns if the "name2" field was cleared in this mutation.
func (*BusinessMutation) OldActive ¶
func (m *BusinessMutation) OldActive(ctx context.Context) (v bool, err error)
OldActive returns the old "active" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldAlias ¶
func (m *BusinessMutation) OldAlias(ctx context.Context) (v string, err error)
OldAlias returns the old "alias" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldComment ¶
func (m *BusinessMutation) OldComment(ctx context.Context) (v string, err error)
OldComment returns the old "comment" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldEmail ¶
func (m *BusinessMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "email" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*BusinessMutation) OldName1 ¶
func (m *BusinessMutation) OldName1(ctx context.Context) (v string, err error)
OldName1 returns the old "name1" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldName2 ¶
func (m *BusinessMutation) OldName2(ctx context.Context) (v string, err error)
OldName2 returns the old "name2" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldTelephone ¶
func (m *BusinessMutation) OldTelephone(ctx context.Context) (v string, err error)
OldTelephone returns the old "telephone" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OldWebsite ¶
func (m *BusinessMutation) OldWebsite(ctx context.Context) (v string, err error)
OldWebsite returns the old "website" field's value of the Business entity. If the Business object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BusinessMutation) OperatorsCleared ¶
func (m *BusinessMutation) OperatorsCleared() bool
OperatorsCleared reports if the "operators" edge to the Operator entity was cleared.
func (*BusinessMutation) OperatorsIDs ¶
func (m *BusinessMutation) OperatorsIDs() (ids []uuid.UUID)
OperatorsIDs returns the "operators" edge IDs in the mutation.
func (*BusinessMutation) RemoveAddressIDs ¶
func (m *BusinessMutation) RemoveAddressIDs(ids ...uuid.UUID)
RemoveAddressIDs removes the "addresses" edge to the Address entity by IDs.
func (*BusinessMutation) RemoveOperatorIDs ¶
func (m *BusinessMutation) RemoveOperatorIDs(ids ...uuid.UUID)
RemoveOperatorIDs removes the "operators" edge to the Operator entity by IDs.
func (*BusinessMutation) RemoveTagIDs ¶
func (m *BusinessMutation) RemoveTagIDs(ids ...uuid.UUID)
RemoveTagIDs removes the "tags" edge to the Tag entity by IDs.
func (*BusinessMutation) RemoveUserIDs ¶
func (m *BusinessMutation) RemoveUserIDs(ids ...uuid.UUID)
RemoveUserIDs removes the "users" edge to the User entity by IDs.
func (*BusinessMutation) RemovedAddressesIDs ¶
func (m *BusinessMutation) RemovedAddressesIDs() (ids []uuid.UUID)
RemovedAddresses returns the removed IDs of the "addresses" edge to the Address entity.
func (*BusinessMutation) RemovedEdges ¶
func (m *BusinessMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BusinessMutation) RemovedIDs ¶
func (m *BusinessMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*BusinessMutation) RemovedOperatorsIDs ¶
func (m *BusinessMutation) RemovedOperatorsIDs() (ids []uuid.UUID)
RemovedOperators returns the removed IDs of the "operators" edge to the Operator entity.
func (*BusinessMutation) RemovedTagsIDs ¶
func (m *BusinessMutation) RemovedTagsIDs() (ids []uuid.UUID)
RemovedTags returns the removed IDs of the "tags" edge to the Tag entity.
func (*BusinessMutation) RemovedUsersIDs ¶
func (m *BusinessMutation) RemovedUsersIDs() (ids []uuid.UUID)
RemovedUsers returns the removed IDs of the "users" edge to the User entity.
func (*BusinessMutation) ResetActive ¶
func (m *BusinessMutation) ResetActive()
ResetActive resets all changes to the "active" field.
func (*BusinessMutation) ResetAddresses ¶
func (m *BusinessMutation) ResetAddresses()
ResetAddresses resets all changes to the "addresses" edge.
func (*BusinessMutation) ResetAlias ¶
func (m *BusinessMutation) ResetAlias()
ResetAlias resets all changes to the "alias" field.
func (*BusinessMutation) ResetComment ¶
func (m *BusinessMutation) ResetComment()
ResetComment resets all changes to the "comment" field.
func (*BusinessMutation) ResetCreatedAt ¶
func (m *BusinessMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BusinessMutation) ResetDeletedAt ¶
func (m *BusinessMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BusinessMutation) ResetEdge ¶
func (m *BusinessMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*BusinessMutation) ResetEmail ¶
func (m *BusinessMutation) ResetEmail()
ResetEmail resets all changes to the "email" field.
func (*BusinessMutation) ResetField ¶
func (m *BusinessMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*BusinessMutation) ResetName1 ¶
func (m *BusinessMutation) ResetName1()
ResetName1 resets all changes to the "name1" field.
func (*BusinessMutation) ResetName2 ¶
func (m *BusinessMutation) ResetName2()
ResetName2 resets all changes to the "name2" field.
func (*BusinessMutation) ResetOperators ¶
func (m *BusinessMutation) ResetOperators()
ResetOperators resets all changes to the "operators" edge.
func (*BusinessMutation) ResetTags ¶
func (m *BusinessMutation) ResetTags()
ResetTags resets all changes to the "tags" edge.
func (*BusinessMutation) ResetTelephone ¶
func (m *BusinessMutation) ResetTelephone()
ResetTelephone resets all changes to the "telephone" field.
func (*BusinessMutation) ResetUpdatedAt ¶
func (m *BusinessMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BusinessMutation) ResetUsers ¶
func (m *BusinessMutation) ResetUsers()
ResetUsers resets all changes to the "users" edge.
func (*BusinessMutation) ResetWebsite ¶
func (m *BusinessMutation) ResetWebsite()
ResetWebsite resets all changes to the "website" field.
func (*BusinessMutation) SetActive ¶
func (m *BusinessMutation) SetActive(b bool)
SetActive sets the "active" field.
func (*BusinessMutation) SetAlias ¶
func (m *BusinessMutation) SetAlias(s string)
SetAlias sets the "alias" field.
func (*BusinessMutation) SetComment ¶
func (m *BusinessMutation) SetComment(s string)
SetComment sets the "comment" field.
func (*BusinessMutation) SetCreatedAt ¶
func (m *BusinessMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BusinessMutation) SetDeletedAt ¶
func (m *BusinessMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BusinessMutation) SetEmail ¶
func (m *BusinessMutation) SetEmail(s string)
SetEmail sets the "email" field.
func (*BusinessMutation) SetField ¶
func (m *BusinessMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*BusinessMutation) SetID ¶
func (m *BusinessMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Business entities.
func (*BusinessMutation) SetName1 ¶
func (m *BusinessMutation) SetName1(s string)
SetName1 sets the "name1" field.
func (*BusinessMutation) SetName2 ¶
func (m *BusinessMutation) SetName2(s string)
SetName2 sets the "name2" field.
func (*BusinessMutation) SetOp ¶
func (m *BusinessMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BusinessMutation) SetTelephone ¶
func (m *BusinessMutation) SetTelephone(s string)
SetTelephone sets the "telephone" field.
func (*BusinessMutation) SetUpdatedAt ¶
func (m *BusinessMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BusinessMutation) SetWebsite ¶
func (m *BusinessMutation) SetWebsite(s string)
SetWebsite sets the "website" field.
func (*BusinessMutation) TagsCleared ¶
func (m *BusinessMutation) TagsCleared() bool
TagsCleared reports if the "tags" edge to the Tag entity was cleared.
func (*BusinessMutation) TagsIDs ¶
func (m *BusinessMutation) TagsIDs() (ids []uuid.UUID)
TagsIDs returns the "tags" edge IDs in the mutation.
func (*BusinessMutation) Telephone ¶
func (m *BusinessMutation) Telephone() (r string, exists bool)
Telephone returns the value of the "telephone" field in the mutation.
func (*BusinessMutation) TelephoneCleared ¶
func (m *BusinessMutation) TelephoneCleared() bool
TelephoneCleared returns if the "telephone" field was cleared in this mutation.
func (BusinessMutation) Tx ¶
func (m BusinessMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BusinessMutation) Type ¶
func (m *BusinessMutation) Type() string
Type returns the node type of this mutation (Business).
func (*BusinessMutation) UpdatedAt ¶
func (m *BusinessMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BusinessMutation) UsersCleared ¶
func (m *BusinessMutation) UsersCleared() bool
UsersCleared reports if the "users" edge to the User entity was cleared.
func (*BusinessMutation) UsersIDs ¶
func (m *BusinessMutation) UsersIDs() (ids []uuid.UUID)
UsersIDs returns the "users" edge IDs in the mutation.
func (*BusinessMutation) Website ¶
func (m *BusinessMutation) Website() (r string, exists bool)
Website returns the value of the "website" field in the mutation.
func (*BusinessMutation) WebsiteCleared ¶
func (m *BusinessMutation) WebsiteCleared() bool
WebsiteCleared returns if the "website" field was cleared in this mutation.
func (*BusinessMutation) Where ¶
func (m *BusinessMutation) Where(ps ...predicate.Business)
Where appends a list predicates to the BusinessMutation builder.
func (*BusinessMutation) WhereP ¶
func (m *BusinessMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BusinessMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BusinessOrder ¶
type BusinessOrder struct { Direction OrderDirection `json:"direction"` Field *BusinessOrderField `json:"field"` }
BusinessOrder defines the ordering of Business.
type BusinessOrderField ¶
type BusinessOrderField struct { // Value extracts the ordering value from the given Business. Value func(*Business) (ent.Value, error) // contains filtered or unexported fields }
BusinessOrderField defines the ordering field of Business.
func (BusinessOrderField) MarshalGQL ¶
func (f BusinessOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (BusinessOrderField) String ¶
func (f BusinessOrderField) String() string
String implement fmt.Stringer interface.
func (*BusinessOrderField) UnmarshalGQL ¶
func (f *BusinessOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type BusinessPaginateOption ¶
type BusinessPaginateOption func(*businessPager) error
BusinessPaginateOption enables pagination customization.
func WithBusinessFilter ¶
func WithBusinessFilter(filter func(*BusinessQuery) (*BusinessQuery, error)) BusinessPaginateOption
WithBusinessFilter configures pagination filter.
func WithBusinessOrder ¶
func WithBusinessOrder(order []*BusinessOrder) BusinessPaginateOption
WithBusinessOrder configures pagination ordering.
type BusinessQuery ¶
type BusinessQuery struct {
// contains filtered or unexported fields
}
BusinessQuery is the builder for querying Business entities.
func (*BusinessQuery) Aggregate ¶
func (bq *BusinessQuery) Aggregate(fns ...AggregateFunc) *BusinessSelect
Aggregate returns a BusinessSelect configured with the given aggregations.
func (*BusinessQuery) All ¶
func (bq *BusinessQuery) All(ctx context.Context) ([]*Business, error)
All executes the query and returns a list of Businesses.
func (*BusinessQuery) AllX ¶
func (bq *BusinessQuery) AllX(ctx context.Context) []*Business
AllX is like All, but panics if an error occurs.
func (*BusinessQuery) Clone ¶
func (bq *BusinessQuery) Clone() *BusinessQuery
Clone returns a duplicate of the BusinessQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BusinessQuery) CollectFields ¶
func (b *BusinessQuery) CollectFields(ctx context.Context, satisfies ...string) (*BusinessQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*BusinessQuery) Count ¶
func (bq *BusinessQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BusinessQuery) CountX ¶
func (bq *BusinessQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BusinessQuery) Exist ¶
func (bq *BusinessQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BusinessQuery) ExistX ¶
func (bq *BusinessQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BusinessQuery) First ¶
func (bq *BusinessQuery) First(ctx context.Context) (*Business, error)
First returns the first Business entity from the query. Returns a *NotFoundError when no Business was found.
func (*BusinessQuery) FirstID ¶
FirstID returns the first Business ID from the query. Returns a *NotFoundError when no Business ID was found.
func (*BusinessQuery) FirstIDX ¶
func (bq *BusinessQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*BusinessQuery) FirstX ¶
func (bq *BusinessQuery) FirstX(ctx context.Context) *Business
FirstX is like First, but panics if an error occurs.
func (*BusinessQuery) GroupBy ¶
func (bq *BusinessQuery) GroupBy(field string, fields ...string) *BusinessGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Business.Query(). GroupBy(business.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*BusinessQuery) IDsX ¶
func (bq *BusinessQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*BusinessQuery) Limit ¶
func (bq *BusinessQuery) Limit(limit int) *BusinessQuery
Limit the number of records to be returned by this query.
func (*BusinessQuery) Offset ¶
func (bq *BusinessQuery) Offset(offset int) *BusinessQuery
Offset to start from.
func (*BusinessQuery) Only ¶
func (bq *BusinessQuery) Only(ctx context.Context) (*Business, error)
Only returns a single Business entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Business entity is found. Returns a *NotFoundError when no Business entities are found.
func (*BusinessQuery) OnlyID ¶
OnlyID is like Only, but returns the only Business ID in the query. Returns a *NotSingularError when more than one Business ID is found. Returns a *NotFoundError when no entities are found.
func (*BusinessQuery) OnlyIDX ¶
func (bq *BusinessQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BusinessQuery) OnlyX ¶
func (bq *BusinessQuery) OnlyX(ctx context.Context) *Business
OnlyX is like Only, but panics if an error occurs.
func (*BusinessQuery) Order ¶
func (bq *BusinessQuery) Order(o ...business.OrderOption) *BusinessQuery
Order specifies how the records should be ordered.
func (*BusinessQuery) Paginate ¶
func (b *BusinessQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...BusinessPaginateOption, ) (*BusinessConnection, error)
Paginate executes the query and returns a relay based cursor connection to Business.
func (*BusinessQuery) QueryAddresses ¶
func (bq *BusinessQuery) QueryAddresses() *AddressQuery
QueryAddresses chains the current query on the "addresses" edge.
func (*BusinessQuery) QueryOperators ¶
func (bq *BusinessQuery) QueryOperators() *OperatorQuery
QueryOperators chains the current query on the "operators" edge.
func (*BusinessQuery) QueryTags ¶
func (bq *BusinessQuery) QueryTags() *TagQuery
QueryTags chains the current query on the "tags" edge.
func (*BusinessQuery) QueryUsers ¶
func (bq *BusinessQuery) QueryUsers() *UserQuery
QueryUsers chains the current query on the "users" edge.
func (*BusinessQuery) Select ¶
func (bq *BusinessQuery) Select(fields ...string) *BusinessSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Business.Query(). Select(business.FieldCreatedAt). Scan(ctx, &v)
func (*BusinessQuery) Unique ¶
func (bq *BusinessQuery) Unique(unique bool) *BusinessQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*BusinessQuery) Where ¶
func (bq *BusinessQuery) Where(ps ...predicate.Business) *BusinessQuery
Where adds a new predicate for the BusinessQuery builder.
func (*BusinessQuery) WithAddresses ¶
func (bq *BusinessQuery) WithAddresses(opts ...func(*AddressQuery)) *BusinessQuery
WithAddresses tells the query-builder to eager-load the nodes that are connected to the "addresses" edge. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithNamedAddresses ¶
func (bq *BusinessQuery) WithNamedAddresses(name string, opts ...func(*AddressQuery)) *BusinessQuery
WithNamedAddresses tells the query-builder to eager-load the nodes that are connected to the "addresses" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithNamedOperators ¶
func (bq *BusinessQuery) WithNamedOperators(name string, opts ...func(*OperatorQuery)) *BusinessQuery
WithNamedOperators tells the query-builder to eager-load the nodes that are connected to the "operators" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithNamedTags ¶
func (bq *BusinessQuery) WithNamedTags(name string, opts ...func(*TagQuery)) *BusinessQuery
WithNamedTags tells the query-builder to eager-load the nodes that are connected to the "tags" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithNamedUsers ¶
func (bq *BusinessQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *BusinessQuery
WithNamedUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithOperators ¶
func (bq *BusinessQuery) WithOperators(opts ...func(*OperatorQuery)) *BusinessQuery
WithOperators tells the query-builder to eager-load the nodes that are connected to the "operators" edge. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithTags ¶
func (bq *BusinessQuery) WithTags(opts ...func(*TagQuery)) *BusinessQuery
WithTags tells the query-builder to eager-load the nodes that are connected to the "tags" edge. The optional arguments are used to configure the query builder of the edge.
func (*BusinessQuery) WithUsers ¶
func (bq *BusinessQuery) WithUsers(opts ...func(*UserQuery)) *BusinessQuery
WithUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge. The optional arguments are used to configure the query builder of the edge.
type BusinessSelect ¶
type BusinessSelect struct { *BusinessQuery // contains filtered or unexported fields }
BusinessSelect is the builder for selecting fields of Business entities.
func (*BusinessSelect) Aggregate ¶
func (bs *BusinessSelect) Aggregate(fns ...AggregateFunc) *BusinessSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BusinessSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BusinessSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BusinessSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BusinessSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BusinessSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BusinessSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BusinessSelect) Scan ¶
func (bs *BusinessSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BusinessSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BusinessUpdate ¶
type BusinessUpdate struct {
// contains filtered or unexported fields
}
BusinessUpdate is the builder for updating Business entities.
func (*BusinessUpdate) AddAddressIDs ¶
func (bu *BusinessUpdate) AddAddressIDs(ids ...uuid.UUID) *BusinessUpdate
AddAddressIDs adds the "addresses" edge to the Address entity by IDs.
func (*BusinessUpdate) AddAddresses ¶
func (bu *BusinessUpdate) AddAddresses(a ...*Address) *BusinessUpdate
AddAddresses adds the "addresses" edges to the Address entity.
func (*BusinessUpdate) AddOperatorIDs ¶
func (bu *BusinessUpdate) AddOperatorIDs(ids ...uuid.UUID) *BusinessUpdate
AddOperatorIDs adds the "operators" edge to the Operator entity by IDs.
func (*BusinessUpdate) AddOperators ¶
func (bu *BusinessUpdate) AddOperators(o ...*Operator) *BusinessUpdate
AddOperators adds the "operators" edges to the Operator entity.
func (*BusinessUpdate) AddTagIDs ¶
func (bu *BusinessUpdate) AddTagIDs(ids ...uuid.UUID) *BusinessUpdate
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*BusinessUpdate) AddTags ¶
func (bu *BusinessUpdate) AddTags(t ...*Tag) *BusinessUpdate
AddTags adds the "tags" edges to the Tag entity.
func (*BusinessUpdate) AddUserIDs ¶
func (bu *BusinessUpdate) AddUserIDs(ids ...uuid.UUID) *BusinessUpdate
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*BusinessUpdate) AddUsers ¶
func (bu *BusinessUpdate) AddUsers(u ...*User) *BusinessUpdate
AddUsers adds the "users" edges to the User entity.
func (*BusinessUpdate) ClearAddresses ¶
func (bu *BusinessUpdate) ClearAddresses() *BusinessUpdate
ClearAddresses clears all "addresses" edges to the Address entity.
func (*BusinessUpdate) ClearComment ¶
func (bu *BusinessUpdate) ClearComment() *BusinessUpdate
ClearComment clears the value of the "comment" field.
func (*BusinessUpdate) ClearDeletedAt ¶
func (bu *BusinessUpdate) ClearDeletedAt() *BusinessUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BusinessUpdate) ClearEmail ¶
func (bu *BusinessUpdate) ClearEmail() *BusinessUpdate
ClearEmail clears the value of the "email" field.
func (*BusinessUpdate) ClearName2 ¶
func (bu *BusinessUpdate) ClearName2() *BusinessUpdate
ClearName2 clears the value of the "name2" field.
func (*BusinessUpdate) ClearOperators ¶
func (bu *BusinessUpdate) ClearOperators() *BusinessUpdate
ClearOperators clears all "operators" edges to the Operator entity.
func (*BusinessUpdate) ClearTags ¶
func (bu *BusinessUpdate) ClearTags() *BusinessUpdate
ClearTags clears all "tags" edges to the Tag entity.
func (*BusinessUpdate) ClearTelephone ¶
func (bu *BusinessUpdate) ClearTelephone() *BusinessUpdate
ClearTelephone clears the value of the "telephone" field.
func (*BusinessUpdate) ClearUsers ¶
func (bu *BusinessUpdate) ClearUsers() *BusinessUpdate
ClearUsers clears all "users" edges to the User entity.
func (*BusinessUpdate) ClearWebsite ¶
func (bu *BusinessUpdate) ClearWebsite() *BusinessUpdate
ClearWebsite clears the value of the "website" field.
func (*BusinessUpdate) Exec ¶
func (bu *BusinessUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BusinessUpdate) ExecX ¶
func (bu *BusinessUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BusinessUpdate) Mutation ¶
func (bu *BusinessUpdate) Mutation() *BusinessMutation
Mutation returns the BusinessMutation object of the builder.
func (*BusinessUpdate) RemoveAddressIDs ¶
func (bu *BusinessUpdate) RemoveAddressIDs(ids ...uuid.UUID) *BusinessUpdate
RemoveAddressIDs removes the "addresses" edge to Address entities by IDs.
func (*BusinessUpdate) RemoveAddresses ¶
func (bu *BusinessUpdate) RemoveAddresses(a ...*Address) *BusinessUpdate
RemoveAddresses removes "addresses" edges to Address entities.
func (*BusinessUpdate) RemoveOperatorIDs ¶
func (bu *BusinessUpdate) RemoveOperatorIDs(ids ...uuid.UUID) *BusinessUpdate
RemoveOperatorIDs removes the "operators" edge to Operator entities by IDs.
func (*BusinessUpdate) RemoveOperators ¶
func (bu *BusinessUpdate) RemoveOperators(o ...*Operator) *BusinessUpdate
RemoveOperators removes "operators" edges to Operator entities.
func (*BusinessUpdate) RemoveTagIDs ¶
func (bu *BusinessUpdate) RemoveTagIDs(ids ...uuid.UUID) *BusinessUpdate
RemoveTagIDs removes the "tags" edge to Tag entities by IDs.
func (*BusinessUpdate) RemoveTags ¶
func (bu *BusinessUpdate) RemoveTags(t ...*Tag) *BusinessUpdate
RemoveTags removes "tags" edges to Tag entities.
func (*BusinessUpdate) RemoveUserIDs ¶
func (bu *BusinessUpdate) RemoveUserIDs(ids ...uuid.UUID) *BusinessUpdate
RemoveUserIDs removes the "users" edge to User entities by IDs.
func (*BusinessUpdate) RemoveUsers ¶
func (bu *BusinessUpdate) RemoveUsers(u ...*User) *BusinessUpdate
RemoveUsers removes "users" edges to User entities.
func (*BusinessUpdate) Save ¶
func (bu *BusinessUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BusinessUpdate) SaveX ¶
func (bu *BusinessUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BusinessUpdate) SetActive ¶
func (bu *BusinessUpdate) SetActive(b bool) *BusinessUpdate
SetActive sets the "active" field.
func (*BusinessUpdate) SetAlias ¶
func (bu *BusinessUpdate) SetAlias(s string) *BusinessUpdate
SetAlias sets the "alias" field.
func (*BusinessUpdate) SetComment ¶
func (bu *BusinessUpdate) SetComment(s string) *BusinessUpdate
SetComment sets the "comment" field.
func (*BusinessUpdate) SetDeletedAt ¶
func (bu *BusinessUpdate) SetDeletedAt(t time.Time) *BusinessUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BusinessUpdate) SetEmail ¶
func (bu *BusinessUpdate) SetEmail(s string) *BusinessUpdate
SetEmail sets the "email" field.
func (*BusinessUpdate) SetInput ¶ added in v0.0.8
func (c *BusinessUpdate) SetInput(i UpdateBusinessInput) *BusinessUpdate
SetInput applies the change-set in the UpdateBusinessInput on the BusinessUpdate builder.
func (*BusinessUpdate) SetName1 ¶
func (bu *BusinessUpdate) SetName1(s string) *BusinessUpdate
SetName1 sets the "name1" field.
func (*BusinessUpdate) SetName2 ¶
func (bu *BusinessUpdate) SetName2(s string) *BusinessUpdate
SetName2 sets the "name2" field.
func (*BusinessUpdate) SetNillableActive ¶
func (bu *BusinessUpdate) SetNillableActive(b *bool) *BusinessUpdate
SetNillableActive sets the "active" field if the given value is not nil.
func (*BusinessUpdate) SetNillableComment ¶
func (bu *BusinessUpdate) SetNillableComment(s *string) *BusinessUpdate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*BusinessUpdate) SetNillableDeletedAt ¶
func (bu *BusinessUpdate) SetNillableDeletedAt(t *time.Time) *BusinessUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BusinessUpdate) SetNillableEmail ¶
func (bu *BusinessUpdate) SetNillableEmail(s *string) *BusinessUpdate
SetNillableEmail sets the "email" field if the given value is not nil.
func (*BusinessUpdate) SetNillableName2 ¶
func (bu *BusinessUpdate) SetNillableName2(s *string) *BusinessUpdate
SetNillableName2 sets the "name2" field if the given value is not nil.
func (*BusinessUpdate) SetNillableTelephone ¶
func (bu *BusinessUpdate) SetNillableTelephone(s *string) *BusinessUpdate
SetNillableTelephone sets the "telephone" field if the given value is not nil.
func (*BusinessUpdate) SetNillableWebsite ¶
func (bu *BusinessUpdate) SetNillableWebsite(s *string) *BusinessUpdate
SetNillableWebsite sets the "website" field if the given value is not nil.
func (*BusinessUpdate) SetTelephone ¶
func (bu *BusinessUpdate) SetTelephone(s string) *BusinessUpdate
SetTelephone sets the "telephone" field.
func (*BusinessUpdate) SetUpdatedAt ¶
func (bu *BusinessUpdate) SetUpdatedAt(t time.Time) *BusinessUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BusinessUpdate) SetWebsite ¶
func (bu *BusinessUpdate) SetWebsite(s string) *BusinessUpdate
SetWebsite sets the "website" field.
func (*BusinessUpdate) Where ¶
func (bu *BusinessUpdate) Where(ps ...predicate.Business) *BusinessUpdate
Where appends a list predicates to the BusinessUpdate builder.
type BusinessUpdateOne ¶
type BusinessUpdateOne struct {
// contains filtered or unexported fields
}
BusinessUpdateOne is the builder for updating a single Business entity.
func (*BusinessUpdateOne) AddAddressIDs ¶
func (buo *BusinessUpdateOne) AddAddressIDs(ids ...uuid.UUID) *BusinessUpdateOne
AddAddressIDs adds the "addresses" edge to the Address entity by IDs.
func (*BusinessUpdateOne) AddAddresses ¶
func (buo *BusinessUpdateOne) AddAddresses(a ...*Address) *BusinessUpdateOne
AddAddresses adds the "addresses" edges to the Address entity.
func (*BusinessUpdateOne) AddOperatorIDs ¶
func (buo *BusinessUpdateOne) AddOperatorIDs(ids ...uuid.UUID) *BusinessUpdateOne
AddOperatorIDs adds the "operators" edge to the Operator entity by IDs.
func (*BusinessUpdateOne) AddOperators ¶
func (buo *BusinessUpdateOne) AddOperators(o ...*Operator) *BusinessUpdateOne
AddOperators adds the "operators" edges to the Operator entity.
func (*BusinessUpdateOne) AddTagIDs ¶
func (buo *BusinessUpdateOne) AddTagIDs(ids ...uuid.UUID) *BusinessUpdateOne
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*BusinessUpdateOne) AddTags ¶
func (buo *BusinessUpdateOne) AddTags(t ...*Tag) *BusinessUpdateOne
AddTags adds the "tags" edges to the Tag entity.
func (*BusinessUpdateOne) AddUserIDs ¶
func (buo *BusinessUpdateOne) AddUserIDs(ids ...uuid.UUID) *BusinessUpdateOne
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*BusinessUpdateOne) AddUsers ¶
func (buo *BusinessUpdateOne) AddUsers(u ...*User) *BusinessUpdateOne
AddUsers adds the "users" edges to the User entity.
func (*BusinessUpdateOne) ClearAddresses ¶
func (buo *BusinessUpdateOne) ClearAddresses() *BusinessUpdateOne
ClearAddresses clears all "addresses" edges to the Address entity.
func (*BusinessUpdateOne) ClearComment ¶
func (buo *BusinessUpdateOne) ClearComment() *BusinessUpdateOne
ClearComment clears the value of the "comment" field.
func (*BusinessUpdateOne) ClearDeletedAt ¶
func (buo *BusinessUpdateOne) ClearDeletedAt() *BusinessUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BusinessUpdateOne) ClearEmail ¶
func (buo *BusinessUpdateOne) ClearEmail() *BusinessUpdateOne
ClearEmail clears the value of the "email" field.
func (*BusinessUpdateOne) ClearName2 ¶
func (buo *BusinessUpdateOne) ClearName2() *BusinessUpdateOne
ClearName2 clears the value of the "name2" field.
func (*BusinessUpdateOne) ClearOperators ¶
func (buo *BusinessUpdateOne) ClearOperators() *BusinessUpdateOne
ClearOperators clears all "operators" edges to the Operator entity.
func (*BusinessUpdateOne) ClearTags ¶
func (buo *BusinessUpdateOne) ClearTags() *BusinessUpdateOne
ClearTags clears all "tags" edges to the Tag entity.
func (*BusinessUpdateOne) ClearTelephone ¶
func (buo *BusinessUpdateOne) ClearTelephone() *BusinessUpdateOne
ClearTelephone clears the value of the "telephone" field.
func (*BusinessUpdateOne) ClearUsers ¶
func (buo *BusinessUpdateOne) ClearUsers() *BusinessUpdateOne
ClearUsers clears all "users" edges to the User entity.
func (*BusinessUpdateOne) ClearWebsite ¶
func (buo *BusinessUpdateOne) ClearWebsite() *BusinessUpdateOne
ClearWebsite clears the value of the "website" field.
func (*BusinessUpdateOne) Exec ¶
func (buo *BusinessUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BusinessUpdateOne) ExecX ¶
func (buo *BusinessUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BusinessUpdateOne) Mutation ¶
func (buo *BusinessUpdateOne) Mutation() *BusinessMutation
Mutation returns the BusinessMutation object of the builder.
func (*BusinessUpdateOne) RemoveAddressIDs ¶
func (buo *BusinessUpdateOne) RemoveAddressIDs(ids ...uuid.UUID) *BusinessUpdateOne
RemoveAddressIDs removes the "addresses" edge to Address entities by IDs.
func (*BusinessUpdateOne) RemoveAddresses ¶
func (buo *BusinessUpdateOne) RemoveAddresses(a ...*Address) *BusinessUpdateOne
RemoveAddresses removes "addresses" edges to Address entities.
func (*BusinessUpdateOne) RemoveOperatorIDs ¶
func (buo *BusinessUpdateOne) RemoveOperatorIDs(ids ...uuid.UUID) *BusinessUpdateOne
RemoveOperatorIDs removes the "operators" edge to Operator entities by IDs.
func (*BusinessUpdateOne) RemoveOperators ¶
func (buo *BusinessUpdateOne) RemoveOperators(o ...*Operator) *BusinessUpdateOne
RemoveOperators removes "operators" edges to Operator entities.
func (*BusinessUpdateOne) RemoveTagIDs ¶
func (buo *BusinessUpdateOne) RemoveTagIDs(ids ...uuid.UUID) *BusinessUpdateOne
RemoveTagIDs removes the "tags" edge to Tag entities by IDs.
func (*BusinessUpdateOne) RemoveTags ¶
func (buo *BusinessUpdateOne) RemoveTags(t ...*Tag) *BusinessUpdateOne
RemoveTags removes "tags" edges to Tag entities.
func (*BusinessUpdateOne) RemoveUserIDs ¶
func (buo *BusinessUpdateOne) RemoveUserIDs(ids ...uuid.UUID) *BusinessUpdateOne
RemoveUserIDs removes the "users" edge to User entities by IDs.
func (*BusinessUpdateOne) RemoveUsers ¶
func (buo *BusinessUpdateOne) RemoveUsers(u ...*User) *BusinessUpdateOne
RemoveUsers removes "users" edges to User entities.
func (*BusinessUpdateOne) Save ¶
func (buo *BusinessUpdateOne) Save(ctx context.Context) (*Business, error)
Save executes the query and returns the updated Business entity.
func (*BusinessUpdateOne) SaveX ¶
func (buo *BusinessUpdateOne) SaveX(ctx context.Context) *Business
SaveX is like Save, but panics if an error occurs.
func (*BusinessUpdateOne) Select ¶
func (buo *BusinessUpdateOne) Select(field string, fields ...string) *BusinessUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BusinessUpdateOne) SetActive ¶
func (buo *BusinessUpdateOne) SetActive(b bool) *BusinessUpdateOne
SetActive sets the "active" field.
func (*BusinessUpdateOne) SetAlias ¶
func (buo *BusinessUpdateOne) SetAlias(s string) *BusinessUpdateOne
SetAlias sets the "alias" field.
func (*BusinessUpdateOne) SetComment ¶
func (buo *BusinessUpdateOne) SetComment(s string) *BusinessUpdateOne
SetComment sets the "comment" field.
func (*BusinessUpdateOne) SetDeletedAt ¶
func (buo *BusinessUpdateOne) SetDeletedAt(t time.Time) *BusinessUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BusinessUpdateOne) SetEmail ¶
func (buo *BusinessUpdateOne) SetEmail(s string) *BusinessUpdateOne
SetEmail sets the "email" field.
func (*BusinessUpdateOne) SetInput ¶ added in v0.0.8
func (c *BusinessUpdateOne) SetInput(i UpdateBusinessInput) *BusinessUpdateOne
SetInput applies the change-set in the UpdateBusinessInput on the BusinessUpdateOne builder.
func (*BusinessUpdateOne) SetName1 ¶
func (buo *BusinessUpdateOne) SetName1(s string) *BusinessUpdateOne
SetName1 sets the "name1" field.
func (*BusinessUpdateOne) SetName2 ¶
func (buo *BusinessUpdateOne) SetName2(s string) *BusinessUpdateOne
SetName2 sets the "name2" field.
func (*BusinessUpdateOne) SetNillableActive ¶
func (buo *BusinessUpdateOne) SetNillableActive(b *bool) *BusinessUpdateOne
SetNillableActive sets the "active" field if the given value is not nil.
func (*BusinessUpdateOne) SetNillableComment ¶
func (buo *BusinessUpdateOne) SetNillableComment(s *string) *BusinessUpdateOne
SetNillableComment sets the "comment" field if the given value is not nil.
func (*BusinessUpdateOne) SetNillableDeletedAt ¶
func (buo *BusinessUpdateOne) SetNillableDeletedAt(t *time.Time) *BusinessUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BusinessUpdateOne) SetNillableEmail ¶
func (buo *BusinessUpdateOne) SetNillableEmail(s *string) *BusinessUpdateOne
SetNillableEmail sets the "email" field if the given value is not nil.
func (*BusinessUpdateOne) SetNillableName2 ¶
func (buo *BusinessUpdateOne) SetNillableName2(s *string) *BusinessUpdateOne
SetNillableName2 sets the "name2" field if the given value is not nil.
func (*BusinessUpdateOne) SetNillableTelephone ¶
func (buo *BusinessUpdateOne) SetNillableTelephone(s *string) *BusinessUpdateOne
SetNillableTelephone sets the "telephone" field if the given value is not nil.
func (*BusinessUpdateOne) SetNillableWebsite ¶
func (buo *BusinessUpdateOne) SetNillableWebsite(s *string) *BusinessUpdateOne
SetNillableWebsite sets the "website" field if the given value is not nil.
func (*BusinessUpdateOne) SetTelephone ¶
func (buo *BusinessUpdateOne) SetTelephone(s string) *BusinessUpdateOne
SetTelephone sets the "telephone" field.
func (*BusinessUpdateOne) SetUpdatedAt ¶
func (buo *BusinessUpdateOne) SetUpdatedAt(t time.Time) *BusinessUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BusinessUpdateOne) SetWebsite ¶
func (buo *BusinessUpdateOne) SetWebsite(s string) *BusinessUpdateOne
SetWebsite sets the "website" field.
func (*BusinessUpdateOne) Where ¶
func (buo *BusinessUpdateOne) Where(ps ...predicate.Business) *BusinessUpdateOne
Where appends a list predicates to the BusinessUpdate builder.
type BusinessWhereInput ¶
type BusinessWhereInput struct { Predicates []predicate.Business `json:"-"` Not *BusinessWhereInput `json:"not,omitempty"` Or []*BusinessWhereInput `json:"or,omitempty"` And []*BusinessWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "created_at" field predicates. CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` // "updated_at" field predicates. UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` // "deleted_at" field predicates. DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` // "name1" field predicates. Name1 *string `json:"name1,omitempty"` Name1NEQ *string `json:"name1NEQ,omitempty"` Name1In []string `json:"name1In,omitempty"` Name1NotIn []string `json:"name1NotIn,omitempty"` Name1GT *string `json:"name1GT,omitempty"` Name1GTE *string `json:"name1GTE,omitempty"` Name1LT *string `json:"name1LT,omitempty"` Name1LTE *string `json:"name1LTE,omitempty"` Name1Contains *string `json:"name1Contains,omitempty"` Name1HasPrefix *string `json:"name1HasPrefix,omitempty"` Name1HasSuffix *string `json:"name1HasSuffix,omitempty"` Name1EqualFold *string `json:"name1EqualFold,omitempty"` Name1ContainsFold *string `json:"name1ContainsFold,omitempty"` // "name2" field predicates. Name2 *string `json:"name2,omitempty"` Name2NEQ *string `json:"name2NEQ,omitempty"` Name2In []string `json:"name2In,omitempty"` Name2NotIn []string `json:"name2NotIn,omitempty"` Name2GT *string `json:"name2GT,omitempty"` Name2GTE *string `json:"name2GTE,omitempty"` Name2LT *string `json:"name2LT,omitempty"` Name2LTE *string `json:"name2LTE,omitempty"` Name2Contains *string `json:"name2Contains,omitempty"` Name2HasPrefix *string `json:"name2HasPrefix,omitempty"` Name2HasSuffix *string `json:"name2HasSuffix,omitempty"` Name2IsNil bool `json:"name2IsNil,omitempty"` Name2NotNil bool `json:"name2NotNil,omitempty"` Name2EqualFold *string `json:"name2EqualFold,omitempty"` Name2ContainsFold *string `json:"name2ContainsFold,omitempty"` // "alias" field predicates. Alias *string `json:"alias,omitempty"` AliasNEQ *string `json:"aliasNEQ,omitempty"` AliasIn []string `json:"aliasIn,omitempty"` AliasNotIn []string `json:"aliasNotIn,omitempty"` AliasGT *string `json:"aliasGT,omitempty"` AliasGTE *string `json:"aliasGTE,omitempty"` AliasLT *string `json:"aliasLT,omitempty"` AliasLTE *string `json:"aliasLTE,omitempty"` AliasContains *string `json:"aliasContains,omitempty"` AliasHasPrefix *string `json:"aliasHasPrefix,omitempty"` AliasHasSuffix *string `json:"aliasHasSuffix,omitempty"` AliasEqualFold *string `json:"aliasEqualFold,omitempty"` AliasContainsFold *string `json:"aliasContainsFold,omitempty"` // "telephone" field predicates. Telephone *string `json:"telephone,omitempty"` TelephoneNEQ *string `json:"telephoneNEQ,omitempty"` TelephoneIn []string `json:"telephoneIn,omitempty"` TelephoneNotIn []string `json:"telephoneNotIn,omitempty"` TelephoneGT *string `json:"telephoneGT,omitempty"` TelephoneGTE *string `json:"telephoneGTE,omitempty"` TelephoneLT *string `json:"telephoneLT,omitempty"` TelephoneLTE *string `json:"telephoneLTE,omitempty"` TelephoneContains *string `json:"telephoneContains,omitempty"` TelephoneHasPrefix *string `json:"telephoneHasPrefix,omitempty"` TelephoneHasSuffix *string `json:"telephoneHasSuffix,omitempty"` TelephoneIsNil bool `json:"telephoneIsNil,omitempty"` TelephoneNotNil bool `json:"telephoneNotNil,omitempty"` TelephoneEqualFold *string `json:"telephoneEqualFold,omitempty"` TelephoneContainsFold *string `json:"telephoneContainsFold,omitempty"` // "email" field predicates. Email *string `json:"email,omitempty"` EmailNEQ *string `json:"emailNEQ,omitempty"` EmailIn []string `json:"emailIn,omitempty"` EmailNotIn []string `json:"emailNotIn,omitempty"` EmailGT *string `json:"emailGT,omitempty"` EmailGTE *string `json:"emailGTE,omitempty"` EmailLT *string `json:"emailLT,omitempty"` EmailLTE *string `json:"emailLTE,omitempty"` EmailContains *string `json:"emailContains,omitempty"` EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` EmailIsNil bool `json:"emailIsNil,omitempty"` EmailNotNil bool `json:"emailNotNil,omitempty"` EmailEqualFold *string `json:"emailEqualFold,omitempty"` EmailContainsFold *string `json:"emailContainsFold,omitempty"` // "website" field predicates. Website *string `json:"website,omitempty"` WebsiteNEQ *string `json:"websiteNEQ,omitempty"` WebsiteIn []string `json:"websiteIn,omitempty"` WebsiteNotIn []string `json:"websiteNotIn,omitempty"` WebsiteGT *string `json:"websiteGT,omitempty"` WebsiteGTE *string `json:"websiteGTE,omitempty"` WebsiteLT *string `json:"websiteLT,omitempty"` WebsiteLTE *string `json:"websiteLTE,omitempty"` WebsiteContains *string `json:"websiteContains,omitempty"` WebsiteHasPrefix *string `json:"websiteHasPrefix,omitempty"` WebsiteHasSuffix *string `json:"websiteHasSuffix,omitempty"` WebsiteIsNil bool `json:"websiteIsNil,omitempty"` WebsiteNotNil bool `json:"websiteNotNil,omitempty"` WebsiteEqualFold *string `json:"websiteEqualFold,omitempty"` WebsiteContainsFold *string `json:"websiteContainsFold,omitempty"` // "comment" field predicates. Comment *string `json:"comment,omitempty"` CommentNEQ *string `json:"commentNEQ,omitempty"` CommentIn []string `json:"commentIn,omitempty"` CommentNotIn []string `json:"commentNotIn,omitempty"` CommentGT *string `json:"commentGT,omitempty"` CommentGTE *string `json:"commentGTE,omitempty"` CommentLT *string `json:"commentLT,omitempty"` CommentLTE *string `json:"commentLTE,omitempty"` CommentContains *string `json:"commentContains,omitempty"` CommentHasPrefix *string `json:"commentHasPrefix,omitempty"` CommentHasSuffix *string `json:"commentHasSuffix,omitempty"` CommentIsNil bool `json:"commentIsNil,omitempty"` CommentNotNil bool `json:"commentNotNil,omitempty"` CommentEqualFold *string `json:"commentEqualFold,omitempty"` CommentContainsFold *string `json:"commentContainsFold,omitempty"` // "active" field predicates. Active *bool `json:"active,omitempty"` ActiveNEQ *bool `json:"activeNEQ,omitempty"` // "addresses" edge predicates. HasAddresses *bool `json:"hasAddresses,omitempty"` HasAddressesWith []*AddressWhereInput `json:"hasAddressesWith,omitempty"` // "tags" edge predicates. HasTags *bool `json:"hasTags,omitempty"` HasTagsWith []*TagWhereInput `json:"hasTagsWith,omitempty"` // "users" edge predicates. HasUsers *bool `json:"hasUsers,omitempty"` HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` // "operators" edge predicates. HasOperators *bool `json:"hasOperators,omitempty"` HasOperatorsWith []*OperatorWhereInput `json:"hasOperatorsWith,omitempty"` }
BusinessWhereInput represents a where input for filtering Business queries.
func (*BusinessWhereInput) AddPredicates ¶
func (i *BusinessWhereInput) AddPredicates(predicates ...predicate.Business)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*BusinessWhereInput) Filter ¶
func (i *BusinessWhereInput) Filter(q *BusinessQuery) (*BusinessQuery, error)
Filter applies the BusinessWhereInput filter on the BusinessQuery builder.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Address is the client for interacting with the Address builders. Address *AddressClient // AuditLog is the client for interacting with the AuditLog builders. AuditLog *AuditLogClient // Business is the client for interacting with the Business builders. Business *BusinessClient // Content is the client for interacting with the Content builders. Content *ContentClient // Operator is the client for interacting with the Operator builders. Operator *OperatorClient // Tag is the client for interacting with the Tag builders. Tag *TagClient // Timetable is the client for interacting with the Timetable builders. Timetable *TimetableClient // User is the client for interacting with the User builders. User *UserClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Address. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
func (*Client) Node ¶
Node returns the node with given global ID.
This API helpful in case you want to build an administrator tool to browser all types in system.
func (*Client) Noder ¶
Noder returns a Node by its id. If the NodeType was not provided, it will be derived from the id value according to the universal-id configuration.
c.Noder(ctx, id) c.Noder(ctx, id, ent.WithNodeType(typeResolver))
func (*Client) OpenTx ¶
OpenTx opens a transaction and returns a transactional context along with the created transaction.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Content ¶
type Content struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // The type of the timetable entry TimetableType content.TimetableType `json:"timetable_type,omitempty"` // The type of the content, only HTML is supported at the moment Type content.Type `json:"type,omitempty"` // The ICU locale identifier for this content, e.g. en_US, de_DE, ... Locale string `json:"locale,omitempty"` // Location holds the value of the "location" field. Location content.Location `json:"location,omitempty"` // Content holds the value of the "content" field. Content string `json:"content,omitempty"` // Status holds the value of the "status" field. Status content.Status `json:"status,omitempty"` // PublishedAt holds the value of the "published_at" field. PublishedAt time.Time `json:"published_at,omitempty"` // contains filtered or unexported fields }
Content is the model entity for the Content schema.
func (*Content) IsNode ¶
func (n *Content) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Content) ToEdge ¶
func (c *Content) ToEdge(order *ContentOrder) *ContentEdge
ToEdge converts Content into ContentEdge.
func (*Content) Unwrap ¶
Unwrap unwraps the Content entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Content) Update ¶
func (c *Content) Update() *ContentUpdateOne
Update returns a builder for updating this Content. Note that you need to call Content.Unwrap() before calling this method if this Content was returned from a transaction, and the transaction was committed or rolled back.
type ContentClient ¶
type ContentClient struct {
// contains filtered or unexported fields
}
ContentClient is a client for the Content schema.
func NewContentClient ¶
func NewContentClient(c config) *ContentClient
NewContentClient returns a client for the Content from the given config.
func (*ContentClient) Create ¶
func (c *ContentClient) Create() *ContentCreate
Create returns a builder for creating a Content entity.
func (*ContentClient) CreateBulk ¶
func (c *ContentClient) CreateBulk(builders ...*ContentCreate) *ContentCreateBulk
CreateBulk returns a builder for creating a bulk of Content entities.
func (*ContentClient) Delete ¶
func (c *ContentClient) Delete() *ContentDelete
Delete returns a delete builder for Content.
func (*ContentClient) DeleteOne ¶
func (c *ContentClient) DeleteOne(co *Content) *ContentDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ContentClient) DeleteOneID ¶
func (c *ContentClient) DeleteOneID(id uuid.UUID) *ContentDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ContentClient) Hooks ¶
func (c *ContentClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ContentClient) Intercept ¶
func (c *ContentClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `content.Intercept(f(g(h())))`.
func (*ContentClient) Interceptors ¶
func (c *ContentClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ContentClient) Query ¶
func (c *ContentClient) Query() *ContentQuery
Query returns a query builder for Content.
func (*ContentClient) Update ¶
func (c *ContentClient) Update() *ContentUpdate
Update returns an update builder for Content.
func (*ContentClient) UpdateOne ¶
func (c *ContentClient) UpdateOne(co *Content) *ContentUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ContentClient) UpdateOneID ¶
func (c *ContentClient) UpdateOneID(id uuid.UUID) *ContentUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ContentClient) Use ¶
func (c *ContentClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `content.Hooks(f(g(h())))`.
type ContentConnection ¶
type ContentConnection struct { Edges []*ContentEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
ContentConnection is the connection containing edges to Content.
type ContentCreate ¶
type ContentCreate struct {
// contains filtered or unexported fields
}
ContentCreate is the builder for creating a Content entity.
func (*ContentCreate) Exec ¶
func (cc *ContentCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ContentCreate) ExecX ¶
func (cc *ContentCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ContentCreate) Mutation ¶
func (cc *ContentCreate) Mutation() *ContentMutation
Mutation returns the ContentMutation object of the builder.
func (*ContentCreate) Save ¶
func (cc *ContentCreate) Save(ctx context.Context) (*Content, error)
Save creates the Content in the database.
func (*ContentCreate) SaveX ¶
func (cc *ContentCreate) SaveX(ctx context.Context) *Content
SaveX calls Save and panics if Save returns an error.
func (*ContentCreate) SetContent ¶
func (cc *ContentCreate) SetContent(s string) *ContentCreate
SetContent sets the "content" field.
func (*ContentCreate) SetCreatedAt ¶
func (cc *ContentCreate) SetCreatedAt(t time.Time) *ContentCreate
SetCreatedAt sets the "created_at" field.
func (*ContentCreate) SetDeletedAt ¶
func (cc *ContentCreate) SetDeletedAt(t time.Time) *ContentCreate
SetDeletedAt sets the "deleted_at" field.
func (*ContentCreate) SetID ¶
func (cc *ContentCreate) SetID(u uuid.UUID) *ContentCreate
SetID sets the "id" field.
func (*ContentCreate) SetLocale ¶
func (cc *ContentCreate) SetLocale(s string) *ContentCreate
SetLocale sets the "locale" field.
func (*ContentCreate) SetLocation ¶
func (cc *ContentCreate) SetLocation(c content.Location) *ContentCreate
SetLocation sets the "location" field.
func (*ContentCreate) SetNillableCreatedAt ¶
func (cc *ContentCreate) SetNillableCreatedAt(t *time.Time) *ContentCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ContentCreate) SetNillableDeletedAt ¶
func (cc *ContentCreate) SetNillableDeletedAt(t *time.Time) *ContentCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*ContentCreate) SetNillableID ¶
func (cc *ContentCreate) SetNillableID(u *uuid.UUID) *ContentCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*ContentCreate) SetNillableLocale ¶
func (cc *ContentCreate) SetNillableLocale(s *string) *ContentCreate
SetNillableLocale sets the "locale" field if the given value is not nil.
func (*ContentCreate) SetNillableLocation ¶
func (cc *ContentCreate) SetNillableLocation(c *content.Location) *ContentCreate
SetNillableLocation sets the "location" field if the given value is not nil.
func (*ContentCreate) SetNillablePublishedAt ¶
func (cc *ContentCreate) SetNillablePublishedAt(t *time.Time) *ContentCreate
SetNillablePublishedAt sets the "published_at" field if the given value is not nil.
func (*ContentCreate) SetNillableStatus ¶
func (cc *ContentCreate) SetNillableStatus(c *content.Status) *ContentCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ContentCreate) SetNillableTimetableType ¶
func (cc *ContentCreate) SetNillableTimetableType(ct *content.TimetableType) *ContentCreate
SetNillableTimetableType sets the "timetable_type" field if the given value is not nil.
func (*ContentCreate) SetNillableType ¶
func (cc *ContentCreate) SetNillableType(c *content.Type) *ContentCreate
SetNillableType sets the "type" field if the given value is not nil.
func (*ContentCreate) SetNillableUpdatedAt ¶
func (cc *ContentCreate) SetNillableUpdatedAt(t *time.Time) *ContentCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ContentCreate) SetPublishedAt ¶
func (cc *ContentCreate) SetPublishedAt(t time.Time) *ContentCreate
SetPublishedAt sets the "published_at" field.
func (*ContentCreate) SetStatus ¶
func (cc *ContentCreate) SetStatus(c content.Status) *ContentCreate
SetStatus sets the "status" field.
func (*ContentCreate) SetTimetableType ¶
func (cc *ContentCreate) SetTimetableType(ct content.TimetableType) *ContentCreate
SetTimetableType sets the "timetable_type" field.
func (*ContentCreate) SetType ¶
func (cc *ContentCreate) SetType(c content.Type) *ContentCreate
SetType sets the "type" field.
func (*ContentCreate) SetUpdatedAt ¶
func (cc *ContentCreate) SetUpdatedAt(t time.Time) *ContentCreate
SetUpdatedAt sets the "updated_at" field.
type ContentCreateBulk ¶
type ContentCreateBulk struct {
// contains filtered or unexported fields
}
ContentCreateBulk is the builder for creating many Content entities in bulk.
func (*ContentCreateBulk) Exec ¶
func (ccb *ContentCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ContentCreateBulk) ExecX ¶
func (ccb *ContentCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ContentDelete ¶
type ContentDelete struct {
// contains filtered or unexported fields
}
ContentDelete is the builder for deleting a Content entity.
func (*ContentDelete) Exec ¶
func (cd *ContentDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ContentDelete) ExecX ¶
func (cd *ContentDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ContentDelete) Where ¶
func (cd *ContentDelete) Where(ps ...predicate.Content) *ContentDelete
Where appends a list predicates to the ContentDelete builder.
type ContentDeleteOne ¶
type ContentDeleteOne struct {
// contains filtered or unexported fields
}
ContentDeleteOne is the builder for deleting a single Content entity.
func (*ContentDeleteOne) Exec ¶
func (cdo *ContentDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ContentDeleteOne) ExecX ¶
func (cdo *ContentDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ContentDeleteOne) Where ¶
func (cdo *ContentDeleteOne) Where(ps ...predicate.Content) *ContentDeleteOne
Where appends a list predicates to the ContentDelete builder.
type ContentEdge ¶
ContentEdge is the edge representation of Content.
type ContentGroupBy ¶
type ContentGroupBy struct {
// contains filtered or unexported fields
}
ContentGroupBy is the group-by builder for Content entities.
func (*ContentGroupBy) Aggregate ¶
func (cgb *ContentGroupBy) Aggregate(fns ...AggregateFunc) *ContentGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ContentGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ContentGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ContentGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ContentGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ContentGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ContentGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ContentGroupBy) Scan ¶
func (cgb *ContentGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ContentGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ContentMutation ¶
type ContentMutation struct {
// contains filtered or unexported fields
}
ContentMutation represents an operation that mutates the Content nodes in the graph.
func (*ContentMutation) AddField ¶
func (m *ContentMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ContentMutation) AddedEdges ¶
func (m *ContentMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ContentMutation) AddedField ¶
func (m *ContentMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ContentMutation) AddedFields ¶
func (m *ContentMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ContentMutation) AddedIDs ¶
func (m *ContentMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ContentMutation) ClearDeletedAt ¶
func (m *ContentMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*ContentMutation) ClearEdge ¶
func (m *ContentMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*ContentMutation) ClearField ¶
func (m *ContentMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*ContentMutation) ClearPublishedAt ¶
func (m *ContentMutation) ClearPublishedAt()
ClearPublishedAt clears the value of the "published_at" field.
func (*ContentMutation) ClearedEdges ¶
func (m *ContentMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ContentMutation) ClearedFields ¶
func (m *ContentMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ContentMutation) Client ¶
func (m ContentMutation) 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 (*ContentMutation) Content ¶
func (m *ContentMutation) Content() (r string, exists bool)
Content returns the value of the "content" field in the mutation.
func (*ContentMutation) CreatedAt ¶
func (m *ContentMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ContentMutation) DeletedAt ¶
func (m *ContentMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*ContentMutation) DeletedAtCleared ¶
func (m *ContentMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*ContentMutation) EdgeCleared ¶
func (m *ContentMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ContentMutation) Field ¶
func (m *ContentMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ContentMutation) FieldCleared ¶
func (m *ContentMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ContentMutation) Fields ¶
func (m *ContentMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*ContentMutation) GetType ¶
func (m *ContentMutation) GetType() (r content.Type, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*ContentMutation) ID ¶
func (m *ContentMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ContentMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*ContentMutation) Locale ¶
func (m *ContentMutation) Locale() (r string, exists bool)
Locale returns the value of the "locale" field in the mutation.
func (*ContentMutation) Location ¶
func (m *ContentMutation) Location() (r content.Location, exists bool)
Location returns the value of the "location" field in the mutation.
func (*ContentMutation) OldContent ¶
func (m *ContentMutation) OldContent(ctx context.Context) (v string, err error)
OldContent returns the old "content" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*ContentMutation) OldLocale ¶
func (m *ContentMutation) OldLocale(ctx context.Context) (v string, err error)
OldLocale returns the old "locale" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldLocation ¶
OldLocation returns the old "location" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldPublishedAt ¶
OldPublishedAt returns the old "published_at" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldStatus ¶
OldStatus returns the old "status" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldTimetableType ¶
func (m *ContentMutation) OldTimetableType(ctx context.Context) (v content.TimetableType, err error)
OldTimetableType returns the old "timetable_type" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldType ¶
OldType returns the old "type" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Content entity. If the Content object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ContentMutation) PublishedAt ¶
func (m *ContentMutation) PublishedAt() (r time.Time, exists bool)
PublishedAt returns the value of the "published_at" field in the mutation.
func (*ContentMutation) PublishedAtCleared ¶
func (m *ContentMutation) PublishedAtCleared() bool
PublishedAtCleared returns if the "published_at" field was cleared in this mutation.
func (*ContentMutation) RemovedEdges ¶
func (m *ContentMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ContentMutation) RemovedIDs ¶
func (m *ContentMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*ContentMutation) ResetContent ¶
func (m *ContentMutation) ResetContent()
ResetContent resets all changes to the "content" field.
func (*ContentMutation) ResetCreatedAt ¶
func (m *ContentMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ContentMutation) ResetDeletedAt ¶
func (m *ContentMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*ContentMutation) ResetEdge ¶
func (m *ContentMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*ContentMutation) ResetField ¶
func (m *ContentMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*ContentMutation) ResetLocale ¶
func (m *ContentMutation) ResetLocale()
ResetLocale resets all changes to the "locale" field.
func (*ContentMutation) ResetLocation ¶
func (m *ContentMutation) ResetLocation()
ResetLocation resets all changes to the "location" field.
func (*ContentMutation) ResetPublishedAt ¶
func (m *ContentMutation) ResetPublishedAt()
ResetPublishedAt resets all changes to the "published_at" field.
func (*ContentMutation) ResetStatus ¶
func (m *ContentMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*ContentMutation) ResetTimetableType ¶
func (m *ContentMutation) ResetTimetableType()
ResetTimetableType resets all changes to the "timetable_type" field.
func (*ContentMutation) ResetType ¶
func (m *ContentMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*ContentMutation) ResetUpdatedAt ¶
func (m *ContentMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ContentMutation) SetContent ¶
func (m *ContentMutation) SetContent(s string)
SetContent sets the "content" field.
func (*ContentMutation) SetCreatedAt ¶
func (m *ContentMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ContentMutation) SetDeletedAt ¶
func (m *ContentMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*ContentMutation) SetField ¶
func (m *ContentMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ContentMutation) SetID ¶
func (m *ContentMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Content entities.
func (*ContentMutation) SetLocale ¶
func (m *ContentMutation) SetLocale(s string)
SetLocale sets the "locale" field.
func (*ContentMutation) SetLocation ¶
func (m *ContentMutation) SetLocation(c content.Location)
SetLocation sets the "location" field.
func (*ContentMutation) SetOp ¶
func (m *ContentMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ContentMutation) SetPublishedAt ¶
func (m *ContentMutation) SetPublishedAt(t time.Time)
SetPublishedAt sets the "published_at" field.
func (*ContentMutation) SetStatus ¶
func (m *ContentMutation) SetStatus(c content.Status)
SetStatus sets the "status" field.
func (*ContentMutation) SetTimetableType ¶
func (m *ContentMutation) SetTimetableType(ct content.TimetableType)
SetTimetableType sets the "timetable_type" field.
func (*ContentMutation) SetType ¶
func (m *ContentMutation) SetType(c content.Type)
SetType sets the "type" field.
func (*ContentMutation) SetUpdatedAt ¶
func (m *ContentMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ContentMutation) Status ¶
func (m *ContentMutation) Status() (r content.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (*ContentMutation) TimetableType ¶
func (m *ContentMutation) TimetableType() (r content.TimetableType, exists bool)
TimetableType returns the value of the "timetable_type" field in the mutation.
func (ContentMutation) Tx ¶
func (m ContentMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ContentMutation) Type ¶
func (m *ContentMutation) Type() string
Type returns the node type of this mutation (Content).
func (*ContentMutation) UpdatedAt ¶
func (m *ContentMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ContentMutation) Where ¶
func (m *ContentMutation) Where(ps ...predicate.Content)
Where appends a list predicates to the ContentMutation builder.
func (*ContentMutation) WhereP ¶
func (m *ContentMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ContentMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ContentOrder ¶
type ContentOrder struct { Direction OrderDirection `json:"direction"` Field *ContentOrderField `json:"field"` }
ContentOrder defines the ordering of Content.
type ContentOrderField ¶
type ContentOrderField struct { // Value extracts the ordering value from the given Content. Value func(*Content) (ent.Value, error) // contains filtered or unexported fields }
ContentOrderField defines the ordering field of Content.
func (ContentOrderField) MarshalGQL ¶
func (f ContentOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (ContentOrderField) String ¶
func (f ContentOrderField) String() string
String implement fmt.Stringer interface.
func (*ContentOrderField) UnmarshalGQL ¶
func (f *ContentOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type ContentPaginateOption ¶
type ContentPaginateOption func(*contentPager) error
ContentPaginateOption enables pagination customization.
func WithContentFilter ¶
func WithContentFilter(filter func(*ContentQuery) (*ContentQuery, error)) ContentPaginateOption
WithContentFilter configures pagination filter.
func WithContentOrder ¶
func WithContentOrder(order *ContentOrder) ContentPaginateOption
WithContentOrder configures pagination ordering.
type ContentQuery ¶
type ContentQuery struct {
// contains filtered or unexported fields
}
ContentQuery is the builder for querying Content entities.
func (*ContentQuery) Aggregate ¶
func (cq *ContentQuery) Aggregate(fns ...AggregateFunc) *ContentSelect
Aggregate returns a ContentSelect configured with the given aggregations.
func (*ContentQuery) All ¶
func (cq *ContentQuery) All(ctx context.Context) ([]*Content, error)
All executes the query and returns a list of Contents.
func (*ContentQuery) AllX ¶
func (cq *ContentQuery) AllX(ctx context.Context) []*Content
AllX is like All, but panics if an error occurs.
func (*ContentQuery) Clone ¶
func (cq *ContentQuery) Clone() *ContentQuery
Clone returns a duplicate of the ContentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ContentQuery) CollectFields ¶
func (c *ContentQuery) CollectFields(ctx context.Context, satisfies ...string) (*ContentQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*ContentQuery) Count ¶
func (cq *ContentQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ContentQuery) CountX ¶
func (cq *ContentQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ContentQuery) Exist ¶
func (cq *ContentQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ContentQuery) ExistX ¶
func (cq *ContentQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ContentQuery) First ¶
func (cq *ContentQuery) First(ctx context.Context) (*Content, error)
First returns the first Content entity from the query. Returns a *NotFoundError when no Content was found.
func (*ContentQuery) FirstID ¶
FirstID returns the first Content ID from the query. Returns a *NotFoundError when no Content ID was found.
func (*ContentQuery) FirstIDX ¶
func (cq *ContentQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*ContentQuery) FirstX ¶
func (cq *ContentQuery) FirstX(ctx context.Context) *Content
FirstX is like First, but panics if an error occurs.
func (*ContentQuery) GroupBy ¶
func (cq *ContentQuery) GroupBy(field string, fields ...string) *ContentGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Content.Query(). GroupBy(content.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ContentQuery) IDsX ¶
func (cq *ContentQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ContentQuery) Limit ¶
func (cq *ContentQuery) Limit(limit int) *ContentQuery
Limit the number of records to be returned by this query.
func (*ContentQuery) Offset ¶
func (cq *ContentQuery) Offset(offset int) *ContentQuery
Offset to start from.
func (*ContentQuery) Only ¶
func (cq *ContentQuery) Only(ctx context.Context) (*Content, error)
Only returns a single Content entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Content entity is found. Returns a *NotFoundError when no Content entities are found.
func (*ContentQuery) OnlyID ¶
OnlyID is like Only, but returns the only Content ID in the query. Returns a *NotSingularError when more than one Content ID is found. Returns a *NotFoundError when no entities are found.
func (*ContentQuery) OnlyIDX ¶
func (cq *ContentQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ContentQuery) OnlyX ¶
func (cq *ContentQuery) OnlyX(ctx context.Context) *Content
OnlyX is like Only, but panics if an error occurs.
func (*ContentQuery) Order ¶
func (cq *ContentQuery) Order(o ...content.OrderOption) *ContentQuery
Order specifies how the records should be ordered.
func (*ContentQuery) Paginate ¶
func (c *ContentQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...ContentPaginateOption, ) (*ContentConnection, error)
Paginate executes the query and returns a relay based cursor connection to Content.
func (*ContentQuery) Select ¶
func (cq *ContentQuery) Select(fields ...string) *ContentSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Content.Query(). Select(content.FieldCreatedAt). Scan(ctx, &v)
func (*ContentQuery) Unique ¶
func (cq *ContentQuery) Unique(unique bool) *ContentQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*ContentQuery) Where ¶
func (cq *ContentQuery) Where(ps ...predicate.Content) *ContentQuery
Where adds a new predicate for the ContentQuery builder.
type ContentSelect ¶
type ContentSelect struct { *ContentQuery // contains filtered or unexported fields }
ContentSelect is the builder for selecting fields of Content entities.
func (*ContentSelect) Aggregate ¶
func (cs *ContentSelect) Aggregate(fns ...AggregateFunc) *ContentSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ContentSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ContentSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ContentSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ContentSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ContentSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ContentSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ContentSelect) Scan ¶
func (cs *ContentSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ContentSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ContentUpdate ¶
type ContentUpdate struct {
// contains filtered or unexported fields
}
ContentUpdate is the builder for updating Content entities.
func (*ContentUpdate) ClearDeletedAt ¶
func (cu *ContentUpdate) ClearDeletedAt() *ContentUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*ContentUpdate) ClearPublishedAt ¶
func (cu *ContentUpdate) ClearPublishedAt() *ContentUpdate
ClearPublishedAt clears the value of the "published_at" field.
func (*ContentUpdate) Exec ¶
func (cu *ContentUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ContentUpdate) ExecX ¶
func (cu *ContentUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ContentUpdate) Mutation ¶
func (cu *ContentUpdate) Mutation() *ContentMutation
Mutation returns the ContentMutation object of the builder.
func (*ContentUpdate) Save ¶
func (cu *ContentUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ContentUpdate) SaveX ¶
func (cu *ContentUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ContentUpdate) SetContent ¶
func (cu *ContentUpdate) SetContent(s string) *ContentUpdate
SetContent sets the "content" field.
func (*ContentUpdate) SetDeletedAt ¶
func (cu *ContentUpdate) SetDeletedAt(t time.Time) *ContentUpdate
SetDeletedAt sets the "deleted_at" field.
func (*ContentUpdate) SetLocale ¶
func (cu *ContentUpdate) SetLocale(s string) *ContentUpdate
SetLocale sets the "locale" field.
func (*ContentUpdate) SetLocation ¶
func (cu *ContentUpdate) SetLocation(c content.Location) *ContentUpdate
SetLocation sets the "location" field.
func (*ContentUpdate) SetNillableDeletedAt ¶
func (cu *ContentUpdate) SetNillableDeletedAt(t *time.Time) *ContentUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*ContentUpdate) SetNillableLocale ¶
func (cu *ContentUpdate) SetNillableLocale(s *string) *ContentUpdate
SetNillableLocale sets the "locale" field if the given value is not nil.
func (*ContentUpdate) SetNillableLocation ¶
func (cu *ContentUpdate) SetNillableLocation(c *content.Location) *ContentUpdate
SetNillableLocation sets the "location" field if the given value is not nil.
func (*ContentUpdate) SetNillablePublishedAt ¶
func (cu *ContentUpdate) SetNillablePublishedAt(t *time.Time) *ContentUpdate
SetNillablePublishedAt sets the "published_at" field if the given value is not nil.
func (*ContentUpdate) SetNillableStatus ¶
func (cu *ContentUpdate) SetNillableStatus(c *content.Status) *ContentUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ContentUpdate) SetNillableTimetableType ¶
func (cu *ContentUpdate) SetNillableTimetableType(ct *content.TimetableType) *ContentUpdate
SetNillableTimetableType sets the "timetable_type" field if the given value is not nil.
func (*ContentUpdate) SetNillableType ¶
func (cu *ContentUpdate) SetNillableType(c *content.Type) *ContentUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*ContentUpdate) SetPublishedAt ¶
func (cu *ContentUpdate) SetPublishedAt(t time.Time) *ContentUpdate
SetPublishedAt sets the "published_at" field.
func (*ContentUpdate) SetStatus ¶
func (cu *ContentUpdate) SetStatus(c content.Status) *ContentUpdate
SetStatus sets the "status" field.
func (*ContentUpdate) SetTimetableType ¶
func (cu *ContentUpdate) SetTimetableType(ct content.TimetableType) *ContentUpdate
SetTimetableType sets the "timetable_type" field.
func (*ContentUpdate) SetType ¶
func (cu *ContentUpdate) SetType(c content.Type) *ContentUpdate
SetType sets the "type" field.
func (*ContentUpdate) SetUpdatedAt ¶
func (cu *ContentUpdate) SetUpdatedAt(t time.Time) *ContentUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ContentUpdate) Where ¶
func (cu *ContentUpdate) Where(ps ...predicate.Content) *ContentUpdate
Where appends a list predicates to the ContentUpdate builder.
type ContentUpdateOne ¶
type ContentUpdateOne struct {
// contains filtered or unexported fields
}
ContentUpdateOne is the builder for updating a single Content entity.
func (*ContentUpdateOne) ClearDeletedAt ¶
func (cuo *ContentUpdateOne) ClearDeletedAt() *ContentUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*ContentUpdateOne) ClearPublishedAt ¶
func (cuo *ContentUpdateOne) ClearPublishedAt() *ContentUpdateOne
ClearPublishedAt clears the value of the "published_at" field.
func (*ContentUpdateOne) Exec ¶
func (cuo *ContentUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ContentUpdateOne) ExecX ¶
func (cuo *ContentUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ContentUpdateOne) Mutation ¶
func (cuo *ContentUpdateOne) Mutation() *ContentMutation
Mutation returns the ContentMutation object of the builder.
func (*ContentUpdateOne) Save ¶
func (cuo *ContentUpdateOne) Save(ctx context.Context) (*Content, error)
Save executes the query and returns the updated Content entity.
func (*ContentUpdateOne) SaveX ¶
func (cuo *ContentUpdateOne) SaveX(ctx context.Context) *Content
SaveX is like Save, but panics if an error occurs.
func (*ContentUpdateOne) Select ¶
func (cuo *ContentUpdateOne) Select(field string, fields ...string) *ContentUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ContentUpdateOne) SetContent ¶
func (cuo *ContentUpdateOne) SetContent(s string) *ContentUpdateOne
SetContent sets the "content" field.
func (*ContentUpdateOne) SetDeletedAt ¶
func (cuo *ContentUpdateOne) SetDeletedAt(t time.Time) *ContentUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*ContentUpdateOne) SetLocale ¶
func (cuo *ContentUpdateOne) SetLocale(s string) *ContentUpdateOne
SetLocale sets the "locale" field.
func (*ContentUpdateOne) SetLocation ¶
func (cuo *ContentUpdateOne) SetLocation(c content.Location) *ContentUpdateOne
SetLocation sets the "location" field.
func (*ContentUpdateOne) SetNillableDeletedAt ¶
func (cuo *ContentUpdateOne) SetNillableDeletedAt(t *time.Time) *ContentUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*ContentUpdateOne) SetNillableLocale ¶
func (cuo *ContentUpdateOne) SetNillableLocale(s *string) *ContentUpdateOne
SetNillableLocale sets the "locale" field if the given value is not nil.
func (*ContentUpdateOne) SetNillableLocation ¶
func (cuo *ContentUpdateOne) SetNillableLocation(c *content.Location) *ContentUpdateOne
SetNillableLocation sets the "location" field if the given value is not nil.
func (*ContentUpdateOne) SetNillablePublishedAt ¶
func (cuo *ContentUpdateOne) SetNillablePublishedAt(t *time.Time) *ContentUpdateOne
SetNillablePublishedAt sets the "published_at" field if the given value is not nil.
func (*ContentUpdateOne) SetNillableStatus ¶
func (cuo *ContentUpdateOne) SetNillableStatus(c *content.Status) *ContentUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ContentUpdateOne) SetNillableTimetableType ¶
func (cuo *ContentUpdateOne) SetNillableTimetableType(ct *content.TimetableType) *ContentUpdateOne
SetNillableTimetableType sets the "timetable_type" field if the given value is not nil.
func (*ContentUpdateOne) SetNillableType ¶
func (cuo *ContentUpdateOne) SetNillableType(c *content.Type) *ContentUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*ContentUpdateOne) SetPublishedAt ¶
func (cuo *ContentUpdateOne) SetPublishedAt(t time.Time) *ContentUpdateOne
SetPublishedAt sets the "published_at" field.
func (*ContentUpdateOne) SetStatus ¶
func (cuo *ContentUpdateOne) SetStatus(c content.Status) *ContentUpdateOne
SetStatus sets the "status" field.
func (*ContentUpdateOne) SetTimetableType ¶
func (cuo *ContentUpdateOne) SetTimetableType(ct content.TimetableType) *ContentUpdateOne
SetTimetableType sets the "timetable_type" field.
func (*ContentUpdateOne) SetType ¶
func (cuo *ContentUpdateOne) SetType(c content.Type) *ContentUpdateOne
SetType sets the "type" field.
func (*ContentUpdateOne) SetUpdatedAt ¶
func (cuo *ContentUpdateOne) SetUpdatedAt(t time.Time) *ContentUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ContentUpdateOne) Where ¶
func (cuo *ContentUpdateOne) Where(ps ...predicate.Content) *ContentUpdateOne
Where appends a list predicates to the ContentUpdate builder.
type ContentWhereInput ¶
type ContentWhereInput struct { Predicates []predicate.Content `json:"-"` Not *ContentWhereInput `json:"not,omitempty"` Or []*ContentWhereInput `json:"or,omitempty"` And []*ContentWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "created_at" field predicates. CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` // "updated_at" field predicates. UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` // "deleted_at" field predicates. DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` // "timetable_type" field predicates. TimetableType *content.TimetableType `json:"timetableType,omitempty"` TimetableTypeNEQ *content.TimetableType `json:"timetableTypeNEQ,omitempty"` TimetableTypeIn []content.TimetableType `json:"timetableTypeIn,omitempty"` TimetableTypeNotIn []content.TimetableType `json:"timetableTypeNotIn,omitempty"` // "type" field predicates. Type *content.Type `json:"type,omitempty"` TypeNEQ *content.Type `json:"typeNEQ,omitempty"` TypeIn []content.Type `json:"typeIn,omitempty"` TypeNotIn []content.Type `json:"typeNotIn,omitempty"` // "locale" field predicates. Locale *string `json:"locale,omitempty"` LocaleNEQ *string `json:"localeNEQ,omitempty"` LocaleIn []string `json:"localeIn,omitempty"` LocaleNotIn []string `json:"localeNotIn,omitempty"` LocaleGT *string `json:"localeGT,omitempty"` LocaleGTE *string `json:"localeGTE,omitempty"` LocaleLT *string `json:"localeLT,omitempty"` LocaleLTE *string `json:"localeLTE,omitempty"` LocaleContains *string `json:"localeContains,omitempty"` LocaleHasPrefix *string `json:"localeHasPrefix,omitempty"` LocaleHasSuffix *string `json:"localeHasSuffix,omitempty"` LocaleEqualFold *string `json:"localeEqualFold,omitempty"` LocaleContainsFold *string `json:"localeContainsFold,omitempty"` // "location" field predicates. Location *content.Location `json:"location,omitempty"` LocationNEQ *content.Location `json:"locationNEQ,omitempty"` LocationIn []content.Location `json:"locationIn,omitempty"` LocationNotIn []content.Location `json:"locationNotIn,omitempty"` // "content" field predicates. Content *string `json:"content,omitempty"` ContentNEQ *string `json:"contentNEQ,omitempty"` ContentIn []string `json:"contentIn,omitempty"` ContentNotIn []string `json:"contentNotIn,omitempty"` ContentGT *string `json:"contentGT,omitempty"` ContentGTE *string `json:"contentGTE,omitempty"` ContentLT *string `json:"contentLT,omitempty"` ContentLTE *string `json:"contentLTE,omitempty"` ContentContains *string `json:"contentContains,omitempty"` ContentHasPrefix *string `json:"contentHasPrefix,omitempty"` ContentHasSuffix *string `json:"contentHasSuffix,omitempty"` ContentEqualFold *string `json:"contentEqualFold,omitempty"` ContentContainsFold *string `json:"contentContainsFold,omitempty"` // "status" field predicates. Status *content.Status `json:"status,omitempty"` StatusNEQ *content.Status `json:"statusNEQ,omitempty"` StatusIn []content.Status `json:"statusIn,omitempty"` StatusNotIn []content.Status `json:"statusNotIn,omitempty"` // "published_at" field predicates. PublishedAt *time.Time `json:"publishedAt,omitempty"` PublishedAtNEQ *time.Time `json:"publishedAtNEQ,omitempty"` PublishedAtIn []time.Time `json:"publishedAtIn,omitempty"` PublishedAtNotIn []time.Time `json:"publishedAtNotIn,omitempty"` PublishedAtGT *time.Time `json:"publishedAtGT,omitempty"` PublishedAtGTE *time.Time `json:"publishedAtGTE,omitempty"` PublishedAtLT *time.Time `json:"publishedAtLT,omitempty"` PublishedAtLTE *time.Time `json:"publishedAtLTE,omitempty"` PublishedAtIsNil bool `json:"publishedAtIsNil,omitempty"` PublishedAtNotNil bool `json:"publishedAtNotNil,omitempty"` }
ContentWhereInput represents a where input for filtering Content queries.
func (*ContentWhereInput) AddPredicates ¶
func (i *ContentWhereInput) AddPredicates(predicates ...predicate.Content)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*ContentWhereInput) Filter ¶
func (i *ContentWhereInput) Filter(q *ContentQuery) (*ContentQuery, error)
Filter applies the ContentWhereInput filter on the ContentQuery builder.
type CreateAddressInput ¶ added in v0.0.8
type CreateAddressInput struct { CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Addition *string Street *string City *string Zip *string State *string Country *string Locale *string Primary *bool Telephone *string Comment *string BusinessID *uuid.UUID TimetableIDs []uuid.UUID }
CreateAddressInput represents a mutation input for creating addresses.
func (*CreateAddressInput) Mutate ¶ added in v0.0.8
func (i *CreateAddressInput) Mutate(m *AddressMutation)
Mutate applies the CreateAddressInput on the AddressMutation builder.
type CreateBusinessInput ¶
type CreateBusinessInput struct { CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time Name1 string Name2 *string Alias string Telephone *string Email *string Website *string Comment *string Active *bool AddressIDs []uuid.UUID TagIDs []uuid.UUID UserIDs []uuid.UUID OperatorIDs []uuid.UUID }
CreateBusinessInput represents a mutation input for creating businesses.
func (*CreateBusinessInput) Mutate ¶
func (i *CreateBusinessInput) Mutate(m *BusinessMutation)
Mutate applies the CreateBusinessInput on the BusinessMutation builder.
type CreateTimetableInput ¶
type CreateTimetableInput struct { CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time TimetableType *timetable.TimetableType DatetimeFrom time.Time Duration *int DatetimeTo *time.Time TimeWholeDay *bool Comment *string AvailabilityByPhone *string AvailabilityByEmail *string AvailabilityBySms *string AvailabilityByWhatsapp *string AddressID uuid.UUID OperatorsOnDutyIDs []uuid.UUID }
CreateTimetableInput represents a mutation input for creating timetables.
func (*CreateTimetableInput) Mutate ¶
func (i *CreateTimetableInput) Mutate(m *TimetableMutation)
Mutate applies the CreateTimetableInput on the TimetableMutation builder.
type CreateUserInput ¶ added in v0.0.7
type CreateUserInput struct { CreatedAt *time.Time UpdatedAt *time.Time DeletedAt *time.Time UsePublicapi *string Login string Surname string Firstname string Title *string Email string Passwordhash *string Comment *string Active *bool Role *string BusinessIDs []uuid.UUID TagIDs []uuid.UUID }
CreateUserInput represents a mutation input for creating users.
func (*CreateUserInput) Mutate ¶ added in v0.0.7
func (i *CreateUserInput) Mutate(m *UserMutation)
Mutate applies the CreateUserInput on the UserMutation builder.
type Edge ¶
type Edge struct { Type string `json:"type,omitempty"` // edge type. Name string `json:"name,omitempty"` // edge name. IDs []uuid.UUID `json:"ids,omitempty"` // node ids (where this edge point to). }
Edges between two nodes.
type Field ¶
type Field struct { Type string `json:"type,omitempty"` // field type. Name string `json:"name,omitempty"` // field name (as in struct). Value string `json:"value,omitempty"` // stringified value. }
Field of a node.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type Node ¶
type Node struct { ID uuid.UUID `json:"id,omitempty"` // node id. Type string `json:"type,omitempty"` // node type. Fields []*Field `json:"fields,omitempty"` // node fields. Edges []*Edge `json:"edges,omitempty"` // node edges. }
Node in the graph.
type NodeOption ¶
type NodeOption func(*nodeOptions)
NodeOption allows configuring the Noder execution using functional options.
func WithFixedNodeType ¶
func WithFixedNodeType(t string) NodeOption
WithFixedNodeType sets the Type of the node to a fixed value.
func WithNodeType ¶
WithNodeType sets the node Type resolver function (i.e. the table to query). If was not provided, the table will be derived from the universal-id configuration as described in: https://entgo.io/docs/migrate/#universal-ids.
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 Operator ¶
type Operator struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // The surname of a user Surname string `json:"surname,omitempty"` // The first name of a user Firstname string `json:"firstname,omitempty"` // The title of a user like PhD Title string `json:"title,omitempty"` // Email holds the value of the "email" field. Email string `json:"-"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OperatorQuery when eager-loading is set. Edges OperatorEdges `json:"edges"` // contains filtered or unexported fields }
Operator is the model entity for the Operator schema.
func (*Operator) Businesses ¶
func (*Operator) IsNode ¶
func (n *Operator) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Operator) NamedBusinesses ¶
NamedBusinesses returns the Businesses named value or an error if the edge was not loaded in eager-loading with this name.
func (*Operator) NamedTimetable ¶
NamedTimetable returns the Timetable named value or an error if the edge was not loaded in eager-loading with this name.
func (*Operator) QueryBusinesses ¶
func (o *Operator) QueryBusinesses() *BusinessQuery
QueryBusinesses queries the "businesses" edge of the Operator entity.
func (*Operator) QueryTimetable ¶
func (o *Operator) QueryTimetable() *TimetableQuery
QueryTimetable queries the "timetable" edge of the Operator entity.
func (*Operator) ToEdge ¶
func (o *Operator) ToEdge(order *OperatorOrder) *OperatorEdge
ToEdge converts Operator into OperatorEdge.
func (*Operator) Unwrap ¶
Unwrap unwraps the Operator entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Operator) Update ¶
func (o *Operator) Update() *OperatorUpdateOne
Update returns a builder for updating this Operator. Note that you need to call Operator.Unwrap() before calling this method if this Operator was returned from a transaction, and the transaction was committed or rolled back.
type OperatorClient ¶
type OperatorClient struct {
// contains filtered or unexported fields
}
OperatorClient is a client for the Operator schema.
func NewOperatorClient ¶
func NewOperatorClient(c config) *OperatorClient
NewOperatorClient returns a client for the Operator from the given config.
func (*OperatorClient) Create ¶
func (c *OperatorClient) Create() *OperatorCreate
Create returns a builder for creating a Operator entity.
func (*OperatorClient) CreateBulk ¶
func (c *OperatorClient) CreateBulk(builders ...*OperatorCreate) *OperatorCreateBulk
CreateBulk returns a builder for creating a bulk of Operator entities.
func (*OperatorClient) Delete ¶
func (c *OperatorClient) Delete() *OperatorDelete
Delete returns a delete builder for Operator.
func (*OperatorClient) DeleteOne ¶
func (c *OperatorClient) DeleteOne(o *Operator) *OperatorDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OperatorClient) DeleteOneID ¶
func (c *OperatorClient) DeleteOneID(id uuid.UUID) *OperatorDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OperatorClient) Hooks ¶
func (c *OperatorClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OperatorClient) Intercept ¶
func (c *OperatorClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `operator.Intercept(f(g(h())))`.
func (*OperatorClient) Interceptors ¶
func (c *OperatorClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OperatorClient) Query ¶
func (c *OperatorClient) Query() *OperatorQuery
Query returns a query builder for Operator.
func (*OperatorClient) QueryBusinesses ¶
func (c *OperatorClient) QueryBusinesses(o *Operator) *BusinessQuery
QueryBusinesses queries the businesses edge of a Operator.
func (*OperatorClient) QueryTimetable ¶
func (c *OperatorClient) QueryTimetable(o *Operator) *TimetableQuery
QueryTimetable queries the timetable edge of a Operator.
func (*OperatorClient) Update ¶
func (c *OperatorClient) Update() *OperatorUpdate
Update returns an update builder for Operator.
func (*OperatorClient) UpdateOne ¶
func (c *OperatorClient) UpdateOne(o *Operator) *OperatorUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OperatorClient) UpdateOneID ¶
func (c *OperatorClient) UpdateOneID(id uuid.UUID) *OperatorUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OperatorClient) Use ¶
func (c *OperatorClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `operator.Hooks(f(g(h())))`.
type OperatorConnection ¶
type OperatorConnection struct { Edges []*OperatorEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
OperatorConnection is the connection containing edges to Operator.
type OperatorCreate ¶
type OperatorCreate struct {
// contains filtered or unexported fields
}
OperatorCreate is the builder for creating a Operator entity.
func (*OperatorCreate) AddBusinessIDs ¶
func (oc *OperatorCreate) AddBusinessIDs(ids ...uuid.UUID) *OperatorCreate
AddBusinessIDs adds the "businesses" edge to the Business entity by IDs.
func (*OperatorCreate) AddBusinesses ¶
func (oc *OperatorCreate) AddBusinesses(b ...*Business) *OperatorCreate
AddBusinesses adds the "businesses" edges to the Business entity.
func (*OperatorCreate) AddTimetable ¶
func (oc *OperatorCreate) AddTimetable(t ...*Timetable) *OperatorCreate
AddTimetable adds the "timetable" edges to the Timetable entity.
func (*OperatorCreate) AddTimetableIDs ¶
func (oc *OperatorCreate) AddTimetableIDs(ids ...uuid.UUID) *OperatorCreate
AddTimetableIDs adds the "timetable" edge to the Timetable entity by IDs.
func (*OperatorCreate) Exec ¶
func (oc *OperatorCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OperatorCreate) ExecX ¶
func (oc *OperatorCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorCreate) Mutation ¶
func (oc *OperatorCreate) Mutation() *OperatorMutation
Mutation returns the OperatorMutation object of the builder.
func (*OperatorCreate) Save ¶
func (oc *OperatorCreate) Save(ctx context.Context) (*Operator, error)
Save creates the Operator in the database.
func (*OperatorCreate) SaveX ¶
func (oc *OperatorCreate) SaveX(ctx context.Context) *Operator
SaveX calls Save and panics if Save returns an error.
func (*OperatorCreate) SetEmail ¶
func (oc *OperatorCreate) SetEmail(s string) *OperatorCreate
SetEmail sets the "email" field.
func (*OperatorCreate) SetFirstname ¶
func (oc *OperatorCreate) SetFirstname(s string) *OperatorCreate
SetFirstname sets the "firstname" field.
func (*OperatorCreate) SetID ¶
func (oc *OperatorCreate) SetID(u uuid.UUID) *OperatorCreate
SetID sets the "id" field.
func (*OperatorCreate) SetNillableID ¶
func (oc *OperatorCreate) SetNillableID(u *uuid.UUID) *OperatorCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OperatorCreate) SetNillableTitle ¶
func (oc *OperatorCreate) SetNillableTitle(s *string) *OperatorCreate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*OperatorCreate) SetSurname ¶
func (oc *OperatorCreate) SetSurname(s string) *OperatorCreate
SetSurname sets the "surname" field.
func (*OperatorCreate) SetTitle ¶
func (oc *OperatorCreate) SetTitle(s string) *OperatorCreate
SetTitle sets the "title" field.
type OperatorCreateBulk ¶
type OperatorCreateBulk struct {
// contains filtered or unexported fields
}
OperatorCreateBulk is the builder for creating many Operator entities in bulk.
func (*OperatorCreateBulk) Exec ¶
func (ocb *OperatorCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OperatorCreateBulk) ExecX ¶
func (ocb *OperatorCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type OperatorDelete ¶
type OperatorDelete struct {
// contains filtered or unexported fields
}
OperatorDelete is the builder for deleting a Operator entity.
func (*OperatorDelete) Exec ¶
func (od *OperatorDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OperatorDelete) ExecX ¶
func (od *OperatorDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OperatorDelete) Where ¶
func (od *OperatorDelete) Where(ps ...predicate.Operator) *OperatorDelete
Where appends a list predicates to the OperatorDelete builder.
type OperatorDeleteOne ¶
type OperatorDeleteOne struct {
// contains filtered or unexported fields
}
OperatorDeleteOne is the builder for deleting a single Operator entity.
func (*OperatorDeleteOne) Exec ¶
func (odo *OperatorDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OperatorDeleteOne) ExecX ¶
func (odo *OperatorDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorDeleteOne) Where ¶
func (odo *OperatorDeleteOne) Where(ps ...predicate.Operator) *OperatorDeleteOne
Where appends a list predicates to the OperatorDelete builder.
type OperatorEdge ¶
OperatorEdge is the edge representation of Operator.
type OperatorEdges ¶
type OperatorEdges struct { // The businesses this user is associated with Businesses []*Business `json:"businesses,omitempty"` // The persons on duty for this timetable entry Timetable []*Timetable `json:"timetable,omitempty"` // contains filtered or unexported fields }
OperatorEdges holds the relations/edges for other nodes in the graph.
func (OperatorEdges) BusinessesOrErr ¶
func (e OperatorEdges) BusinessesOrErr() ([]*Business, error)
BusinessesOrErr returns the Businesses value or an error if the edge was not loaded in eager-loading.
func (OperatorEdges) TimetableOrErr ¶
func (e OperatorEdges) TimetableOrErr() ([]*Timetable, error)
TimetableOrErr returns the Timetable value or an error if the edge was not loaded in eager-loading.
type OperatorGroupBy ¶
type OperatorGroupBy struct {
// contains filtered or unexported fields
}
OperatorGroupBy is the group-by builder for Operator entities.
func (*OperatorGroupBy) Aggregate ¶
func (ogb *OperatorGroupBy) Aggregate(fns ...AggregateFunc) *OperatorGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OperatorGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Scan ¶
func (ogb *OperatorGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OperatorGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OperatorMutation ¶
type OperatorMutation struct {
// contains filtered or unexported fields
}
OperatorMutation represents an operation that mutates the Operator nodes in the graph.
func (*OperatorMutation) AddBusinessIDs ¶
func (m *OperatorMutation) AddBusinessIDs(ids ...uuid.UUID)
AddBusinessIDs adds the "businesses" edge to the Business entity by ids.
func (*OperatorMutation) AddField ¶
func (m *OperatorMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*OperatorMutation) AddTimetableIDs ¶
func (m *OperatorMutation) AddTimetableIDs(ids ...uuid.UUID)
AddTimetableIDs adds the "timetable" edge to the Timetable entity by ids.
func (*OperatorMutation) AddedEdges ¶
func (m *OperatorMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OperatorMutation) AddedField ¶
func (m *OperatorMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*OperatorMutation) AddedFields ¶
func (m *OperatorMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OperatorMutation) AddedIDs ¶
func (m *OperatorMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OperatorMutation) BusinessesCleared ¶
func (m *OperatorMutation) BusinessesCleared() bool
BusinessesCleared reports if the "businesses" edge to the Business entity was cleared.
func (*OperatorMutation) BusinessesIDs ¶
func (m *OperatorMutation) BusinessesIDs() (ids []uuid.UUID)
BusinessesIDs returns the "businesses" edge IDs in the mutation.
func (*OperatorMutation) ClearBusinesses ¶
func (m *OperatorMutation) ClearBusinesses()
ClearBusinesses clears the "businesses" edge to the Business entity.
func (*OperatorMutation) ClearEdge ¶
func (m *OperatorMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*OperatorMutation) ClearField ¶
func (m *OperatorMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*OperatorMutation) ClearTimetable ¶
func (m *OperatorMutation) ClearTimetable()
ClearTimetable clears the "timetable" edge to the Timetable entity.
func (*OperatorMutation) ClearTitle ¶
func (m *OperatorMutation) ClearTitle()
ClearTitle clears the value of the "title" field.
func (*OperatorMutation) ClearedEdges ¶
func (m *OperatorMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OperatorMutation) ClearedFields ¶
func (m *OperatorMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OperatorMutation) Client ¶
func (m OperatorMutation) 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 (*OperatorMutation) EdgeCleared ¶
func (m *OperatorMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OperatorMutation) Email ¶
func (m *OperatorMutation) Email() (r string, exists bool)
Email returns the value of the "email" field in the mutation.
func (*OperatorMutation) Field ¶
func (m *OperatorMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*OperatorMutation) FieldCleared ¶
func (m *OperatorMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OperatorMutation) Fields ¶
func (m *OperatorMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*OperatorMutation) Firstname ¶
func (m *OperatorMutation) Firstname() (r string, exists bool)
Firstname returns the value of the "firstname" field in the mutation.
func (*OperatorMutation) ID ¶
func (m *OperatorMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*OperatorMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OperatorMutation) OldEmail ¶
func (m *OperatorMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "email" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*OperatorMutation) OldFirstname ¶
func (m *OperatorMutation) OldFirstname(ctx context.Context) (v string, err error)
OldFirstname returns the old "firstname" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldSurname ¶
func (m *OperatorMutation) OldSurname(ctx context.Context) (v string, err error)
OldSurname returns the old "surname" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldTitle ¶
func (m *OperatorMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) RemoveBusinessIDs ¶
func (m *OperatorMutation) RemoveBusinessIDs(ids ...uuid.UUID)
RemoveBusinessIDs removes the "businesses" edge to the Business entity by IDs.
func (*OperatorMutation) RemoveTimetableIDs ¶
func (m *OperatorMutation) RemoveTimetableIDs(ids ...uuid.UUID)
RemoveTimetableIDs removes the "timetable" edge to the Timetable entity by IDs.
func (*OperatorMutation) RemovedBusinessesIDs ¶
func (m *OperatorMutation) RemovedBusinessesIDs() (ids []uuid.UUID)
RemovedBusinesses returns the removed IDs of the "businesses" edge to the Business entity.
func (*OperatorMutation) RemovedEdges ¶
func (m *OperatorMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OperatorMutation) RemovedIDs ¶
func (m *OperatorMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*OperatorMutation) RemovedTimetableIDs ¶
func (m *OperatorMutation) RemovedTimetableIDs() (ids []uuid.UUID)
RemovedTimetable returns the removed IDs of the "timetable" edge to the Timetable entity.
func (*OperatorMutation) ResetBusinesses ¶
func (m *OperatorMutation) ResetBusinesses()
ResetBusinesses resets all changes to the "businesses" edge.
func (*OperatorMutation) ResetEdge ¶
func (m *OperatorMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*OperatorMutation) ResetEmail ¶
func (m *OperatorMutation) ResetEmail()
ResetEmail resets all changes to the "email" field.
func (*OperatorMutation) ResetField ¶
func (m *OperatorMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*OperatorMutation) ResetFirstname ¶
func (m *OperatorMutation) ResetFirstname()
ResetFirstname resets all changes to the "firstname" field.
func (*OperatorMutation) ResetSurname ¶
func (m *OperatorMutation) ResetSurname()
ResetSurname resets all changes to the "surname" field.
func (*OperatorMutation) ResetTimetable ¶
func (m *OperatorMutation) ResetTimetable()
ResetTimetable resets all changes to the "timetable" edge.
func (*OperatorMutation) ResetTitle ¶
func (m *OperatorMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*OperatorMutation) SetEmail ¶
func (m *OperatorMutation) SetEmail(s string)
SetEmail sets the "email" field.
func (*OperatorMutation) SetField ¶
func (m *OperatorMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*OperatorMutation) SetFirstname ¶
func (m *OperatorMutation) SetFirstname(s string)
SetFirstname sets the "firstname" field.
func (*OperatorMutation) SetID ¶
func (m *OperatorMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Operator entities.
func (*OperatorMutation) SetOp ¶
func (m *OperatorMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OperatorMutation) SetSurname ¶
func (m *OperatorMutation) SetSurname(s string)
SetSurname sets the "surname" field.
func (*OperatorMutation) SetTitle ¶
func (m *OperatorMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*OperatorMutation) Surname ¶
func (m *OperatorMutation) Surname() (r string, exists bool)
Surname returns the value of the "surname" field in the mutation.
func (*OperatorMutation) TimetableCleared ¶
func (m *OperatorMutation) TimetableCleared() bool
TimetableCleared reports if the "timetable" edge to the Timetable entity was cleared.
func (*OperatorMutation) TimetableIDs ¶
func (m *OperatorMutation) TimetableIDs() (ids []uuid.UUID)
TimetableIDs returns the "timetable" edge IDs in the mutation.
func (*OperatorMutation) Title ¶
func (m *OperatorMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (*OperatorMutation) TitleCleared ¶
func (m *OperatorMutation) TitleCleared() bool
TitleCleared returns if the "title" field was cleared in this mutation.
func (OperatorMutation) Tx ¶
func (m OperatorMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OperatorMutation) Type ¶
func (m *OperatorMutation) Type() string
Type returns the node type of this mutation (Operator).
func (*OperatorMutation) Where ¶
func (m *OperatorMutation) Where(ps ...predicate.Operator)
Where appends a list predicates to the OperatorMutation builder.
func (*OperatorMutation) WhereP ¶
func (m *OperatorMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OperatorMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OperatorOrder ¶
type OperatorOrder struct { Direction OrderDirection `json:"direction"` Field *OperatorOrderField `json:"field"` }
OperatorOrder defines the ordering of Operator.
type OperatorOrderField ¶
type OperatorOrderField struct { // Value extracts the ordering value from the given Operator. Value func(*Operator) (ent.Value, error) // contains filtered or unexported fields }
OperatorOrderField defines the ordering field of Operator.
func (OperatorOrderField) MarshalGQL ¶
func (f OperatorOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (OperatorOrderField) String ¶
func (f OperatorOrderField) String() string
String implement fmt.Stringer interface.
func (*OperatorOrderField) UnmarshalGQL ¶
func (f *OperatorOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type OperatorPaginateOption ¶
type OperatorPaginateOption func(*operatorPager) error
OperatorPaginateOption enables pagination customization.
func WithOperatorFilter ¶
func WithOperatorFilter(filter func(*OperatorQuery) (*OperatorQuery, error)) OperatorPaginateOption
WithOperatorFilter configures pagination filter.
func WithOperatorOrder ¶
func WithOperatorOrder(order *OperatorOrder) OperatorPaginateOption
WithOperatorOrder configures pagination ordering.
type OperatorQuery ¶
type OperatorQuery struct {
// contains filtered or unexported fields
}
OperatorQuery is the builder for querying Operator entities.
func (*OperatorQuery) Aggregate ¶
func (oq *OperatorQuery) Aggregate(fns ...AggregateFunc) *OperatorSelect
Aggregate returns a OperatorSelect configured with the given aggregations.
func (*OperatorQuery) All ¶
func (oq *OperatorQuery) All(ctx context.Context) ([]*Operator, error)
All executes the query and returns a list of Operators.
func (*OperatorQuery) AllX ¶
func (oq *OperatorQuery) AllX(ctx context.Context) []*Operator
AllX is like All, but panics if an error occurs.
func (*OperatorQuery) Clone ¶
func (oq *OperatorQuery) Clone() *OperatorQuery
Clone returns a duplicate of the OperatorQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OperatorQuery) CollectFields ¶
func (o *OperatorQuery) CollectFields(ctx context.Context, satisfies ...string) (*OperatorQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*OperatorQuery) Count ¶
func (oq *OperatorQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OperatorQuery) CountX ¶
func (oq *OperatorQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OperatorQuery) Exist ¶
func (oq *OperatorQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OperatorQuery) ExistX ¶
func (oq *OperatorQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OperatorQuery) First ¶
func (oq *OperatorQuery) First(ctx context.Context) (*Operator, error)
First returns the first Operator entity from the query. Returns a *NotFoundError when no Operator was found.
func (*OperatorQuery) FirstID ¶
FirstID returns the first Operator ID from the query. Returns a *NotFoundError when no Operator ID was found.
func (*OperatorQuery) FirstIDX ¶
func (oq *OperatorQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*OperatorQuery) FirstX ¶
func (oq *OperatorQuery) FirstX(ctx context.Context) *Operator
FirstX is like First, but panics if an error occurs.
func (*OperatorQuery) GroupBy ¶
func (oq *OperatorQuery) GroupBy(field string, fields ...string) *OperatorGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Surname string `json:"surname,omitempty"` Count int `json:"count,omitempty"` } client.Operator.Query(). GroupBy(operator.FieldSurname). Aggregate(ent.Count()). Scan(ctx, &v)
func (*OperatorQuery) IDsX ¶
func (oq *OperatorQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*OperatorQuery) Limit ¶
func (oq *OperatorQuery) Limit(limit int) *OperatorQuery
Limit the number of records to be returned by this query.
func (*OperatorQuery) Offset ¶
func (oq *OperatorQuery) Offset(offset int) *OperatorQuery
Offset to start from.
func (*OperatorQuery) Only ¶
func (oq *OperatorQuery) Only(ctx context.Context) (*Operator, error)
Only returns a single Operator entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Operator entity is found. Returns a *NotFoundError when no Operator entities are found.
func (*OperatorQuery) OnlyID ¶
OnlyID is like Only, but returns the only Operator ID in the query. Returns a *NotSingularError when more than one Operator ID is found. Returns a *NotFoundError when no entities are found.
func (*OperatorQuery) OnlyIDX ¶
func (oq *OperatorQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OperatorQuery) OnlyX ¶
func (oq *OperatorQuery) OnlyX(ctx context.Context) *Operator
OnlyX is like Only, but panics if an error occurs.
func (*OperatorQuery) Order ¶
func (oq *OperatorQuery) Order(o ...operator.OrderOption) *OperatorQuery
Order specifies how the records should be ordered.
func (*OperatorQuery) Paginate ¶
func (o *OperatorQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...OperatorPaginateOption, ) (*OperatorConnection, error)
Paginate executes the query and returns a relay based cursor connection to Operator.
func (*OperatorQuery) QueryBusinesses ¶
func (oq *OperatorQuery) QueryBusinesses() *BusinessQuery
QueryBusinesses chains the current query on the "businesses" edge.
func (*OperatorQuery) QueryTimetable ¶
func (oq *OperatorQuery) QueryTimetable() *TimetableQuery
QueryTimetable chains the current query on the "timetable" edge.
func (*OperatorQuery) Select ¶
func (oq *OperatorQuery) Select(fields ...string) *OperatorSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Surname string `json:"surname,omitempty"` } client.Operator.Query(). Select(operator.FieldSurname). Scan(ctx, &v)
func (*OperatorQuery) Unique ¶
func (oq *OperatorQuery) Unique(unique bool) *OperatorQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*OperatorQuery) Where ¶
func (oq *OperatorQuery) Where(ps ...predicate.Operator) *OperatorQuery
Where adds a new predicate for the OperatorQuery builder.
func (*OperatorQuery) WithBusinesses ¶
func (oq *OperatorQuery) WithBusinesses(opts ...func(*BusinessQuery)) *OperatorQuery
WithBusinesses tells the query-builder to eager-load the nodes that are connected to the "businesses" edge. The optional arguments are used to configure the query builder of the edge.
func (*OperatorQuery) WithNamedBusinesses ¶
func (oq *OperatorQuery) WithNamedBusinesses(name string, opts ...func(*BusinessQuery)) *OperatorQuery
WithNamedBusinesses tells the query-builder to eager-load the nodes that are connected to the "businesses" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OperatorQuery) WithNamedTimetable ¶
func (oq *OperatorQuery) WithNamedTimetable(name string, opts ...func(*TimetableQuery)) *OperatorQuery
WithNamedTimetable tells the query-builder to eager-load the nodes that are connected to the "timetable" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OperatorQuery) WithTimetable ¶
func (oq *OperatorQuery) WithTimetable(opts ...func(*TimetableQuery)) *OperatorQuery
WithTimetable tells the query-builder to eager-load the nodes that are connected to the "timetable" edge. The optional arguments are used to configure the query builder of the edge.
type OperatorSelect ¶
type OperatorSelect struct { *OperatorQuery // contains filtered or unexported fields }
OperatorSelect is the builder for selecting fields of Operator entities.
func (*OperatorSelect) Aggregate ¶
func (os *OperatorSelect) Aggregate(fns ...AggregateFunc) *OperatorSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OperatorSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Scan ¶
func (os *OperatorSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OperatorSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OperatorUpdate ¶
type OperatorUpdate struct {
// contains filtered or unexported fields
}
OperatorUpdate is the builder for updating Operator entities.
func (*OperatorUpdate) AddBusinessIDs ¶
func (ou *OperatorUpdate) AddBusinessIDs(ids ...uuid.UUID) *OperatorUpdate
AddBusinessIDs adds the "businesses" edge to the Business entity by IDs.
func (*OperatorUpdate) AddBusinesses ¶
func (ou *OperatorUpdate) AddBusinesses(b ...*Business) *OperatorUpdate
AddBusinesses adds the "businesses" edges to the Business entity.
func (*OperatorUpdate) AddTimetable ¶
func (ou *OperatorUpdate) AddTimetable(t ...*Timetable) *OperatorUpdate
AddTimetable adds the "timetable" edges to the Timetable entity.
func (*OperatorUpdate) AddTimetableIDs ¶
func (ou *OperatorUpdate) AddTimetableIDs(ids ...uuid.UUID) *OperatorUpdate
AddTimetableIDs adds the "timetable" edge to the Timetable entity by IDs.
func (*OperatorUpdate) ClearBusinesses ¶
func (ou *OperatorUpdate) ClearBusinesses() *OperatorUpdate
ClearBusinesses clears all "businesses" edges to the Business entity.
func (*OperatorUpdate) ClearTimetable ¶
func (ou *OperatorUpdate) ClearTimetable() *OperatorUpdate
ClearTimetable clears all "timetable" edges to the Timetable entity.
func (*OperatorUpdate) ClearTitle ¶
func (ou *OperatorUpdate) ClearTitle() *OperatorUpdate
ClearTitle clears the value of the "title" field.
func (*OperatorUpdate) Exec ¶
func (ou *OperatorUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OperatorUpdate) ExecX ¶
func (ou *OperatorUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorUpdate) Mutation ¶
func (ou *OperatorUpdate) Mutation() *OperatorMutation
Mutation returns the OperatorMutation object of the builder.
func (*OperatorUpdate) RemoveBusinessIDs ¶
func (ou *OperatorUpdate) RemoveBusinessIDs(ids ...uuid.UUID) *OperatorUpdate
RemoveBusinessIDs removes the "businesses" edge to Business entities by IDs.
func (*OperatorUpdate) RemoveBusinesses ¶
func (ou *OperatorUpdate) RemoveBusinesses(b ...*Business) *OperatorUpdate
RemoveBusinesses removes "businesses" edges to Business entities.
func (*OperatorUpdate) RemoveTimetable ¶
func (ou *OperatorUpdate) RemoveTimetable(t ...*Timetable) *OperatorUpdate
RemoveTimetable removes "timetable" edges to Timetable entities.
func (*OperatorUpdate) RemoveTimetableIDs ¶
func (ou *OperatorUpdate) RemoveTimetableIDs(ids ...uuid.UUID) *OperatorUpdate
RemoveTimetableIDs removes the "timetable" edge to Timetable entities by IDs.
func (*OperatorUpdate) Save ¶
func (ou *OperatorUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OperatorUpdate) SaveX ¶
func (ou *OperatorUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OperatorUpdate) SetEmail ¶
func (ou *OperatorUpdate) SetEmail(s string) *OperatorUpdate
SetEmail sets the "email" field.
func (*OperatorUpdate) SetFirstname ¶
func (ou *OperatorUpdate) SetFirstname(s string) *OperatorUpdate
SetFirstname sets the "firstname" field.
func (*OperatorUpdate) SetNillableTitle ¶
func (ou *OperatorUpdate) SetNillableTitle(s *string) *OperatorUpdate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*OperatorUpdate) SetSurname ¶
func (ou *OperatorUpdate) SetSurname(s string) *OperatorUpdate
SetSurname sets the "surname" field.
func (*OperatorUpdate) SetTitle ¶
func (ou *OperatorUpdate) SetTitle(s string) *OperatorUpdate
SetTitle sets the "title" field.
func (*OperatorUpdate) Where ¶
func (ou *OperatorUpdate) Where(ps ...predicate.Operator) *OperatorUpdate
Where appends a list predicates to the OperatorUpdate builder.
type OperatorUpdateOne ¶
type OperatorUpdateOne struct {
// contains filtered or unexported fields
}
OperatorUpdateOne is the builder for updating a single Operator entity.
func (*OperatorUpdateOne) AddBusinessIDs ¶
func (ouo *OperatorUpdateOne) AddBusinessIDs(ids ...uuid.UUID) *OperatorUpdateOne
AddBusinessIDs adds the "businesses" edge to the Business entity by IDs.
func (*OperatorUpdateOne) AddBusinesses ¶
func (ouo *OperatorUpdateOne) AddBusinesses(b ...*Business) *OperatorUpdateOne
AddBusinesses adds the "businesses" edges to the Business entity.
func (*OperatorUpdateOne) AddTimetable ¶
func (ouo *OperatorUpdateOne) AddTimetable(t ...*Timetable) *OperatorUpdateOne
AddTimetable adds the "timetable" edges to the Timetable entity.
func (*OperatorUpdateOne) AddTimetableIDs ¶
func (ouo *OperatorUpdateOne) AddTimetableIDs(ids ...uuid.UUID) *OperatorUpdateOne
AddTimetableIDs adds the "timetable" edge to the Timetable entity by IDs.
func (*OperatorUpdateOne) ClearBusinesses ¶
func (ouo *OperatorUpdateOne) ClearBusinesses() *OperatorUpdateOne
ClearBusinesses clears all "businesses" edges to the Business entity.
func (*OperatorUpdateOne) ClearTimetable ¶
func (ouo *OperatorUpdateOne) ClearTimetable() *OperatorUpdateOne
ClearTimetable clears all "timetable" edges to the Timetable entity.
func (*OperatorUpdateOne) ClearTitle ¶
func (ouo *OperatorUpdateOne) ClearTitle() *OperatorUpdateOne
ClearTitle clears the value of the "title" field.
func (*OperatorUpdateOne) Exec ¶
func (ouo *OperatorUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OperatorUpdateOne) ExecX ¶
func (ouo *OperatorUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorUpdateOne) Mutation ¶
func (ouo *OperatorUpdateOne) Mutation() *OperatorMutation
Mutation returns the OperatorMutation object of the builder.
func (*OperatorUpdateOne) RemoveBusinessIDs ¶
func (ouo *OperatorUpdateOne) RemoveBusinessIDs(ids ...uuid.UUID) *OperatorUpdateOne
RemoveBusinessIDs removes the "businesses" edge to Business entities by IDs.
func (*OperatorUpdateOne) RemoveBusinesses ¶
func (ouo *OperatorUpdateOne) RemoveBusinesses(b ...*Business) *OperatorUpdateOne
RemoveBusinesses removes "businesses" edges to Business entities.
func (*OperatorUpdateOne) RemoveTimetable ¶
func (ouo *OperatorUpdateOne) RemoveTimetable(t ...*Timetable) *OperatorUpdateOne
RemoveTimetable removes "timetable" edges to Timetable entities.
func (*OperatorUpdateOne) RemoveTimetableIDs ¶
func (ouo *OperatorUpdateOne) RemoveTimetableIDs(ids ...uuid.UUID) *OperatorUpdateOne
RemoveTimetableIDs removes the "timetable" edge to Timetable entities by IDs.
func (*OperatorUpdateOne) Save ¶
func (ouo *OperatorUpdateOne) Save(ctx context.Context) (*Operator, error)
Save executes the query and returns the updated Operator entity.
func (*OperatorUpdateOne) SaveX ¶
func (ouo *OperatorUpdateOne) SaveX(ctx context.Context) *Operator
SaveX is like Save, but panics if an error occurs.
func (*OperatorUpdateOne) Select ¶
func (ouo *OperatorUpdateOne) Select(field string, fields ...string) *OperatorUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OperatorUpdateOne) SetEmail ¶
func (ouo *OperatorUpdateOne) SetEmail(s string) *OperatorUpdateOne
SetEmail sets the "email" field.
func (*OperatorUpdateOne) SetFirstname ¶
func (ouo *OperatorUpdateOne) SetFirstname(s string) *OperatorUpdateOne
SetFirstname sets the "firstname" field.
func (*OperatorUpdateOne) SetNillableTitle ¶
func (ouo *OperatorUpdateOne) SetNillableTitle(s *string) *OperatorUpdateOne
SetNillableTitle sets the "title" field if the given value is not nil.
func (*OperatorUpdateOne) SetSurname ¶
func (ouo *OperatorUpdateOne) SetSurname(s string) *OperatorUpdateOne
SetSurname sets the "surname" field.
func (*OperatorUpdateOne) SetTitle ¶
func (ouo *OperatorUpdateOne) SetTitle(s string) *OperatorUpdateOne
SetTitle sets the "title" field.
func (*OperatorUpdateOne) Where ¶
func (ouo *OperatorUpdateOne) Where(ps ...predicate.Operator) *OperatorUpdateOne
Where appends a list predicates to the OperatorUpdate builder.
type OperatorWhereInput ¶
type OperatorWhereInput struct { Predicates []predicate.Operator `json:"-"` Not *OperatorWhereInput `json:"not,omitempty"` Or []*OperatorWhereInput `json:"or,omitempty"` And []*OperatorWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "surname" field predicates. Surname *string `json:"surname,omitempty"` SurnameNEQ *string `json:"surnameNEQ,omitempty"` SurnameIn []string `json:"surnameIn,omitempty"` SurnameNotIn []string `json:"surnameNotIn,omitempty"` SurnameGT *string `json:"surnameGT,omitempty"` SurnameGTE *string `json:"surnameGTE,omitempty"` SurnameLT *string `json:"surnameLT,omitempty"` SurnameLTE *string `json:"surnameLTE,omitempty"` SurnameContains *string `json:"surnameContains,omitempty"` SurnameHasPrefix *string `json:"surnameHasPrefix,omitempty"` SurnameHasSuffix *string `json:"surnameHasSuffix,omitempty"` SurnameEqualFold *string `json:"surnameEqualFold,omitempty"` SurnameContainsFold *string `json:"surnameContainsFold,omitempty"` // "firstname" field predicates. Firstname *string `json:"firstname,omitempty"` FirstnameNEQ *string `json:"firstnameNEQ,omitempty"` FirstnameIn []string `json:"firstnameIn,omitempty"` FirstnameNotIn []string `json:"firstnameNotIn,omitempty"` FirstnameGT *string `json:"firstnameGT,omitempty"` FirstnameGTE *string `json:"firstnameGTE,omitempty"` FirstnameLT *string `json:"firstnameLT,omitempty"` FirstnameLTE *string `json:"firstnameLTE,omitempty"` FirstnameContains *string `json:"firstnameContains,omitempty"` FirstnameHasPrefix *string `json:"firstnameHasPrefix,omitempty"` FirstnameHasSuffix *string `json:"firstnameHasSuffix,omitempty"` FirstnameEqualFold *string `json:"firstnameEqualFold,omitempty"` FirstnameContainsFold *string `json:"firstnameContainsFold,omitempty"` // "title" field predicates. Title *string `json:"title,omitempty"` TitleNEQ *string `json:"titleNEQ,omitempty"` TitleIn []string `json:"titleIn,omitempty"` TitleNotIn []string `json:"titleNotIn,omitempty"` TitleGT *string `json:"titleGT,omitempty"` TitleGTE *string `json:"titleGTE,omitempty"` TitleLT *string `json:"titleLT,omitempty"` TitleLTE *string `json:"titleLTE,omitempty"` TitleContains *string `json:"titleContains,omitempty"` TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` TitleIsNil bool `json:"titleIsNil,omitempty"` TitleNotNil bool `json:"titleNotNil,omitempty"` TitleEqualFold *string `json:"titleEqualFold,omitempty"` TitleContainsFold *string `json:"titleContainsFold,omitempty"` // "email" field predicates. Email *string `json:"email,omitempty"` EmailNEQ *string `json:"emailNEQ,omitempty"` EmailIn []string `json:"emailIn,omitempty"` EmailNotIn []string `json:"emailNotIn,omitempty"` EmailGT *string `json:"emailGT,omitempty"` EmailGTE *string `json:"emailGTE,omitempty"` EmailLT *string `json:"emailLT,omitempty"` EmailLTE *string `json:"emailLTE,omitempty"` EmailContains *string `json:"emailContains,omitempty"` EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` EmailEqualFold *string `json:"emailEqualFold,omitempty"` EmailContainsFold *string `json:"emailContainsFold,omitempty"` // "businesses" edge predicates. HasBusinesses *bool `json:"hasBusinesses,omitempty"` HasBusinessesWith []*BusinessWhereInput `json:"hasBusinessesWith,omitempty"` // "timetable" edge predicates. HasTimetable *bool `json:"hasTimetable,omitempty"` HasTimetableWith []*TimetableWhereInput `json:"hasTimetableWith,omitempty"` }
OperatorWhereInput represents a where input for filtering Operator queries.
func (*OperatorWhereInput) AddPredicates ¶
func (i *OperatorWhereInput) AddPredicates(predicates ...predicate.Operator)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*OperatorWhereInput) Filter ¶
func (i *OperatorWhereInput) Filter(q *OperatorQuery) (*OperatorQuery, error)
Filter applies the OperatorWhereInput filter on the OperatorQuery builder.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type Tag ¶
type Tag struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // The name of the tag Name string `json:"name,omitempty"` // A comment for this tag Comment string `json:"comment,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TagQuery when eager-loading is set. Edges TagEdges `json:"edges"` // contains filtered or unexported fields }
Tag is the model entity for the Tag schema.
func (*Tag) NamedBusiness ¶
NamedBusiness returns the Business named value or an error if the edge was not loaded in eager-loading with this name.
func (*Tag) NamedUser ¶
NamedUser returns the User named value or an error if the edge was not loaded in eager-loading with this name.
func (*Tag) QueryBusiness ¶
func (t *Tag) QueryBusiness() *BusinessQuery
QueryBusiness queries the "business" edge of the Tag entity.
func (*Tag) Unwrap ¶
Unwrap unwraps the Tag entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Tag) Update ¶
func (t *Tag) Update() *TagUpdateOne
Update returns a builder for updating this Tag. Note that you need to call Tag.Unwrap() before calling this method if this Tag was returned from a transaction, and the transaction was committed or rolled back.
type TagClient ¶
type TagClient struct {
// contains filtered or unexported fields
}
TagClient is a client for the Tag schema.
func NewTagClient ¶
func NewTagClient(c config) *TagClient
NewTagClient returns a client for the Tag from the given config.
func (*TagClient) CreateBulk ¶
func (c *TagClient) CreateBulk(builders ...*TagCreate) *TagCreateBulk
CreateBulk returns a builder for creating a bulk of Tag entities.
func (*TagClient) DeleteOne ¶
func (c *TagClient) DeleteOne(t *Tag) *TagDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TagClient) DeleteOneID ¶
func (c *TagClient) DeleteOneID(id uuid.UUID) *TagDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TagClient) Intercept ¶
func (c *TagClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `tag.Intercept(f(g(h())))`.
func (*TagClient) Interceptors ¶
func (c *TagClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TagClient) QueryBusiness ¶
func (c *TagClient) QueryBusiness(t *Tag) *BusinessQuery
QueryBusiness queries the business edge of a Tag.
func (*TagClient) UpdateOne ¶
func (c *TagClient) UpdateOne(t *Tag) *TagUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TagClient) UpdateOneID ¶
func (c *TagClient) UpdateOneID(id uuid.UUID) *TagUpdateOne
UpdateOneID returns an update builder for the given id.
type TagConnection ¶
type TagConnection struct { Edges []*TagEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
TagConnection is the connection containing edges to Tag.
type TagCreate ¶
type TagCreate struct {
// contains filtered or unexported fields
}
TagCreate is the builder for creating a Tag entity.
func (*TagCreate) AddBusinesIDs ¶
AddBusinesIDs adds the "business" edge to the Business entity by IDs.
func (*TagCreate) AddBusiness ¶
AddBusiness adds the "business" edges to the Business entity.
func (*TagCreate) AddUserIDs ¶
AddUserIDs adds the "user" edge to the User entity by IDs.
func (*TagCreate) Mutation ¶
func (tc *TagCreate) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagCreate) SetComment ¶
SetComment sets the "comment" field.
func (*TagCreate) SetCreatedAt ¶
SetCreatedAt sets the "created_at" field.
func (*TagCreate) SetDeletedAt ¶
SetDeletedAt sets the "deleted_at" field.
func (*TagCreate) SetNillableComment ¶
SetNillableComment sets the "comment" field if the given value is not nil.
func (*TagCreate) SetNillableCreatedAt ¶
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TagCreate) SetNillableDeletedAt ¶
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*TagCreate) SetNillableID ¶
SetNillableID sets the "id" field if the given value is not nil.
func (*TagCreate) SetNillableUpdatedAt ¶
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
type TagCreateBulk ¶
type TagCreateBulk struct {
// contains filtered or unexported fields
}
TagCreateBulk is the builder for creating many Tag entities in bulk.
func (*TagCreateBulk) Exec ¶
func (tcb *TagCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TagCreateBulk) ExecX ¶
func (tcb *TagCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TagDelete ¶
type TagDelete struct {
// contains filtered or unexported fields
}
TagDelete is the builder for deleting a Tag entity.
func (*TagDelete) Exec ¶
Exec executes the deletion query and returns how many vertices were deleted.
type TagDeleteOne ¶
type TagDeleteOne struct {
// contains filtered or unexported fields
}
TagDeleteOne is the builder for deleting a single Tag entity.
func (*TagDeleteOne) Exec ¶
func (tdo *TagDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TagDeleteOne) ExecX ¶
func (tdo *TagDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagDeleteOne) Where ¶
func (tdo *TagDeleteOne) Where(ps ...predicate.Tag) *TagDeleteOne
Where appends a list predicates to the TagDelete builder.
type TagEdges ¶
type TagEdges struct { // Business holds the value of the business edge. Business []*Business `json:"business,omitempty"` // User holds the value of the user edge. User []*User `json:"user,omitempty"` // contains filtered or unexported fields }
TagEdges holds the relations/edges for other nodes in the graph.
func (TagEdges) BusinessOrErr ¶
BusinessOrErr returns the Business value or an error if the edge was not loaded in eager-loading.
type TagGroupBy ¶
type TagGroupBy struct {
// contains filtered or unexported fields
}
TagGroupBy is the group-by builder for Tag entities.
func (*TagGroupBy) Aggregate ¶
func (tgb *TagGroupBy) Aggregate(fns ...AggregateFunc) *TagGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TagGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Scan ¶
func (tgb *TagGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TagGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TagMutation ¶
type TagMutation struct {
// contains filtered or unexported fields
}
TagMutation represents an operation that mutates the Tag nodes in the graph.
func (*TagMutation) AddBusinesIDs ¶
func (m *TagMutation) AddBusinesIDs(ids ...uuid.UUID)
AddBusinesIDs adds the "business" edge to the Business entity by ids.
func (*TagMutation) AddField ¶
func (m *TagMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TagMutation) AddUserIDs ¶
func (m *TagMutation) AddUserIDs(ids ...uuid.UUID)
AddUserIDs adds the "user" edge to the User entity by ids.
func (*TagMutation) AddedEdges ¶
func (m *TagMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TagMutation) AddedField ¶
func (m *TagMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TagMutation) AddedFields ¶
func (m *TagMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TagMutation) AddedIDs ¶
func (m *TagMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TagMutation) BusinessCleared ¶
func (m *TagMutation) BusinessCleared() bool
BusinessCleared reports if the "business" edge to the Business entity was cleared.
func (*TagMutation) BusinessIDs ¶
func (m *TagMutation) BusinessIDs() (ids []uuid.UUID)
BusinessIDs returns the "business" edge IDs in the mutation.
func (*TagMutation) ClearBusiness ¶
func (m *TagMutation) ClearBusiness()
ClearBusiness clears the "business" edge to the Business entity.
func (*TagMutation) ClearComment ¶
func (m *TagMutation) ClearComment()
ClearComment clears the value of the "comment" field.
func (*TagMutation) ClearDeletedAt ¶
func (m *TagMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*TagMutation) ClearEdge ¶
func (m *TagMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*TagMutation) ClearField ¶
func (m *TagMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*TagMutation) ClearUser ¶
func (m *TagMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*TagMutation) ClearedEdges ¶
func (m *TagMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TagMutation) ClearedFields ¶
func (m *TagMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TagMutation) Client ¶
func (m TagMutation) 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 (*TagMutation) Comment ¶
func (m *TagMutation) Comment() (r string, exists bool)
Comment returns the value of the "comment" field in the mutation.
func (*TagMutation) CommentCleared ¶
func (m *TagMutation) CommentCleared() bool
CommentCleared returns if the "comment" field was cleared in this mutation.
func (*TagMutation) CreatedAt ¶
func (m *TagMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*TagMutation) DeletedAt ¶
func (m *TagMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*TagMutation) DeletedAtCleared ¶
func (m *TagMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*TagMutation) EdgeCleared ¶
func (m *TagMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TagMutation) Field ¶
func (m *TagMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TagMutation) FieldCleared ¶
func (m *TagMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TagMutation) Fields ¶
func (m *TagMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*TagMutation) ID ¶
func (m *TagMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*TagMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*TagMutation) Name ¶
func (m *TagMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*TagMutation) OldComment ¶
func (m *TagMutation) OldComment(ctx context.Context) (v string, err error)
OldComment returns the old "comment" field's value of the Tag entity. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TagMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Tag entity. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TagMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Tag entity. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TagMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*TagMutation) OldName ¶
func (m *TagMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Tag entity. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TagMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Tag entity. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TagMutation) RemoveBusinesIDs ¶
func (m *TagMutation) RemoveBusinesIDs(ids ...uuid.UUID)
RemoveBusinesIDs removes the "business" edge to the Business entity by IDs.
func (*TagMutation) RemoveUserIDs ¶
func (m *TagMutation) RemoveUserIDs(ids ...uuid.UUID)
RemoveUserIDs removes the "user" edge to the User entity by IDs.
func (*TagMutation) RemovedBusinessIDs ¶
func (m *TagMutation) RemovedBusinessIDs() (ids []uuid.UUID)
RemovedBusiness returns the removed IDs of the "business" edge to the Business entity.
func (*TagMutation) RemovedEdges ¶
func (m *TagMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TagMutation) RemovedIDs ¶
func (m *TagMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*TagMutation) RemovedUserIDs ¶
func (m *TagMutation) RemovedUserIDs() (ids []uuid.UUID)
RemovedUser returns the removed IDs of the "user" edge to the User entity.
func (*TagMutation) ResetBusiness ¶
func (m *TagMutation) ResetBusiness()
ResetBusiness resets all changes to the "business" edge.
func (*TagMutation) ResetComment ¶
func (m *TagMutation) ResetComment()
ResetComment resets all changes to the "comment" field.
func (*TagMutation) ResetCreatedAt ¶
func (m *TagMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*TagMutation) ResetDeletedAt ¶
func (m *TagMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*TagMutation) ResetEdge ¶
func (m *TagMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*TagMutation) ResetField ¶
func (m *TagMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*TagMutation) ResetName ¶
func (m *TagMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*TagMutation) ResetUpdatedAt ¶
func (m *TagMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*TagMutation) ResetUser ¶
func (m *TagMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*TagMutation) SetComment ¶
func (m *TagMutation) SetComment(s string)
SetComment sets the "comment" field.
func (*TagMutation) SetCreatedAt ¶
func (m *TagMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*TagMutation) SetDeletedAt ¶
func (m *TagMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*TagMutation) SetField ¶
func (m *TagMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TagMutation) SetID ¶
func (m *TagMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Tag entities.
func (*TagMutation) SetName ¶
func (m *TagMutation) SetName(s string)
SetName sets the "name" field.
func (*TagMutation) SetOp ¶
func (m *TagMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*TagMutation) SetUpdatedAt ¶
func (m *TagMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (TagMutation) Tx ¶
func (m TagMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TagMutation) Type ¶
func (m *TagMutation) Type() string
Type returns the node type of this mutation (Tag).
func (*TagMutation) UpdatedAt ¶
func (m *TagMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*TagMutation) UserCleared ¶
func (m *TagMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*TagMutation) UserIDs ¶
func (m *TagMutation) UserIDs() (ids []uuid.UUID)
UserIDs returns the "user" edge IDs in the mutation.
func (*TagMutation) Where ¶
func (m *TagMutation) Where(ps ...predicate.Tag)
Where appends a list predicates to the TagMutation builder.
func (*TagMutation) WhereP ¶
func (m *TagMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the TagMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type TagOrder ¶
type TagOrder struct { Direction OrderDirection `json:"direction"` Field *TagOrderField `json:"field"` }
TagOrder defines the ordering of Tag.
type TagOrderField ¶
type TagOrderField struct { // Value extracts the ordering value from the given Tag. Value func(*Tag) (ent.Value, error) // contains filtered or unexported fields }
TagOrderField defines the ordering field of Tag.
func (TagOrderField) MarshalGQL ¶
func (f TagOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (TagOrderField) String ¶
func (f TagOrderField) String() string
String implement fmt.Stringer interface.
func (*TagOrderField) UnmarshalGQL ¶
func (f *TagOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type TagPaginateOption ¶
type TagPaginateOption func(*tagPager) error
TagPaginateOption enables pagination customization.
func WithTagFilter ¶
func WithTagFilter(filter func(*TagQuery) (*TagQuery, error)) TagPaginateOption
WithTagFilter configures pagination filter.
func WithTagOrder ¶
func WithTagOrder(order *TagOrder) TagPaginateOption
WithTagOrder configures pagination ordering.
type TagQuery ¶
type TagQuery struct {
// contains filtered or unexported fields
}
TagQuery is the builder for querying Tag entities.
func (*TagQuery) Aggregate ¶
func (tq *TagQuery) Aggregate(fns ...AggregateFunc) *TagSelect
Aggregate returns a TagSelect configured with the given aggregations.
func (*TagQuery) Clone ¶
Clone returns a duplicate of the TagQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TagQuery) CollectFields ¶
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*TagQuery) First ¶
First returns the first Tag entity from the query. Returns a *NotFoundError when no Tag was found.
func (*TagQuery) FirstID ¶
FirstID returns the first Tag ID from the query. Returns a *NotFoundError when no Tag ID was found.
func (*TagQuery) GroupBy ¶
func (tq *TagQuery) GroupBy(field string, fields ...string) *TagGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Tag.Query(). GroupBy(tag.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TagQuery) Only ¶
Only returns a single Tag entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Tag entity is found. Returns a *NotFoundError when no Tag entities are found.
func (*TagQuery) OnlyID ¶
OnlyID is like Only, but returns the only Tag ID in the query. Returns a *NotSingularError when more than one Tag ID is found. Returns a *NotFoundError when no entities are found.
func (*TagQuery) Order ¶
func (tq *TagQuery) Order(o ...tag.OrderOption) *TagQuery
Order specifies how the records should be ordered.
func (*TagQuery) Paginate ¶
func (t *TagQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...TagPaginateOption, ) (*TagConnection, error)
Paginate executes the query and returns a relay based cursor connection to Tag.
func (*TagQuery) QueryBusiness ¶
func (tq *TagQuery) QueryBusiness() *BusinessQuery
QueryBusiness chains the current query on the "business" edge.
func (*TagQuery) Select ¶
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Tag.Query(). Select(tag.FieldCreatedAt). Scan(ctx, &v)
func (*TagQuery) Unique ¶
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*TagQuery) WithBusiness ¶
func (tq *TagQuery) WithBusiness(opts ...func(*BusinessQuery)) *TagQuery
WithBusiness tells the query-builder to eager-load the nodes that are connected to the "business" edge. The optional arguments are used to configure the query builder of the edge.
func (*TagQuery) WithNamedBusiness ¶
func (tq *TagQuery) WithNamedBusiness(name string, opts ...func(*BusinessQuery)) *TagQuery
WithNamedBusiness tells the query-builder to eager-load the nodes that are connected to the "business" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*TagQuery) WithNamedUser ¶
WithNamedUser tells the query-builder to eager-load the nodes that are connected to the "user" edge with the given name. The optional arguments are used to configure the query builder of the edge.
type TagSelect ¶
type TagSelect struct { *TagQuery // contains filtered or unexported fields }
TagSelect is the builder for selecting fields of Tag entities.
func (*TagSelect) Aggregate ¶
func (ts *TagSelect) Aggregate(fns ...AggregateFunc) *TagSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TagSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TagSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TagSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TagSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TagSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TagSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TagSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TagUpdate ¶
type TagUpdate struct {
// contains filtered or unexported fields
}
TagUpdate is the builder for updating Tag entities.
func (*TagUpdate) AddBusinesIDs ¶
AddBusinesIDs adds the "business" edge to the Business entity by IDs.
func (*TagUpdate) AddBusiness ¶
AddBusiness adds the "business" edges to the Business entity.
func (*TagUpdate) AddUserIDs ¶
AddUserIDs adds the "user" edge to the User entity by IDs.
func (*TagUpdate) ClearBusiness ¶
ClearBusiness clears all "business" edges to the Business entity.
func (*TagUpdate) ClearComment ¶
ClearComment clears the value of the "comment" field.
func (*TagUpdate) ClearDeletedAt ¶
ClearDeletedAt clears the value of the "deleted_at" field.
func (*TagUpdate) Mutation ¶
func (tu *TagUpdate) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagUpdate) RemoveBusinesIDs ¶
RemoveBusinesIDs removes the "business" edge to Business entities by IDs.
func (*TagUpdate) RemoveBusiness ¶
RemoveBusiness removes "business" edges to Business entities.
func (*TagUpdate) RemoveUser ¶
RemoveUser removes "user" edges to User entities.
func (*TagUpdate) RemoveUserIDs ¶
RemoveUserIDs removes the "user" edge to User entities by IDs.
func (*TagUpdate) Save ¶
Save executes the query and returns the number of nodes affected by the update operation.
func (*TagUpdate) SetComment ¶
SetComment sets the "comment" field.
func (*TagUpdate) SetDeletedAt ¶
SetDeletedAt sets the "deleted_at" field.
func (*TagUpdate) SetNillableComment ¶
SetNillableComment sets the "comment" field if the given value is not nil.
func (*TagUpdate) SetNillableDeletedAt ¶
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*TagUpdate) SetUpdatedAt ¶
SetUpdatedAt sets the "updated_at" field.
type TagUpdateOne ¶
type TagUpdateOne struct {
// contains filtered or unexported fields
}
TagUpdateOne is the builder for updating a single Tag entity.
func (*TagUpdateOne) AddBusinesIDs ¶
func (tuo *TagUpdateOne) AddBusinesIDs(ids ...uuid.UUID) *TagUpdateOne
AddBusinesIDs adds the "business" edge to the Business entity by IDs.
func (*TagUpdateOne) AddBusiness ¶
func (tuo *TagUpdateOne) AddBusiness(b ...*Business) *TagUpdateOne
AddBusiness adds the "business" edges to the Business entity.
func (*TagUpdateOne) AddUser ¶
func (tuo *TagUpdateOne) AddUser(u ...*User) *TagUpdateOne
AddUser adds the "user" edges to the User entity.
func (*TagUpdateOne) AddUserIDs ¶
func (tuo *TagUpdateOne) AddUserIDs(ids ...uuid.UUID) *TagUpdateOne
AddUserIDs adds the "user" edge to the User entity by IDs.
func (*TagUpdateOne) ClearBusiness ¶
func (tuo *TagUpdateOne) ClearBusiness() *TagUpdateOne
ClearBusiness clears all "business" edges to the Business entity.
func (*TagUpdateOne) ClearComment ¶
func (tuo *TagUpdateOne) ClearComment() *TagUpdateOne
ClearComment clears the value of the "comment" field.
func (*TagUpdateOne) ClearDeletedAt ¶
func (tuo *TagUpdateOne) ClearDeletedAt() *TagUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*TagUpdateOne) ClearUser ¶
func (tuo *TagUpdateOne) ClearUser() *TagUpdateOne
ClearUser clears all "user" edges to the User entity.
func (*TagUpdateOne) Exec ¶
func (tuo *TagUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TagUpdateOne) ExecX ¶
func (tuo *TagUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagUpdateOne) Mutation ¶
func (tuo *TagUpdateOne) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagUpdateOne) RemoveBusinesIDs ¶
func (tuo *TagUpdateOne) RemoveBusinesIDs(ids ...uuid.UUID) *TagUpdateOne
RemoveBusinesIDs removes the "business" edge to Business entities by IDs.
func (*TagUpdateOne) RemoveBusiness ¶
func (tuo *TagUpdateOne) RemoveBusiness(b ...*Business) *TagUpdateOne
RemoveBusiness removes "business" edges to Business entities.
func (*TagUpdateOne) RemoveUser ¶
func (tuo *TagUpdateOne) RemoveUser(u ...*User) *TagUpdateOne
RemoveUser removes "user" edges to User entities.
func (*TagUpdateOne) RemoveUserIDs ¶
func (tuo *TagUpdateOne) RemoveUserIDs(ids ...uuid.UUID) *TagUpdateOne
RemoveUserIDs removes the "user" edge to User entities by IDs.
func (*TagUpdateOne) Save ¶
func (tuo *TagUpdateOne) Save(ctx context.Context) (*Tag, error)
Save executes the query and returns the updated Tag entity.
func (*TagUpdateOne) SaveX ¶
func (tuo *TagUpdateOne) SaveX(ctx context.Context) *Tag
SaveX is like Save, but panics if an error occurs.
func (*TagUpdateOne) Select ¶
func (tuo *TagUpdateOne) Select(field string, fields ...string) *TagUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TagUpdateOne) SetComment ¶
func (tuo *TagUpdateOne) SetComment(s string) *TagUpdateOne
SetComment sets the "comment" field.
func (*TagUpdateOne) SetDeletedAt ¶
func (tuo *TagUpdateOne) SetDeletedAt(t time.Time) *TagUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*TagUpdateOne) SetName ¶
func (tuo *TagUpdateOne) SetName(s string) *TagUpdateOne
SetName sets the "name" field.
func (*TagUpdateOne) SetNillableComment ¶
func (tuo *TagUpdateOne) SetNillableComment(s *string) *TagUpdateOne
SetNillableComment sets the "comment" field if the given value is not nil.
func (*TagUpdateOne) SetNillableDeletedAt ¶
func (tuo *TagUpdateOne) SetNillableDeletedAt(t *time.Time) *TagUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*TagUpdateOne) SetUpdatedAt ¶
func (tuo *TagUpdateOne) SetUpdatedAt(t time.Time) *TagUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*TagUpdateOne) Where ¶
func (tuo *TagUpdateOne) Where(ps ...predicate.Tag) *TagUpdateOne
Where appends a list predicates to the TagUpdate builder.
type TagWhereInput ¶
type TagWhereInput struct { Predicates []predicate.Tag `json:"-"` Not *TagWhereInput `json:"not,omitempty"` Or []*TagWhereInput `json:"or,omitempty"` And []*TagWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "created_at" field predicates. CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` // "updated_at" field predicates. UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` // "deleted_at" field predicates. DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` // "name" field predicates. Name *string `json:"name,omitempty"` NameNEQ *string `json:"nameNEQ,omitempty"` NameIn []string `json:"nameIn,omitempty"` NameNotIn []string `json:"nameNotIn,omitempty"` NameGT *string `json:"nameGT,omitempty"` NameGTE *string `json:"nameGTE,omitempty"` NameLT *string `json:"nameLT,omitempty"` NameLTE *string `json:"nameLTE,omitempty"` NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` // "comment" field predicates. Comment *string `json:"comment,omitempty"` CommentNEQ *string `json:"commentNEQ,omitempty"` CommentIn []string `json:"commentIn,omitempty"` CommentNotIn []string `json:"commentNotIn,omitempty"` CommentGT *string `json:"commentGT,omitempty"` CommentGTE *string `json:"commentGTE,omitempty"` CommentLT *string `json:"commentLT,omitempty"` CommentLTE *string `json:"commentLTE,omitempty"` CommentContains *string `json:"commentContains,omitempty"` CommentHasPrefix *string `json:"commentHasPrefix,omitempty"` CommentHasSuffix *string `json:"commentHasSuffix,omitempty"` CommentIsNil bool `json:"commentIsNil,omitempty"` CommentNotNil bool `json:"commentNotNil,omitempty"` CommentEqualFold *string `json:"commentEqualFold,omitempty"` CommentContainsFold *string `json:"commentContainsFold,omitempty"` // "business" edge predicates. HasBusiness *bool `json:"hasBusiness,omitempty"` HasBusinessWith []*BusinessWhereInput `json:"hasBusinessWith,omitempty"` // "user" edge predicates. HasUser *bool `json:"hasUser,omitempty"` HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` }
TagWhereInput represents a where input for filtering Tag queries.
func (*TagWhereInput) AddPredicates ¶
func (i *TagWhereInput) AddPredicates(predicates ...predicate.Tag)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
type Timetable ¶
type Timetable struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // The type of the timetable entry TimetableType timetable.TimetableType `json:"timetable_type,omitempty"` // DatetimeFrom holds the value of the "datetime_from" field. DatetimeFrom time.Time `json:"datetime_from,omitempty"` // The duration of the timetable entry in hours, overwrites datetime_to Duration int `json:"duration,omitempty"` // The end of the timetable entry, only used if duration is not set DatetimeTo time.Time `json:"datetime_to,omitempty"` // TimeWholeDay holds the value of the "time_whole_day" field. TimeWholeDay bool `json:"time_whole_day,omitempty"` // Comment holds the value of the "comment" field. Comment string `json:"comment,omitempty"` // AvailabilityByPhone holds the value of the "availability_by_phone" field. AvailabilityByPhone string `json:"availability_by_phone,omitempty"` // AvailabilityByEmail holds the value of the "availability_by_email" field. AvailabilityByEmail string `json:"availability_by_email,omitempty"` // AvailabilityBySms holds the value of the "availability_by_sms" field. AvailabilityBySms string `json:"availability_by_sms,omitempty"` // AvailabilityByWhatsapp holds the value of the "availability_by_whatsapp" field. AvailabilityByWhatsapp string `json:"availability_by_whatsapp,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TimetableQuery when eager-loading is set. Edges TimetableEdges `json:"edges"` // contains filtered or unexported fields }
Timetable is the model entity for the Timetable schema.
func (*Timetable) IsNode ¶
func (n *Timetable) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Timetable) NamedOperatorsOnDuty ¶
NamedOperatorsOnDuty returns the OperatorsOnDuty named value or an error if the edge was not loaded in eager-loading with this name.
func (*Timetable) OperatorsOnDuty ¶
func (*Timetable) QueryAddress ¶
func (t *Timetable) QueryAddress() *AddressQuery
QueryAddress queries the "address" edge of the Timetable entity.
func (*Timetable) QueryOperatorsOnDuty ¶
func (t *Timetable) QueryOperatorsOnDuty() *OperatorQuery
QueryOperatorsOnDuty queries the "operators_on_duty" edge of the Timetable entity.
func (*Timetable) ToEdge ¶
func (t *Timetable) ToEdge(order *TimetableOrder) *TimetableEdge
ToEdge converts Timetable into TimetableEdge.
func (*Timetable) Unwrap ¶
Unwrap unwraps the Timetable entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Timetable) Update ¶
func (t *Timetable) Update() *TimetableUpdateOne
Update returns a builder for updating this Timetable. Note that you need to call Timetable.Unwrap() before calling this method if this Timetable was returned from a transaction, and the transaction was committed or rolled back.
type TimetableClient ¶
type TimetableClient struct {
// contains filtered or unexported fields
}
TimetableClient is a client for the Timetable schema.
func NewTimetableClient ¶
func NewTimetableClient(c config) *TimetableClient
NewTimetableClient returns a client for the Timetable from the given config.
func (*TimetableClient) Create ¶
func (c *TimetableClient) Create() *TimetableCreate
Create returns a builder for creating a Timetable entity.
func (*TimetableClient) CreateBulk ¶
func (c *TimetableClient) CreateBulk(builders ...*TimetableCreate) *TimetableCreateBulk
CreateBulk returns a builder for creating a bulk of Timetable entities.
func (*TimetableClient) Delete ¶
func (c *TimetableClient) Delete() *TimetableDelete
Delete returns a delete builder for Timetable.
func (*TimetableClient) DeleteOne ¶
func (c *TimetableClient) DeleteOne(t *Timetable) *TimetableDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TimetableClient) DeleteOneID ¶
func (c *TimetableClient) DeleteOneID(id uuid.UUID) *TimetableDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TimetableClient) Hooks ¶
func (c *TimetableClient) Hooks() []Hook
Hooks returns the client hooks.
func (*TimetableClient) Intercept ¶
func (c *TimetableClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `timetable.Intercept(f(g(h())))`.
func (*TimetableClient) Interceptors ¶
func (c *TimetableClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TimetableClient) Query ¶
func (c *TimetableClient) Query() *TimetableQuery
Query returns a query builder for Timetable.
func (*TimetableClient) QueryAddress ¶
func (c *TimetableClient) QueryAddress(t *Timetable) *AddressQuery
QueryAddress queries the address edge of a Timetable.
func (*TimetableClient) QueryOperatorsOnDuty ¶
func (c *TimetableClient) QueryOperatorsOnDuty(t *Timetable) *OperatorQuery
QueryOperatorsOnDuty queries the operators_on_duty edge of a Timetable.
func (*TimetableClient) Update ¶
func (c *TimetableClient) Update() *TimetableUpdate
Update returns an update builder for Timetable.
func (*TimetableClient) UpdateOne ¶
func (c *TimetableClient) UpdateOne(t *Timetable) *TimetableUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TimetableClient) UpdateOneID ¶
func (c *TimetableClient) UpdateOneID(id uuid.UUID) *TimetableUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TimetableClient) Use ¶
func (c *TimetableClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `timetable.Hooks(f(g(h())))`.
type TimetableConnection ¶
type TimetableConnection struct { Edges []*TimetableEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
TimetableConnection is the connection containing edges to Timetable.
type TimetableCreate ¶
type TimetableCreate struct {
// contains filtered or unexported fields
}
TimetableCreate is the builder for creating a Timetable entity.
func (*TimetableCreate) AddOperatorsOnDuty ¶
func (tc *TimetableCreate) AddOperatorsOnDuty(o ...*Operator) *TimetableCreate
AddOperatorsOnDuty adds the "operators_on_duty" edges to the Operator entity.
func (*TimetableCreate) AddOperatorsOnDutyIDs ¶
func (tc *TimetableCreate) AddOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableCreate
AddOperatorsOnDutyIDs adds the "operators_on_duty" edge to the Operator entity by IDs.
func (*TimetableCreate) Exec ¶
func (tc *TimetableCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TimetableCreate) ExecX ¶
func (tc *TimetableCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TimetableCreate) Mutation ¶
func (tc *TimetableCreate) Mutation() *TimetableMutation
Mutation returns the TimetableMutation object of the builder.
func (*TimetableCreate) Save ¶
func (tc *TimetableCreate) Save(ctx context.Context) (*Timetable, error)
Save creates the Timetable in the database.
func (*TimetableCreate) SaveX ¶
func (tc *TimetableCreate) SaveX(ctx context.Context) *Timetable
SaveX calls Save and panics if Save returns an error.
func (*TimetableCreate) SetAddress ¶
func (tc *TimetableCreate) SetAddress(a *Address) *TimetableCreate
SetAddress sets the "address" edge to the Address entity.
func (*TimetableCreate) SetAddressID ¶
func (tc *TimetableCreate) SetAddressID(id uuid.UUID) *TimetableCreate
SetAddressID sets the "address" edge to the Address entity by ID.
func (*TimetableCreate) SetAvailabilityByEmail ¶
func (tc *TimetableCreate) SetAvailabilityByEmail(s string) *TimetableCreate
SetAvailabilityByEmail sets the "availability_by_email" field.
func (*TimetableCreate) SetAvailabilityByPhone ¶
func (tc *TimetableCreate) SetAvailabilityByPhone(s string) *TimetableCreate
SetAvailabilityByPhone sets the "availability_by_phone" field.
func (*TimetableCreate) SetAvailabilityBySms ¶
func (tc *TimetableCreate) SetAvailabilityBySms(s string) *TimetableCreate
SetAvailabilityBySms sets the "availability_by_sms" field.
func (*TimetableCreate) SetAvailabilityByWhatsapp ¶
func (tc *TimetableCreate) SetAvailabilityByWhatsapp(s string) *TimetableCreate
SetAvailabilityByWhatsapp sets the "availability_by_whatsapp" field.
func (*TimetableCreate) SetComment ¶
func (tc *TimetableCreate) SetComment(s string) *TimetableCreate
SetComment sets the "comment" field.
func (*TimetableCreate) SetCreatedAt ¶
func (tc *TimetableCreate) SetCreatedAt(t time.Time) *TimetableCreate
SetCreatedAt sets the "created_at" field.
func (*TimetableCreate) SetDatetimeFrom ¶
func (tc *TimetableCreate) SetDatetimeFrom(t time.Time) *TimetableCreate
SetDatetimeFrom sets the "datetime_from" field.
func (*TimetableCreate) SetDatetimeTo ¶
func (tc *TimetableCreate) SetDatetimeTo(t time.Time) *TimetableCreate
SetDatetimeTo sets the "datetime_to" field.
func (*TimetableCreate) SetDeletedAt ¶
func (tc *TimetableCreate) SetDeletedAt(t time.Time) *TimetableCreate
SetDeletedAt sets the "deleted_at" field.
func (*TimetableCreate) SetDuration ¶
func (tc *TimetableCreate) SetDuration(i int) *TimetableCreate
SetDuration sets the "duration" field.
func (*TimetableCreate) SetID ¶
func (tc *TimetableCreate) SetID(u uuid.UUID) *TimetableCreate
SetID sets the "id" field.
func (*TimetableCreate) SetInput ¶
func (c *TimetableCreate) SetInput(i CreateTimetableInput) *TimetableCreate
SetInput applies the change-set in the CreateTimetableInput on the TimetableCreate builder.
func (*TimetableCreate) SetNillableAvailabilityByEmail ¶
func (tc *TimetableCreate) SetNillableAvailabilityByEmail(s *string) *TimetableCreate
SetNillableAvailabilityByEmail sets the "availability_by_email" field if the given value is not nil.
func (*TimetableCreate) SetNillableAvailabilityByPhone ¶
func (tc *TimetableCreate) SetNillableAvailabilityByPhone(s *string) *TimetableCreate
SetNillableAvailabilityByPhone sets the "availability_by_phone" field if the given value is not nil.
func (*TimetableCreate) SetNillableAvailabilityBySms ¶
func (tc *TimetableCreate) SetNillableAvailabilityBySms(s *string) *TimetableCreate
SetNillableAvailabilityBySms sets the "availability_by_sms" field if the given value is not nil.
func (*TimetableCreate) SetNillableAvailabilityByWhatsapp ¶
func (tc *TimetableCreate) SetNillableAvailabilityByWhatsapp(s *string) *TimetableCreate
SetNillableAvailabilityByWhatsapp sets the "availability_by_whatsapp" field if the given value is not nil.
func (*TimetableCreate) SetNillableComment ¶
func (tc *TimetableCreate) SetNillableComment(s *string) *TimetableCreate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*TimetableCreate) SetNillableCreatedAt ¶
func (tc *TimetableCreate) SetNillableCreatedAt(t *time.Time) *TimetableCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TimetableCreate) SetNillableDatetimeTo ¶
func (tc *TimetableCreate) SetNillableDatetimeTo(t *time.Time) *TimetableCreate
SetNillableDatetimeTo sets the "datetime_to" field if the given value is not nil.
func (*TimetableCreate) SetNillableDeletedAt ¶
func (tc *TimetableCreate) SetNillableDeletedAt(t *time.Time) *TimetableCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*TimetableCreate) SetNillableDuration ¶
func (tc *TimetableCreate) SetNillableDuration(i *int) *TimetableCreate
SetNillableDuration sets the "duration" field if the given value is not nil.
func (*TimetableCreate) SetNillableID ¶
func (tc *TimetableCreate) SetNillableID(u *uuid.UUID) *TimetableCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*TimetableCreate) SetNillableTimeWholeDay ¶
func (tc *TimetableCreate) SetNillableTimeWholeDay(b *bool) *TimetableCreate
SetNillableTimeWholeDay sets the "time_whole_day" field if the given value is not nil.
func (*TimetableCreate) SetNillableTimetableType ¶
func (tc *TimetableCreate) SetNillableTimetableType(tt *timetable.TimetableType) *TimetableCreate
SetNillableTimetableType sets the "timetable_type" field if the given value is not nil.
func (*TimetableCreate) SetNillableUpdatedAt ¶
func (tc *TimetableCreate) SetNillableUpdatedAt(t *time.Time) *TimetableCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*TimetableCreate) SetTimeWholeDay ¶
func (tc *TimetableCreate) SetTimeWholeDay(b bool) *TimetableCreate
SetTimeWholeDay sets the "time_whole_day" field.
func (*TimetableCreate) SetTimetableType ¶
func (tc *TimetableCreate) SetTimetableType(tt timetable.TimetableType) *TimetableCreate
SetTimetableType sets the "timetable_type" field.
func (*TimetableCreate) SetUpdatedAt ¶
func (tc *TimetableCreate) SetUpdatedAt(t time.Time) *TimetableCreate
SetUpdatedAt sets the "updated_at" field.
type TimetableCreateBulk ¶
type TimetableCreateBulk struct {
// contains filtered or unexported fields
}
TimetableCreateBulk is the builder for creating many Timetable entities in bulk.
func (*TimetableCreateBulk) Exec ¶
func (tcb *TimetableCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TimetableCreateBulk) ExecX ¶
func (tcb *TimetableCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TimetableDelete ¶
type TimetableDelete struct {
// contains filtered or unexported fields
}
TimetableDelete is the builder for deleting a Timetable entity.
func (*TimetableDelete) Exec ¶
func (td *TimetableDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TimetableDelete) ExecX ¶
func (td *TimetableDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TimetableDelete) Where ¶
func (td *TimetableDelete) Where(ps ...predicate.Timetable) *TimetableDelete
Where appends a list predicates to the TimetableDelete builder.
type TimetableDeleteOne ¶
type TimetableDeleteOne struct {
// contains filtered or unexported fields
}
TimetableDeleteOne is the builder for deleting a single Timetable entity.
func (*TimetableDeleteOne) Exec ¶
func (tdo *TimetableDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TimetableDeleteOne) ExecX ¶
func (tdo *TimetableDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TimetableDeleteOne) Where ¶
func (tdo *TimetableDeleteOne) Where(ps ...predicate.Timetable) *TimetableDeleteOne
Where appends a list predicates to the TimetableDelete builder.
type TimetableEdge ¶
TimetableEdge is the edge representation of Timetable.
type TimetableEdges ¶
type TimetableEdges struct { // Address holds the value of the address edge. Address *Address `json:"address,omitempty"` // OperatorsOnDuty holds the value of the operators_on_duty edge. OperatorsOnDuty []*Operator `json:"operators_on_duty,omitempty"` // contains filtered or unexported fields }
TimetableEdges holds the relations/edges for other nodes in the graph.
func (TimetableEdges) AddressOrErr ¶
func (e TimetableEdges) AddressOrErr() (*Address, error)
AddressOrErr returns the Address value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (TimetableEdges) OperatorsOnDutyOrErr ¶
func (e TimetableEdges) OperatorsOnDutyOrErr() ([]*Operator, error)
OperatorsOnDutyOrErr returns the OperatorsOnDuty value or an error if the edge was not loaded in eager-loading.
type TimetableGroupBy ¶
type TimetableGroupBy struct {
// contains filtered or unexported fields
}
TimetableGroupBy is the group-by builder for Timetable entities.
func (*TimetableGroupBy) Aggregate ¶
func (tgb *TimetableGroupBy) Aggregate(fns ...AggregateFunc) *TimetableGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TimetableGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TimetableGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TimetableGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TimetableGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TimetableGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TimetableGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TimetableGroupBy) Scan ¶
func (tgb *TimetableGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TimetableGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TimetableMutation ¶
type TimetableMutation struct {
// contains filtered or unexported fields
}
TimetableMutation represents an operation that mutates the Timetable nodes in the graph.
func (*TimetableMutation) AddDuration ¶
func (m *TimetableMutation) AddDuration(i int)
AddDuration adds i to the "duration" field.
func (*TimetableMutation) AddField ¶
func (m *TimetableMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TimetableMutation) AddOperatorsOnDutyIDs ¶
func (m *TimetableMutation) AddOperatorsOnDutyIDs(ids ...uuid.UUID)
AddOperatorsOnDutyIDs adds the "operators_on_duty" edge to the Operator entity by ids.
func (*TimetableMutation) AddedDuration ¶
func (m *TimetableMutation) AddedDuration() (r int, exists bool)
AddedDuration returns the value that was added to the "duration" field in this mutation.
func (*TimetableMutation) AddedEdges ¶
func (m *TimetableMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TimetableMutation) AddedField ¶
func (m *TimetableMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TimetableMutation) AddedFields ¶
func (m *TimetableMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TimetableMutation) AddedIDs ¶
func (m *TimetableMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TimetableMutation) AddressCleared ¶
func (m *TimetableMutation) AddressCleared() bool
AddressCleared reports if the "address" edge to the Address entity was cleared.
func (*TimetableMutation) AddressID ¶
func (m *TimetableMutation) AddressID() (id uuid.UUID, exists bool)
AddressID returns the "address" edge ID in the mutation.
func (*TimetableMutation) AddressIDs ¶
func (m *TimetableMutation) AddressIDs() (ids []uuid.UUID)
AddressIDs returns the "address" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AddressID instead. It exists only for internal usage by the builders.
func (*TimetableMutation) AvailabilityByEmail ¶
func (m *TimetableMutation) AvailabilityByEmail() (r string, exists bool)
AvailabilityByEmail returns the value of the "availability_by_email" field in the mutation.
func (*TimetableMutation) AvailabilityByEmailCleared ¶
func (m *TimetableMutation) AvailabilityByEmailCleared() bool
AvailabilityByEmailCleared returns if the "availability_by_email" field was cleared in this mutation.
func (*TimetableMutation) AvailabilityByPhone ¶
func (m *TimetableMutation) AvailabilityByPhone() (r string, exists bool)
AvailabilityByPhone returns the value of the "availability_by_phone" field in the mutation.
func (*TimetableMutation) AvailabilityByPhoneCleared ¶
func (m *TimetableMutation) AvailabilityByPhoneCleared() bool
AvailabilityByPhoneCleared returns if the "availability_by_phone" field was cleared in this mutation.
func (*TimetableMutation) AvailabilityBySms ¶
func (m *TimetableMutation) AvailabilityBySms() (r string, exists bool)
AvailabilityBySms returns the value of the "availability_by_sms" field in the mutation.
func (*TimetableMutation) AvailabilityBySmsCleared ¶
func (m *TimetableMutation) AvailabilityBySmsCleared() bool
AvailabilityBySmsCleared returns if the "availability_by_sms" field was cleared in this mutation.
func (*TimetableMutation) AvailabilityByWhatsapp ¶
func (m *TimetableMutation) AvailabilityByWhatsapp() (r string, exists bool)
AvailabilityByWhatsapp returns the value of the "availability_by_whatsapp" field in the mutation.
func (*TimetableMutation) AvailabilityByWhatsappCleared ¶
func (m *TimetableMutation) AvailabilityByWhatsappCleared() bool
AvailabilityByWhatsappCleared returns if the "availability_by_whatsapp" field was cleared in this mutation.
func (*TimetableMutation) ClearAddress ¶
func (m *TimetableMutation) ClearAddress()
ClearAddress clears the "address" edge to the Address entity.
func (*TimetableMutation) ClearAvailabilityByEmail ¶
func (m *TimetableMutation) ClearAvailabilityByEmail()
ClearAvailabilityByEmail clears the value of the "availability_by_email" field.
func (*TimetableMutation) ClearAvailabilityByPhone ¶
func (m *TimetableMutation) ClearAvailabilityByPhone()
ClearAvailabilityByPhone clears the value of the "availability_by_phone" field.
func (*TimetableMutation) ClearAvailabilityBySms ¶
func (m *TimetableMutation) ClearAvailabilityBySms()
ClearAvailabilityBySms clears the value of the "availability_by_sms" field.
func (*TimetableMutation) ClearAvailabilityByWhatsapp ¶
func (m *TimetableMutation) ClearAvailabilityByWhatsapp()
ClearAvailabilityByWhatsapp clears the value of the "availability_by_whatsapp" field.
func (*TimetableMutation) ClearComment ¶
func (m *TimetableMutation) ClearComment()
ClearComment clears the value of the "comment" field.
func (*TimetableMutation) ClearDatetimeTo ¶
func (m *TimetableMutation) ClearDatetimeTo()
ClearDatetimeTo clears the value of the "datetime_to" field.
func (*TimetableMutation) ClearDeletedAt ¶
func (m *TimetableMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*TimetableMutation) ClearDuration ¶
func (m *TimetableMutation) ClearDuration()
ClearDuration clears the value of the "duration" field.
func (*TimetableMutation) ClearEdge ¶
func (m *TimetableMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*TimetableMutation) ClearField ¶
func (m *TimetableMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*TimetableMutation) ClearOperatorsOnDuty ¶
func (m *TimetableMutation) ClearOperatorsOnDuty()
ClearOperatorsOnDuty clears the "operators_on_duty" edge to the Operator entity.
func (*TimetableMutation) ClearedEdges ¶
func (m *TimetableMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TimetableMutation) ClearedFields ¶
func (m *TimetableMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TimetableMutation) Client ¶
func (m TimetableMutation) 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 (*TimetableMutation) Comment ¶
func (m *TimetableMutation) Comment() (r string, exists bool)
Comment returns the value of the "comment" field in the mutation.
func (*TimetableMutation) CommentCleared ¶
func (m *TimetableMutation) CommentCleared() bool
CommentCleared returns if the "comment" field was cleared in this mutation.
func (*TimetableMutation) CreatedAt ¶
func (m *TimetableMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*TimetableMutation) DatetimeFrom ¶
func (m *TimetableMutation) DatetimeFrom() (r time.Time, exists bool)
DatetimeFrom returns the value of the "datetime_from" field in the mutation.
func (*TimetableMutation) DatetimeTo ¶
func (m *TimetableMutation) DatetimeTo() (r time.Time, exists bool)
DatetimeTo returns the value of the "datetime_to" field in the mutation.
func (*TimetableMutation) DatetimeToCleared ¶
func (m *TimetableMutation) DatetimeToCleared() bool
DatetimeToCleared returns if the "datetime_to" field was cleared in this mutation.
func (*TimetableMutation) DeletedAt ¶
func (m *TimetableMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*TimetableMutation) DeletedAtCleared ¶
func (m *TimetableMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*TimetableMutation) Duration ¶
func (m *TimetableMutation) Duration() (r int, exists bool)
Duration returns the value of the "duration" field in the mutation.
func (*TimetableMutation) DurationCleared ¶
func (m *TimetableMutation) DurationCleared() bool
DurationCleared returns if the "duration" field was cleared in this mutation.
func (*TimetableMutation) EdgeCleared ¶
func (m *TimetableMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TimetableMutation) Field ¶
func (m *TimetableMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TimetableMutation) FieldCleared ¶
func (m *TimetableMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TimetableMutation) Fields ¶
func (m *TimetableMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*TimetableMutation) ID ¶
func (m *TimetableMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*TimetableMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*TimetableMutation) OldAvailabilityByEmail ¶
func (m *TimetableMutation) OldAvailabilityByEmail(ctx context.Context) (v string, err error)
OldAvailabilityByEmail returns the old "availability_by_email" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldAvailabilityByPhone ¶
func (m *TimetableMutation) OldAvailabilityByPhone(ctx context.Context) (v string, err error)
OldAvailabilityByPhone returns the old "availability_by_phone" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldAvailabilityBySms ¶
func (m *TimetableMutation) OldAvailabilityBySms(ctx context.Context) (v string, err error)
OldAvailabilityBySms returns the old "availability_by_sms" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldAvailabilityByWhatsapp ¶
func (m *TimetableMutation) OldAvailabilityByWhatsapp(ctx context.Context) (v string, err error)
OldAvailabilityByWhatsapp returns the old "availability_by_whatsapp" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldComment ¶
func (m *TimetableMutation) OldComment(ctx context.Context) (v string, err error)
OldComment returns the old "comment" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldDatetimeFrom ¶
OldDatetimeFrom returns the old "datetime_from" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldDatetimeTo ¶
OldDatetimeTo returns the old "datetime_to" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldDuration ¶
func (m *TimetableMutation) OldDuration(ctx context.Context) (v int, err error)
OldDuration returns the old "duration" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*TimetableMutation) OldTimeWholeDay ¶
func (m *TimetableMutation) OldTimeWholeDay(ctx context.Context) (v bool, err error)
OldTimeWholeDay returns the old "time_whole_day" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldTimetableType ¶
func (m *TimetableMutation) OldTimetableType(ctx context.Context) (v timetable.TimetableType, err error)
OldTimetableType returns the old "timetable_type" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Timetable entity. If the Timetable object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TimetableMutation) OperatorsOnDutyCleared ¶
func (m *TimetableMutation) OperatorsOnDutyCleared() bool
OperatorsOnDutyCleared reports if the "operators_on_duty" edge to the Operator entity was cleared.
func (*TimetableMutation) OperatorsOnDutyIDs ¶
func (m *TimetableMutation) OperatorsOnDutyIDs() (ids []uuid.UUID)
OperatorsOnDutyIDs returns the "operators_on_duty" edge IDs in the mutation.
func (*TimetableMutation) RemoveOperatorsOnDutyIDs ¶
func (m *TimetableMutation) RemoveOperatorsOnDutyIDs(ids ...uuid.UUID)
RemoveOperatorsOnDutyIDs removes the "operators_on_duty" edge to the Operator entity by IDs.
func (*TimetableMutation) RemovedEdges ¶
func (m *TimetableMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TimetableMutation) RemovedIDs ¶
func (m *TimetableMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*TimetableMutation) RemovedOperatorsOnDutyIDs ¶
func (m *TimetableMutation) RemovedOperatorsOnDutyIDs() (ids []uuid.UUID)
RemovedOperatorsOnDuty returns the removed IDs of the "operators_on_duty" edge to the Operator entity.
func (*TimetableMutation) ResetAddress ¶
func (m *TimetableMutation) ResetAddress()
ResetAddress resets all changes to the "address" edge.
func (*TimetableMutation) ResetAvailabilityByEmail ¶
func (m *TimetableMutation) ResetAvailabilityByEmail()
ResetAvailabilityByEmail resets all changes to the "availability_by_email" field.
func (*TimetableMutation) ResetAvailabilityByPhone ¶
func (m *TimetableMutation) ResetAvailabilityByPhone()
ResetAvailabilityByPhone resets all changes to the "availability_by_phone" field.
func (*TimetableMutation) ResetAvailabilityBySms ¶
func (m *TimetableMutation) ResetAvailabilityBySms()
ResetAvailabilityBySms resets all changes to the "availability_by_sms" field.
func (*TimetableMutation) ResetAvailabilityByWhatsapp ¶
func (m *TimetableMutation) ResetAvailabilityByWhatsapp()
ResetAvailabilityByWhatsapp resets all changes to the "availability_by_whatsapp" field.
func (*TimetableMutation) ResetComment ¶
func (m *TimetableMutation) ResetComment()
ResetComment resets all changes to the "comment" field.
func (*TimetableMutation) ResetCreatedAt ¶
func (m *TimetableMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*TimetableMutation) ResetDatetimeFrom ¶
func (m *TimetableMutation) ResetDatetimeFrom()
ResetDatetimeFrom resets all changes to the "datetime_from" field.
func (*TimetableMutation) ResetDatetimeTo ¶
func (m *TimetableMutation) ResetDatetimeTo()
ResetDatetimeTo resets all changes to the "datetime_to" field.
func (*TimetableMutation) ResetDeletedAt ¶
func (m *TimetableMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*TimetableMutation) ResetDuration ¶
func (m *TimetableMutation) ResetDuration()
ResetDuration resets all changes to the "duration" field.
func (*TimetableMutation) ResetEdge ¶
func (m *TimetableMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*TimetableMutation) ResetField ¶
func (m *TimetableMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*TimetableMutation) ResetOperatorsOnDuty ¶
func (m *TimetableMutation) ResetOperatorsOnDuty()
ResetOperatorsOnDuty resets all changes to the "operators_on_duty" edge.
func (*TimetableMutation) ResetTimeWholeDay ¶
func (m *TimetableMutation) ResetTimeWholeDay()
ResetTimeWholeDay resets all changes to the "time_whole_day" field.
func (*TimetableMutation) ResetTimetableType ¶
func (m *TimetableMutation) ResetTimetableType()
ResetTimetableType resets all changes to the "timetable_type" field.
func (*TimetableMutation) ResetUpdatedAt ¶
func (m *TimetableMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*TimetableMutation) SetAddressID ¶
func (m *TimetableMutation) SetAddressID(id uuid.UUID)
SetAddressID sets the "address" edge to the Address entity by id.
func (*TimetableMutation) SetAvailabilityByEmail ¶
func (m *TimetableMutation) SetAvailabilityByEmail(s string)
SetAvailabilityByEmail sets the "availability_by_email" field.
func (*TimetableMutation) SetAvailabilityByPhone ¶
func (m *TimetableMutation) SetAvailabilityByPhone(s string)
SetAvailabilityByPhone sets the "availability_by_phone" field.
func (*TimetableMutation) SetAvailabilityBySms ¶
func (m *TimetableMutation) SetAvailabilityBySms(s string)
SetAvailabilityBySms sets the "availability_by_sms" field.
func (*TimetableMutation) SetAvailabilityByWhatsapp ¶
func (m *TimetableMutation) SetAvailabilityByWhatsapp(s string)
SetAvailabilityByWhatsapp sets the "availability_by_whatsapp" field.
func (*TimetableMutation) SetComment ¶
func (m *TimetableMutation) SetComment(s string)
SetComment sets the "comment" field.
func (*TimetableMutation) SetCreatedAt ¶
func (m *TimetableMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*TimetableMutation) SetDatetimeFrom ¶
func (m *TimetableMutation) SetDatetimeFrom(t time.Time)
SetDatetimeFrom sets the "datetime_from" field.
func (*TimetableMutation) SetDatetimeTo ¶
func (m *TimetableMutation) SetDatetimeTo(t time.Time)
SetDatetimeTo sets the "datetime_to" field.
func (*TimetableMutation) SetDeletedAt ¶
func (m *TimetableMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*TimetableMutation) SetDuration ¶
func (m *TimetableMutation) SetDuration(i int)
SetDuration sets the "duration" field.
func (*TimetableMutation) SetField ¶
func (m *TimetableMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TimetableMutation) SetID ¶
func (m *TimetableMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Timetable entities.
func (*TimetableMutation) SetOp ¶
func (m *TimetableMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*TimetableMutation) SetTimeWholeDay ¶
func (m *TimetableMutation) SetTimeWholeDay(b bool)
SetTimeWholeDay sets the "time_whole_day" field.
func (*TimetableMutation) SetTimetableType ¶
func (m *TimetableMutation) SetTimetableType(tt timetable.TimetableType)
SetTimetableType sets the "timetable_type" field.
func (*TimetableMutation) SetUpdatedAt ¶
func (m *TimetableMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*TimetableMutation) TimeWholeDay ¶
func (m *TimetableMutation) TimeWholeDay() (r bool, exists bool)
TimeWholeDay returns the value of the "time_whole_day" field in the mutation.
func (*TimetableMutation) TimetableType ¶
func (m *TimetableMutation) TimetableType() (r timetable.TimetableType, exists bool)
TimetableType returns the value of the "timetable_type" field in the mutation.
func (TimetableMutation) Tx ¶
func (m TimetableMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TimetableMutation) Type ¶
func (m *TimetableMutation) Type() string
Type returns the node type of this mutation (Timetable).
func (*TimetableMutation) UpdatedAt ¶
func (m *TimetableMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*TimetableMutation) Where ¶
func (m *TimetableMutation) Where(ps ...predicate.Timetable)
Where appends a list predicates to the TimetableMutation builder.
func (*TimetableMutation) WhereP ¶
func (m *TimetableMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the TimetableMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type TimetableOrder ¶
type TimetableOrder struct { Direction OrderDirection `json:"direction"` Field *TimetableOrderField `json:"field"` }
TimetableOrder defines the ordering of Timetable.
type TimetableOrderField ¶
type TimetableOrderField struct { // Value extracts the ordering value from the given Timetable. Value func(*Timetable) (ent.Value, error) // contains filtered or unexported fields }
TimetableOrderField defines the ordering field of Timetable.
func (TimetableOrderField) MarshalGQL ¶
func (f TimetableOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (TimetableOrderField) String ¶
func (f TimetableOrderField) String() string
String implement fmt.Stringer interface.
func (*TimetableOrderField) UnmarshalGQL ¶
func (f *TimetableOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type TimetablePaginateOption ¶
type TimetablePaginateOption func(*timetablePager) error
TimetablePaginateOption enables pagination customization.
func WithTimetableFilter ¶
func WithTimetableFilter(filter func(*TimetableQuery) (*TimetableQuery, error)) TimetablePaginateOption
WithTimetableFilter configures pagination filter.
func WithTimetableOrder ¶
func WithTimetableOrder(order []*TimetableOrder) TimetablePaginateOption
WithTimetableOrder configures pagination ordering.
type TimetableQuery ¶
type TimetableQuery struct {
// contains filtered or unexported fields
}
TimetableQuery is the builder for querying Timetable entities.
func (*TimetableQuery) Aggregate ¶
func (tq *TimetableQuery) Aggregate(fns ...AggregateFunc) *TimetableSelect
Aggregate returns a TimetableSelect configured with the given aggregations.
func (*TimetableQuery) All ¶
func (tq *TimetableQuery) All(ctx context.Context) ([]*Timetable, error)
All executes the query and returns a list of Timetables.
func (*TimetableQuery) AllX ¶
func (tq *TimetableQuery) AllX(ctx context.Context) []*Timetable
AllX is like All, but panics if an error occurs.
func (*TimetableQuery) Clone ¶
func (tq *TimetableQuery) Clone() *TimetableQuery
Clone returns a duplicate of the TimetableQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TimetableQuery) CollectFields ¶
func (t *TimetableQuery) CollectFields(ctx context.Context, satisfies ...string) (*TimetableQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*TimetableQuery) Count ¶
func (tq *TimetableQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*TimetableQuery) CountX ¶
func (tq *TimetableQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*TimetableQuery) Exist ¶
func (tq *TimetableQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TimetableQuery) ExistX ¶
func (tq *TimetableQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TimetableQuery) First ¶
func (tq *TimetableQuery) First(ctx context.Context) (*Timetable, error)
First returns the first Timetable entity from the query. Returns a *NotFoundError when no Timetable was found.
func (*TimetableQuery) FirstID ¶
FirstID returns the first Timetable ID from the query. Returns a *NotFoundError when no Timetable ID was found.
func (*TimetableQuery) FirstIDX ¶
func (tq *TimetableQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*TimetableQuery) FirstX ¶
func (tq *TimetableQuery) FirstX(ctx context.Context) *Timetable
FirstX is like First, but panics if an error occurs.
func (*TimetableQuery) GroupBy ¶
func (tq *TimetableQuery) GroupBy(field string, fields ...string) *TimetableGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Timetable.Query(). GroupBy(timetable.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TimetableQuery) IDsX ¶
func (tq *TimetableQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*TimetableQuery) Limit ¶
func (tq *TimetableQuery) Limit(limit int) *TimetableQuery
Limit the number of records to be returned by this query.
func (*TimetableQuery) Offset ¶
func (tq *TimetableQuery) Offset(offset int) *TimetableQuery
Offset to start from.
func (*TimetableQuery) Only ¶
func (tq *TimetableQuery) Only(ctx context.Context) (*Timetable, error)
Only returns a single Timetable entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Timetable entity is found. Returns a *NotFoundError when no Timetable entities are found.
func (*TimetableQuery) OnlyID ¶
OnlyID is like Only, but returns the only Timetable ID in the query. Returns a *NotSingularError when more than one Timetable ID is found. Returns a *NotFoundError when no entities are found.
func (*TimetableQuery) OnlyIDX ¶
func (tq *TimetableQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*TimetableQuery) OnlyX ¶
func (tq *TimetableQuery) OnlyX(ctx context.Context) *Timetable
OnlyX is like Only, but panics if an error occurs.
func (*TimetableQuery) Order ¶
func (tq *TimetableQuery) Order(o ...timetable.OrderOption) *TimetableQuery
Order specifies how the records should be ordered.
func (*TimetableQuery) Paginate ¶
func (t *TimetableQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...TimetablePaginateOption, ) (*TimetableConnection, error)
Paginate executes the query and returns a relay based cursor connection to Timetable.
func (*TimetableQuery) QueryAddress ¶
func (tq *TimetableQuery) QueryAddress() *AddressQuery
QueryAddress chains the current query on the "address" edge.
func (*TimetableQuery) QueryOperatorsOnDuty ¶
func (tq *TimetableQuery) QueryOperatorsOnDuty() *OperatorQuery
QueryOperatorsOnDuty chains the current query on the "operators_on_duty" edge.
func (*TimetableQuery) Select ¶
func (tq *TimetableQuery) Select(fields ...string) *TimetableSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Timetable.Query(). Select(timetable.FieldCreatedAt). Scan(ctx, &v)
func (*TimetableQuery) Unique ¶
func (tq *TimetableQuery) Unique(unique bool) *TimetableQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*TimetableQuery) Where ¶
func (tq *TimetableQuery) Where(ps ...predicate.Timetable) *TimetableQuery
Where adds a new predicate for the TimetableQuery builder.
func (*TimetableQuery) WithAddress ¶
func (tq *TimetableQuery) WithAddress(opts ...func(*AddressQuery)) *TimetableQuery
WithAddress tells the query-builder to eager-load the nodes that are connected to the "address" edge. The optional arguments are used to configure the query builder of the edge.
func (*TimetableQuery) WithNamedOperatorsOnDuty ¶
func (tq *TimetableQuery) WithNamedOperatorsOnDuty(name string, opts ...func(*OperatorQuery)) *TimetableQuery
WithNamedOperatorsOnDuty tells the query-builder to eager-load the nodes that are connected to the "operators_on_duty" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*TimetableQuery) WithOperatorsOnDuty ¶
func (tq *TimetableQuery) WithOperatorsOnDuty(opts ...func(*OperatorQuery)) *TimetableQuery
WithOperatorsOnDuty tells the query-builder to eager-load the nodes that are connected to the "operators_on_duty" edge. The optional arguments are used to configure the query builder of the edge.
type TimetableSelect ¶
type TimetableSelect struct { *TimetableQuery // contains filtered or unexported fields }
TimetableSelect is the builder for selecting fields of Timetable entities.
func (*TimetableSelect) Aggregate ¶
func (ts *TimetableSelect) Aggregate(fns ...AggregateFunc) *TimetableSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TimetableSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TimetableSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TimetableSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TimetableSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TimetableSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TimetableSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TimetableSelect) Scan ¶
func (ts *TimetableSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TimetableSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TimetableUpdate ¶
type TimetableUpdate struct {
// contains filtered or unexported fields
}
TimetableUpdate is the builder for updating Timetable entities.
func (*TimetableUpdate) AddDuration ¶
func (tu *TimetableUpdate) AddDuration(i int) *TimetableUpdate
AddDuration adds i to the "duration" field.
func (*TimetableUpdate) AddOperatorsOnDuty ¶
func (tu *TimetableUpdate) AddOperatorsOnDuty(o ...*Operator) *TimetableUpdate
AddOperatorsOnDuty adds the "operators_on_duty" edges to the Operator entity.
func (*TimetableUpdate) AddOperatorsOnDutyIDs ¶
func (tu *TimetableUpdate) AddOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdate
AddOperatorsOnDutyIDs adds the "operators_on_duty" edge to the Operator entity by IDs.
func (*TimetableUpdate) ClearAddress ¶
func (tu *TimetableUpdate) ClearAddress() *TimetableUpdate
ClearAddress clears the "address" edge to the Address entity.
func (*TimetableUpdate) ClearAvailabilityByEmail ¶
func (tu *TimetableUpdate) ClearAvailabilityByEmail() *TimetableUpdate
ClearAvailabilityByEmail clears the value of the "availability_by_email" field.
func (*TimetableUpdate) ClearAvailabilityByPhone ¶
func (tu *TimetableUpdate) ClearAvailabilityByPhone() *TimetableUpdate
ClearAvailabilityByPhone clears the value of the "availability_by_phone" field.
func (*TimetableUpdate) ClearAvailabilityBySms ¶
func (tu *TimetableUpdate) ClearAvailabilityBySms() *TimetableUpdate
ClearAvailabilityBySms clears the value of the "availability_by_sms" field.
func (*TimetableUpdate) ClearAvailabilityByWhatsapp ¶
func (tu *TimetableUpdate) ClearAvailabilityByWhatsapp() *TimetableUpdate
ClearAvailabilityByWhatsapp clears the value of the "availability_by_whatsapp" field.
func (*TimetableUpdate) ClearComment ¶
func (tu *TimetableUpdate) ClearComment() *TimetableUpdate
ClearComment clears the value of the "comment" field.
func (*TimetableUpdate) ClearDatetimeTo ¶
func (tu *TimetableUpdate) ClearDatetimeTo() *TimetableUpdate
ClearDatetimeTo clears the value of the "datetime_to" field.
func (*TimetableUpdate) ClearDeletedAt ¶
func (tu *TimetableUpdate) ClearDeletedAt() *TimetableUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*TimetableUpdate) ClearDuration ¶
func (tu *TimetableUpdate) ClearDuration() *TimetableUpdate
ClearDuration clears the value of the "duration" field.
func (*TimetableUpdate) ClearOperatorsOnDuty ¶
func (tu *TimetableUpdate) ClearOperatorsOnDuty() *TimetableUpdate
ClearOperatorsOnDuty clears all "operators_on_duty" edges to the Operator entity.
func (*TimetableUpdate) Exec ¶
func (tu *TimetableUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TimetableUpdate) ExecX ¶
func (tu *TimetableUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TimetableUpdate) Mutation ¶
func (tu *TimetableUpdate) Mutation() *TimetableMutation
Mutation returns the TimetableMutation object of the builder.
func (*TimetableUpdate) RemoveOperatorsOnDuty ¶
func (tu *TimetableUpdate) RemoveOperatorsOnDuty(o ...*Operator) *TimetableUpdate
RemoveOperatorsOnDuty removes "operators_on_duty" edges to Operator entities.
func (*TimetableUpdate) RemoveOperatorsOnDutyIDs ¶
func (tu *TimetableUpdate) RemoveOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdate
RemoveOperatorsOnDutyIDs removes the "operators_on_duty" edge to Operator entities by IDs.
func (*TimetableUpdate) Save ¶
func (tu *TimetableUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TimetableUpdate) SaveX ¶
func (tu *TimetableUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TimetableUpdate) SetAddress ¶
func (tu *TimetableUpdate) SetAddress(a *Address) *TimetableUpdate
SetAddress sets the "address" edge to the Address entity.
func (*TimetableUpdate) SetAddressID ¶
func (tu *TimetableUpdate) SetAddressID(id uuid.UUID) *TimetableUpdate
SetAddressID sets the "address" edge to the Address entity by ID.
func (*TimetableUpdate) SetAvailabilityByEmail ¶
func (tu *TimetableUpdate) SetAvailabilityByEmail(s string) *TimetableUpdate
SetAvailabilityByEmail sets the "availability_by_email" field.
func (*TimetableUpdate) SetAvailabilityByPhone ¶
func (tu *TimetableUpdate) SetAvailabilityByPhone(s string) *TimetableUpdate
SetAvailabilityByPhone sets the "availability_by_phone" field.
func (*TimetableUpdate) SetAvailabilityBySms ¶
func (tu *TimetableUpdate) SetAvailabilityBySms(s string) *TimetableUpdate
SetAvailabilityBySms sets the "availability_by_sms" field.
func (*TimetableUpdate) SetAvailabilityByWhatsapp ¶
func (tu *TimetableUpdate) SetAvailabilityByWhatsapp(s string) *TimetableUpdate
SetAvailabilityByWhatsapp sets the "availability_by_whatsapp" field.
func (*TimetableUpdate) SetComment ¶
func (tu *TimetableUpdate) SetComment(s string) *TimetableUpdate
SetComment sets the "comment" field.
func (*TimetableUpdate) SetDatetimeFrom ¶
func (tu *TimetableUpdate) SetDatetimeFrom(t time.Time) *TimetableUpdate
SetDatetimeFrom sets the "datetime_from" field.
func (*TimetableUpdate) SetDatetimeTo ¶
func (tu *TimetableUpdate) SetDatetimeTo(t time.Time) *TimetableUpdate
SetDatetimeTo sets the "datetime_to" field.
func (*TimetableUpdate) SetDeletedAt ¶
func (tu *TimetableUpdate) SetDeletedAt(t time.Time) *TimetableUpdate
SetDeletedAt sets the "deleted_at" field.
func (*TimetableUpdate) SetDuration ¶
func (tu *TimetableUpdate) SetDuration(i int) *TimetableUpdate
SetDuration sets the "duration" field.
func (*TimetableUpdate) SetInput ¶
func (c *TimetableUpdate) SetInput(i UpdateTimetableInput) *TimetableUpdate
SetInput applies the change-set in the UpdateTimetableInput on the TimetableUpdate builder.
func (*TimetableUpdate) SetNillableAvailabilityByEmail ¶
func (tu *TimetableUpdate) SetNillableAvailabilityByEmail(s *string) *TimetableUpdate
SetNillableAvailabilityByEmail sets the "availability_by_email" field if the given value is not nil.
func (*TimetableUpdate) SetNillableAvailabilityByPhone ¶
func (tu *TimetableUpdate) SetNillableAvailabilityByPhone(s *string) *TimetableUpdate
SetNillableAvailabilityByPhone sets the "availability_by_phone" field if the given value is not nil.
func (*TimetableUpdate) SetNillableAvailabilityBySms ¶
func (tu *TimetableUpdate) SetNillableAvailabilityBySms(s *string) *TimetableUpdate
SetNillableAvailabilityBySms sets the "availability_by_sms" field if the given value is not nil.
func (*TimetableUpdate) SetNillableAvailabilityByWhatsapp ¶
func (tu *TimetableUpdate) SetNillableAvailabilityByWhatsapp(s *string) *TimetableUpdate
SetNillableAvailabilityByWhatsapp sets the "availability_by_whatsapp" field if the given value is not nil.
func (*TimetableUpdate) SetNillableComment ¶
func (tu *TimetableUpdate) SetNillableComment(s *string) *TimetableUpdate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*TimetableUpdate) SetNillableDatetimeTo ¶
func (tu *TimetableUpdate) SetNillableDatetimeTo(t *time.Time) *TimetableUpdate
SetNillableDatetimeTo sets the "datetime_to" field if the given value is not nil.
func (*TimetableUpdate) SetNillableDeletedAt ¶
func (tu *TimetableUpdate) SetNillableDeletedAt(t *time.Time) *TimetableUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*TimetableUpdate) SetNillableDuration ¶
func (tu *TimetableUpdate) SetNillableDuration(i *int) *TimetableUpdate
SetNillableDuration sets the "duration" field if the given value is not nil.
func (*TimetableUpdate) SetNillableTimeWholeDay ¶
func (tu *TimetableUpdate) SetNillableTimeWholeDay(b *bool) *TimetableUpdate
SetNillableTimeWholeDay sets the "time_whole_day" field if the given value is not nil.
func (*TimetableUpdate) SetNillableTimetableType ¶
func (tu *TimetableUpdate) SetNillableTimetableType(tt *timetable.TimetableType) *TimetableUpdate
SetNillableTimetableType sets the "timetable_type" field if the given value is not nil.
func (*TimetableUpdate) SetTimeWholeDay ¶
func (tu *TimetableUpdate) SetTimeWholeDay(b bool) *TimetableUpdate
SetTimeWholeDay sets the "time_whole_day" field.
func (*TimetableUpdate) SetTimetableType ¶
func (tu *TimetableUpdate) SetTimetableType(tt timetable.TimetableType) *TimetableUpdate
SetTimetableType sets the "timetable_type" field.
func (*TimetableUpdate) SetUpdatedAt ¶
func (tu *TimetableUpdate) SetUpdatedAt(t time.Time) *TimetableUpdate
SetUpdatedAt sets the "updated_at" field.
func (*TimetableUpdate) Where ¶
func (tu *TimetableUpdate) Where(ps ...predicate.Timetable) *TimetableUpdate
Where appends a list predicates to the TimetableUpdate builder.
type TimetableUpdateOne ¶
type TimetableUpdateOne struct {
// contains filtered or unexported fields
}
TimetableUpdateOne is the builder for updating a single Timetable entity.
func (*TimetableUpdateOne) AddDuration ¶
func (tuo *TimetableUpdateOne) AddDuration(i int) *TimetableUpdateOne
AddDuration adds i to the "duration" field.
func (*TimetableUpdateOne) AddOperatorsOnDuty ¶
func (tuo *TimetableUpdateOne) AddOperatorsOnDuty(o ...*Operator) *TimetableUpdateOne
AddOperatorsOnDuty adds the "operators_on_duty" edges to the Operator entity.
func (*TimetableUpdateOne) AddOperatorsOnDutyIDs ¶
func (tuo *TimetableUpdateOne) AddOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdateOne
AddOperatorsOnDutyIDs adds the "operators_on_duty" edge to the Operator entity by IDs.
func (*TimetableUpdateOne) ClearAddress ¶
func (tuo *TimetableUpdateOne) ClearAddress() *TimetableUpdateOne
ClearAddress clears the "address" edge to the Address entity.
func (*TimetableUpdateOne) ClearAvailabilityByEmail ¶
func (tuo *TimetableUpdateOne) ClearAvailabilityByEmail() *TimetableUpdateOne
ClearAvailabilityByEmail clears the value of the "availability_by_email" field.
func (*TimetableUpdateOne) ClearAvailabilityByPhone ¶
func (tuo *TimetableUpdateOne) ClearAvailabilityByPhone() *TimetableUpdateOne
ClearAvailabilityByPhone clears the value of the "availability_by_phone" field.
func (*TimetableUpdateOne) ClearAvailabilityBySms ¶
func (tuo *TimetableUpdateOne) ClearAvailabilityBySms() *TimetableUpdateOne
ClearAvailabilityBySms clears the value of the "availability_by_sms" field.
func (*TimetableUpdateOne) ClearAvailabilityByWhatsapp ¶
func (tuo *TimetableUpdateOne) ClearAvailabilityByWhatsapp() *TimetableUpdateOne
ClearAvailabilityByWhatsapp clears the value of the "availability_by_whatsapp" field.
func (*TimetableUpdateOne) ClearComment ¶
func (tuo *TimetableUpdateOne) ClearComment() *TimetableUpdateOne
ClearComment clears the value of the "comment" field.
func (*TimetableUpdateOne) ClearDatetimeTo ¶
func (tuo *TimetableUpdateOne) ClearDatetimeTo() *TimetableUpdateOne
ClearDatetimeTo clears the value of the "datetime_to" field.
func (*TimetableUpdateOne) ClearDeletedAt ¶
func (tuo *TimetableUpdateOne) ClearDeletedAt() *TimetableUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*TimetableUpdateOne) ClearDuration ¶
func (tuo *TimetableUpdateOne) ClearDuration() *TimetableUpdateOne
ClearDuration clears the value of the "duration" field.
func (*TimetableUpdateOne) ClearOperatorsOnDuty ¶
func (tuo *TimetableUpdateOne) ClearOperatorsOnDuty() *TimetableUpdateOne
ClearOperatorsOnDuty clears all "operators_on_duty" edges to the Operator entity.
func (*TimetableUpdateOne) Exec ¶
func (tuo *TimetableUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TimetableUpdateOne) ExecX ¶
func (tuo *TimetableUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TimetableUpdateOne) Mutation ¶
func (tuo *TimetableUpdateOne) Mutation() *TimetableMutation
Mutation returns the TimetableMutation object of the builder.
func (*TimetableUpdateOne) RemoveOperatorsOnDuty ¶
func (tuo *TimetableUpdateOne) RemoveOperatorsOnDuty(o ...*Operator) *TimetableUpdateOne
RemoveOperatorsOnDuty removes "operators_on_duty" edges to Operator entities.
func (*TimetableUpdateOne) RemoveOperatorsOnDutyIDs ¶
func (tuo *TimetableUpdateOne) RemoveOperatorsOnDutyIDs(ids ...uuid.UUID) *TimetableUpdateOne
RemoveOperatorsOnDutyIDs removes the "operators_on_duty" edge to Operator entities by IDs.
func (*TimetableUpdateOne) Save ¶
func (tuo *TimetableUpdateOne) Save(ctx context.Context) (*Timetable, error)
Save executes the query and returns the updated Timetable entity.
func (*TimetableUpdateOne) SaveX ¶
func (tuo *TimetableUpdateOne) SaveX(ctx context.Context) *Timetable
SaveX is like Save, but panics if an error occurs.
func (*TimetableUpdateOne) Select ¶
func (tuo *TimetableUpdateOne) Select(field string, fields ...string) *TimetableUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TimetableUpdateOne) SetAddress ¶
func (tuo *TimetableUpdateOne) SetAddress(a *Address) *TimetableUpdateOne
SetAddress sets the "address" edge to the Address entity.
func (*TimetableUpdateOne) SetAddressID ¶
func (tuo *TimetableUpdateOne) SetAddressID(id uuid.UUID) *TimetableUpdateOne
SetAddressID sets the "address" edge to the Address entity by ID.
func (*TimetableUpdateOne) SetAvailabilityByEmail ¶
func (tuo *TimetableUpdateOne) SetAvailabilityByEmail(s string) *TimetableUpdateOne
SetAvailabilityByEmail sets the "availability_by_email" field.
func (*TimetableUpdateOne) SetAvailabilityByPhone ¶
func (tuo *TimetableUpdateOne) SetAvailabilityByPhone(s string) *TimetableUpdateOne
SetAvailabilityByPhone sets the "availability_by_phone" field.
func (*TimetableUpdateOne) SetAvailabilityBySms ¶
func (tuo *TimetableUpdateOne) SetAvailabilityBySms(s string) *TimetableUpdateOne
SetAvailabilityBySms sets the "availability_by_sms" field.
func (*TimetableUpdateOne) SetAvailabilityByWhatsapp ¶
func (tuo *TimetableUpdateOne) SetAvailabilityByWhatsapp(s string) *TimetableUpdateOne
SetAvailabilityByWhatsapp sets the "availability_by_whatsapp" field.
func (*TimetableUpdateOne) SetComment ¶
func (tuo *TimetableUpdateOne) SetComment(s string) *TimetableUpdateOne
SetComment sets the "comment" field.
func (*TimetableUpdateOne) SetDatetimeFrom ¶
func (tuo *TimetableUpdateOne) SetDatetimeFrom(t time.Time) *TimetableUpdateOne
SetDatetimeFrom sets the "datetime_from" field.
func (*TimetableUpdateOne) SetDatetimeTo ¶
func (tuo *TimetableUpdateOne) SetDatetimeTo(t time.Time) *TimetableUpdateOne
SetDatetimeTo sets the "datetime_to" field.
func (*TimetableUpdateOne) SetDeletedAt ¶
func (tuo *TimetableUpdateOne) SetDeletedAt(t time.Time) *TimetableUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*TimetableUpdateOne) SetDuration ¶
func (tuo *TimetableUpdateOne) SetDuration(i int) *TimetableUpdateOne
SetDuration sets the "duration" field.
func (*TimetableUpdateOne) SetInput ¶
func (c *TimetableUpdateOne) SetInput(i UpdateTimetableInput) *TimetableUpdateOne
SetInput applies the change-set in the UpdateTimetableInput on the TimetableUpdateOne builder.
func (*TimetableUpdateOne) SetNillableAvailabilityByEmail ¶
func (tuo *TimetableUpdateOne) SetNillableAvailabilityByEmail(s *string) *TimetableUpdateOne
SetNillableAvailabilityByEmail sets the "availability_by_email" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableAvailabilityByPhone ¶
func (tuo *TimetableUpdateOne) SetNillableAvailabilityByPhone(s *string) *TimetableUpdateOne
SetNillableAvailabilityByPhone sets the "availability_by_phone" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableAvailabilityBySms ¶
func (tuo *TimetableUpdateOne) SetNillableAvailabilityBySms(s *string) *TimetableUpdateOne
SetNillableAvailabilityBySms sets the "availability_by_sms" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableAvailabilityByWhatsapp ¶
func (tuo *TimetableUpdateOne) SetNillableAvailabilityByWhatsapp(s *string) *TimetableUpdateOne
SetNillableAvailabilityByWhatsapp sets the "availability_by_whatsapp" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableComment ¶
func (tuo *TimetableUpdateOne) SetNillableComment(s *string) *TimetableUpdateOne
SetNillableComment sets the "comment" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableDatetimeTo ¶
func (tuo *TimetableUpdateOne) SetNillableDatetimeTo(t *time.Time) *TimetableUpdateOne
SetNillableDatetimeTo sets the "datetime_to" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableDeletedAt ¶
func (tuo *TimetableUpdateOne) SetNillableDeletedAt(t *time.Time) *TimetableUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableDuration ¶
func (tuo *TimetableUpdateOne) SetNillableDuration(i *int) *TimetableUpdateOne
SetNillableDuration sets the "duration" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableTimeWholeDay ¶
func (tuo *TimetableUpdateOne) SetNillableTimeWholeDay(b *bool) *TimetableUpdateOne
SetNillableTimeWholeDay sets the "time_whole_day" field if the given value is not nil.
func (*TimetableUpdateOne) SetNillableTimetableType ¶
func (tuo *TimetableUpdateOne) SetNillableTimetableType(tt *timetable.TimetableType) *TimetableUpdateOne
SetNillableTimetableType sets the "timetable_type" field if the given value is not nil.
func (*TimetableUpdateOne) SetTimeWholeDay ¶
func (tuo *TimetableUpdateOne) SetTimeWholeDay(b bool) *TimetableUpdateOne
SetTimeWholeDay sets the "time_whole_day" field.
func (*TimetableUpdateOne) SetTimetableType ¶
func (tuo *TimetableUpdateOne) SetTimetableType(tt timetable.TimetableType) *TimetableUpdateOne
SetTimetableType sets the "timetable_type" field.
func (*TimetableUpdateOne) SetUpdatedAt ¶
func (tuo *TimetableUpdateOne) SetUpdatedAt(t time.Time) *TimetableUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*TimetableUpdateOne) Where ¶
func (tuo *TimetableUpdateOne) Where(ps ...predicate.Timetable) *TimetableUpdateOne
Where appends a list predicates to the TimetableUpdate builder.
type TimetableWhereInput ¶
type TimetableWhereInput struct { Predicates []predicate.Timetable `json:"-"` Not *TimetableWhereInput `json:"not,omitempty"` Or []*TimetableWhereInput `json:"or,omitempty"` And []*TimetableWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "created_at" field predicates. CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` // "updated_at" field predicates. UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` // "deleted_at" field predicates. DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` // "timetable_type" field predicates. TimetableType *timetable.TimetableType `json:"timetableType,omitempty"` TimetableTypeNEQ *timetable.TimetableType `json:"timetableTypeNEQ,omitempty"` TimetableTypeIn []timetable.TimetableType `json:"timetableTypeIn,omitempty"` TimetableTypeNotIn []timetable.TimetableType `json:"timetableTypeNotIn,omitempty"` // "datetime_from" field predicates. DatetimeFrom *time.Time `json:"datetimeFrom,omitempty"` DatetimeFromNEQ *time.Time `json:"datetimeFromNEQ,omitempty"` DatetimeFromIn []time.Time `json:"datetimeFromIn,omitempty"` DatetimeFromNotIn []time.Time `json:"datetimeFromNotIn,omitempty"` DatetimeFromGT *time.Time `json:"datetimeFromGT,omitempty"` DatetimeFromGTE *time.Time `json:"datetimeFromGTE,omitempty"` DatetimeFromLT *time.Time `json:"datetimeFromLT,omitempty"` DatetimeFromLTE *time.Time `json:"datetimeFromLTE,omitempty"` // "duration" field predicates. Duration *int `json:"duration,omitempty"` DurationNEQ *int `json:"durationNEQ,omitempty"` DurationIn []int `json:"durationIn,omitempty"` DurationNotIn []int `json:"durationNotIn,omitempty"` DurationGT *int `json:"durationGT,omitempty"` DurationGTE *int `json:"durationGTE,omitempty"` DurationLT *int `json:"durationLT,omitempty"` DurationLTE *int `json:"durationLTE,omitempty"` DurationIsNil bool `json:"durationIsNil,omitempty"` DurationNotNil bool `json:"durationNotNil,omitempty"` // "datetime_to" field predicates. DatetimeTo *time.Time `json:"datetimeTo,omitempty"` DatetimeToNEQ *time.Time `json:"datetimeToNEQ,omitempty"` DatetimeToIn []time.Time `json:"datetimeToIn,omitempty"` DatetimeToNotIn []time.Time `json:"datetimeToNotIn,omitempty"` DatetimeToGT *time.Time `json:"datetimeToGT,omitempty"` DatetimeToGTE *time.Time `json:"datetimeToGTE,omitempty"` DatetimeToLT *time.Time `json:"datetimeToLT,omitempty"` DatetimeToLTE *time.Time `json:"datetimeToLTE,omitempty"` DatetimeToIsNil bool `json:"datetimeToIsNil,omitempty"` DatetimeToNotNil bool `json:"datetimeToNotNil,omitempty"` // "time_whole_day" field predicates. TimeWholeDay *bool `json:"timeWholeDay,omitempty"` TimeWholeDayNEQ *bool `json:"timeWholeDayNEQ,omitempty"` // "comment" field predicates. Comment *string `json:"comment,omitempty"` CommentNEQ *string `json:"commentNEQ,omitempty"` CommentIn []string `json:"commentIn,omitempty"` CommentNotIn []string `json:"commentNotIn,omitempty"` CommentGT *string `json:"commentGT,omitempty"` CommentGTE *string `json:"commentGTE,omitempty"` CommentLT *string `json:"commentLT,omitempty"` CommentLTE *string `json:"commentLTE,omitempty"` CommentContains *string `json:"commentContains,omitempty"` CommentHasPrefix *string `json:"commentHasPrefix,omitempty"` CommentHasSuffix *string `json:"commentHasSuffix,omitempty"` CommentIsNil bool `json:"commentIsNil,omitempty"` CommentNotNil bool `json:"commentNotNil,omitempty"` CommentEqualFold *string `json:"commentEqualFold,omitempty"` CommentContainsFold *string `json:"commentContainsFold,omitempty"` // "availability_by_phone" field predicates. AvailabilityByPhone *string `json:"availabilityByPhone,omitempty"` AvailabilityByPhoneNEQ *string `json:"availabilityByPhoneNEQ,omitempty"` AvailabilityByPhoneIn []string `json:"availabilityByPhoneIn,omitempty"` AvailabilityByPhoneNotIn []string `json:"availabilityByPhoneNotIn,omitempty"` AvailabilityByPhoneGT *string `json:"availabilityByPhoneGT,omitempty"` AvailabilityByPhoneGTE *string `json:"availabilityByPhoneGTE,omitempty"` AvailabilityByPhoneLT *string `json:"availabilityByPhoneLT,omitempty"` AvailabilityByPhoneLTE *string `json:"availabilityByPhoneLTE,omitempty"` AvailabilityByPhoneContains *string `json:"availabilityByPhoneContains,omitempty"` AvailabilityByPhoneHasPrefix *string `json:"availabilityByPhoneHasPrefix,omitempty"` AvailabilityByPhoneHasSuffix *string `json:"availabilityByPhoneHasSuffix,omitempty"` AvailabilityByPhoneIsNil bool `json:"availabilityByPhoneIsNil,omitempty"` AvailabilityByPhoneNotNil bool `json:"availabilityByPhoneNotNil,omitempty"` AvailabilityByPhoneEqualFold *string `json:"availabilityByPhoneEqualFold,omitempty"` AvailabilityByPhoneContainsFold *string `json:"availabilityByPhoneContainsFold,omitempty"` // "availability_by_email" field predicates. AvailabilityByEmail *string `json:"availabilityByEmail,omitempty"` AvailabilityByEmailNEQ *string `json:"availabilityByEmailNEQ,omitempty"` AvailabilityByEmailIn []string `json:"availabilityByEmailIn,omitempty"` AvailabilityByEmailNotIn []string `json:"availabilityByEmailNotIn,omitempty"` AvailabilityByEmailGT *string `json:"availabilityByEmailGT,omitempty"` AvailabilityByEmailGTE *string `json:"availabilityByEmailGTE,omitempty"` AvailabilityByEmailLT *string `json:"availabilityByEmailLT,omitempty"` AvailabilityByEmailLTE *string `json:"availabilityByEmailLTE,omitempty"` AvailabilityByEmailContains *string `json:"availabilityByEmailContains,omitempty"` AvailabilityByEmailHasPrefix *string `json:"availabilityByEmailHasPrefix,omitempty"` AvailabilityByEmailHasSuffix *string `json:"availabilityByEmailHasSuffix,omitempty"` AvailabilityByEmailIsNil bool `json:"availabilityByEmailIsNil,omitempty"` AvailabilityByEmailNotNil bool `json:"availabilityByEmailNotNil,omitempty"` AvailabilityByEmailEqualFold *string `json:"availabilityByEmailEqualFold,omitempty"` AvailabilityByEmailContainsFold *string `json:"availabilityByEmailContainsFold,omitempty"` // "availability_by_sms" field predicates. AvailabilityBySms *string `json:"availabilityBySms,omitempty"` AvailabilityBySmsNEQ *string `json:"availabilityBySmsNEQ,omitempty"` AvailabilityBySmsIn []string `json:"availabilityBySmsIn,omitempty"` AvailabilityBySmsNotIn []string `json:"availabilityBySmsNotIn,omitempty"` AvailabilityBySmsGT *string `json:"availabilityBySmsGT,omitempty"` AvailabilityBySmsGTE *string `json:"availabilityBySmsGTE,omitempty"` AvailabilityBySmsLT *string `json:"availabilityBySmsLT,omitempty"` AvailabilityBySmsLTE *string `json:"availabilityBySmsLTE,omitempty"` AvailabilityBySmsContains *string `json:"availabilityBySmsContains,omitempty"` AvailabilityBySmsHasPrefix *string `json:"availabilityBySmsHasPrefix,omitempty"` AvailabilityBySmsHasSuffix *string `json:"availabilityBySmsHasSuffix,omitempty"` AvailabilityBySmsIsNil bool `json:"availabilityBySmsIsNil,omitempty"` AvailabilityBySmsNotNil bool `json:"availabilityBySmsNotNil,omitempty"` AvailabilityBySmsEqualFold *string `json:"availabilityBySmsEqualFold,omitempty"` AvailabilityBySmsContainsFold *string `json:"availabilityBySmsContainsFold,omitempty"` // "availability_by_whatsapp" field predicates. AvailabilityByWhatsapp *string `json:"availabilityByWhatsapp,omitempty"` AvailabilityByWhatsappNEQ *string `json:"availabilityByWhatsappNEQ,omitempty"` AvailabilityByWhatsappIn []string `json:"availabilityByWhatsappIn,omitempty"` AvailabilityByWhatsappNotIn []string `json:"availabilityByWhatsappNotIn,omitempty"` AvailabilityByWhatsappGT *string `json:"availabilityByWhatsappGT,omitempty"` AvailabilityByWhatsappGTE *string `json:"availabilityByWhatsappGTE,omitempty"` AvailabilityByWhatsappLT *string `json:"availabilityByWhatsappLT,omitempty"` AvailabilityByWhatsappLTE *string `json:"availabilityByWhatsappLTE,omitempty"` AvailabilityByWhatsappContains *string `json:"availabilityByWhatsappContains,omitempty"` AvailabilityByWhatsappHasPrefix *string `json:"availabilityByWhatsappHasPrefix,omitempty"` AvailabilityByWhatsappHasSuffix *string `json:"availabilityByWhatsappHasSuffix,omitempty"` AvailabilityByWhatsappIsNil bool `json:"availabilityByWhatsappIsNil,omitempty"` AvailabilityByWhatsappNotNil bool `json:"availabilityByWhatsappNotNil,omitempty"` AvailabilityByWhatsappEqualFold *string `json:"availabilityByWhatsappEqualFold,omitempty"` AvailabilityByWhatsappContainsFold *string `json:"availabilityByWhatsappContainsFold,omitempty"` // "address" edge predicates. HasAddress *bool `json:"hasAddress,omitempty"` HasAddressWith []*AddressWhereInput `json:"hasAddressWith,omitempty"` // "operators_on_duty" edge predicates. HasOperatorsOnDuty *bool `json:"hasOperatorsOnDuty,omitempty"` HasOperatorsOnDutyWith []*OperatorWhereInput `json:"hasOperatorsOnDutyWith,omitempty"` }
TimetableWhereInput represents a where input for filtering Timetable queries.
func (*TimetableWhereInput) AddPredicates ¶
func (i *TimetableWhereInput) AddPredicates(predicates ...predicate.Timetable)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*TimetableWhereInput) Filter ¶
func (i *TimetableWhereInput) Filter(q *TimetableQuery) (*TimetableQuery, error)
Filter applies the TimetableWhereInput filter on the TimetableQuery builder.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // Address is the client for interacting with the Address builders. Address *AddressClient // AuditLog is the client for interacting with the AuditLog builders. AuditLog *AuditLogClient // Business is the client for interacting with the Business builders. Business *BusinessClient // Content is the client for interacting with the Content builders. Content *ContentClient // Operator is the client for interacting with the Operator builders. Operator *OperatorClient // Tag is the client for interacting with the Tag builders. Tag *TagClient // Timetable is the client for interacting with the Timetable builders. Timetable *TimetableClient // User is the client for interacting with the User builders. User *UserClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type UpdateAddressInput ¶ added in v0.0.8
type UpdateAddressInput struct { UpdatedAt *time.Time ClearDeletedAt bool DeletedAt *time.Time ClearAddition bool Addition *string ClearStreet bool Street *string ClearCity bool City *string ClearZip bool Zip *string ClearState bool State *string ClearCountry bool Country *string Locale *string Primary *bool ClearTelephone bool Telephone *string ClearComment bool Comment *string ClearBusiness bool BusinessID *uuid.UUID ClearTimetables bool AddTimetableIDs []uuid.UUID RemoveTimetableIDs []uuid.UUID }
UpdateAddressInput represents a mutation input for updating addresses.
func (*UpdateAddressInput) Mutate ¶ added in v0.0.8
func (i *UpdateAddressInput) Mutate(m *AddressMutation)
Mutate applies the UpdateAddressInput on the AddressMutation builder.
type UpdateBusinessInput ¶ added in v0.0.8
type UpdateBusinessInput struct { UpdatedAt *time.Time ClearDeletedAt bool DeletedAt *time.Time Name1 *string ClearName2 bool Name2 *string Alias *string ClearTelephone bool Telephone *string ClearEmail bool Email *string ClearWebsite bool Website *string ClearComment bool Comment *string Active *bool ClearAddresses bool AddAddressIDs []uuid.UUID RemoveAddressIDs []uuid.UUID ClearTags bool AddTagIDs []uuid.UUID RemoveTagIDs []uuid.UUID ClearUsers bool AddUserIDs []uuid.UUID RemoveUserIDs []uuid.UUID ClearOperators bool AddOperatorIDs []uuid.UUID RemoveOperatorIDs []uuid.UUID }
UpdateBusinessInput represents a mutation input for updating businesses.
func (*UpdateBusinessInput) Mutate ¶ added in v0.0.8
func (i *UpdateBusinessInput) Mutate(m *BusinessMutation)
Mutate applies the UpdateBusinessInput on the BusinessMutation builder.
type UpdateTimetableInput ¶
type UpdateTimetableInput struct { UpdatedAt *time.Time ClearDeletedAt bool DeletedAt *time.Time TimetableType *timetable.TimetableType DatetimeFrom *time.Time ClearDuration bool Duration *int ClearDatetimeTo bool DatetimeTo *time.Time TimeWholeDay *bool ClearComment bool Comment *string ClearAvailabilityByPhone bool AvailabilityByPhone *string ClearAvailabilityByEmail bool AvailabilityByEmail *string ClearAvailabilityBySms bool AvailabilityBySms *string ClearAvailabilityByWhatsapp bool AvailabilityByWhatsapp *string AddressID *uuid.UUID ClearOperatorsOnDuty bool AddOperatorsOnDutyIDs []uuid.UUID RemoveOperatorsOnDutyIDs []uuid.UUID }
UpdateTimetableInput represents a mutation input for updating timetables.
func (*UpdateTimetableInput) Mutate ¶
func (i *UpdateTimetableInput) Mutate(m *TimetableMutation)
Mutate applies the UpdateTimetableInput on the TimetableMutation builder.
type UpdateUserInput ¶ added in v0.0.7
type UpdateUserInput struct { UpdatedAt *time.Time ClearDeletedAt bool DeletedAt *time.Time UsePublicapi *string Login *string Surname *string Firstname *string ClearTitle bool Title *string Email *string ClearPasswordhash bool Passwordhash *string ClearComment bool Comment *string Active *bool Role *string ClearBusinesses bool AddBusinessIDs []uuid.UUID RemoveBusinessIDs []uuid.UUID ClearTags bool AddTagIDs []uuid.UUID RemoveTagIDs []uuid.UUID }
UpdateUserInput represents a mutation input for updating users.
func (*UpdateUserInput) Mutate ¶ added in v0.0.7
func (i *UpdateUserInput) Mutate(m *UserMutation)
Mutate applies the UpdateUserInput on the UserMutation builder.
type User ¶
type User struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // Set to 1 if this record should be visible in the public api UsePublicapi string `json:"-"` // Login holds the value of the "login" field. Login string `json:"-"` // The surname of a user Surname string `json:"surname,omitempty"` // The first name of a user Firstname string `json:"firstname,omitempty"` // The title of a user like PhD Title string `json:"title,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // The password hash of a user Passwordhash string `json:"-"` // A comment for this user Comment string `json:"comment,omitempty"` // Is the user active? Active bool `json:"active,omitempty"` // The role of the user Role string `json:"-"` // 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) Businesses ¶
func (*User) IsNode ¶
func (n *User) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*User) NamedBusinesses ¶
NamedBusinesses returns the Businesses named value or an error if the edge was not loaded in eager-loading with this name.
func (*User) NamedTags ¶
NamedTags returns the Tags named value or an error if the edge was not loaded in eager-loading with this name.
func (*User) QueryBusinesses ¶
func (u *User) QueryBusinesses() *BusinessQuery
QueryBusinesses queries the "businesses" edge of the User entity.
func (*User) Unwrap ¶
Unwrap unwraps the User entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*User) Update ¶
func (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 builder for creating a User entity.
func (*UserClient) CreateBulk ¶
func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
CreateBulk returns a builder for creating a bulk of User entities.
func (*UserClient) Delete ¶
func (c *UserClient) Delete() *UserDelete
Delete returns a delete builder for User.
func (*UserClient) DeleteOne ¶
func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserClient) DeleteOneID ¶
func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserClient) Intercept ¶
func (c *UserClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (*UserClient) Interceptors ¶
func (c *UserClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) QueryBusinesses ¶
func (c *UserClient) QueryBusinesses(u *User) *BusinessQuery
QueryBusinesses queries the businesses edge of a User.
func (*UserClient) QueryTags ¶
func (c *UserClient) QueryTags(u *User) *TagQuery
QueryTags queries the tags 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 uuid.UUID) *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 UserConnection ¶
type UserConnection struct { Edges []*UserEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
UserConnection is the connection containing edges to User.
type UserCreate ¶
type UserCreate struct {
// contains filtered or unexported fields
}
UserCreate is the builder for creating a User entity.
func (*UserCreate) AddBusinessIDs ¶
func (uc *UserCreate) AddBusinessIDs(ids ...uuid.UUID) *UserCreate
AddBusinessIDs adds the "businesses" edge to the Business entity by IDs.
func (*UserCreate) AddBusinesses ¶
func (uc *UserCreate) AddBusinesses(b ...*Business) *UserCreate
AddBusinesses adds the "businesses" edges to the Business entity.
func (*UserCreate) AddTagIDs ¶
func (uc *UserCreate) AddTagIDs(ids ...uuid.UUID) *UserCreate
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*UserCreate) AddTags ¶
func (uc *UserCreate) AddTags(t ...*Tag) *UserCreate
AddTags adds the "tags" edges to the Tag entity.
func (*UserCreate) Exec ¶
func (uc *UserCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreate) ExecX ¶
func (uc *UserCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
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) SetActive ¶
func (uc *UserCreate) SetActive(b bool) *UserCreate
SetActive sets the "active" field.
func (*UserCreate) SetComment ¶
func (uc *UserCreate) SetComment(s string) *UserCreate
SetComment sets the "comment" field.
func (*UserCreate) SetCreatedAt ¶
func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
SetCreatedAt sets the "created_at" field.
func (*UserCreate) SetDeletedAt ¶
func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate
SetDeletedAt sets the "deleted_at" field.
func (*UserCreate) SetEmail ¶
func (uc *UserCreate) SetEmail(s string) *UserCreate
SetEmail sets the "email" field.
func (*UserCreate) SetFirstname ¶
func (uc *UserCreate) SetFirstname(s string) *UserCreate
SetFirstname sets the "firstname" field.
func (*UserCreate) SetID ¶
func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate
SetID sets the "id" field.
func (*UserCreate) SetInput ¶ added in v0.0.7
func (c *UserCreate) SetInput(i CreateUserInput) *UserCreate
SetInput applies the change-set in the CreateUserInput on the UserCreate builder.
func (*UserCreate) SetLogin ¶
func (uc *UserCreate) SetLogin(s string) *UserCreate
SetLogin sets the "login" field.
func (*UserCreate) SetNillableActive ¶
func (uc *UserCreate) SetNillableActive(b *bool) *UserCreate
SetNillableActive sets the "active" field if the given value is not nil.
func (*UserCreate) SetNillableComment ¶
func (uc *UserCreate) SetNillableComment(s *string) *UserCreate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*UserCreate) SetNillableCreatedAt ¶
func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UserCreate) SetNillableDeletedAt ¶
func (uc *UserCreate) SetNillableDeletedAt(t *time.Time) *UserCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UserCreate) SetNillableID ¶
func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*UserCreate) SetNillablePasswordhash ¶
func (uc *UserCreate) SetNillablePasswordhash(s *string) *UserCreate
SetNillablePasswordhash sets the "passwordhash" field if the given value is not nil.
func (*UserCreate) SetNillableRole ¶
func (uc *UserCreate) SetNillableRole(s *string) *UserCreate
SetNillableRole sets the "role" 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) SetNillableUpdatedAt ¶
func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*UserCreate) SetNillableUsePublicapi ¶
func (uc *UserCreate) SetNillableUsePublicapi(s *string) *UserCreate
SetNillableUsePublicapi sets the "use_publicapi" field if the given value is not nil.
func (*UserCreate) SetPasswordhash ¶
func (uc *UserCreate) SetPasswordhash(s string) *UserCreate
SetPasswordhash sets the "passwordhash" field.
func (*UserCreate) SetRole ¶
func (uc *UserCreate) SetRole(s string) *UserCreate
SetRole sets the "role" field.
func (*UserCreate) SetSurname ¶
func (uc *UserCreate) SetSurname(s string) *UserCreate
SetSurname sets the "surname" field.
func (*UserCreate) SetTitle ¶
func (uc *UserCreate) SetTitle(s string) *UserCreate
SetTitle sets the "title" field.
func (*UserCreate) SetUpdatedAt ¶
func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
SetUpdatedAt sets the "updated_at" field.
func (*UserCreate) SetUsePublicapi ¶
func (uc *UserCreate) SetUsePublicapi(s string) *UserCreate
SetUsePublicapi sets the "use_publicapi" field.
type UserCreateBulk ¶
type UserCreateBulk struct {
// contains filtered or unexported fields
}
UserCreateBulk is the builder for creating many User entities in bulk.
func (*UserCreateBulk) Exec ¶
func (ucb *UserCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreateBulk) ExecX ¶
func (ucb *UserCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
UserDelete is the builder for deleting a User entity.
func (*UserDelete) Exec ¶
func (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 appends a list predicates to the UserDelete builder.
type UserDeleteOne ¶
type UserDeleteOne struct {
// contains filtered or unexported fields
}
UserDeleteOne is the builder for deleting a single User entity.
func (*UserDeleteOne) Exec ¶
func (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.
func (*UserDeleteOne) Where ¶
func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne
Where appends a list predicates to the UserDelete builder.
type UserEdges ¶
type UserEdges struct { // The businesses this user is associated with Businesses []*Business `json:"businesses,omitempty"` // Tags holds the value of the tags edge. Tags []*Tag `json:"tags,omitempty"` // contains filtered or unexported fields }
UserEdges holds the relations/edges for other nodes in the graph.
func (UserEdges) BusinessesOrErr ¶
BusinessesOrErr returns the Businesses 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 group-by builder for 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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Scan ¶
func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserMutation ¶
type UserMutation struct {
// contains filtered or unexported fields
}
UserMutation represents an operation that mutates the User nodes in the graph.
func (*UserMutation) Active ¶
func (m *UserMutation) Active() (r bool, exists bool)
Active returns the value of the "active" field in the mutation.
func (*UserMutation) AddBusinessIDs ¶
func (m *UserMutation) AddBusinessIDs(ids ...uuid.UUID)
AddBusinessIDs adds the "businesses" edge to the Business entity by ids.
func (*UserMutation) AddField ¶
func (m *UserMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*UserMutation) AddTagIDs ¶
func (m *UserMutation) AddTagIDs(ids ...uuid.UUID)
AddTagIDs adds the "tags" edge to the Tag entity by ids.
func (*UserMutation) AddedEdges ¶
func (m *UserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserMutation) AddedField ¶
func (m *UserMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*UserMutation) AddedFields ¶
func (m *UserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserMutation) AddedIDs ¶
func (m *UserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserMutation) BusinessesCleared ¶
func (m *UserMutation) BusinessesCleared() bool
BusinessesCleared reports if the "businesses" edge to the Business entity was cleared.
func (*UserMutation) BusinessesIDs ¶
func (m *UserMutation) BusinessesIDs() (ids []uuid.UUID)
BusinessesIDs returns the "businesses" edge IDs in the mutation.
func (*UserMutation) ClearBusinesses ¶
func (m *UserMutation) ClearBusinesses()
ClearBusinesses clears the "businesses" edge to the Business entity.
func (*UserMutation) ClearComment ¶
func (m *UserMutation) ClearComment()
ClearComment clears the value of the "comment" field.
func (*UserMutation) ClearDeletedAt ¶
func (m *UserMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserMutation) ClearEdge ¶
func (m *UserMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*UserMutation) ClearField ¶
func (m *UserMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ClearPasswordhash ¶
func (m *UserMutation) ClearPasswordhash()
ClearPasswordhash clears the value of the "passwordhash" field.
func (*UserMutation) ClearTags ¶
func (m *UserMutation) ClearTags()
ClearTags clears the "tags" edge to the Tag entity.
func (*UserMutation) ClearTitle ¶
func (m *UserMutation) ClearTitle()
ClearTitle clears the value of the "title" field.
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) Comment ¶
func (m *UserMutation) Comment() (r string, exists bool)
Comment returns the value of the "comment" field in the mutation.
func (*UserMutation) CommentCleared ¶
func (m *UserMutation) CommentCleared() bool
CommentCleared returns if the "comment" field was cleared in this mutation.
func (*UserMutation) CreatedAt ¶
func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*UserMutation) DeletedAt ¶
func (m *UserMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*UserMutation) DeletedAtCleared ¶
func (m *UserMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*UserMutation) EdgeCleared ¶
func (m *UserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserMutation) Email ¶
func (m *UserMutation) Email() (r string, exists bool)
Email returns the value of the "email" field in the mutation.
func (*UserMutation) Field ¶
func (m *UserMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*UserMutation) FieldCleared ¶
func (m *UserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserMutation) Fields ¶
func (m *UserMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*UserMutation) Firstname ¶
func (m *UserMutation) Firstname() (r string, exists bool)
Firstname returns the value of the "firstname" field in the mutation.
func (*UserMutation) ID ¶
func (m *UserMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserMutation) Login ¶
func (m *UserMutation) Login() (r string, exists bool)
Login returns the value of the "login" field in the mutation.
func (*UserMutation) OldActive ¶
func (m *UserMutation) OldActive(ctx context.Context) (v bool, err error)
OldActive returns the old "active" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldComment ¶
func (m *UserMutation) OldComment(ctx context.Context) (v string, err error)
OldComment returns the old "comment" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldEmail ¶
func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "email" field's value of the User entity. 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 the 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 failed.
func (*UserMutation) OldFirstname ¶
func (m *UserMutation) OldFirstname(ctx context.Context) (v string, err error)
OldFirstname returns the old "firstname" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldLogin ¶
func (m *UserMutation) OldLogin(ctx context.Context) (v string, err error)
OldLogin returns the old "login" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldPasswordhash ¶
func (m *UserMutation) OldPasswordhash(ctx context.Context) (v string, err error)
OldPasswordhash returns the old "passwordhash" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldRole ¶
func (m *UserMutation) OldRole(ctx context.Context) (v string, err error)
OldRole returns the old "role" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldSurname ¶
func (m *UserMutation) OldSurname(ctx context.Context) (v string, err error)
OldSurname returns the old "surname" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldTitle ¶
func (m *UserMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the User entity. 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 the database query fails.
func (*UserMutation) OldUsePublicapi ¶
func (m *UserMutation) OldUsePublicapi(ctx context.Context) (v string, err error)
OldUsePublicapi returns the old "use_publicapi" field's value of the User entity. 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 the database query fails.
func (*UserMutation) Passwordhash ¶
func (m *UserMutation) Passwordhash() (r string, exists bool)
Passwordhash returns the value of the "passwordhash" field in the mutation.
func (*UserMutation) PasswordhashCleared ¶
func (m *UserMutation) PasswordhashCleared() bool
PasswordhashCleared returns if the "passwordhash" field was cleared in this mutation.
func (*UserMutation) RemoveBusinessIDs ¶
func (m *UserMutation) RemoveBusinessIDs(ids ...uuid.UUID)
RemoveBusinessIDs removes the "businesses" edge to the Business entity by IDs.
func (*UserMutation) RemoveTagIDs ¶
func (m *UserMutation) RemoveTagIDs(ids ...uuid.UUID)
RemoveTagIDs removes the "tags" edge to the Tag entity by IDs.
func (*UserMutation) RemovedBusinessesIDs ¶
func (m *UserMutation) RemovedBusinessesIDs() (ids []uuid.UUID)
RemovedBusinesses returns the removed IDs of the "businesses" edge to the Business entity.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedIDs ¶
func (m *UserMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*UserMutation) RemovedTagsIDs ¶
func (m *UserMutation) RemovedTagsIDs() (ids []uuid.UUID)
RemovedTags returns the removed IDs of the "tags" edge to the Tag entity.
func (*UserMutation) ResetActive ¶
func (m *UserMutation) ResetActive()
ResetActive resets all changes to the "active" field.
func (*UserMutation) ResetBusinesses ¶
func (m *UserMutation) ResetBusinesses()
ResetBusinesses resets all changes to the "businesses" edge.
func (*UserMutation) ResetComment ¶
func (m *UserMutation) ResetComment()
ResetComment resets all changes to the "comment" field.
func (*UserMutation) ResetCreatedAt ¶
func (m *UserMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*UserMutation) ResetDeletedAt ¶
func (m *UserMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*UserMutation) ResetEdge ¶
func (m *UserMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*UserMutation) ResetEmail ¶
func (m *UserMutation) ResetEmail()
ResetEmail resets all changes to the "email" field.
func (*UserMutation) ResetField ¶
func (m *UserMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ResetFirstname ¶
func (m *UserMutation) ResetFirstname()
ResetFirstname resets all changes to the "firstname" field.
func (*UserMutation) ResetLogin ¶
func (m *UserMutation) ResetLogin()
ResetLogin resets all changes to the "login" field.
func (*UserMutation) ResetPasswordhash ¶
func (m *UserMutation) ResetPasswordhash()
ResetPasswordhash resets all changes to the "passwordhash" field.
func (*UserMutation) ResetRole ¶
func (m *UserMutation) ResetRole()
ResetRole resets all changes to the "role" field.
func (*UserMutation) ResetSurname ¶
func (m *UserMutation) ResetSurname()
ResetSurname resets all changes to the "surname" field.
func (*UserMutation) ResetTags ¶
func (m *UserMutation) ResetTags()
ResetTags resets all changes to the "tags" edge.
func (*UserMutation) ResetTitle ¶
func (m *UserMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*UserMutation) ResetUpdatedAt ¶
func (m *UserMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*UserMutation) ResetUsePublicapi ¶
func (m *UserMutation) ResetUsePublicapi()
ResetUsePublicapi resets all changes to the "use_publicapi" field.
func (*UserMutation) Role ¶
func (m *UserMutation) Role() (r string, exists bool)
Role returns the value of the "role" field in the mutation.
func (*UserMutation) SetActive ¶
func (m *UserMutation) SetActive(b bool)
SetActive sets the "active" field.
func (*UserMutation) SetComment ¶
func (m *UserMutation) SetComment(s string)
SetComment sets the "comment" field.
func (*UserMutation) SetCreatedAt ¶
func (m *UserMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*UserMutation) SetDeletedAt ¶
func (m *UserMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*UserMutation) SetEmail ¶
func (m *UserMutation) SetEmail(s string)
SetEmail sets the "email" field.
func (*UserMutation) SetField ¶
func (m *UserMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*UserMutation) SetFirstname ¶
func (m *UserMutation) SetFirstname(s string)
SetFirstname sets the "firstname" field.
func (*UserMutation) SetID ¶
func (m *UserMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.
func (*UserMutation) SetLogin ¶
func (m *UserMutation) SetLogin(s string)
SetLogin sets the "login" field.
func (*UserMutation) SetOp ¶
func (m *UserMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserMutation) SetPasswordhash ¶
func (m *UserMutation) SetPasswordhash(s string)
SetPasswordhash sets the "passwordhash" field.
func (*UserMutation) SetRole ¶
func (m *UserMutation) SetRole(s string)
SetRole sets the "role" field.
func (*UserMutation) SetSurname ¶
func (m *UserMutation) SetSurname(s string)
SetSurname sets the "surname" field.
func (*UserMutation) SetTitle ¶
func (m *UserMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*UserMutation) SetUpdatedAt ¶
func (m *UserMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*UserMutation) SetUsePublicapi ¶
func (m *UserMutation) SetUsePublicapi(s string)
SetUsePublicapi sets the "use_publicapi" field.
func (*UserMutation) Surname ¶
func (m *UserMutation) Surname() (r string, exists bool)
Surname returns the value of the "surname" field in the mutation.
func (*UserMutation) TagsCleared ¶
func (m *UserMutation) TagsCleared() bool
TagsCleared reports if the "tags" edge to the Tag entity was cleared.
func (*UserMutation) TagsIDs ¶
func (m *UserMutation) TagsIDs() (ids []uuid.UUID)
TagsIDs returns the "tags" edge IDs in the mutation.
func (*UserMutation) Title ¶
func (m *UserMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (*UserMutation) TitleCleared ¶
func (m *UserMutation) TitleCleared() bool
TitleCleared returns if the "title" field 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) UpdatedAt ¶
func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*UserMutation) UsePublicapi ¶
func (m *UserMutation) UsePublicapi() (r string, exists bool)
UsePublicapi returns the value of the "use_publicapi" field in the mutation.
func (*UserMutation) Where ¶
func (m *UserMutation) Where(ps ...predicate.User)
Where appends a list predicates to the UserMutation builder.
func (*UserMutation) WhereP ¶
func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserOrder ¶
type UserOrder struct { Direction OrderDirection `json:"direction"` Field *UserOrderField `json:"field"` }
UserOrder defines the ordering of User.
type UserOrderField ¶
type UserOrderField struct { // Value extracts the ordering value from the given User. Value func(*User) (ent.Value, error) // contains filtered or unexported fields }
UserOrderField defines the ordering field of User.
func (UserOrderField) MarshalGQL ¶
func (f UserOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (UserOrderField) String ¶
func (f UserOrderField) String() string
String implement fmt.Stringer interface.
func (*UserOrderField) UnmarshalGQL ¶
func (f *UserOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type UserPaginateOption ¶
type UserPaginateOption func(*userPager) error
UserPaginateOption enables pagination customization.
func WithUserFilter ¶
func WithUserFilter(filter func(*UserQuery) (*UserQuery, error)) UserPaginateOption
WithUserFilter configures pagination filter.
func WithUserOrder ¶
func WithUserOrder(order []*UserOrder) UserPaginateOption
WithUserOrder configures pagination ordering.
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
UserQuery is the builder for querying User entities.
func (*UserQuery) Aggregate ¶
func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate returns a UserSelect configured with the given aggregations.
func (*UserQuery) Clone ¶
Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserQuery) CollectFields ¶
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*UserQuery) First ¶
First returns the first User entity from the query. Returns a *NotFoundError when no User was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
func (*UserQuery) GroupBy ¶
func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.User.Query(). GroupBy(user.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserQuery) Only ¶
Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.
func (*UserQuery) OnlyID ¶
OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.
func (*UserQuery) Order ¶
func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
Order specifies how the records should be ordered.
func (*UserQuery) Paginate ¶
func (u *UserQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...UserPaginateOption, ) (*UserConnection, error)
Paginate executes the query and returns a relay based cursor connection to User.
func (*UserQuery) QueryBusinesses ¶
func (uq *UserQuery) QueryBusinesses() *BusinessQuery
QueryBusinesses chains the current query on the "businesses" edge.
func (*UserQuery) Select ¶
func (uq *UserQuery) Select(fields ...string) *UserSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.User.Query(). Select(user.FieldCreatedAt). Scan(ctx, &v)
func (*UserQuery) Unique ¶
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*UserQuery) WithBusinesses ¶
func (uq *UserQuery) WithBusinesses(opts ...func(*BusinessQuery)) *UserQuery
WithBusinesses tells the query-builder to eager-load the nodes that are connected to the "businesses" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNamedBusinesses ¶
func (uq *UserQuery) WithNamedBusinesses(name string, opts ...func(*BusinessQuery)) *UserQuery
WithNamedBusinesses tells the query-builder to eager-load the nodes that are connected to the "businesses" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNamedTags ¶
WithNamedTags tells the query-builder to eager-load the nodes that are connected to the "tags" edge with the given name. The optional arguments are used to configure the query builder of the edge.
type UserSelect ¶
type UserSelect struct { *UserQuery // contains filtered or unexported fields }
UserSelect is the builder for selecting fields of User entities.
func (*UserSelect) Aggregate ¶
func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSelect) Scan ¶
func (us *UserSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) AddBusinessIDs ¶
func (uu *UserUpdate) AddBusinessIDs(ids ...uuid.UUID) *UserUpdate
AddBusinessIDs adds the "businesses" edge to the Business entity by IDs.
func (*UserUpdate) AddBusinesses ¶
func (uu *UserUpdate) AddBusinesses(b ...*Business) *UserUpdate
AddBusinesses adds the "businesses" edges to the Business entity.
func (*UserUpdate) AddTagIDs ¶
func (uu *UserUpdate) AddTagIDs(ids ...uuid.UUID) *UserUpdate
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*UserUpdate) AddTags ¶
func (uu *UserUpdate) AddTags(t ...*Tag) *UserUpdate
AddTags adds the "tags" edges to the Tag entity.
func (*UserUpdate) ClearBusinesses ¶
func (uu *UserUpdate) ClearBusinesses() *UserUpdate
ClearBusinesses clears all "businesses" edges to the Business entity.
func (*UserUpdate) ClearComment ¶
func (uu *UserUpdate) ClearComment() *UserUpdate
ClearComment clears the value of the "comment" field.
func (*UserUpdate) ClearDeletedAt ¶
func (uu *UserUpdate) ClearDeletedAt() *UserUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserUpdate) ClearPasswordhash ¶
func (uu *UserUpdate) ClearPasswordhash() *UserUpdate
ClearPasswordhash clears the value of the "passwordhash" field.
func (*UserUpdate) ClearTags ¶
func (uu *UserUpdate) ClearTags() *UserUpdate
ClearTags clears all "tags" edges to the Tag entity.
func (*UserUpdate) ClearTitle ¶
func (uu *UserUpdate) ClearTitle() *UserUpdate
ClearTitle clears the value of the "title" field.
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) RemoveBusinessIDs ¶
func (uu *UserUpdate) RemoveBusinessIDs(ids ...uuid.UUID) *UserUpdate
RemoveBusinessIDs removes the "businesses" edge to Business entities by IDs.
func (*UserUpdate) RemoveBusinesses ¶
func (uu *UserUpdate) RemoveBusinesses(b ...*Business) *UserUpdate
RemoveBusinesses removes "businesses" edges to Business entities.
func (*UserUpdate) RemoveTagIDs ¶
func (uu *UserUpdate) RemoveTagIDs(ids ...uuid.UUID) *UserUpdate
RemoveTagIDs removes the "tags" edge to Tag entities by IDs.
func (*UserUpdate) RemoveTags ¶
func (uu *UserUpdate) RemoveTags(t ...*Tag) *UserUpdate
RemoveTags removes "tags" edges to Tag entities.
func (*UserUpdate) Save ¶
func (uu *UserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserUpdate) SaveX ¶
func (uu *UserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserUpdate) SetActive ¶
func (uu *UserUpdate) SetActive(b bool) *UserUpdate
SetActive sets the "active" field.
func (*UserUpdate) SetComment ¶
func (uu *UserUpdate) SetComment(s string) *UserUpdate
SetComment sets the "comment" field.
func (*UserUpdate) SetDeletedAt ¶
func (uu *UserUpdate) SetDeletedAt(t time.Time) *UserUpdate
SetDeletedAt sets the "deleted_at" field.
func (*UserUpdate) SetEmail ¶
func (uu *UserUpdate) SetEmail(s string) *UserUpdate
SetEmail sets the "email" field.
func (*UserUpdate) SetFirstname ¶
func (uu *UserUpdate) SetFirstname(s string) *UserUpdate
SetFirstname sets the "firstname" field.
func (*UserUpdate) SetInput ¶ added in v0.0.7
func (c *UserUpdate) SetInput(i UpdateUserInput) *UserUpdate
SetInput applies the change-set in the UpdateUserInput on the UserUpdate builder.
func (*UserUpdate) SetLogin ¶
func (uu *UserUpdate) SetLogin(s string) *UserUpdate
SetLogin sets the "login" field.
func (*UserUpdate) SetNillableActive ¶
func (uu *UserUpdate) SetNillableActive(b *bool) *UserUpdate
SetNillableActive sets the "active" field if the given value is not nil.
func (*UserUpdate) SetNillableComment ¶
func (uu *UserUpdate) SetNillableComment(s *string) *UserUpdate
SetNillableComment sets the "comment" field if the given value is not nil.
func (*UserUpdate) SetNillableDeletedAt ¶
func (uu *UserUpdate) SetNillableDeletedAt(t *time.Time) *UserUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UserUpdate) SetNillablePasswordhash ¶
func (uu *UserUpdate) SetNillablePasswordhash(s *string) *UserUpdate
SetNillablePasswordhash sets the "passwordhash" field if the given value is not nil.
func (*UserUpdate) SetNillableRole ¶
func (uu *UserUpdate) SetNillableRole(s *string) *UserUpdate
SetNillableRole sets the "role" 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) SetNillableUsePublicapi ¶
func (uu *UserUpdate) SetNillableUsePublicapi(s *string) *UserUpdate
SetNillableUsePublicapi sets the "use_publicapi" field if the given value is not nil.
func (*UserUpdate) SetPasswordhash ¶
func (uu *UserUpdate) SetPasswordhash(s string) *UserUpdate
SetPasswordhash sets the "passwordhash" field.
func (*UserUpdate) SetRole ¶
func (uu *UserUpdate) SetRole(s string) *UserUpdate
SetRole sets the "role" field.
func (*UserUpdate) SetSurname ¶
func (uu *UserUpdate) SetSurname(s string) *UserUpdate
SetSurname sets the "surname" field.
func (*UserUpdate) SetTitle ¶
func (uu *UserUpdate) SetTitle(s string) *UserUpdate
SetTitle sets the "title" field.
func (*UserUpdate) SetUpdatedAt ¶
func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
SetUpdatedAt sets the "updated_at" field.
func (*UserUpdate) SetUsePublicapi ¶
func (uu *UserUpdate) SetUsePublicapi(s string) *UserUpdate
SetUsePublicapi sets the "use_publicapi" field.
func (*UserUpdate) Where ¶
func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
Where appends a list predicates to the UserUpdate builder.
type UserUpdateOne ¶
type UserUpdateOne struct {
// contains filtered or unexported fields
}
UserUpdateOne is the builder for updating a single User entity.
func (*UserUpdateOne) AddBusinessIDs ¶
func (uuo *UserUpdateOne) AddBusinessIDs(ids ...uuid.UUID) *UserUpdateOne
AddBusinessIDs adds the "businesses" edge to the Business entity by IDs.
func (*UserUpdateOne) AddBusinesses ¶
func (uuo *UserUpdateOne) AddBusinesses(b ...*Business) *UserUpdateOne
AddBusinesses adds the "businesses" edges to the Business entity.
func (*UserUpdateOne) AddTagIDs ¶
func (uuo *UserUpdateOne) AddTagIDs(ids ...uuid.UUID) *UserUpdateOne
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*UserUpdateOne) AddTags ¶
func (uuo *UserUpdateOne) AddTags(t ...*Tag) *UserUpdateOne
AddTags adds the "tags" edges to the Tag entity.
func (*UserUpdateOne) ClearBusinesses ¶
func (uuo *UserUpdateOne) ClearBusinesses() *UserUpdateOne
ClearBusinesses clears all "businesses" edges to the Business entity.
func (*UserUpdateOne) ClearComment ¶
func (uuo *UserUpdateOne) ClearComment() *UserUpdateOne
ClearComment clears the value of the "comment" field.
func (*UserUpdateOne) ClearDeletedAt ¶
func (uuo *UserUpdateOne) ClearDeletedAt() *UserUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserUpdateOne) ClearPasswordhash ¶
func (uuo *UserUpdateOne) ClearPasswordhash() *UserUpdateOne
ClearPasswordhash clears the value of the "passwordhash" field.
func (*UserUpdateOne) ClearTags ¶
func (uuo *UserUpdateOne) ClearTags() *UserUpdateOne
ClearTags clears all "tags" edges to the Tag entity.
func (*UserUpdateOne) ClearTitle ¶
func (uuo *UserUpdateOne) ClearTitle() *UserUpdateOne
ClearTitle clears the value of the "title" field.
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) RemoveBusinessIDs ¶
func (uuo *UserUpdateOne) RemoveBusinessIDs(ids ...uuid.UUID) *UserUpdateOne
RemoveBusinessIDs removes the "businesses" edge to Business entities by IDs.
func (*UserUpdateOne) RemoveBusinesses ¶
func (uuo *UserUpdateOne) RemoveBusinesses(b ...*Business) *UserUpdateOne
RemoveBusinesses removes "businesses" edges to Business entities.
func (*UserUpdateOne) RemoveTagIDs ¶
func (uuo *UserUpdateOne) RemoveTagIDs(ids ...uuid.UUID) *UserUpdateOne
RemoveTagIDs removes the "tags" edge to Tag entities by IDs.
func (*UserUpdateOne) RemoveTags ¶
func (uuo *UserUpdateOne) RemoveTags(t ...*Tag) *UserUpdateOne
RemoveTags removes "tags" edges to Tag entities.
func (*UserUpdateOne) Save ¶
func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
Save executes the query and returns the updated User entity.
func (*UserUpdateOne) SaveX ¶
func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
SaveX is like Save, but panics if an error occurs.
func (*UserUpdateOne) Select ¶
func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserUpdateOne) SetActive ¶
func (uuo *UserUpdateOne) SetActive(b bool) *UserUpdateOne
SetActive sets the "active" field.
func (*UserUpdateOne) SetComment ¶
func (uuo *UserUpdateOne) SetComment(s string) *UserUpdateOne
SetComment sets the "comment" field.
func (*UserUpdateOne) SetDeletedAt ¶
func (uuo *UserUpdateOne) SetDeletedAt(t time.Time) *UserUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*UserUpdateOne) SetEmail ¶
func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
SetEmail sets the "email" field.
func (*UserUpdateOne) SetFirstname ¶
func (uuo *UserUpdateOne) SetFirstname(s string) *UserUpdateOne
SetFirstname sets the "firstname" field.
func (*UserUpdateOne) SetInput ¶ added in v0.0.7
func (c *UserUpdateOne) SetInput(i UpdateUserInput) *UserUpdateOne
SetInput applies the change-set in the UpdateUserInput on the UserUpdateOne builder.
func (*UserUpdateOne) SetLogin ¶
func (uuo *UserUpdateOne) SetLogin(s string) *UserUpdateOne
SetLogin sets the "login" field.
func (*UserUpdateOne) SetNillableActive ¶
func (uuo *UserUpdateOne) SetNillableActive(b *bool) *UserUpdateOne
SetNillableActive sets the "active" field if the given value is not nil.
func (*UserUpdateOne) SetNillableComment ¶
func (uuo *UserUpdateOne) SetNillableComment(s *string) *UserUpdateOne
SetNillableComment sets the "comment" field if the given value is not nil.
func (*UserUpdateOne) SetNillableDeletedAt ¶
func (uuo *UserUpdateOne) SetNillableDeletedAt(t *time.Time) *UserUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UserUpdateOne) SetNillablePasswordhash ¶
func (uuo *UserUpdateOne) SetNillablePasswordhash(s *string) *UserUpdateOne
SetNillablePasswordhash sets the "passwordhash" field if the given value is not nil.
func (*UserUpdateOne) SetNillableRole ¶
func (uuo *UserUpdateOne) SetNillableRole(s *string) *UserUpdateOne
SetNillableRole sets the "role" 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) SetNillableUsePublicapi ¶
func (uuo *UserUpdateOne) SetNillableUsePublicapi(s *string) *UserUpdateOne
SetNillableUsePublicapi sets the "use_publicapi" field if the given value is not nil.
func (*UserUpdateOne) SetPasswordhash ¶
func (uuo *UserUpdateOne) SetPasswordhash(s string) *UserUpdateOne
SetPasswordhash sets the "passwordhash" field.
func (*UserUpdateOne) SetRole ¶
func (uuo *UserUpdateOne) SetRole(s string) *UserUpdateOne
SetRole sets the "role" field.
func (*UserUpdateOne) SetSurname ¶
func (uuo *UserUpdateOne) SetSurname(s string) *UserUpdateOne
SetSurname sets the "surname" field.
func (*UserUpdateOne) SetTitle ¶
func (uuo *UserUpdateOne) SetTitle(s string) *UserUpdateOne
SetTitle sets the "title" field.
func (*UserUpdateOne) SetUpdatedAt ¶
func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*UserUpdateOne) SetUsePublicapi ¶
func (uuo *UserUpdateOne) SetUsePublicapi(s string) *UserUpdateOne
SetUsePublicapi sets the "use_publicapi" field.
func (*UserUpdateOne) Where ¶
func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
Where appends a list predicates to the UserUpdate builder.
type UserWhereInput ¶
type UserWhereInput struct { Predicates []predicate.User `json:"-"` Not *UserWhereInput `json:"not,omitempty"` Or []*UserWhereInput `json:"or,omitempty"` And []*UserWhereInput `json:"and,omitempty"` // "id" field predicates. ID *uuid.UUID `json:"id,omitempty"` IDNEQ *uuid.UUID `json:"idNEQ,omitempty"` IDIn []uuid.UUID `json:"idIn,omitempty"` IDNotIn []uuid.UUID `json:"idNotIn,omitempty"` IDGT *uuid.UUID `json:"idGT,omitempty"` IDGTE *uuid.UUID `json:"idGTE,omitempty"` IDLT *uuid.UUID `json:"idLT,omitempty"` IDLTE *uuid.UUID `json:"idLTE,omitempty"` // "created_at" field predicates. CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"` CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` // "updated_at" field predicates. UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"` UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` // "deleted_at" field predicates. DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` // "use_publicapi" field predicates. UsePublicapi *string `json:"usePublicapi,omitempty"` UsePublicapiNEQ *string `json:"usePublicapiNEQ,omitempty"` UsePublicapiIn []string `json:"usePublicapiIn,omitempty"` UsePublicapiNotIn []string `json:"usePublicapiNotIn,omitempty"` UsePublicapiGT *string `json:"usePublicapiGT,omitempty"` UsePublicapiGTE *string `json:"usePublicapiGTE,omitempty"` UsePublicapiLT *string `json:"usePublicapiLT,omitempty"` UsePublicapiLTE *string `json:"usePublicapiLTE,omitempty"` UsePublicapiContains *string `json:"usePublicapiContains,omitempty"` UsePublicapiHasPrefix *string `json:"usePublicapiHasPrefix,omitempty"` UsePublicapiHasSuffix *string `json:"usePublicapiHasSuffix,omitempty"` UsePublicapiEqualFold *string `json:"usePublicapiEqualFold,omitempty"` UsePublicapiContainsFold *string `json:"usePublicapiContainsFold,omitempty"` // "login" field predicates. Login *string `json:"login,omitempty"` LoginNEQ *string `json:"loginNEQ,omitempty"` LoginIn []string `json:"loginIn,omitempty"` LoginNotIn []string `json:"loginNotIn,omitempty"` LoginGT *string `json:"loginGT,omitempty"` LoginGTE *string `json:"loginGTE,omitempty"` LoginLT *string `json:"loginLT,omitempty"` LoginLTE *string `json:"loginLTE,omitempty"` LoginContains *string `json:"loginContains,omitempty"` LoginHasPrefix *string `json:"loginHasPrefix,omitempty"` LoginHasSuffix *string `json:"loginHasSuffix,omitempty"` LoginEqualFold *string `json:"loginEqualFold,omitempty"` LoginContainsFold *string `json:"loginContainsFold,omitempty"` // "surname" field predicates. Surname *string `json:"surname,omitempty"` SurnameNEQ *string `json:"surnameNEQ,omitempty"` SurnameIn []string `json:"surnameIn,omitempty"` SurnameNotIn []string `json:"surnameNotIn,omitempty"` SurnameGT *string `json:"surnameGT,omitempty"` SurnameGTE *string `json:"surnameGTE,omitempty"` SurnameLT *string `json:"surnameLT,omitempty"` SurnameLTE *string `json:"surnameLTE,omitempty"` SurnameContains *string `json:"surnameContains,omitempty"` SurnameHasPrefix *string `json:"surnameHasPrefix,omitempty"` SurnameHasSuffix *string `json:"surnameHasSuffix,omitempty"` SurnameEqualFold *string `json:"surnameEqualFold,omitempty"` SurnameContainsFold *string `json:"surnameContainsFold,omitempty"` // "firstname" field predicates. Firstname *string `json:"firstname,omitempty"` FirstnameNEQ *string `json:"firstnameNEQ,omitempty"` FirstnameIn []string `json:"firstnameIn,omitempty"` FirstnameNotIn []string `json:"firstnameNotIn,omitempty"` FirstnameGT *string `json:"firstnameGT,omitempty"` FirstnameGTE *string `json:"firstnameGTE,omitempty"` FirstnameLT *string `json:"firstnameLT,omitempty"` FirstnameLTE *string `json:"firstnameLTE,omitempty"` FirstnameContains *string `json:"firstnameContains,omitempty"` FirstnameHasPrefix *string `json:"firstnameHasPrefix,omitempty"` FirstnameHasSuffix *string `json:"firstnameHasSuffix,omitempty"` FirstnameEqualFold *string `json:"firstnameEqualFold,omitempty"` FirstnameContainsFold *string `json:"firstnameContainsFold,omitempty"` // "title" field predicates. Title *string `json:"title,omitempty"` TitleNEQ *string `json:"titleNEQ,omitempty"` TitleIn []string `json:"titleIn,omitempty"` TitleNotIn []string `json:"titleNotIn,omitempty"` TitleGT *string `json:"titleGT,omitempty"` TitleGTE *string `json:"titleGTE,omitempty"` TitleLT *string `json:"titleLT,omitempty"` TitleLTE *string `json:"titleLTE,omitempty"` TitleContains *string `json:"titleContains,omitempty"` TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` TitleIsNil bool `json:"titleIsNil,omitempty"` TitleNotNil bool `json:"titleNotNil,omitempty"` TitleEqualFold *string `json:"titleEqualFold,omitempty"` TitleContainsFold *string `json:"titleContainsFold,omitempty"` // "email" field predicates. Email *string `json:"email,omitempty"` EmailNEQ *string `json:"emailNEQ,omitempty"` EmailIn []string `json:"emailIn,omitempty"` EmailNotIn []string `json:"emailNotIn,omitempty"` EmailGT *string `json:"emailGT,omitempty"` EmailGTE *string `json:"emailGTE,omitempty"` EmailLT *string `json:"emailLT,omitempty"` EmailLTE *string `json:"emailLTE,omitempty"` EmailContains *string `json:"emailContains,omitempty"` EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` EmailEqualFold *string `json:"emailEqualFold,omitempty"` EmailContainsFold *string `json:"emailContainsFold,omitempty"` // "passwordhash" field predicates. Passwordhash *string `json:"passwordhash,omitempty"` PasswordhashNEQ *string `json:"passwordhashNEQ,omitempty"` PasswordhashIn []string `json:"passwordhashIn,omitempty"` PasswordhashNotIn []string `json:"passwordhashNotIn,omitempty"` PasswordhashGT *string `json:"passwordhashGT,omitempty"` PasswordhashGTE *string `json:"passwordhashGTE,omitempty"` PasswordhashLT *string `json:"passwordhashLT,omitempty"` PasswordhashLTE *string `json:"passwordhashLTE,omitempty"` PasswordhashContains *string `json:"passwordhashContains,omitempty"` PasswordhashHasPrefix *string `json:"passwordhashHasPrefix,omitempty"` PasswordhashHasSuffix *string `json:"passwordhashHasSuffix,omitempty"` PasswordhashIsNil bool `json:"passwordhashIsNil,omitempty"` PasswordhashNotNil bool `json:"passwordhashNotNil,omitempty"` PasswordhashEqualFold *string `json:"passwordhashEqualFold,omitempty"` PasswordhashContainsFold *string `json:"passwordhashContainsFold,omitempty"` // "comment" field predicates. Comment *string `json:"comment,omitempty"` CommentNEQ *string `json:"commentNEQ,omitempty"` CommentIn []string `json:"commentIn,omitempty"` CommentNotIn []string `json:"commentNotIn,omitempty"` CommentGT *string `json:"commentGT,omitempty"` CommentGTE *string `json:"commentGTE,omitempty"` CommentLT *string `json:"commentLT,omitempty"` CommentLTE *string `json:"commentLTE,omitempty"` CommentContains *string `json:"commentContains,omitempty"` CommentHasPrefix *string `json:"commentHasPrefix,omitempty"` CommentHasSuffix *string `json:"commentHasSuffix,omitempty"` CommentIsNil bool `json:"commentIsNil,omitempty"` CommentNotNil bool `json:"commentNotNil,omitempty"` CommentEqualFold *string `json:"commentEqualFold,omitempty"` CommentContainsFold *string `json:"commentContainsFold,omitempty"` // "active" field predicates. Active *bool `json:"active,omitempty"` ActiveNEQ *bool `json:"activeNEQ,omitempty"` // "role" field predicates. Role *string `json:"role,omitempty"` RoleNEQ *string `json:"roleNEQ,omitempty"` RoleIn []string `json:"roleIn,omitempty"` RoleNotIn []string `json:"roleNotIn,omitempty"` RoleGT *string `json:"roleGT,omitempty"` RoleGTE *string `json:"roleGTE,omitempty"` RoleLT *string `json:"roleLT,omitempty"` RoleLTE *string `json:"roleLTE,omitempty"` RoleContains *string `json:"roleContains,omitempty"` RoleHasPrefix *string `json:"roleHasPrefix,omitempty"` RoleHasSuffix *string `json:"roleHasSuffix,omitempty"` RoleEqualFold *string `json:"roleEqualFold,omitempty"` RoleContainsFold *string `json:"roleContainsFold,omitempty"` // "businesses" edge predicates. HasBusinesses *bool `json:"hasBusinesses,omitempty"` HasBusinessesWith []*BusinessWhereInput `json:"hasBusinessesWith,omitempty"` // "tags" edge predicates. HasTags *bool `json:"hasTags,omitempty"` HasTagsWith []*TagWhereInput `json:"hasTagsWith,omitempty"` }
UserWhereInput represents a where input for filtering User queries.
func (*UserWhereInput) AddPredicates ¶
func (i *UserWhereInput) AddPredicates(predicates ...predicate.User)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files ¶
- address.go
- address_create.go
- address_delete.go
- address_query.go
- address_update.go
- auditlog.go
- auditlog_create.go
- auditlog_delete.go
- auditlog_query.go
- auditlog_update.go
- business.go
- business_create.go
- business_delete.go
- business_query.go
- business_update.go
- client.go
- content.go
- content_create.go
- content_delete.go
- content_query.go
- content_update.go
- ent.go
- gql_collection.go
- gql_edge.go
- gql_mutation_input.go
- gql_node.go
- gql_node_descriptor.go
- gql_pagination.go
- gql_transaction.go
- gql_where_input.go
- i18ndatetime.go
- mutation.go
- operator.go
- operator_create.go
- operator_delete.go
- operator_query.go
- operator_update.go
- runtime.go
- tag.go
- tag_create.go
- tag_delete.go
- tag_query.go
- tag_update.go
- timetable.go
- timetable_create.go
- timetable_delete.go
- timetable_query.go
- timetable_update.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go