Documentation ¶
Overview ¶
Package generated is the ent generated package
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func EntitlementEdgeCleanup(ctx context.Context, id string) error
- func GroupEdgeCleanup(ctx context.Context, id string) error
- func GroupSettingEdgeCleanup(ctx context.Context, id string) error
- func IntegrationEdgeCleanup(ctx context.Context, id string) error
- 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 OauthProviderEdgeCleanup(ctx context.Context, id string) error
- func OhAuthTooTokenEdgeCleanup(ctx context.Context, id string) error
- func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)
- func OrganizationEdgeCleanup(ctx context.Context, id string) error
- func OrganizationSettingEdgeCleanup(ctx context.Context, id string) error
- func PersonalAccessTokenEdgeCleanup(ctx context.Context, id string) error
- func SessionEdgeCleanup(ctx context.Context, id string) error
- func UserEdgeCleanup(ctx context.Context, id string) error
- func UserSettingEdgeCleanup(ctx context.Context, id string) error
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Noder(ctx context.Context, id string, opts ...NodeOption) (_ Noder, err error)
- func (c *Client) Noders(ctx context.Context, ids []string, 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 CreateEntitlementInput
- type CreateGroupInput
- type CreateGroupSettingInput
- type CreateIntegrationInput
- type CreateOauthProviderInput
- type CreateOhAuthTooTokenInput
- type CreateOrganizationInput
- type CreateOrganizationSettingInput
- type CreatePersonalAccessTokenInput
- type CreateSessionInput
- type CreateUserInput
- type CreateUserSettingInput
- type Cursor
- type Entitlement
- func (n *Entitlement) IsNode()
- func (e *Entitlement) Owner(ctx context.Context) (*Organization, error)
- func (e *Entitlement) QueryOwner() *OrganizationQuery
- func (e *Entitlement) String() string
- func (e *Entitlement) ToEdge(order *EntitlementOrder) *EntitlementEdge
- func (e *Entitlement) Unwrap() *Entitlement
- func (e *Entitlement) Update() *EntitlementUpdateOne
- func (e *Entitlement) Value(name string) (ent.Value, error)
- type EntitlementClient
- func (c *EntitlementClient) Create() *EntitlementCreate
- func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk
- func (c *EntitlementClient) Delete() *EntitlementDelete
- func (c *EntitlementClient) DeleteOne(e *Entitlement) *EntitlementDeleteOne
- func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne
- func (c *EntitlementClient) Get(ctx context.Context, id string) (*Entitlement, error)
- func (c *EntitlementClient) GetX(ctx context.Context, id string) *Entitlement
- func (c *EntitlementClient) Hooks() []Hook
- func (c *EntitlementClient) Intercept(interceptors ...Interceptor)
- func (c *EntitlementClient) Interceptors() []Interceptor
- func (c *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk
- func (c *EntitlementClient) Query() *EntitlementQuery
- func (c *EntitlementClient) QueryOwner(e *Entitlement) *OrganizationQuery
- func (c *EntitlementClient) Update() *EntitlementUpdate
- func (c *EntitlementClient) UpdateOne(e *Entitlement) *EntitlementUpdateOne
- func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne
- func (c *EntitlementClient) Use(hooks ...Hook)
- type EntitlementConnection
- type EntitlementCreate
- func (ec *EntitlementCreate) Exec(ctx context.Context) error
- func (ec *EntitlementCreate) ExecX(ctx context.Context)
- func (ec *EntitlementCreate) Mutation() *EntitlementMutation
- func (ec *EntitlementCreate) Save(ctx context.Context) (*Entitlement, error)
- func (ec *EntitlementCreate) SaveX(ctx context.Context) *Entitlement
- func (ec *EntitlementCreate) SetCancelled(b bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetCreatedAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetCreatedBy(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetDeletedAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetDeletedBy(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetExpires(b bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetExpiresAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetExternalCustomerID(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetExternalSubscriptionID(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetID(s string) *EntitlementCreate
- func (c *EntitlementCreate) SetInput(i CreateEntitlementInput) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableCancelled(b *bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableCreatedAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableCreatedBy(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableDeletedAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableDeletedBy(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableExpires(b *bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableExpiresAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableExternalCustomerID(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableExternalSubscriptionID(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableID(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableOwnerID(id *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableTier(e *entitlement.Tier) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableUpdatedAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableUpdatedBy(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetOwner(o *Organization) *EntitlementCreate
- func (ec *EntitlementCreate) SetOwnerID(id string) *EntitlementCreate
- func (ec *EntitlementCreate) SetTier(e entitlement.Tier) *EntitlementCreate
- func (ec *EntitlementCreate) SetUpdatedAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetUpdatedBy(s string) *EntitlementCreate
- type EntitlementCreateBulk
- type EntitlementDelete
- type EntitlementDeleteOne
- type EntitlementEdge
- type EntitlementEdges
- type EntitlementFilter
- func (f *EntitlementFilter) Where(p entql.P)
- func (f *EntitlementFilter) WhereCancelled(p entql.BoolP)
- func (f *EntitlementFilter) WhereCreatedAt(p entql.TimeP)
- func (f *EntitlementFilter) WhereCreatedBy(p entql.StringP)
- func (f *EntitlementFilter) WhereDeletedAt(p entql.TimeP)
- func (f *EntitlementFilter) WhereDeletedBy(p entql.StringP)
- func (f *EntitlementFilter) WhereExpires(p entql.BoolP)
- func (f *EntitlementFilter) WhereExpiresAt(p entql.TimeP)
- func (f *EntitlementFilter) WhereExternalCustomerID(p entql.StringP)
- func (f *EntitlementFilter) WhereExternalSubscriptionID(p entql.StringP)
- func (f *EntitlementFilter) WhereHasOwner()
- func (f *EntitlementFilter) WhereHasOwnerWith(preds ...predicate.Organization)
- func (f *EntitlementFilter) WhereID(p entql.StringP)
- func (f *EntitlementFilter) WhereTier(p entql.StringP)
- func (f *EntitlementFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *EntitlementFilter) WhereUpdatedBy(p entql.StringP)
- type EntitlementGroupBy
- func (egb *EntitlementGroupBy) Aggregate(fns ...AggregateFunc) *EntitlementGroupBy
- func (s *EntitlementGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *EntitlementGroupBy) BoolX(ctx context.Context) bool
- func (s *EntitlementGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *EntitlementGroupBy) BoolsX(ctx context.Context) []bool
- func (s *EntitlementGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *EntitlementGroupBy) Float64X(ctx context.Context) float64
- func (s *EntitlementGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *EntitlementGroupBy) Float64sX(ctx context.Context) []float64
- func (s *EntitlementGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *EntitlementGroupBy) IntX(ctx context.Context) int
- func (s *EntitlementGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *EntitlementGroupBy) IntsX(ctx context.Context) []int
- func (egb *EntitlementGroupBy) Scan(ctx context.Context, v any) error
- func (s *EntitlementGroupBy) ScanX(ctx context.Context, v any)
- func (s *EntitlementGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *EntitlementGroupBy) StringX(ctx context.Context) string
- func (s *EntitlementGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *EntitlementGroupBy) StringsX(ctx context.Context) []string
- type EntitlementMutation
- func (m *EntitlementMutation) AddField(name string, value ent.Value) error
- func (m *EntitlementMutation) AddedEdges() []string
- func (m *EntitlementMutation) AddedField(name string) (ent.Value, bool)
- func (m *EntitlementMutation) AddedFields() []string
- func (m *EntitlementMutation) AddedIDs(name string) []ent.Value
- func (m *EntitlementMutation) Cancelled() (r bool, exists bool)
- func (m *EntitlementMutation) ClearCreatedBy()
- func (m *EntitlementMutation) ClearDeletedAt()
- func (m *EntitlementMutation) ClearDeletedBy()
- func (m *EntitlementMutation) ClearEdge(name string) error
- func (m *EntitlementMutation) ClearExpiresAt()
- func (m *EntitlementMutation) ClearExternalCustomerID()
- func (m *EntitlementMutation) ClearExternalSubscriptionID()
- func (m *EntitlementMutation) ClearField(name string) error
- func (m *EntitlementMutation) ClearOwner()
- func (m *EntitlementMutation) ClearUpdatedBy()
- func (m *EntitlementMutation) ClearedEdges() []string
- func (m *EntitlementMutation) ClearedFields() []string
- func (m EntitlementMutation) Client() *Client
- func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) CreatedBy() (r string, exists bool)
- func (m *EntitlementMutation) CreatedByCleared() bool
- func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) DeletedAtCleared() bool
- func (m *EntitlementMutation) DeletedBy() (r string, exists bool)
- func (m *EntitlementMutation) DeletedByCleared() bool
- func (m *EntitlementMutation) EdgeCleared(name string) bool
- func (m *EntitlementMutation) Expires() (r bool, exists bool)
- func (m *EntitlementMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) ExpiresAtCleared() bool
- func (m *EntitlementMutation) ExternalCustomerID() (r string, exists bool)
- func (m *EntitlementMutation) ExternalCustomerIDCleared() bool
- func (m *EntitlementMutation) ExternalSubscriptionID() (r string, exists bool)
- func (m *EntitlementMutation) ExternalSubscriptionIDCleared() bool
- func (m *EntitlementMutation) Field(name string) (ent.Value, bool)
- func (m *EntitlementMutation) FieldCleared(name string) bool
- func (m *EntitlementMutation) Fields() []string
- func (m *EntitlementMutation) Filter() *EntitlementFilter
- func (m *EntitlementMutation) ID() (id string, exists bool)
- func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error)
- func (m *EntitlementMutation) OldCancelled(ctx context.Context) (v bool, err error)
- func (m *EntitlementMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *EntitlementMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *EntitlementMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldExpires(ctx context.Context) (v bool, err error)
- func (m *EntitlementMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error)
- func (m *EntitlementMutation) OldExternalCustomerID(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *EntitlementMutation) OldTier(ctx context.Context) (v entitlement.Tier, err error)
- func (m *EntitlementMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *EntitlementMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) Op() Op
- func (m *EntitlementMutation) OwnerCleared() bool
- func (m *EntitlementMutation) OwnerID() (id string, exists bool)
- func (m *EntitlementMutation) OwnerIDs() (ids []string)
- func (m *EntitlementMutation) RemovedEdges() []string
- func (m *EntitlementMutation) RemovedIDs(name string) []ent.Value
- func (m *EntitlementMutation) ResetCancelled()
- func (m *EntitlementMutation) ResetCreatedAt()
- func (m *EntitlementMutation) ResetCreatedBy()
- func (m *EntitlementMutation) ResetDeletedAt()
- func (m *EntitlementMutation) ResetDeletedBy()
- func (m *EntitlementMutation) ResetEdge(name string) error
- func (m *EntitlementMutation) ResetExpires()
- func (m *EntitlementMutation) ResetExpiresAt()
- func (m *EntitlementMutation) ResetExternalCustomerID()
- func (m *EntitlementMutation) ResetExternalSubscriptionID()
- func (m *EntitlementMutation) ResetField(name string) error
- func (m *EntitlementMutation) ResetOwner()
- func (m *EntitlementMutation) ResetTier()
- func (m *EntitlementMutation) ResetUpdatedAt()
- func (m *EntitlementMutation) ResetUpdatedBy()
- func (m *EntitlementMutation) SetCancelled(b bool)
- func (m *EntitlementMutation) SetCreatedAt(t time.Time)
- func (m *EntitlementMutation) SetCreatedBy(s string)
- func (m *EntitlementMutation) SetDeletedAt(t time.Time)
- func (m *EntitlementMutation) SetDeletedBy(s string)
- func (m *EntitlementMutation) SetExpires(b bool)
- func (m *EntitlementMutation) SetExpiresAt(t time.Time)
- func (m *EntitlementMutation) SetExternalCustomerID(s string)
- func (m *EntitlementMutation) SetExternalSubscriptionID(s string)
- func (m *EntitlementMutation) SetField(name string, value ent.Value) error
- func (m *EntitlementMutation) SetID(id string)
- func (m *EntitlementMutation) SetOp(op Op)
- func (m *EntitlementMutation) SetOwnerID(id string)
- func (m *EntitlementMutation) SetTier(e entitlement.Tier)
- func (m *EntitlementMutation) SetUpdatedAt(t time.Time)
- func (m *EntitlementMutation) SetUpdatedBy(s string)
- func (m *EntitlementMutation) Tier() (r entitlement.Tier, exists bool)
- func (m EntitlementMutation) Tx() (*Tx, error)
- func (m *EntitlementMutation) Type() string
- func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) UpdatedBy() (r string, exists bool)
- func (m *EntitlementMutation) UpdatedByCleared() bool
- func (m *EntitlementMutation) Where(ps ...predicate.Entitlement)
- func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector))
- type EntitlementOrder
- type EntitlementOrderField
- type EntitlementPaginateOption
- type EntitlementQuery
- func (eq *EntitlementQuery) Aggregate(fns ...AggregateFunc) *EntitlementSelect
- func (eq *EntitlementQuery) All(ctx context.Context) ([]*Entitlement, error)
- func (eq *EntitlementQuery) AllX(ctx context.Context) []*Entitlement
- func (eq *EntitlementQuery) Clone() *EntitlementQuery
- func (e *EntitlementQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementQuery, error)
- func (eq *EntitlementQuery) Count(ctx context.Context) (int, error)
- func (eq *EntitlementQuery) CountX(ctx context.Context) int
- func (eq *EntitlementQuery) Exist(ctx context.Context) (bool, error)
- func (eq *EntitlementQuery) ExistX(ctx context.Context) bool
- func (eq *EntitlementQuery) Filter() *EntitlementFilter
- func (eq *EntitlementQuery) First(ctx context.Context) (*Entitlement, error)
- func (eq *EntitlementQuery) FirstID(ctx context.Context) (id string, err error)
- func (eq *EntitlementQuery) FirstIDX(ctx context.Context) string
- func (eq *EntitlementQuery) FirstX(ctx context.Context) *Entitlement
- func (eq *EntitlementQuery) GroupBy(field string, fields ...string) *EntitlementGroupBy
- func (eq *EntitlementQuery) IDs(ctx context.Context) (ids []string, err error)
- func (eq *EntitlementQuery) IDsX(ctx context.Context) []string
- func (eq *EntitlementQuery) Limit(limit int) *EntitlementQuery
- func (eq *EntitlementQuery) Offset(offset int) *EntitlementQuery
- func (eq *EntitlementQuery) Only(ctx context.Context) (*Entitlement, error)
- func (eq *EntitlementQuery) OnlyID(ctx context.Context) (id string, err error)
- func (eq *EntitlementQuery) OnlyIDX(ctx context.Context) string
- func (eq *EntitlementQuery) OnlyX(ctx context.Context) *Entitlement
- func (eq *EntitlementQuery) Order(o ...entitlement.OrderOption) *EntitlementQuery
- func (e *EntitlementQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*EntitlementConnection, error)
- func (eq *EntitlementQuery) QueryOwner() *OrganizationQuery
- func (eq *EntitlementQuery) Select(fields ...string) *EntitlementSelect
- func (eq *EntitlementQuery) Unique(unique bool) *EntitlementQuery
- func (eq *EntitlementQuery) Where(ps ...predicate.Entitlement) *EntitlementQuery
- func (eq *EntitlementQuery) WithOwner(opts ...func(*OrganizationQuery)) *EntitlementQuery
- type EntitlementSelect
- func (es *EntitlementSelect) Aggregate(fns ...AggregateFunc) *EntitlementSelect
- func (s *EntitlementSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *EntitlementSelect) BoolX(ctx context.Context) bool
- func (s *EntitlementSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *EntitlementSelect) BoolsX(ctx context.Context) []bool
- func (s *EntitlementSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *EntitlementSelect) Float64X(ctx context.Context) float64
- func (s *EntitlementSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *EntitlementSelect) Float64sX(ctx context.Context) []float64
- func (s *EntitlementSelect) Int(ctx context.Context) (_ int, err error)
- func (s *EntitlementSelect) IntX(ctx context.Context) int
- func (s *EntitlementSelect) Ints(ctx context.Context) ([]int, error)
- func (s *EntitlementSelect) IntsX(ctx context.Context) []int
- func (es *EntitlementSelect) Scan(ctx context.Context, v any) error
- func (s *EntitlementSelect) ScanX(ctx context.Context, v any)
- func (s *EntitlementSelect) String(ctx context.Context) (_ string, err error)
- func (s *EntitlementSelect) StringX(ctx context.Context) string
- func (s *EntitlementSelect) Strings(ctx context.Context) ([]string, error)
- func (s *EntitlementSelect) StringsX(ctx context.Context) []string
- type EntitlementUpdate
- func (eu *EntitlementUpdate) ClearDeletedAt() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearDeletedBy() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearExpiresAt() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearExternalCustomerID() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearExternalSubscriptionID() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearOwner() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearUpdatedBy() *EntitlementUpdate
- func (eu *EntitlementUpdate) Exec(ctx context.Context) error
- func (eu *EntitlementUpdate) ExecX(ctx context.Context)
- func (eu *EntitlementUpdate) Mutation() *EntitlementMutation
- func (eu *EntitlementUpdate) Save(ctx context.Context) (int, error)
- func (eu *EntitlementUpdate) SaveX(ctx context.Context) int
- func (eu *EntitlementUpdate) SetCancelled(b bool) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetDeletedAt(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetDeletedBy(s string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetExpires(b bool) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetExpiresAt(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetExternalCustomerID(s string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetExternalSubscriptionID(s string) *EntitlementUpdate
- func (c *EntitlementUpdate) SetInput(i UpdateEntitlementInput) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableCancelled(b *bool) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableDeletedAt(t *time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableDeletedBy(s *string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableExpires(b *bool) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableExpiresAt(t *time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableExternalCustomerID(s *string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableExternalSubscriptionID(s *string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableOwnerID(id *string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableTier(e *entitlement.Tier) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableUpdatedBy(s *string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetOwner(o *Organization) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetOwnerID(id string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetTier(e entitlement.Tier) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetUpdatedAt(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetUpdatedBy(s string) *EntitlementUpdate
- func (eu *EntitlementUpdate) Where(ps ...predicate.Entitlement) *EntitlementUpdate
- type EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearDeletedAt() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearDeletedBy() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearExpiresAt() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearExternalCustomerID() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearExternalSubscriptionID() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearOwner() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearUpdatedBy() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) Exec(ctx context.Context) error
- func (euo *EntitlementUpdateOne) ExecX(ctx context.Context)
- func (euo *EntitlementUpdateOne) Mutation() *EntitlementMutation
- func (euo *EntitlementUpdateOne) Save(ctx context.Context) (*Entitlement, error)
- func (euo *EntitlementUpdateOne) SaveX(ctx context.Context) *Entitlement
- func (euo *EntitlementUpdateOne) Select(field string, fields ...string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetCancelled(b bool) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetDeletedAt(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetDeletedBy(s string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetExpires(b bool) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetExpiresAt(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetExternalCustomerID(s string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetExternalSubscriptionID(s string) *EntitlementUpdateOne
- func (c *EntitlementUpdateOne) SetInput(i UpdateEntitlementInput) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableCancelled(b *bool) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableDeletedAt(t *time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableDeletedBy(s *string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableExpires(b *bool) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableExpiresAt(t *time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableExternalCustomerID(s *string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableExternalSubscriptionID(s *string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableOwnerID(id *string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableTier(e *entitlement.Tier) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableUpdatedBy(s *string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetOwner(o *Organization) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetOwnerID(id string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetTier(e entitlement.Tier) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetUpdatedAt(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetUpdatedBy(s string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) Where(ps ...predicate.Entitlement) *EntitlementUpdateOne
- type EntitlementWhereInput
- type Entitlements
- type Group
- func (n *Group) IsNode()
- func (gr *Group) NamedUsers(name string) ([]*User, error)
- func (gr *Group) Owner(ctx context.Context) (*Organization, error)
- func (gr *Group) QueryOwner() *OrganizationQuery
- func (gr *Group) QuerySetting() *GroupSettingQuery
- func (gr *Group) QueryUsers() *UserQuery
- func (gr *Group) Setting(ctx context.Context) (*GroupSetting, error)
- func (gr *Group) String() string
- func (gr *Group) ToEdge(order *GroupOrder) *GroupEdge
- func (gr *Group) Unwrap() *Group
- func (gr *Group) Update() *GroupUpdateOne
- func (gr *Group) Users(ctx context.Context) (result []*User, err error)
- func (gr *Group) Value(name string) (ent.Value, error)
- type GroupClient
- func (c *GroupClient) Create() *GroupCreate
- func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk
- func (c *GroupClient) Delete() *GroupDelete
- func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne
- func (c *GroupClient) DeleteOneID(id string) *GroupDeleteOne
- func (c *GroupClient) Get(ctx context.Context, id string) (*Group, error)
- func (c *GroupClient) GetX(ctx context.Context, id string) *Group
- func (c *GroupClient) Hooks() []Hook
- func (c *GroupClient) Intercept(interceptors ...Interceptor)
- func (c *GroupClient) Interceptors() []Interceptor
- func (c *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk
- func (c *GroupClient) Query() *GroupQuery
- func (c *GroupClient) QueryOwner(gr *Group) *OrganizationQuery
- func (c *GroupClient) QuerySetting(gr *Group) *GroupSettingQuery
- func (c *GroupClient) QueryUsers(gr *Group) *UserQuery
- func (c *GroupClient) Update() *GroupUpdate
- func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne
- func (c *GroupClient) UpdateOneID(id string) *GroupUpdateOne
- func (c *GroupClient) Use(hooks ...Hook)
- type GroupConnection
- type GroupCreate
- func (gc *GroupCreate) AddUserIDs(ids ...string) *GroupCreate
- func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate
- func (gc *GroupCreate) Exec(ctx context.Context) error
- func (gc *GroupCreate) ExecX(ctx context.Context)
- func (gc *GroupCreate) Mutation() *GroupMutation
- func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)
- func (gc *GroupCreate) SaveX(ctx context.Context) *Group
- func (gc *GroupCreate) SetCreatedAt(t time.Time) *GroupCreate
- func (gc *GroupCreate) SetCreatedBy(s string) *GroupCreate
- func (gc *GroupCreate) SetDeletedAt(t time.Time) *GroupCreate
- func (gc *GroupCreate) SetDeletedBy(s string) *GroupCreate
- func (gc *GroupCreate) SetDescription(s string) *GroupCreate
- func (gc *GroupCreate) SetDisplayName(s string) *GroupCreate
- func (gc *GroupCreate) SetGravatarLogoURL(s string) *GroupCreate
- func (gc *GroupCreate) SetID(s string) *GroupCreate
- func (c *GroupCreate) SetInput(i CreateGroupInput) *GroupCreate
- func (gc *GroupCreate) SetLogoURL(s string) *GroupCreate
- func (gc *GroupCreate) SetName(s string) *GroupCreate
- func (gc *GroupCreate) SetNillableCreatedAt(t *time.Time) *GroupCreate
- func (gc *GroupCreate) SetNillableCreatedBy(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableDeletedAt(t *time.Time) *GroupCreate
- func (gc *GroupCreate) SetNillableDeletedBy(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableDescription(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableDisplayName(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableGravatarLogoURL(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableID(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableLogoURL(s *string) *GroupCreate
- func (gc *GroupCreate) SetNillableUpdatedAt(t *time.Time) *GroupCreate
- func (gc *GroupCreate) SetNillableUpdatedBy(s *string) *GroupCreate
- func (gc *GroupCreate) SetOwner(o *Organization) *GroupCreate
- func (gc *GroupCreate) SetOwnerID(id string) *GroupCreate
- func (gc *GroupCreate) SetSetting(g *GroupSetting) *GroupCreate
- func (gc *GroupCreate) SetSettingID(id string) *GroupCreate
- func (gc *GroupCreate) SetUpdatedAt(t time.Time) *GroupCreate
- func (gc *GroupCreate) SetUpdatedBy(s string) *GroupCreate
- type GroupCreateBulk
- type GroupDelete
- type GroupDeleteOne
- type GroupEdge
- type GroupEdges
- type GroupFilter
- func (f *GroupFilter) Where(p entql.P)
- func (f *GroupFilter) WhereCreatedAt(p entql.TimeP)
- func (f *GroupFilter) WhereCreatedBy(p entql.StringP)
- func (f *GroupFilter) WhereDeletedAt(p entql.TimeP)
- func (f *GroupFilter) WhereDeletedBy(p entql.StringP)
- func (f *GroupFilter) WhereDescription(p entql.StringP)
- func (f *GroupFilter) WhereDisplayName(p entql.StringP)
- func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP)
- func (f *GroupFilter) WhereHasOwner()
- func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization)
- func (f *GroupFilter) WhereHasSetting()
- func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting)
- func (f *GroupFilter) WhereHasUsers()
- func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User)
- func (f *GroupFilter) WhereID(p entql.StringP)
- func (f *GroupFilter) WhereLogoURL(p entql.StringP)
- func (f *GroupFilter) WhereName(p entql.StringP)
- func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *GroupFilter) WhereUpdatedBy(p entql.StringP)
- type GroupGroupBy
- func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy
- func (s *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *GroupGroupBy) BoolX(ctx context.Context) bool
- func (s *GroupGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *GroupGroupBy) BoolsX(ctx context.Context) []bool
- func (s *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *GroupGroupBy) Float64X(ctx context.Context) float64
- func (s *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *GroupGroupBy) Float64sX(ctx context.Context) []float64
- func (s *GroupGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *GroupGroupBy) IntX(ctx context.Context) int
- func (s *GroupGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *GroupGroupBy) IntsX(ctx context.Context) []int
- func (ggb *GroupGroupBy) Scan(ctx context.Context, v any) error
- func (s *GroupGroupBy) ScanX(ctx context.Context, v any)
- func (s *GroupGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *GroupGroupBy) StringX(ctx context.Context) string
- func (s *GroupGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *GroupGroupBy) StringsX(ctx context.Context) []string
- type GroupMutation
- func (m *GroupMutation) AddField(name string, value ent.Value) error
- func (m *GroupMutation) AddUserIDs(ids ...string)
- func (m *GroupMutation) AddedEdges() []string
- func (m *GroupMutation) AddedField(name string) (ent.Value, bool)
- func (m *GroupMutation) AddedFields() []string
- func (m *GroupMutation) AddedIDs(name string) []ent.Value
- func (m *GroupMutation) ClearCreatedBy()
- func (m *GroupMutation) ClearDeletedAt()
- func (m *GroupMutation) ClearDeletedBy()
- func (m *GroupMutation) ClearDescription()
- func (m *GroupMutation) ClearEdge(name string) error
- func (m *GroupMutation) ClearField(name string) error
- func (m *GroupMutation) ClearGravatarLogoURL()
- func (m *GroupMutation) ClearLogoURL()
- func (m *GroupMutation) ClearOwner()
- func (m *GroupMutation) ClearSetting()
- func (m *GroupMutation) ClearUpdatedBy()
- func (m *GroupMutation) ClearUsers()
- func (m *GroupMutation) ClearedEdges() []string
- func (m *GroupMutation) ClearedFields() []string
- func (m GroupMutation) Client() *Client
- func (m *GroupMutation) CreatedAt() (r time.Time, exists bool)
- func (m *GroupMutation) CreatedBy() (r string, exists bool)
- func (m *GroupMutation) CreatedByCleared() bool
- func (m *GroupMutation) DeletedAt() (r time.Time, exists bool)
- func (m *GroupMutation) DeletedAtCleared() bool
- func (m *GroupMutation) DeletedBy() (r string, exists bool)
- func (m *GroupMutation) DeletedByCleared() bool
- func (m *GroupMutation) Description() (r string, exists bool)
- func (m *GroupMutation) DescriptionCleared() bool
- func (m *GroupMutation) DisplayName() (r string, exists bool)
- func (m *GroupMutation) EdgeCleared(name string) bool
- func (m *GroupMutation) Field(name string) (ent.Value, bool)
- func (m *GroupMutation) FieldCleared(name string) bool
- func (m *GroupMutation) Fields() []string
- func (m *GroupMutation) Filter() *GroupFilter
- func (m *GroupMutation) GravatarLogoURL() (r string, exists bool)
- func (m *GroupMutation) GravatarLogoURLCleared() bool
- func (m *GroupMutation) ID() (id string, exists bool)
- func (m *GroupMutation) IDs(ctx context.Context) ([]string, error)
- func (m *GroupMutation) LogoURL() (r string, exists bool)
- func (m *GroupMutation) LogoURLCleared() bool
- func (m *GroupMutation) Name() (r string, exists bool)
- func (m *GroupMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldDisplayName(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GroupMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldLogoURL(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldName(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *GroupMutation) Op() Op
- func (m *GroupMutation) OwnerCleared() bool
- func (m *GroupMutation) OwnerID() (id string, exists bool)
- func (m *GroupMutation) OwnerIDs() (ids []string)
- func (m *GroupMutation) RemoveUserIDs(ids ...string)
- func (m *GroupMutation) RemovedEdges() []string
- func (m *GroupMutation) RemovedIDs(name string) []ent.Value
- func (m *GroupMutation) RemovedUsersIDs() (ids []string)
- func (m *GroupMutation) ResetCreatedAt()
- func (m *GroupMutation) ResetCreatedBy()
- func (m *GroupMutation) ResetDeletedAt()
- func (m *GroupMutation) ResetDeletedBy()
- func (m *GroupMutation) ResetDescription()
- func (m *GroupMutation) ResetDisplayName()
- func (m *GroupMutation) ResetEdge(name string) error
- func (m *GroupMutation) ResetField(name string) error
- func (m *GroupMutation) ResetGravatarLogoURL()
- func (m *GroupMutation) ResetLogoURL()
- func (m *GroupMutation) ResetName()
- func (m *GroupMutation) ResetOwner()
- func (m *GroupMutation) ResetSetting()
- func (m *GroupMutation) ResetUpdatedAt()
- func (m *GroupMutation) ResetUpdatedBy()
- func (m *GroupMutation) ResetUsers()
- func (m *GroupMutation) SetCreatedAt(t time.Time)
- func (m *GroupMutation) SetCreatedBy(s string)
- func (m *GroupMutation) SetDeletedAt(t time.Time)
- func (m *GroupMutation) SetDeletedBy(s string)
- func (m *GroupMutation) SetDescription(s string)
- func (m *GroupMutation) SetDisplayName(s string)
- func (m *GroupMutation) SetField(name string, value ent.Value) error
- func (m *GroupMutation) SetGravatarLogoURL(s string)
- func (m *GroupMutation) SetID(id string)
- func (m *GroupMutation) SetLogoURL(s string)
- func (m *GroupMutation) SetName(s string)
- func (m *GroupMutation) SetOp(op Op)
- func (m *GroupMutation) SetOwnerID(id string)
- func (m *GroupMutation) SetSettingID(id string)
- func (m *GroupMutation) SetUpdatedAt(t time.Time)
- func (m *GroupMutation) SetUpdatedBy(s string)
- func (m *GroupMutation) SettingCleared() bool
- func (m *GroupMutation) SettingID() (id string, exists bool)
- func (m *GroupMutation) SettingIDs() (ids []string)
- func (m GroupMutation) Tx() (*Tx, error)
- func (m *GroupMutation) Type() string
- func (m *GroupMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *GroupMutation) UpdatedBy() (r string, exists bool)
- func (m *GroupMutation) UpdatedByCleared() bool
- func (m *GroupMutation) UsersCleared() bool
- func (m *GroupMutation) UsersIDs() (ids []string)
- func (m *GroupMutation) Where(ps ...predicate.Group)
- func (m *GroupMutation) WhereP(ps ...func(*sql.Selector))
- type GroupOrder
- type GroupOrderField
- type GroupPaginateOption
- type GroupQuery
- func (gq *GroupQuery) Aggregate(fns ...AggregateFunc) *GroupSelect
- func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)
- func (gq *GroupQuery) AllX(ctx context.Context) []*Group
- func (gq *GroupQuery) Clone() *GroupQuery
- func (gr *GroupQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupQuery, error)
- func (gq *GroupQuery) Count(ctx context.Context) (int, error)
- func (gq *GroupQuery) CountX(ctx context.Context) int
- func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)
- func (gq *GroupQuery) ExistX(ctx context.Context) bool
- func (gq *GroupQuery) Filter() *GroupFilter
- func (gq *GroupQuery) First(ctx context.Context) (*Group, error)
- func (gq *GroupQuery) FirstID(ctx context.Context) (id string, err error)
- func (gq *GroupQuery) FirstIDX(ctx context.Context) string
- func (gq *GroupQuery) FirstX(ctx context.Context) *Group
- func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy
- func (gq *GroupQuery) IDs(ctx context.Context) (ids []string, err error)
- func (gq *GroupQuery) IDsX(ctx context.Context) []string
- func (gq *GroupQuery) Limit(limit int) *GroupQuery
- func (gq *GroupQuery) Offset(offset int) *GroupQuery
- func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)
- func (gq *GroupQuery) OnlyID(ctx context.Context) (id string, err error)
- func (gq *GroupQuery) OnlyIDX(ctx context.Context) string
- func (gq *GroupQuery) OnlyX(ctx context.Context) *Group
- func (gq *GroupQuery) Order(o ...group.OrderOption) *GroupQuery
- func (gr *GroupQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*GroupConnection, error)
- func (gq *GroupQuery) QueryOwner() *OrganizationQuery
- func (gq *GroupQuery) QuerySetting() *GroupSettingQuery
- func (gq *GroupQuery) QueryUsers() *UserQuery
- func (gq *GroupQuery) Select(fields ...string) *GroupSelect
- func (gq *GroupQuery) Unique(unique bool) *GroupQuery
- func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery
- func (gq *GroupQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *GroupQuery
- func (gq *GroupQuery) WithOwner(opts ...func(*OrganizationQuery)) *GroupQuery
- func (gq *GroupQuery) WithSetting(opts ...func(*GroupSettingQuery)) *GroupQuery
- func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery
- type GroupSelect
- func (gs *GroupSelect) Aggregate(fns ...AggregateFunc) *GroupSelect
- func (s *GroupSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *GroupSelect) BoolX(ctx context.Context) bool
- func (s *GroupSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *GroupSelect) BoolsX(ctx context.Context) []bool
- func (s *GroupSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *GroupSelect) Float64X(ctx context.Context) float64
- func (s *GroupSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *GroupSelect) Float64sX(ctx context.Context) []float64
- func (s *GroupSelect) Int(ctx context.Context) (_ int, err error)
- func (s *GroupSelect) IntX(ctx context.Context) int
- func (s *GroupSelect) Ints(ctx context.Context) ([]int, error)
- func (s *GroupSelect) IntsX(ctx context.Context) []int
- func (gs *GroupSelect) Scan(ctx context.Context, v any) error
- func (s *GroupSelect) ScanX(ctx context.Context, v any)
- func (s *GroupSelect) String(ctx context.Context) (_ string, err error)
- func (s *GroupSelect) StringX(ctx context.Context) string
- func (s *GroupSelect) Strings(ctx context.Context) ([]string, error)
- func (s *GroupSelect) StringsX(ctx context.Context) []string
- type GroupSetting
- func (gs *GroupSetting) Group(ctx context.Context) (*Group, error)
- func (n *GroupSetting) IsNode()
- func (gs *GroupSetting) QueryGroup() *GroupQuery
- func (gs *GroupSetting) String() string
- func (gs *GroupSetting) ToEdge(order *GroupSettingOrder) *GroupSettingEdge
- func (gs *GroupSetting) Unwrap() *GroupSetting
- func (gs *GroupSetting) Update() *GroupSettingUpdateOne
- func (gs *GroupSetting) Value(name string) (ent.Value, error)
- type GroupSettingClient
- func (c *GroupSettingClient) Create() *GroupSettingCreate
- func (c *GroupSettingClient) CreateBulk(builders ...*GroupSettingCreate) *GroupSettingCreateBulk
- func (c *GroupSettingClient) Delete() *GroupSettingDelete
- func (c *GroupSettingClient) DeleteOne(gs *GroupSetting) *GroupSettingDeleteOne
- func (c *GroupSettingClient) DeleteOneID(id string) *GroupSettingDeleteOne
- func (c *GroupSettingClient) Get(ctx context.Context, id string) (*GroupSetting, error)
- func (c *GroupSettingClient) GetX(ctx context.Context, id string) *GroupSetting
- func (c *GroupSettingClient) Hooks() []Hook
- func (c *GroupSettingClient) Intercept(interceptors ...Interceptor)
- func (c *GroupSettingClient) Interceptors() []Interceptor
- func (c *GroupSettingClient) MapCreateBulk(slice any, setFunc func(*GroupSettingCreate, int)) *GroupSettingCreateBulk
- func (c *GroupSettingClient) Query() *GroupSettingQuery
- func (c *GroupSettingClient) QueryGroup(gs *GroupSetting) *GroupQuery
- func (c *GroupSettingClient) Update() *GroupSettingUpdate
- func (c *GroupSettingClient) UpdateOne(gs *GroupSetting) *GroupSettingUpdateOne
- func (c *GroupSettingClient) UpdateOneID(id string) *GroupSettingUpdateOne
- func (c *GroupSettingClient) Use(hooks ...Hook)
- type GroupSettingConnection
- type GroupSettingCreate
- func (gsc *GroupSettingCreate) Exec(ctx context.Context) error
- func (gsc *GroupSettingCreate) ExecX(ctx context.Context)
- func (gsc *GroupSettingCreate) Mutation() *GroupSettingMutation
- func (gsc *GroupSettingCreate) Save(ctx context.Context) (*GroupSetting, error)
- func (gsc *GroupSettingCreate) SaveX(ctx context.Context) *GroupSetting
- func (gsc *GroupSettingCreate) SetCreatedAt(t time.Time) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetCreatedBy(s string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetDeletedAt(t time.Time) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetDeletedBy(s string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetGroup(g *Group) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetGroupID(id string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetID(s string) *GroupSettingCreate
- func (c *GroupSettingCreate) SetInput(i CreateGroupSettingInput) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetJoinPolicy(gp groupsetting.JoinPolicy) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableCreatedAt(t *time.Time) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableCreatedBy(s *string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableDeletedAt(t *time.Time) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableDeletedBy(s *string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableGroupID(id *string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableID(s *string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableSyncToGithub(b *bool) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableSyncToSlack(b *bool) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableUpdatedAt(t *time.Time) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableUpdatedBy(s *string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetSyncToGithub(b bool) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetSyncToSlack(b bool) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetTags(s []string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetUpdatedAt(t time.Time) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetUpdatedBy(s string) *GroupSettingCreate
- func (gsc *GroupSettingCreate) SetVisibility(gr groupsetting.Visibility) *GroupSettingCreate
- type GroupSettingCreateBulk
- type GroupSettingDelete
- type GroupSettingDeleteOne
- type GroupSettingEdge
- type GroupSettingEdges
- type GroupSettingFilter
- func (f *GroupSettingFilter) Where(p entql.P)
- func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP)
- func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP)
- func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP)
- func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP)
- func (f *GroupSettingFilter) WhereHasGroup()
- func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group)
- func (f *GroupSettingFilter) WhereID(p entql.StringP)
- func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP)
- func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP)
- func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP)
- func (f *GroupSettingFilter) WhereTags(p entql.BytesP)
- func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP)
- func (f *GroupSettingFilter) WhereVisibility(p entql.StringP)
- type GroupSettingGroupBy
- func (gsgb *GroupSettingGroupBy) Aggregate(fns ...AggregateFunc) *GroupSettingGroupBy
- func (s *GroupSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *GroupSettingGroupBy) BoolX(ctx context.Context) bool
- func (s *GroupSettingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *GroupSettingGroupBy) BoolsX(ctx context.Context) []bool
- func (s *GroupSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *GroupSettingGroupBy) Float64X(ctx context.Context) float64
- func (s *GroupSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *GroupSettingGroupBy) Float64sX(ctx context.Context) []float64
- func (s *GroupSettingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *GroupSettingGroupBy) IntX(ctx context.Context) int
- func (s *GroupSettingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *GroupSettingGroupBy) IntsX(ctx context.Context) []int
- func (gsgb *GroupSettingGroupBy) Scan(ctx context.Context, v any) error
- func (s *GroupSettingGroupBy) ScanX(ctx context.Context, v any)
- func (s *GroupSettingGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *GroupSettingGroupBy) StringX(ctx context.Context) string
- func (s *GroupSettingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *GroupSettingGroupBy) StringsX(ctx context.Context) []string
- type GroupSettingMutation
- func (m *GroupSettingMutation) AddField(name string, value ent.Value) error
- func (m *GroupSettingMutation) AddedEdges() []string
- func (m *GroupSettingMutation) AddedField(name string) (ent.Value, bool)
- func (m *GroupSettingMutation) AddedFields() []string
- func (m *GroupSettingMutation) AddedIDs(name string) []ent.Value
- func (m *GroupSettingMutation) AppendTags(s []string)
- func (m *GroupSettingMutation) AppendedTags() ([]string, bool)
- func (m *GroupSettingMutation) ClearCreatedBy()
- func (m *GroupSettingMutation) ClearDeletedAt()
- func (m *GroupSettingMutation) ClearDeletedBy()
- func (m *GroupSettingMutation) ClearEdge(name string) error
- func (m *GroupSettingMutation) ClearField(name string) error
- func (m *GroupSettingMutation) ClearGroup()
- func (m *GroupSettingMutation) ClearUpdatedBy()
- func (m *GroupSettingMutation) ClearedEdges() []string
- func (m *GroupSettingMutation) ClearedFields() []string
- func (m GroupSettingMutation) Client() *Client
- func (m *GroupSettingMutation) CreatedAt() (r time.Time, exists bool)
- func (m *GroupSettingMutation) CreatedBy() (r string, exists bool)
- func (m *GroupSettingMutation) CreatedByCleared() bool
- func (m *GroupSettingMutation) DeletedAt() (r time.Time, exists bool)
- func (m *GroupSettingMutation) DeletedAtCleared() bool
- func (m *GroupSettingMutation) DeletedBy() (r string, exists bool)
- func (m *GroupSettingMutation) DeletedByCleared() bool
- func (m *GroupSettingMutation) EdgeCleared(name string) bool
- func (m *GroupSettingMutation) Field(name string) (ent.Value, bool)
- func (m *GroupSettingMutation) FieldCleared(name string) bool
- func (m *GroupSettingMutation) Fields() []string
- func (m *GroupSettingMutation) Filter() *GroupSettingFilter
- func (m *GroupSettingMutation) GroupCleared() bool
- func (m *GroupSettingMutation) GroupID() (id string, exists bool)
- func (m *GroupSettingMutation) GroupIDs() (ids []string)
- func (m *GroupSettingMutation) ID() (id string, exists bool)
- func (m *GroupSettingMutation) IDs(ctx context.Context) ([]string, error)
- func (m *GroupSettingMutation) JoinPolicy() (r groupsetting.JoinPolicy, exists bool)
- func (m *GroupSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *GroupSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *GroupSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GroupSettingMutation) OldJoinPolicy(ctx context.Context) (v groupsetting.JoinPolicy, err error)
- func (m *GroupSettingMutation) OldSyncToGithub(ctx context.Context) (v bool, err error)
- func (m *GroupSettingMutation) OldSyncToSlack(ctx context.Context) (v bool, err error)
- func (m *GroupSettingMutation) OldTags(ctx context.Context) (v []string, err error)
- func (m *GroupSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *GroupSettingMutation) OldVisibility(ctx context.Context) (v groupsetting.Visibility, err error)
- func (m *GroupSettingMutation) Op() Op
- func (m *GroupSettingMutation) RemovedEdges() []string
- func (m *GroupSettingMutation) RemovedIDs(name string) []ent.Value
- func (m *GroupSettingMutation) ResetCreatedAt()
- func (m *GroupSettingMutation) ResetCreatedBy()
- func (m *GroupSettingMutation) ResetDeletedAt()
- func (m *GroupSettingMutation) ResetDeletedBy()
- func (m *GroupSettingMutation) ResetEdge(name string) error
- func (m *GroupSettingMutation) ResetField(name string) error
- func (m *GroupSettingMutation) ResetGroup()
- func (m *GroupSettingMutation) ResetJoinPolicy()
- func (m *GroupSettingMutation) ResetSyncToGithub()
- func (m *GroupSettingMutation) ResetSyncToSlack()
- func (m *GroupSettingMutation) ResetTags()
- func (m *GroupSettingMutation) ResetUpdatedAt()
- func (m *GroupSettingMutation) ResetUpdatedBy()
- func (m *GroupSettingMutation) ResetVisibility()
- func (m *GroupSettingMutation) SetCreatedAt(t time.Time)
- func (m *GroupSettingMutation) SetCreatedBy(s string)
- func (m *GroupSettingMutation) SetDeletedAt(t time.Time)
- func (m *GroupSettingMutation) SetDeletedBy(s string)
- func (m *GroupSettingMutation) SetField(name string, value ent.Value) error
- func (m *GroupSettingMutation) SetGroupID(id string)
- func (m *GroupSettingMutation) SetID(id string)
- func (m *GroupSettingMutation) SetJoinPolicy(gp groupsetting.JoinPolicy)
- func (m *GroupSettingMutation) SetOp(op Op)
- func (m *GroupSettingMutation) SetSyncToGithub(b bool)
- func (m *GroupSettingMutation) SetSyncToSlack(b bool)
- func (m *GroupSettingMutation) SetTags(s []string)
- func (m *GroupSettingMutation) SetUpdatedAt(t time.Time)
- func (m *GroupSettingMutation) SetUpdatedBy(s string)
- func (m *GroupSettingMutation) SetVisibility(gr groupsetting.Visibility)
- func (m *GroupSettingMutation) SyncToGithub() (r bool, exists bool)
- func (m *GroupSettingMutation) SyncToSlack() (r bool, exists bool)
- func (m *GroupSettingMutation) Tags() (r []string, exists bool)
- func (m GroupSettingMutation) Tx() (*Tx, error)
- func (m *GroupSettingMutation) Type() string
- func (m *GroupSettingMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *GroupSettingMutation) UpdatedBy() (r string, exists bool)
- func (m *GroupSettingMutation) UpdatedByCleared() bool
- func (m *GroupSettingMutation) Visibility() (r groupsetting.Visibility, exists bool)
- func (m *GroupSettingMutation) Where(ps ...predicate.GroupSetting)
- func (m *GroupSettingMutation) WhereP(ps ...func(*sql.Selector))
- type GroupSettingOrder
- type GroupSettingOrderField
- type GroupSettingPaginateOption
- type GroupSettingQuery
- func (gsq *GroupSettingQuery) Aggregate(fns ...AggregateFunc) *GroupSettingSelect
- func (gsq *GroupSettingQuery) All(ctx context.Context) ([]*GroupSetting, error)
- func (gsq *GroupSettingQuery) AllX(ctx context.Context) []*GroupSetting
- func (gsq *GroupSettingQuery) Clone() *GroupSettingQuery
- func (gs *GroupSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingQuery, error)
- func (gsq *GroupSettingQuery) Count(ctx context.Context) (int, error)
- func (gsq *GroupSettingQuery) CountX(ctx context.Context) int
- func (gsq *GroupSettingQuery) Exist(ctx context.Context) (bool, error)
- func (gsq *GroupSettingQuery) ExistX(ctx context.Context) bool
- func (gsq *GroupSettingQuery) Filter() *GroupSettingFilter
- func (gsq *GroupSettingQuery) First(ctx context.Context) (*GroupSetting, error)
- func (gsq *GroupSettingQuery) FirstID(ctx context.Context) (id string, err error)
- func (gsq *GroupSettingQuery) FirstIDX(ctx context.Context) string
- func (gsq *GroupSettingQuery) FirstX(ctx context.Context) *GroupSetting
- func (gsq *GroupSettingQuery) GroupBy(field string, fields ...string) *GroupSettingGroupBy
- func (gsq *GroupSettingQuery) IDs(ctx context.Context) (ids []string, err error)
- func (gsq *GroupSettingQuery) IDsX(ctx context.Context) []string
- func (gsq *GroupSettingQuery) Limit(limit int) *GroupSettingQuery
- func (gsq *GroupSettingQuery) Offset(offset int) *GroupSettingQuery
- func (gsq *GroupSettingQuery) Only(ctx context.Context) (*GroupSetting, error)
- func (gsq *GroupSettingQuery) OnlyID(ctx context.Context) (id string, err error)
- func (gsq *GroupSettingQuery) OnlyIDX(ctx context.Context) string
- func (gsq *GroupSettingQuery) OnlyX(ctx context.Context) *GroupSetting
- func (gsq *GroupSettingQuery) Order(o ...groupsetting.OrderOption) *GroupSettingQuery
- func (gs *GroupSettingQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*GroupSettingConnection, error)
- func (gsq *GroupSettingQuery) QueryGroup() *GroupQuery
- func (gsq *GroupSettingQuery) Select(fields ...string) *GroupSettingSelect
- func (gsq *GroupSettingQuery) Unique(unique bool) *GroupSettingQuery
- func (gsq *GroupSettingQuery) Where(ps ...predicate.GroupSetting) *GroupSettingQuery
- func (gsq *GroupSettingQuery) WithGroup(opts ...func(*GroupQuery)) *GroupSettingQuery
- type GroupSettingSelect
- func (gss *GroupSettingSelect) Aggregate(fns ...AggregateFunc) *GroupSettingSelect
- func (s *GroupSettingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *GroupSettingSelect) BoolX(ctx context.Context) bool
- func (s *GroupSettingSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *GroupSettingSelect) BoolsX(ctx context.Context) []bool
- func (s *GroupSettingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *GroupSettingSelect) Float64X(ctx context.Context) float64
- func (s *GroupSettingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *GroupSettingSelect) Float64sX(ctx context.Context) []float64
- func (s *GroupSettingSelect) Int(ctx context.Context) (_ int, err error)
- func (s *GroupSettingSelect) IntX(ctx context.Context) int
- func (s *GroupSettingSelect) Ints(ctx context.Context) ([]int, error)
- func (s *GroupSettingSelect) IntsX(ctx context.Context) []int
- func (gss *GroupSettingSelect) Scan(ctx context.Context, v any) error
- func (s *GroupSettingSelect) ScanX(ctx context.Context, v any)
- func (s *GroupSettingSelect) String(ctx context.Context) (_ string, err error)
- func (s *GroupSettingSelect) StringX(ctx context.Context) string
- func (s *GroupSettingSelect) Strings(ctx context.Context) ([]string, error)
- func (s *GroupSettingSelect) StringsX(ctx context.Context) []string
- type GroupSettingUpdate
- func (gsu *GroupSettingUpdate) AppendTags(s []string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) ClearDeletedAt() *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) ClearDeletedBy() *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) ClearGroup() *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) ClearUpdatedBy() *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) Exec(ctx context.Context) error
- func (gsu *GroupSettingUpdate) ExecX(ctx context.Context)
- func (gsu *GroupSettingUpdate) Mutation() *GroupSettingMutation
- func (gsu *GroupSettingUpdate) Save(ctx context.Context) (int, error)
- func (gsu *GroupSettingUpdate) SaveX(ctx context.Context) int
- func (gsu *GroupSettingUpdate) SetDeletedAt(t time.Time) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetDeletedBy(s string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetGroup(g *Group) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetGroupID(id string) *GroupSettingUpdate
- func (c *GroupSettingUpdate) SetInput(i UpdateGroupSettingInput) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetJoinPolicy(gp groupsetting.JoinPolicy) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableDeletedAt(t *time.Time) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableDeletedBy(s *string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableGroupID(id *string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableSyncToGithub(b *bool) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableSyncToSlack(b *bool) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableUpdatedBy(s *string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetSyncToGithub(b bool) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetSyncToSlack(b bool) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetTags(s []string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetUpdatedAt(t time.Time) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetUpdatedBy(s string) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) SetVisibility(gr groupsetting.Visibility) *GroupSettingUpdate
- func (gsu *GroupSettingUpdate) Where(ps ...predicate.GroupSetting) *GroupSettingUpdate
- type GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) AppendTags(s []string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) ClearDeletedAt() *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) ClearDeletedBy() *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) ClearGroup() *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) ClearUpdatedBy() *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) Exec(ctx context.Context) error
- func (gsuo *GroupSettingUpdateOne) ExecX(ctx context.Context)
- func (gsuo *GroupSettingUpdateOne) Mutation() *GroupSettingMutation
- func (gsuo *GroupSettingUpdateOne) Save(ctx context.Context) (*GroupSetting, error)
- func (gsuo *GroupSettingUpdateOne) SaveX(ctx context.Context) *GroupSetting
- func (gsuo *GroupSettingUpdateOne) Select(field string, fields ...string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetDeletedAt(t time.Time) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetDeletedBy(s string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetGroup(g *Group) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetGroupID(id string) *GroupSettingUpdateOne
- func (c *GroupSettingUpdateOne) SetInput(i UpdateGroupSettingInput) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetJoinPolicy(gp groupsetting.JoinPolicy) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableDeletedBy(s *string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableGroupID(id *string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableSyncToGithub(b *bool) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableSyncToSlack(b *bool) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableUpdatedBy(s *string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetSyncToGithub(b bool) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetSyncToSlack(b bool) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetTags(s []string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetUpdatedAt(t time.Time) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetUpdatedBy(s string) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) SetVisibility(gr groupsetting.Visibility) *GroupSettingUpdateOne
- func (gsuo *GroupSettingUpdateOne) Where(ps ...predicate.GroupSetting) *GroupSettingUpdateOne
- type GroupSettingWhereInput
- type GroupSettings
- type GroupUpdate
- func (gu *GroupUpdate) AddUserIDs(ids ...string) *GroupUpdate
- func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate
- func (gu *GroupUpdate) ClearDeletedAt() *GroupUpdate
- func (gu *GroupUpdate) ClearDeletedBy() *GroupUpdate
- func (gu *GroupUpdate) ClearDescription() *GroupUpdate
- func (gu *GroupUpdate) ClearGravatarLogoURL() *GroupUpdate
- func (gu *GroupUpdate) ClearLogoURL() *GroupUpdate
- func (gu *GroupUpdate) ClearOwner() *GroupUpdate
- func (gu *GroupUpdate) ClearSetting() *GroupUpdate
- func (gu *GroupUpdate) ClearUpdatedBy() *GroupUpdate
- func (gu *GroupUpdate) ClearUsers() *GroupUpdate
- func (gu *GroupUpdate) Exec(ctx context.Context) error
- func (gu *GroupUpdate) ExecX(ctx context.Context)
- func (gu *GroupUpdate) Mutation() *GroupMutation
- func (gu *GroupUpdate) RemoveUserIDs(ids ...string) *GroupUpdate
- func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate
- func (gu *GroupUpdate) Save(ctx context.Context) (int, error)
- func (gu *GroupUpdate) SaveX(ctx context.Context) int
- func (gu *GroupUpdate) SetDeletedAt(t time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetDeletedBy(s string) *GroupUpdate
- func (gu *GroupUpdate) SetDescription(s string) *GroupUpdate
- func (gu *GroupUpdate) SetDisplayName(s string) *GroupUpdate
- func (gu *GroupUpdate) SetGravatarLogoURL(s string) *GroupUpdate
- func (c *GroupUpdate) SetInput(i UpdateGroupInput) *GroupUpdate
- func (gu *GroupUpdate) SetLogoURL(s string) *GroupUpdate
- func (gu *GroupUpdate) SetName(s string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableDeletedAt(t *time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetNillableDeletedBy(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableDescription(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableDisplayName(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableGravatarLogoURL(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableLogoURL(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableName(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableUpdatedBy(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetOwner(o *Organization) *GroupUpdate
- func (gu *GroupUpdate) SetOwnerID(id string) *GroupUpdate
- func (gu *GroupUpdate) SetSetting(g *GroupSetting) *GroupUpdate
- func (gu *GroupUpdate) SetSettingID(id string) *GroupUpdate
- func (gu *GroupUpdate) SetUpdatedAt(t time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetUpdatedBy(s string) *GroupUpdate
- func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate
- type GroupUpdateOne
- func (guo *GroupUpdateOne) AddUserIDs(ids ...string) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearDeletedAt() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearDeletedBy() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearDescription() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearGravatarLogoURL() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearLogoURL() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearOwner() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearSetting() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearUpdatedBy() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearUsers() *GroupUpdateOne
- func (guo *GroupUpdateOne) Exec(ctx context.Context) error
- func (guo *GroupUpdateOne) ExecX(ctx context.Context)
- func (guo *GroupUpdateOne) Mutation() *GroupMutation
- func (guo *GroupUpdateOne) RemoveUserIDs(ids ...string) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne
- func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)
- func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group
- func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetDeletedAt(t time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetDeletedBy(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetDescription(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetDisplayName(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetGravatarLogoURL(s string) *GroupUpdateOne
- func (c *GroupUpdateOne) SetInput(i UpdateGroupInput) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetLogoURL(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableDeletedAt(t *time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableDeletedBy(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableDescription(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableDisplayName(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableGravatarLogoURL(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableLogoURL(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableName(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableUpdatedBy(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetOwner(o *Organization) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetOwnerID(id string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetSetting(g *GroupSetting) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetSettingID(id string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetUpdatedAt(t time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetUpdatedBy(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) Where(ps ...predicate.Group) *GroupUpdateOne
- type GroupWhereInput
- type Groups
- type Hook
- type Integration
- func (n *Integration) IsNode()
- func (i *Integration) Owner(ctx context.Context) (*Organization, error)
- func (i *Integration) QueryOwner() *OrganizationQuery
- func (i *Integration) String() string
- func (i *Integration) ToEdge(order *IntegrationOrder) *IntegrationEdge
- func (i *Integration) Unwrap() *Integration
- func (i *Integration) Update() *IntegrationUpdateOne
- func (i *Integration) Value(name string) (ent.Value, error)
- type IntegrationClient
- func (c *IntegrationClient) Create() *IntegrationCreate
- func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk
- func (c *IntegrationClient) Delete() *IntegrationDelete
- func (c *IntegrationClient) DeleteOne(i *Integration) *IntegrationDeleteOne
- func (c *IntegrationClient) DeleteOneID(id string) *IntegrationDeleteOne
- func (c *IntegrationClient) Get(ctx context.Context, id string) (*Integration, error)
- func (c *IntegrationClient) GetX(ctx context.Context, id string) *Integration
- func (c *IntegrationClient) Hooks() []Hook
- func (c *IntegrationClient) Intercept(interceptors ...Interceptor)
- func (c *IntegrationClient) Interceptors() []Interceptor
- func (c *IntegrationClient) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk
- func (c *IntegrationClient) Query() *IntegrationQuery
- func (c *IntegrationClient) QueryOwner(i *Integration) *OrganizationQuery
- func (c *IntegrationClient) Update() *IntegrationUpdate
- func (c *IntegrationClient) UpdateOne(i *Integration) *IntegrationUpdateOne
- func (c *IntegrationClient) UpdateOneID(id string) *IntegrationUpdateOne
- func (c *IntegrationClient) Use(hooks ...Hook)
- type IntegrationConnection
- type IntegrationCreate
- func (ic *IntegrationCreate) Exec(ctx context.Context) error
- func (ic *IntegrationCreate) ExecX(ctx context.Context)
- func (ic *IntegrationCreate) Mutation() *IntegrationMutation
- func (ic *IntegrationCreate) Save(ctx context.Context) (*Integration, error)
- func (ic *IntegrationCreate) SaveX(ctx context.Context) *Integration
- func (ic *IntegrationCreate) SetCreatedAt(t time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetCreatedBy(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetDeletedAt(t time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetDeletedBy(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetDescription(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetID(s string) *IntegrationCreate
- func (c *IntegrationCreate) SetInput(i CreateIntegrationInput) *IntegrationCreate
- func (ic *IntegrationCreate) SetKind(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetName(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableCreatedAt(t *time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableCreatedBy(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableDeletedAt(t *time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableDeletedBy(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableDescription(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableID(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableKind(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableOwnerID(id *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableUpdatedAt(t *time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetNillableUpdatedBy(s *string) *IntegrationCreate
- func (ic *IntegrationCreate) SetOwner(o *Organization) *IntegrationCreate
- func (ic *IntegrationCreate) SetOwnerID(id string) *IntegrationCreate
- func (ic *IntegrationCreate) SetSecretName(s string) *IntegrationCreate
- func (ic *IntegrationCreate) SetUpdatedAt(t time.Time) *IntegrationCreate
- func (ic *IntegrationCreate) SetUpdatedBy(s string) *IntegrationCreate
- type IntegrationCreateBulk
- type IntegrationDelete
- type IntegrationDeleteOne
- type IntegrationEdge
- type IntegrationEdges
- type IntegrationFilter
- func (f *IntegrationFilter) Where(p entql.P)
- func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP)
- func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP)
- func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP)
- func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP)
- func (f *IntegrationFilter) WhereDescription(p entql.StringP)
- func (f *IntegrationFilter) WhereHasOwner()
- func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization)
- func (f *IntegrationFilter) WhereID(p entql.StringP)
- func (f *IntegrationFilter) WhereKind(p entql.StringP)
- func (f *IntegrationFilter) WhereName(p entql.StringP)
- func (f *IntegrationFilter) WhereSecretName(p entql.StringP)
- func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP)
- type IntegrationGroupBy
- func (igb *IntegrationGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationGroupBy
- func (s *IntegrationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *IntegrationGroupBy) BoolX(ctx context.Context) bool
- func (s *IntegrationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *IntegrationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *IntegrationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *IntegrationGroupBy) Float64X(ctx context.Context) float64
- func (s *IntegrationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *IntegrationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *IntegrationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *IntegrationGroupBy) IntX(ctx context.Context) int
- func (s *IntegrationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *IntegrationGroupBy) IntsX(ctx context.Context) []int
- func (igb *IntegrationGroupBy) Scan(ctx context.Context, v any) error
- func (s *IntegrationGroupBy) ScanX(ctx context.Context, v any)
- func (s *IntegrationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *IntegrationGroupBy) StringX(ctx context.Context) string
- func (s *IntegrationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *IntegrationGroupBy) StringsX(ctx context.Context) []string
- type IntegrationMutation
- func (m *IntegrationMutation) AddField(name string, value ent.Value) error
- func (m *IntegrationMutation) AddedEdges() []string
- func (m *IntegrationMutation) AddedField(name string) (ent.Value, bool)
- func (m *IntegrationMutation) AddedFields() []string
- func (m *IntegrationMutation) AddedIDs(name string) []ent.Value
- func (m *IntegrationMutation) ClearCreatedBy()
- func (m *IntegrationMutation) ClearDeletedAt()
- func (m *IntegrationMutation) ClearDeletedBy()
- func (m *IntegrationMutation) ClearDescription()
- func (m *IntegrationMutation) ClearEdge(name string) error
- func (m *IntegrationMutation) ClearField(name string) error
- func (m *IntegrationMutation) ClearKind()
- func (m *IntegrationMutation) ClearOwner()
- func (m *IntegrationMutation) ClearUpdatedBy()
- func (m *IntegrationMutation) ClearedEdges() []string
- func (m *IntegrationMutation) ClearedFields() []string
- func (m IntegrationMutation) Client() *Client
- func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *IntegrationMutation) CreatedBy() (r string, exists bool)
- func (m *IntegrationMutation) CreatedByCleared() bool
- func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool)
- func (m *IntegrationMutation) DeletedAtCleared() bool
- func (m *IntegrationMutation) DeletedBy() (r string, exists bool)
- func (m *IntegrationMutation) DeletedByCleared() bool
- func (m *IntegrationMutation) Description() (r string, exists bool)
- func (m *IntegrationMutation) DescriptionCleared() bool
- func (m *IntegrationMutation) EdgeCleared(name string) bool
- func (m *IntegrationMutation) Field(name string) (ent.Value, bool)
- func (m *IntegrationMutation) FieldCleared(name string) bool
- func (m *IntegrationMutation) Fields() []string
- func (m *IntegrationMutation) Filter() *IntegrationFilter
- func (m *IntegrationMutation) ID() (id string, exists bool)
- func (m *IntegrationMutation) IDs(ctx context.Context) ([]string, error)
- func (m *IntegrationMutation) Kind() (r string, exists bool)
- func (m *IntegrationMutation) KindCleared() bool
- func (m *IntegrationMutation) Name() (r string, exists bool)
- func (m *IntegrationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *IntegrationMutation) OldKind(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldName(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldSecretName(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IntegrationMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *IntegrationMutation) Op() Op
- func (m *IntegrationMutation) OwnerCleared() bool
- func (m *IntegrationMutation) OwnerID() (id string, exists bool)
- func (m *IntegrationMutation) OwnerIDs() (ids []string)
- func (m *IntegrationMutation) RemovedEdges() []string
- func (m *IntegrationMutation) RemovedIDs(name string) []ent.Value
- func (m *IntegrationMutation) ResetCreatedAt()
- func (m *IntegrationMutation) ResetCreatedBy()
- func (m *IntegrationMutation) ResetDeletedAt()
- func (m *IntegrationMutation) ResetDeletedBy()
- func (m *IntegrationMutation) ResetDescription()
- func (m *IntegrationMutation) ResetEdge(name string) error
- func (m *IntegrationMutation) ResetField(name string) error
- func (m *IntegrationMutation) ResetKind()
- func (m *IntegrationMutation) ResetName()
- func (m *IntegrationMutation) ResetOwner()
- func (m *IntegrationMutation) ResetSecretName()
- func (m *IntegrationMutation) ResetUpdatedAt()
- func (m *IntegrationMutation) ResetUpdatedBy()
- func (m *IntegrationMutation) SecretName() (r string, exists bool)
- func (m *IntegrationMutation) SetCreatedAt(t time.Time)
- func (m *IntegrationMutation) SetCreatedBy(s string)
- func (m *IntegrationMutation) SetDeletedAt(t time.Time)
- func (m *IntegrationMutation) SetDeletedBy(s string)
- func (m *IntegrationMutation) SetDescription(s string)
- func (m *IntegrationMutation) SetField(name string, value ent.Value) error
- func (m *IntegrationMutation) SetID(id string)
- func (m *IntegrationMutation) SetKind(s string)
- func (m *IntegrationMutation) SetName(s string)
- func (m *IntegrationMutation) SetOp(op Op)
- func (m *IntegrationMutation) SetOwnerID(id string)
- func (m *IntegrationMutation) SetSecretName(s string)
- func (m *IntegrationMutation) SetUpdatedAt(t time.Time)
- func (m *IntegrationMutation) SetUpdatedBy(s string)
- func (m IntegrationMutation) Tx() (*Tx, error)
- func (m *IntegrationMutation) Type() string
- func (m *IntegrationMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *IntegrationMutation) UpdatedBy() (r string, exists bool)
- func (m *IntegrationMutation) UpdatedByCleared() bool
- func (m *IntegrationMutation) Where(ps ...predicate.Integration)
- func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector))
- type IntegrationOrder
- type IntegrationOrderField
- type IntegrationPaginateOption
- type IntegrationQuery
- func (iq *IntegrationQuery) Aggregate(fns ...AggregateFunc) *IntegrationSelect
- func (iq *IntegrationQuery) All(ctx context.Context) ([]*Integration, error)
- func (iq *IntegrationQuery) AllX(ctx context.Context) []*Integration
- func (iq *IntegrationQuery) Clone() *IntegrationQuery
- func (i *IntegrationQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationQuery, error)
- func (iq *IntegrationQuery) Count(ctx context.Context) (int, error)
- func (iq *IntegrationQuery) CountX(ctx context.Context) int
- func (iq *IntegrationQuery) Exist(ctx context.Context) (bool, error)
- func (iq *IntegrationQuery) ExistX(ctx context.Context) bool
- func (iq *IntegrationQuery) Filter() *IntegrationFilter
- func (iq *IntegrationQuery) First(ctx context.Context) (*Integration, error)
- func (iq *IntegrationQuery) FirstID(ctx context.Context) (id string, err error)
- func (iq *IntegrationQuery) FirstIDX(ctx context.Context) string
- func (iq *IntegrationQuery) FirstX(ctx context.Context) *Integration
- func (iq *IntegrationQuery) GroupBy(field string, fields ...string) *IntegrationGroupBy
- func (iq *IntegrationQuery) IDs(ctx context.Context) (ids []string, err error)
- func (iq *IntegrationQuery) IDsX(ctx context.Context) []string
- func (iq *IntegrationQuery) Limit(limit int) *IntegrationQuery
- func (iq *IntegrationQuery) Offset(offset int) *IntegrationQuery
- func (iq *IntegrationQuery) Only(ctx context.Context) (*Integration, error)
- func (iq *IntegrationQuery) OnlyID(ctx context.Context) (id string, err error)
- func (iq *IntegrationQuery) OnlyIDX(ctx context.Context) string
- func (iq *IntegrationQuery) OnlyX(ctx context.Context) *Integration
- func (iq *IntegrationQuery) Order(o ...integration.OrderOption) *IntegrationQuery
- func (i *IntegrationQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*IntegrationConnection, error)
- func (iq *IntegrationQuery) QueryOwner() *OrganizationQuery
- func (iq *IntegrationQuery) Select(fields ...string) *IntegrationSelect
- func (iq *IntegrationQuery) Unique(unique bool) *IntegrationQuery
- func (iq *IntegrationQuery) Where(ps ...predicate.Integration) *IntegrationQuery
- func (iq *IntegrationQuery) WithOwner(opts ...func(*OrganizationQuery)) *IntegrationQuery
- type IntegrationSelect
- func (is *IntegrationSelect) Aggregate(fns ...AggregateFunc) *IntegrationSelect
- func (s *IntegrationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *IntegrationSelect) BoolX(ctx context.Context) bool
- func (s *IntegrationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *IntegrationSelect) BoolsX(ctx context.Context) []bool
- func (s *IntegrationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *IntegrationSelect) Float64X(ctx context.Context) float64
- func (s *IntegrationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *IntegrationSelect) Float64sX(ctx context.Context) []float64
- func (s *IntegrationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *IntegrationSelect) IntX(ctx context.Context) int
- func (s *IntegrationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *IntegrationSelect) IntsX(ctx context.Context) []int
- func (is *IntegrationSelect) Scan(ctx context.Context, v any) error
- func (s *IntegrationSelect) ScanX(ctx context.Context, v any)
- func (s *IntegrationSelect) String(ctx context.Context) (_ string, err error)
- func (s *IntegrationSelect) StringX(ctx context.Context) string
- func (s *IntegrationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *IntegrationSelect) StringsX(ctx context.Context) []string
- type IntegrationUpdate
- func (iu *IntegrationUpdate) ClearDeletedAt() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearDeletedBy() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearDescription() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearKind() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearOwner() *IntegrationUpdate
- func (iu *IntegrationUpdate) ClearUpdatedBy() *IntegrationUpdate
- func (iu *IntegrationUpdate) Exec(ctx context.Context) error
- func (iu *IntegrationUpdate) ExecX(ctx context.Context)
- func (iu *IntegrationUpdate) Mutation() *IntegrationMutation
- func (iu *IntegrationUpdate) Save(ctx context.Context) (int, error)
- func (iu *IntegrationUpdate) SaveX(ctx context.Context) int
- func (iu *IntegrationUpdate) SetDeletedAt(t time.Time) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetDeletedBy(s string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetDescription(s string) *IntegrationUpdate
- func (c *IntegrationUpdate) SetInput(i UpdateIntegrationInput) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetKind(s string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetName(s string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableDeletedBy(s *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableDescription(s *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableKind(s *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableName(s *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableOwnerID(id *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetNillableUpdatedBy(s *string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetOwner(o *Organization) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetOwnerID(id string) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetUpdatedAt(t time.Time) *IntegrationUpdate
- func (iu *IntegrationUpdate) SetUpdatedBy(s string) *IntegrationUpdate
- func (iu *IntegrationUpdate) Where(ps ...predicate.Integration) *IntegrationUpdate
- type IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearDeletedAt() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearDeletedBy() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearDescription() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearKind() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearOwner() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) ClearUpdatedBy() *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) Exec(ctx context.Context) error
- func (iuo *IntegrationUpdateOne) ExecX(ctx context.Context)
- func (iuo *IntegrationUpdateOne) Mutation() *IntegrationMutation
- func (iuo *IntegrationUpdateOne) Save(ctx context.Context) (*Integration, error)
- func (iuo *IntegrationUpdateOne) SaveX(ctx context.Context) *Integration
- func (iuo *IntegrationUpdateOne) Select(field string, fields ...string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetDeletedAt(t time.Time) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetDeletedBy(s string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetDescription(s string) *IntegrationUpdateOne
- func (c *IntegrationUpdateOne) SetInput(i UpdateIntegrationInput) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetKind(s string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetName(s string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableDeletedBy(s *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableDescription(s *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableKind(s *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableName(s *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableOwnerID(id *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetNillableUpdatedBy(s *string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetOwner(o *Organization) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetOwnerID(id string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetUpdatedAt(t time.Time) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) SetUpdatedBy(s string) *IntegrationUpdateOne
- func (iuo *IntegrationUpdateOne) Where(ps ...predicate.Integration) *IntegrationUpdateOne
- type IntegrationWhereInput
- type Integrations
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NodeOption
- type Noder
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type OauthProvider
- func (n *OauthProvider) IsNode()
- func (op *OauthProvider) Owner(ctx context.Context) (*Organization, error)
- func (op *OauthProvider) QueryOwner() *OrganizationQuery
- func (op *OauthProvider) String() string
- func (op *OauthProvider) ToEdge(order *OauthProviderOrder) *OauthProviderEdge
- func (op *OauthProvider) Unwrap() *OauthProvider
- func (op *OauthProvider) Update() *OauthProviderUpdateOne
- func (op *OauthProvider) Value(name string) (ent.Value, error)
- type OauthProviderClient
- func (c *OauthProviderClient) Create() *OauthProviderCreate
- func (c *OauthProviderClient) CreateBulk(builders ...*OauthProviderCreate) *OauthProviderCreateBulk
- func (c *OauthProviderClient) Delete() *OauthProviderDelete
- func (c *OauthProviderClient) DeleteOne(op *OauthProvider) *OauthProviderDeleteOne
- func (c *OauthProviderClient) DeleteOneID(id string) *OauthProviderDeleteOne
- func (c *OauthProviderClient) Get(ctx context.Context, id string) (*OauthProvider, error)
- func (c *OauthProviderClient) GetX(ctx context.Context, id string) *OauthProvider
- func (c *OauthProviderClient) Hooks() []Hook
- func (c *OauthProviderClient) Intercept(interceptors ...Interceptor)
- func (c *OauthProviderClient) Interceptors() []Interceptor
- func (c *OauthProviderClient) MapCreateBulk(slice any, setFunc func(*OauthProviderCreate, int)) *OauthProviderCreateBulk
- func (c *OauthProviderClient) Query() *OauthProviderQuery
- func (c *OauthProviderClient) QueryOwner(op *OauthProvider) *OrganizationQuery
- func (c *OauthProviderClient) Update() *OauthProviderUpdate
- func (c *OauthProviderClient) UpdateOne(op *OauthProvider) *OauthProviderUpdateOne
- func (c *OauthProviderClient) UpdateOneID(id string) *OauthProviderUpdateOne
- func (c *OauthProviderClient) Use(hooks ...Hook)
- type OauthProviderConnection
- type OauthProviderCreate
- func (opc *OauthProviderCreate) Exec(ctx context.Context) error
- func (opc *OauthProviderCreate) ExecX(ctx context.Context)
- func (opc *OauthProviderCreate) Mutation() *OauthProviderMutation
- func (opc *OauthProviderCreate) Save(ctx context.Context) (*OauthProvider, error)
- func (opc *OauthProviderCreate) SaveX(ctx context.Context) *OauthProvider
- func (opc *OauthProviderCreate) SetAuthStyle(u uint8) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetAuthURL(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetClientID(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetClientSecret(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetCreatedAt(t time.Time) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetCreatedBy(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetDeletedAt(t time.Time) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetDeletedBy(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetID(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetInfoURL(s string) *OauthProviderCreate
- func (c *OauthProviderCreate) SetInput(i CreateOauthProviderInput) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetName(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableCreatedAt(t *time.Time) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableCreatedBy(s *string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableDeletedAt(t *time.Time) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableDeletedBy(s *string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableID(s *string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableOwnerID(id *string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableUpdatedAt(t *time.Time) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetNillableUpdatedBy(s *string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetOwner(o *Organization) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetOwnerID(id string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetRedirectURL(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetScopes(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetTokenURL(s string) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetUpdatedAt(t time.Time) *OauthProviderCreate
- func (opc *OauthProviderCreate) SetUpdatedBy(s string) *OauthProviderCreate
- type OauthProviderCreateBulk
- func (opcb *OauthProviderCreateBulk) Exec(ctx context.Context) error
- func (opcb *OauthProviderCreateBulk) ExecX(ctx context.Context)
- func (opcb *OauthProviderCreateBulk) Save(ctx context.Context) ([]*OauthProvider, error)
- func (opcb *OauthProviderCreateBulk) SaveX(ctx context.Context) []*OauthProvider
- type OauthProviderDelete
- type OauthProviderDeleteOne
- type OauthProviderEdge
- type OauthProviderEdges
- type OauthProviderFilter
- func (f *OauthProviderFilter) Where(p entql.P)
- func (f *OauthProviderFilter) WhereAuthStyle(p entql.Uint8P)
- func (f *OauthProviderFilter) WhereAuthURL(p entql.StringP)
- func (f *OauthProviderFilter) WhereClientID(p entql.StringP)
- func (f *OauthProviderFilter) WhereClientSecret(p entql.StringP)
- func (f *OauthProviderFilter) WhereCreatedAt(p entql.TimeP)
- func (f *OauthProviderFilter) WhereCreatedBy(p entql.StringP)
- func (f *OauthProviderFilter) WhereDeletedAt(p entql.TimeP)
- func (f *OauthProviderFilter) WhereDeletedBy(p entql.StringP)
- func (f *OauthProviderFilter) WhereHasOwner()
- func (f *OauthProviderFilter) WhereHasOwnerWith(preds ...predicate.Organization)
- func (f *OauthProviderFilter) WhereID(p entql.StringP)
- func (f *OauthProviderFilter) WhereInfoURL(p entql.StringP)
- func (f *OauthProviderFilter) WhereName(p entql.StringP)
- func (f *OauthProviderFilter) WhereRedirectURL(p entql.StringP)
- func (f *OauthProviderFilter) WhereScopes(p entql.StringP)
- func (f *OauthProviderFilter) WhereTokenURL(p entql.StringP)
- func (f *OauthProviderFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *OauthProviderFilter) WhereUpdatedBy(p entql.StringP)
- type OauthProviderGroupBy
- func (opgb *OauthProviderGroupBy) Aggregate(fns ...AggregateFunc) *OauthProviderGroupBy
- func (s *OauthProviderGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OauthProviderGroupBy) BoolX(ctx context.Context) bool
- func (s *OauthProviderGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OauthProviderGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OauthProviderGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OauthProviderGroupBy) Float64X(ctx context.Context) float64
- func (s *OauthProviderGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OauthProviderGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OauthProviderGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OauthProviderGroupBy) IntX(ctx context.Context) int
- func (s *OauthProviderGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OauthProviderGroupBy) IntsX(ctx context.Context) []int
- func (opgb *OauthProviderGroupBy) Scan(ctx context.Context, v any) error
- func (s *OauthProviderGroupBy) ScanX(ctx context.Context, v any)
- func (s *OauthProviderGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OauthProviderGroupBy) StringX(ctx context.Context) string
- func (s *OauthProviderGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OauthProviderGroupBy) StringsX(ctx context.Context) []string
- type OauthProviderMutation
- func (m *OauthProviderMutation) AddAuthStyle(u int8)
- func (m *OauthProviderMutation) AddField(name string, value ent.Value) error
- func (m *OauthProviderMutation) AddedAuthStyle() (r int8, exists bool)
- func (m *OauthProviderMutation) AddedEdges() []string
- func (m *OauthProviderMutation) AddedField(name string) (ent.Value, bool)
- func (m *OauthProviderMutation) AddedFields() []string
- func (m *OauthProviderMutation) AddedIDs(name string) []ent.Value
- func (m *OauthProviderMutation) AuthStyle() (r uint8, exists bool)
- func (m *OauthProviderMutation) AuthURL() (r string, exists bool)
- func (m *OauthProviderMutation) ClearCreatedBy()
- func (m *OauthProviderMutation) ClearDeletedAt()
- func (m *OauthProviderMutation) ClearDeletedBy()
- func (m *OauthProviderMutation) ClearEdge(name string) error
- func (m *OauthProviderMutation) ClearField(name string) error
- func (m *OauthProviderMutation) ClearOwner()
- func (m *OauthProviderMutation) ClearUpdatedBy()
- func (m *OauthProviderMutation) ClearedEdges() []string
- func (m *OauthProviderMutation) ClearedFields() []string
- func (m OauthProviderMutation) Client() *Client
- func (m *OauthProviderMutation) ClientID() (r string, exists bool)
- func (m *OauthProviderMutation) ClientSecret() (r string, exists bool)
- func (m *OauthProviderMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OauthProviderMutation) CreatedBy() (r string, exists bool)
- func (m *OauthProviderMutation) CreatedByCleared() bool
- func (m *OauthProviderMutation) DeletedAt() (r time.Time, exists bool)
- func (m *OauthProviderMutation) DeletedAtCleared() bool
- func (m *OauthProviderMutation) DeletedBy() (r string, exists bool)
- func (m *OauthProviderMutation) DeletedByCleared() bool
- func (m *OauthProviderMutation) EdgeCleared(name string) bool
- func (m *OauthProviderMutation) Field(name string) (ent.Value, bool)
- func (m *OauthProviderMutation) FieldCleared(name string) bool
- func (m *OauthProviderMutation) Fields() []string
- func (m *OauthProviderMutation) Filter() *OauthProviderFilter
- func (m *OauthProviderMutation) ID() (id string, exists bool)
- func (m *OauthProviderMutation) IDs(ctx context.Context) ([]string, error)
- func (m *OauthProviderMutation) InfoURL() (r string, exists bool)
- func (m *OauthProviderMutation) Name() (r string, exists bool)
- func (m *OauthProviderMutation) OldAuthStyle(ctx context.Context) (v uint8, err error)
- func (m *OauthProviderMutation) OldAuthURL(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldClientID(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldClientSecret(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OauthProviderMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *OauthProviderMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OauthProviderMutation) OldInfoURL(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldName(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldRedirectURL(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldScopes(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldTokenURL(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OauthProviderMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *OauthProviderMutation) Op() Op
- func (m *OauthProviderMutation) OwnerCleared() bool
- func (m *OauthProviderMutation) OwnerID() (id string, exists bool)
- func (m *OauthProviderMutation) OwnerIDs() (ids []string)
- func (m *OauthProviderMutation) RedirectURL() (r string, exists bool)
- func (m *OauthProviderMutation) RemovedEdges() []string
- func (m *OauthProviderMutation) RemovedIDs(name string) []ent.Value
- func (m *OauthProviderMutation) ResetAuthStyle()
- func (m *OauthProviderMutation) ResetAuthURL()
- func (m *OauthProviderMutation) ResetClientID()
- func (m *OauthProviderMutation) ResetClientSecret()
- func (m *OauthProviderMutation) ResetCreatedAt()
- func (m *OauthProviderMutation) ResetCreatedBy()
- func (m *OauthProviderMutation) ResetDeletedAt()
- func (m *OauthProviderMutation) ResetDeletedBy()
- func (m *OauthProviderMutation) ResetEdge(name string) error
- func (m *OauthProviderMutation) ResetField(name string) error
- func (m *OauthProviderMutation) ResetInfoURL()
- func (m *OauthProviderMutation) ResetName()
- func (m *OauthProviderMutation) ResetOwner()
- func (m *OauthProviderMutation) ResetRedirectURL()
- func (m *OauthProviderMutation) ResetScopes()
- func (m *OauthProviderMutation) ResetTokenURL()
- func (m *OauthProviderMutation) ResetUpdatedAt()
- func (m *OauthProviderMutation) ResetUpdatedBy()
- func (m *OauthProviderMutation) Scopes() (r string, exists bool)
- func (m *OauthProviderMutation) SetAuthStyle(u uint8)
- func (m *OauthProviderMutation) SetAuthURL(s string)
- func (m *OauthProviderMutation) SetClientID(s string)
- func (m *OauthProviderMutation) SetClientSecret(s string)
- func (m *OauthProviderMutation) SetCreatedAt(t time.Time)
- func (m *OauthProviderMutation) SetCreatedBy(s string)
- func (m *OauthProviderMutation) SetDeletedAt(t time.Time)
- func (m *OauthProviderMutation) SetDeletedBy(s string)
- func (m *OauthProviderMutation) SetField(name string, value ent.Value) error
- func (m *OauthProviderMutation) SetID(id string)
- func (m *OauthProviderMutation) SetInfoURL(s string)
- func (m *OauthProviderMutation) SetName(s string)
- func (m *OauthProviderMutation) SetOp(op Op)
- func (m *OauthProviderMutation) SetOwnerID(id string)
- func (m *OauthProviderMutation) SetRedirectURL(s string)
- func (m *OauthProviderMutation) SetScopes(s string)
- func (m *OauthProviderMutation) SetTokenURL(s string)
- func (m *OauthProviderMutation) SetUpdatedAt(t time.Time)
- func (m *OauthProviderMutation) SetUpdatedBy(s string)
- func (m *OauthProviderMutation) TokenURL() (r string, exists bool)
- func (m OauthProviderMutation) Tx() (*Tx, error)
- func (m *OauthProviderMutation) Type() string
- func (m *OauthProviderMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *OauthProviderMutation) UpdatedBy() (r string, exists bool)
- func (m *OauthProviderMutation) UpdatedByCleared() bool
- func (m *OauthProviderMutation) Where(ps ...predicate.OauthProvider)
- func (m *OauthProviderMutation) WhereP(ps ...func(*sql.Selector))
- type OauthProviderOrder
- type OauthProviderOrderField
- type OauthProviderPaginateOption
- type OauthProviderQuery
- func (opq *OauthProviderQuery) Aggregate(fns ...AggregateFunc) *OauthProviderSelect
- func (opq *OauthProviderQuery) All(ctx context.Context) ([]*OauthProvider, error)
- func (opq *OauthProviderQuery) AllX(ctx context.Context) []*OauthProvider
- func (opq *OauthProviderQuery) Clone() *OauthProviderQuery
- func (op *OauthProviderQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderQuery, error)
- func (opq *OauthProviderQuery) Count(ctx context.Context) (int, error)
- func (opq *OauthProviderQuery) CountX(ctx context.Context) int
- func (opq *OauthProviderQuery) Exist(ctx context.Context) (bool, error)
- func (opq *OauthProviderQuery) ExistX(ctx context.Context) bool
- func (opq *OauthProviderQuery) Filter() *OauthProviderFilter
- func (opq *OauthProviderQuery) First(ctx context.Context) (*OauthProvider, error)
- func (opq *OauthProviderQuery) FirstID(ctx context.Context) (id string, err error)
- func (opq *OauthProviderQuery) FirstIDX(ctx context.Context) string
- func (opq *OauthProviderQuery) FirstX(ctx context.Context) *OauthProvider
- func (opq *OauthProviderQuery) GroupBy(field string, fields ...string) *OauthProviderGroupBy
- func (opq *OauthProviderQuery) IDs(ctx context.Context) (ids []string, err error)
- func (opq *OauthProviderQuery) IDsX(ctx context.Context) []string
- func (opq *OauthProviderQuery) Limit(limit int) *OauthProviderQuery
- func (opq *OauthProviderQuery) Offset(offset int) *OauthProviderQuery
- func (opq *OauthProviderQuery) Only(ctx context.Context) (*OauthProvider, error)
- func (opq *OauthProviderQuery) OnlyID(ctx context.Context) (id string, err error)
- func (opq *OauthProviderQuery) OnlyIDX(ctx context.Context) string
- func (opq *OauthProviderQuery) OnlyX(ctx context.Context) *OauthProvider
- func (opq *OauthProviderQuery) Order(o ...oauthprovider.OrderOption) *OauthProviderQuery
- func (op *OauthProviderQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*OauthProviderConnection, error)
- func (opq *OauthProviderQuery) QueryOwner() *OrganizationQuery
- func (opq *OauthProviderQuery) Select(fields ...string) *OauthProviderSelect
- func (opq *OauthProviderQuery) Unique(unique bool) *OauthProviderQuery
- func (opq *OauthProviderQuery) Where(ps ...predicate.OauthProvider) *OauthProviderQuery
- func (opq *OauthProviderQuery) WithOwner(opts ...func(*OrganizationQuery)) *OauthProviderQuery
- type OauthProviderSelect
- func (ops *OauthProviderSelect) Aggregate(fns ...AggregateFunc) *OauthProviderSelect
- func (s *OauthProviderSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OauthProviderSelect) BoolX(ctx context.Context) bool
- func (s *OauthProviderSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OauthProviderSelect) BoolsX(ctx context.Context) []bool
- func (s *OauthProviderSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OauthProviderSelect) Float64X(ctx context.Context) float64
- func (s *OauthProviderSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OauthProviderSelect) Float64sX(ctx context.Context) []float64
- func (s *OauthProviderSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OauthProviderSelect) IntX(ctx context.Context) int
- func (s *OauthProviderSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OauthProviderSelect) IntsX(ctx context.Context) []int
- func (ops *OauthProviderSelect) Scan(ctx context.Context, v any) error
- func (s *OauthProviderSelect) ScanX(ctx context.Context, v any)
- func (s *OauthProviderSelect) String(ctx context.Context) (_ string, err error)
- func (s *OauthProviderSelect) StringX(ctx context.Context) string
- func (s *OauthProviderSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OauthProviderSelect) StringsX(ctx context.Context) []string
- type OauthProviderUpdate
- func (opu *OauthProviderUpdate) AddAuthStyle(u int8) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) ClearDeletedAt() *OauthProviderUpdate
- func (opu *OauthProviderUpdate) ClearDeletedBy() *OauthProviderUpdate
- func (opu *OauthProviderUpdate) ClearOwner() *OauthProviderUpdate
- func (opu *OauthProviderUpdate) ClearUpdatedBy() *OauthProviderUpdate
- func (opu *OauthProviderUpdate) Exec(ctx context.Context) error
- func (opu *OauthProviderUpdate) ExecX(ctx context.Context)
- func (opu *OauthProviderUpdate) Mutation() *OauthProviderMutation
- func (opu *OauthProviderUpdate) Save(ctx context.Context) (int, error)
- func (opu *OauthProviderUpdate) SaveX(ctx context.Context) int
- func (opu *OauthProviderUpdate) SetAuthStyle(u uint8) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetAuthURL(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetClientID(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetClientSecret(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetDeletedAt(t time.Time) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetDeletedBy(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetInfoURL(s string) *OauthProviderUpdate
- func (c *OauthProviderUpdate) SetInput(i UpdateOauthProviderInput) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetName(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableAuthStyle(u *uint8) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableAuthURL(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableClientID(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableClientSecret(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableDeletedAt(t *time.Time) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableDeletedBy(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableInfoURL(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableName(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableOwnerID(id *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableRedirectURL(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableScopes(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableTokenURL(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetNillableUpdatedBy(s *string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetOwner(o *Organization) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetOwnerID(id string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetRedirectURL(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetScopes(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetTokenURL(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetUpdatedAt(t time.Time) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) SetUpdatedBy(s string) *OauthProviderUpdate
- func (opu *OauthProviderUpdate) Where(ps ...predicate.OauthProvider) *OauthProviderUpdate
- type OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) AddAuthStyle(u int8) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) ClearDeletedAt() *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) ClearDeletedBy() *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) ClearOwner() *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) ClearUpdatedBy() *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) Exec(ctx context.Context) error
- func (opuo *OauthProviderUpdateOne) ExecX(ctx context.Context)
- func (opuo *OauthProviderUpdateOne) Mutation() *OauthProviderMutation
- func (opuo *OauthProviderUpdateOne) Save(ctx context.Context) (*OauthProvider, error)
- func (opuo *OauthProviderUpdateOne) SaveX(ctx context.Context) *OauthProvider
- func (opuo *OauthProviderUpdateOne) Select(field string, fields ...string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetAuthStyle(u uint8) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetAuthURL(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetClientID(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetClientSecret(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetDeletedAt(t time.Time) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetDeletedBy(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetInfoURL(s string) *OauthProviderUpdateOne
- func (c *OauthProviderUpdateOne) SetInput(i UpdateOauthProviderInput) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetName(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableAuthStyle(u *uint8) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableAuthURL(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableClientID(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableClientSecret(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableDeletedAt(t *time.Time) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableDeletedBy(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableInfoURL(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableName(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableOwnerID(id *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableRedirectURL(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableScopes(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableTokenURL(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetNillableUpdatedBy(s *string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetOwner(o *Organization) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetOwnerID(id string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetRedirectURL(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetScopes(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetTokenURL(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetUpdatedAt(t time.Time) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) SetUpdatedBy(s string) *OauthProviderUpdateOne
- func (opuo *OauthProviderUpdateOne) Where(ps ...predicate.OauthProvider) *OauthProviderUpdateOne
- type OauthProviderWhereInput
- type OauthProviders
- type OhAuthTooToken
- func (n *OhAuthTooToken) IsNode()
- func (oatt *OhAuthTooToken) String() string
- func (oatt *OhAuthTooToken) ToEdge(order *OhAuthTooTokenOrder) *OhAuthTooTokenEdge
- func (oatt *OhAuthTooToken) Unwrap() *OhAuthTooToken
- func (oatt *OhAuthTooToken) Update() *OhAuthTooTokenUpdateOne
- func (oatt *OhAuthTooToken) Value(name string) (ent.Value, error)
- type OhAuthTooTokenClient
- func (c *OhAuthTooTokenClient) Create() *OhAuthTooTokenCreate
- func (c *OhAuthTooTokenClient) CreateBulk(builders ...*OhAuthTooTokenCreate) *OhAuthTooTokenCreateBulk
- func (c *OhAuthTooTokenClient) Delete() *OhAuthTooTokenDelete
- func (c *OhAuthTooTokenClient) DeleteOne(oatt *OhAuthTooToken) *OhAuthTooTokenDeleteOne
- func (c *OhAuthTooTokenClient) DeleteOneID(id string) *OhAuthTooTokenDeleteOne
- func (c *OhAuthTooTokenClient) Get(ctx context.Context, id string) (*OhAuthTooToken, error)
- func (c *OhAuthTooTokenClient) GetX(ctx context.Context, id string) *OhAuthTooToken
- func (c *OhAuthTooTokenClient) Hooks() []Hook
- func (c *OhAuthTooTokenClient) Intercept(interceptors ...Interceptor)
- func (c *OhAuthTooTokenClient) Interceptors() []Interceptor
- func (c *OhAuthTooTokenClient) MapCreateBulk(slice any, setFunc func(*OhAuthTooTokenCreate, int)) *OhAuthTooTokenCreateBulk
- func (c *OhAuthTooTokenClient) Query() *OhAuthTooTokenQuery
- func (c *OhAuthTooTokenClient) Update() *OhAuthTooTokenUpdate
- func (c *OhAuthTooTokenClient) UpdateOne(oatt *OhAuthTooToken) *OhAuthTooTokenUpdateOne
- func (c *OhAuthTooTokenClient) UpdateOneID(id string) *OhAuthTooTokenUpdateOne
- func (c *OhAuthTooTokenClient) Use(hooks ...Hook)
- type OhAuthTooTokenConnection
- type OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) Exec(ctx context.Context) error
- func (oattc *OhAuthTooTokenCreate) ExecX(ctx context.Context)
- func (oattc *OhAuthTooTokenCreate) Mutation() *OhAuthTooTokenMutation
- func (oattc *OhAuthTooTokenCreate) Save(ctx context.Context) (*OhAuthTooToken, error)
- func (oattc *OhAuthTooTokenCreate) SaveX(ctx context.Context) *OhAuthTooToken
- func (oattc *OhAuthTooTokenCreate) SetClaimsEmail(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetClaimsEmailVerified(b bool) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetClaimsGroups(s []string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetClaimsPreferredUsername(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetClaimsUserID(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetClaimsUsername(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetClientID(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetConnectorData(s []string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetConnectorID(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetID(s string) *OhAuthTooTokenCreate
- func (c *OhAuthTooTokenCreate) SetInput(i CreateOhAuthTooTokenInput) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetLastUsed(t time.Time) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetNillableID(s *string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetNonce(s string) *OhAuthTooTokenCreate
- func (oattc *OhAuthTooTokenCreate) SetScopes(s []string) *OhAuthTooTokenCreate
- type OhAuthTooTokenCreateBulk
- func (oattcb *OhAuthTooTokenCreateBulk) Exec(ctx context.Context) error
- func (oattcb *OhAuthTooTokenCreateBulk) ExecX(ctx context.Context)
- func (oattcb *OhAuthTooTokenCreateBulk) Save(ctx context.Context) ([]*OhAuthTooToken, error)
- func (oattcb *OhAuthTooTokenCreateBulk) SaveX(ctx context.Context) []*OhAuthTooToken
- type OhAuthTooTokenDelete
- type OhAuthTooTokenDeleteOne
- type OhAuthTooTokenEdge
- type OhAuthTooTokenFilter
- func (f *OhAuthTooTokenFilter) Where(p entql.P)
- func (f *OhAuthTooTokenFilter) WhereClaimsEmail(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereClaimsEmailVerified(p entql.BoolP)
- func (f *OhAuthTooTokenFilter) WhereClaimsGroups(p entql.BytesP)
- func (f *OhAuthTooTokenFilter) WhereClaimsPreferredUsername(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereClaimsUserID(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereClaimsUsername(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereClientID(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereConnectorData(p entql.BytesP)
- func (f *OhAuthTooTokenFilter) WhereConnectorID(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereID(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereLastUsed(p entql.TimeP)
- func (f *OhAuthTooTokenFilter) WhereNonce(p entql.StringP)
- func (f *OhAuthTooTokenFilter) WhereScopes(p entql.BytesP)
- type OhAuthTooTokenGroupBy
- func (oattgb *OhAuthTooTokenGroupBy) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenGroupBy
- func (s *OhAuthTooTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OhAuthTooTokenGroupBy) BoolX(ctx context.Context) bool
- func (s *OhAuthTooTokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OhAuthTooTokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OhAuthTooTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OhAuthTooTokenGroupBy) Float64X(ctx context.Context) float64
- func (s *OhAuthTooTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OhAuthTooTokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OhAuthTooTokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OhAuthTooTokenGroupBy) IntX(ctx context.Context) int
- func (s *OhAuthTooTokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OhAuthTooTokenGroupBy) IntsX(ctx context.Context) []int
- func (oattgb *OhAuthTooTokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *OhAuthTooTokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *OhAuthTooTokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OhAuthTooTokenGroupBy) StringX(ctx context.Context) string
- func (s *OhAuthTooTokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OhAuthTooTokenGroupBy) StringsX(ctx context.Context) []string
- type OhAuthTooTokenMutation
- func (m *OhAuthTooTokenMutation) AddField(name string, value ent.Value) error
- func (m *OhAuthTooTokenMutation) AddedEdges() []string
- func (m *OhAuthTooTokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *OhAuthTooTokenMutation) AddedFields() []string
- func (m *OhAuthTooTokenMutation) AddedIDs(name string) []ent.Value
- func (m *OhAuthTooTokenMutation) AppendClaimsGroups(s []string)
- func (m *OhAuthTooTokenMutation) AppendConnectorData(s []string)
- func (m *OhAuthTooTokenMutation) AppendScopes(s []string)
- func (m *OhAuthTooTokenMutation) AppendedClaimsGroups() ([]string, bool)
- func (m *OhAuthTooTokenMutation) AppendedConnectorData() ([]string, bool)
- func (m *OhAuthTooTokenMutation) AppendedScopes() ([]string, bool)
- func (m *OhAuthTooTokenMutation) ClaimsEmail() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) ClaimsEmailVerified() (r bool, exists bool)
- func (m *OhAuthTooTokenMutation) ClaimsGroups() (r []string, exists bool)
- func (m *OhAuthTooTokenMutation) ClaimsGroupsCleared() bool
- func (m *OhAuthTooTokenMutation) ClaimsPreferredUsername() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) ClaimsUserID() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) ClaimsUsername() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) ClearClaimsGroups()
- func (m *OhAuthTooTokenMutation) ClearConnectorData()
- func (m *OhAuthTooTokenMutation) ClearEdge(name string) error
- func (m *OhAuthTooTokenMutation) ClearField(name string) error
- func (m *OhAuthTooTokenMutation) ClearScopes()
- func (m *OhAuthTooTokenMutation) ClearedEdges() []string
- func (m *OhAuthTooTokenMutation) ClearedFields() []string
- func (m OhAuthTooTokenMutation) Client() *Client
- func (m *OhAuthTooTokenMutation) ClientID() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) ConnectorData() (r []string, exists bool)
- func (m *OhAuthTooTokenMutation) ConnectorDataCleared() bool
- func (m *OhAuthTooTokenMutation) ConnectorID() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) EdgeCleared(name string) bool
- func (m *OhAuthTooTokenMutation) Field(name string) (ent.Value, bool)
- func (m *OhAuthTooTokenMutation) FieldCleared(name string) bool
- func (m *OhAuthTooTokenMutation) Fields() []string
- func (m *OhAuthTooTokenMutation) Filter() *OhAuthTooTokenFilter
- func (m *OhAuthTooTokenMutation) ID() (id string, exists bool)
- func (m *OhAuthTooTokenMutation) IDs(ctx context.Context) ([]string, error)
- func (m *OhAuthTooTokenMutation) LastUsed() (r time.Time, exists bool)
- func (m *OhAuthTooTokenMutation) Nonce() (r string, exists bool)
- func (m *OhAuthTooTokenMutation) OldClaimsEmail(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldClaimsEmailVerified(ctx context.Context) (v bool, err error)
- func (m *OhAuthTooTokenMutation) OldClaimsGroups(ctx context.Context) (v []string, err error)
- func (m *OhAuthTooTokenMutation) OldClaimsPreferredUsername(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldClaimsUserID(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldClaimsUsername(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldClientID(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldConnectorData(ctx context.Context) (v []string, err error)
- func (m *OhAuthTooTokenMutation) OldConnectorID(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OhAuthTooTokenMutation) OldLastUsed(ctx context.Context) (v time.Time, err error)
- func (m *OhAuthTooTokenMutation) OldNonce(ctx context.Context) (v string, err error)
- func (m *OhAuthTooTokenMutation) OldScopes(ctx context.Context) (v []string, err error)
- func (m *OhAuthTooTokenMutation) Op() Op
- func (m *OhAuthTooTokenMutation) RemovedEdges() []string
- func (m *OhAuthTooTokenMutation) RemovedIDs(name string) []ent.Value
- func (m *OhAuthTooTokenMutation) ResetClaimsEmail()
- func (m *OhAuthTooTokenMutation) ResetClaimsEmailVerified()
- func (m *OhAuthTooTokenMutation) ResetClaimsGroups()
- func (m *OhAuthTooTokenMutation) ResetClaimsPreferredUsername()
- func (m *OhAuthTooTokenMutation) ResetClaimsUserID()
- func (m *OhAuthTooTokenMutation) ResetClaimsUsername()
- func (m *OhAuthTooTokenMutation) ResetClientID()
- func (m *OhAuthTooTokenMutation) ResetConnectorData()
- func (m *OhAuthTooTokenMutation) ResetConnectorID()
- func (m *OhAuthTooTokenMutation) ResetEdge(name string) error
- func (m *OhAuthTooTokenMutation) ResetField(name string) error
- func (m *OhAuthTooTokenMutation) ResetLastUsed()
- func (m *OhAuthTooTokenMutation) ResetNonce()
- func (m *OhAuthTooTokenMutation) ResetScopes()
- func (m *OhAuthTooTokenMutation) Scopes() (r []string, exists bool)
- func (m *OhAuthTooTokenMutation) ScopesCleared() bool
- func (m *OhAuthTooTokenMutation) SetClaimsEmail(s string)
- func (m *OhAuthTooTokenMutation) SetClaimsEmailVerified(b bool)
- func (m *OhAuthTooTokenMutation) SetClaimsGroups(s []string)
- func (m *OhAuthTooTokenMutation) SetClaimsPreferredUsername(s string)
- func (m *OhAuthTooTokenMutation) SetClaimsUserID(s string)
- func (m *OhAuthTooTokenMutation) SetClaimsUsername(s string)
- func (m *OhAuthTooTokenMutation) SetClientID(s string)
- func (m *OhAuthTooTokenMutation) SetConnectorData(s []string)
- func (m *OhAuthTooTokenMutation) SetConnectorID(s string)
- func (m *OhAuthTooTokenMutation) SetField(name string, value ent.Value) error
- func (m *OhAuthTooTokenMutation) SetID(id string)
- func (m *OhAuthTooTokenMutation) SetLastUsed(t time.Time)
- func (m *OhAuthTooTokenMutation) SetNonce(s string)
- func (m *OhAuthTooTokenMutation) SetOp(op Op)
- func (m *OhAuthTooTokenMutation) SetScopes(s []string)
- func (m OhAuthTooTokenMutation) Tx() (*Tx, error)
- func (m *OhAuthTooTokenMutation) Type() string
- func (m *OhAuthTooTokenMutation) Where(ps ...predicate.OhAuthTooToken)
- func (m *OhAuthTooTokenMutation) WhereP(ps ...func(*sql.Selector))
- type OhAuthTooTokenOrder
- type OhAuthTooTokenOrderField
- type OhAuthTooTokenPaginateOption
- type OhAuthTooTokenQuery
- func (oattq *OhAuthTooTokenQuery) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenSelect
- func (oattq *OhAuthTooTokenQuery) All(ctx context.Context) ([]*OhAuthTooToken, error)
- func (oattq *OhAuthTooTokenQuery) AllX(ctx context.Context) []*OhAuthTooToken
- func (oattq *OhAuthTooTokenQuery) Clone() *OhAuthTooTokenQuery
- func (oatt *OhAuthTooTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*OhAuthTooTokenQuery, error)
- func (oattq *OhAuthTooTokenQuery) Count(ctx context.Context) (int, error)
- func (oattq *OhAuthTooTokenQuery) CountX(ctx context.Context) int
- func (oattq *OhAuthTooTokenQuery) Exist(ctx context.Context) (bool, error)
- func (oattq *OhAuthTooTokenQuery) ExistX(ctx context.Context) bool
- func (oattq *OhAuthTooTokenQuery) Filter() *OhAuthTooTokenFilter
- func (oattq *OhAuthTooTokenQuery) First(ctx context.Context) (*OhAuthTooToken, error)
- func (oattq *OhAuthTooTokenQuery) FirstID(ctx context.Context) (id string, err error)
- func (oattq *OhAuthTooTokenQuery) FirstIDX(ctx context.Context) string
- func (oattq *OhAuthTooTokenQuery) FirstX(ctx context.Context) *OhAuthTooToken
- func (oattq *OhAuthTooTokenQuery) GroupBy(field string, fields ...string) *OhAuthTooTokenGroupBy
- func (oattq *OhAuthTooTokenQuery) IDs(ctx context.Context) (ids []string, err error)
- func (oattq *OhAuthTooTokenQuery) IDsX(ctx context.Context) []string
- func (oattq *OhAuthTooTokenQuery) Limit(limit int) *OhAuthTooTokenQuery
- func (oattq *OhAuthTooTokenQuery) Offset(offset int) *OhAuthTooTokenQuery
- func (oattq *OhAuthTooTokenQuery) Only(ctx context.Context) (*OhAuthTooToken, error)
- func (oattq *OhAuthTooTokenQuery) OnlyID(ctx context.Context) (id string, err error)
- func (oattq *OhAuthTooTokenQuery) OnlyIDX(ctx context.Context) string
- func (oattq *OhAuthTooTokenQuery) OnlyX(ctx context.Context) *OhAuthTooToken
- func (oattq *OhAuthTooTokenQuery) Order(o ...ohauthtootoken.OrderOption) *OhAuthTooTokenQuery
- func (oatt *OhAuthTooTokenQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*OhAuthTooTokenConnection, error)
- func (oattq *OhAuthTooTokenQuery) Select(fields ...string) *OhAuthTooTokenSelect
- func (oattq *OhAuthTooTokenQuery) Unique(unique bool) *OhAuthTooTokenQuery
- func (oattq *OhAuthTooTokenQuery) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenQuery
- type OhAuthTooTokenSelect
- func (oatts *OhAuthTooTokenSelect) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenSelect
- func (s *OhAuthTooTokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OhAuthTooTokenSelect) BoolX(ctx context.Context) bool
- func (s *OhAuthTooTokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OhAuthTooTokenSelect) BoolsX(ctx context.Context) []bool
- func (s *OhAuthTooTokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OhAuthTooTokenSelect) Float64X(ctx context.Context) float64
- func (s *OhAuthTooTokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OhAuthTooTokenSelect) Float64sX(ctx context.Context) []float64
- func (s *OhAuthTooTokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OhAuthTooTokenSelect) IntX(ctx context.Context) int
- func (s *OhAuthTooTokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OhAuthTooTokenSelect) IntsX(ctx context.Context) []int
- func (oatts *OhAuthTooTokenSelect) Scan(ctx context.Context, v any) error
- func (s *OhAuthTooTokenSelect) ScanX(ctx context.Context, v any)
- func (s *OhAuthTooTokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *OhAuthTooTokenSelect) StringX(ctx context.Context) string
- func (s *OhAuthTooTokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OhAuthTooTokenSelect) StringsX(ctx context.Context) []string
- type OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) AppendClaimsGroups(s []string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) AppendConnectorData(s []string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) AppendScopes(s []string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) ClearClaimsGroups() *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) ClearConnectorData() *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) ClearScopes() *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) Exec(ctx context.Context) error
- func (oattu *OhAuthTooTokenUpdate) ExecX(ctx context.Context)
- func (oattu *OhAuthTooTokenUpdate) Mutation() *OhAuthTooTokenMutation
- func (oattu *OhAuthTooTokenUpdate) Save(ctx context.Context) (int, error)
- func (oattu *OhAuthTooTokenUpdate) SaveX(ctx context.Context) int
- func (oattu *OhAuthTooTokenUpdate) SetClaimsEmail(s string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetClaimsEmailVerified(b bool) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetClaimsGroups(s []string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetClaimsPreferredUsername(s string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetClaimsUserID(s string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetClaimsUsername(s string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetClientID(s string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetConnectorData(s []string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetConnectorID(s string) *OhAuthTooTokenUpdate
- func (c *OhAuthTooTokenUpdate) SetInput(i UpdateOhAuthTooTokenInput) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetLastUsed(t time.Time) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsEmail(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsEmailVerified(b *bool) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsPreferredUsername(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsUserID(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsUsername(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableClientID(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableConnectorID(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNillableNonce(s *string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetNonce(s string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) SetScopes(s []string) *OhAuthTooTokenUpdate
- func (oattu *OhAuthTooTokenUpdate) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenUpdate
- type OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) AppendClaimsGroups(s []string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) AppendConnectorData(s []string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) AppendScopes(s []string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) ClearClaimsGroups() *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) ClearConnectorData() *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) ClearScopes() *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) Exec(ctx context.Context) error
- func (oattuo *OhAuthTooTokenUpdateOne) ExecX(ctx context.Context)
- func (oattuo *OhAuthTooTokenUpdateOne) Mutation() *OhAuthTooTokenMutation
- func (oattuo *OhAuthTooTokenUpdateOne) Save(ctx context.Context) (*OhAuthTooToken, error)
- func (oattuo *OhAuthTooTokenUpdateOne) SaveX(ctx context.Context) *OhAuthTooToken
- func (oattuo *OhAuthTooTokenUpdateOne) Select(field string, fields ...string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsEmail(s string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsEmailVerified(b bool) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsGroups(s []string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsPreferredUsername(s string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsUserID(s string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsUsername(s string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetClientID(s string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetConnectorData(s []string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetConnectorID(s string) *OhAuthTooTokenUpdateOne
- func (c *OhAuthTooTokenUpdateOne) SetInput(i UpdateOhAuthTooTokenInput) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetLastUsed(t time.Time) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsEmail(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsEmailVerified(b *bool) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsPreferredUsername(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsUserID(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsUsername(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClientID(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableConnectorID(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNillableNonce(s *string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetNonce(s string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) SetScopes(s []string) *OhAuthTooTokenUpdateOne
- func (oattuo *OhAuthTooTokenUpdateOne) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenUpdateOne
- type OhAuthTooTokenWhereInput
- type OhAuthTooTokens
- type Op
- type Option
- func AlternateSchema(schemaConfig SchemaConfig) Option
- func Authz(v fga.Client) Option
- func Debug() Option
- func Driver(driver dialect.Driver) Option
- func HTTPClient(v *http.Client) Option
- func Log(fn func(...any)) Option
- func Logger(v zap.SugaredLogger) Option
- func SecretsKeeper(v *secrets.Keeper) Option
- type OrderDirection
- type OrderFunc
- type Organization
- func (o *Organization) Children(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*OrganizationConnection, error)
- func (o *Organization) Entitlements(ctx context.Context) (result []*Entitlement, err error)
- func (o *Organization) Groups(ctx context.Context) (result []*Group, err error)
- func (o *Organization) Integrations(ctx context.Context) (result []*Integration, err error)
- func (n *Organization) IsNode()
- func (o *Organization) NamedChildren(name string) ([]*Organization, error)
- func (o *Organization) NamedEntitlements(name string) ([]*Entitlement, error)
- func (o *Organization) NamedGroups(name string) ([]*Group, error)
- func (o *Organization) NamedIntegrations(name string) ([]*Integration, error)
- func (o *Organization) NamedOauthprovider(name string) ([]*OauthProvider, error)
- func (o *Organization) NamedUsers(name string) ([]*User, error)
- func (o *Organization) Oauthprovider(ctx context.Context) (result []*OauthProvider, err error)
- func (o *Organization) Parent(ctx context.Context) (*Organization, error)
- func (o *Organization) QueryChildren() *OrganizationQuery
- func (o *Organization) QueryEntitlements() *EntitlementQuery
- func (o *Organization) QueryGroups() *GroupQuery
- func (o *Organization) QueryIntegrations() *IntegrationQuery
- func (o *Organization) QueryOauthprovider() *OauthProviderQuery
- func (o *Organization) QueryParent() *OrganizationQuery
- func (o *Organization) QuerySetting() *OrganizationSettingQuery
- func (o *Organization) QueryUsers() *UserQuery
- func (o *Organization) Setting(ctx context.Context) (*OrganizationSetting, error)
- func (o *Organization) String() string
- func (o *Organization) ToEdge(order *OrganizationOrder) *OrganizationEdge
- func (o *Organization) Unwrap() *Organization
- func (o *Organization) Update() *OrganizationUpdateOne
- func (o *Organization) Users(ctx context.Context) (result []*User, err error)
- func (o *Organization) Value(name string) (ent.Value, error)
- type OrganizationClient
- func (c *OrganizationClient) Create() *OrganizationCreate
- func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk
- func (c *OrganizationClient) Delete() *OrganizationDelete
- func (c *OrganizationClient) DeleteOne(o *Organization) *OrganizationDeleteOne
- func (c *OrganizationClient) DeleteOneID(id string) *OrganizationDeleteOne
- func (c *OrganizationClient) Get(ctx context.Context, id string) (*Organization, error)
- func (c *OrganizationClient) GetX(ctx context.Context, id string) *Organization
- func (c *OrganizationClient) Hooks() []Hook
- func (c *OrganizationClient) Intercept(interceptors ...Interceptor)
- func (c *OrganizationClient) Interceptors() []Interceptor
- func (c *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk
- func (c *OrganizationClient) Query() *OrganizationQuery
- func (c *OrganizationClient) QueryChildren(o *Organization) *OrganizationQuery
- func (c *OrganizationClient) QueryEntitlements(o *Organization) *EntitlementQuery
- func (c *OrganizationClient) QueryGroups(o *Organization) *GroupQuery
- func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery
- func (c *OrganizationClient) QueryOauthprovider(o *Organization) *OauthProviderQuery
- func (c *OrganizationClient) QueryParent(o *Organization) *OrganizationQuery
- func (c *OrganizationClient) QuerySetting(o *Organization) *OrganizationSettingQuery
- func (c *OrganizationClient) QueryUsers(o *Organization) *UserQuery
- func (c *OrganizationClient) Update() *OrganizationUpdate
- func (c *OrganizationClient) UpdateOne(o *Organization) *OrganizationUpdateOne
- func (c *OrganizationClient) UpdateOneID(id string) *OrganizationUpdateOne
- func (c *OrganizationClient) Use(hooks ...Hook)
- type OrganizationConnection
- type OrganizationCreate
- func (oc *OrganizationCreate) AddChildIDs(ids ...string) *OrganizationCreate
- func (oc *OrganizationCreate) AddChildren(o ...*Organization) *OrganizationCreate
- func (oc *OrganizationCreate) AddEntitlementIDs(ids ...string) *OrganizationCreate
- func (oc *OrganizationCreate) AddEntitlements(e ...*Entitlement) *OrganizationCreate
- func (oc *OrganizationCreate) AddGroupIDs(ids ...string) *OrganizationCreate
- func (oc *OrganizationCreate) AddGroups(g ...*Group) *OrganizationCreate
- func (oc *OrganizationCreate) AddIntegrationIDs(ids ...string) *OrganizationCreate
- func (oc *OrganizationCreate) AddIntegrations(i ...*Integration) *OrganizationCreate
- func (oc *OrganizationCreate) AddOauthprovider(o ...*OauthProvider) *OrganizationCreate
- func (oc *OrganizationCreate) AddOauthproviderIDs(ids ...string) *OrganizationCreate
- func (oc *OrganizationCreate) AddUserIDs(ids ...string) *OrganizationCreate
- func (oc *OrganizationCreate) AddUsers(u ...*User) *OrganizationCreate
- func (oc *OrganizationCreate) Exec(ctx context.Context) error
- func (oc *OrganizationCreate) ExecX(ctx context.Context)
- func (oc *OrganizationCreate) Mutation() *OrganizationMutation
- func (oc *OrganizationCreate) Save(ctx context.Context) (*Organization, error)
- func (oc *OrganizationCreate) SaveX(ctx context.Context) *Organization
- func (oc *OrganizationCreate) SetCreatedAt(t time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetCreatedBy(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetDeletedAt(t time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetDeletedBy(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetDescription(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetDisplayName(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetID(s string) *OrganizationCreate
- func (c *OrganizationCreate) SetInput(i CreateOrganizationInput) *OrganizationCreate
- func (oc *OrganizationCreate) SetName(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableCreatedAt(t *time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableCreatedBy(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableDeletedAt(t *time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableDeletedBy(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableDescription(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableDisplayName(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableID(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableParentID(id *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableParentOrganizationID(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableSettingID(id *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetNillableUpdatedBy(s *string) *OrganizationCreate
- func (oc *OrganizationCreate) SetParent(o *Organization) *OrganizationCreate
- func (oc *OrganizationCreate) SetParentID(id string) *OrganizationCreate
- func (oc *OrganizationCreate) SetParentOrganizationID(s string) *OrganizationCreate
- func (oc *OrganizationCreate) SetSetting(o *OrganizationSetting) *OrganizationCreate
- func (oc *OrganizationCreate) SetSettingID(id string) *OrganizationCreate
- func (oc *OrganizationCreate) SetUpdatedAt(t time.Time) *OrganizationCreate
- func (oc *OrganizationCreate) SetUpdatedBy(s string) *OrganizationCreate
- type OrganizationCreateBulk
- type OrganizationDelete
- type OrganizationDeleteOne
- type OrganizationEdge
- type OrganizationEdges
- func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error)
- func (e OrganizationEdges) EntitlementsOrErr() ([]*Entitlement, error)
- func (e OrganizationEdges) GroupsOrErr() ([]*Group, error)
- func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)
- func (e OrganizationEdges) OauthproviderOrErr() ([]*OauthProvider, error)
- func (e OrganizationEdges) ParentOrErr() (*Organization, error)
- func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error)
- func (e OrganizationEdges) UsersOrErr() ([]*User, error)
- type OrganizationFilter
- func (f *OrganizationFilter) Where(p entql.P)
- func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP)
- func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP)
- func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP)
- func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP)
- func (f *OrganizationFilter) WhereDescription(p entql.StringP)
- func (f *OrganizationFilter) WhereDisplayName(p entql.StringP)
- func (f *OrganizationFilter) WhereHasChildren()
- func (f *OrganizationFilter) WhereHasChildrenWith(preds ...predicate.Organization)
- func (f *OrganizationFilter) WhereHasEntitlements()
- func (f *OrganizationFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement)
- func (f *OrganizationFilter) WhereHasGroups()
- func (f *OrganizationFilter) WhereHasGroupsWith(preds ...predicate.Group)
- func (f *OrganizationFilter) WhereHasIntegrations()
- func (f *OrganizationFilter) WhereHasIntegrationsWith(preds ...predicate.Integration)
- func (f *OrganizationFilter) WhereHasOauthprovider()
- func (f *OrganizationFilter) WhereHasOauthproviderWith(preds ...predicate.OauthProvider)
- func (f *OrganizationFilter) WhereHasParent()
- func (f *OrganizationFilter) WhereHasParentWith(preds ...predicate.Organization)
- func (f *OrganizationFilter) WhereHasSetting()
- func (f *OrganizationFilter) WhereHasSettingWith(preds ...predicate.OrganizationSetting)
- func (f *OrganizationFilter) WhereHasUsers()
- func (f *OrganizationFilter) WhereHasUsersWith(preds ...predicate.User)
- func (f *OrganizationFilter) WhereID(p entql.StringP)
- func (f *OrganizationFilter) WhereName(p entql.StringP)
- func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP)
- func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP)
- type OrganizationGroupBy
- func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy
- func (s *OrganizationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationGroupBy) BoolX(ctx context.Context) bool
- func (s *OrganizationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OrganizationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationGroupBy) Float64X(ctx context.Context) float64
- func (s *OrganizationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OrganizationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationGroupBy) IntX(ctx context.Context) int
- func (s *OrganizationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationGroupBy) IntsX(ctx context.Context) []int
- func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v any) error
- func (s *OrganizationGroupBy) ScanX(ctx context.Context, v any)
- func (s *OrganizationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationGroupBy) StringX(ctx context.Context) string
- func (s *OrganizationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationGroupBy) StringsX(ctx context.Context) []string
- type OrganizationMutation
- func (m *OrganizationMutation) AddChildIDs(ids ...string)
- func (m *OrganizationMutation) AddEntitlementIDs(ids ...string)
- func (m *OrganizationMutation) AddField(name string, value ent.Value) error
- func (m *OrganizationMutation) AddGroupIDs(ids ...string)
- func (m *OrganizationMutation) AddIntegrationIDs(ids ...string)
- func (m *OrganizationMutation) AddOauthproviderIDs(ids ...string)
- func (m *OrganizationMutation) AddUserIDs(ids ...string)
- func (m *OrganizationMutation) AddedEdges() []string
- func (m *OrganizationMutation) AddedField(name string) (ent.Value, bool)
- func (m *OrganizationMutation) AddedFields() []string
- func (m *OrganizationMutation) AddedIDs(name string) []ent.Value
- func (m *OrganizationMutation) ChildrenCleared() bool
- func (m *OrganizationMutation) ChildrenIDs() (ids []string)
- func (m *OrganizationMutation) ClearChildren()
- func (m *OrganizationMutation) ClearCreatedBy()
- func (m *OrganizationMutation) ClearDeletedAt()
- func (m *OrganizationMutation) ClearDeletedBy()
- func (m *OrganizationMutation) ClearDescription()
- func (m *OrganizationMutation) ClearEdge(name string) error
- func (m *OrganizationMutation) ClearEntitlements()
- func (m *OrganizationMutation) ClearField(name string) error
- func (m *OrganizationMutation) ClearGroups()
- func (m *OrganizationMutation) ClearIntegrations()
- func (m *OrganizationMutation) ClearOauthprovider()
- func (m *OrganizationMutation) ClearParent()
- func (m *OrganizationMutation) ClearParentOrganizationID()
- func (m *OrganizationMutation) ClearSetting()
- func (m *OrganizationMutation) ClearUpdatedBy()
- func (m *OrganizationMutation) ClearUsers()
- func (m *OrganizationMutation) ClearedEdges() []string
- func (m *OrganizationMutation) ClearedFields() []string
- func (m OrganizationMutation) Client() *Client
- func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OrganizationMutation) CreatedBy() (r string, exists bool)
- func (m *OrganizationMutation) CreatedByCleared() bool
- func (m *OrganizationMutation) DeletedAt() (r time.Time, exists bool)
- func (m *OrganizationMutation) DeletedAtCleared() bool
- func (m *OrganizationMutation) DeletedBy() (r string, exists bool)
- func (m *OrganizationMutation) DeletedByCleared() bool
- func (m *OrganizationMutation) Description() (r string, exists bool)
- func (m *OrganizationMutation) DescriptionCleared() bool
- func (m *OrganizationMutation) DisplayName() (r string, exists bool)
- func (m *OrganizationMutation) EdgeCleared(name string) bool
- func (m *OrganizationMutation) EntitlementsCleared() bool
- func (m *OrganizationMutation) EntitlementsIDs() (ids []string)
- func (m *OrganizationMutation) Field(name string) (ent.Value, bool)
- func (m *OrganizationMutation) FieldCleared(name string) bool
- func (m *OrganizationMutation) Fields() []string
- func (m *OrganizationMutation) Filter() *OrganizationFilter
- func (m *OrganizationMutation) GroupsCleared() bool
- func (m *OrganizationMutation) GroupsIDs() (ids []string)
- func (m *OrganizationMutation) ID() (id string, exists bool)
- func (m *OrganizationMutation) IDs(ctx context.Context) ([]string, error)
- func (m *OrganizationMutation) IntegrationsCleared() bool
- func (m *OrganizationMutation) IntegrationsIDs() (ids []string)
- func (m *OrganizationMutation) Name() (r string, exists bool)
- func (m *OrganizationMutation) OauthproviderCleared() bool
- func (m *OrganizationMutation) OauthproviderIDs() (ids []string)
- func (m *OrganizationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldDisplayName(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldParentOrganizationID(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) Op() Op
- func (m *OrganizationMutation) ParentCleared() bool
- func (m *OrganizationMutation) ParentID() (id string, exists bool)
- func (m *OrganizationMutation) ParentIDs() (ids []string)
- func (m *OrganizationMutation) ParentOrganizationID() (r string, exists bool)
- func (m *OrganizationMutation) ParentOrganizationIDCleared() bool
- func (m *OrganizationMutation) RemoveChildIDs(ids ...string)
- func (m *OrganizationMutation) RemoveEntitlementIDs(ids ...string)
- func (m *OrganizationMutation) RemoveGroupIDs(ids ...string)
- func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...string)
- func (m *OrganizationMutation) RemoveOauthproviderIDs(ids ...string)
- func (m *OrganizationMutation) RemoveUserIDs(ids ...string)
- func (m *OrganizationMutation) RemovedChildrenIDs() (ids []string)
- func (m *OrganizationMutation) RemovedEdges() []string
- func (m *OrganizationMutation) RemovedEntitlementsIDs() (ids []string)
- func (m *OrganizationMutation) RemovedGroupsIDs() (ids []string)
- func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value
- func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []string)
- func (m *OrganizationMutation) RemovedOauthproviderIDs() (ids []string)
- func (m *OrganizationMutation) RemovedUsersIDs() (ids []string)
- func (m *OrganizationMutation) ResetChildren()
- func (m *OrganizationMutation) ResetCreatedAt()
- func (m *OrganizationMutation) ResetCreatedBy()
- func (m *OrganizationMutation) ResetDeletedAt()
- func (m *OrganizationMutation) ResetDeletedBy()
- func (m *OrganizationMutation) ResetDescription()
- func (m *OrganizationMutation) ResetDisplayName()
- func (m *OrganizationMutation) ResetEdge(name string) error
- func (m *OrganizationMutation) ResetEntitlements()
- func (m *OrganizationMutation) ResetField(name string) error
- func (m *OrganizationMutation) ResetGroups()
- func (m *OrganizationMutation) ResetIntegrations()
- func (m *OrganizationMutation) ResetName()
- func (m *OrganizationMutation) ResetOauthprovider()
- func (m *OrganizationMutation) ResetParent()
- func (m *OrganizationMutation) ResetParentOrganizationID()
- func (m *OrganizationMutation) ResetSetting()
- func (m *OrganizationMutation) ResetUpdatedAt()
- func (m *OrganizationMutation) ResetUpdatedBy()
- func (m *OrganizationMutation) ResetUsers()
- func (m *OrganizationMutation) SetCreatedAt(t time.Time)
- func (m *OrganizationMutation) SetCreatedBy(s string)
- func (m *OrganizationMutation) SetDeletedAt(t time.Time)
- func (m *OrganizationMutation) SetDeletedBy(s string)
- func (m *OrganizationMutation) SetDescription(s string)
- func (m *OrganizationMutation) SetDisplayName(s string)
- func (m *OrganizationMutation) SetField(name string, value ent.Value) error
- func (m *OrganizationMutation) SetID(id string)
- func (m *OrganizationMutation) SetName(s string)
- func (m *OrganizationMutation) SetOp(op Op)
- func (m *OrganizationMutation) SetParentID(id string)
- func (m *OrganizationMutation) SetParentOrganizationID(s string)
- func (m *OrganizationMutation) SetSettingID(id string)
- func (m *OrganizationMutation) SetUpdatedAt(t time.Time)
- func (m *OrganizationMutation) SetUpdatedBy(s string)
- func (m *OrganizationMutation) SettingCleared() bool
- func (m *OrganizationMutation) SettingID() (id string, exists bool)
- func (m *OrganizationMutation) SettingIDs() (ids []string)
- func (m OrganizationMutation) Tx() (*Tx, error)
- func (m *OrganizationMutation) Type() string
- func (m *OrganizationMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *OrganizationMutation) UpdatedBy() (r string, exists bool)
- func (m *OrganizationMutation) UpdatedByCleared() bool
- func (m *OrganizationMutation) UsersCleared() bool
- func (m *OrganizationMutation) UsersIDs() (ids []string)
- func (m *OrganizationMutation) Where(ps ...predicate.Organization)
- func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))
- type OrganizationOrder
- type OrganizationOrderField
- type OrganizationPaginateOption
- type OrganizationQuery
- func (oq *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect
- func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)
- func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization
- func (oq *OrganizationQuery) Clone() *OrganizationQuery
- func (o *OrganizationQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationQuery, error)
- func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)
- func (oq *OrganizationQuery) CountX(ctx context.Context) int
- func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)
- func (oq *OrganizationQuery) ExistX(ctx context.Context) bool
- func (oq *OrganizationQuery) Filter() *OrganizationFilter
- func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)
- func (oq *OrganizationQuery) FirstID(ctx context.Context) (id string, err error)
- func (oq *OrganizationQuery) FirstIDX(ctx context.Context) string
- func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization
- func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy
- func (oq *OrganizationQuery) IDs(ctx context.Context) (ids []string, err error)
- func (oq *OrganizationQuery) IDsX(ctx context.Context) []string
- func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery
- func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery
- func (oq *OrganizationQuery) Only(ctx context.Context) (*Organization, error)
- func (oq *OrganizationQuery) OnlyID(ctx context.Context) (id string, err error)
- func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) string
- func (oq *OrganizationQuery) OnlyX(ctx context.Context) *Organization
- func (oq *OrganizationQuery) Order(o ...organization.OrderOption) *OrganizationQuery
- func (o *OrganizationQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*OrganizationConnection, error)
- func (oq *OrganizationQuery) QueryChildren() *OrganizationQuery
- func (oq *OrganizationQuery) QueryEntitlements() *EntitlementQuery
- func (oq *OrganizationQuery) QueryGroups() *GroupQuery
- func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery
- func (oq *OrganizationQuery) QueryOauthprovider() *OauthProviderQuery
- func (oq *OrganizationQuery) QueryParent() *OrganizationQuery
- func (oq *OrganizationQuery) QuerySetting() *OrganizationSettingQuery
- func (oq *OrganizationQuery) QueryUsers() *UserQuery
- func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect
- func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery
- func (oq *OrganizationQuery) Where(ps ...predicate.Organization) *OrganizationQuery
- func (oq *OrganizationQuery) WithChildren(opts ...func(*OrganizationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithEntitlements(opts ...func(*EntitlementQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithGroups(opts ...func(*GroupQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithNamedChildren(name string, opts ...func(*OrganizationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithNamedEntitlements(name string, opts ...func(*EntitlementQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithNamedGroups(name string, opts ...func(*GroupQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithNamedIntegrations(name string, opts ...func(*IntegrationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithNamedOauthprovider(name string, opts ...func(*OauthProviderQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithOauthprovider(opts ...func(*OauthProviderQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithParent(opts ...func(*OrganizationQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithSetting(opts ...func(*OrganizationSettingQuery)) *OrganizationQuery
- func (oq *OrganizationQuery) WithUsers(opts ...func(*UserQuery)) *OrganizationQuery
- type OrganizationSelect
- func (os *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect
- func (s *OrganizationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationSelect) BoolX(ctx context.Context) bool
- func (s *OrganizationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationSelect) BoolsX(ctx context.Context) []bool
- func (s *OrganizationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationSelect) Float64X(ctx context.Context) float64
- func (s *OrganizationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationSelect) Float64sX(ctx context.Context) []float64
- func (s *OrganizationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationSelect) IntX(ctx context.Context) int
- func (s *OrganizationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationSelect) IntsX(ctx context.Context) []int
- func (os *OrganizationSelect) Scan(ctx context.Context, v any) error
- func (s *OrganizationSelect) ScanX(ctx context.Context, v any)
- func (s *OrganizationSelect) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationSelect) StringX(ctx context.Context) string
- func (s *OrganizationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationSelect) StringsX(ctx context.Context) []string
- type OrganizationSetting
- func (n *OrganizationSetting) IsNode()
- func (os *OrganizationSetting) Organization(ctx context.Context) (*Organization, error)
- func (os *OrganizationSetting) QueryOrganization() *OrganizationQuery
- func (os *OrganizationSetting) String() string
- func (os *OrganizationSetting) ToEdge(order *OrganizationSettingOrder) *OrganizationSettingEdge
- func (os *OrganizationSetting) Unwrap() *OrganizationSetting
- func (os *OrganizationSetting) Update() *OrganizationSettingUpdateOne
- func (os *OrganizationSetting) Value(name string) (ent.Value, error)
- type OrganizationSettingClient
- func (c *OrganizationSettingClient) Create() *OrganizationSettingCreate
- func (c *OrganizationSettingClient) CreateBulk(builders ...*OrganizationSettingCreate) *OrganizationSettingCreateBulk
- func (c *OrganizationSettingClient) Delete() *OrganizationSettingDelete
- func (c *OrganizationSettingClient) DeleteOne(os *OrganizationSetting) *OrganizationSettingDeleteOne
- func (c *OrganizationSettingClient) DeleteOneID(id string) *OrganizationSettingDeleteOne
- func (c *OrganizationSettingClient) Get(ctx context.Context, id string) (*OrganizationSetting, error)
- func (c *OrganizationSettingClient) GetX(ctx context.Context, id string) *OrganizationSetting
- func (c *OrganizationSettingClient) Hooks() []Hook
- func (c *OrganizationSettingClient) Intercept(interceptors ...Interceptor)
- func (c *OrganizationSettingClient) Interceptors() []Interceptor
- func (c *OrganizationSettingClient) MapCreateBulk(slice any, setFunc func(*OrganizationSettingCreate, int)) *OrganizationSettingCreateBulk
- func (c *OrganizationSettingClient) Query() *OrganizationSettingQuery
- func (c *OrganizationSettingClient) QueryOrganization(os *OrganizationSetting) *OrganizationQuery
- func (c *OrganizationSettingClient) Update() *OrganizationSettingUpdate
- func (c *OrganizationSettingClient) UpdateOne(os *OrganizationSetting) *OrganizationSettingUpdateOne
- func (c *OrganizationSettingClient) UpdateOneID(id string) *OrganizationSettingUpdateOne
- func (c *OrganizationSettingClient) Use(hooks ...Hook)
- type OrganizationSettingConnection
- type OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) Exec(ctx context.Context) error
- func (osc *OrganizationSettingCreate) ExecX(ctx context.Context)
- func (osc *OrganizationSettingCreate) Mutation() *OrganizationSettingMutation
- func (osc *OrganizationSettingCreate) Save(ctx context.Context) (*OrganizationSetting, error)
- func (osc *OrganizationSettingCreate) SaveX(ctx context.Context) *OrganizationSetting
- func (osc *OrganizationSettingCreate) SetBillingAddress(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetBillingContact(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetBillingEmail(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetBillingPhone(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetCreatedAt(t time.Time) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetCreatedBy(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetDeletedAt(t time.Time) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetDeletedBy(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetDomains(s []string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetID(s string) *OrganizationSettingCreate
- func (c *OrganizationSettingCreate) SetInput(i CreateOrganizationSettingInput) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableBillingAddress(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableBillingContact(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableBillingEmail(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableBillingPhone(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableCreatedAt(t *time.Time) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableCreatedBy(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableDeletedAt(t *time.Time) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableDeletedBy(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableID(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableOrganizationID(id *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableSSOCert(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableSSOIssuer(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableTaxIdentifier(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetNillableUpdatedBy(s *string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetOrganization(o *Organization) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetOrganizationID(id string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetSSOCert(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetSSOEntrypoint(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetSSOIssuer(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetTags(s []string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetTaxIdentifier(s string) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetUpdatedAt(t time.Time) *OrganizationSettingCreate
- func (osc *OrganizationSettingCreate) SetUpdatedBy(s string) *OrganizationSettingCreate
- type OrganizationSettingCreateBulk
- func (oscb *OrganizationSettingCreateBulk) Exec(ctx context.Context) error
- func (oscb *OrganizationSettingCreateBulk) ExecX(ctx context.Context)
- func (oscb *OrganizationSettingCreateBulk) Save(ctx context.Context) ([]*OrganizationSetting, error)
- func (oscb *OrganizationSettingCreateBulk) SaveX(ctx context.Context) []*OrganizationSetting
- type OrganizationSettingDelete
- type OrganizationSettingDeleteOne
- type OrganizationSettingEdge
- type OrganizationSettingEdges
- type OrganizationSettingFilter
- func (f *OrganizationSettingFilter) Where(p entql.P)
- func (f *OrganizationSettingFilter) WhereBillingAddress(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereBillingContact(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereBillingEmail(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereBillingPhone(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereCreatedAt(p entql.TimeP)
- func (f *OrganizationSettingFilter) WhereCreatedBy(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereDeletedAt(p entql.TimeP)
- func (f *OrganizationSettingFilter) WhereDeletedBy(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereDomains(p entql.BytesP)
- func (f *OrganizationSettingFilter) WhereHasOrganization()
- func (f *OrganizationSettingFilter) WhereHasOrganizationWith(preds ...predicate.Organization)
- func (f *OrganizationSettingFilter) WhereID(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereSSOCert(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereSSOEntrypoint(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereSSOIssuer(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereTags(p entql.BytesP)
- func (f *OrganizationSettingFilter) WhereTaxIdentifier(p entql.StringP)
- func (f *OrganizationSettingFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *OrganizationSettingFilter) WhereUpdatedBy(p entql.StringP)
- type OrganizationSettingGroupBy
- func (osgb *OrganizationSettingGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationSettingGroupBy
- func (s *OrganizationSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationSettingGroupBy) BoolX(ctx context.Context) bool
- func (s *OrganizationSettingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationSettingGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OrganizationSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationSettingGroupBy) Float64X(ctx context.Context) float64
- func (s *OrganizationSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationSettingGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OrganizationSettingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationSettingGroupBy) IntX(ctx context.Context) int
- func (s *OrganizationSettingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationSettingGroupBy) IntsX(ctx context.Context) []int
- func (osgb *OrganizationSettingGroupBy) Scan(ctx context.Context, v any) error
- func (s *OrganizationSettingGroupBy) ScanX(ctx context.Context, v any)
- func (s *OrganizationSettingGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationSettingGroupBy) StringX(ctx context.Context) string
- func (s *OrganizationSettingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationSettingGroupBy) StringsX(ctx context.Context) []string
- type OrganizationSettingMutation
- func (m *OrganizationSettingMutation) AddField(name string, value ent.Value) error
- func (m *OrganizationSettingMutation) AddedEdges() []string
- func (m *OrganizationSettingMutation) AddedField(name string) (ent.Value, bool)
- func (m *OrganizationSettingMutation) AddedFields() []string
- func (m *OrganizationSettingMutation) AddedIDs(name string) []ent.Value
- func (m *OrganizationSettingMutation) AppendDomains(s []string)
- func (m *OrganizationSettingMutation) AppendTags(s []string)
- func (m *OrganizationSettingMutation) AppendedDomains() ([]string, bool)
- func (m *OrganizationSettingMutation) AppendedTags() ([]string, bool)
- func (m *OrganizationSettingMutation) BillingAddress() (r string, exists bool)
- func (m *OrganizationSettingMutation) BillingAddressCleared() bool
- func (m *OrganizationSettingMutation) BillingContact() (r string, exists bool)
- func (m *OrganizationSettingMutation) BillingContactCleared() bool
- func (m *OrganizationSettingMutation) BillingEmail() (r string, exists bool)
- func (m *OrganizationSettingMutation) BillingEmailCleared() bool
- func (m *OrganizationSettingMutation) BillingPhone() (r string, exists bool)
- func (m *OrganizationSettingMutation) BillingPhoneCleared() bool
- func (m *OrganizationSettingMutation) ClearBillingAddress()
- func (m *OrganizationSettingMutation) ClearBillingContact()
- func (m *OrganizationSettingMutation) ClearBillingEmail()
- func (m *OrganizationSettingMutation) ClearBillingPhone()
- func (m *OrganizationSettingMutation) ClearCreatedBy()
- func (m *OrganizationSettingMutation) ClearDeletedAt()
- func (m *OrganizationSettingMutation) ClearDeletedBy()
- func (m *OrganizationSettingMutation) ClearDomains()
- func (m *OrganizationSettingMutation) ClearEdge(name string) error
- func (m *OrganizationSettingMutation) ClearField(name string) error
- func (m *OrganizationSettingMutation) ClearOrganization()
- func (m *OrganizationSettingMutation) ClearSSOCert()
- func (m *OrganizationSettingMutation) ClearSSOEntrypoint()
- func (m *OrganizationSettingMutation) ClearSSOIssuer()
- func (m *OrganizationSettingMutation) ClearTags()
- func (m *OrganizationSettingMutation) ClearTaxIdentifier()
- func (m *OrganizationSettingMutation) ClearUpdatedBy()
- func (m *OrganizationSettingMutation) ClearedEdges() []string
- func (m *OrganizationSettingMutation) ClearedFields() []string
- func (m OrganizationSettingMutation) Client() *Client
- func (m *OrganizationSettingMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OrganizationSettingMutation) CreatedBy() (r string, exists bool)
- func (m *OrganizationSettingMutation) CreatedByCleared() bool
- func (m *OrganizationSettingMutation) DeletedAt() (r time.Time, exists bool)
- func (m *OrganizationSettingMutation) DeletedAtCleared() bool
- func (m *OrganizationSettingMutation) DeletedBy() (r string, exists bool)
- func (m *OrganizationSettingMutation) DeletedByCleared() bool
- func (m *OrganizationSettingMutation) Domains() (r []string, exists bool)
- func (m *OrganizationSettingMutation) DomainsCleared() bool
- func (m *OrganizationSettingMutation) EdgeCleared(name string) bool
- func (m *OrganizationSettingMutation) Field(name string) (ent.Value, bool)
- func (m *OrganizationSettingMutation) FieldCleared(name string) bool
- func (m *OrganizationSettingMutation) Fields() []string
- func (m *OrganizationSettingMutation) Filter() *OrganizationSettingFilter
- func (m *OrganizationSettingMutation) ID() (id string, exists bool)
- func (m *OrganizationSettingMutation) IDs(ctx context.Context) ([]string, error)
- func (m *OrganizationSettingMutation) OldBillingAddress(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldBillingContact(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldBillingEmail(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldBillingPhone(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldDomains(ctx context.Context) (v []string, err error)
- func (m *OrganizationSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OrganizationSettingMutation) OldSSOCert(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldSSOEntrypoint(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldSSOIssuer(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldTags(ctx context.Context) (v []string, err error)
- func (m *OrganizationSettingMutation) OldTaxIdentifier(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *OrganizationSettingMutation) Op() Op
- func (m *OrganizationSettingMutation) OrganizationCleared() bool
- func (m *OrganizationSettingMutation) OrganizationID() (id string, exists bool)
- func (m *OrganizationSettingMutation) OrganizationIDs() (ids []string)
- func (m *OrganizationSettingMutation) RemovedEdges() []string
- func (m *OrganizationSettingMutation) RemovedIDs(name string) []ent.Value
- func (m *OrganizationSettingMutation) ResetBillingAddress()
- func (m *OrganizationSettingMutation) ResetBillingContact()
- func (m *OrganizationSettingMutation) ResetBillingEmail()
- func (m *OrganizationSettingMutation) ResetBillingPhone()
- func (m *OrganizationSettingMutation) ResetCreatedAt()
- func (m *OrganizationSettingMutation) ResetCreatedBy()
- func (m *OrganizationSettingMutation) ResetDeletedAt()
- func (m *OrganizationSettingMutation) ResetDeletedBy()
- func (m *OrganizationSettingMutation) ResetDomains()
- func (m *OrganizationSettingMutation) ResetEdge(name string) error
- func (m *OrganizationSettingMutation) ResetField(name string) error
- func (m *OrganizationSettingMutation) ResetOrganization()
- func (m *OrganizationSettingMutation) ResetSSOCert()
- func (m *OrganizationSettingMutation) ResetSSOEntrypoint()
- func (m *OrganizationSettingMutation) ResetSSOIssuer()
- func (m *OrganizationSettingMutation) ResetTags()
- func (m *OrganizationSettingMutation) ResetTaxIdentifier()
- func (m *OrganizationSettingMutation) ResetUpdatedAt()
- func (m *OrganizationSettingMutation) ResetUpdatedBy()
- func (m *OrganizationSettingMutation) SSOCert() (r string, exists bool)
- func (m *OrganizationSettingMutation) SSOCertCleared() bool
- func (m *OrganizationSettingMutation) SSOEntrypoint() (r string, exists bool)
- func (m *OrganizationSettingMutation) SSOEntrypointCleared() bool
- func (m *OrganizationSettingMutation) SSOIssuer() (r string, exists bool)
- func (m *OrganizationSettingMutation) SSOIssuerCleared() bool
- func (m *OrganizationSettingMutation) SetBillingAddress(s string)
- func (m *OrganizationSettingMutation) SetBillingContact(s string)
- func (m *OrganizationSettingMutation) SetBillingEmail(s string)
- func (m *OrganizationSettingMutation) SetBillingPhone(s string)
- func (m *OrganizationSettingMutation) SetCreatedAt(t time.Time)
- func (m *OrganizationSettingMutation) SetCreatedBy(s string)
- func (m *OrganizationSettingMutation) SetDeletedAt(t time.Time)
- func (m *OrganizationSettingMutation) SetDeletedBy(s string)
- func (m *OrganizationSettingMutation) SetDomains(s []string)
- func (m *OrganizationSettingMutation) SetField(name string, value ent.Value) error
- func (m *OrganizationSettingMutation) SetID(id string)
- func (m *OrganizationSettingMutation) SetOp(op Op)
- func (m *OrganizationSettingMutation) SetOrganizationID(id string)
- func (m *OrganizationSettingMutation) SetSSOCert(s string)
- func (m *OrganizationSettingMutation) SetSSOEntrypoint(s string)
- func (m *OrganizationSettingMutation) SetSSOIssuer(s string)
- func (m *OrganizationSettingMutation) SetTags(s []string)
- func (m *OrganizationSettingMutation) SetTaxIdentifier(s string)
- func (m *OrganizationSettingMutation) SetUpdatedAt(t time.Time)
- func (m *OrganizationSettingMutation) SetUpdatedBy(s string)
- func (m *OrganizationSettingMutation) Tags() (r []string, exists bool)
- func (m *OrganizationSettingMutation) TagsCleared() bool
- func (m *OrganizationSettingMutation) TaxIdentifier() (r string, exists bool)
- func (m *OrganizationSettingMutation) TaxIdentifierCleared() bool
- func (m OrganizationSettingMutation) Tx() (*Tx, error)
- func (m *OrganizationSettingMutation) Type() string
- func (m *OrganizationSettingMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *OrganizationSettingMutation) UpdatedBy() (r string, exists bool)
- func (m *OrganizationSettingMutation) UpdatedByCleared() bool
- func (m *OrganizationSettingMutation) Where(ps ...predicate.OrganizationSetting)
- func (m *OrganizationSettingMutation) WhereP(ps ...func(*sql.Selector))
- type OrganizationSettingOrder
- type OrganizationSettingOrderField
- type OrganizationSettingPaginateOption
- type OrganizationSettingQuery
- func (osq *OrganizationSettingQuery) Aggregate(fns ...AggregateFunc) *OrganizationSettingSelect
- func (osq *OrganizationSettingQuery) All(ctx context.Context) ([]*OrganizationSetting, error)
- func (osq *OrganizationSettingQuery) AllX(ctx context.Context) []*OrganizationSetting
- func (osq *OrganizationSettingQuery) Clone() *OrganizationSettingQuery
- func (os *OrganizationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingQuery, error)
- func (osq *OrganizationSettingQuery) Count(ctx context.Context) (int, error)
- func (osq *OrganizationSettingQuery) CountX(ctx context.Context) int
- func (osq *OrganizationSettingQuery) Exist(ctx context.Context) (bool, error)
- func (osq *OrganizationSettingQuery) ExistX(ctx context.Context) bool
- func (osq *OrganizationSettingQuery) Filter() *OrganizationSettingFilter
- func (osq *OrganizationSettingQuery) First(ctx context.Context) (*OrganizationSetting, error)
- func (osq *OrganizationSettingQuery) FirstID(ctx context.Context) (id string, err error)
- func (osq *OrganizationSettingQuery) FirstIDX(ctx context.Context) string
- func (osq *OrganizationSettingQuery) FirstX(ctx context.Context) *OrganizationSetting
- func (osq *OrganizationSettingQuery) GroupBy(field string, fields ...string) *OrganizationSettingGroupBy
- func (osq *OrganizationSettingQuery) IDs(ctx context.Context) (ids []string, err error)
- func (osq *OrganizationSettingQuery) IDsX(ctx context.Context) []string
- func (osq *OrganizationSettingQuery) Limit(limit int) *OrganizationSettingQuery
- func (osq *OrganizationSettingQuery) Offset(offset int) *OrganizationSettingQuery
- func (osq *OrganizationSettingQuery) Only(ctx context.Context) (*OrganizationSetting, error)
- func (osq *OrganizationSettingQuery) OnlyID(ctx context.Context) (id string, err error)
- func (osq *OrganizationSettingQuery) OnlyIDX(ctx context.Context) string
- func (osq *OrganizationSettingQuery) OnlyX(ctx context.Context) *OrganizationSetting
- func (osq *OrganizationSettingQuery) Order(o ...organizationsetting.OrderOption) *OrganizationSettingQuery
- func (os *OrganizationSettingQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*OrganizationSettingConnection, error)
- func (osq *OrganizationSettingQuery) QueryOrganization() *OrganizationQuery
- func (osq *OrganizationSettingQuery) Select(fields ...string) *OrganizationSettingSelect
- func (osq *OrganizationSettingQuery) Unique(unique bool) *OrganizationSettingQuery
- func (osq *OrganizationSettingQuery) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingQuery
- func (osq *OrganizationSettingQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OrganizationSettingQuery
- type OrganizationSettingSelect
- func (oss *OrganizationSettingSelect) Aggregate(fns ...AggregateFunc) *OrganizationSettingSelect
- func (s *OrganizationSettingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationSettingSelect) BoolX(ctx context.Context) bool
- func (s *OrganizationSettingSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationSettingSelect) BoolsX(ctx context.Context) []bool
- func (s *OrganizationSettingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationSettingSelect) Float64X(ctx context.Context) float64
- func (s *OrganizationSettingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationSettingSelect) Float64sX(ctx context.Context) []float64
- func (s *OrganizationSettingSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationSettingSelect) IntX(ctx context.Context) int
- func (s *OrganizationSettingSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationSettingSelect) IntsX(ctx context.Context) []int
- func (oss *OrganizationSettingSelect) Scan(ctx context.Context, v any) error
- func (s *OrganizationSettingSelect) ScanX(ctx context.Context, v any)
- func (s *OrganizationSettingSelect) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationSettingSelect) StringX(ctx context.Context) string
- func (s *OrganizationSettingSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationSettingSelect) StringsX(ctx context.Context) []string
- type OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) AppendDomains(s []string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) AppendTags(s []string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearBillingAddress() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearBillingContact() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearBillingEmail() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearBillingPhone() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearDeletedAt() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearDeletedBy() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearDomains() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearOrganization() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearSSOCert() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearSSOEntrypoint() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearSSOIssuer() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearTags() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearTaxIdentifier() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) ClearUpdatedBy() *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) Exec(ctx context.Context) error
- func (osu *OrganizationSettingUpdate) ExecX(ctx context.Context)
- func (osu *OrganizationSettingUpdate) Mutation() *OrganizationSettingMutation
- func (osu *OrganizationSettingUpdate) Save(ctx context.Context) (int, error)
- func (osu *OrganizationSettingUpdate) SaveX(ctx context.Context) int
- func (osu *OrganizationSettingUpdate) SetBillingAddress(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetBillingContact(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetBillingEmail(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetBillingPhone(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetDeletedAt(t time.Time) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetDeletedBy(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetDomains(s []string) *OrganizationSettingUpdate
- func (c *OrganizationSettingUpdate) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableBillingAddress(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableBillingContact(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableBillingEmail(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableBillingPhone(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableDeletedAt(t *time.Time) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableDeletedBy(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableOrganizationID(id *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableSSOCert(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableSSOIssuer(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableTaxIdentifier(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetNillableUpdatedBy(s *string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetOrganization(o *Organization) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetOrganizationID(id string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetSSOCert(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetSSOEntrypoint(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetSSOIssuer(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetTags(s []string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetTaxIdentifier(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetUpdatedAt(t time.Time) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) SetUpdatedBy(s string) *OrganizationSettingUpdate
- func (osu *OrganizationSettingUpdate) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingUpdate
- type OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) AppendDomains(s []string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) AppendTags(s []string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearBillingAddress() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearBillingContact() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearBillingEmail() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearBillingPhone() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearDeletedAt() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearDeletedBy() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearDomains() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearOrganization() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearSSOCert() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearSSOEntrypoint() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearSSOIssuer() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearTags() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearTaxIdentifier() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) ClearUpdatedBy() *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) Exec(ctx context.Context) error
- func (osuo *OrganizationSettingUpdateOne) ExecX(ctx context.Context)
- func (osuo *OrganizationSettingUpdateOne) Mutation() *OrganizationSettingMutation
- func (osuo *OrganizationSettingUpdateOne) Save(ctx context.Context) (*OrganizationSetting, error)
- func (osuo *OrganizationSettingUpdateOne) SaveX(ctx context.Context) *OrganizationSetting
- func (osuo *OrganizationSettingUpdateOne) Select(field string, fields ...string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetBillingAddress(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetBillingContact(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetBillingEmail(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetBillingPhone(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetDeletedAt(t time.Time) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetDeletedBy(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetDomains(s []string) *OrganizationSettingUpdateOne
- func (c *OrganizationSettingUpdateOne) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableBillingAddress(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableBillingContact(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableBillingEmail(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableBillingPhone(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableDeletedBy(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableOrganizationID(id *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableSSOCert(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableSSOEntrypoint(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableSSOIssuer(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableTaxIdentifier(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetOrganization(o *Organization) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetOrganizationID(id string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetSSOCert(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetSSOEntrypoint(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetSSOIssuer(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetTags(s []string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetTaxIdentifier(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetUpdatedAt(t time.Time) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) SetUpdatedBy(s string) *OrganizationSettingUpdateOne
- func (osuo *OrganizationSettingUpdateOne) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingUpdateOne
- type OrganizationSettingWhereInput
- type OrganizationSettings
- type OrganizationUpdate
- func (ou *OrganizationUpdate) AddChildIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddChildren(o ...*Organization) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddEntitlementIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddEntitlements(e ...*Entitlement) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddGroupIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddGroups(g ...*Group) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddIntegrationIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddIntegrations(i ...*Integration) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddOauthprovider(o ...*OauthProvider) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddOauthproviderIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddUserIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) AddUsers(u ...*User) *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearChildren() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearDeletedAt() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearDeletedBy() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearDescription() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearEntitlements() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearGroups() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearOauthprovider() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearSetting() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearUpdatedBy() *OrganizationUpdate
- func (ou *OrganizationUpdate) ClearUsers() *OrganizationUpdate
- func (ou *OrganizationUpdate) Exec(ctx context.Context) error
- func (ou *OrganizationUpdate) ExecX(ctx context.Context)
- func (ou *OrganizationUpdate) Mutation() *OrganizationMutation
- func (ou *OrganizationUpdate) RemoveChildIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveChildren(o ...*Organization) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveEntitlementIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveEntitlements(e ...*Entitlement) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveGroupIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveGroups(g ...*Group) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveIntegrationIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveIntegrations(i ...*Integration) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveOauthprovider(o ...*OauthProvider) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveOauthproviderIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveUserIDs(ids ...string) *OrganizationUpdate
- func (ou *OrganizationUpdate) RemoveUsers(u ...*User) *OrganizationUpdate
- func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)
- func (ou *OrganizationUpdate) SaveX(ctx context.Context) int
- func (ou *OrganizationUpdate) SetDeletedAt(t time.Time) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetDeletedBy(s string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetDescription(s string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetDisplayName(s string) *OrganizationUpdate
- func (c *OrganizationUpdate) SetInput(i UpdateOrganizationInput) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetName(s string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableDeletedAt(t *time.Time) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableDeletedBy(s *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableDescription(s *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableDisplayName(s *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableName(s *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableSettingID(id *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetNillableUpdatedBy(s *string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetSetting(o *OrganizationSetting) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetSettingID(id string) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetUpdatedAt(t time.Time) *OrganizationUpdate
- func (ou *OrganizationUpdate) SetUpdatedBy(s string) *OrganizationUpdate
- func (ou *OrganizationUpdate) Where(ps ...predicate.Organization) *OrganizationUpdate
- type OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddChildIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddChildren(o ...*Organization) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddEntitlementIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddEntitlements(e ...*Entitlement) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddGroupIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddGroups(g ...*Group) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddIntegrationIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddIntegrations(i ...*Integration) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddOauthprovider(o ...*OauthProvider) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddOauthproviderIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddUserIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) AddUsers(u ...*User) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearChildren() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearDeletedAt() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearDeletedBy() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearDescription() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearEntitlements() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearGroups() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearOauthprovider() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearSetting() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearUpdatedBy() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) ClearUsers() *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error
- func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)
- func (ouo *OrganizationUpdateOne) Mutation() *OrganizationMutation
- func (ouo *OrganizationUpdateOne) RemoveChildIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveChildren(o ...*Organization) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveEntitlementIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveEntitlements(e ...*Entitlement) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveGroupIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveGroups(g ...*Group) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveIntegrations(i ...*Integration) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveOauthprovider(o ...*OauthProvider) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveOauthproviderIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveUserIDs(ids ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) RemoveUsers(u ...*User) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error)
- func (ouo *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization
- func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetDeletedAt(t time.Time) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetDeletedBy(s string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetDescription(s string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetDisplayName(s string) *OrganizationUpdateOne
- func (c *OrganizationUpdateOne) SetInput(i UpdateOrganizationInput) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetName(s string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableDeletedAt(t *time.Time) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableDeletedBy(s *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableDescription(s *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableDisplayName(s *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableName(s *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableSettingID(id *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetSetting(o *OrganizationSetting) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetSettingID(id string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetUpdatedAt(t time.Time) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) SetUpdatedBy(s string) *OrganizationUpdateOne
- func (ouo *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne
- type OrganizationWhereInput
- type Organizations
- type PageInfo
- type PersonalAccessToken
- func (n *PersonalAccessToken) IsNode()
- func (pat *PersonalAccessToken) Owner(ctx context.Context) (*User, error)
- func (pat *PersonalAccessToken) QueryOwner() *UserQuery
- func (pat *PersonalAccessToken) String() string
- func (pat *PersonalAccessToken) ToEdge(order *PersonalAccessTokenOrder) *PersonalAccessTokenEdge
- func (pat *PersonalAccessToken) Unwrap() *PersonalAccessToken
- func (pat *PersonalAccessToken) Update() *PersonalAccessTokenUpdateOne
- func (pat *PersonalAccessToken) Value(name string) (ent.Value, error)
- type PersonalAccessTokenClient
- func (c *PersonalAccessTokenClient) Create() *PersonalAccessTokenCreate
- func (c *PersonalAccessTokenClient) CreateBulk(builders ...*PersonalAccessTokenCreate) *PersonalAccessTokenCreateBulk
- func (c *PersonalAccessTokenClient) Delete() *PersonalAccessTokenDelete
- func (c *PersonalAccessTokenClient) DeleteOne(pat *PersonalAccessToken) *PersonalAccessTokenDeleteOne
- func (c *PersonalAccessTokenClient) DeleteOneID(id string) *PersonalAccessTokenDeleteOne
- func (c *PersonalAccessTokenClient) Get(ctx context.Context, id string) (*PersonalAccessToken, error)
- func (c *PersonalAccessTokenClient) GetX(ctx context.Context, id string) *PersonalAccessToken
- func (c *PersonalAccessTokenClient) Hooks() []Hook
- func (c *PersonalAccessTokenClient) Intercept(interceptors ...Interceptor)
- func (c *PersonalAccessTokenClient) Interceptors() []Interceptor
- func (c *PersonalAccessTokenClient) MapCreateBulk(slice any, setFunc func(*PersonalAccessTokenCreate, int)) *PersonalAccessTokenCreateBulk
- func (c *PersonalAccessTokenClient) Query() *PersonalAccessTokenQuery
- func (c *PersonalAccessTokenClient) QueryOwner(pat *PersonalAccessToken) *UserQuery
- func (c *PersonalAccessTokenClient) Update() *PersonalAccessTokenUpdate
- func (c *PersonalAccessTokenClient) UpdateOne(pat *PersonalAccessToken) *PersonalAccessTokenUpdateOne
- func (c *PersonalAccessTokenClient) UpdateOneID(id string) *PersonalAccessTokenUpdateOne
- func (c *PersonalAccessTokenClient) Use(hooks ...Hook)
- type PersonalAccessTokenConnection
- type PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) Exec(ctx context.Context) error
- func (patc *PersonalAccessTokenCreate) ExecX(ctx context.Context)
- func (patc *PersonalAccessTokenCreate) Mutation() *PersonalAccessTokenMutation
- func (patc *PersonalAccessTokenCreate) Save(ctx context.Context) (*PersonalAccessToken, error)
- func (patc *PersonalAccessTokenCreate) SaveX(ctx context.Context) *PersonalAccessToken
- func (patc *PersonalAccessTokenCreate) SetAbilities(s []string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetCreatedAt(t time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetCreatedBy(s string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetDescription(s string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetExpiresAt(t time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetID(s string) *PersonalAccessTokenCreate
- func (c *PersonalAccessTokenCreate) SetInput(i CreatePersonalAccessTokenInput) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetLastUsedAt(t time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetName(s string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableCreatedAt(t *time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableCreatedBy(s *string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableDescription(s *string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableID(s *string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableLastUsedAt(t *time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableToken(s *string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableUpdatedAt(t *time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetNillableUpdatedBy(s *string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetOwner(u *User) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetOwnerID(id string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetToken(s string) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetUpdatedAt(t time.Time) *PersonalAccessTokenCreate
- func (patc *PersonalAccessTokenCreate) SetUpdatedBy(s string) *PersonalAccessTokenCreate
- type PersonalAccessTokenCreateBulk
- func (patcb *PersonalAccessTokenCreateBulk) Exec(ctx context.Context) error
- func (patcb *PersonalAccessTokenCreateBulk) ExecX(ctx context.Context)
- func (patcb *PersonalAccessTokenCreateBulk) Save(ctx context.Context) ([]*PersonalAccessToken, error)
- func (patcb *PersonalAccessTokenCreateBulk) SaveX(ctx context.Context) []*PersonalAccessToken
- type PersonalAccessTokenDelete
- type PersonalAccessTokenDeleteOne
- type PersonalAccessTokenEdge
- type PersonalAccessTokenEdges
- type PersonalAccessTokenFilter
- func (f *PersonalAccessTokenFilter) Where(p entql.P)
- func (f *PersonalAccessTokenFilter) WhereAbilities(p entql.BytesP)
- func (f *PersonalAccessTokenFilter) WhereCreatedAt(p entql.TimeP)
- func (f *PersonalAccessTokenFilter) WhereCreatedBy(p entql.StringP)
- func (f *PersonalAccessTokenFilter) WhereDescription(p entql.StringP)
- func (f *PersonalAccessTokenFilter) WhereExpiresAt(p entql.TimeP)
- func (f *PersonalAccessTokenFilter) WhereHasOwner()
- func (f *PersonalAccessTokenFilter) WhereHasOwnerWith(preds ...predicate.User)
- func (f *PersonalAccessTokenFilter) WhereID(p entql.StringP)
- func (f *PersonalAccessTokenFilter) WhereLastUsedAt(p entql.TimeP)
- func (f *PersonalAccessTokenFilter) WhereName(p entql.StringP)
- func (f *PersonalAccessTokenFilter) WhereToken(p entql.StringP)
- func (f *PersonalAccessTokenFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *PersonalAccessTokenFilter) WhereUpdatedBy(p entql.StringP)
- type PersonalAccessTokenGroupBy
- func (patgb *PersonalAccessTokenGroupBy) Aggregate(fns ...AggregateFunc) *PersonalAccessTokenGroupBy
- func (s *PersonalAccessTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *PersonalAccessTokenGroupBy) BoolX(ctx context.Context) bool
- func (s *PersonalAccessTokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *PersonalAccessTokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *PersonalAccessTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *PersonalAccessTokenGroupBy) Float64X(ctx context.Context) float64
- func (s *PersonalAccessTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *PersonalAccessTokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *PersonalAccessTokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *PersonalAccessTokenGroupBy) IntX(ctx context.Context) int
- func (s *PersonalAccessTokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *PersonalAccessTokenGroupBy) IntsX(ctx context.Context) []int
- func (patgb *PersonalAccessTokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *PersonalAccessTokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *PersonalAccessTokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *PersonalAccessTokenGroupBy) StringX(ctx context.Context) string
- func (s *PersonalAccessTokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *PersonalAccessTokenGroupBy) StringsX(ctx context.Context) []string
- type PersonalAccessTokenMutation
- func (m *PersonalAccessTokenMutation) Abilities() (r []string, exists bool)
- func (m *PersonalAccessTokenMutation) AbilitiesCleared() bool
- func (m *PersonalAccessTokenMutation) AddField(name string, value ent.Value) error
- func (m *PersonalAccessTokenMutation) AddedEdges() []string
- func (m *PersonalAccessTokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *PersonalAccessTokenMutation) AddedFields() []string
- func (m *PersonalAccessTokenMutation) AddedIDs(name string) []ent.Value
- func (m *PersonalAccessTokenMutation) AppendAbilities(s []string)
- func (m *PersonalAccessTokenMutation) AppendedAbilities() ([]string, bool)
- func (m *PersonalAccessTokenMutation) ClearAbilities()
- func (m *PersonalAccessTokenMutation) ClearCreatedBy()
- func (m *PersonalAccessTokenMutation) ClearDescription()
- func (m *PersonalAccessTokenMutation) ClearEdge(name string) error
- func (m *PersonalAccessTokenMutation) ClearField(name string) error
- func (m *PersonalAccessTokenMutation) ClearLastUsedAt()
- func (m *PersonalAccessTokenMutation) ClearOwner()
- func (m *PersonalAccessTokenMutation) ClearUpdatedBy()
- func (m *PersonalAccessTokenMutation) ClearedEdges() []string
- func (m *PersonalAccessTokenMutation) ClearedFields() []string
- func (m PersonalAccessTokenMutation) Client() *Client
- func (m *PersonalAccessTokenMutation) CreatedAt() (r time.Time, exists bool)
- func (m *PersonalAccessTokenMutation) CreatedBy() (r string, exists bool)
- func (m *PersonalAccessTokenMutation) CreatedByCleared() bool
- func (m *PersonalAccessTokenMutation) Description() (r string, exists bool)
- func (m *PersonalAccessTokenMutation) DescriptionCleared() bool
- func (m *PersonalAccessTokenMutation) EdgeCleared(name string) bool
- func (m *PersonalAccessTokenMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *PersonalAccessTokenMutation) Field(name string) (ent.Value, bool)
- func (m *PersonalAccessTokenMutation) FieldCleared(name string) bool
- func (m *PersonalAccessTokenMutation) Fields() []string
- func (m *PersonalAccessTokenMutation) Filter() *PersonalAccessTokenFilter
- func (m *PersonalAccessTokenMutation) ID() (id string, exists bool)
- func (m *PersonalAccessTokenMutation) IDs(ctx context.Context) ([]string, error)
- func (m *PersonalAccessTokenMutation) LastUsedAt() (r time.Time, exists bool)
- func (m *PersonalAccessTokenMutation) LastUsedAtCleared() bool
- func (m *PersonalAccessTokenMutation) Name() (r string, exists bool)
- func (m *PersonalAccessTokenMutation) OldAbilities(ctx context.Context) (v []string, err error)
- func (m *PersonalAccessTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PersonalAccessTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *PersonalAccessTokenMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *PersonalAccessTokenMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error)
- func (m *PersonalAccessTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PersonalAccessTokenMutation) OldLastUsedAt(ctx context.Context) (v *time.Time, err error)
- func (m *PersonalAccessTokenMutation) OldName(ctx context.Context) (v string, err error)
- func (m *PersonalAccessTokenMutation) OldToken(ctx context.Context) (v string, err error)
- func (m *PersonalAccessTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PersonalAccessTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *PersonalAccessTokenMutation) Op() Op
- func (m *PersonalAccessTokenMutation) OwnerCleared() bool
- func (m *PersonalAccessTokenMutation) OwnerID() (id string, exists bool)
- func (m *PersonalAccessTokenMutation) OwnerIDs() (ids []string)
- func (m *PersonalAccessTokenMutation) RemovedEdges() []string
- func (m *PersonalAccessTokenMutation) RemovedIDs(name string) []ent.Value
- func (m *PersonalAccessTokenMutation) ResetAbilities()
- func (m *PersonalAccessTokenMutation) ResetCreatedAt()
- func (m *PersonalAccessTokenMutation) ResetCreatedBy()
- func (m *PersonalAccessTokenMutation) ResetDescription()
- func (m *PersonalAccessTokenMutation) ResetEdge(name string) error
- func (m *PersonalAccessTokenMutation) ResetExpiresAt()
- func (m *PersonalAccessTokenMutation) ResetField(name string) error
- func (m *PersonalAccessTokenMutation) ResetLastUsedAt()
- func (m *PersonalAccessTokenMutation) ResetName()
- func (m *PersonalAccessTokenMutation) ResetOwner()
- func (m *PersonalAccessTokenMutation) ResetToken()
- func (m *PersonalAccessTokenMutation) ResetUpdatedAt()
- func (m *PersonalAccessTokenMutation) ResetUpdatedBy()
- func (m *PersonalAccessTokenMutation) SetAbilities(s []string)
- func (m *PersonalAccessTokenMutation) SetCreatedAt(t time.Time)
- func (m *PersonalAccessTokenMutation) SetCreatedBy(s string)
- func (m *PersonalAccessTokenMutation) SetDescription(s string)
- func (m *PersonalAccessTokenMutation) SetExpiresAt(t time.Time)
- func (m *PersonalAccessTokenMutation) SetField(name string, value ent.Value) error
- func (m *PersonalAccessTokenMutation) SetID(id string)
- func (m *PersonalAccessTokenMutation) SetLastUsedAt(t time.Time)
- func (m *PersonalAccessTokenMutation) SetName(s string)
- func (m *PersonalAccessTokenMutation) SetOp(op Op)
- func (m *PersonalAccessTokenMutation) SetOwnerID(id string)
- func (m *PersonalAccessTokenMutation) SetToken(s string)
- func (m *PersonalAccessTokenMutation) SetUpdatedAt(t time.Time)
- func (m *PersonalAccessTokenMutation) SetUpdatedBy(s string)
- func (m *PersonalAccessTokenMutation) Token() (r string, exists bool)
- func (m PersonalAccessTokenMutation) Tx() (*Tx, error)
- func (m *PersonalAccessTokenMutation) Type() string
- func (m *PersonalAccessTokenMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *PersonalAccessTokenMutation) UpdatedBy() (r string, exists bool)
- func (m *PersonalAccessTokenMutation) UpdatedByCleared() bool
- func (m *PersonalAccessTokenMutation) Where(ps ...predicate.PersonalAccessToken)
- func (m *PersonalAccessTokenMutation) WhereP(ps ...func(*sql.Selector))
- type PersonalAccessTokenOrder
- type PersonalAccessTokenOrderField
- type PersonalAccessTokenPaginateOption
- type PersonalAccessTokenQuery
- func (patq *PersonalAccessTokenQuery) Aggregate(fns ...AggregateFunc) *PersonalAccessTokenSelect
- func (patq *PersonalAccessTokenQuery) All(ctx context.Context) ([]*PersonalAccessToken, error)
- func (patq *PersonalAccessTokenQuery) AllX(ctx context.Context) []*PersonalAccessToken
- func (patq *PersonalAccessTokenQuery) Clone() *PersonalAccessTokenQuery
- func (pat *PersonalAccessTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*PersonalAccessTokenQuery, error)
- func (patq *PersonalAccessTokenQuery) Count(ctx context.Context) (int, error)
- func (patq *PersonalAccessTokenQuery) CountX(ctx context.Context) int
- func (patq *PersonalAccessTokenQuery) Exist(ctx context.Context) (bool, error)
- func (patq *PersonalAccessTokenQuery) ExistX(ctx context.Context) bool
- func (patq *PersonalAccessTokenQuery) Filter() *PersonalAccessTokenFilter
- func (patq *PersonalAccessTokenQuery) First(ctx context.Context) (*PersonalAccessToken, error)
- func (patq *PersonalAccessTokenQuery) FirstID(ctx context.Context) (id string, err error)
- func (patq *PersonalAccessTokenQuery) FirstIDX(ctx context.Context) string
- func (patq *PersonalAccessTokenQuery) FirstX(ctx context.Context) *PersonalAccessToken
- func (patq *PersonalAccessTokenQuery) GroupBy(field string, fields ...string) *PersonalAccessTokenGroupBy
- func (patq *PersonalAccessTokenQuery) IDs(ctx context.Context) (ids []string, err error)
- func (patq *PersonalAccessTokenQuery) IDsX(ctx context.Context) []string
- func (patq *PersonalAccessTokenQuery) Limit(limit int) *PersonalAccessTokenQuery
- func (patq *PersonalAccessTokenQuery) Offset(offset int) *PersonalAccessTokenQuery
- func (patq *PersonalAccessTokenQuery) Only(ctx context.Context) (*PersonalAccessToken, error)
- func (patq *PersonalAccessTokenQuery) OnlyID(ctx context.Context) (id string, err error)
- func (patq *PersonalAccessTokenQuery) OnlyIDX(ctx context.Context) string
- func (patq *PersonalAccessTokenQuery) OnlyX(ctx context.Context) *PersonalAccessToken
- func (patq *PersonalAccessTokenQuery) Order(o ...personalaccesstoken.OrderOption) *PersonalAccessTokenQuery
- func (pat *PersonalAccessTokenQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*PersonalAccessTokenConnection, error)
- func (patq *PersonalAccessTokenQuery) QueryOwner() *UserQuery
- func (patq *PersonalAccessTokenQuery) Select(fields ...string) *PersonalAccessTokenSelect
- func (patq *PersonalAccessTokenQuery) Unique(unique bool) *PersonalAccessTokenQuery
- func (patq *PersonalAccessTokenQuery) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenQuery
- func (patq *PersonalAccessTokenQuery) WithOwner(opts ...func(*UserQuery)) *PersonalAccessTokenQuery
- type PersonalAccessTokenSelect
- func (pats *PersonalAccessTokenSelect) Aggregate(fns ...AggregateFunc) *PersonalAccessTokenSelect
- func (s *PersonalAccessTokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *PersonalAccessTokenSelect) BoolX(ctx context.Context) bool
- func (s *PersonalAccessTokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *PersonalAccessTokenSelect) BoolsX(ctx context.Context) []bool
- func (s *PersonalAccessTokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *PersonalAccessTokenSelect) Float64X(ctx context.Context) float64
- func (s *PersonalAccessTokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *PersonalAccessTokenSelect) Float64sX(ctx context.Context) []float64
- func (s *PersonalAccessTokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *PersonalAccessTokenSelect) IntX(ctx context.Context) int
- func (s *PersonalAccessTokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *PersonalAccessTokenSelect) IntsX(ctx context.Context) []int
- func (pats *PersonalAccessTokenSelect) Scan(ctx context.Context, v any) error
- func (s *PersonalAccessTokenSelect) ScanX(ctx context.Context, v any)
- func (s *PersonalAccessTokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *PersonalAccessTokenSelect) StringX(ctx context.Context) string
- func (s *PersonalAccessTokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *PersonalAccessTokenSelect) StringsX(ctx context.Context) []string
- type PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) AppendAbilities(s []string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) ClearAbilities() *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) ClearDescription() *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) ClearLastUsedAt() *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) ClearOwner() *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) ClearUpdatedBy() *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) Exec(ctx context.Context) error
- func (patu *PersonalAccessTokenUpdate) ExecX(ctx context.Context)
- func (patu *PersonalAccessTokenUpdate) Mutation() *PersonalAccessTokenMutation
- func (patu *PersonalAccessTokenUpdate) Save(ctx context.Context) (int, error)
- func (patu *PersonalAccessTokenUpdate) SaveX(ctx context.Context) int
- func (patu *PersonalAccessTokenUpdate) SetAbilities(s []string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetDescription(s string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetExpiresAt(t time.Time) *PersonalAccessTokenUpdate
- func (c *PersonalAccessTokenUpdate) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetLastUsedAt(t time.Time) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetName(s string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetNillableDescription(s *string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetNillableExpiresAt(t *time.Time) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetNillableName(s *string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetNillableUpdatedBy(s *string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetOwner(u *User) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetOwnerID(id string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetUpdatedAt(t time.Time) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) SetUpdatedBy(s string) *PersonalAccessTokenUpdate
- func (patu *PersonalAccessTokenUpdate) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenUpdate
- type PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) AppendAbilities(s []string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) ClearAbilities() *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) ClearDescription() *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) ClearLastUsedAt() *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) ClearOwner() *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) ClearUpdatedBy() *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) Exec(ctx context.Context) error
- func (patuo *PersonalAccessTokenUpdateOne) ExecX(ctx context.Context)
- func (patuo *PersonalAccessTokenUpdateOne) Mutation() *PersonalAccessTokenMutation
- func (patuo *PersonalAccessTokenUpdateOne) Save(ctx context.Context) (*PersonalAccessToken, error)
- func (patuo *PersonalAccessTokenUpdateOne) SaveX(ctx context.Context) *PersonalAccessToken
- func (patuo *PersonalAccessTokenUpdateOne) Select(field string, fields ...string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetAbilities(s []string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetDescription(s string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetExpiresAt(t time.Time) *PersonalAccessTokenUpdateOne
- func (c *PersonalAccessTokenUpdateOne) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetLastUsedAt(t time.Time) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetName(s string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetNillableDescription(s *string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetNillableExpiresAt(t *time.Time) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetNillableName(s *string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetNillableUpdatedBy(s *string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetOwner(u *User) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetOwnerID(id string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetUpdatedAt(t time.Time) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) SetUpdatedBy(s string) *PersonalAccessTokenUpdateOne
- func (patuo *PersonalAccessTokenUpdateOne) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenUpdateOne
- type PersonalAccessTokenWhereInput
- type PersonalAccessTokens
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type SchemaConfig
- type Session
- func (n *Session) IsNode()
- func (s *Session) Owner(ctx context.Context) (*User, error)
- func (s *Session) QueryOwner() *UserQuery
- func (s *Session) String() string
- func (s *Session) ToEdge(order *SessionOrder) *SessionEdge
- func (s *Session) Unwrap() *Session
- func (s *Session) Update() *SessionUpdateOne
- func (s *Session) Value(name string) (ent.Value, error)
- type SessionClient
- func (c *SessionClient) Create() *SessionCreate
- func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
- func (c *SessionClient) Delete() *SessionDelete
- func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne
- func (c *SessionClient) DeleteOneID(id string) *SessionDeleteOne
- func (c *SessionClient) Get(ctx context.Context, id string) (*Session, error)
- func (c *SessionClient) GetX(ctx context.Context, id string) *Session
- func (c *SessionClient) Hooks() []Hook
- func (c *SessionClient) Intercept(interceptors ...Interceptor)
- func (c *SessionClient) Interceptors() []Interceptor
- func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk
- func (c *SessionClient) Query() *SessionQuery
- func (c *SessionClient) QueryOwner(s *Session) *UserQuery
- func (c *SessionClient) Update() *SessionUpdate
- func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne
- func (c *SessionClient) UpdateOneID(id string) *SessionUpdateOne
- func (c *SessionClient) Use(hooks ...Hook)
- type SessionConnection
- type SessionCreate
- func (sc *SessionCreate) Exec(ctx context.Context) error
- func (sc *SessionCreate) ExecX(ctx context.Context)
- func (sc *SessionCreate) Mutation() *SessionMutation
- func (sc *SessionCreate) Save(ctx context.Context) (*Session, error)
- func (sc *SessionCreate) SaveX(ctx context.Context) *Session
- func (sc *SessionCreate) SetCreatedAt(t time.Time) *SessionCreate
- func (sc *SessionCreate) SetCreatedBy(s string) *SessionCreate
- func (sc *SessionCreate) SetExpiresAt(t time.Time) *SessionCreate
- func (sc *SessionCreate) SetID(s string) *SessionCreate
- func (c *SessionCreate) SetInput(i CreateSessionInput) *SessionCreate
- func (sc *SessionCreate) SetIssuedAt(t time.Time) *SessionCreate
- func (sc *SessionCreate) SetNillableCreatedAt(t *time.Time) *SessionCreate
- func (sc *SessionCreate) SetNillableCreatedBy(s *string) *SessionCreate
- func (sc *SessionCreate) SetNillableID(s *string) *SessionCreate
- func (sc *SessionCreate) SetNillableUpdatedAt(t *time.Time) *SessionCreate
- func (sc *SessionCreate) SetNillableUpdatedBy(s *string) *SessionCreate
- func (sc *SessionCreate) SetOrganizationID(s string) *SessionCreate
- func (sc *SessionCreate) SetOwner(u *User) *SessionCreate
- func (sc *SessionCreate) SetOwnerID(id string) *SessionCreate
- func (sc *SessionCreate) SetSessionToken(s string) *SessionCreate
- func (sc *SessionCreate) SetUpdatedAt(t time.Time) *SessionCreate
- func (sc *SessionCreate) SetUpdatedBy(s string) *SessionCreate
- func (sc *SessionCreate) SetUserID(s string) *SessionCreate
- type SessionCreateBulk
- type SessionDelete
- type SessionDeleteOne
- type SessionEdge
- type SessionEdges
- type SessionFilter
- func (f *SessionFilter) Where(p entql.P)
- func (f *SessionFilter) WhereCreatedAt(p entql.TimeP)
- func (f *SessionFilter) WhereCreatedBy(p entql.StringP)
- func (f *SessionFilter) WhereExpiresAt(p entql.TimeP)
- func (f *SessionFilter) WhereHasOwner()
- func (f *SessionFilter) WhereHasOwnerWith(preds ...predicate.User)
- func (f *SessionFilter) WhereID(p entql.StringP)
- func (f *SessionFilter) WhereIssuedAt(p entql.TimeP)
- func (f *SessionFilter) WhereOrganizationID(p entql.StringP)
- func (f *SessionFilter) WhereSessionToken(p entql.StringP)
- func (f *SessionFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *SessionFilter) WhereUpdatedBy(p entql.StringP)
- func (f *SessionFilter) WhereUserID(p entql.StringP)
- type SessionGroupBy
- func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
- func (s *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SessionGroupBy) BoolX(ctx context.Context) bool
- func (s *SessionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SessionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SessionGroupBy) Float64X(ctx context.Context) float64
- func (s *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SessionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SessionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SessionGroupBy) IntX(ctx context.Context) int
- func (s *SessionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SessionGroupBy) IntsX(ctx context.Context) []int
- func (sgb *SessionGroupBy) Scan(ctx context.Context, v any) error
- func (s *SessionGroupBy) ScanX(ctx context.Context, v any)
- func (s *SessionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SessionGroupBy) StringX(ctx context.Context) string
- func (s *SessionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SessionGroupBy) StringsX(ctx context.Context) []string
- type SessionMutation
- func (m *SessionMutation) AddField(name string, value ent.Value) error
- func (m *SessionMutation) AddedEdges() []string
- func (m *SessionMutation) AddedField(name string) (ent.Value, bool)
- func (m *SessionMutation) AddedFields() []string
- func (m *SessionMutation) AddedIDs(name string) []ent.Value
- func (m *SessionMutation) ClearCreatedBy()
- func (m *SessionMutation) ClearEdge(name string) error
- func (m *SessionMutation) ClearField(name string) error
- func (m *SessionMutation) ClearOwner()
- func (m *SessionMutation) ClearUpdatedBy()
- func (m *SessionMutation) ClearedEdges() []string
- func (m *SessionMutation) ClearedFields() []string
- func (m SessionMutation) Client() *Client
- func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SessionMutation) CreatedBy() (r string, exists bool)
- func (m *SessionMutation) CreatedByCleared() bool
- func (m *SessionMutation) EdgeCleared(name string) bool
- func (m *SessionMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *SessionMutation) Field(name string) (ent.Value, bool)
- func (m *SessionMutation) FieldCleared(name string) bool
- func (m *SessionMutation) Fields() []string
- func (m *SessionMutation) Filter() *SessionFilter
- func (m *SessionMutation) ID() (id string, exists bool)
- func (m *SessionMutation) IDs(ctx context.Context) ([]string, error)
- func (m *SessionMutation) IssuedAt() (r time.Time, exists bool)
- func (m *SessionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SessionMutation) OldIssuedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldOrganizationID(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldSessionToken(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldUserID(ctx context.Context) (v string, err error)
- func (m *SessionMutation) Op() Op
- func (m *SessionMutation) OrganizationID() (r string, exists bool)
- func (m *SessionMutation) OwnerCleared() bool
- func (m *SessionMutation) OwnerID() (id string, exists bool)
- func (m *SessionMutation) OwnerIDs() (ids []string)
- func (m *SessionMutation) RemovedEdges() []string
- func (m *SessionMutation) RemovedIDs(name string) []ent.Value
- func (m *SessionMutation) ResetCreatedAt()
- func (m *SessionMutation) ResetCreatedBy()
- func (m *SessionMutation) ResetEdge(name string) error
- func (m *SessionMutation) ResetExpiresAt()
- func (m *SessionMutation) ResetField(name string) error
- func (m *SessionMutation) ResetIssuedAt()
- func (m *SessionMutation) ResetOrganizationID()
- func (m *SessionMutation) ResetOwner()
- func (m *SessionMutation) ResetSessionToken()
- func (m *SessionMutation) ResetUpdatedAt()
- func (m *SessionMutation) ResetUpdatedBy()
- func (m *SessionMutation) ResetUserID()
- func (m *SessionMutation) SessionToken() (r string, exists bool)
- func (m *SessionMutation) SetCreatedAt(t time.Time)
- func (m *SessionMutation) SetCreatedBy(s string)
- func (m *SessionMutation) SetExpiresAt(t time.Time)
- func (m *SessionMutation) SetField(name string, value ent.Value) error
- func (m *SessionMutation) SetID(id string)
- func (m *SessionMutation) SetIssuedAt(t time.Time)
- func (m *SessionMutation) SetOp(op Op)
- func (m *SessionMutation) SetOrganizationID(s string)
- func (m *SessionMutation) SetOwnerID(id string)
- func (m *SessionMutation) SetSessionToken(s string)
- func (m *SessionMutation) SetUpdatedAt(t time.Time)
- func (m *SessionMutation) SetUpdatedBy(s string)
- func (m *SessionMutation) SetUserID(s string)
- func (m SessionMutation) Tx() (*Tx, error)
- func (m *SessionMutation) Type() string
- func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SessionMutation) UpdatedBy() (r string, exists bool)
- func (m *SessionMutation) UpdatedByCleared() bool
- func (m *SessionMutation) UserID() (r string, exists bool)
- func (m *SessionMutation) Where(ps ...predicate.Session)
- func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))
- type SessionOrder
- type SessionOrderField
- type SessionPaginateOption
- type SessionQuery
- func (sq *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect
- func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error)
- func (sq *SessionQuery) AllX(ctx context.Context) []*Session
- func (sq *SessionQuery) Clone() *SessionQuery
- func (s *SessionQuery) CollectFields(ctx context.Context, satisfies ...string) (*SessionQuery, error)
- func (sq *SessionQuery) Count(ctx context.Context) (int, error)
- func (sq *SessionQuery) CountX(ctx context.Context) int
- func (sq *SessionQuery) Exist(ctx context.Context) (bool, error)
- func (sq *SessionQuery) ExistX(ctx context.Context) bool
- func (sq *SessionQuery) Filter() *SessionFilter
- func (sq *SessionQuery) First(ctx context.Context) (*Session, error)
- func (sq *SessionQuery) FirstID(ctx context.Context) (id string, err error)
- func (sq *SessionQuery) FirstIDX(ctx context.Context) string
- func (sq *SessionQuery) FirstX(ctx context.Context) *Session
- func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
- func (sq *SessionQuery) IDs(ctx context.Context) (ids []string, err error)
- func (sq *SessionQuery) IDsX(ctx context.Context) []string
- func (sq *SessionQuery) Limit(limit int) *SessionQuery
- func (sq *SessionQuery) Offset(offset int) *SessionQuery
- func (sq *SessionQuery) Only(ctx context.Context) (*Session, error)
- func (sq *SessionQuery) OnlyID(ctx context.Context) (id string, err error)
- func (sq *SessionQuery) OnlyIDX(ctx context.Context) string
- func (sq *SessionQuery) OnlyX(ctx context.Context) *Session
- func (sq *SessionQuery) Order(o ...session.OrderOption) *SessionQuery
- func (s *SessionQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*SessionConnection, error)
- func (sq *SessionQuery) QueryOwner() *UserQuery
- func (sq *SessionQuery) Select(fields ...string) *SessionSelect
- func (sq *SessionQuery) Unique(unique bool) *SessionQuery
- func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
- func (sq *SessionQuery) WithOwner(opts ...func(*UserQuery)) *SessionQuery
- type SessionSelect
- func (ss *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect
- func (s *SessionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SessionSelect) BoolX(ctx context.Context) bool
- func (s *SessionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SessionSelect) BoolsX(ctx context.Context) []bool
- func (s *SessionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SessionSelect) Float64X(ctx context.Context) float64
- func (s *SessionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SessionSelect) Float64sX(ctx context.Context) []float64
- func (s *SessionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SessionSelect) IntX(ctx context.Context) int
- func (s *SessionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SessionSelect) IntsX(ctx context.Context) []int
- func (ss *SessionSelect) Scan(ctx context.Context, v any) error
- func (s *SessionSelect) ScanX(ctx context.Context, v any)
- func (s *SessionSelect) String(ctx context.Context) (_ string, err error)
- func (s *SessionSelect) StringX(ctx context.Context) string
- func (s *SessionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SessionSelect) StringsX(ctx context.Context) []string
- type SessionUpdate
- func (su *SessionUpdate) ClearOwner() *SessionUpdate
- func (su *SessionUpdate) ClearUpdatedBy() *SessionUpdate
- func (su *SessionUpdate) Exec(ctx context.Context) error
- func (su *SessionUpdate) ExecX(ctx context.Context)
- func (su *SessionUpdate) Mutation() *SessionMutation
- func (su *SessionUpdate) Save(ctx context.Context) (int, error)
- func (su *SessionUpdate) SaveX(ctx context.Context) int
- func (su *SessionUpdate) SetExpiresAt(t time.Time) *SessionUpdate
- func (c *SessionUpdate) SetInput(i UpdateSessionInput) *SessionUpdate
- func (su *SessionUpdate) SetIssuedAt(t time.Time) *SessionUpdate
- func (su *SessionUpdate) SetNillableExpiresAt(t *time.Time) *SessionUpdate
- func (su *SessionUpdate) SetNillableOrganizationID(s *string) *SessionUpdate
- func (su *SessionUpdate) SetNillableUpdatedBy(s *string) *SessionUpdate
- func (su *SessionUpdate) SetNillableUserID(s *string) *SessionUpdate
- func (su *SessionUpdate) SetOrganizationID(s string) *SessionUpdate
- func (su *SessionUpdate) SetOwner(u *User) *SessionUpdate
- func (su *SessionUpdate) SetOwnerID(id string) *SessionUpdate
- func (su *SessionUpdate) SetUpdatedAt(t time.Time) *SessionUpdate
- func (su *SessionUpdate) SetUpdatedBy(s string) *SessionUpdate
- func (su *SessionUpdate) SetUserID(s string) *SessionUpdate
- func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
- type SessionUpdateOne
- func (suo *SessionUpdateOne) ClearOwner() *SessionUpdateOne
- func (suo *SessionUpdateOne) ClearUpdatedBy() *SessionUpdateOne
- func (suo *SessionUpdateOne) Exec(ctx context.Context) error
- func (suo *SessionUpdateOne) ExecX(ctx context.Context)
- func (suo *SessionUpdateOne) Mutation() *SessionMutation
- func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
- func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session
- func (suo *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetExpiresAt(t time.Time) *SessionUpdateOne
- func (c *SessionUpdateOne) SetInput(i UpdateSessionInput) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetIssuedAt(t time.Time) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNillableExpiresAt(t *time.Time) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNillableOrganizationID(s *string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNillableUpdatedBy(s *string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetNillableUserID(s *string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetOrganizationID(s string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetOwner(u *User) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetOwnerID(id string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetUpdatedAt(t time.Time) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetUpdatedBy(s string) *SessionUpdateOne
- func (suo *SessionUpdateOne) SetUserID(s string) *SessionUpdateOne
- func (suo *SessionUpdateOne) Where(ps ...predicate.Session) *SessionUpdateOne
- type SessionWhereInput
- type Sessions
- type TraverseFunc
- type Traverser
- type Tx
- type UpdateEntitlementInput
- type UpdateGroupInput
- type UpdateGroupSettingInput
- type UpdateIntegrationInput
- type UpdateOauthProviderInput
- type UpdateOhAuthTooTokenInput
- type UpdateOrganizationInput
- type UpdateOrganizationSettingInput
- type UpdatePersonalAccessTokenInput
- type UpdateSessionInput
- type UpdateUserInput
- type UpdateUserSettingInput
- type User
- func (u *User) Groups(ctx context.Context) (result []*Group, err error)
- func (n *User) IsNode()
- func (u *User) NamedGroups(name string) ([]*Group, error)
- func (u *User) NamedOrganizations(name string) ([]*Organization, error)
- func (u *User) NamedPersonalAccessTokens(name string) ([]*PersonalAccessToken, error)
- func (u *User) NamedSessions(name string) ([]*Session, error)
- func (u *User) Organizations(ctx context.Context) (result []*Organization, err error)
- func (u *User) PersonalAccessTokens(ctx context.Context) (result []*PersonalAccessToken, err error)
- func (u *User) QueryGroups() *GroupQuery
- func (u *User) QueryOrganizations() *OrganizationQuery
- func (u *User) QueryPersonalAccessTokens() *PersonalAccessTokenQuery
- func (u *User) QuerySessions() *SessionQuery
- func (u *User) QuerySetting() *UserSettingQuery
- func (u *User) Sessions(ctx context.Context) (result []*Session, err error)
- func (u *User) Setting(ctx context.Context) (*UserSetting, error)
- func (u *User) String() string
- 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 string) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id string) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id string) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryGroups(u *User) *GroupQuery
- func (c *UserClient) QueryOrganizations(u *User) *OrganizationQuery
- func (c *UserClient) QueryPersonalAccessTokens(u *User) *PersonalAccessTokenQuery
- func (c *UserClient) QuerySessions(u *User) *SessionQuery
- func (c *UserClient) QuerySetting(u *User) *UserSettingQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id string) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserConnection
- type UserCreate
- func (uc *UserCreate) AddGroupIDs(ids ...string) *UserCreate
- func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate
- func (uc *UserCreate) AddOrganizationIDs(ids ...string) *UserCreate
- func (uc *UserCreate) AddOrganizations(o ...*Organization) *UserCreate
- func (uc *UserCreate) AddPersonalAccessTokenIDs(ids ...string) *UserCreate
- func (uc *UserCreate) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserCreate
- func (uc *UserCreate) AddSessionIDs(ids ...string) *UserCreate
- func (uc *UserCreate) AddSessions(s ...*Session) *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) SetAvatarLocalFile(s string) *UserCreate
- func (uc *UserCreate) SetAvatarRemoteURL(s string) *UserCreate
- func (uc *UserCreate) SetAvatarUpdatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetCreatedBy(s string) *UserCreate
- func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetDeletedBy(s string) *UserCreate
- func (uc *UserCreate) SetDisplayName(s string) *UserCreate
- func (uc *UserCreate) SetEmail(s string) *UserCreate
- func (uc *UserCreate) SetFirstName(s string) *UserCreate
- func (uc *UserCreate) SetID(s string) *UserCreate
- func (c *UserCreate) SetInput(i CreateUserInput) *UserCreate
- func (uc *UserCreate) SetLastName(s string) *UserCreate
- func (uc *UserCreate) SetLastSeen(t time.Time) *UserCreate
- func (uc *UserCreate) SetNillableAvatarLocalFile(s *string) *UserCreate
- func (uc *UserCreate) SetNillableAvatarRemoteURL(s *string) *UserCreate
- func (uc *UserCreate) SetNillableAvatarUpdatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableCreatedBy(s *string) *UserCreate
- func (uc *UserCreate) SetNillableDeletedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableDeletedBy(s *string) *UserCreate
- func (uc *UserCreate) SetNillableDisplayName(s *string) *UserCreate
- func (uc *UserCreate) SetNillableID(s *string) *UserCreate
- func (uc *UserCreate) SetNillableLastSeen(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableOauth(b *bool) *UserCreate
- func (uc *UserCreate) SetNillablePassword(s *string) *UserCreate
- func (uc *UserCreate) SetNillableSub(s *string) *UserCreate
- func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableUpdatedBy(s *string) *UserCreate
- func (uc *UserCreate) SetOauth(b bool) *UserCreate
- func (uc *UserCreate) SetPassword(s string) *UserCreate
- func (uc *UserCreate) SetSetting(u *UserSetting) *UserCreate
- func (uc *UserCreate) SetSettingID(id string) *UserCreate
- func (uc *UserCreate) SetSub(s string) *UserCreate
- func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetUpdatedBy(s string) *UserCreate
- type UserCreateBulk
- type UserDelete
- type UserDeleteOne
- type UserEdge
- type UserEdges
- func (e UserEdges) GroupsOrErr() ([]*Group, error)
- func (e UserEdges) OrganizationsOrErr() ([]*Organization, error)
- func (e UserEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, error)
- func (e UserEdges) SessionsOrErr() ([]*Session, error)
- func (e UserEdges) SettingOrErr() (*UserSetting, error)
- type UserFilter
- func (f *UserFilter) Where(p entql.P)
- func (f *UserFilter) WhereAvatarLocalFile(p entql.StringP)
- func (f *UserFilter) WhereAvatarRemoteURL(p entql.StringP)
- func (f *UserFilter) WhereAvatarUpdatedAt(p entql.TimeP)
- func (f *UserFilter) WhereCreatedAt(p entql.TimeP)
- func (f *UserFilter) WhereCreatedBy(p entql.StringP)
- func (f *UserFilter) WhereDeletedAt(p entql.TimeP)
- func (f *UserFilter) WhereDeletedBy(p entql.StringP)
- func (f *UserFilter) WhereDisplayName(p entql.StringP)
- func (f *UserFilter) WhereEmail(p entql.StringP)
- func (f *UserFilter) WhereFirstName(p entql.StringP)
- func (f *UserFilter) WhereHasGroups()
- func (f *UserFilter) WhereHasGroupsWith(preds ...predicate.Group)
- func (f *UserFilter) WhereHasOrganizations()
- func (f *UserFilter) WhereHasOrganizationsWith(preds ...predicate.Organization)
- func (f *UserFilter) WhereHasPersonalAccessTokens()
- func (f *UserFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken)
- func (f *UserFilter) WhereHasSessions()
- func (f *UserFilter) WhereHasSessionsWith(preds ...predicate.Session)
- func (f *UserFilter) WhereHasSetting()
- func (f *UserFilter) WhereHasSettingWith(preds ...predicate.UserSetting)
- func (f *UserFilter) WhereID(p entql.StringP)
- func (f *UserFilter) WhereLastName(p entql.StringP)
- func (f *UserFilter) WhereLastSeen(p entql.TimeP)
- func (f *UserFilter) WhereOauth(p entql.BoolP)
- func (f *UserFilter) WherePassword(p entql.StringP)
- func (f *UserFilter) WhereSub(p entql.StringP)
- func (f *UserFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *UserFilter) WhereUpdatedBy(p entql.StringP)
- 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) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddGroupIDs(ids ...string)
- func (m *UserMutation) AddOrganizationIDs(ids ...string)
- func (m *UserMutation) AddPersonalAccessTokenIDs(ids ...string)
- func (m *UserMutation) AddSessionIDs(ids ...string)
- 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) AvatarLocalFile() (r string, exists bool)
- func (m *UserMutation) AvatarLocalFileCleared() bool
- func (m *UserMutation) AvatarRemoteURL() (r string, exists bool)
- func (m *UserMutation) AvatarRemoteURLCleared() bool
- func (m *UserMutation) AvatarUpdatedAt() (r time.Time, exists bool)
- func (m *UserMutation) AvatarUpdatedAtCleared() bool
- func (m *UserMutation) ClearAvatarLocalFile()
- func (m *UserMutation) ClearAvatarRemoteURL()
- func (m *UserMutation) ClearAvatarUpdatedAt()
- func (m *UserMutation) ClearCreatedBy()
- func (m *UserMutation) ClearDeletedAt()
- func (m *UserMutation) ClearDeletedBy()
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearGroups()
- func (m *UserMutation) ClearLastSeen()
- func (m *UserMutation) ClearOrganizations()
- func (m *UserMutation) ClearPassword()
- func (m *UserMutation) ClearPersonalAccessTokens()
- func (m *UserMutation) ClearSessions()
- func (m *UserMutation) ClearSetting()
- func (m *UserMutation) ClearSub()
- func (m *UserMutation) ClearUpdatedBy()
- func (m *UserMutation) ClearedEdges() []string
- func (m *UserMutation) ClearedFields() []string
- func (m UserMutation) Client() *Client
- func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UserMutation) CreatedBy() (r string, exists bool)
- func (m *UserMutation) CreatedByCleared() bool
- func (m *UserMutation) DeletedAt() (r time.Time, exists bool)
- func (m *UserMutation) DeletedAtCleared() bool
- func (m *UserMutation) DeletedBy() (r string, exists bool)
- func (m *UserMutation) DeletedByCleared() bool
- func (m *UserMutation) DisplayName() (r string, exists 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) Filter() *UserFilter
- func (m *UserMutation) FirstName() (r string, exists bool)
- func (m *UserMutation) GroupsCleared() bool
- func (m *UserMutation) GroupsIDs() (ids []string)
- func (m *UserMutation) ID() (id string, exists bool)
- func (m *UserMutation) IDs(ctx context.Context) ([]string, error)
- func (m *UserMutation) LastName() (r string, exists bool)
- func (m *UserMutation) LastSeen() (r time.Time, exists bool)
- func (m *UserMutation) LastSeenCleared() bool
- func (m *UserMutation) Oauth() (r bool, exists bool)
- func (m *UserMutation) OldAvatarLocalFile(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldAvatarUpdatedAt(ctx context.Context) (v *time.Time, err error)
- func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldDisplayName(ctx context.Context) (v string, 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) OldLastName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldLastSeen(ctx context.Context) (v *time.Time, err error)
- func (m *UserMutation) OldOauth(ctx context.Context) (v bool, err error)
- func (m *UserMutation) OldPassword(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldSub(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) OrganizationsCleared() bool
- func (m *UserMutation) OrganizationsIDs() (ids []string)
- func (m *UserMutation) Password() (r string, exists bool)
- func (m *UserMutation) PasswordCleared() bool
- func (m *UserMutation) PersonalAccessTokensCleared() bool
- func (m *UserMutation) PersonalAccessTokensIDs() (ids []string)
- func (m *UserMutation) RemoveGroupIDs(ids ...string)
- func (m *UserMutation) RemoveOrganizationIDs(ids ...string)
- func (m *UserMutation) RemovePersonalAccessTokenIDs(ids ...string)
- func (m *UserMutation) RemoveSessionIDs(ids ...string)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedGroupsIDs() (ids []string)
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) RemovedOrganizationsIDs() (ids []string)
- func (m *UserMutation) RemovedPersonalAccessTokensIDs() (ids []string)
- func (m *UserMutation) RemovedSessionsIDs() (ids []string)
- func (m *UserMutation) ResetAvatarLocalFile()
- func (m *UserMutation) ResetAvatarRemoteURL()
- func (m *UserMutation) ResetAvatarUpdatedAt()
- func (m *UserMutation) ResetCreatedAt()
- func (m *UserMutation) ResetCreatedBy()
- func (m *UserMutation) ResetDeletedAt()
- func (m *UserMutation) ResetDeletedBy()
- func (m *UserMutation) ResetDisplayName()
- 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) ResetGroups()
- func (m *UserMutation) ResetLastName()
- func (m *UserMutation) ResetLastSeen()
- func (m *UserMutation) ResetOauth()
- func (m *UserMutation) ResetOrganizations()
- func (m *UserMutation) ResetPassword()
- func (m *UserMutation) ResetPersonalAccessTokens()
- func (m *UserMutation) ResetSessions()
- func (m *UserMutation) ResetSetting()
- func (m *UserMutation) ResetSub()
- func (m *UserMutation) ResetUpdatedAt()
- func (m *UserMutation) ResetUpdatedBy()
- func (m *UserMutation) SessionsCleared() bool
- func (m *UserMutation) SessionsIDs() (ids []string)
- func (m *UserMutation) SetAvatarLocalFile(s string)
- func (m *UserMutation) SetAvatarRemoteURL(s string)
- func (m *UserMutation) SetAvatarUpdatedAt(t time.Time)
- func (m *UserMutation) SetCreatedAt(t time.Time)
- func (m *UserMutation) SetCreatedBy(s string)
- func (m *UserMutation) SetDeletedAt(t time.Time)
- func (m *UserMutation) SetDeletedBy(s string)
- func (m *UserMutation) SetDisplayName(s string)
- 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 string)
- func (m *UserMutation) SetLastName(s string)
- func (m *UserMutation) SetLastSeen(t time.Time)
- func (m *UserMutation) SetOauth(b bool)
- func (m *UserMutation) SetOp(op Op)
- func (m *UserMutation) SetPassword(s string)
- func (m *UserMutation) SetSettingID(id string)
- func (m *UserMutation) SetSub(s string)
- func (m *UserMutation) SetUpdatedAt(t time.Time)
- func (m *UserMutation) SetUpdatedBy(s string)
- func (m *UserMutation) SettingCleared() bool
- func (m *UserMutation) SettingID() (id string, exists bool)
- func (m *UserMutation) SettingIDs() (ids []string)
- func (m *UserMutation) Sub() (r string, exists bool)
- func (m *UserMutation) SubCleared() bool
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *UserMutation) UpdatedBy() (r string, exists bool)
- func (m *UserMutation) UpdatedByCleared() 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) Filter() *UserFilter
- func (uq *UserQuery) First(ctx context.Context) (*User, error)
- func (uq *UserQuery) FirstID(ctx context.Context) (id string, err error)
- func (uq *UserQuery) FirstIDX(ctx context.Context) string
- 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 []string, err error)
- func (uq *UserQuery) IDsX(ctx context.Context) []string
- func (uq *UserQuery) Limit(limit int) *UserQuery
- func (uq *UserQuery) Offset(offset int) *UserQuery
- func (uq *UserQuery) Only(ctx context.Context) (*User, error)
- func (uq *UserQuery) OnlyID(ctx context.Context) (id string, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) string
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
- func (u *UserQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*UserConnection, error)
- func (uq *UserQuery) QueryGroups() *GroupQuery
- func (uq *UserQuery) QueryOrganizations() *OrganizationQuery
- func (uq *UserQuery) QueryPersonalAccessTokens() *PersonalAccessTokenQuery
- func (uq *UserQuery) QuerySessions() *SessionQuery
- func (uq *UserQuery) QuerySetting() *UserSettingQuery
- 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) WithGroups(opts ...func(*GroupQuery)) *UserQuery
- func (uq *UserQuery) WithNamedGroups(name string, opts ...func(*GroupQuery)) *UserQuery
- func (uq *UserQuery) WithNamedOrganizations(name string, opts ...func(*OrganizationQuery)) *UserQuery
- func (uq *UserQuery) WithNamedPersonalAccessTokens(name string, opts ...func(*PersonalAccessTokenQuery)) *UserQuery
- func (uq *UserQuery) WithNamedSessions(name string, opts ...func(*SessionQuery)) *UserQuery
- func (uq *UserQuery) WithOrganizations(opts ...func(*OrganizationQuery)) *UserQuery
- func (uq *UserQuery) WithPersonalAccessTokens(opts ...func(*PersonalAccessTokenQuery)) *UserQuery
- func (uq *UserQuery) WithSessions(opts ...func(*SessionQuery)) *UserQuery
- func (uq *UserQuery) WithSetting(opts ...func(*UserSettingQuery)) *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 UserSetting
- func (n *UserSetting) IsNode()
- func (us *UserSetting) QueryUser() *UserQuery
- func (us *UserSetting) String() string
- func (us *UserSetting) ToEdge(order *UserSettingOrder) *UserSettingEdge
- func (us *UserSetting) Unwrap() *UserSetting
- func (us *UserSetting) Update() *UserSettingUpdateOne
- func (us *UserSetting) User(ctx context.Context) (*User, error)
- func (us *UserSetting) Value(name string) (ent.Value, error)
- type UserSettingClient
- func (c *UserSettingClient) Create() *UserSettingCreate
- func (c *UserSettingClient) CreateBulk(builders ...*UserSettingCreate) *UserSettingCreateBulk
- func (c *UserSettingClient) Delete() *UserSettingDelete
- func (c *UserSettingClient) DeleteOne(us *UserSetting) *UserSettingDeleteOne
- func (c *UserSettingClient) DeleteOneID(id string) *UserSettingDeleteOne
- func (c *UserSettingClient) Get(ctx context.Context, id string) (*UserSetting, error)
- func (c *UserSettingClient) GetX(ctx context.Context, id string) *UserSetting
- func (c *UserSettingClient) Hooks() []Hook
- func (c *UserSettingClient) Intercept(interceptors ...Interceptor)
- func (c *UserSettingClient) Interceptors() []Interceptor
- func (c *UserSettingClient) MapCreateBulk(slice any, setFunc func(*UserSettingCreate, int)) *UserSettingCreateBulk
- func (c *UserSettingClient) Query() *UserSettingQuery
- func (c *UserSettingClient) QueryUser(us *UserSetting) *UserQuery
- func (c *UserSettingClient) Update() *UserSettingUpdate
- func (c *UserSettingClient) UpdateOne(us *UserSetting) *UserSettingUpdateOne
- func (c *UserSettingClient) UpdateOneID(id string) *UserSettingUpdateOne
- func (c *UserSettingClient) Use(hooks ...Hook)
- type UserSettingConnection
- type UserSettingCreate
- func (usc *UserSettingCreate) Exec(ctx context.Context) error
- func (usc *UserSettingCreate) ExecX(ctx context.Context)
- func (usc *UserSettingCreate) Mutation() *UserSettingMutation
- func (usc *UserSettingCreate) Save(ctx context.Context) (*UserSetting, error)
- func (usc *UserSettingCreate) SaveX(ctx context.Context) *UserSetting
- func (usc *UserSettingCreate) SetCreatedAt(t time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetCreatedBy(s string) *UserSettingCreate
- func (usc *UserSettingCreate) SetDeletedAt(t time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetDeletedBy(s string) *UserSettingCreate
- func (usc *UserSettingCreate) SetEmailConfirmed(b bool) *UserSettingCreate
- func (usc *UserSettingCreate) SetID(s string) *UserSettingCreate
- func (c *UserSettingCreate) SetInput(i CreateUserSettingInput) *UserSettingCreate
- func (usc *UserSettingCreate) SetLocked(b bool) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableCreatedAt(t *time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableCreatedBy(s *string) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableDeletedAt(t *time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableDeletedBy(s *string) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableEmailConfirmed(b *bool) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableID(s *string) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableLocked(b *bool) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableRecoveryCode(s *string) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableRole(u *usersetting.Role) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableSilencedAt(t *time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableStatus(u *usersetting.Status) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableSuspendedAt(t *time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableUpdatedAt(t *time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableUpdatedBy(s *string) *UserSettingCreate
- func (usc *UserSettingCreate) SetNillableUserID(id *string) *UserSettingCreate
- func (usc *UserSettingCreate) SetPermissions(s []string) *UserSettingCreate
- func (usc *UserSettingCreate) SetRecoveryCode(s string) *UserSettingCreate
- func (usc *UserSettingCreate) SetRole(u usersetting.Role) *UserSettingCreate
- func (usc *UserSettingCreate) SetSilencedAt(t time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetStatus(u usersetting.Status) *UserSettingCreate
- func (usc *UserSettingCreate) SetSuspendedAt(t time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetTags(s []string) *UserSettingCreate
- func (usc *UserSettingCreate) SetUpdatedAt(t time.Time) *UserSettingCreate
- func (usc *UserSettingCreate) SetUpdatedBy(s string) *UserSettingCreate
- func (usc *UserSettingCreate) SetUser(u *User) *UserSettingCreate
- func (usc *UserSettingCreate) SetUserID(id string) *UserSettingCreate
- type UserSettingCreateBulk
- type UserSettingDelete
- type UserSettingDeleteOne
- type UserSettingEdge
- type UserSettingEdges
- type UserSettingFilter
- func (f *UserSettingFilter) Where(p entql.P)
- func (f *UserSettingFilter) WhereCreatedAt(p entql.TimeP)
- func (f *UserSettingFilter) WhereCreatedBy(p entql.StringP)
- func (f *UserSettingFilter) WhereDeletedAt(p entql.TimeP)
- func (f *UserSettingFilter) WhereDeletedBy(p entql.StringP)
- func (f *UserSettingFilter) WhereEmailConfirmed(p entql.BoolP)
- func (f *UserSettingFilter) WhereHasUser()
- func (f *UserSettingFilter) WhereHasUserWith(preds ...predicate.User)
- func (f *UserSettingFilter) WhereID(p entql.StringP)
- func (f *UserSettingFilter) WhereLocked(p entql.BoolP)
- func (f *UserSettingFilter) WherePermissions(p entql.BytesP)
- func (f *UserSettingFilter) WhereRecoveryCode(p entql.StringP)
- func (f *UserSettingFilter) WhereRole(p entql.StringP)
- func (f *UserSettingFilter) WhereSilencedAt(p entql.TimeP)
- func (f *UserSettingFilter) WhereStatus(p entql.StringP)
- func (f *UserSettingFilter) WhereSuspendedAt(p entql.TimeP)
- func (f *UserSettingFilter) WhereTags(p entql.BytesP)
- func (f *UserSettingFilter) WhereUpdatedAt(p entql.TimeP)
- func (f *UserSettingFilter) WhereUpdatedBy(p entql.StringP)
- type UserSettingGroupBy
- func (usgb *UserSettingGroupBy) Aggregate(fns ...AggregateFunc) *UserSettingGroupBy
- func (s *UserSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSettingGroupBy) BoolX(ctx context.Context) bool
- func (s *UserSettingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSettingGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSettingGroupBy) Float64X(ctx context.Context) float64
- func (s *UserSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSettingGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserSettingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserSettingGroupBy) IntX(ctx context.Context) int
- func (s *UserSettingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserSettingGroupBy) IntsX(ctx context.Context) []int
- func (usgb *UserSettingGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserSettingGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserSettingGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserSettingGroupBy) StringX(ctx context.Context) string
- func (s *UserSettingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserSettingGroupBy) StringsX(ctx context.Context) []string
- type UserSettingMutation
- func (m *UserSettingMutation) AddField(name string, value ent.Value) error
- func (m *UserSettingMutation) AddedEdges() []string
- func (m *UserSettingMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserSettingMutation) AddedFields() []string
- func (m *UserSettingMutation) AddedIDs(name string) []ent.Value
- func (m *UserSettingMutation) AppendPermissions(s []string)
- func (m *UserSettingMutation) AppendTags(s []string)
- func (m *UserSettingMutation) AppendedPermissions() ([]string, bool)
- func (m *UserSettingMutation) AppendedTags() ([]string, bool)
- func (m *UserSettingMutation) ClearCreatedBy()
- func (m *UserSettingMutation) ClearDeletedAt()
- func (m *UserSettingMutation) ClearDeletedBy()
- func (m *UserSettingMutation) ClearEdge(name string) error
- func (m *UserSettingMutation) ClearField(name string) error
- func (m *UserSettingMutation) ClearRecoveryCode()
- func (m *UserSettingMutation) ClearSilencedAt()
- func (m *UserSettingMutation) ClearSuspendedAt()
- func (m *UserSettingMutation) ClearUpdatedBy()
- func (m *UserSettingMutation) ClearUser()
- func (m *UserSettingMutation) ClearedEdges() []string
- func (m *UserSettingMutation) ClearedFields() []string
- func (m UserSettingMutation) Client() *Client
- func (m *UserSettingMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UserSettingMutation) CreatedBy() (r string, exists bool)
- func (m *UserSettingMutation) CreatedByCleared() bool
- func (m *UserSettingMutation) DeletedAt() (r time.Time, exists bool)
- func (m *UserSettingMutation) DeletedAtCleared() bool
- func (m *UserSettingMutation) DeletedBy() (r string, exists bool)
- func (m *UserSettingMutation) DeletedByCleared() bool
- func (m *UserSettingMutation) EdgeCleared(name string) bool
- func (m *UserSettingMutation) EmailConfirmed() (r bool, exists bool)
- func (m *UserSettingMutation) Field(name string) (ent.Value, bool)
- func (m *UserSettingMutation) FieldCleared(name string) bool
- func (m *UserSettingMutation) Fields() []string
- func (m *UserSettingMutation) Filter() *UserSettingFilter
- func (m *UserSettingMutation) ID() (id string, exists bool)
- func (m *UserSettingMutation) IDs(ctx context.Context) ([]string, error)
- func (m *UserSettingMutation) Locked() (r bool, exists bool)
- func (m *UserSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)
- func (m *UserSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)
- func (m *UserSettingMutation) OldEmailConfirmed(ctx context.Context) (v bool, err error)
- func (m *UserSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserSettingMutation) OldLocked(ctx context.Context) (v bool, err error)
- func (m *UserSettingMutation) OldPermissions(ctx context.Context) (v []string, err error)
- func (m *UserSettingMutation) OldRecoveryCode(ctx context.Context) (v *string, err error)
- func (m *UserSettingMutation) OldRole(ctx context.Context) (v usersetting.Role, err error)
- func (m *UserSettingMutation) OldSilencedAt(ctx context.Context) (v *time.Time, err error)
- func (m *UserSettingMutation) OldStatus(ctx context.Context) (v usersetting.Status, err error)
- func (m *UserSettingMutation) OldSuspendedAt(ctx context.Context) (v *time.Time, err error)
- func (m *UserSettingMutation) OldTags(ctx context.Context) (v []string, err error)
- func (m *UserSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
- func (m *UserSettingMutation) Op() Op
- func (m *UserSettingMutation) Permissions() (r []string, exists bool)
- func (m *UserSettingMutation) RecoveryCode() (r string, exists bool)
- func (m *UserSettingMutation) RecoveryCodeCleared() bool
- func (m *UserSettingMutation) RemovedEdges() []string
- func (m *UserSettingMutation) RemovedIDs(name string) []ent.Value
- func (m *UserSettingMutation) ResetCreatedAt()
- func (m *UserSettingMutation) ResetCreatedBy()
- func (m *UserSettingMutation) ResetDeletedAt()
- func (m *UserSettingMutation) ResetDeletedBy()
- func (m *UserSettingMutation) ResetEdge(name string) error
- func (m *UserSettingMutation) ResetEmailConfirmed()
- func (m *UserSettingMutation) ResetField(name string) error
- func (m *UserSettingMutation) ResetLocked()
- func (m *UserSettingMutation) ResetPermissions()
- func (m *UserSettingMutation) ResetRecoveryCode()
- func (m *UserSettingMutation) ResetRole()
- func (m *UserSettingMutation) ResetSilencedAt()
- func (m *UserSettingMutation) ResetStatus()
- func (m *UserSettingMutation) ResetSuspendedAt()
- func (m *UserSettingMutation) ResetTags()
- func (m *UserSettingMutation) ResetUpdatedAt()
- func (m *UserSettingMutation) ResetUpdatedBy()
- func (m *UserSettingMutation) ResetUser()
- func (m *UserSettingMutation) Role() (r usersetting.Role, exists bool)
- func (m *UserSettingMutation) SetCreatedAt(t time.Time)
- func (m *UserSettingMutation) SetCreatedBy(s string)
- func (m *UserSettingMutation) SetDeletedAt(t time.Time)
- func (m *UserSettingMutation) SetDeletedBy(s string)
- func (m *UserSettingMutation) SetEmailConfirmed(b bool)
- func (m *UserSettingMutation) SetField(name string, value ent.Value) error
- func (m *UserSettingMutation) SetID(id string)
- func (m *UserSettingMutation) SetLocked(b bool)
- func (m *UserSettingMutation) SetOp(op Op)
- func (m *UserSettingMutation) SetPermissions(s []string)
- func (m *UserSettingMutation) SetRecoveryCode(s string)
- func (m *UserSettingMutation) SetRole(u usersetting.Role)
- func (m *UserSettingMutation) SetSilencedAt(t time.Time)
- func (m *UserSettingMutation) SetStatus(u usersetting.Status)
- func (m *UserSettingMutation) SetSuspendedAt(t time.Time)
- func (m *UserSettingMutation) SetTags(s []string)
- func (m *UserSettingMutation) SetUpdatedAt(t time.Time)
- func (m *UserSettingMutation) SetUpdatedBy(s string)
- func (m *UserSettingMutation) SetUserID(id string)
- func (m *UserSettingMutation) SilencedAt() (r time.Time, exists bool)
- func (m *UserSettingMutation) SilencedAtCleared() bool
- func (m *UserSettingMutation) Status() (r usersetting.Status, exists bool)
- func (m *UserSettingMutation) SuspendedAt() (r time.Time, exists bool)
- func (m *UserSettingMutation) SuspendedAtCleared() bool
- func (m *UserSettingMutation) Tags() (r []string, exists bool)
- func (m UserSettingMutation) Tx() (*Tx, error)
- func (m *UserSettingMutation) Type() string
- func (m *UserSettingMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *UserSettingMutation) UpdatedBy() (r string, exists bool)
- func (m *UserSettingMutation) UpdatedByCleared() bool
- func (m *UserSettingMutation) UserCleared() bool
- func (m *UserSettingMutation) UserID() (id string, exists bool)
- func (m *UserSettingMutation) UserIDs() (ids []string)
- func (m *UserSettingMutation) Where(ps ...predicate.UserSetting)
- func (m *UserSettingMutation) WhereP(ps ...func(*sql.Selector))
- type UserSettingOrder
- type UserSettingOrderField
- type UserSettingPaginateOption
- type UserSettingQuery
- func (usq *UserSettingQuery) Aggregate(fns ...AggregateFunc) *UserSettingSelect
- func (usq *UserSettingQuery) All(ctx context.Context) ([]*UserSetting, error)
- func (usq *UserSettingQuery) AllX(ctx context.Context) []*UserSetting
- func (usq *UserSettingQuery) Clone() *UserSettingQuery
- func (us *UserSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserSettingQuery, error)
- func (usq *UserSettingQuery) Count(ctx context.Context) (int, error)
- func (usq *UserSettingQuery) CountX(ctx context.Context) int
- func (usq *UserSettingQuery) Exist(ctx context.Context) (bool, error)
- func (usq *UserSettingQuery) ExistX(ctx context.Context) bool
- func (usq *UserSettingQuery) Filter() *UserSettingFilter
- func (usq *UserSettingQuery) First(ctx context.Context) (*UserSetting, error)
- func (usq *UserSettingQuery) FirstID(ctx context.Context) (id string, err error)
- func (usq *UserSettingQuery) FirstIDX(ctx context.Context) string
- func (usq *UserSettingQuery) FirstX(ctx context.Context) *UserSetting
- func (usq *UserSettingQuery) GroupBy(field string, fields ...string) *UserSettingGroupBy
- func (usq *UserSettingQuery) IDs(ctx context.Context) (ids []string, err error)
- func (usq *UserSettingQuery) IDsX(ctx context.Context) []string
- func (usq *UserSettingQuery) Limit(limit int) *UserSettingQuery
- func (usq *UserSettingQuery) Offset(offset int) *UserSettingQuery
- func (usq *UserSettingQuery) Only(ctx context.Context) (*UserSetting, error)
- func (usq *UserSettingQuery) OnlyID(ctx context.Context) (id string, err error)
- func (usq *UserSettingQuery) OnlyIDX(ctx context.Context) string
- func (usq *UserSettingQuery) OnlyX(ctx context.Context) *UserSetting
- func (usq *UserSettingQuery) Order(o ...usersetting.OrderOption) *UserSettingQuery
- func (us *UserSettingQuery) Paginate(ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, ...) (*UserSettingConnection, error)
- func (usq *UserSettingQuery) QueryUser() *UserQuery
- func (usq *UserSettingQuery) Select(fields ...string) *UserSettingSelect
- func (usq *UserSettingQuery) Unique(unique bool) *UserSettingQuery
- func (usq *UserSettingQuery) Where(ps ...predicate.UserSetting) *UserSettingQuery
- func (usq *UserSettingQuery) WithUser(opts ...func(*UserQuery)) *UserSettingQuery
- type UserSettingSelect
- func (uss *UserSettingSelect) Aggregate(fns ...AggregateFunc) *UserSettingSelect
- func (s *UserSettingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSettingSelect) BoolX(ctx context.Context) bool
- func (s *UserSettingSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSettingSelect) BoolsX(ctx context.Context) []bool
- func (s *UserSettingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSettingSelect) Float64X(ctx context.Context) float64
- func (s *UserSettingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSettingSelect) Float64sX(ctx context.Context) []float64
- func (s *UserSettingSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserSettingSelect) IntX(ctx context.Context) int
- func (s *UserSettingSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserSettingSelect) IntsX(ctx context.Context) []int
- func (uss *UserSettingSelect) Scan(ctx context.Context, v any) error
- func (s *UserSettingSelect) ScanX(ctx context.Context, v any)
- func (s *UserSettingSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserSettingSelect) StringX(ctx context.Context) string
- func (s *UserSettingSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserSettingSelect) StringsX(ctx context.Context) []string
- type UserSettingUpdate
- func (usu *UserSettingUpdate) AppendPermissions(s []string) *UserSettingUpdate
- func (usu *UserSettingUpdate) AppendTags(s []string) *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearDeletedAt() *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearDeletedBy() *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearRecoveryCode() *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearSilencedAt() *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearSuspendedAt() *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearUpdatedBy() *UserSettingUpdate
- func (usu *UserSettingUpdate) ClearUser() *UserSettingUpdate
- func (usu *UserSettingUpdate) Exec(ctx context.Context) error
- func (usu *UserSettingUpdate) ExecX(ctx context.Context)
- func (usu *UserSettingUpdate) Mutation() *UserSettingMutation
- func (usu *UserSettingUpdate) Save(ctx context.Context) (int, error)
- func (usu *UserSettingUpdate) SaveX(ctx context.Context) int
- func (usu *UserSettingUpdate) SetDeletedAt(t time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetDeletedBy(s string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetEmailConfirmed(b bool) *UserSettingUpdate
- func (c *UserSettingUpdate) SetInput(i UpdateUserSettingInput) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetLocked(b bool) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableDeletedAt(t *time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableDeletedBy(s *string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableEmailConfirmed(b *bool) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableLocked(b *bool) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableRecoveryCode(s *string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableRole(u *usersetting.Role) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableSilencedAt(t *time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableStatus(u *usersetting.Status) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableSuspendedAt(t *time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableUpdatedBy(s *string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetNillableUserID(id *string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetPermissions(s []string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetRecoveryCode(s string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetRole(u usersetting.Role) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetSilencedAt(t time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetStatus(u usersetting.Status) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetSuspendedAt(t time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetTags(s []string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetUpdatedAt(t time.Time) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetUpdatedBy(s string) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetUser(u *User) *UserSettingUpdate
- func (usu *UserSettingUpdate) SetUserID(id string) *UserSettingUpdate
- func (usu *UserSettingUpdate) Where(ps ...predicate.UserSetting) *UserSettingUpdate
- type UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) AppendPermissions(s []string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) AppendTags(s []string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearDeletedAt() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearDeletedBy() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearRecoveryCode() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearSilencedAt() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearSuspendedAt() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearUpdatedBy() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) ClearUser() *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) Exec(ctx context.Context) error
- func (usuo *UserSettingUpdateOne) ExecX(ctx context.Context)
- func (usuo *UserSettingUpdateOne) Mutation() *UserSettingMutation
- func (usuo *UserSettingUpdateOne) Save(ctx context.Context) (*UserSetting, error)
- func (usuo *UserSettingUpdateOne) SaveX(ctx context.Context) *UserSetting
- func (usuo *UserSettingUpdateOne) Select(field string, fields ...string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetDeletedAt(t time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetDeletedBy(s string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetEmailConfirmed(b bool) *UserSettingUpdateOne
- func (c *UserSettingUpdateOne) SetInput(i UpdateUserSettingInput) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetLocked(b bool) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableDeletedBy(s *string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableEmailConfirmed(b *bool) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableLocked(b *bool) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableRecoveryCode(s *string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableRole(u *usersetting.Role) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableSilencedAt(t *time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableStatus(u *usersetting.Status) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableSuspendedAt(t *time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableUpdatedBy(s *string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetNillableUserID(id *string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetPermissions(s []string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetRecoveryCode(s string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetRole(u usersetting.Role) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetSilencedAt(t time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetStatus(u usersetting.Status) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetSuspendedAt(t time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetTags(s []string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetUpdatedAt(t time.Time) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetUpdatedBy(s string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetUser(u *User) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) SetUserID(id string) *UserSettingUpdateOne
- func (usuo *UserSettingUpdateOne) Where(ps ...predicate.UserSetting) *UserSettingUpdateOne
- type UserSettingWhereInput
- type UserSettings
- type UserUpdate
- func (uu *UserUpdate) AddGroupIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate
- func (uu *UserUpdate) AddOrganizationIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) AddOrganizations(o ...*Organization) *UserUpdate
- func (uu *UserUpdate) AddPersonalAccessTokenIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdate
- func (uu *UserUpdate) AddSessionIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) AddSessions(s ...*Session) *UserUpdate
- func (uu *UserUpdate) ClearAvatarLocalFile() *UserUpdate
- func (uu *UserUpdate) ClearAvatarRemoteURL() *UserUpdate
- func (uu *UserUpdate) ClearAvatarUpdatedAt() *UserUpdate
- func (uu *UserUpdate) ClearDeletedAt() *UserUpdate
- func (uu *UserUpdate) ClearDeletedBy() *UserUpdate
- func (uu *UserUpdate) ClearGroups() *UserUpdate
- func (uu *UserUpdate) ClearLastSeen() *UserUpdate
- func (uu *UserUpdate) ClearOrganizations() *UserUpdate
- func (uu *UserUpdate) ClearPassword() *UserUpdate
- func (uu *UserUpdate) ClearPersonalAccessTokens() *UserUpdate
- func (uu *UserUpdate) ClearSessions() *UserUpdate
- func (uu *UserUpdate) ClearSetting() *UserUpdate
- func (uu *UserUpdate) ClearSub() *UserUpdate
- func (uu *UserUpdate) ClearUpdatedBy() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveGroupIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate
- func (uu *UserUpdate) RemoveOrganizationIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) RemoveOrganizations(o ...*Organization) *UserUpdate
- func (uu *UserUpdate) RemovePersonalAccessTokenIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) RemovePersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdate
- func (uu *UserUpdate) RemoveSessionIDs(ids ...string) *UserUpdate
- func (uu *UserUpdate) RemoveSessions(s ...*Session) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetAvatarLocalFile(s string) *UserUpdate
- func (uu *UserUpdate) SetAvatarRemoteURL(s string) *UserUpdate
- func (uu *UserUpdate) SetAvatarUpdatedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetDeletedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetDeletedBy(s string) *UserUpdate
- func (uu *UserUpdate) SetDisplayName(s string) *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) SetLastName(s string) *UserUpdate
- func (uu *UserUpdate) SetLastSeen(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetNillableAvatarLocalFile(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableAvatarRemoteURL(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableDeletedAt(t *time.Time) *UserUpdate
- func (uu *UserUpdate) SetNillableDeletedBy(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableDisplayName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableOauth(b *bool) *UserUpdate
- func (uu *UserUpdate) SetNillablePassword(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableSub(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableUpdatedBy(s *string) *UserUpdate
- func (uu *UserUpdate) SetOauth(b bool) *UserUpdate
- func (uu *UserUpdate) SetPassword(s string) *UserUpdate
- func (uu *UserUpdate) SetSetting(u *UserSetting) *UserUpdate
- func (uu *UserUpdate) SetSettingID(id string) *UserUpdate
- func (uu *UserUpdate) SetSub(s string) *UserUpdate
- func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetUpdatedBy(s string) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddGroupIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne
- func (uuo *UserUpdateOne) AddOrganizationIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) AddOrganizations(o ...*Organization) *UserUpdateOne
- func (uuo *UserUpdateOne) AddPersonalAccessTokenIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdateOne
- func (uuo *UserUpdateOne) AddSessionIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) AddSessions(s ...*Session) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearAvatarLocalFile() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearAvatarRemoteURL() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearAvatarUpdatedAt() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearDeletedAt() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearDeletedBy() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearGroups() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearLastSeen() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearOrganizations() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearPassword() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearPersonalAccessTokens() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearSessions() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearSetting() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearSub() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearUpdatedBy() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveOrganizationIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveOrganizations(o ...*Organization) *UserUpdateOne
- func (uuo *UserUpdateOne) RemovePersonalAccessTokenIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) RemovePersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveSessionIDs(ids ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveSessions(s ...*Session) *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) SetAvatarLocalFile(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetAvatarRemoteURL(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetAvatarUpdatedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetDeletedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetDeletedBy(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetDisplayName(s string) *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) SetLastName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetLastSeen(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableAvatarLocalFile(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableAvatarRemoteURL(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableDeletedAt(t *time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableDeletedBy(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableDisplayName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableOauth(b *bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableSub(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableUpdatedBy(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetOauth(b bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetSetting(u *UserSetting) *UserUpdateOne
- func (uuo *UserUpdateOne) SetSettingID(id string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetSub(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUpdatedBy(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. TypeEntitlement = "Entitlement" TypeGroup = "Group" TypeGroupSetting = "GroupSetting" TypeIntegration = "Integration" TypeOauthProvider = "OauthProvider" TypeOhAuthTooToken = "OhAuthTooToken" TypeOrganization = "Organization" TypeOrganizationSetting = "OrganizationSetting" TypePersonalAccessToken = "PersonalAccessToken" TypeSession = "Session" TypeUser = "User" TypeUserSetting = "UserSetting" )
Variables ¶
var ( // GroupOrderFieldName orders Group by name. GroupOrderFieldName = &GroupOrderField{ Value: func(gr *Group) (ent.Value, error) { return gr.Name, nil }, column: group.FieldName, toTerm: group.ByName, toCursor: func(gr *Group) Cursor { return Cursor{ ID: gr.ID, Value: gr.Name, } }, } // GroupOrderFieldDisplayName orders Group by display_name. GroupOrderFieldDisplayName = &GroupOrderField{ Value: func(gr *Group) (ent.Value, error) { return gr.DisplayName, nil }, column: group.FieldDisplayName, toTerm: group.ByDisplayName, toCursor: func(gr *Group) Cursor { return Cursor{ ID: gr.ID, Value: gr.DisplayName, } }, } )
var ( // IntegrationOrderFieldName orders Integration by name. IntegrationOrderFieldName = &IntegrationOrderField{ Value: func(i *Integration) (ent.Value, error) { return i.Name, nil }, column: integration.FieldName, toTerm: integration.ByName, toCursor: func(i *Integration) Cursor { return Cursor{ ID: i.ID, Value: i.Name, } }, } // IntegrationOrderFieldKind orders Integration by kind. IntegrationOrderFieldKind = &IntegrationOrderField{ Value: func(i *Integration) (ent.Value, error) { return i.Kind, nil }, column: integration.FieldKind, toTerm: integration.ByKind, toCursor: func(i *Integration) Cursor { return Cursor{ ID: i.ID, Value: i.Kind, } }, } )
var ( // OrganizationOrderFieldName orders Organization by name. OrganizationOrderFieldName = &OrganizationOrderField{ Value: func(o *Organization) (ent.Value, error) { return o.Name, nil }, column: organization.FieldName, toTerm: organization.ByName, toCursor: func(o *Organization) Cursor { return Cursor{ ID: o.ID, Value: o.Name, } }, } // OrganizationOrderFieldDisplayName orders Organization by display_name. OrganizationOrderFieldDisplayName = &OrganizationOrderField{ Value: func(o *Organization) (ent.Value, error) { return o.DisplayName, nil }, column: organization.FieldDisplayName, toTerm: organization.ByDisplayName, toCursor: func(o *Organization) Cursor { return Cursor{ ID: o.ID, Value: o.DisplayName, } }, } )
var ( // UserOrderFieldFirstName orders User by first_name. UserOrderFieldFirstName = &UserOrderField{ Value: func(u *User) (ent.Value, error) { return u.FirstName, nil }, column: user.FieldFirstName, toTerm: user.ByFirstName, toCursor: func(u *User) Cursor { return Cursor{ ID: u.ID, Value: u.FirstName, } }, } // UserOrderFieldLastName orders User by last_name. UserOrderFieldLastName = &UserOrderField{ Value: func(u *User) (ent.Value, error) { return u.LastName, nil }, column: user.FieldLastName, toTerm: user.ByLastName, toCursor: func(u *User) Cursor { return Cursor{ ID: u.ID, Value: u.LastName, } }, } // UserOrderFieldDisplayName orders User by display_name. UserOrderFieldDisplayName = &UserOrderField{ Value: func(u *User) (ent.Value, error) { return u.DisplayName, nil }, column: user.FieldDisplayName, toTerm: user.ByDisplayName, toCursor: func(u *User) Cursor { return Cursor{ ID: u.ID, Value: u.DisplayName, } }, } )
var DefaultEntitlementOrder = &EntitlementOrder{ Direction: entgql.OrderDirectionAsc, Field: &EntitlementOrderField{ Value: func(e *Entitlement) (ent.Value, error) { return e.ID, nil }, column: entitlement.FieldID, toTerm: entitlement.ByID, toCursor: func(e *Entitlement) Cursor { return Cursor{ID: e.ID} }, }, }
DefaultEntitlementOrder is the default ordering of Entitlement.
var DefaultGroupOrder = &GroupOrder{ Direction: entgql.OrderDirectionAsc, Field: &GroupOrderField{ Value: func(gr *Group) (ent.Value, error) { return gr.ID, nil }, column: group.FieldID, toTerm: group.ByID, toCursor: func(gr *Group) Cursor { return Cursor{ID: gr.ID} }, }, }
DefaultGroupOrder is the default ordering of Group.
var DefaultGroupSettingOrder = &GroupSettingOrder{ Direction: entgql.OrderDirectionAsc, Field: &GroupSettingOrderField{ Value: func(gs *GroupSetting) (ent.Value, error) { return gs.ID, nil }, column: groupsetting.FieldID, toTerm: groupsetting.ByID, toCursor: func(gs *GroupSetting) Cursor { return Cursor{ID: gs.ID} }, }, }
DefaultGroupSettingOrder is the default ordering of GroupSetting.
var DefaultIntegrationOrder = &IntegrationOrder{ Direction: entgql.OrderDirectionAsc, Field: &IntegrationOrderField{ Value: func(i *Integration) (ent.Value, error) { return i.ID, nil }, column: integration.FieldID, toTerm: integration.ByID, toCursor: func(i *Integration) Cursor { return Cursor{ID: i.ID} }, }, }
DefaultIntegrationOrder is the default ordering of Integration.
var DefaultOauthProviderOrder = &OauthProviderOrder{ Direction: entgql.OrderDirectionAsc, Field: &OauthProviderOrderField{ Value: func(op *OauthProvider) (ent.Value, error) { return op.ID, nil }, column: oauthprovider.FieldID, toTerm: oauthprovider.ByID, toCursor: func(op *OauthProvider) Cursor { return Cursor{ID: op.ID} }, }, }
DefaultOauthProviderOrder is the default ordering of OauthProvider.
var DefaultOhAuthTooTokenOrder = &OhAuthTooTokenOrder{ Direction: entgql.OrderDirectionAsc, Field: &OhAuthTooTokenOrderField{ Value: func(oatt *OhAuthTooToken) (ent.Value, error) { return oatt.ID, nil }, column: ohauthtootoken.FieldID, toTerm: ohauthtootoken.ByID, toCursor: func(oatt *OhAuthTooToken) Cursor { return Cursor{ID: oatt.ID} }, }, }
DefaultOhAuthTooTokenOrder is the default ordering of OhAuthTooToken.
var DefaultOrganizationOrder = &OrganizationOrder{ Direction: entgql.OrderDirectionAsc, Field: &OrganizationOrderField{ Value: func(o *Organization) (ent.Value, error) { return o.ID, nil }, column: organization.FieldID, toTerm: organization.ByID, toCursor: func(o *Organization) Cursor { return Cursor{ID: o.ID} }, }, }
DefaultOrganizationOrder is the default ordering of Organization.
var DefaultOrganizationSettingOrder = &OrganizationSettingOrder{ Direction: entgql.OrderDirectionAsc, Field: &OrganizationSettingOrderField{ Value: func(os *OrganizationSetting) (ent.Value, error) { return os.ID, nil }, column: organizationsetting.FieldID, toTerm: organizationsetting.ByID, toCursor: func(os *OrganizationSetting) Cursor { return Cursor{ID: os.ID} }, }, }
DefaultOrganizationSettingOrder is the default ordering of OrganizationSetting.
var DefaultPersonalAccessTokenOrder = &PersonalAccessTokenOrder{ Direction: entgql.OrderDirectionAsc, Field: &PersonalAccessTokenOrderField{ Value: func(pat *PersonalAccessToken) (ent.Value, error) { return pat.ID, nil }, column: personalaccesstoken.FieldID, toTerm: personalaccesstoken.ByID, toCursor: func(pat *PersonalAccessToken) Cursor { return Cursor{ID: pat.ID} }, }, }
DefaultPersonalAccessTokenOrder is the default ordering of PersonalAccessToken.
var DefaultSessionOrder = &SessionOrder{ Direction: entgql.OrderDirectionAsc, Field: &SessionOrderField{ Value: func(s *Session) (ent.Value, error) { return s.ID, nil }, column: session.FieldID, toTerm: session.ByID, toCursor: func(s *Session) Cursor { return Cursor{ID: s.ID} }, }, }
DefaultSessionOrder is the default ordering of Session.
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 DefaultUserSettingOrder = &UserSettingOrder{ Direction: entgql.OrderDirectionAsc, Field: &UserSettingOrderField{ Value: func(us *UserSetting) (ent.Value, error) { return us.ID, nil }, column: usersetting.FieldID, toTerm: usersetting.ByID, toCursor: func(us *UserSetting) Cursor { return Cursor{ID: us.ID} }, }, }
DefaultUserSettingOrder is the default ordering of UserSetting.
var ErrEmptyEntitlementWhereInput = errors.New("generated: empty predicate EntitlementWhereInput")
ErrEmptyEntitlementWhereInput is returned in case the EntitlementWhereInput is empty.
var ErrEmptyGroupSettingWhereInput = errors.New("generated: empty predicate GroupSettingWhereInput")
ErrEmptyGroupSettingWhereInput is returned in case the GroupSettingWhereInput is empty.
var ErrEmptyGroupWhereInput = errors.New("generated: empty predicate GroupWhereInput")
ErrEmptyGroupWhereInput is returned in case the GroupWhereInput is empty.
var ErrEmptyIntegrationWhereInput = errors.New("generated: empty predicate IntegrationWhereInput")
ErrEmptyIntegrationWhereInput is returned in case the IntegrationWhereInput is empty.
var ErrEmptyOauthProviderWhereInput = errors.New("generated: empty predicate OauthProviderWhereInput")
ErrEmptyOauthProviderWhereInput is returned in case the OauthProviderWhereInput is empty.
var ErrEmptyOhAuthTooTokenWhereInput = errors.New("generated: empty predicate OhAuthTooTokenWhereInput")
ErrEmptyOhAuthTooTokenWhereInput is returned in case the OhAuthTooTokenWhereInput is empty.
var ErrEmptyOrganizationSettingWhereInput = errors.New("generated: empty predicate OrganizationSettingWhereInput")
ErrEmptyOrganizationSettingWhereInput is returned in case the OrganizationSettingWhereInput is empty.
var ErrEmptyOrganizationWhereInput = errors.New("generated: empty predicate OrganizationWhereInput")
ErrEmptyOrganizationWhereInput is returned in case the OrganizationWhereInput is empty.
var ErrEmptyPersonalAccessTokenWhereInput = errors.New("generated: empty predicate PersonalAccessTokenWhereInput")
ErrEmptyPersonalAccessTokenWhereInput is returned in case the PersonalAccessTokenWhereInput is empty.
var ErrEmptySessionWhereInput = errors.New("generated: empty predicate SessionWhereInput")
ErrEmptySessionWhereInput is returned in case the SessionWhereInput is empty.
var ErrEmptyUserSettingWhereInput = errors.New("generated: empty predicate UserSettingWhereInput")
ErrEmptyUserSettingWhereInput is returned in case the UserSettingWhereInput is empty.
var ErrEmptyUserWhereInput = errors.New("generated: empty predicate UserWhereInput")
ErrEmptyUserWhereInput is returned in case the UserWhereInput is empty.
var ErrTxStarted = errors.New("generated: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
func NewTxContext ¶
NewTxContext returns a new context with the given Tx attached.
func OpenTxFromContext ¶
OpenTxFromContext open transactions from client stored in context.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(generated.As(generated.Sum(field1), "sum_field1"), (generated.As(generated.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Entitlement is the client for interacting with the Entitlement builders. Entitlement *EntitlementClient // Group is the client for interacting with the Group builders. Group *GroupClient // GroupSetting is the client for interacting with the GroupSetting builders. GroupSetting *GroupSettingClient // Integration is the client for interacting with the Integration builders. Integration *IntegrationClient // OauthProvider is the client for interacting with the OauthProvider builders. OauthProvider *OauthProviderClient // OhAuthTooToken is the client for interacting with the OhAuthTooToken builders. OhAuthTooToken *OhAuthTooTokenClient // Organization is the client for interacting with the Organization builders. Organization *OrganizationClient // OrganizationSetting is the client for interacting with the OrganizationSetting builders. OrganizationSetting *OrganizationSettingClient // PersonalAccessToken is the client for interacting with the PersonalAccessToken builders. PersonalAccessToken *PersonalAccessTokenClient // Session is the client for interacting with the Session builders. Session *SessionClient // User is the client for interacting with the User builders. User *UserClient // UserSetting is the client for interacting with the UserSetting builders. UserSetting *UserSettingClient // 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(). Entitlement. 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) 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 CreateEntitlementInput ¶
type CreateEntitlementInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Tier *entitlement.Tier ExternalCustomerID *string ExternalSubscriptionID *string Expires *bool ExpiresAt *time.Time Cancelled *bool OwnerID *string }
CreateEntitlementInput represents a mutation input for creating entitlements.
func (*CreateEntitlementInput) Mutate ¶
func (i *CreateEntitlementInput) Mutate(m *EntitlementMutation)
Mutate applies the CreateEntitlementInput on the EntitlementMutation builder.
type CreateGroupInput ¶
type CreateGroupInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Name string Description *string GravatarLogoURL *string LogoURL *string DisplayName *string SettingID string UserIDs []string OwnerID string }
CreateGroupInput represents a mutation input for creating groups.
func (*CreateGroupInput) Mutate ¶
func (i *CreateGroupInput) Mutate(m *GroupMutation)
Mutate applies the CreateGroupInput on the GroupMutation builder.
type CreateGroupSettingInput ¶
type CreateGroupSettingInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Visibility *groupsetting.Visibility JoinPolicy *groupsetting.JoinPolicy Tags []string SyncToSlack *bool SyncToGithub *bool GroupID *string }
CreateGroupSettingInput represents a mutation input for creating groupsettings.
func (*CreateGroupSettingInput) Mutate ¶
func (i *CreateGroupSettingInput) Mutate(m *GroupSettingMutation)
Mutate applies the CreateGroupSettingInput on the GroupSettingMutation builder.
type CreateIntegrationInput ¶
type CreateIntegrationInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Name string Description *string Kind *string SecretName string OwnerID *string }
CreateIntegrationInput represents a mutation input for creating integrations.
func (*CreateIntegrationInput) Mutate ¶
func (i *CreateIntegrationInput) Mutate(m *IntegrationMutation)
Mutate applies the CreateIntegrationInput on the IntegrationMutation builder.
type CreateOauthProviderInput ¶
type CreateOauthProviderInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Name string ClientID string ClientSecret string RedirectURL string Scopes string AuthURL string TokenURL string AuthStyle uint8 InfoURL string OwnerID *string }
CreateOauthProviderInput represents a mutation input for creating oauthproviders.
func (*CreateOauthProviderInput) Mutate ¶
func (i *CreateOauthProviderInput) Mutate(m *OauthProviderMutation)
Mutate applies the CreateOauthProviderInput on the OauthProviderMutation builder.
type CreateOhAuthTooTokenInput ¶
type CreateOhAuthTooTokenInput struct { ClientID string Scopes []string Nonce string ClaimsUserID string ClaimsUsername string ClaimsEmail string ClaimsEmailVerified bool ClaimsGroups []string ClaimsPreferredUsername string ConnectorID string ConnectorData []string LastUsed *time.Time }
CreateOhAuthTooTokenInput represents a mutation input for creating ohauthtootokens.
func (*CreateOhAuthTooTokenInput) Mutate ¶
func (i *CreateOhAuthTooTokenInput) Mutate(m *OhAuthTooTokenMutation)
Mutate applies the CreateOhAuthTooTokenInput on the OhAuthTooTokenMutation builder.
type CreateOrganizationInput ¶
type CreateOrganizationInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Name string DisplayName *string Description *string ParentID *string UserIDs []string GroupIDs []string IntegrationIDs []string SettingID *string EntitlementIDs []string OauthproviderIDs []string }
CreateOrganizationInput represents a mutation input for creating organizations.
func (*CreateOrganizationInput) Mutate ¶
func (i *CreateOrganizationInput) Mutate(m *OrganizationMutation)
Mutate applies the CreateOrganizationInput on the OrganizationMutation builder.
type CreateOrganizationSettingInput ¶
type CreateOrganizationSettingInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Domains []string SSOCert *string SSOEntrypoint *string SSOIssuer *string BillingContact *string BillingEmail *string BillingPhone *string BillingAddress *string TaxIdentifier *string Tags []string OrganizationID *string }
CreateOrganizationSettingInput represents a mutation input for creating organizationsettings.
func (*CreateOrganizationSettingInput) Mutate ¶
func (i *CreateOrganizationSettingInput) Mutate(m *OrganizationSettingMutation)
Mutate applies the CreateOrganizationSettingInput on the OrganizationSettingMutation builder.
type CreatePersonalAccessTokenInput ¶
type CreatePersonalAccessTokenInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Name string Token *string Abilities []string ExpiresAt time.Time Description *string LastUsedAt *time.Time OwnerID string }
CreatePersonalAccessTokenInput represents a mutation input for creating personalaccesstokens.
func (*CreatePersonalAccessTokenInput) Mutate ¶
func (i *CreatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation)
Mutate applies the CreatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder.
type CreateSessionInput ¶
type CreateSessionInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string SessionToken string IssuedAt time.Time ExpiresAt time.Time OrganizationID string OwnerID string }
CreateSessionInput represents a mutation input for creating sessions.
func (*CreateSessionInput) Mutate ¶
func (i *CreateSessionInput) Mutate(m *SessionMutation)
Mutate applies the CreateSessionInput on the SessionMutation builder.
type CreateUserInput ¶
type CreateUserInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Email string FirstName string LastName string DisplayName *string AvatarRemoteURL *string AvatarLocalFile *string AvatarUpdatedAt *time.Time LastSeen *time.Time Password *string Sub *string Oauth *bool OrganizationIDs []string SessionIDs []string GroupIDs []string PersonalAccessTokenIDs []string SettingID string }
CreateUserInput represents a mutation input for creating users.
func (*CreateUserInput) Mutate ¶
func (i *CreateUserInput) Mutate(m *UserMutation)
Mutate applies the CreateUserInput on the UserMutation builder.
type CreateUserSettingInput ¶
type CreateUserSettingInput struct { CreatedAt *time.Time UpdatedAt *time.Time CreatedBy *string UpdatedBy *string Locked *bool SilencedAt *time.Time SuspendedAt *time.Time RecoveryCode *string Status *usersetting.Status Role *usersetting.Role Permissions []string EmailConfirmed *bool Tags []string UserID *string }
CreateUserSettingInput represents a mutation input for creating usersettings.
func (*CreateUserSettingInput) Mutate ¶
func (i *CreateUserSettingInput) Mutate(m *UserSettingMutation)
Mutate applies the CreateUserSettingInput on the UserSettingMutation builder.
type Entitlement ¶
type Entitlement struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // Tier holds the value of the "tier" field. Tier entitlement.Tier `json:"tier,omitempty"` // used to store references to external systems, e.g. Stripe ExternalCustomerID string `json:"external_customer_id,omitempty"` // used to store references to external systems, e.g. Stripe ExternalSubscriptionID string `json:"external_subscription_id,omitempty"` // whether or not the customers entitlement expires - expires_at will show the time Expires bool `json:"expires,omitempty"` // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month ExpiresAt *time.Time `json:"expires_at,omitempty"` // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at Cancelled bool `json:"cancelled,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the EntitlementQuery when eager-loading is set. Edges EntitlementEdges `json:"edges"` // contains filtered or unexported fields }
Entitlement is the model entity for the Entitlement schema.
func (*Entitlement) IsNode ¶
func (n *Entitlement) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Entitlement) Owner ¶
func (e *Entitlement) Owner(ctx context.Context) (*Organization, error)
func (*Entitlement) QueryOwner ¶
func (e *Entitlement) QueryOwner() *OrganizationQuery
QueryOwner queries the "owner" edge of the Entitlement entity.
func (*Entitlement) String ¶
func (e *Entitlement) String() string
String implements the fmt.Stringer.
func (*Entitlement) ToEdge ¶
func (e *Entitlement) ToEdge(order *EntitlementOrder) *EntitlementEdge
ToEdge converts Entitlement into EntitlementEdge.
func (*Entitlement) Unwrap ¶
func (e *Entitlement) Unwrap() *Entitlement
Unwrap unwraps the Entitlement 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 (*Entitlement) Update ¶
func (e *Entitlement) Update() *EntitlementUpdateOne
Update returns a builder for updating this Entitlement. Note that you need to call Entitlement.Unwrap() before calling this method if this Entitlement was returned from a transaction, and the transaction was committed or rolled back.
type EntitlementClient ¶
type EntitlementClient struct {
// contains filtered or unexported fields
}
EntitlementClient is a client for the Entitlement schema.
func NewEntitlementClient ¶
func NewEntitlementClient(c config) *EntitlementClient
NewEntitlementClient returns a client for the Entitlement from the given config.
func (*EntitlementClient) Create ¶
func (c *EntitlementClient) Create() *EntitlementCreate
Create returns a builder for creating a Entitlement entity.
func (*EntitlementClient) CreateBulk ¶
func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk
CreateBulk returns a builder for creating a bulk of Entitlement entities.
func (*EntitlementClient) Delete ¶
func (c *EntitlementClient) Delete() *EntitlementDelete
Delete returns a delete builder for Entitlement.
func (*EntitlementClient) DeleteOne ¶
func (c *EntitlementClient) DeleteOne(e *Entitlement) *EntitlementDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*EntitlementClient) DeleteOneID ¶
func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*EntitlementClient) Get ¶
func (c *EntitlementClient) Get(ctx context.Context, id string) (*Entitlement, error)
Get returns a Entitlement entity by its id.
func (*EntitlementClient) GetX ¶
func (c *EntitlementClient) GetX(ctx context.Context, id string) *Entitlement
GetX is like Get, but panics if an error occurs.
func (*EntitlementClient) Hooks ¶
func (c *EntitlementClient) Hooks() []Hook
Hooks returns the client hooks.
func (*EntitlementClient) Intercept ¶
func (c *EntitlementClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `entitlement.Intercept(f(g(h())))`.
func (*EntitlementClient) Interceptors ¶
func (c *EntitlementClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*EntitlementClient) MapCreateBulk ¶
func (c *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*EntitlementClient) Query ¶
func (c *EntitlementClient) Query() *EntitlementQuery
Query returns a query builder for Entitlement.
func (*EntitlementClient) QueryOwner ¶
func (c *EntitlementClient) QueryOwner(e *Entitlement) *OrganizationQuery
QueryOwner queries the owner edge of a Entitlement.
func (*EntitlementClient) Update ¶
func (c *EntitlementClient) Update() *EntitlementUpdate
Update returns an update builder for Entitlement.
func (*EntitlementClient) UpdateOne ¶
func (c *EntitlementClient) UpdateOne(e *Entitlement) *EntitlementUpdateOne
UpdateOne returns an update builder for the given entity.
func (*EntitlementClient) UpdateOneID ¶
func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne
UpdateOneID returns an update builder for the given id.
func (*EntitlementClient) Use ¶
func (c *EntitlementClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `entitlement.Hooks(f(g(h())))`.
type EntitlementConnection ¶
type EntitlementConnection struct { Edges []*EntitlementEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
EntitlementConnection is the connection containing edges to Entitlement.
type EntitlementCreate ¶
type EntitlementCreate struct {
// contains filtered or unexported fields
}
EntitlementCreate is the builder for creating a Entitlement entity.
func (*EntitlementCreate) Exec ¶
func (ec *EntitlementCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementCreate) ExecX ¶
func (ec *EntitlementCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementCreate) Mutation ¶
func (ec *EntitlementCreate) Mutation() *EntitlementMutation
Mutation returns the EntitlementMutation object of the builder.
func (*EntitlementCreate) Save ¶
func (ec *EntitlementCreate) Save(ctx context.Context) (*Entitlement, error)
Save creates the Entitlement in the database.
func (*EntitlementCreate) SaveX ¶
func (ec *EntitlementCreate) SaveX(ctx context.Context) *Entitlement
SaveX calls Save and panics if Save returns an error.
func (*EntitlementCreate) SetCancelled ¶
func (ec *EntitlementCreate) SetCancelled(b bool) *EntitlementCreate
SetCancelled sets the "cancelled" field.
func (*EntitlementCreate) SetCreatedAt ¶
func (ec *EntitlementCreate) SetCreatedAt(t time.Time) *EntitlementCreate
SetCreatedAt sets the "created_at" field.
func (*EntitlementCreate) SetCreatedBy ¶
func (ec *EntitlementCreate) SetCreatedBy(s string) *EntitlementCreate
SetCreatedBy sets the "created_by" field.
func (*EntitlementCreate) SetDeletedAt ¶
func (ec *EntitlementCreate) SetDeletedAt(t time.Time) *EntitlementCreate
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementCreate) SetDeletedBy ¶
func (ec *EntitlementCreate) SetDeletedBy(s string) *EntitlementCreate
SetDeletedBy sets the "deleted_by" field.
func (*EntitlementCreate) SetExpires ¶
func (ec *EntitlementCreate) SetExpires(b bool) *EntitlementCreate
SetExpires sets the "expires" field.
func (*EntitlementCreate) SetExpiresAt ¶
func (ec *EntitlementCreate) SetExpiresAt(t time.Time) *EntitlementCreate
SetExpiresAt sets the "expires_at" field.
func (*EntitlementCreate) SetExternalCustomerID ¶
func (ec *EntitlementCreate) SetExternalCustomerID(s string) *EntitlementCreate
SetExternalCustomerID sets the "external_customer_id" field.
func (*EntitlementCreate) SetExternalSubscriptionID ¶
func (ec *EntitlementCreate) SetExternalSubscriptionID(s string) *EntitlementCreate
SetExternalSubscriptionID sets the "external_subscription_id" field.
func (*EntitlementCreate) SetID ¶
func (ec *EntitlementCreate) SetID(s string) *EntitlementCreate
SetID sets the "id" field.
func (*EntitlementCreate) SetInput ¶
func (c *EntitlementCreate) SetInput(i CreateEntitlementInput) *EntitlementCreate
SetInput applies the change-set in the CreateEntitlementInput on the EntitlementCreate builder.
func (*EntitlementCreate) SetNillableCancelled ¶
func (ec *EntitlementCreate) SetNillableCancelled(b *bool) *EntitlementCreate
SetNillableCancelled sets the "cancelled" field if the given value is not nil.
func (*EntitlementCreate) SetNillableCreatedAt ¶
func (ec *EntitlementCreate) SetNillableCreatedAt(t *time.Time) *EntitlementCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableCreatedBy ¶
func (ec *EntitlementCreate) SetNillableCreatedBy(s *string) *EntitlementCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*EntitlementCreate) SetNillableDeletedAt ¶
func (ec *EntitlementCreate) SetNillableDeletedAt(t *time.Time) *EntitlementCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableDeletedBy ¶
func (ec *EntitlementCreate) SetNillableDeletedBy(s *string) *EntitlementCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*EntitlementCreate) SetNillableExpires ¶
func (ec *EntitlementCreate) SetNillableExpires(b *bool) *EntitlementCreate
SetNillableExpires sets the "expires" field if the given value is not nil.
func (*EntitlementCreate) SetNillableExpiresAt ¶
func (ec *EntitlementCreate) SetNillableExpiresAt(t *time.Time) *EntitlementCreate
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableExternalCustomerID ¶
func (ec *EntitlementCreate) SetNillableExternalCustomerID(s *string) *EntitlementCreate
SetNillableExternalCustomerID sets the "external_customer_id" field if the given value is not nil.
func (*EntitlementCreate) SetNillableExternalSubscriptionID ¶
func (ec *EntitlementCreate) SetNillableExternalSubscriptionID(s *string) *EntitlementCreate
SetNillableExternalSubscriptionID sets the "external_subscription_id" field if the given value is not nil.
func (*EntitlementCreate) SetNillableID ¶
func (ec *EntitlementCreate) SetNillableID(s *string) *EntitlementCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*EntitlementCreate) SetNillableOwnerID ¶
func (ec *EntitlementCreate) SetNillableOwnerID(id *string) *EntitlementCreate
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*EntitlementCreate) SetNillableTier ¶
func (ec *EntitlementCreate) SetNillableTier(e *entitlement.Tier) *EntitlementCreate
SetNillableTier sets the "tier" field if the given value is not nil.
func (*EntitlementCreate) SetNillableUpdatedAt ¶
func (ec *EntitlementCreate) SetNillableUpdatedAt(t *time.Time) *EntitlementCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableUpdatedBy ¶
func (ec *EntitlementCreate) SetNillableUpdatedBy(s *string) *EntitlementCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*EntitlementCreate) SetOwner ¶
func (ec *EntitlementCreate) SetOwner(o *Organization) *EntitlementCreate
SetOwner sets the "owner" edge to the Organization entity.
func (*EntitlementCreate) SetOwnerID ¶
func (ec *EntitlementCreate) SetOwnerID(id string) *EntitlementCreate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*EntitlementCreate) SetTier ¶
func (ec *EntitlementCreate) SetTier(e entitlement.Tier) *EntitlementCreate
SetTier sets the "tier" field.
func (*EntitlementCreate) SetUpdatedAt ¶
func (ec *EntitlementCreate) SetUpdatedAt(t time.Time) *EntitlementCreate
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementCreate) SetUpdatedBy ¶
func (ec *EntitlementCreate) SetUpdatedBy(s string) *EntitlementCreate
SetUpdatedBy sets the "updated_by" field.
type EntitlementCreateBulk ¶
type EntitlementCreateBulk struct {
// contains filtered or unexported fields
}
EntitlementCreateBulk is the builder for creating many Entitlement entities in bulk.
func (*EntitlementCreateBulk) Exec ¶
func (ecb *EntitlementCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementCreateBulk) ExecX ¶
func (ecb *EntitlementCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementCreateBulk) Save ¶
func (ecb *EntitlementCreateBulk) Save(ctx context.Context) ([]*Entitlement, error)
Save creates the Entitlement entities in the database.
func (*EntitlementCreateBulk) SaveX ¶
func (ecb *EntitlementCreateBulk) SaveX(ctx context.Context) []*Entitlement
SaveX is like Save, but panics if an error occurs.
type EntitlementDelete ¶
type EntitlementDelete struct {
// contains filtered or unexported fields
}
EntitlementDelete is the builder for deleting a Entitlement entity.
func (*EntitlementDelete) Exec ¶
func (ed *EntitlementDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*EntitlementDelete) ExecX ¶
func (ed *EntitlementDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementDelete) Where ¶
func (ed *EntitlementDelete) Where(ps ...predicate.Entitlement) *EntitlementDelete
Where appends a list predicates to the EntitlementDelete builder.
type EntitlementDeleteOne ¶
type EntitlementDeleteOne struct {
// contains filtered or unexported fields
}
EntitlementDeleteOne is the builder for deleting a single Entitlement entity.
func (*EntitlementDeleteOne) Exec ¶
func (edo *EntitlementDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*EntitlementDeleteOne) ExecX ¶
func (edo *EntitlementDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementDeleteOne) Where ¶
func (edo *EntitlementDeleteOne) Where(ps ...predicate.Entitlement) *EntitlementDeleteOne
Where appends a list predicates to the EntitlementDelete builder.
type EntitlementEdge ¶
type EntitlementEdge struct { Node *Entitlement `json:"node"` Cursor Cursor `json:"cursor"` }
EntitlementEdge is the edge representation of Entitlement.
type EntitlementEdges ¶
type EntitlementEdges struct { // Owner holds the value of the owner edge. Owner *Organization `json:"owner,omitempty"` // contains filtered or unexported fields }
EntitlementEdges holds the relations/edges for other nodes in the graph.
func (EntitlementEdges) OwnerOrErr ¶
func (e EntitlementEdges) OwnerOrErr() (*Organization, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type EntitlementFilter ¶
type EntitlementFilter struct {
// contains filtered or unexported fields
}
EntitlementFilter provides a generic filtering capability at runtime for EntitlementQuery.
func (*EntitlementFilter) Where ¶
func (f *EntitlementFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*EntitlementFilter) WhereCancelled ¶
func (f *EntitlementFilter) WhereCancelled(p entql.BoolP)
WhereCancelled applies the entql bool predicate on the cancelled field.
func (*EntitlementFilter) WhereCreatedAt ¶
func (f *EntitlementFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*EntitlementFilter) WhereCreatedBy ¶
func (f *EntitlementFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*EntitlementFilter) WhereDeletedAt ¶
func (f *EntitlementFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*EntitlementFilter) WhereDeletedBy ¶
func (f *EntitlementFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*EntitlementFilter) WhereExpires ¶
func (f *EntitlementFilter) WhereExpires(p entql.BoolP)
WhereExpires applies the entql bool predicate on the expires field.
func (*EntitlementFilter) WhereExpiresAt ¶
func (f *EntitlementFilter) WhereExpiresAt(p entql.TimeP)
WhereExpiresAt applies the entql time.Time predicate on the expires_at field.
func (*EntitlementFilter) WhereExternalCustomerID ¶
func (f *EntitlementFilter) WhereExternalCustomerID(p entql.StringP)
WhereExternalCustomerID applies the entql string predicate on the external_customer_id field.
func (*EntitlementFilter) WhereExternalSubscriptionID ¶
func (f *EntitlementFilter) WhereExternalSubscriptionID(p entql.StringP)
WhereExternalSubscriptionID applies the entql string predicate on the external_subscription_id field.
func (*EntitlementFilter) WhereHasOwner ¶
func (f *EntitlementFilter) WhereHasOwner()
WhereHasOwner applies a predicate to check if query has an edge owner.
func (*EntitlementFilter) WhereHasOwnerWith ¶
func (f *EntitlementFilter) WhereHasOwnerWith(preds ...predicate.Organization)
WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).
func (*EntitlementFilter) WhereID ¶
func (f *EntitlementFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*EntitlementFilter) WhereTier ¶
func (f *EntitlementFilter) WhereTier(p entql.StringP)
WhereTier applies the entql string predicate on the tier field.
func (*EntitlementFilter) WhereUpdatedAt ¶
func (f *EntitlementFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*EntitlementFilter) WhereUpdatedBy ¶
func (f *EntitlementFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type EntitlementGroupBy ¶
type EntitlementGroupBy struct {
// contains filtered or unexported fields
}
EntitlementGroupBy is the group-by builder for Entitlement entities.
func (*EntitlementGroupBy) Aggregate ¶
func (egb *EntitlementGroupBy) Aggregate(fns ...AggregateFunc) *EntitlementGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*EntitlementGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Scan ¶
func (egb *EntitlementGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EntitlementGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EntitlementMutation ¶
type EntitlementMutation struct {
// contains filtered or unexported fields
}
EntitlementMutation represents an operation that mutates the Entitlement nodes in the graph.
func (*EntitlementMutation) AddField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) AddedEdges ¶
func (m *EntitlementMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*EntitlementMutation) AddedField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) AddedFields ¶
func (m *EntitlementMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*EntitlementMutation) AddedIDs ¶
func (m *EntitlementMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*EntitlementMutation) Cancelled ¶
func (m *EntitlementMutation) Cancelled() (r bool, exists bool)
Cancelled returns the value of the "cancelled" field in the mutation.
func (*EntitlementMutation) ClearCreatedBy ¶
func (m *EntitlementMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*EntitlementMutation) ClearDeletedAt ¶
func (m *EntitlementMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementMutation) ClearDeletedBy ¶
func (m *EntitlementMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*EntitlementMutation) ClearEdge ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ClearExpiresAt ¶
func (m *EntitlementMutation) ClearExpiresAt()
ClearExpiresAt clears the value of the "expires_at" field.
func (*EntitlementMutation) ClearExternalCustomerID ¶
func (m *EntitlementMutation) ClearExternalCustomerID()
ClearExternalCustomerID clears the value of the "external_customer_id" field.
func (*EntitlementMutation) ClearExternalSubscriptionID ¶
func (m *EntitlementMutation) ClearExternalSubscriptionID()
ClearExternalSubscriptionID clears the value of the "external_subscription_id" field.
func (*EntitlementMutation) ClearField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ClearOwner ¶
func (m *EntitlementMutation) ClearOwner()
ClearOwner clears the "owner" edge to the Organization entity.
func (*EntitlementMutation) ClearUpdatedBy ¶
func (m *EntitlementMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*EntitlementMutation) ClearedEdges ¶
func (m *EntitlementMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*EntitlementMutation) ClearedFields ¶
func (m *EntitlementMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (EntitlementMutation) Client ¶
func (m EntitlementMutation) 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 (*EntitlementMutation) CreatedAt ¶
func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*EntitlementMutation) CreatedBy ¶
func (m *EntitlementMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*EntitlementMutation) CreatedByCleared ¶
func (m *EntitlementMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*EntitlementMutation) DeletedAt ¶
func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*EntitlementMutation) DeletedAtCleared ¶
func (m *EntitlementMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*EntitlementMutation) DeletedBy ¶
func (m *EntitlementMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*EntitlementMutation) DeletedByCleared ¶
func (m *EntitlementMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*EntitlementMutation) EdgeCleared ¶
func (m *EntitlementMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*EntitlementMutation) Expires ¶
func (m *EntitlementMutation) Expires() (r bool, exists bool)
Expires returns the value of the "expires" field in the mutation.
func (*EntitlementMutation) ExpiresAt ¶
func (m *EntitlementMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expires_at" field in the mutation.
func (*EntitlementMutation) ExpiresAtCleared ¶
func (m *EntitlementMutation) ExpiresAtCleared() bool
ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation.
func (*EntitlementMutation) ExternalCustomerID ¶
func (m *EntitlementMutation) ExternalCustomerID() (r string, exists bool)
ExternalCustomerID returns the value of the "external_customer_id" field in the mutation.
func (*EntitlementMutation) ExternalCustomerIDCleared ¶
func (m *EntitlementMutation) ExternalCustomerIDCleared() bool
ExternalCustomerIDCleared returns if the "external_customer_id" field was cleared in this mutation.
func (*EntitlementMutation) ExternalSubscriptionID ¶
func (m *EntitlementMutation) ExternalSubscriptionID() (r string, exists bool)
ExternalSubscriptionID returns the value of the "external_subscription_id" field in the mutation.
func (*EntitlementMutation) ExternalSubscriptionIDCleared ¶
func (m *EntitlementMutation) ExternalSubscriptionIDCleared() bool
ExternalSubscriptionIDCleared returns if the "external_subscription_id" field was cleared in this mutation.
func (*EntitlementMutation) Field ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) FieldCleared ¶
func (m *EntitlementMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*EntitlementMutation) Fields ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) Filter ¶
func (m *EntitlementMutation) Filter() *EntitlementFilter
Filter returns an entql.Where implementation to apply filters on the EntitlementMutation builder.
func (*EntitlementMutation) ID ¶
func (m *EntitlementMutation) ID() (id string, 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 (*EntitlementMutation) IDs ¶
func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*EntitlementMutation) OldCancelled ¶
func (m *EntitlementMutation) OldCancelled(ctx context.Context) (v bool, err error)
OldCancelled returns the old "cancelled" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldCreatedBy ¶
func (m *EntitlementMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldDeletedBy ¶
func (m *EntitlementMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldExpires ¶
func (m *EntitlementMutation) OldExpires(ctx context.Context) (v bool, err error)
OldExpires returns the old "expires" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldExpiresAt ¶
OldExpiresAt returns the old "expires_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldExternalCustomerID ¶
func (m *EntitlementMutation) OldExternalCustomerID(ctx context.Context) (v string, err error)
OldExternalCustomerID returns the old "external_customer_id" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldExternalSubscriptionID ¶
func (m *EntitlementMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error)
OldExternalSubscriptionID returns the old "external_subscription_id" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) 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 (*EntitlementMutation) OldTier ¶
func (m *EntitlementMutation) OldTier(ctx context.Context) (v entitlement.Tier, err error)
OldTier returns the old "tier" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldUpdatedBy ¶
func (m *EntitlementMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) Op ¶
func (m *EntitlementMutation) Op() Op
Op returns the operation name.
func (*EntitlementMutation) OwnerCleared ¶
func (m *EntitlementMutation) OwnerCleared() bool
OwnerCleared reports if the "owner" edge to the Organization entity was cleared.
func (*EntitlementMutation) OwnerID ¶
func (m *EntitlementMutation) OwnerID() (id string, exists bool)
OwnerID returns the "owner" edge ID in the mutation.
func (*EntitlementMutation) OwnerIDs ¶
func (m *EntitlementMutation) OwnerIDs() (ids []string)
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.
func (*EntitlementMutation) RemovedEdges ¶
func (m *EntitlementMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*EntitlementMutation) RemovedIDs ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ResetCancelled ¶
func (m *EntitlementMutation) ResetCancelled()
ResetCancelled resets all changes to the "cancelled" field.
func (*EntitlementMutation) ResetCreatedAt ¶
func (m *EntitlementMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*EntitlementMutation) ResetCreatedBy ¶
func (m *EntitlementMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*EntitlementMutation) ResetDeletedAt ¶
func (m *EntitlementMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*EntitlementMutation) ResetDeletedBy ¶
func (m *EntitlementMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*EntitlementMutation) ResetEdge ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ResetExpires ¶
func (m *EntitlementMutation) ResetExpires()
ResetExpires resets all changes to the "expires" field.
func (*EntitlementMutation) ResetExpiresAt ¶
func (m *EntitlementMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expires_at" field.
func (*EntitlementMutation) ResetExternalCustomerID ¶
func (m *EntitlementMutation) ResetExternalCustomerID()
ResetExternalCustomerID resets all changes to the "external_customer_id" field.
func (*EntitlementMutation) ResetExternalSubscriptionID ¶
func (m *EntitlementMutation) ResetExternalSubscriptionID()
ResetExternalSubscriptionID resets all changes to the "external_subscription_id" field.
func (*EntitlementMutation) ResetField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ResetOwner ¶
func (m *EntitlementMutation) ResetOwner()
ResetOwner resets all changes to the "owner" edge.
func (*EntitlementMutation) ResetTier ¶
func (m *EntitlementMutation) ResetTier()
ResetTier resets all changes to the "tier" field.
func (*EntitlementMutation) ResetUpdatedAt ¶
func (m *EntitlementMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*EntitlementMutation) ResetUpdatedBy ¶
func (m *EntitlementMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*EntitlementMutation) SetCancelled ¶
func (m *EntitlementMutation) SetCancelled(b bool)
SetCancelled sets the "cancelled" field.
func (*EntitlementMutation) SetCreatedAt ¶
func (m *EntitlementMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*EntitlementMutation) SetCreatedBy ¶
func (m *EntitlementMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*EntitlementMutation) SetDeletedAt ¶
func (m *EntitlementMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementMutation) SetDeletedBy ¶
func (m *EntitlementMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*EntitlementMutation) SetExpires ¶
func (m *EntitlementMutation) SetExpires(b bool)
SetExpires sets the "expires" field.
func (*EntitlementMutation) SetExpiresAt ¶
func (m *EntitlementMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expires_at" field.
func (*EntitlementMutation) SetExternalCustomerID ¶
func (m *EntitlementMutation) SetExternalCustomerID(s string)
SetExternalCustomerID sets the "external_customer_id" field.
func (*EntitlementMutation) SetExternalSubscriptionID ¶
func (m *EntitlementMutation) SetExternalSubscriptionID(s string)
SetExternalSubscriptionID sets the "external_subscription_id" field.
func (*EntitlementMutation) SetField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) SetID ¶
func (m *EntitlementMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Entitlement entities.
func (*EntitlementMutation) SetOp ¶
func (m *EntitlementMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*EntitlementMutation) SetOwnerID ¶
func (m *EntitlementMutation) SetOwnerID(id string)
SetOwnerID sets the "owner" edge to the Organization entity by id.
func (*EntitlementMutation) SetTier ¶
func (m *EntitlementMutation) SetTier(e entitlement.Tier)
SetTier sets the "tier" field.
func (*EntitlementMutation) SetUpdatedAt ¶
func (m *EntitlementMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementMutation) SetUpdatedBy ¶
func (m *EntitlementMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*EntitlementMutation) Tier ¶
func (m *EntitlementMutation) Tier() (r entitlement.Tier, exists bool)
Tier returns the value of the "tier" field in the mutation.
func (EntitlementMutation) Tx ¶
func (m EntitlementMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*EntitlementMutation) Type ¶
func (m *EntitlementMutation) Type() string
Type returns the node type of this mutation (Entitlement).
func (*EntitlementMutation) UpdatedAt ¶
func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*EntitlementMutation) UpdatedBy ¶
func (m *EntitlementMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*EntitlementMutation) UpdatedByCleared ¶
func (m *EntitlementMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*EntitlementMutation) Where ¶
func (m *EntitlementMutation) Where(ps ...predicate.Entitlement)
Where appends a list predicates to the EntitlementMutation builder.
func (*EntitlementMutation) WhereP ¶
func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the EntitlementMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type EntitlementOrder ¶
type EntitlementOrder struct { Direction OrderDirection `json:"direction"` Field *EntitlementOrderField `json:"field"` }
EntitlementOrder defines the ordering of Entitlement.
type EntitlementOrderField ¶
type EntitlementOrderField struct { // Value extracts the ordering value from the given Entitlement. Value func(*Entitlement) (ent.Value, error) // contains filtered or unexported fields }
EntitlementOrderField defines the ordering field of Entitlement.
type EntitlementPaginateOption ¶
type EntitlementPaginateOption func(*entitlementPager) error
EntitlementPaginateOption enables pagination customization.
func WithEntitlementFilter ¶
func WithEntitlementFilter(filter func(*EntitlementQuery) (*EntitlementQuery, error)) EntitlementPaginateOption
WithEntitlementFilter configures pagination filter.
func WithEntitlementOrder ¶
func WithEntitlementOrder(order *EntitlementOrder) EntitlementPaginateOption
WithEntitlementOrder configures pagination ordering.
type EntitlementQuery ¶
type EntitlementQuery struct {
// contains filtered or unexported fields
}
EntitlementQuery is the builder for querying Entitlement entities.
func (*EntitlementQuery) Aggregate ¶
func (eq *EntitlementQuery) Aggregate(fns ...AggregateFunc) *EntitlementSelect
Aggregate returns a EntitlementSelect configured with the given aggregations.
func (*EntitlementQuery) All ¶
func (eq *EntitlementQuery) All(ctx context.Context) ([]*Entitlement, error)
All executes the query and returns a list of Entitlements.
func (*EntitlementQuery) AllX ¶
func (eq *EntitlementQuery) AllX(ctx context.Context) []*Entitlement
AllX is like All, but panics if an error occurs.
func (*EntitlementQuery) Clone ¶
func (eq *EntitlementQuery) Clone() *EntitlementQuery
Clone returns a duplicate of the EntitlementQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*EntitlementQuery) CollectFields ¶
func (e *EntitlementQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*EntitlementQuery) Count ¶
func (eq *EntitlementQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*EntitlementQuery) CountX ¶
func (eq *EntitlementQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*EntitlementQuery) Exist ¶
func (eq *EntitlementQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*EntitlementQuery) ExistX ¶
func (eq *EntitlementQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*EntitlementQuery) Filter ¶
func (eq *EntitlementQuery) Filter() *EntitlementFilter
Filter returns a Filter implementation to apply filters on the EntitlementQuery builder.
func (*EntitlementQuery) First ¶
func (eq *EntitlementQuery) First(ctx context.Context) (*Entitlement, error)
First returns the first Entitlement entity from the query. Returns a *NotFoundError when no Entitlement was found.
func (*EntitlementQuery) FirstID ¶
func (eq *EntitlementQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Entitlement ID from the query. Returns a *NotFoundError when no Entitlement ID was found.
func (*EntitlementQuery) FirstIDX ¶
func (eq *EntitlementQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*EntitlementQuery) FirstX ¶
func (eq *EntitlementQuery) FirstX(ctx context.Context) *Entitlement
FirstX is like First, but panics if an error occurs.
func (*EntitlementQuery) GroupBy ¶
func (eq *EntitlementQuery) GroupBy(field string, fields ...string) *EntitlementGroupBy
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.Entitlement.Query(). GroupBy(entitlement.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*EntitlementQuery) IDs ¶
func (eq *EntitlementQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Entitlement IDs.
func (*EntitlementQuery) IDsX ¶
func (eq *EntitlementQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*EntitlementQuery) Limit ¶
func (eq *EntitlementQuery) Limit(limit int) *EntitlementQuery
Limit the number of records to be returned by this query.
func (*EntitlementQuery) Offset ¶
func (eq *EntitlementQuery) Offset(offset int) *EntitlementQuery
Offset to start from.
func (*EntitlementQuery) Only ¶
func (eq *EntitlementQuery) Only(ctx context.Context) (*Entitlement, error)
Only returns a single Entitlement entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Entitlement entity is found. Returns a *NotFoundError when no Entitlement entities are found.
func (*EntitlementQuery) OnlyID ¶
func (eq *EntitlementQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Entitlement ID in the query. Returns a *NotSingularError when more than one Entitlement ID is found. Returns a *NotFoundError when no entities are found.
func (*EntitlementQuery) OnlyIDX ¶
func (eq *EntitlementQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*EntitlementQuery) OnlyX ¶
func (eq *EntitlementQuery) OnlyX(ctx context.Context) *Entitlement
OnlyX is like Only, but panics if an error occurs.
func (*EntitlementQuery) Order ¶
func (eq *EntitlementQuery) Order(o ...entitlement.OrderOption) *EntitlementQuery
Order specifies how the records should be ordered.
func (*EntitlementQuery) Paginate ¶
func (e *EntitlementQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...EntitlementPaginateOption, ) (*EntitlementConnection, error)
Paginate executes the query and returns a relay based cursor connection to Entitlement.
func (*EntitlementQuery) QueryOwner ¶
func (eq *EntitlementQuery) QueryOwner() *OrganizationQuery
QueryOwner chains the current query on the "owner" edge.
func (*EntitlementQuery) Select ¶
func (eq *EntitlementQuery) Select(fields ...string) *EntitlementSelect
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.Entitlement.Query(). Select(entitlement.FieldCreatedAt). Scan(ctx, &v)
func (*EntitlementQuery) Unique ¶
func (eq *EntitlementQuery) Unique(unique bool) *EntitlementQuery
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 (*EntitlementQuery) Where ¶
func (eq *EntitlementQuery) Where(ps ...predicate.Entitlement) *EntitlementQuery
Where adds a new predicate for the EntitlementQuery builder.
func (*EntitlementQuery) WithOwner ¶
func (eq *EntitlementQuery) WithOwner(opts ...func(*OrganizationQuery)) *EntitlementQuery
WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
type EntitlementSelect ¶
type EntitlementSelect struct { *EntitlementQuery // contains filtered or unexported fields }
EntitlementSelect is the builder for selecting fields of Entitlement entities.
func (*EntitlementSelect) Aggregate ¶
func (es *EntitlementSelect) Aggregate(fns ...AggregateFunc) *EntitlementSelect
Aggregate adds the given aggregation functions to the selector query.
func (*EntitlementSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Scan ¶
func (es *EntitlementSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EntitlementSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EntitlementUpdate ¶
type EntitlementUpdate struct {
// contains filtered or unexported fields
}
EntitlementUpdate is the builder for updating Entitlement entities.
func (*EntitlementUpdate) ClearDeletedAt ¶
func (eu *EntitlementUpdate) ClearDeletedAt() *EntitlementUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpdate) ClearDeletedBy ¶
func (eu *EntitlementUpdate) ClearDeletedBy() *EntitlementUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*EntitlementUpdate) ClearExpiresAt ¶
func (eu *EntitlementUpdate) ClearExpiresAt() *EntitlementUpdate
ClearExpiresAt clears the value of the "expires_at" field.
func (*EntitlementUpdate) ClearExternalCustomerID ¶
func (eu *EntitlementUpdate) ClearExternalCustomerID() *EntitlementUpdate
ClearExternalCustomerID clears the value of the "external_customer_id" field.
func (*EntitlementUpdate) ClearExternalSubscriptionID ¶
func (eu *EntitlementUpdate) ClearExternalSubscriptionID() *EntitlementUpdate
ClearExternalSubscriptionID clears the value of the "external_subscription_id" field.
func (*EntitlementUpdate) ClearOwner ¶
func (eu *EntitlementUpdate) ClearOwner() *EntitlementUpdate
ClearOwner clears the "owner" edge to the Organization entity.
func (*EntitlementUpdate) ClearUpdatedBy ¶
func (eu *EntitlementUpdate) ClearUpdatedBy() *EntitlementUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*EntitlementUpdate) Exec ¶
func (eu *EntitlementUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementUpdate) ExecX ¶
func (eu *EntitlementUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementUpdate) Mutation ¶
func (eu *EntitlementUpdate) Mutation() *EntitlementMutation
Mutation returns the EntitlementMutation object of the builder.
func (*EntitlementUpdate) Save ¶
func (eu *EntitlementUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*EntitlementUpdate) SaveX ¶
func (eu *EntitlementUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*EntitlementUpdate) SetCancelled ¶
func (eu *EntitlementUpdate) SetCancelled(b bool) *EntitlementUpdate
SetCancelled sets the "cancelled" field.
func (*EntitlementUpdate) SetDeletedAt ¶
func (eu *EntitlementUpdate) SetDeletedAt(t time.Time) *EntitlementUpdate
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpdate) SetDeletedBy ¶
func (eu *EntitlementUpdate) SetDeletedBy(s string) *EntitlementUpdate
SetDeletedBy sets the "deleted_by" field.
func (*EntitlementUpdate) SetExpires ¶
func (eu *EntitlementUpdate) SetExpires(b bool) *EntitlementUpdate
SetExpires sets the "expires" field.
func (*EntitlementUpdate) SetExpiresAt ¶
func (eu *EntitlementUpdate) SetExpiresAt(t time.Time) *EntitlementUpdate
SetExpiresAt sets the "expires_at" field.
func (*EntitlementUpdate) SetExternalCustomerID ¶
func (eu *EntitlementUpdate) SetExternalCustomerID(s string) *EntitlementUpdate
SetExternalCustomerID sets the "external_customer_id" field.
func (*EntitlementUpdate) SetExternalSubscriptionID ¶
func (eu *EntitlementUpdate) SetExternalSubscriptionID(s string) *EntitlementUpdate
SetExternalSubscriptionID sets the "external_subscription_id" field.
func (*EntitlementUpdate) SetInput ¶
func (c *EntitlementUpdate) SetInput(i UpdateEntitlementInput) *EntitlementUpdate
SetInput applies the change-set in the UpdateEntitlementInput on the EntitlementUpdate builder.
func (*EntitlementUpdate) SetNillableCancelled ¶
func (eu *EntitlementUpdate) SetNillableCancelled(b *bool) *EntitlementUpdate
SetNillableCancelled sets the "cancelled" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableDeletedAt ¶
func (eu *EntitlementUpdate) SetNillableDeletedAt(t *time.Time) *EntitlementUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableDeletedBy ¶
func (eu *EntitlementUpdate) SetNillableDeletedBy(s *string) *EntitlementUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableExpires ¶
func (eu *EntitlementUpdate) SetNillableExpires(b *bool) *EntitlementUpdate
SetNillableExpires sets the "expires" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableExpiresAt ¶
func (eu *EntitlementUpdate) SetNillableExpiresAt(t *time.Time) *EntitlementUpdate
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableExternalCustomerID ¶
func (eu *EntitlementUpdate) SetNillableExternalCustomerID(s *string) *EntitlementUpdate
SetNillableExternalCustomerID sets the "external_customer_id" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableExternalSubscriptionID ¶
func (eu *EntitlementUpdate) SetNillableExternalSubscriptionID(s *string) *EntitlementUpdate
SetNillableExternalSubscriptionID sets the "external_subscription_id" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableOwnerID ¶
func (eu *EntitlementUpdate) SetNillableOwnerID(id *string) *EntitlementUpdate
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*EntitlementUpdate) SetNillableTier ¶
func (eu *EntitlementUpdate) SetNillableTier(e *entitlement.Tier) *EntitlementUpdate
SetNillableTier sets the "tier" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableUpdatedBy ¶
func (eu *EntitlementUpdate) SetNillableUpdatedBy(s *string) *EntitlementUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*EntitlementUpdate) SetOwner ¶
func (eu *EntitlementUpdate) SetOwner(o *Organization) *EntitlementUpdate
SetOwner sets the "owner" edge to the Organization entity.
func (*EntitlementUpdate) SetOwnerID ¶
func (eu *EntitlementUpdate) SetOwnerID(id string) *EntitlementUpdate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*EntitlementUpdate) SetTier ¶
func (eu *EntitlementUpdate) SetTier(e entitlement.Tier) *EntitlementUpdate
SetTier sets the "tier" field.
func (*EntitlementUpdate) SetUpdatedAt ¶
func (eu *EntitlementUpdate) SetUpdatedAt(t time.Time) *EntitlementUpdate
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpdate) SetUpdatedBy ¶
func (eu *EntitlementUpdate) SetUpdatedBy(s string) *EntitlementUpdate
SetUpdatedBy sets the "updated_by" field.
func (*EntitlementUpdate) Where ¶
func (eu *EntitlementUpdate) Where(ps ...predicate.Entitlement) *EntitlementUpdate
Where appends a list predicates to the EntitlementUpdate builder.
type EntitlementUpdateOne ¶
type EntitlementUpdateOne struct {
// contains filtered or unexported fields
}
EntitlementUpdateOne is the builder for updating a single Entitlement entity.
func (*EntitlementUpdateOne) ClearDeletedAt ¶
func (euo *EntitlementUpdateOne) ClearDeletedAt() *EntitlementUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpdateOne) ClearDeletedBy ¶
func (euo *EntitlementUpdateOne) ClearDeletedBy() *EntitlementUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*EntitlementUpdateOne) ClearExpiresAt ¶
func (euo *EntitlementUpdateOne) ClearExpiresAt() *EntitlementUpdateOne
ClearExpiresAt clears the value of the "expires_at" field.
func (*EntitlementUpdateOne) ClearExternalCustomerID ¶
func (euo *EntitlementUpdateOne) ClearExternalCustomerID() *EntitlementUpdateOne
ClearExternalCustomerID clears the value of the "external_customer_id" field.
func (*EntitlementUpdateOne) ClearExternalSubscriptionID ¶
func (euo *EntitlementUpdateOne) ClearExternalSubscriptionID() *EntitlementUpdateOne
ClearExternalSubscriptionID clears the value of the "external_subscription_id" field.
func (*EntitlementUpdateOne) ClearOwner ¶
func (euo *EntitlementUpdateOne) ClearOwner() *EntitlementUpdateOne
ClearOwner clears the "owner" edge to the Organization entity.
func (*EntitlementUpdateOne) ClearUpdatedBy ¶
func (euo *EntitlementUpdateOne) ClearUpdatedBy() *EntitlementUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*EntitlementUpdateOne) Exec ¶
func (euo *EntitlementUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*EntitlementUpdateOne) ExecX ¶
func (euo *EntitlementUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementUpdateOne) Mutation ¶
func (euo *EntitlementUpdateOne) Mutation() *EntitlementMutation
Mutation returns the EntitlementMutation object of the builder.
func (*EntitlementUpdateOne) Save ¶
func (euo *EntitlementUpdateOne) Save(ctx context.Context) (*Entitlement, error)
Save executes the query and returns the updated Entitlement entity.
func (*EntitlementUpdateOne) SaveX ¶
func (euo *EntitlementUpdateOne) SaveX(ctx context.Context) *Entitlement
SaveX is like Save, but panics if an error occurs.
func (*EntitlementUpdateOne) Select ¶
func (euo *EntitlementUpdateOne) Select(field string, fields ...string) *EntitlementUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*EntitlementUpdateOne) SetCancelled ¶
func (euo *EntitlementUpdateOne) SetCancelled(b bool) *EntitlementUpdateOne
SetCancelled sets the "cancelled" field.
func (*EntitlementUpdateOne) SetDeletedAt ¶
func (euo *EntitlementUpdateOne) SetDeletedAt(t time.Time) *EntitlementUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpdateOne) SetDeletedBy ¶
func (euo *EntitlementUpdateOne) SetDeletedBy(s string) *EntitlementUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*EntitlementUpdateOne) SetExpires ¶
func (euo *EntitlementUpdateOne) SetExpires(b bool) *EntitlementUpdateOne
SetExpires sets the "expires" field.
func (*EntitlementUpdateOne) SetExpiresAt ¶
func (euo *EntitlementUpdateOne) SetExpiresAt(t time.Time) *EntitlementUpdateOne
SetExpiresAt sets the "expires_at" field.
func (*EntitlementUpdateOne) SetExternalCustomerID ¶
func (euo *EntitlementUpdateOne) SetExternalCustomerID(s string) *EntitlementUpdateOne
SetExternalCustomerID sets the "external_customer_id" field.
func (*EntitlementUpdateOne) SetExternalSubscriptionID ¶
func (euo *EntitlementUpdateOne) SetExternalSubscriptionID(s string) *EntitlementUpdateOne
SetExternalSubscriptionID sets the "external_subscription_id" field.
func (*EntitlementUpdateOne) SetInput ¶
func (c *EntitlementUpdateOne) SetInput(i UpdateEntitlementInput) *EntitlementUpdateOne
SetInput applies the change-set in the UpdateEntitlementInput on the EntitlementUpdateOne builder.
func (*EntitlementUpdateOne) SetNillableCancelled ¶
func (euo *EntitlementUpdateOne) SetNillableCancelled(b *bool) *EntitlementUpdateOne
SetNillableCancelled sets the "cancelled" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableDeletedAt ¶
func (euo *EntitlementUpdateOne) SetNillableDeletedAt(t *time.Time) *EntitlementUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableDeletedBy ¶
func (euo *EntitlementUpdateOne) SetNillableDeletedBy(s *string) *EntitlementUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableExpires ¶
func (euo *EntitlementUpdateOne) SetNillableExpires(b *bool) *EntitlementUpdateOne
SetNillableExpires sets the "expires" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableExpiresAt ¶
func (euo *EntitlementUpdateOne) SetNillableExpiresAt(t *time.Time) *EntitlementUpdateOne
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableExternalCustomerID ¶
func (euo *EntitlementUpdateOne) SetNillableExternalCustomerID(s *string) *EntitlementUpdateOne
SetNillableExternalCustomerID sets the "external_customer_id" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableExternalSubscriptionID ¶
func (euo *EntitlementUpdateOne) SetNillableExternalSubscriptionID(s *string) *EntitlementUpdateOne
SetNillableExternalSubscriptionID sets the "external_subscription_id" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableOwnerID ¶
func (euo *EntitlementUpdateOne) SetNillableOwnerID(id *string) *EntitlementUpdateOne
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableTier ¶
func (euo *EntitlementUpdateOne) SetNillableTier(e *entitlement.Tier) *EntitlementUpdateOne
SetNillableTier sets the "tier" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableUpdatedBy ¶
func (euo *EntitlementUpdateOne) SetNillableUpdatedBy(s *string) *EntitlementUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*EntitlementUpdateOne) SetOwner ¶
func (euo *EntitlementUpdateOne) SetOwner(o *Organization) *EntitlementUpdateOne
SetOwner sets the "owner" edge to the Organization entity.
func (*EntitlementUpdateOne) SetOwnerID ¶
func (euo *EntitlementUpdateOne) SetOwnerID(id string) *EntitlementUpdateOne
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*EntitlementUpdateOne) SetTier ¶
func (euo *EntitlementUpdateOne) SetTier(e entitlement.Tier) *EntitlementUpdateOne
SetTier sets the "tier" field.
func (*EntitlementUpdateOne) SetUpdatedAt ¶
func (euo *EntitlementUpdateOne) SetUpdatedAt(t time.Time) *EntitlementUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpdateOne) SetUpdatedBy ¶
func (euo *EntitlementUpdateOne) SetUpdatedBy(s string) *EntitlementUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*EntitlementUpdateOne) Where ¶
func (euo *EntitlementUpdateOne) Where(ps ...predicate.Entitlement) *EntitlementUpdateOne
Where appends a list predicates to the EntitlementUpdate builder.
type EntitlementWhereInput ¶
type EntitlementWhereInput struct { Predicates []predicate.Entitlement `json:"-"` Not *EntitlementWhereInput `json:"not,omitempty"` Or []*EntitlementWhereInput `json:"or,omitempty"` And []*EntitlementWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // "tier" field predicates. Tier *entitlement.Tier `json:"tier,omitempty"` TierNEQ *entitlement.Tier `json:"tierNEQ,omitempty"` TierIn []entitlement.Tier `json:"tierIn,omitempty"` TierNotIn []entitlement.Tier `json:"tierNotIn,omitempty"` // "external_customer_id" field predicates. ExternalCustomerID *string `json:"externalCustomerID,omitempty"` ExternalCustomerIDNEQ *string `json:"externalCustomerIDNEQ,omitempty"` ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` ExternalCustomerIDGT *string `json:"externalCustomerIDGT,omitempty"` ExternalCustomerIDGTE *string `json:"externalCustomerIDGTE,omitempty"` ExternalCustomerIDLT *string `json:"externalCustomerIDLT,omitempty"` ExternalCustomerIDLTE *string `json:"externalCustomerIDLTE,omitempty"` ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` ExternalCustomerIDIsNil bool `json:"externalCustomerIDIsNil,omitempty"` ExternalCustomerIDNotNil bool `json:"externalCustomerIDNotNil,omitempty"` ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` // "external_subscription_id" field predicates. ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` ExternalSubscriptionIDNEQ *string `json:"externalSubscriptionIDNEQ,omitempty"` ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` ExternalSubscriptionIDGT *string `json:"externalSubscriptionIDGT,omitempty"` ExternalSubscriptionIDGTE *string `json:"externalSubscriptionIDGTE,omitempty"` ExternalSubscriptionIDLT *string `json:"externalSubscriptionIDLT,omitempty"` ExternalSubscriptionIDLTE *string `json:"externalSubscriptionIDLTE,omitempty"` ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` ExternalSubscriptionIDIsNil bool `json:"externalSubscriptionIDIsNil,omitempty"` ExternalSubscriptionIDNotNil bool `json:"externalSubscriptionIDNotNil,omitempty"` ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` // "expires" field predicates. Expires *bool `json:"expires,omitempty"` ExpiresNEQ *bool `json:"expiresNEQ,omitempty"` // "expires_at" field predicates. ExpiresAt *time.Time `json:"expiresAt,omitempty"` ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` // "cancelled" field predicates. Cancelled *bool `json:"cancelled,omitempty"` CancelledNEQ *bool `json:"cancelledNEQ,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` }
EntitlementWhereInput represents a where input for filtering Entitlement queries.
func (*EntitlementWhereInput) AddPredicates ¶
func (i *EntitlementWhereInput) AddPredicates(predicates ...predicate.Entitlement)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*EntitlementWhereInput) Filter ¶
func (i *EntitlementWhereInput) Filter(q *EntitlementQuery) (*EntitlementQuery, error)
Filter applies the EntitlementWhereInput filter on the EntitlementQuery builder.
func (*EntitlementWhereInput) P ¶
func (i *EntitlementWhereInput) P() (predicate.Entitlement, error)
P returns a predicate for filtering entitlements. An error is returned if the input is empty or invalid.
type Entitlements ¶
type Entitlements []*Entitlement
Entitlements is a parsable slice of Entitlement.
type Group ¶
type Group struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // the name of the group - must be unique within the organization Name string `json:"name,omitempty"` // the groups description Description string `json:"description,omitempty"` // the URL to an auto generated gravatar image for the group GravatarLogoURL string `json:"gravatar_logo_url,omitempty"` // the URL to an image uploaded by the customer for the groups avatar image LogoURL string `json:"logo_url,omitempty"` // The group's displayed 'friendly' name DisplayName string `json:"display_name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GroupQuery when eager-loading is set. Edges GroupEdges `json:"edges"` // contains filtered or unexported fields }
Group is the model entity for the Group schema.
func (*Group) IsNode ¶
func (n *Group) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Group) NamedUsers ¶
NamedUsers returns the Users named value or an error if the edge was not loaded in eager-loading with this name.
func (*Group) QueryOwner ¶
func (gr *Group) QueryOwner() *OrganizationQuery
QueryOwner queries the "owner" edge of the Group entity.
func (*Group) QuerySetting ¶
func (gr *Group) QuerySetting() *GroupSettingQuery
QuerySetting queries the "setting" edge of the Group entity.
func (*Group) QueryUsers ¶
QueryUsers queries the "users" edge of the Group entity.
func (*Group) ToEdge ¶
func (gr *Group) ToEdge(order *GroupOrder) *GroupEdge
ToEdge converts Group into GroupEdge.
func (*Group) Unwrap ¶
Unwrap unwraps the Group 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 (*Group) Update ¶
func (gr *Group) Update() *GroupUpdateOne
Update returns a builder for updating this Group. Note that you need to call Group.Unwrap() before calling this method if this Group was returned from a transaction, and the transaction was committed or rolled back.
type GroupClient ¶
type GroupClient struct {
// contains filtered or unexported fields
}
GroupClient is a client for the Group schema.
func NewGroupClient ¶
func NewGroupClient(c config) *GroupClient
NewGroupClient returns a client for the Group from the given config.
func (*GroupClient) Create ¶
func (c *GroupClient) Create() *GroupCreate
Create returns a builder for creating a Group entity.
func (*GroupClient) CreateBulk ¶
func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk
CreateBulk returns a builder for creating a bulk of Group entities.
func (*GroupClient) Delete ¶
func (c *GroupClient) Delete() *GroupDelete
Delete returns a delete builder for Group.
func (*GroupClient) DeleteOne ¶
func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*GroupClient) DeleteOneID ¶
func (c *GroupClient) DeleteOneID(id string) *GroupDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*GroupClient) GetX ¶
func (c *GroupClient) GetX(ctx context.Context, id string) *Group
GetX is like Get, but panics if an error occurs.
func (*GroupClient) Intercept ¶
func (c *GroupClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`.
func (*GroupClient) Interceptors ¶
func (c *GroupClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*GroupClient) MapCreateBulk ¶
func (c *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*GroupClient) Query ¶
func (c *GroupClient) Query() *GroupQuery
Query returns a query builder for Group.
func (*GroupClient) QueryOwner ¶
func (c *GroupClient) QueryOwner(gr *Group) *OrganizationQuery
QueryOwner queries the owner edge of a Group.
func (*GroupClient) QuerySetting ¶
func (c *GroupClient) QuerySetting(gr *Group) *GroupSettingQuery
QuerySetting queries the setting edge of a Group.
func (*GroupClient) QueryUsers ¶
func (c *GroupClient) QueryUsers(gr *Group) *UserQuery
QueryUsers queries the users edge of a Group.
func (*GroupClient) Update ¶
func (c *GroupClient) Update() *GroupUpdate
Update returns an update builder for Group.
func (*GroupClient) UpdateOne ¶
func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GroupClient) UpdateOneID ¶
func (c *GroupClient) UpdateOneID(id string) *GroupUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GroupClient) Use ¶
func (c *GroupClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `group.Hooks(f(g(h())))`.
type GroupConnection ¶
type GroupConnection struct { Edges []*GroupEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
GroupConnection is the connection containing edges to Group.
type GroupCreate ¶
type GroupCreate struct {
// contains filtered or unexported fields
}
GroupCreate is the builder for creating a Group entity.
func (*GroupCreate) AddUserIDs ¶
func (gc *GroupCreate) AddUserIDs(ids ...string) *GroupCreate
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*GroupCreate) AddUsers ¶
func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate
AddUsers adds the "users" edges to the User entity.
func (*GroupCreate) Exec ¶
func (gc *GroupCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupCreate) ExecX ¶
func (gc *GroupCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupCreate) Mutation ¶
func (gc *GroupCreate) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupCreate) Save ¶
func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)
Save creates the Group in the database.
func (*GroupCreate) SaveX ¶
func (gc *GroupCreate) SaveX(ctx context.Context) *Group
SaveX calls Save and panics if Save returns an error.
func (*GroupCreate) SetCreatedAt ¶
func (gc *GroupCreate) SetCreatedAt(t time.Time) *GroupCreate
SetCreatedAt sets the "created_at" field.
func (*GroupCreate) SetCreatedBy ¶
func (gc *GroupCreate) SetCreatedBy(s string) *GroupCreate
SetCreatedBy sets the "created_by" field.
func (*GroupCreate) SetDeletedAt ¶
func (gc *GroupCreate) SetDeletedAt(t time.Time) *GroupCreate
SetDeletedAt sets the "deleted_at" field.
func (*GroupCreate) SetDeletedBy ¶
func (gc *GroupCreate) SetDeletedBy(s string) *GroupCreate
SetDeletedBy sets the "deleted_by" field.
func (*GroupCreate) SetDescription ¶
func (gc *GroupCreate) SetDescription(s string) *GroupCreate
SetDescription sets the "description" field.
func (*GroupCreate) SetDisplayName ¶
func (gc *GroupCreate) SetDisplayName(s string) *GroupCreate
SetDisplayName sets the "display_name" field.
func (*GroupCreate) SetGravatarLogoURL ¶
func (gc *GroupCreate) SetGravatarLogoURL(s string) *GroupCreate
SetGravatarLogoURL sets the "gravatar_logo_url" field.
func (*GroupCreate) SetID ¶
func (gc *GroupCreate) SetID(s string) *GroupCreate
SetID sets the "id" field.
func (*GroupCreate) SetInput ¶
func (c *GroupCreate) SetInput(i CreateGroupInput) *GroupCreate
SetInput applies the change-set in the CreateGroupInput on the GroupCreate builder.
func (*GroupCreate) SetLogoURL ¶
func (gc *GroupCreate) SetLogoURL(s string) *GroupCreate
SetLogoURL sets the "logo_url" field.
func (*GroupCreate) SetName ¶
func (gc *GroupCreate) SetName(s string) *GroupCreate
SetName sets the "name" field.
func (*GroupCreate) SetNillableCreatedAt ¶
func (gc *GroupCreate) SetNillableCreatedAt(t *time.Time) *GroupCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*GroupCreate) SetNillableCreatedBy ¶
func (gc *GroupCreate) SetNillableCreatedBy(s *string) *GroupCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*GroupCreate) SetNillableDeletedAt ¶
func (gc *GroupCreate) SetNillableDeletedAt(t *time.Time) *GroupCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GroupCreate) SetNillableDeletedBy ¶
func (gc *GroupCreate) SetNillableDeletedBy(s *string) *GroupCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*GroupCreate) SetNillableDescription ¶
func (gc *GroupCreate) SetNillableDescription(s *string) *GroupCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*GroupCreate) SetNillableDisplayName ¶
func (gc *GroupCreate) SetNillableDisplayName(s *string) *GroupCreate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*GroupCreate) SetNillableGravatarLogoURL ¶
func (gc *GroupCreate) SetNillableGravatarLogoURL(s *string) *GroupCreate
SetNillableGravatarLogoURL sets the "gravatar_logo_url" field if the given value is not nil.
func (*GroupCreate) SetNillableID ¶
func (gc *GroupCreate) SetNillableID(s *string) *GroupCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*GroupCreate) SetNillableLogoURL ¶
func (gc *GroupCreate) SetNillableLogoURL(s *string) *GroupCreate
SetNillableLogoURL sets the "logo_url" field if the given value is not nil.
func (*GroupCreate) SetNillableUpdatedAt ¶
func (gc *GroupCreate) SetNillableUpdatedAt(t *time.Time) *GroupCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*GroupCreate) SetNillableUpdatedBy ¶
func (gc *GroupCreate) SetNillableUpdatedBy(s *string) *GroupCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*GroupCreate) SetOwner ¶
func (gc *GroupCreate) SetOwner(o *Organization) *GroupCreate
SetOwner sets the "owner" edge to the Organization entity.
func (*GroupCreate) SetOwnerID ¶
func (gc *GroupCreate) SetOwnerID(id string) *GroupCreate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*GroupCreate) SetSetting ¶
func (gc *GroupCreate) SetSetting(g *GroupSetting) *GroupCreate
SetSetting sets the "setting" edge to the GroupSetting entity.
func (*GroupCreate) SetSettingID ¶
func (gc *GroupCreate) SetSettingID(id string) *GroupCreate
SetSettingID sets the "setting" edge to the GroupSetting entity by ID.
func (*GroupCreate) SetUpdatedAt ¶
func (gc *GroupCreate) SetUpdatedAt(t time.Time) *GroupCreate
SetUpdatedAt sets the "updated_at" field.
func (*GroupCreate) SetUpdatedBy ¶
func (gc *GroupCreate) SetUpdatedBy(s string) *GroupCreate
SetUpdatedBy sets the "updated_by" field.
type GroupCreateBulk ¶
type GroupCreateBulk struct {
// contains filtered or unexported fields
}
GroupCreateBulk is the builder for creating many Group entities in bulk.
func (*GroupCreateBulk) Exec ¶
func (gcb *GroupCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupCreateBulk) ExecX ¶
func (gcb *GroupCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type GroupDelete ¶
type GroupDelete struct {
// contains filtered or unexported fields
}
GroupDelete is the builder for deleting a Group entity.
func (*GroupDelete) Exec ¶
func (gd *GroupDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GroupDelete) ExecX ¶
func (gd *GroupDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GroupDelete) Where ¶
func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete
Where appends a list predicates to the GroupDelete builder.
type GroupDeleteOne ¶
type GroupDeleteOne struct {
// contains filtered or unexported fields
}
GroupDeleteOne is the builder for deleting a single Group entity.
func (*GroupDeleteOne) Exec ¶
func (gdo *GroupDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GroupDeleteOne) ExecX ¶
func (gdo *GroupDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupDeleteOne) Where ¶
func (gdo *GroupDeleteOne) Where(ps ...predicate.Group) *GroupDeleteOne
Where appends a list predicates to the GroupDelete builder.
type GroupEdges ¶
type GroupEdges struct { // Setting holds the value of the setting edge. Setting *GroupSetting `json:"setting,omitempty"` // Users holds the value of the users edge. Users []*User `json:"users,omitempty"` // Owner holds the value of the owner edge. Owner *Organization `json:"owner,omitempty"` // contains filtered or unexported fields }
GroupEdges holds the relations/edges for other nodes in the graph.
func (GroupEdges) OwnerOrErr ¶
func (e GroupEdges) OwnerOrErr() (*Organization, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (GroupEdges) SettingOrErr ¶
func (e GroupEdges) SettingOrErr() (*GroupSetting, error)
SettingOrErr returns the Setting value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (GroupEdges) UsersOrErr ¶
func (e GroupEdges) UsersOrErr() ([]*User, error)
UsersOrErr returns the Users value or an error if the edge was not loaded in eager-loading.
type GroupFilter ¶
type GroupFilter struct {
// contains filtered or unexported fields
}
GroupFilter provides a generic filtering capability at runtime for GroupQuery.
func (*GroupFilter) Where ¶
func (f *GroupFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*GroupFilter) WhereCreatedAt ¶
func (f *GroupFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*GroupFilter) WhereCreatedBy ¶
func (f *GroupFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*GroupFilter) WhereDeletedAt ¶
func (f *GroupFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*GroupFilter) WhereDeletedBy ¶
func (f *GroupFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*GroupFilter) WhereDescription ¶
func (f *GroupFilter) WhereDescription(p entql.StringP)
WhereDescription applies the entql string predicate on the description field.
func (*GroupFilter) WhereDisplayName ¶
func (f *GroupFilter) WhereDisplayName(p entql.StringP)
WhereDisplayName applies the entql string predicate on the display_name field.
func (*GroupFilter) WhereGravatarLogoURL ¶
func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP)
WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field.
func (*GroupFilter) WhereHasOwner ¶
func (f *GroupFilter) WhereHasOwner()
WhereHasOwner applies a predicate to check if query has an edge owner.
func (*GroupFilter) WhereHasOwnerWith ¶
func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization)
WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).
func (*GroupFilter) WhereHasSetting ¶
func (f *GroupFilter) WhereHasSetting()
WhereHasSetting applies a predicate to check if query has an edge setting.
func (*GroupFilter) WhereHasSettingWith ¶
func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting)
WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates).
func (*GroupFilter) WhereHasUsers ¶
func (f *GroupFilter) WhereHasUsers()
WhereHasUsers applies a predicate to check if query has an edge users.
func (*GroupFilter) WhereHasUsersWith ¶
func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User)
WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates).
func (*GroupFilter) WhereID ¶
func (f *GroupFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*GroupFilter) WhereLogoURL ¶
func (f *GroupFilter) WhereLogoURL(p entql.StringP)
WhereLogoURL applies the entql string predicate on the logo_url field.
func (*GroupFilter) WhereName ¶
func (f *GroupFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*GroupFilter) WhereUpdatedAt ¶
func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*GroupFilter) WhereUpdatedBy ¶
func (f *GroupFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type GroupGroupBy ¶
type GroupGroupBy struct {
// contains filtered or unexported fields
}
GroupGroupBy is the group-by builder for Group entities.
func (*GroupGroupBy) Aggregate ¶
func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GroupGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Scan ¶
func (ggb *GroupGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GroupGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GroupMutation ¶
type GroupMutation struct {
// contains filtered or unexported fields
}
GroupMutation represents an operation that mutates the Group nodes in the graph.
func (*GroupMutation) AddField ¶
func (m *GroupMutation) 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 (*GroupMutation) AddUserIDs ¶
func (m *GroupMutation) AddUserIDs(ids ...string)
AddUserIDs adds the "users" edge to the User entity by ids.
func (*GroupMutation) AddedEdges ¶
func (m *GroupMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GroupMutation) AddedField ¶
func (m *GroupMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was 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 (*GroupMutation) AddedFields ¶
func (m *GroupMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*GroupMutation) AddedIDs ¶
func (m *GroupMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*GroupMutation) ClearCreatedBy ¶
func (m *GroupMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*GroupMutation) ClearDeletedAt ¶
func (m *GroupMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GroupMutation) ClearDeletedBy ¶
func (m *GroupMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*GroupMutation) ClearDescription ¶
func (m *GroupMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*GroupMutation) ClearEdge ¶
func (m *GroupMutation) 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 (*GroupMutation) ClearField ¶
func (m *GroupMutation) 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 (*GroupMutation) ClearGravatarLogoURL ¶
func (m *GroupMutation) ClearGravatarLogoURL()
ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field.
func (*GroupMutation) ClearLogoURL ¶
func (m *GroupMutation) ClearLogoURL()
ClearLogoURL clears the value of the "logo_url" field.
func (*GroupMutation) ClearOwner ¶
func (m *GroupMutation) ClearOwner()
ClearOwner clears the "owner" edge to the Organization entity.
func (*GroupMutation) ClearSetting ¶
func (m *GroupMutation) ClearSetting()
ClearSetting clears the "setting" edge to the GroupSetting entity.
func (*GroupMutation) ClearUpdatedBy ¶
func (m *GroupMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*GroupMutation) ClearUsers ¶
func (m *GroupMutation) ClearUsers()
ClearUsers clears the "users" edge to the User entity.
func (*GroupMutation) ClearedEdges ¶
func (m *GroupMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GroupMutation) ClearedFields ¶
func (m *GroupMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GroupMutation) Client ¶
func (m GroupMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*GroupMutation) CreatedAt ¶
func (m *GroupMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*GroupMutation) CreatedBy ¶
func (m *GroupMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*GroupMutation) CreatedByCleared ¶
func (m *GroupMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*GroupMutation) DeletedAt ¶
func (m *GroupMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*GroupMutation) DeletedAtCleared ¶
func (m *GroupMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*GroupMutation) DeletedBy ¶
func (m *GroupMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*GroupMutation) DeletedByCleared ¶
func (m *GroupMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*GroupMutation) Description ¶
func (m *GroupMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*GroupMutation) DescriptionCleared ¶
func (m *GroupMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*GroupMutation) DisplayName ¶
func (m *GroupMutation) DisplayName() (r string, exists bool)
DisplayName returns the value of the "display_name" field in the mutation.
func (*GroupMutation) EdgeCleared ¶
func (m *GroupMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*GroupMutation) Field ¶
func (m *GroupMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*GroupMutation) FieldCleared ¶
func (m *GroupMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*GroupMutation) Fields ¶
func (m *GroupMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*GroupMutation) Filter ¶
func (m *GroupMutation) Filter() *GroupFilter
Filter returns an entql.Where implementation to apply filters on the GroupMutation builder.
func (*GroupMutation) GravatarLogoURL ¶
func (m *GroupMutation) GravatarLogoURL() (r string, exists bool)
GravatarLogoURL returns the value of the "gravatar_logo_url" field in the mutation.
func (*GroupMutation) GravatarLogoURLCleared ¶
func (m *GroupMutation) GravatarLogoURLCleared() bool
GravatarLogoURLCleared returns if the "gravatar_logo_url" field was cleared in this mutation.
func (*GroupMutation) ID ¶
func (m *GroupMutation) ID() (id string, 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 (*GroupMutation) IDs ¶
func (m *GroupMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*GroupMutation) LogoURL ¶
func (m *GroupMutation) LogoURL() (r string, exists bool)
LogoURL returns the value of the "logo_url" field in the mutation.
func (*GroupMutation) LogoURLCleared ¶
func (m *GroupMutation) LogoURLCleared() bool
LogoURLCleared returns if the "logo_url" field was cleared in this mutation.
func (*GroupMutation) Name ¶
func (m *GroupMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*GroupMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldCreatedBy ¶
func (m *GroupMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldDeletedBy ¶
func (m *GroupMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldDescription ¶
func (m *GroupMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldDisplayName ¶
func (m *GroupMutation) OldDisplayName(ctx context.Context) (v string, err error)
OldDisplayName returns the old "display_name" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*GroupMutation) OldGravatarLogoURL ¶
func (m *GroupMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error)
OldGravatarLogoURL returns the old "gravatar_logo_url" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldLogoURL ¶
func (m *GroupMutation) OldLogoURL(ctx context.Context) (v string, err error)
OldLogoURL returns the old "logo_url" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldName ¶
func (m *GroupMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldUpdatedBy ¶
func (m *GroupMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OwnerCleared ¶
func (m *GroupMutation) OwnerCleared() bool
OwnerCleared reports if the "owner" edge to the Organization entity was cleared.
func (*GroupMutation) OwnerID ¶
func (m *GroupMutation) OwnerID() (id string, exists bool)
OwnerID returns the "owner" edge ID in the mutation.
func (*GroupMutation) OwnerIDs ¶
func (m *GroupMutation) OwnerIDs() (ids []string)
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.
func (*GroupMutation) RemoveUserIDs ¶
func (m *GroupMutation) RemoveUserIDs(ids ...string)
RemoveUserIDs removes the "users" edge to the User entity by IDs.
func (*GroupMutation) RemovedEdges ¶
func (m *GroupMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GroupMutation) RemovedIDs ¶
func (m *GroupMutation) 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 (*GroupMutation) RemovedUsersIDs ¶
func (m *GroupMutation) RemovedUsersIDs() (ids []string)
RemovedUsers returns the removed IDs of the "users" edge to the User entity.
func (*GroupMutation) ResetCreatedAt ¶
func (m *GroupMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*GroupMutation) ResetCreatedBy ¶
func (m *GroupMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*GroupMutation) ResetDeletedAt ¶
func (m *GroupMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*GroupMutation) ResetDeletedBy ¶
func (m *GroupMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*GroupMutation) ResetDescription ¶
func (m *GroupMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*GroupMutation) ResetDisplayName ¶
func (m *GroupMutation) ResetDisplayName()
ResetDisplayName resets all changes to the "display_name" field.
func (*GroupMutation) ResetEdge ¶
func (m *GroupMutation) 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 (*GroupMutation) ResetField ¶
func (m *GroupMutation) 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 (*GroupMutation) ResetGravatarLogoURL ¶
func (m *GroupMutation) ResetGravatarLogoURL()
ResetGravatarLogoURL resets all changes to the "gravatar_logo_url" field.
func (*GroupMutation) ResetLogoURL ¶
func (m *GroupMutation) ResetLogoURL()
ResetLogoURL resets all changes to the "logo_url" field.
func (*GroupMutation) ResetName ¶
func (m *GroupMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*GroupMutation) ResetOwner ¶
func (m *GroupMutation) ResetOwner()
ResetOwner resets all changes to the "owner" edge.
func (*GroupMutation) ResetSetting ¶
func (m *GroupMutation) ResetSetting()
ResetSetting resets all changes to the "setting" edge.
func (*GroupMutation) ResetUpdatedAt ¶
func (m *GroupMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*GroupMutation) ResetUpdatedBy ¶
func (m *GroupMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*GroupMutation) ResetUsers ¶
func (m *GroupMutation) ResetUsers()
ResetUsers resets all changes to the "users" edge.
func (*GroupMutation) SetCreatedAt ¶
func (m *GroupMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*GroupMutation) SetCreatedBy ¶
func (m *GroupMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*GroupMutation) SetDeletedAt ¶
func (m *GroupMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*GroupMutation) SetDeletedBy ¶
func (m *GroupMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*GroupMutation) SetDescription ¶
func (m *GroupMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*GroupMutation) SetDisplayName ¶
func (m *GroupMutation) SetDisplayName(s string)
SetDisplayName sets the "display_name" field.
func (*GroupMutation) SetField ¶
func (m *GroupMutation) 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 (*GroupMutation) SetGravatarLogoURL ¶
func (m *GroupMutation) SetGravatarLogoURL(s string)
SetGravatarLogoURL sets the "gravatar_logo_url" field.
func (*GroupMutation) SetID ¶
func (m *GroupMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Group entities.
func (*GroupMutation) SetLogoURL ¶
func (m *GroupMutation) SetLogoURL(s string)
SetLogoURL sets the "logo_url" field.
func (*GroupMutation) SetName ¶
func (m *GroupMutation) SetName(s string)
SetName sets the "name" field.
func (*GroupMutation) SetOp ¶
func (m *GroupMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*GroupMutation) SetOwnerID ¶
func (m *GroupMutation) SetOwnerID(id string)
SetOwnerID sets the "owner" edge to the Organization entity by id.
func (*GroupMutation) SetSettingID ¶
func (m *GroupMutation) SetSettingID(id string)
SetSettingID sets the "setting" edge to the GroupSetting entity by id.
func (*GroupMutation) SetUpdatedAt ¶
func (m *GroupMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*GroupMutation) SetUpdatedBy ¶
func (m *GroupMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*GroupMutation) SettingCleared ¶
func (m *GroupMutation) SettingCleared() bool
SettingCleared reports if the "setting" edge to the GroupSetting entity was cleared.
func (*GroupMutation) SettingID ¶
func (m *GroupMutation) SettingID() (id string, exists bool)
SettingID returns the "setting" edge ID in the mutation.
func (*GroupMutation) SettingIDs ¶
func (m *GroupMutation) SettingIDs() (ids []string)
SettingIDs returns the "setting" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SettingID instead. It exists only for internal usage by the builders.
func (GroupMutation) Tx ¶
func (m GroupMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GroupMutation) Type ¶
func (m *GroupMutation) Type() string
Type returns the node type of this mutation (Group).
func (*GroupMutation) UpdatedAt ¶
func (m *GroupMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*GroupMutation) UpdatedBy ¶
func (m *GroupMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*GroupMutation) UpdatedByCleared ¶
func (m *GroupMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*GroupMutation) UsersCleared ¶
func (m *GroupMutation) UsersCleared() bool
UsersCleared reports if the "users" edge to the User entity was cleared.
func (*GroupMutation) UsersIDs ¶
func (m *GroupMutation) UsersIDs() (ids []string)
UsersIDs returns the "users" edge IDs in the mutation.
func (*GroupMutation) Where ¶
func (m *GroupMutation) Where(ps ...predicate.Group)
Where appends a list predicates to the GroupMutation builder.
func (*GroupMutation) WhereP ¶
func (m *GroupMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the GroupMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type GroupOrder ¶
type GroupOrder struct { Direction OrderDirection `json:"direction"` Field *GroupOrderField `json:"field"` }
GroupOrder defines the ordering of Group.
type GroupOrderField ¶
type GroupOrderField struct { // Value extracts the ordering value from the given Group. Value func(*Group) (ent.Value, error) // contains filtered or unexported fields }
GroupOrderField defines the ordering field of Group.
func (GroupOrderField) MarshalGQL ¶
func (f GroupOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (GroupOrderField) String ¶
func (f GroupOrderField) String() string
String implement fmt.Stringer interface.
func (*GroupOrderField) UnmarshalGQL ¶
func (f *GroupOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type GroupPaginateOption ¶
type GroupPaginateOption func(*groupPager) error
GroupPaginateOption enables pagination customization.
func WithGroupFilter ¶
func WithGroupFilter(filter func(*GroupQuery) (*GroupQuery, error)) GroupPaginateOption
WithGroupFilter configures pagination filter.
func WithGroupOrder ¶
func WithGroupOrder(order *GroupOrder) GroupPaginateOption
WithGroupOrder configures pagination ordering.
type GroupQuery ¶
type GroupQuery struct {
// contains filtered or unexported fields
}
GroupQuery is the builder for querying Group entities.
func (*GroupQuery) Aggregate ¶
func (gq *GroupQuery) Aggregate(fns ...AggregateFunc) *GroupSelect
Aggregate returns a GroupSelect configured with the given aggregations.
func (*GroupQuery) All ¶
func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)
All executes the query and returns a list of Groups.
func (*GroupQuery) AllX ¶
func (gq *GroupQuery) AllX(ctx context.Context) []*Group
AllX is like All, but panics if an error occurs.
func (*GroupQuery) Clone ¶
func (gq *GroupQuery) Clone() *GroupQuery
Clone returns a duplicate of the GroupQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GroupQuery) CollectFields ¶
func (gr *GroupQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*GroupQuery) Count ¶
func (gq *GroupQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GroupQuery) CountX ¶
func (gq *GroupQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GroupQuery) Exist ¶
func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GroupQuery) ExistX ¶
func (gq *GroupQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GroupQuery) Filter ¶
func (gq *GroupQuery) Filter() *GroupFilter
Filter returns a Filter implementation to apply filters on the GroupQuery builder.
func (*GroupQuery) First ¶
func (gq *GroupQuery) First(ctx context.Context) (*Group, error)
First returns the first Group entity from the query. Returns a *NotFoundError when no Group was found.
func (*GroupQuery) FirstID ¶
func (gq *GroupQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Group ID from the query. Returns a *NotFoundError when no Group ID was found.
func (*GroupQuery) FirstIDX ¶
func (gq *GroupQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*GroupQuery) FirstX ¶
func (gq *GroupQuery) FirstX(ctx context.Context) *Group
FirstX is like First, but panics if an error occurs.
func (*GroupQuery) GroupBy ¶
func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy
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.Group.Query(). GroupBy(group.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*GroupQuery) IDs ¶
func (gq *GroupQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Group IDs.
func (*GroupQuery) IDsX ¶
func (gq *GroupQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*GroupQuery) Limit ¶
func (gq *GroupQuery) Limit(limit int) *GroupQuery
Limit the number of records to be returned by this query.
func (*GroupQuery) Offset ¶
func (gq *GroupQuery) Offset(offset int) *GroupQuery
Offset to start from.
func (*GroupQuery) Only ¶
func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)
Only returns a single Group entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Group entity is found. Returns a *NotFoundError when no Group entities are found.
func (*GroupQuery) OnlyID ¶
func (gq *GroupQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Group ID in the query. Returns a *NotSingularError when more than one Group ID is found. Returns a *NotFoundError when no entities are found.
func (*GroupQuery) OnlyIDX ¶
func (gq *GroupQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GroupQuery) OnlyX ¶
func (gq *GroupQuery) OnlyX(ctx context.Context) *Group
OnlyX is like Only, but panics if an error occurs.
func (*GroupQuery) Order ¶
func (gq *GroupQuery) Order(o ...group.OrderOption) *GroupQuery
Order specifies how the records should be ordered.
func (*GroupQuery) Paginate ¶
func (gr *GroupQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...GroupPaginateOption, ) (*GroupConnection, error)
Paginate executes the query and returns a relay based cursor connection to Group.
func (*GroupQuery) QueryOwner ¶
func (gq *GroupQuery) QueryOwner() *OrganizationQuery
QueryOwner chains the current query on the "owner" edge.
func (*GroupQuery) QuerySetting ¶
func (gq *GroupQuery) QuerySetting() *GroupSettingQuery
QuerySetting chains the current query on the "setting" edge.
func (*GroupQuery) QueryUsers ¶
func (gq *GroupQuery) QueryUsers() *UserQuery
QueryUsers chains the current query on the "users" edge.
func (*GroupQuery) Select ¶
func (gq *GroupQuery) Select(fields ...string) *GroupSelect
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.Group.Query(). Select(group.FieldCreatedAt). Scan(ctx, &v)
func (*GroupQuery) Unique ¶
func (gq *GroupQuery) Unique(unique bool) *GroupQuery
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 (*GroupQuery) Where ¶
func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery
Where adds a new predicate for the GroupQuery builder.
func (*GroupQuery) WithNamedUsers ¶
func (gq *GroupQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *GroupQuery
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 (*GroupQuery) WithOwner ¶
func (gq *GroupQuery) WithOwner(opts ...func(*OrganizationQuery)) *GroupQuery
WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
func (*GroupQuery) WithSetting ¶
func (gq *GroupQuery) WithSetting(opts ...func(*GroupSettingQuery)) *GroupQuery
WithSetting tells the query-builder to eager-load the nodes that are connected to the "setting" edge. The optional arguments are used to configure the query builder of the edge.
func (*GroupQuery) WithUsers ¶
func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery
WithUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge. The optional arguments are used to configure the query builder of the edge.
type GroupSelect ¶
type GroupSelect struct { *GroupQuery // contains filtered or unexported fields }
GroupSelect is the builder for selecting fields of Group entities.
func (*GroupSelect) Aggregate ¶
func (gs *GroupSelect) Aggregate(fns ...AggregateFunc) *GroupSelect
Aggregate adds the given aggregation functions to the selector query.
func (*GroupSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Scan ¶
func (gs *GroupSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GroupSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GroupSetting ¶
type GroupSetting struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization Visibility groupsetting.Visibility `json:"visibility,omitempty"` // the policy governing ability to freely join a group, whether it requires an invitation, application, or either JoinPolicy groupsetting.JoinPolicy `json:"join_policy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` // SyncToSlack holds the value of the "sync_to_slack" field. SyncToSlack bool `json:"sync_to_slack,omitempty"` // SyncToGithub holds the value of the "sync_to_github" field. SyncToGithub bool `json:"sync_to_github,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GroupSettingQuery when eager-loading is set. Edges GroupSettingEdges `json:"edges"` // contains filtered or unexported fields }
GroupSetting is the model entity for the GroupSetting schema.
func (*GroupSetting) IsNode ¶
func (n *GroupSetting) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*GroupSetting) QueryGroup ¶
func (gs *GroupSetting) QueryGroup() *GroupQuery
QueryGroup queries the "group" edge of the GroupSetting entity.
func (*GroupSetting) String ¶
func (gs *GroupSetting) String() string
String implements the fmt.Stringer.
func (*GroupSetting) ToEdge ¶
func (gs *GroupSetting) ToEdge(order *GroupSettingOrder) *GroupSettingEdge
ToEdge converts GroupSetting into GroupSettingEdge.
func (*GroupSetting) Unwrap ¶
func (gs *GroupSetting) Unwrap() *GroupSetting
Unwrap unwraps the GroupSetting 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 (*GroupSetting) Update ¶
func (gs *GroupSetting) Update() *GroupSettingUpdateOne
Update returns a builder for updating this GroupSetting. Note that you need to call GroupSetting.Unwrap() before calling this method if this GroupSetting was returned from a transaction, and the transaction was committed or rolled back.
type GroupSettingClient ¶
type GroupSettingClient struct {
// contains filtered or unexported fields
}
GroupSettingClient is a client for the GroupSetting schema.
func NewGroupSettingClient ¶
func NewGroupSettingClient(c config) *GroupSettingClient
NewGroupSettingClient returns a client for the GroupSetting from the given config.
func (*GroupSettingClient) Create ¶
func (c *GroupSettingClient) Create() *GroupSettingCreate
Create returns a builder for creating a GroupSetting entity.
func (*GroupSettingClient) CreateBulk ¶
func (c *GroupSettingClient) CreateBulk(builders ...*GroupSettingCreate) *GroupSettingCreateBulk
CreateBulk returns a builder for creating a bulk of GroupSetting entities.
func (*GroupSettingClient) Delete ¶
func (c *GroupSettingClient) Delete() *GroupSettingDelete
Delete returns a delete builder for GroupSetting.
func (*GroupSettingClient) DeleteOne ¶
func (c *GroupSettingClient) DeleteOne(gs *GroupSetting) *GroupSettingDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*GroupSettingClient) DeleteOneID ¶
func (c *GroupSettingClient) DeleteOneID(id string) *GroupSettingDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*GroupSettingClient) Get ¶
func (c *GroupSettingClient) Get(ctx context.Context, id string) (*GroupSetting, error)
Get returns a GroupSetting entity by its id.
func (*GroupSettingClient) GetX ¶
func (c *GroupSettingClient) GetX(ctx context.Context, id string) *GroupSetting
GetX is like Get, but panics if an error occurs.
func (*GroupSettingClient) Hooks ¶
func (c *GroupSettingClient) Hooks() []Hook
Hooks returns the client hooks.
func (*GroupSettingClient) Intercept ¶
func (c *GroupSettingClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `groupsetting.Intercept(f(g(h())))`.
func (*GroupSettingClient) Interceptors ¶
func (c *GroupSettingClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*GroupSettingClient) MapCreateBulk ¶
func (c *GroupSettingClient) MapCreateBulk(slice any, setFunc func(*GroupSettingCreate, int)) *GroupSettingCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*GroupSettingClient) Query ¶
func (c *GroupSettingClient) Query() *GroupSettingQuery
Query returns a query builder for GroupSetting.
func (*GroupSettingClient) QueryGroup ¶
func (c *GroupSettingClient) QueryGroup(gs *GroupSetting) *GroupQuery
QueryGroup queries the group edge of a GroupSetting.
func (*GroupSettingClient) Update ¶
func (c *GroupSettingClient) Update() *GroupSettingUpdate
Update returns an update builder for GroupSetting.
func (*GroupSettingClient) UpdateOne ¶
func (c *GroupSettingClient) UpdateOne(gs *GroupSetting) *GroupSettingUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GroupSettingClient) UpdateOneID ¶
func (c *GroupSettingClient) UpdateOneID(id string) *GroupSettingUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GroupSettingClient) Use ¶
func (c *GroupSettingClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `groupsetting.Hooks(f(g(h())))`.
type GroupSettingConnection ¶
type GroupSettingConnection struct { Edges []*GroupSettingEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
GroupSettingConnection is the connection containing edges to GroupSetting.
type GroupSettingCreate ¶
type GroupSettingCreate struct {
// contains filtered or unexported fields
}
GroupSettingCreate is the builder for creating a GroupSetting entity.
func (*GroupSettingCreate) Exec ¶
func (gsc *GroupSettingCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupSettingCreate) ExecX ¶
func (gsc *GroupSettingCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupSettingCreate) Mutation ¶
func (gsc *GroupSettingCreate) Mutation() *GroupSettingMutation
Mutation returns the GroupSettingMutation object of the builder.
func (*GroupSettingCreate) Save ¶
func (gsc *GroupSettingCreate) Save(ctx context.Context) (*GroupSetting, error)
Save creates the GroupSetting in the database.
func (*GroupSettingCreate) SaveX ¶
func (gsc *GroupSettingCreate) SaveX(ctx context.Context) *GroupSetting
SaveX calls Save and panics if Save returns an error.
func (*GroupSettingCreate) SetCreatedAt ¶
func (gsc *GroupSettingCreate) SetCreatedAt(t time.Time) *GroupSettingCreate
SetCreatedAt sets the "created_at" field.
func (*GroupSettingCreate) SetCreatedBy ¶
func (gsc *GroupSettingCreate) SetCreatedBy(s string) *GroupSettingCreate
SetCreatedBy sets the "created_by" field.
func (*GroupSettingCreate) SetDeletedAt ¶
func (gsc *GroupSettingCreate) SetDeletedAt(t time.Time) *GroupSettingCreate
SetDeletedAt sets the "deleted_at" field.
func (*GroupSettingCreate) SetDeletedBy ¶
func (gsc *GroupSettingCreate) SetDeletedBy(s string) *GroupSettingCreate
SetDeletedBy sets the "deleted_by" field.
func (*GroupSettingCreate) SetGroup ¶
func (gsc *GroupSettingCreate) SetGroup(g *Group) *GroupSettingCreate
SetGroup sets the "group" edge to the Group entity.
func (*GroupSettingCreate) SetGroupID ¶
func (gsc *GroupSettingCreate) SetGroupID(id string) *GroupSettingCreate
SetGroupID sets the "group" edge to the Group entity by ID.
func (*GroupSettingCreate) SetID ¶
func (gsc *GroupSettingCreate) SetID(s string) *GroupSettingCreate
SetID sets the "id" field.
func (*GroupSettingCreate) SetInput ¶
func (c *GroupSettingCreate) SetInput(i CreateGroupSettingInput) *GroupSettingCreate
SetInput applies the change-set in the CreateGroupSettingInput on the GroupSettingCreate builder.
func (*GroupSettingCreate) SetJoinPolicy ¶
func (gsc *GroupSettingCreate) SetJoinPolicy(gp groupsetting.JoinPolicy) *GroupSettingCreate
SetJoinPolicy sets the "join_policy" field.
func (*GroupSettingCreate) SetNillableCreatedAt ¶
func (gsc *GroupSettingCreate) SetNillableCreatedAt(t *time.Time) *GroupSettingCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableCreatedBy ¶
func (gsc *GroupSettingCreate) SetNillableCreatedBy(s *string) *GroupSettingCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableDeletedAt ¶
func (gsc *GroupSettingCreate) SetNillableDeletedAt(t *time.Time) *GroupSettingCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableDeletedBy ¶
func (gsc *GroupSettingCreate) SetNillableDeletedBy(s *string) *GroupSettingCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableGroupID ¶
func (gsc *GroupSettingCreate) SetNillableGroupID(id *string) *GroupSettingCreate
SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.
func (*GroupSettingCreate) SetNillableID ¶
func (gsc *GroupSettingCreate) SetNillableID(s *string) *GroupSettingCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableJoinPolicy ¶
func (gsc *GroupSettingCreate) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingCreate
SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableSyncToGithub ¶
func (gsc *GroupSettingCreate) SetNillableSyncToGithub(b *bool) *GroupSettingCreate
SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableSyncToSlack ¶
func (gsc *GroupSettingCreate) SetNillableSyncToSlack(b *bool) *GroupSettingCreate
SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableUpdatedAt ¶
func (gsc *GroupSettingCreate) SetNillableUpdatedAt(t *time.Time) *GroupSettingCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableUpdatedBy ¶
func (gsc *GroupSettingCreate) SetNillableUpdatedBy(s *string) *GroupSettingCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*GroupSettingCreate) SetNillableVisibility ¶
func (gsc *GroupSettingCreate) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingCreate
SetNillableVisibility sets the "visibility" field if the given value is not nil.
func (*GroupSettingCreate) SetSyncToGithub ¶
func (gsc *GroupSettingCreate) SetSyncToGithub(b bool) *GroupSettingCreate
SetSyncToGithub sets the "sync_to_github" field.
func (*GroupSettingCreate) SetSyncToSlack ¶
func (gsc *GroupSettingCreate) SetSyncToSlack(b bool) *GroupSettingCreate
SetSyncToSlack sets the "sync_to_slack" field.
func (*GroupSettingCreate) SetTags ¶
func (gsc *GroupSettingCreate) SetTags(s []string) *GroupSettingCreate
SetTags sets the "tags" field.
func (*GroupSettingCreate) SetUpdatedAt ¶
func (gsc *GroupSettingCreate) SetUpdatedAt(t time.Time) *GroupSettingCreate
SetUpdatedAt sets the "updated_at" field.
func (*GroupSettingCreate) SetUpdatedBy ¶
func (gsc *GroupSettingCreate) SetUpdatedBy(s string) *GroupSettingCreate
SetUpdatedBy sets the "updated_by" field.
func (*GroupSettingCreate) SetVisibility ¶
func (gsc *GroupSettingCreate) SetVisibility(gr groupsetting.Visibility) *GroupSettingCreate
SetVisibility sets the "visibility" field.
type GroupSettingCreateBulk ¶
type GroupSettingCreateBulk struct {
// contains filtered or unexported fields
}
GroupSettingCreateBulk is the builder for creating many GroupSetting entities in bulk.
func (*GroupSettingCreateBulk) Exec ¶
func (gscb *GroupSettingCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupSettingCreateBulk) ExecX ¶
func (gscb *GroupSettingCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupSettingCreateBulk) Save ¶
func (gscb *GroupSettingCreateBulk) Save(ctx context.Context) ([]*GroupSetting, error)
Save creates the GroupSetting entities in the database.
func (*GroupSettingCreateBulk) SaveX ¶
func (gscb *GroupSettingCreateBulk) SaveX(ctx context.Context) []*GroupSetting
SaveX is like Save, but panics if an error occurs.
type GroupSettingDelete ¶
type GroupSettingDelete struct {
// contains filtered or unexported fields
}
GroupSettingDelete is the builder for deleting a GroupSetting entity.
func (*GroupSettingDelete) Exec ¶
func (gsd *GroupSettingDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GroupSettingDelete) ExecX ¶
func (gsd *GroupSettingDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GroupSettingDelete) Where ¶
func (gsd *GroupSettingDelete) Where(ps ...predicate.GroupSetting) *GroupSettingDelete
Where appends a list predicates to the GroupSettingDelete builder.
type GroupSettingDeleteOne ¶
type GroupSettingDeleteOne struct {
// contains filtered or unexported fields
}
GroupSettingDeleteOne is the builder for deleting a single GroupSetting entity.
func (*GroupSettingDeleteOne) Exec ¶
func (gsdo *GroupSettingDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GroupSettingDeleteOne) ExecX ¶
func (gsdo *GroupSettingDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupSettingDeleteOne) Where ¶
func (gsdo *GroupSettingDeleteOne) Where(ps ...predicate.GroupSetting) *GroupSettingDeleteOne
Where appends a list predicates to the GroupSettingDelete builder.
type GroupSettingEdge ¶
type GroupSettingEdge struct { Node *GroupSetting `json:"node"` Cursor Cursor `json:"cursor"` }
GroupSettingEdge is the edge representation of GroupSetting.
type GroupSettingEdges ¶
type GroupSettingEdges struct { // Group holds the value of the group edge. Group *Group `json:"group,omitempty"` // contains filtered or unexported fields }
GroupSettingEdges holds the relations/edges for other nodes in the graph.
func (GroupSettingEdges) GroupOrErr ¶
func (e GroupSettingEdges) GroupOrErr() (*Group, error)
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type GroupSettingFilter ¶
type GroupSettingFilter struct {
// contains filtered or unexported fields
}
GroupSettingFilter provides a generic filtering capability at runtime for GroupSettingQuery.
func (*GroupSettingFilter) Where ¶
func (f *GroupSettingFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*GroupSettingFilter) WhereCreatedAt ¶
func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*GroupSettingFilter) WhereCreatedBy ¶
func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*GroupSettingFilter) WhereDeletedAt ¶
func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*GroupSettingFilter) WhereDeletedBy ¶
func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*GroupSettingFilter) WhereHasGroup ¶
func (f *GroupSettingFilter) WhereHasGroup()
WhereHasGroup applies a predicate to check if query has an edge group.
func (*GroupSettingFilter) WhereHasGroupWith ¶
func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group)
WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates).
func (*GroupSettingFilter) WhereID ¶
func (f *GroupSettingFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*GroupSettingFilter) WhereJoinPolicy ¶
func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP)
WhereJoinPolicy applies the entql string predicate on the join_policy field.
func (*GroupSettingFilter) WhereSyncToGithub ¶
func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP)
WhereSyncToGithub applies the entql bool predicate on the sync_to_github field.
func (*GroupSettingFilter) WhereSyncToSlack ¶
func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP)
WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field.
func (*GroupSettingFilter) WhereTags ¶
func (f *GroupSettingFilter) WhereTags(p entql.BytesP)
WhereTags applies the entql json.RawMessage predicate on the tags field.
func (*GroupSettingFilter) WhereUpdatedAt ¶
func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*GroupSettingFilter) WhereUpdatedBy ¶
func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
func (*GroupSettingFilter) WhereVisibility ¶
func (f *GroupSettingFilter) WhereVisibility(p entql.StringP)
WhereVisibility applies the entql string predicate on the visibility field.
type GroupSettingGroupBy ¶
type GroupSettingGroupBy struct {
// contains filtered or unexported fields
}
GroupSettingGroupBy is the group-by builder for GroupSetting entities.
func (*GroupSettingGroupBy) Aggregate ¶
func (gsgb *GroupSettingGroupBy) Aggregate(fns ...AggregateFunc) *GroupSettingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GroupSettingGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GroupSettingGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GroupSettingGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GroupSettingGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GroupSettingGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GroupSettingGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GroupSettingGroupBy) Scan ¶
func (gsgb *GroupSettingGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GroupSettingGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GroupSettingMutation ¶
type GroupSettingMutation struct {
// contains filtered or unexported fields
}
GroupSettingMutation represents an operation that mutates the GroupSetting nodes in the graph.
func (*GroupSettingMutation) AddField ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) AddedEdges ¶
func (m *GroupSettingMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GroupSettingMutation) AddedField ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) AddedFields ¶
func (m *GroupSettingMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*GroupSettingMutation) AddedIDs ¶
func (m *GroupSettingMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*GroupSettingMutation) AppendTags ¶
func (m *GroupSettingMutation) AppendTags(s []string)
AppendTags adds s to the "tags" field.
func (*GroupSettingMutation) AppendedTags ¶
func (m *GroupSettingMutation) AppendedTags() ([]string, bool)
AppendedTags returns the list of values that were appended to the "tags" field in this mutation.
func (*GroupSettingMutation) ClearCreatedBy ¶
func (m *GroupSettingMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*GroupSettingMutation) ClearDeletedAt ¶
func (m *GroupSettingMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GroupSettingMutation) ClearDeletedBy ¶
func (m *GroupSettingMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*GroupSettingMutation) ClearEdge ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) ClearField ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) ClearGroup ¶
func (m *GroupSettingMutation) ClearGroup()
ClearGroup clears the "group" edge to the Group entity.
func (*GroupSettingMutation) ClearUpdatedBy ¶
func (m *GroupSettingMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*GroupSettingMutation) ClearedEdges ¶
func (m *GroupSettingMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GroupSettingMutation) ClearedFields ¶
func (m *GroupSettingMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GroupSettingMutation) Client ¶
func (m GroupSettingMutation) 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 (*GroupSettingMutation) CreatedAt ¶
func (m *GroupSettingMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*GroupSettingMutation) CreatedBy ¶
func (m *GroupSettingMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*GroupSettingMutation) CreatedByCleared ¶
func (m *GroupSettingMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*GroupSettingMutation) DeletedAt ¶
func (m *GroupSettingMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*GroupSettingMutation) DeletedAtCleared ¶
func (m *GroupSettingMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*GroupSettingMutation) DeletedBy ¶
func (m *GroupSettingMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*GroupSettingMutation) DeletedByCleared ¶
func (m *GroupSettingMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*GroupSettingMutation) EdgeCleared ¶
func (m *GroupSettingMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*GroupSettingMutation) Field ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) FieldCleared ¶
func (m *GroupSettingMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*GroupSettingMutation) Fields ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) Filter ¶
func (m *GroupSettingMutation) Filter() *GroupSettingFilter
Filter returns an entql.Where implementation to apply filters on the GroupSettingMutation builder.
func (*GroupSettingMutation) GroupCleared ¶
func (m *GroupSettingMutation) GroupCleared() bool
GroupCleared reports if the "group" edge to the Group entity was cleared.
func (*GroupSettingMutation) GroupID ¶
func (m *GroupSettingMutation) GroupID() (id string, exists bool)
GroupID returns the "group" edge ID in the mutation.
func (*GroupSettingMutation) GroupIDs ¶
func (m *GroupSettingMutation) GroupIDs() (ids []string)
GroupIDs returns the "group" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use GroupID instead. It exists only for internal usage by the builders.
func (*GroupSettingMutation) ID ¶
func (m *GroupSettingMutation) ID() (id string, 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 (*GroupSettingMutation) IDs ¶
func (m *GroupSettingMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*GroupSettingMutation) JoinPolicy ¶
func (m *GroupSettingMutation) JoinPolicy() (r groupsetting.JoinPolicy, exists bool)
JoinPolicy returns the value of the "join_policy" field in the mutation.
func (*GroupSettingMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldCreatedBy ¶
func (m *GroupSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldDeletedBy ¶
func (m *GroupSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) 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 (*GroupSettingMutation) OldJoinPolicy ¶
func (m *GroupSettingMutation) OldJoinPolicy(ctx context.Context) (v groupsetting.JoinPolicy, err error)
OldJoinPolicy returns the old "join_policy" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldSyncToGithub ¶
func (m *GroupSettingMutation) OldSyncToGithub(ctx context.Context) (v bool, err error)
OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldSyncToSlack ¶
func (m *GroupSettingMutation) OldSyncToSlack(ctx context.Context) (v bool, err error)
OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldTags ¶
func (m *GroupSettingMutation) OldTags(ctx context.Context) (v []string, err error)
OldTags returns the old "tags" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldUpdatedBy ¶
func (m *GroupSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) OldVisibility ¶
func (m *GroupSettingMutation) OldVisibility(ctx context.Context) (v groupsetting.Visibility, err error)
OldVisibility returns the old "visibility" field's value of the GroupSetting entity. If the GroupSetting 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 (*GroupSettingMutation) Op ¶
func (m *GroupSettingMutation) Op() Op
Op returns the operation name.
func (*GroupSettingMutation) RemovedEdges ¶
func (m *GroupSettingMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GroupSettingMutation) RemovedIDs ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) ResetCreatedAt ¶
func (m *GroupSettingMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*GroupSettingMutation) ResetCreatedBy ¶
func (m *GroupSettingMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*GroupSettingMutation) ResetDeletedAt ¶
func (m *GroupSettingMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*GroupSettingMutation) ResetDeletedBy ¶
func (m *GroupSettingMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*GroupSettingMutation) ResetEdge ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) ResetField ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) ResetGroup ¶
func (m *GroupSettingMutation) ResetGroup()
ResetGroup resets all changes to the "group" edge.
func (*GroupSettingMutation) ResetJoinPolicy ¶
func (m *GroupSettingMutation) ResetJoinPolicy()
ResetJoinPolicy resets all changes to the "join_policy" field.
func (*GroupSettingMutation) ResetSyncToGithub ¶
func (m *GroupSettingMutation) ResetSyncToGithub()
ResetSyncToGithub resets all changes to the "sync_to_github" field.
func (*GroupSettingMutation) ResetSyncToSlack ¶
func (m *GroupSettingMutation) ResetSyncToSlack()
ResetSyncToSlack resets all changes to the "sync_to_slack" field.
func (*GroupSettingMutation) ResetTags ¶
func (m *GroupSettingMutation) ResetTags()
ResetTags resets all changes to the "tags" field.
func (*GroupSettingMutation) ResetUpdatedAt ¶
func (m *GroupSettingMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*GroupSettingMutation) ResetUpdatedBy ¶
func (m *GroupSettingMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*GroupSettingMutation) ResetVisibility ¶
func (m *GroupSettingMutation) ResetVisibility()
ResetVisibility resets all changes to the "visibility" field.
func (*GroupSettingMutation) SetCreatedAt ¶
func (m *GroupSettingMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*GroupSettingMutation) SetCreatedBy ¶
func (m *GroupSettingMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*GroupSettingMutation) SetDeletedAt ¶
func (m *GroupSettingMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*GroupSettingMutation) SetDeletedBy ¶
func (m *GroupSettingMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*GroupSettingMutation) SetField ¶
func (m *GroupSettingMutation) 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 (*GroupSettingMutation) SetGroupID ¶
func (m *GroupSettingMutation) SetGroupID(id string)
SetGroupID sets the "group" edge to the Group entity by id.
func (*GroupSettingMutation) SetID ¶
func (m *GroupSettingMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of GroupSetting entities.
func (*GroupSettingMutation) SetJoinPolicy ¶
func (m *GroupSettingMutation) SetJoinPolicy(gp groupsetting.JoinPolicy)
SetJoinPolicy sets the "join_policy" field.
func (*GroupSettingMutation) SetOp ¶
func (m *GroupSettingMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*GroupSettingMutation) SetSyncToGithub ¶
func (m *GroupSettingMutation) SetSyncToGithub(b bool)
SetSyncToGithub sets the "sync_to_github" field.
func (*GroupSettingMutation) SetSyncToSlack ¶
func (m *GroupSettingMutation) SetSyncToSlack(b bool)
SetSyncToSlack sets the "sync_to_slack" field.
func (*GroupSettingMutation) SetTags ¶
func (m *GroupSettingMutation) SetTags(s []string)
SetTags sets the "tags" field.
func (*GroupSettingMutation) SetUpdatedAt ¶
func (m *GroupSettingMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*GroupSettingMutation) SetUpdatedBy ¶
func (m *GroupSettingMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*GroupSettingMutation) SetVisibility ¶
func (m *GroupSettingMutation) SetVisibility(gr groupsetting.Visibility)
SetVisibility sets the "visibility" field.
func (*GroupSettingMutation) SyncToGithub ¶
func (m *GroupSettingMutation) SyncToGithub() (r bool, exists bool)
SyncToGithub returns the value of the "sync_to_github" field in the mutation.
func (*GroupSettingMutation) SyncToSlack ¶
func (m *GroupSettingMutation) SyncToSlack() (r bool, exists bool)
SyncToSlack returns the value of the "sync_to_slack" field in the mutation.
func (*GroupSettingMutation) Tags ¶
func (m *GroupSettingMutation) Tags() (r []string, exists bool)
Tags returns the value of the "tags" field in the mutation.
func (GroupSettingMutation) Tx ¶
func (m GroupSettingMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GroupSettingMutation) Type ¶
func (m *GroupSettingMutation) Type() string
Type returns the node type of this mutation (GroupSetting).
func (*GroupSettingMutation) UpdatedAt ¶
func (m *GroupSettingMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*GroupSettingMutation) UpdatedBy ¶
func (m *GroupSettingMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*GroupSettingMutation) UpdatedByCleared ¶
func (m *GroupSettingMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*GroupSettingMutation) Visibility ¶
func (m *GroupSettingMutation) Visibility() (r groupsetting.Visibility, exists bool)
Visibility returns the value of the "visibility" field in the mutation.
func (*GroupSettingMutation) Where ¶
func (m *GroupSettingMutation) Where(ps ...predicate.GroupSetting)
Where appends a list predicates to the GroupSettingMutation builder.
func (*GroupSettingMutation) WhereP ¶
func (m *GroupSettingMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the GroupSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type GroupSettingOrder ¶
type GroupSettingOrder struct { Direction OrderDirection `json:"direction"` Field *GroupSettingOrderField `json:"field"` }
GroupSettingOrder defines the ordering of GroupSetting.
type GroupSettingOrderField ¶
type GroupSettingOrderField struct { // Value extracts the ordering value from the given GroupSetting. Value func(*GroupSetting) (ent.Value, error) // contains filtered or unexported fields }
GroupSettingOrderField defines the ordering field of GroupSetting.
type GroupSettingPaginateOption ¶
type GroupSettingPaginateOption func(*groupsettingPager) error
GroupSettingPaginateOption enables pagination customization.
func WithGroupSettingFilter ¶
func WithGroupSettingFilter(filter func(*GroupSettingQuery) (*GroupSettingQuery, error)) GroupSettingPaginateOption
WithGroupSettingFilter configures pagination filter.
func WithGroupSettingOrder ¶
func WithGroupSettingOrder(order *GroupSettingOrder) GroupSettingPaginateOption
WithGroupSettingOrder configures pagination ordering.
type GroupSettingQuery ¶
type GroupSettingQuery struct {
// contains filtered or unexported fields
}
GroupSettingQuery is the builder for querying GroupSetting entities.
func (*GroupSettingQuery) Aggregate ¶
func (gsq *GroupSettingQuery) Aggregate(fns ...AggregateFunc) *GroupSettingSelect
Aggregate returns a GroupSettingSelect configured with the given aggregations.
func (*GroupSettingQuery) All ¶
func (gsq *GroupSettingQuery) All(ctx context.Context) ([]*GroupSetting, error)
All executes the query and returns a list of GroupSettings.
func (*GroupSettingQuery) AllX ¶
func (gsq *GroupSettingQuery) AllX(ctx context.Context) []*GroupSetting
AllX is like All, but panics if an error occurs.
func (*GroupSettingQuery) Clone ¶
func (gsq *GroupSettingQuery) Clone() *GroupSettingQuery
Clone returns a duplicate of the GroupSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GroupSettingQuery) CollectFields ¶
func (gs *GroupSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*GroupSettingQuery) Count ¶
func (gsq *GroupSettingQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GroupSettingQuery) CountX ¶
func (gsq *GroupSettingQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GroupSettingQuery) Exist ¶
func (gsq *GroupSettingQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GroupSettingQuery) ExistX ¶
func (gsq *GroupSettingQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GroupSettingQuery) Filter ¶
func (gsq *GroupSettingQuery) Filter() *GroupSettingFilter
Filter returns a Filter implementation to apply filters on the GroupSettingQuery builder.
func (*GroupSettingQuery) First ¶
func (gsq *GroupSettingQuery) First(ctx context.Context) (*GroupSetting, error)
First returns the first GroupSetting entity from the query. Returns a *NotFoundError when no GroupSetting was found.
func (*GroupSettingQuery) FirstID ¶
func (gsq *GroupSettingQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first GroupSetting ID from the query. Returns a *NotFoundError when no GroupSetting ID was found.
func (*GroupSettingQuery) FirstIDX ¶
func (gsq *GroupSettingQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*GroupSettingQuery) FirstX ¶
func (gsq *GroupSettingQuery) FirstX(ctx context.Context) *GroupSetting
FirstX is like First, but panics if an error occurs.
func (*GroupSettingQuery) GroupBy ¶
func (gsq *GroupSettingQuery) GroupBy(field string, fields ...string) *GroupSettingGroupBy
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.GroupSetting.Query(). GroupBy(groupsetting.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*GroupSettingQuery) IDs ¶
func (gsq *GroupSettingQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of GroupSetting IDs.
func (*GroupSettingQuery) IDsX ¶
func (gsq *GroupSettingQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*GroupSettingQuery) Limit ¶
func (gsq *GroupSettingQuery) Limit(limit int) *GroupSettingQuery
Limit the number of records to be returned by this query.
func (*GroupSettingQuery) Offset ¶
func (gsq *GroupSettingQuery) Offset(offset int) *GroupSettingQuery
Offset to start from.
func (*GroupSettingQuery) Only ¶
func (gsq *GroupSettingQuery) Only(ctx context.Context) (*GroupSetting, error)
Only returns a single GroupSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one GroupSetting entity is found. Returns a *NotFoundError when no GroupSetting entities are found.
func (*GroupSettingQuery) OnlyID ¶
func (gsq *GroupSettingQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only GroupSetting ID in the query. Returns a *NotSingularError when more than one GroupSetting ID is found. Returns a *NotFoundError when no entities are found.
func (*GroupSettingQuery) OnlyIDX ¶
func (gsq *GroupSettingQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GroupSettingQuery) OnlyX ¶
func (gsq *GroupSettingQuery) OnlyX(ctx context.Context) *GroupSetting
OnlyX is like Only, but panics if an error occurs.
func (*GroupSettingQuery) Order ¶
func (gsq *GroupSettingQuery) Order(o ...groupsetting.OrderOption) *GroupSettingQuery
Order specifies how the records should be ordered.
func (*GroupSettingQuery) Paginate ¶
func (gs *GroupSettingQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...GroupSettingPaginateOption, ) (*GroupSettingConnection, error)
Paginate executes the query and returns a relay based cursor connection to GroupSetting.
func (*GroupSettingQuery) QueryGroup ¶
func (gsq *GroupSettingQuery) QueryGroup() *GroupQuery
QueryGroup chains the current query on the "group" edge.
func (*GroupSettingQuery) Select ¶
func (gsq *GroupSettingQuery) Select(fields ...string) *GroupSettingSelect
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.GroupSetting.Query(). Select(groupsetting.FieldCreatedAt). Scan(ctx, &v)
func (*GroupSettingQuery) Unique ¶
func (gsq *GroupSettingQuery) Unique(unique bool) *GroupSettingQuery
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 (*GroupSettingQuery) Where ¶
func (gsq *GroupSettingQuery) Where(ps ...predicate.GroupSetting) *GroupSettingQuery
Where adds a new predicate for the GroupSettingQuery builder.
func (*GroupSettingQuery) WithGroup ¶
func (gsq *GroupSettingQuery) WithGroup(opts ...func(*GroupQuery)) *GroupSettingQuery
WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.
type GroupSettingSelect ¶
type GroupSettingSelect struct { *GroupSettingQuery // contains filtered or unexported fields }
GroupSettingSelect is the builder for selecting fields of GroupSetting entities.
func (*GroupSettingSelect) Aggregate ¶
func (gss *GroupSettingSelect) Aggregate(fns ...AggregateFunc) *GroupSettingSelect
Aggregate adds the given aggregation functions to the selector query.
func (*GroupSettingSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GroupSettingSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GroupSettingSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GroupSettingSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GroupSettingSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GroupSettingSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GroupSettingSelect) Scan ¶
func (gss *GroupSettingSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GroupSettingSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GroupSettingUpdate ¶
type GroupSettingUpdate struct {
// contains filtered or unexported fields
}
GroupSettingUpdate is the builder for updating GroupSetting entities.
func (*GroupSettingUpdate) AppendTags ¶
func (gsu *GroupSettingUpdate) AppendTags(s []string) *GroupSettingUpdate
AppendTags appends s to the "tags" field.
func (*GroupSettingUpdate) ClearDeletedAt ¶
func (gsu *GroupSettingUpdate) ClearDeletedAt() *GroupSettingUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GroupSettingUpdate) ClearDeletedBy ¶
func (gsu *GroupSettingUpdate) ClearDeletedBy() *GroupSettingUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*GroupSettingUpdate) ClearGroup ¶
func (gsu *GroupSettingUpdate) ClearGroup() *GroupSettingUpdate
ClearGroup clears the "group" edge to the Group entity.
func (*GroupSettingUpdate) ClearUpdatedBy ¶
func (gsu *GroupSettingUpdate) ClearUpdatedBy() *GroupSettingUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*GroupSettingUpdate) Exec ¶
func (gsu *GroupSettingUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupSettingUpdate) ExecX ¶
func (gsu *GroupSettingUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupSettingUpdate) Mutation ¶
func (gsu *GroupSettingUpdate) Mutation() *GroupSettingMutation
Mutation returns the GroupSettingMutation object of the builder.
func (*GroupSettingUpdate) Save ¶
func (gsu *GroupSettingUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*GroupSettingUpdate) SaveX ¶
func (gsu *GroupSettingUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GroupSettingUpdate) SetDeletedAt ¶
func (gsu *GroupSettingUpdate) SetDeletedAt(t time.Time) *GroupSettingUpdate
SetDeletedAt sets the "deleted_at" field.
func (*GroupSettingUpdate) SetDeletedBy ¶
func (gsu *GroupSettingUpdate) SetDeletedBy(s string) *GroupSettingUpdate
SetDeletedBy sets the "deleted_by" field.
func (*GroupSettingUpdate) SetGroup ¶
func (gsu *GroupSettingUpdate) SetGroup(g *Group) *GroupSettingUpdate
SetGroup sets the "group" edge to the Group entity.
func (*GroupSettingUpdate) SetGroupID ¶
func (gsu *GroupSettingUpdate) SetGroupID(id string) *GroupSettingUpdate
SetGroupID sets the "group" edge to the Group entity by ID.
func (*GroupSettingUpdate) SetInput ¶
func (c *GroupSettingUpdate) SetInput(i UpdateGroupSettingInput) *GroupSettingUpdate
SetInput applies the change-set in the UpdateGroupSettingInput on the GroupSettingUpdate builder.
func (*GroupSettingUpdate) SetJoinPolicy ¶
func (gsu *GroupSettingUpdate) SetJoinPolicy(gp groupsetting.JoinPolicy) *GroupSettingUpdate
SetJoinPolicy sets the "join_policy" field.
func (*GroupSettingUpdate) SetNillableDeletedAt ¶
func (gsu *GroupSettingUpdate) SetNillableDeletedAt(t *time.Time) *GroupSettingUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GroupSettingUpdate) SetNillableDeletedBy ¶
func (gsu *GroupSettingUpdate) SetNillableDeletedBy(s *string) *GroupSettingUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*GroupSettingUpdate) SetNillableGroupID ¶
func (gsu *GroupSettingUpdate) SetNillableGroupID(id *string) *GroupSettingUpdate
SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.
func (*GroupSettingUpdate) SetNillableJoinPolicy ¶
func (gsu *GroupSettingUpdate) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingUpdate
SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.
func (*GroupSettingUpdate) SetNillableSyncToGithub ¶
func (gsu *GroupSettingUpdate) SetNillableSyncToGithub(b *bool) *GroupSettingUpdate
SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.
func (*GroupSettingUpdate) SetNillableSyncToSlack ¶
func (gsu *GroupSettingUpdate) SetNillableSyncToSlack(b *bool) *GroupSettingUpdate
SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.
func (*GroupSettingUpdate) SetNillableUpdatedBy ¶
func (gsu *GroupSettingUpdate) SetNillableUpdatedBy(s *string) *GroupSettingUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*GroupSettingUpdate) SetNillableVisibility ¶
func (gsu *GroupSettingUpdate) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingUpdate
SetNillableVisibility sets the "visibility" field if the given value is not nil.
func (*GroupSettingUpdate) SetSyncToGithub ¶
func (gsu *GroupSettingUpdate) SetSyncToGithub(b bool) *GroupSettingUpdate
SetSyncToGithub sets the "sync_to_github" field.
func (*GroupSettingUpdate) SetSyncToSlack ¶
func (gsu *GroupSettingUpdate) SetSyncToSlack(b bool) *GroupSettingUpdate
SetSyncToSlack sets the "sync_to_slack" field.
func (*GroupSettingUpdate) SetTags ¶
func (gsu *GroupSettingUpdate) SetTags(s []string) *GroupSettingUpdate
SetTags sets the "tags" field.
func (*GroupSettingUpdate) SetUpdatedAt ¶
func (gsu *GroupSettingUpdate) SetUpdatedAt(t time.Time) *GroupSettingUpdate
SetUpdatedAt sets the "updated_at" field.
func (*GroupSettingUpdate) SetUpdatedBy ¶
func (gsu *GroupSettingUpdate) SetUpdatedBy(s string) *GroupSettingUpdate
SetUpdatedBy sets the "updated_by" field.
func (*GroupSettingUpdate) SetVisibility ¶
func (gsu *GroupSettingUpdate) SetVisibility(gr groupsetting.Visibility) *GroupSettingUpdate
SetVisibility sets the "visibility" field.
func (*GroupSettingUpdate) Where ¶
func (gsu *GroupSettingUpdate) Where(ps ...predicate.GroupSetting) *GroupSettingUpdate
Where appends a list predicates to the GroupSettingUpdate builder.
type GroupSettingUpdateOne ¶
type GroupSettingUpdateOne struct {
// contains filtered or unexported fields
}
GroupSettingUpdateOne is the builder for updating a single GroupSetting entity.
func (*GroupSettingUpdateOne) AppendTags ¶
func (gsuo *GroupSettingUpdateOne) AppendTags(s []string) *GroupSettingUpdateOne
AppendTags appends s to the "tags" field.
func (*GroupSettingUpdateOne) ClearDeletedAt ¶
func (gsuo *GroupSettingUpdateOne) ClearDeletedAt() *GroupSettingUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GroupSettingUpdateOne) ClearDeletedBy ¶
func (gsuo *GroupSettingUpdateOne) ClearDeletedBy() *GroupSettingUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*GroupSettingUpdateOne) ClearGroup ¶
func (gsuo *GroupSettingUpdateOne) ClearGroup() *GroupSettingUpdateOne
ClearGroup clears the "group" edge to the Group entity.
func (*GroupSettingUpdateOne) ClearUpdatedBy ¶
func (gsuo *GroupSettingUpdateOne) ClearUpdatedBy() *GroupSettingUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*GroupSettingUpdateOne) Exec ¶
func (gsuo *GroupSettingUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GroupSettingUpdateOne) ExecX ¶
func (gsuo *GroupSettingUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupSettingUpdateOne) Mutation ¶
func (gsuo *GroupSettingUpdateOne) Mutation() *GroupSettingMutation
Mutation returns the GroupSettingMutation object of the builder.
func (*GroupSettingUpdateOne) Save ¶
func (gsuo *GroupSettingUpdateOne) Save(ctx context.Context) (*GroupSetting, error)
Save executes the query and returns the updated GroupSetting entity.
func (*GroupSettingUpdateOne) SaveX ¶
func (gsuo *GroupSettingUpdateOne) SaveX(ctx context.Context) *GroupSetting
SaveX is like Save, but panics if an error occurs.
func (*GroupSettingUpdateOne) Select ¶
func (gsuo *GroupSettingUpdateOne) Select(field string, fields ...string) *GroupSettingUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*GroupSettingUpdateOne) SetDeletedAt ¶
func (gsuo *GroupSettingUpdateOne) SetDeletedAt(t time.Time) *GroupSettingUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*GroupSettingUpdateOne) SetDeletedBy ¶
func (gsuo *GroupSettingUpdateOne) SetDeletedBy(s string) *GroupSettingUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*GroupSettingUpdateOne) SetGroup ¶
func (gsuo *GroupSettingUpdateOne) SetGroup(g *Group) *GroupSettingUpdateOne
SetGroup sets the "group" edge to the Group entity.
func (*GroupSettingUpdateOne) SetGroupID ¶
func (gsuo *GroupSettingUpdateOne) SetGroupID(id string) *GroupSettingUpdateOne
SetGroupID sets the "group" edge to the Group entity by ID.
func (*GroupSettingUpdateOne) SetInput ¶
func (c *GroupSettingUpdateOne) SetInput(i UpdateGroupSettingInput) *GroupSettingUpdateOne
SetInput applies the change-set in the UpdateGroupSettingInput on the GroupSettingUpdateOne builder.
func (*GroupSettingUpdateOne) SetJoinPolicy ¶
func (gsuo *GroupSettingUpdateOne) SetJoinPolicy(gp groupsetting.JoinPolicy) *GroupSettingUpdateOne
SetJoinPolicy sets the "join_policy" field.
func (*GroupSettingUpdateOne) SetNillableDeletedAt ¶
func (gsuo *GroupSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *GroupSettingUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableDeletedBy ¶
func (gsuo *GroupSettingUpdateOne) SetNillableDeletedBy(s *string) *GroupSettingUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableGroupID ¶
func (gsuo *GroupSettingUpdateOne) SetNillableGroupID(id *string) *GroupSettingUpdateOne
SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableJoinPolicy ¶
func (gsuo *GroupSettingUpdateOne) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingUpdateOne
SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableSyncToGithub ¶
func (gsuo *GroupSettingUpdateOne) SetNillableSyncToGithub(b *bool) *GroupSettingUpdateOne
SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableSyncToSlack ¶
func (gsuo *GroupSettingUpdateOne) SetNillableSyncToSlack(b *bool) *GroupSettingUpdateOne
SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableUpdatedBy ¶
func (gsuo *GroupSettingUpdateOne) SetNillableUpdatedBy(s *string) *GroupSettingUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetNillableVisibility ¶
func (gsuo *GroupSettingUpdateOne) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingUpdateOne
SetNillableVisibility sets the "visibility" field if the given value is not nil.
func (*GroupSettingUpdateOne) SetSyncToGithub ¶
func (gsuo *GroupSettingUpdateOne) SetSyncToGithub(b bool) *GroupSettingUpdateOne
SetSyncToGithub sets the "sync_to_github" field.
func (*GroupSettingUpdateOne) SetSyncToSlack ¶
func (gsuo *GroupSettingUpdateOne) SetSyncToSlack(b bool) *GroupSettingUpdateOne
SetSyncToSlack sets the "sync_to_slack" field.
func (*GroupSettingUpdateOne) SetTags ¶
func (gsuo *GroupSettingUpdateOne) SetTags(s []string) *GroupSettingUpdateOne
SetTags sets the "tags" field.
func (*GroupSettingUpdateOne) SetUpdatedAt ¶
func (gsuo *GroupSettingUpdateOne) SetUpdatedAt(t time.Time) *GroupSettingUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*GroupSettingUpdateOne) SetUpdatedBy ¶
func (gsuo *GroupSettingUpdateOne) SetUpdatedBy(s string) *GroupSettingUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*GroupSettingUpdateOne) SetVisibility ¶
func (gsuo *GroupSettingUpdateOne) SetVisibility(gr groupsetting.Visibility) *GroupSettingUpdateOne
SetVisibility sets the "visibility" field.
func (*GroupSettingUpdateOne) Where ¶
func (gsuo *GroupSettingUpdateOne) Where(ps ...predicate.GroupSetting) *GroupSettingUpdateOne
Where appends a list predicates to the GroupSettingUpdate builder.
type GroupSettingWhereInput ¶
type GroupSettingWhereInput struct { Predicates []predicate.GroupSetting `json:"-"` Not *GroupSettingWhereInput `json:"not,omitempty"` Or []*GroupSettingWhereInput `json:"or,omitempty"` And []*GroupSettingWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // "visibility" field predicates. Visibility *groupsetting.Visibility `json:"visibility,omitempty"` VisibilityNEQ *groupsetting.Visibility `json:"visibilityNEQ,omitempty"` VisibilityIn []groupsetting.Visibility `json:"visibilityIn,omitempty"` VisibilityNotIn []groupsetting.Visibility `json:"visibilityNotIn,omitempty"` // "join_policy" field predicates. JoinPolicy *groupsetting.JoinPolicy `json:"joinPolicy,omitempty"` JoinPolicyNEQ *groupsetting.JoinPolicy `json:"joinPolicyNEQ,omitempty"` JoinPolicyIn []groupsetting.JoinPolicy `json:"joinPolicyIn,omitempty"` JoinPolicyNotIn []groupsetting.JoinPolicy `json:"joinPolicyNotIn,omitempty"` // "sync_to_slack" field predicates. SyncToSlack *bool `json:"syncToSlack,omitempty"` SyncToSlackNEQ *bool `json:"syncToSlackNEQ,omitempty"` // "sync_to_github" field predicates. SyncToGithub *bool `json:"syncToGithub,omitempty"` SyncToGithubNEQ *bool `json:"syncToGithubNEQ,omitempty"` // "group" edge predicates. HasGroup *bool `json:"hasGroup,omitempty"` HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` }
GroupSettingWhereInput represents a where input for filtering GroupSetting queries.
func (*GroupSettingWhereInput) AddPredicates ¶
func (i *GroupSettingWhereInput) AddPredicates(predicates ...predicate.GroupSetting)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*GroupSettingWhereInput) Filter ¶
func (i *GroupSettingWhereInput) Filter(q *GroupSettingQuery) (*GroupSettingQuery, error)
Filter applies the GroupSettingWhereInput filter on the GroupSettingQuery builder.
func (*GroupSettingWhereInput) P ¶
func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error)
P returns a predicate for filtering groupsettings. An error is returned if the input is empty or invalid.
type GroupSettings ¶
type GroupSettings []*GroupSetting
GroupSettings is a parsable slice of GroupSetting.
type GroupUpdate ¶
type GroupUpdate struct {
// contains filtered or unexported fields
}
GroupUpdate is the builder for updating Group entities.
func (*GroupUpdate) AddUserIDs ¶
func (gu *GroupUpdate) AddUserIDs(ids ...string) *GroupUpdate
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*GroupUpdate) AddUsers ¶
func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate
AddUsers adds the "users" edges to the User entity.
func (*GroupUpdate) ClearDeletedAt ¶
func (gu *GroupUpdate) ClearDeletedAt() *GroupUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GroupUpdate) ClearDeletedBy ¶
func (gu *GroupUpdate) ClearDeletedBy() *GroupUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*GroupUpdate) ClearDescription ¶
func (gu *GroupUpdate) ClearDescription() *GroupUpdate
ClearDescription clears the value of the "description" field.
func (*GroupUpdate) ClearGravatarLogoURL ¶
func (gu *GroupUpdate) ClearGravatarLogoURL() *GroupUpdate
ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field.
func (*GroupUpdate) ClearLogoURL ¶
func (gu *GroupUpdate) ClearLogoURL() *GroupUpdate
ClearLogoURL clears the value of the "logo_url" field.
func (*GroupUpdate) ClearOwner ¶
func (gu *GroupUpdate) ClearOwner() *GroupUpdate
ClearOwner clears the "owner" edge to the Organization entity.
func (*GroupUpdate) ClearSetting ¶
func (gu *GroupUpdate) ClearSetting() *GroupUpdate
ClearSetting clears the "setting" edge to the GroupSetting entity.
func (*GroupUpdate) ClearUpdatedBy ¶
func (gu *GroupUpdate) ClearUpdatedBy() *GroupUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*GroupUpdate) ClearUsers ¶
func (gu *GroupUpdate) ClearUsers() *GroupUpdate
ClearUsers clears all "users" edges to the User entity.
func (*GroupUpdate) Exec ¶
func (gu *GroupUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupUpdate) ExecX ¶
func (gu *GroupUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupUpdate) Mutation ¶
func (gu *GroupUpdate) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupUpdate) RemoveUserIDs ¶
func (gu *GroupUpdate) RemoveUserIDs(ids ...string) *GroupUpdate
RemoveUserIDs removes the "users" edge to User entities by IDs.
func (*GroupUpdate) RemoveUsers ¶
func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate
RemoveUsers removes "users" edges to User entities.
func (*GroupUpdate) Save ¶
func (gu *GroupUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*GroupUpdate) SaveX ¶
func (gu *GroupUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GroupUpdate) SetDeletedAt ¶
func (gu *GroupUpdate) SetDeletedAt(t time.Time) *GroupUpdate
SetDeletedAt sets the "deleted_at" field.
func (*GroupUpdate) SetDeletedBy ¶
func (gu *GroupUpdate) SetDeletedBy(s string) *GroupUpdate
SetDeletedBy sets the "deleted_by" field.
func (*GroupUpdate) SetDescription ¶
func (gu *GroupUpdate) SetDescription(s string) *GroupUpdate
SetDescription sets the "description" field.
func (*GroupUpdate) SetDisplayName ¶
func (gu *GroupUpdate) SetDisplayName(s string) *GroupUpdate
SetDisplayName sets the "display_name" field.
func (*GroupUpdate) SetGravatarLogoURL ¶
func (gu *GroupUpdate) SetGravatarLogoURL(s string) *GroupUpdate
SetGravatarLogoURL sets the "gravatar_logo_url" field.
func (*GroupUpdate) SetInput ¶
func (c *GroupUpdate) SetInput(i UpdateGroupInput) *GroupUpdate
SetInput applies the change-set in the UpdateGroupInput on the GroupUpdate builder.
func (*GroupUpdate) SetLogoURL ¶
func (gu *GroupUpdate) SetLogoURL(s string) *GroupUpdate
SetLogoURL sets the "logo_url" field.
func (*GroupUpdate) SetName ¶
func (gu *GroupUpdate) SetName(s string) *GroupUpdate
SetName sets the "name" field.
func (*GroupUpdate) SetNillableDeletedAt ¶
func (gu *GroupUpdate) SetNillableDeletedAt(t *time.Time) *GroupUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GroupUpdate) SetNillableDeletedBy ¶
func (gu *GroupUpdate) SetNillableDeletedBy(s *string) *GroupUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*GroupUpdate) SetNillableDescription ¶
func (gu *GroupUpdate) SetNillableDescription(s *string) *GroupUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*GroupUpdate) SetNillableDisplayName ¶
func (gu *GroupUpdate) SetNillableDisplayName(s *string) *GroupUpdate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*GroupUpdate) SetNillableGravatarLogoURL ¶
func (gu *GroupUpdate) SetNillableGravatarLogoURL(s *string) *GroupUpdate
SetNillableGravatarLogoURL sets the "gravatar_logo_url" field if the given value is not nil.
func (*GroupUpdate) SetNillableLogoURL ¶
func (gu *GroupUpdate) SetNillableLogoURL(s *string) *GroupUpdate
SetNillableLogoURL sets the "logo_url" field if the given value is not nil.
func (*GroupUpdate) SetNillableName ¶
func (gu *GroupUpdate) SetNillableName(s *string) *GroupUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*GroupUpdate) SetNillableUpdatedBy ¶
func (gu *GroupUpdate) SetNillableUpdatedBy(s *string) *GroupUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*GroupUpdate) SetOwner ¶
func (gu *GroupUpdate) SetOwner(o *Organization) *GroupUpdate
SetOwner sets the "owner" edge to the Organization entity.
func (*GroupUpdate) SetOwnerID ¶
func (gu *GroupUpdate) SetOwnerID(id string) *GroupUpdate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*GroupUpdate) SetSetting ¶
func (gu *GroupUpdate) SetSetting(g *GroupSetting) *GroupUpdate
SetSetting sets the "setting" edge to the GroupSetting entity.
func (*GroupUpdate) SetSettingID ¶
func (gu *GroupUpdate) SetSettingID(id string) *GroupUpdate
SetSettingID sets the "setting" edge to the GroupSetting entity by ID.
func (*GroupUpdate) SetUpdatedAt ¶
func (gu *GroupUpdate) SetUpdatedAt(t time.Time) *GroupUpdate
SetUpdatedAt sets the "updated_at" field.
func (*GroupUpdate) SetUpdatedBy ¶
func (gu *GroupUpdate) SetUpdatedBy(s string) *GroupUpdate
SetUpdatedBy sets the "updated_by" field.
func (*GroupUpdate) Where ¶
func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate
Where appends a list predicates to the GroupUpdate builder.
type GroupUpdateOne ¶
type GroupUpdateOne struct {
// contains filtered or unexported fields
}
GroupUpdateOne is the builder for updating a single Group entity.
func (*GroupUpdateOne) AddUserIDs ¶
func (guo *GroupUpdateOne) AddUserIDs(ids ...string) *GroupUpdateOne
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*GroupUpdateOne) AddUsers ¶
func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne
AddUsers adds the "users" edges to the User entity.
func (*GroupUpdateOne) ClearDeletedAt ¶
func (guo *GroupUpdateOne) ClearDeletedAt() *GroupUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GroupUpdateOne) ClearDeletedBy ¶
func (guo *GroupUpdateOne) ClearDeletedBy() *GroupUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*GroupUpdateOne) ClearDescription ¶
func (guo *GroupUpdateOne) ClearDescription() *GroupUpdateOne
ClearDescription clears the value of the "description" field.
func (*GroupUpdateOne) ClearGravatarLogoURL ¶
func (guo *GroupUpdateOne) ClearGravatarLogoURL() *GroupUpdateOne
ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field.
func (*GroupUpdateOne) ClearLogoURL ¶
func (guo *GroupUpdateOne) ClearLogoURL() *GroupUpdateOne
ClearLogoURL clears the value of the "logo_url" field.
func (*GroupUpdateOne) ClearOwner ¶
func (guo *GroupUpdateOne) ClearOwner() *GroupUpdateOne
ClearOwner clears the "owner" edge to the Organization entity.
func (*GroupUpdateOne) ClearSetting ¶
func (guo *GroupUpdateOne) ClearSetting() *GroupUpdateOne
ClearSetting clears the "setting" edge to the GroupSetting entity.
func (*GroupUpdateOne) ClearUpdatedBy ¶
func (guo *GroupUpdateOne) ClearUpdatedBy() *GroupUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*GroupUpdateOne) ClearUsers ¶
func (guo *GroupUpdateOne) ClearUsers() *GroupUpdateOne
ClearUsers clears all "users" edges to the User entity.
func (*GroupUpdateOne) Exec ¶
func (guo *GroupUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GroupUpdateOne) ExecX ¶
func (guo *GroupUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupUpdateOne) Mutation ¶
func (guo *GroupUpdateOne) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupUpdateOne) RemoveUserIDs ¶
func (guo *GroupUpdateOne) RemoveUserIDs(ids ...string) *GroupUpdateOne
RemoveUserIDs removes the "users" edge to User entities by IDs.
func (*GroupUpdateOne) RemoveUsers ¶
func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne
RemoveUsers removes "users" edges to User entities.
func (*GroupUpdateOne) Save ¶
func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)
Save executes the query and returns the updated Group entity.
func (*GroupUpdateOne) SaveX ¶
func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group
SaveX is like Save, but panics if an error occurs.
func (*GroupUpdateOne) Select ¶
func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*GroupUpdateOne) SetDeletedAt ¶
func (guo *GroupUpdateOne) SetDeletedAt(t time.Time) *GroupUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*GroupUpdateOne) SetDeletedBy ¶
func (guo *GroupUpdateOne) SetDeletedBy(s string) *GroupUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*GroupUpdateOne) SetDescription ¶
func (guo *GroupUpdateOne) SetDescription(s string) *GroupUpdateOne
SetDescription sets the "description" field.
func (*GroupUpdateOne) SetDisplayName ¶
func (guo *GroupUpdateOne) SetDisplayName(s string) *GroupUpdateOne
SetDisplayName sets the "display_name" field.
func (*GroupUpdateOne) SetGravatarLogoURL ¶
func (guo *GroupUpdateOne) SetGravatarLogoURL(s string) *GroupUpdateOne
SetGravatarLogoURL sets the "gravatar_logo_url" field.
func (*GroupUpdateOne) SetInput ¶
func (c *GroupUpdateOne) SetInput(i UpdateGroupInput) *GroupUpdateOne
SetInput applies the change-set in the UpdateGroupInput on the GroupUpdateOne builder.
func (*GroupUpdateOne) SetLogoURL ¶
func (guo *GroupUpdateOne) SetLogoURL(s string) *GroupUpdateOne
SetLogoURL sets the "logo_url" field.
func (*GroupUpdateOne) SetName ¶
func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne
SetName sets the "name" field.
func (*GroupUpdateOne) SetNillableDeletedAt ¶
func (guo *GroupUpdateOne) SetNillableDeletedAt(t *time.Time) *GroupUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableDeletedBy ¶
func (guo *GroupUpdateOne) SetNillableDeletedBy(s *string) *GroupUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableDescription ¶
func (guo *GroupUpdateOne) SetNillableDescription(s *string) *GroupUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableDisplayName ¶
func (guo *GroupUpdateOne) SetNillableDisplayName(s *string) *GroupUpdateOne
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableGravatarLogoURL ¶
func (guo *GroupUpdateOne) SetNillableGravatarLogoURL(s *string) *GroupUpdateOne
SetNillableGravatarLogoURL sets the "gravatar_logo_url" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableLogoURL ¶
func (guo *GroupUpdateOne) SetNillableLogoURL(s *string) *GroupUpdateOne
SetNillableLogoURL sets the "logo_url" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableName ¶
func (guo *GroupUpdateOne) SetNillableName(s *string) *GroupUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableUpdatedBy ¶
func (guo *GroupUpdateOne) SetNillableUpdatedBy(s *string) *GroupUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*GroupUpdateOne) SetOwner ¶
func (guo *GroupUpdateOne) SetOwner(o *Organization) *GroupUpdateOne
SetOwner sets the "owner" edge to the Organization entity.
func (*GroupUpdateOne) SetOwnerID ¶
func (guo *GroupUpdateOne) SetOwnerID(id string) *GroupUpdateOne
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*GroupUpdateOne) SetSetting ¶
func (guo *GroupUpdateOne) SetSetting(g *GroupSetting) *GroupUpdateOne
SetSetting sets the "setting" edge to the GroupSetting entity.
func (*GroupUpdateOne) SetSettingID ¶
func (guo *GroupUpdateOne) SetSettingID(id string) *GroupUpdateOne
SetSettingID sets the "setting" edge to the GroupSetting entity by ID.
func (*GroupUpdateOne) SetUpdatedAt ¶
func (guo *GroupUpdateOne) SetUpdatedAt(t time.Time) *GroupUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*GroupUpdateOne) SetUpdatedBy ¶
func (guo *GroupUpdateOne) SetUpdatedBy(s string) *GroupUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*GroupUpdateOne) Where ¶
func (guo *GroupUpdateOne) Where(ps ...predicate.Group) *GroupUpdateOne
Where appends a list predicates to the GroupUpdate builder.
type GroupWhereInput ¶
type GroupWhereInput struct { Predicates []predicate.Group `json:"-"` Not *GroupWhereInput `json:"not,omitempty"` Or []*GroupWhereInput `json:"or,omitempty"` And []*GroupWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` // "display_name" field predicates. DisplayName *string `json:"displayName,omitempty"` DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` DisplayNameIn []string `json:"displayNameIn,omitempty"` DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` DisplayNameGT *string `json:"displayNameGT,omitempty"` DisplayNameGTE *string `json:"displayNameGTE,omitempty"` DisplayNameLT *string `json:"displayNameLT,omitempty"` DisplayNameLTE *string `json:"displayNameLTE,omitempty"` DisplayNameContains *string `json:"displayNameContains,omitempty"` DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` // "setting" edge predicates. HasSetting *bool `json:"hasSetting,omitempty"` HasSettingWith []*GroupSettingWhereInput `json:"hasSettingWith,omitempty"` // "users" edge predicates. HasUsers *bool `json:"hasUsers,omitempty"` HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` }
GroupWhereInput represents a where input for filtering Group queries.
func (*GroupWhereInput) AddPredicates ¶
func (i *GroupWhereInput) AddPredicates(predicates ...predicate.Group)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*GroupWhereInput) Filter ¶
func (i *GroupWhereInput) Filter(q *GroupQuery) (*GroupQuery, error)
Filter applies the GroupWhereInput filter on the GroupQuery builder.
type Integration ¶
type Integration struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // the name of the integration - must be unique within the organization Name string `json:"name,omitempty"` // a description of the integration Description string `json:"description,omitempty"` // Kind holds the value of the "kind" field. Kind string `json:"kind,omitempty"` // SecretName holds the value of the "secret_name" field. SecretName string `json:"secret_name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the IntegrationQuery when eager-loading is set. Edges IntegrationEdges `json:"edges"` // contains filtered or unexported fields }
Integration is the model entity for the Integration schema.
func (*Integration) IsNode ¶
func (n *Integration) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Integration) Owner ¶
func (i *Integration) Owner(ctx context.Context) (*Organization, error)
func (*Integration) QueryOwner ¶
func (i *Integration) QueryOwner() *OrganizationQuery
QueryOwner queries the "owner" edge of the Integration entity.
func (*Integration) String ¶
func (i *Integration) String() string
String implements the fmt.Stringer.
func (*Integration) ToEdge ¶
func (i *Integration) ToEdge(order *IntegrationOrder) *IntegrationEdge
ToEdge converts Integration into IntegrationEdge.
func (*Integration) Unwrap ¶
func (i *Integration) Unwrap() *Integration
Unwrap unwraps the Integration 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 (*Integration) Update ¶
func (i *Integration) Update() *IntegrationUpdateOne
Update returns a builder for updating this Integration. Note that you need to call Integration.Unwrap() before calling this method if this Integration was returned from a transaction, and the transaction was committed or rolled back.
type IntegrationClient ¶
type IntegrationClient struct {
// contains filtered or unexported fields
}
IntegrationClient is a client for the Integration schema.
func NewIntegrationClient ¶
func NewIntegrationClient(c config) *IntegrationClient
NewIntegrationClient returns a client for the Integration from the given config.
func (*IntegrationClient) Create ¶
func (c *IntegrationClient) Create() *IntegrationCreate
Create returns a builder for creating a Integration entity.
func (*IntegrationClient) CreateBulk ¶
func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk
CreateBulk returns a builder for creating a bulk of Integration entities.
func (*IntegrationClient) Delete ¶
func (c *IntegrationClient) Delete() *IntegrationDelete
Delete returns a delete builder for Integration.
func (*IntegrationClient) DeleteOne ¶
func (c *IntegrationClient) DeleteOne(i *Integration) *IntegrationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*IntegrationClient) DeleteOneID ¶
func (c *IntegrationClient) DeleteOneID(id string) *IntegrationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*IntegrationClient) Get ¶
func (c *IntegrationClient) Get(ctx context.Context, id string) (*Integration, error)
Get returns a Integration entity by its id.
func (*IntegrationClient) GetX ¶
func (c *IntegrationClient) GetX(ctx context.Context, id string) *Integration
GetX is like Get, but panics if an error occurs.
func (*IntegrationClient) Hooks ¶
func (c *IntegrationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*IntegrationClient) Intercept ¶
func (c *IntegrationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `integration.Intercept(f(g(h())))`.
func (*IntegrationClient) Interceptors ¶
func (c *IntegrationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*IntegrationClient) MapCreateBulk ¶
func (c *IntegrationClient) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*IntegrationClient) Query ¶
func (c *IntegrationClient) Query() *IntegrationQuery
Query returns a query builder for Integration.
func (*IntegrationClient) QueryOwner ¶
func (c *IntegrationClient) QueryOwner(i *Integration) *OrganizationQuery
QueryOwner queries the owner edge of a Integration.
func (*IntegrationClient) Update ¶
func (c *IntegrationClient) Update() *IntegrationUpdate
Update returns an update builder for Integration.
func (*IntegrationClient) UpdateOne ¶
func (c *IntegrationClient) UpdateOne(i *Integration) *IntegrationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*IntegrationClient) UpdateOneID ¶
func (c *IntegrationClient) UpdateOneID(id string) *IntegrationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*IntegrationClient) Use ¶
func (c *IntegrationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `integration.Hooks(f(g(h())))`.
type IntegrationConnection ¶
type IntegrationConnection struct { Edges []*IntegrationEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
IntegrationConnection is the connection containing edges to Integration.
type IntegrationCreate ¶
type IntegrationCreate struct {
// contains filtered or unexported fields
}
IntegrationCreate is the builder for creating a Integration entity.
func (*IntegrationCreate) Exec ¶
func (ic *IntegrationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationCreate) ExecX ¶
func (ic *IntegrationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationCreate) Mutation ¶
func (ic *IntegrationCreate) Mutation() *IntegrationMutation
Mutation returns the IntegrationMutation object of the builder.
func (*IntegrationCreate) Save ¶
func (ic *IntegrationCreate) Save(ctx context.Context) (*Integration, error)
Save creates the Integration in the database.
func (*IntegrationCreate) SaveX ¶
func (ic *IntegrationCreate) SaveX(ctx context.Context) *Integration
SaveX calls Save and panics if Save returns an error.
func (*IntegrationCreate) SetCreatedAt ¶
func (ic *IntegrationCreate) SetCreatedAt(t time.Time) *IntegrationCreate
SetCreatedAt sets the "created_at" field.
func (*IntegrationCreate) SetCreatedBy ¶
func (ic *IntegrationCreate) SetCreatedBy(s string) *IntegrationCreate
SetCreatedBy sets the "created_by" field.
func (*IntegrationCreate) SetDeletedAt ¶
func (ic *IntegrationCreate) SetDeletedAt(t time.Time) *IntegrationCreate
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationCreate) SetDeletedBy ¶
func (ic *IntegrationCreate) SetDeletedBy(s string) *IntegrationCreate
SetDeletedBy sets the "deleted_by" field.
func (*IntegrationCreate) SetDescription ¶
func (ic *IntegrationCreate) SetDescription(s string) *IntegrationCreate
SetDescription sets the "description" field.
func (*IntegrationCreate) SetID ¶
func (ic *IntegrationCreate) SetID(s string) *IntegrationCreate
SetID sets the "id" field.
func (*IntegrationCreate) SetInput ¶
func (c *IntegrationCreate) SetInput(i CreateIntegrationInput) *IntegrationCreate
SetInput applies the change-set in the CreateIntegrationInput on the IntegrationCreate builder.
func (*IntegrationCreate) SetKind ¶
func (ic *IntegrationCreate) SetKind(s string) *IntegrationCreate
SetKind sets the "kind" field.
func (*IntegrationCreate) SetName ¶
func (ic *IntegrationCreate) SetName(s string) *IntegrationCreate
SetName sets the "name" field.
func (*IntegrationCreate) SetNillableCreatedAt ¶
func (ic *IntegrationCreate) SetNillableCreatedAt(t *time.Time) *IntegrationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*IntegrationCreate) SetNillableCreatedBy ¶
func (ic *IntegrationCreate) SetNillableCreatedBy(s *string) *IntegrationCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*IntegrationCreate) SetNillableDeletedAt ¶
func (ic *IntegrationCreate) SetNillableDeletedAt(t *time.Time) *IntegrationCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationCreate) SetNillableDeletedBy ¶
func (ic *IntegrationCreate) SetNillableDeletedBy(s *string) *IntegrationCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*IntegrationCreate) SetNillableDescription ¶
func (ic *IntegrationCreate) SetNillableDescription(s *string) *IntegrationCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*IntegrationCreate) SetNillableID ¶
func (ic *IntegrationCreate) SetNillableID(s *string) *IntegrationCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*IntegrationCreate) SetNillableKind ¶
func (ic *IntegrationCreate) SetNillableKind(s *string) *IntegrationCreate
SetNillableKind sets the "kind" field if the given value is not nil.
func (*IntegrationCreate) SetNillableOwnerID ¶
func (ic *IntegrationCreate) SetNillableOwnerID(id *string) *IntegrationCreate
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*IntegrationCreate) SetNillableUpdatedAt ¶
func (ic *IntegrationCreate) SetNillableUpdatedAt(t *time.Time) *IntegrationCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*IntegrationCreate) SetNillableUpdatedBy ¶
func (ic *IntegrationCreate) SetNillableUpdatedBy(s *string) *IntegrationCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*IntegrationCreate) SetOwner ¶
func (ic *IntegrationCreate) SetOwner(o *Organization) *IntegrationCreate
SetOwner sets the "owner" edge to the Organization entity.
func (*IntegrationCreate) SetOwnerID ¶
func (ic *IntegrationCreate) SetOwnerID(id string) *IntegrationCreate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*IntegrationCreate) SetSecretName ¶
func (ic *IntegrationCreate) SetSecretName(s string) *IntegrationCreate
SetSecretName sets the "secret_name" field.
func (*IntegrationCreate) SetUpdatedAt ¶
func (ic *IntegrationCreate) SetUpdatedAt(t time.Time) *IntegrationCreate
SetUpdatedAt sets the "updated_at" field.
func (*IntegrationCreate) SetUpdatedBy ¶
func (ic *IntegrationCreate) SetUpdatedBy(s string) *IntegrationCreate
SetUpdatedBy sets the "updated_by" field.
type IntegrationCreateBulk ¶
type IntegrationCreateBulk struct {
// contains filtered or unexported fields
}
IntegrationCreateBulk is the builder for creating many Integration entities in bulk.
func (*IntegrationCreateBulk) Exec ¶
func (icb *IntegrationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationCreateBulk) ExecX ¶
func (icb *IntegrationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationCreateBulk) Save ¶
func (icb *IntegrationCreateBulk) Save(ctx context.Context) ([]*Integration, error)
Save creates the Integration entities in the database.
func (*IntegrationCreateBulk) SaveX ¶
func (icb *IntegrationCreateBulk) SaveX(ctx context.Context) []*Integration
SaveX is like Save, but panics if an error occurs.
type IntegrationDelete ¶
type IntegrationDelete struct {
// contains filtered or unexported fields
}
IntegrationDelete is the builder for deleting a Integration entity.
func (*IntegrationDelete) Exec ¶
func (id *IntegrationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*IntegrationDelete) ExecX ¶
func (id *IntegrationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationDelete) Where ¶
func (id *IntegrationDelete) Where(ps ...predicate.Integration) *IntegrationDelete
Where appends a list predicates to the IntegrationDelete builder.
type IntegrationDeleteOne ¶
type IntegrationDeleteOne struct {
// contains filtered or unexported fields
}
IntegrationDeleteOne is the builder for deleting a single Integration entity.
func (*IntegrationDeleteOne) Exec ¶
func (ido *IntegrationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*IntegrationDeleteOne) ExecX ¶
func (ido *IntegrationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationDeleteOne) Where ¶
func (ido *IntegrationDeleteOne) Where(ps ...predicate.Integration) *IntegrationDeleteOne
Where appends a list predicates to the IntegrationDelete builder.
type IntegrationEdge ¶
type IntegrationEdge struct { Node *Integration `json:"node"` Cursor Cursor `json:"cursor"` }
IntegrationEdge is the edge representation of Integration.
type IntegrationEdges ¶
type IntegrationEdges struct { // Owner holds the value of the owner edge. Owner *Organization `json:"owner,omitempty"` // contains filtered or unexported fields }
IntegrationEdges holds the relations/edges for other nodes in the graph.
func (IntegrationEdges) OwnerOrErr ¶
func (e IntegrationEdges) OwnerOrErr() (*Organization, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type IntegrationFilter ¶
type IntegrationFilter struct {
// contains filtered or unexported fields
}
IntegrationFilter provides a generic filtering capability at runtime for IntegrationQuery.
func (*IntegrationFilter) Where ¶
func (f *IntegrationFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*IntegrationFilter) WhereCreatedAt ¶
func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*IntegrationFilter) WhereCreatedBy ¶
func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*IntegrationFilter) WhereDeletedAt ¶
func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*IntegrationFilter) WhereDeletedBy ¶
func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*IntegrationFilter) WhereDescription ¶
func (f *IntegrationFilter) WhereDescription(p entql.StringP)
WhereDescription applies the entql string predicate on the description field.
func (*IntegrationFilter) WhereHasOwner ¶
func (f *IntegrationFilter) WhereHasOwner()
WhereHasOwner applies a predicate to check if query has an edge owner.
func (*IntegrationFilter) WhereHasOwnerWith ¶
func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization)
WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).
func (*IntegrationFilter) WhereID ¶
func (f *IntegrationFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*IntegrationFilter) WhereKind ¶
func (f *IntegrationFilter) WhereKind(p entql.StringP)
WhereKind applies the entql string predicate on the kind field.
func (*IntegrationFilter) WhereName ¶
func (f *IntegrationFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*IntegrationFilter) WhereSecretName ¶
func (f *IntegrationFilter) WhereSecretName(p entql.StringP)
WhereSecretName applies the entql string predicate on the secret_name field.
func (*IntegrationFilter) WhereUpdatedAt ¶
func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*IntegrationFilter) WhereUpdatedBy ¶
func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type IntegrationGroupBy ¶
type IntegrationGroupBy struct {
// contains filtered or unexported fields
}
IntegrationGroupBy is the group-by builder for Integration entities.
func (*IntegrationGroupBy) Aggregate ¶
func (igb *IntegrationGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*IntegrationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IntegrationGroupBy) Scan ¶
func (igb *IntegrationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IntegrationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type IntegrationMutation ¶
type IntegrationMutation struct {
// contains filtered or unexported fields
}
IntegrationMutation represents an operation that mutates the Integration nodes in the graph.
func (*IntegrationMutation) AddField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) AddedEdges ¶
func (m *IntegrationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*IntegrationMutation) AddedField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) AddedFields ¶
func (m *IntegrationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*IntegrationMutation) AddedIDs ¶
func (m *IntegrationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*IntegrationMutation) ClearCreatedBy ¶
func (m *IntegrationMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*IntegrationMutation) ClearDeletedAt ¶
func (m *IntegrationMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationMutation) ClearDeletedBy ¶
func (m *IntegrationMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*IntegrationMutation) ClearDescription ¶
func (m *IntegrationMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*IntegrationMutation) ClearEdge ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ClearField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ClearKind ¶
func (m *IntegrationMutation) ClearKind()
ClearKind clears the value of the "kind" field.
func (*IntegrationMutation) ClearOwner ¶
func (m *IntegrationMutation) ClearOwner()
ClearOwner clears the "owner" edge to the Organization entity.
func (*IntegrationMutation) ClearUpdatedBy ¶
func (m *IntegrationMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*IntegrationMutation) ClearedEdges ¶
func (m *IntegrationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*IntegrationMutation) ClearedFields ¶
func (m *IntegrationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (IntegrationMutation) Client ¶
func (m IntegrationMutation) 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 (*IntegrationMutation) CreatedAt ¶
func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*IntegrationMutation) CreatedBy ¶
func (m *IntegrationMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*IntegrationMutation) CreatedByCleared ¶
func (m *IntegrationMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*IntegrationMutation) DeletedAt ¶
func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*IntegrationMutation) DeletedAtCleared ¶
func (m *IntegrationMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*IntegrationMutation) DeletedBy ¶
func (m *IntegrationMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*IntegrationMutation) DeletedByCleared ¶
func (m *IntegrationMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*IntegrationMutation) Description ¶
func (m *IntegrationMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*IntegrationMutation) DescriptionCleared ¶
func (m *IntegrationMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*IntegrationMutation) EdgeCleared ¶
func (m *IntegrationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*IntegrationMutation) Field ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) FieldCleared ¶
func (m *IntegrationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*IntegrationMutation) Fields ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) Filter ¶
func (m *IntegrationMutation) Filter() *IntegrationFilter
Filter returns an entql.Where implementation to apply filters on the IntegrationMutation builder.
func (*IntegrationMutation) ID ¶
func (m *IntegrationMutation) ID() (id string, 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 (*IntegrationMutation) IDs ¶
func (m *IntegrationMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*IntegrationMutation) Kind ¶
func (m *IntegrationMutation) Kind() (r string, exists bool)
Kind returns the value of the "kind" field in the mutation.
func (*IntegrationMutation) KindCleared ¶
func (m *IntegrationMutation) KindCleared() bool
KindCleared returns if the "kind" field was cleared in this mutation.
func (*IntegrationMutation) Name ¶
func (m *IntegrationMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*IntegrationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldCreatedBy ¶
func (m *IntegrationMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldDeletedBy ¶
func (m *IntegrationMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldDescription ¶
func (m *IntegrationMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) 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 (*IntegrationMutation) OldKind ¶
func (m *IntegrationMutation) OldKind(ctx context.Context) (v string, err error)
OldKind returns the old "kind" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldName ¶
func (m *IntegrationMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldSecretName ¶
func (m *IntegrationMutation) OldSecretName(ctx context.Context) (v string, err error)
OldSecretName returns the old "secret_name" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldUpdatedBy ¶
func (m *IntegrationMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) Op ¶
func (m *IntegrationMutation) Op() Op
Op returns the operation name.
func (*IntegrationMutation) OwnerCleared ¶
func (m *IntegrationMutation) OwnerCleared() bool
OwnerCleared reports if the "owner" edge to the Organization entity was cleared.
func (*IntegrationMutation) OwnerID ¶
func (m *IntegrationMutation) OwnerID() (id string, exists bool)
OwnerID returns the "owner" edge ID in the mutation.
func (*IntegrationMutation) OwnerIDs ¶
func (m *IntegrationMutation) OwnerIDs() (ids []string)
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.
func (*IntegrationMutation) RemovedEdges ¶
func (m *IntegrationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*IntegrationMutation) RemovedIDs ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetCreatedAt ¶
func (m *IntegrationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*IntegrationMutation) ResetCreatedBy ¶
func (m *IntegrationMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*IntegrationMutation) ResetDeletedAt ¶
func (m *IntegrationMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*IntegrationMutation) ResetDeletedBy ¶
func (m *IntegrationMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*IntegrationMutation) ResetDescription ¶
func (m *IntegrationMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*IntegrationMutation) ResetEdge ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetKind ¶
func (m *IntegrationMutation) ResetKind()
ResetKind resets all changes to the "kind" field.
func (*IntegrationMutation) ResetName ¶
func (m *IntegrationMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*IntegrationMutation) ResetOwner ¶
func (m *IntegrationMutation) ResetOwner()
ResetOwner resets all changes to the "owner" edge.
func (*IntegrationMutation) ResetSecretName ¶
func (m *IntegrationMutation) ResetSecretName()
ResetSecretName resets all changes to the "secret_name" field.
func (*IntegrationMutation) ResetUpdatedAt ¶
func (m *IntegrationMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*IntegrationMutation) ResetUpdatedBy ¶
func (m *IntegrationMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*IntegrationMutation) SecretName ¶
func (m *IntegrationMutation) SecretName() (r string, exists bool)
SecretName returns the value of the "secret_name" field in the mutation.
func (*IntegrationMutation) SetCreatedAt ¶
func (m *IntegrationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*IntegrationMutation) SetCreatedBy ¶
func (m *IntegrationMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*IntegrationMutation) SetDeletedAt ¶
func (m *IntegrationMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationMutation) SetDeletedBy ¶
func (m *IntegrationMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*IntegrationMutation) SetDescription ¶
func (m *IntegrationMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*IntegrationMutation) SetField ¶
func (m *IntegrationMutation) 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 (*IntegrationMutation) SetID ¶
func (m *IntegrationMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Integration entities.
func (*IntegrationMutation) SetKind ¶
func (m *IntegrationMutation) SetKind(s string)
SetKind sets the "kind" field.
func (*IntegrationMutation) SetName ¶
func (m *IntegrationMutation) SetName(s string)
SetName sets the "name" field.
func (*IntegrationMutation) SetOp ¶
func (m *IntegrationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*IntegrationMutation) SetOwnerID ¶
func (m *IntegrationMutation) SetOwnerID(id string)
SetOwnerID sets the "owner" edge to the Organization entity by id.
func (*IntegrationMutation) SetSecretName ¶
func (m *IntegrationMutation) SetSecretName(s string)
SetSecretName sets the "secret_name" field.
func (*IntegrationMutation) SetUpdatedAt ¶
func (m *IntegrationMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*IntegrationMutation) SetUpdatedBy ¶
func (m *IntegrationMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (IntegrationMutation) Tx ¶
func (m IntegrationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*IntegrationMutation) Type ¶
func (m *IntegrationMutation) Type() string
Type returns the node type of this mutation (Integration).
func (*IntegrationMutation) UpdatedAt ¶
func (m *IntegrationMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*IntegrationMutation) UpdatedBy ¶
func (m *IntegrationMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*IntegrationMutation) UpdatedByCleared ¶
func (m *IntegrationMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*IntegrationMutation) Where ¶
func (m *IntegrationMutation) Where(ps ...predicate.Integration)
Where appends a list predicates to the IntegrationMutation builder.
func (*IntegrationMutation) WhereP ¶
func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the IntegrationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type IntegrationOrder ¶
type IntegrationOrder struct { Direction OrderDirection `json:"direction"` Field *IntegrationOrderField `json:"field"` }
IntegrationOrder defines the ordering of Integration.
type IntegrationOrderField ¶
type IntegrationOrderField struct { // Value extracts the ordering value from the given Integration. Value func(*Integration) (ent.Value, error) // contains filtered or unexported fields }
IntegrationOrderField defines the ordering field of Integration.
func (IntegrationOrderField) MarshalGQL ¶
func (f IntegrationOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (IntegrationOrderField) String ¶
func (f IntegrationOrderField) String() string
String implement fmt.Stringer interface.
func (*IntegrationOrderField) UnmarshalGQL ¶
func (f *IntegrationOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type IntegrationPaginateOption ¶
type IntegrationPaginateOption func(*integrationPager) error
IntegrationPaginateOption enables pagination customization.
func WithIntegrationFilter ¶
func WithIntegrationFilter(filter func(*IntegrationQuery) (*IntegrationQuery, error)) IntegrationPaginateOption
WithIntegrationFilter configures pagination filter.
func WithIntegrationOrder ¶
func WithIntegrationOrder(order *IntegrationOrder) IntegrationPaginateOption
WithIntegrationOrder configures pagination ordering.
type IntegrationQuery ¶
type IntegrationQuery struct {
// contains filtered or unexported fields
}
IntegrationQuery is the builder for querying Integration entities.
func (*IntegrationQuery) Aggregate ¶
func (iq *IntegrationQuery) Aggregate(fns ...AggregateFunc) *IntegrationSelect
Aggregate returns a IntegrationSelect configured with the given aggregations.
func (*IntegrationQuery) All ¶
func (iq *IntegrationQuery) All(ctx context.Context) ([]*Integration, error)
All executes the query and returns a list of Integrations.
func (*IntegrationQuery) AllX ¶
func (iq *IntegrationQuery) AllX(ctx context.Context) []*Integration
AllX is like All, but panics if an error occurs.
func (*IntegrationQuery) Clone ¶
func (iq *IntegrationQuery) Clone() *IntegrationQuery
Clone returns a duplicate of the IntegrationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*IntegrationQuery) CollectFields ¶
func (i *IntegrationQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*IntegrationQuery) Count ¶
func (iq *IntegrationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*IntegrationQuery) CountX ¶
func (iq *IntegrationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*IntegrationQuery) Exist ¶
func (iq *IntegrationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*IntegrationQuery) ExistX ¶
func (iq *IntegrationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*IntegrationQuery) Filter ¶
func (iq *IntegrationQuery) Filter() *IntegrationFilter
Filter returns a Filter implementation to apply filters on the IntegrationQuery builder.
func (*IntegrationQuery) First ¶
func (iq *IntegrationQuery) First(ctx context.Context) (*Integration, error)
First returns the first Integration entity from the query. Returns a *NotFoundError when no Integration was found.
func (*IntegrationQuery) FirstID ¶
func (iq *IntegrationQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Integration ID from the query. Returns a *NotFoundError when no Integration ID was found.
func (*IntegrationQuery) FirstIDX ¶
func (iq *IntegrationQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*IntegrationQuery) FirstX ¶
func (iq *IntegrationQuery) FirstX(ctx context.Context) *Integration
FirstX is like First, but panics if an error occurs.
func (*IntegrationQuery) GroupBy ¶
func (iq *IntegrationQuery) GroupBy(field string, fields ...string) *IntegrationGroupBy
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.Integration.Query(). GroupBy(integration.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*IntegrationQuery) IDs ¶
func (iq *IntegrationQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Integration IDs.
func (*IntegrationQuery) IDsX ¶
func (iq *IntegrationQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*IntegrationQuery) Limit ¶
func (iq *IntegrationQuery) Limit(limit int) *IntegrationQuery
Limit the number of records to be returned by this query.
func (*IntegrationQuery) Offset ¶
func (iq *IntegrationQuery) Offset(offset int) *IntegrationQuery
Offset to start from.
func (*IntegrationQuery) Only ¶
func (iq *IntegrationQuery) Only(ctx context.Context) (*Integration, error)
Only returns a single Integration entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Integration entity is found. Returns a *NotFoundError when no Integration entities are found.
func (*IntegrationQuery) OnlyID ¶
func (iq *IntegrationQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Integration ID in the query. Returns a *NotSingularError when more than one Integration ID is found. Returns a *NotFoundError when no entities are found.
func (*IntegrationQuery) OnlyIDX ¶
func (iq *IntegrationQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*IntegrationQuery) OnlyX ¶
func (iq *IntegrationQuery) OnlyX(ctx context.Context) *Integration
OnlyX is like Only, but panics if an error occurs.
func (*IntegrationQuery) Order ¶
func (iq *IntegrationQuery) Order(o ...integration.OrderOption) *IntegrationQuery
Order specifies how the records should be ordered.
func (*IntegrationQuery) Paginate ¶
func (i *IntegrationQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...IntegrationPaginateOption, ) (*IntegrationConnection, error)
Paginate executes the query and returns a relay based cursor connection to Integration.
func (*IntegrationQuery) QueryOwner ¶
func (iq *IntegrationQuery) QueryOwner() *OrganizationQuery
QueryOwner chains the current query on the "owner" edge.
func (*IntegrationQuery) Select ¶
func (iq *IntegrationQuery) Select(fields ...string) *IntegrationSelect
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.Integration.Query(). Select(integration.FieldCreatedAt). Scan(ctx, &v)
func (*IntegrationQuery) Unique ¶
func (iq *IntegrationQuery) Unique(unique bool) *IntegrationQuery
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 (*IntegrationQuery) Where ¶
func (iq *IntegrationQuery) Where(ps ...predicate.Integration) *IntegrationQuery
Where adds a new predicate for the IntegrationQuery builder.
func (*IntegrationQuery) WithOwner ¶
func (iq *IntegrationQuery) WithOwner(opts ...func(*OrganizationQuery)) *IntegrationQuery
WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
type IntegrationSelect ¶
type IntegrationSelect struct { *IntegrationQuery // contains filtered or unexported fields }
IntegrationSelect is the builder for selecting fields of Integration entities.
func (*IntegrationSelect) Aggregate ¶
func (is *IntegrationSelect) Aggregate(fns ...AggregateFunc) *IntegrationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*IntegrationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IntegrationSelect) Scan ¶
func (is *IntegrationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IntegrationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type IntegrationUpdate ¶
type IntegrationUpdate struct {
// contains filtered or unexported fields
}
IntegrationUpdate is the builder for updating Integration entities.
func (*IntegrationUpdate) ClearDeletedAt ¶
func (iu *IntegrationUpdate) ClearDeletedAt() *IntegrationUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationUpdate) ClearDeletedBy ¶
func (iu *IntegrationUpdate) ClearDeletedBy() *IntegrationUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*IntegrationUpdate) ClearDescription ¶
func (iu *IntegrationUpdate) ClearDescription() *IntegrationUpdate
ClearDescription clears the value of the "description" field.
func (*IntegrationUpdate) ClearKind ¶
func (iu *IntegrationUpdate) ClearKind() *IntegrationUpdate
ClearKind clears the value of the "kind" field.
func (*IntegrationUpdate) ClearOwner ¶
func (iu *IntegrationUpdate) ClearOwner() *IntegrationUpdate
ClearOwner clears the "owner" edge to the Organization entity.
func (*IntegrationUpdate) ClearUpdatedBy ¶
func (iu *IntegrationUpdate) ClearUpdatedBy() *IntegrationUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*IntegrationUpdate) Exec ¶
func (iu *IntegrationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*IntegrationUpdate) ExecX ¶
func (iu *IntegrationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationUpdate) Mutation ¶
func (iu *IntegrationUpdate) Mutation() *IntegrationMutation
Mutation returns the IntegrationMutation object of the builder.
func (*IntegrationUpdate) Save ¶
func (iu *IntegrationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*IntegrationUpdate) SaveX ¶
func (iu *IntegrationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*IntegrationUpdate) SetDeletedAt ¶
func (iu *IntegrationUpdate) SetDeletedAt(t time.Time) *IntegrationUpdate
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationUpdate) SetDeletedBy ¶
func (iu *IntegrationUpdate) SetDeletedBy(s string) *IntegrationUpdate
SetDeletedBy sets the "deleted_by" field.
func (*IntegrationUpdate) SetDescription ¶
func (iu *IntegrationUpdate) SetDescription(s string) *IntegrationUpdate
SetDescription sets the "description" field.
func (*IntegrationUpdate) SetInput ¶
func (c *IntegrationUpdate) SetInput(i UpdateIntegrationInput) *IntegrationUpdate
SetInput applies the change-set in the UpdateIntegrationInput on the IntegrationUpdate builder.
func (*IntegrationUpdate) SetKind ¶
func (iu *IntegrationUpdate) SetKind(s string) *IntegrationUpdate
SetKind sets the "kind" field.
func (*IntegrationUpdate) SetName ¶
func (iu *IntegrationUpdate) SetName(s string) *IntegrationUpdate
SetName sets the "name" field.
func (*IntegrationUpdate) SetNillableDeletedAt ¶
func (iu *IntegrationUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationUpdate) SetNillableDeletedBy ¶
func (iu *IntegrationUpdate) SetNillableDeletedBy(s *string) *IntegrationUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*IntegrationUpdate) SetNillableDescription ¶
func (iu *IntegrationUpdate) SetNillableDescription(s *string) *IntegrationUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*IntegrationUpdate) SetNillableKind ¶
func (iu *IntegrationUpdate) SetNillableKind(s *string) *IntegrationUpdate
SetNillableKind sets the "kind" field if the given value is not nil.
func (*IntegrationUpdate) SetNillableName ¶
func (iu *IntegrationUpdate) SetNillableName(s *string) *IntegrationUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*IntegrationUpdate) SetNillableOwnerID ¶
func (iu *IntegrationUpdate) SetNillableOwnerID(id *string) *IntegrationUpdate
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*IntegrationUpdate) SetNillableUpdatedBy ¶
func (iu *IntegrationUpdate) SetNillableUpdatedBy(s *string) *IntegrationUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*IntegrationUpdate) SetOwner ¶
func (iu *IntegrationUpdate) SetOwner(o *Organization) *IntegrationUpdate
SetOwner sets the "owner" edge to the Organization entity.
func (*IntegrationUpdate) SetOwnerID ¶
func (iu *IntegrationUpdate) SetOwnerID(id string) *IntegrationUpdate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*IntegrationUpdate) SetUpdatedAt ¶
func (iu *IntegrationUpdate) SetUpdatedAt(t time.Time) *IntegrationUpdate
SetUpdatedAt sets the "updated_at" field.
func (*IntegrationUpdate) SetUpdatedBy ¶
func (iu *IntegrationUpdate) SetUpdatedBy(s string) *IntegrationUpdate
SetUpdatedBy sets the "updated_by" field.
func (*IntegrationUpdate) Where ¶
func (iu *IntegrationUpdate) Where(ps ...predicate.Integration) *IntegrationUpdate
Where appends a list predicates to the IntegrationUpdate builder.
type IntegrationUpdateOne ¶
type IntegrationUpdateOne struct {
// contains filtered or unexported fields
}
IntegrationUpdateOne is the builder for updating a single Integration entity.
func (*IntegrationUpdateOne) ClearDeletedAt ¶
func (iuo *IntegrationUpdateOne) ClearDeletedAt() *IntegrationUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*IntegrationUpdateOne) ClearDeletedBy ¶
func (iuo *IntegrationUpdateOne) ClearDeletedBy() *IntegrationUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*IntegrationUpdateOne) ClearDescription ¶
func (iuo *IntegrationUpdateOne) ClearDescription() *IntegrationUpdateOne
ClearDescription clears the value of the "description" field.
func (*IntegrationUpdateOne) ClearKind ¶
func (iuo *IntegrationUpdateOne) ClearKind() *IntegrationUpdateOne
ClearKind clears the value of the "kind" field.
func (*IntegrationUpdateOne) ClearOwner ¶
func (iuo *IntegrationUpdateOne) ClearOwner() *IntegrationUpdateOne
ClearOwner clears the "owner" edge to the Organization entity.
func (*IntegrationUpdateOne) ClearUpdatedBy ¶
func (iuo *IntegrationUpdateOne) ClearUpdatedBy() *IntegrationUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*IntegrationUpdateOne) Exec ¶
func (iuo *IntegrationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*IntegrationUpdateOne) ExecX ¶
func (iuo *IntegrationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IntegrationUpdateOne) Mutation ¶
func (iuo *IntegrationUpdateOne) Mutation() *IntegrationMutation
Mutation returns the IntegrationMutation object of the builder.
func (*IntegrationUpdateOne) Save ¶
func (iuo *IntegrationUpdateOne) Save(ctx context.Context) (*Integration, error)
Save executes the query and returns the updated Integration entity.
func (*IntegrationUpdateOne) SaveX ¶
func (iuo *IntegrationUpdateOne) SaveX(ctx context.Context) *Integration
SaveX is like Save, but panics if an error occurs.
func (*IntegrationUpdateOne) Select ¶
func (iuo *IntegrationUpdateOne) Select(field string, fields ...string) *IntegrationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*IntegrationUpdateOne) SetDeletedAt ¶
func (iuo *IntegrationUpdateOne) SetDeletedAt(t time.Time) *IntegrationUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*IntegrationUpdateOne) SetDeletedBy ¶
func (iuo *IntegrationUpdateOne) SetDeletedBy(s string) *IntegrationUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*IntegrationUpdateOne) SetDescription ¶
func (iuo *IntegrationUpdateOne) SetDescription(s string) *IntegrationUpdateOne
SetDescription sets the "description" field.
func (*IntegrationUpdateOne) SetInput ¶
func (c *IntegrationUpdateOne) SetInput(i UpdateIntegrationInput) *IntegrationUpdateOne
SetInput applies the change-set in the UpdateIntegrationInput on the IntegrationUpdateOne builder.
func (*IntegrationUpdateOne) SetKind ¶
func (iuo *IntegrationUpdateOne) SetKind(s string) *IntegrationUpdateOne
SetKind sets the "kind" field.
func (*IntegrationUpdateOne) SetName ¶
func (iuo *IntegrationUpdateOne) SetName(s string) *IntegrationUpdateOne
SetName sets the "name" field.
func (*IntegrationUpdateOne) SetNillableDeletedAt ¶
func (iuo *IntegrationUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableDeletedBy ¶
func (iuo *IntegrationUpdateOne) SetNillableDeletedBy(s *string) *IntegrationUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableDescription ¶
func (iuo *IntegrationUpdateOne) SetNillableDescription(s *string) *IntegrationUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableKind ¶
func (iuo *IntegrationUpdateOne) SetNillableKind(s *string) *IntegrationUpdateOne
SetNillableKind sets the "kind" field if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableName ¶
func (iuo *IntegrationUpdateOne) SetNillableName(s *string) *IntegrationUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableOwnerID ¶
func (iuo *IntegrationUpdateOne) SetNillableOwnerID(id *string) *IntegrationUpdateOne
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*IntegrationUpdateOne) SetNillableUpdatedBy ¶
func (iuo *IntegrationUpdateOne) SetNillableUpdatedBy(s *string) *IntegrationUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*IntegrationUpdateOne) SetOwner ¶
func (iuo *IntegrationUpdateOne) SetOwner(o *Organization) *IntegrationUpdateOne
SetOwner sets the "owner" edge to the Organization entity.
func (*IntegrationUpdateOne) SetOwnerID ¶
func (iuo *IntegrationUpdateOne) SetOwnerID(id string) *IntegrationUpdateOne
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*IntegrationUpdateOne) SetUpdatedAt ¶
func (iuo *IntegrationUpdateOne) SetUpdatedAt(t time.Time) *IntegrationUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*IntegrationUpdateOne) SetUpdatedBy ¶
func (iuo *IntegrationUpdateOne) SetUpdatedBy(s string) *IntegrationUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*IntegrationUpdateOne) Where ¶
func (iuo *IntegrationUpdateOne) Where(ps ...predicate.Integration) *IntegrationUpdateOne
Where appends a list predicates to the IntegrationUpdate builder.
type IntegrationWhereInput ¶
type IntegrationWhereInput struct { Predicates []predicate.Integration `json:"-"` Not *IntegrationWhereInput `json:"not,omitempty"` Or []*IntegrationWhereInput `json:"or,omitempty"` And []*IntegrationWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` // "kind" field predicates. Kind *string `json:"kind,omitempty"` KindNEQ *string `json:"kindNEQ,omitempty"` KindIn []string `json:"kindIn,omitempty"` KindNotIn []string `json:"kindNotIn,omitempty"` KindGT *string `json:"kindGT,omitempty"` KindGTE *string `json:"kindGTE,omitempty"` KindLT *string `json:"kindLT,omitempty"` KindLTE *string `json:"kindLTE,omitempty"` KindContains *string `json:"kindContains,omitempty"` KindHasPrefix *string `json:"kindHasPrefix,omitempty"` KindHasSuffix *string `json:"kindHasSuffix,omitempty"` KindIsNil bool `json:"kindIsNil,omitempty"` KindNotNil bool `json:"kindNotNil,omitempty"` KindEqualFold *string `json:"kindEqualFold,omitempty"` KindContainsFold *string `json:"kindContainsFold,omitempty"` // "secret_name" field predicates. SecretName *string `json:"secretName,omitempty"` SecretNameNEQ *string `json:"secretNameNEQ,omitempty"` SecretNameIn []string `json:"secretNameIn,omitempty"` SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` SecretNameGT *string `json:"secretNameGT,omitempty"` SecretNameGTE *string `json:"secretNameGTE,omitempty"` SecretNameLT *string `json:"secretNameLT,omitempty"` SecretNameLTE *string `json:"secretNameLTE,omitempty"` SecretNameContains *string `json:"secretNameContains,omitempty"` SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` }
IntegrationWhereInput represents a where input for filtering Integration queries.
func (*IntegrationWhereInput) AddPredicates ¶
func (i *IntegrationWhereInput) AddPredicates(predicates ...predicate.Integration)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*IntegrationWhereInput) Filter ¶
func (i *IntegrationWhereInput) Filter(q *IntegrationQuery) (*IntegrationQuery, error)
Filter applies the IntegrationWhereInput filter on the IntegrationQuery builder.
func (*IntegrationWhereInput) P ¶
func (i *IntegrationWhereInput) P() (predicate.Integration, error)
P returns a predicate for filtering integrations. An error is returned if the input is empty or invalid.
type Integrations ¶
type Integrations []*Integration
Integrations is a parsable slice of Integration.
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 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 OauthProvider ¶
type OauthProvider struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // the oauth provider's name Name string `json:"name,omitempty"` // the client id for the oauth provider ClientID string `json:"client_id,omitempty"` // the client secret ClientSecret string `json:"client_secret,omitempty"` // the redirect url RedirectURL string `json:"redirect_url,omitempty"` // the scopes Scopes string `json:"scopes,omitempty"` // the auth url of the provider AuthURL string `json:"auth_url,omitempty"` // the token url of the provider TokenURL string `json:"token_url,omitempty"` // the auth style, 0: auto detect 1: third party log in 2: log in with username and password AuthStyle uint8 `json:"auth_style,omitempty"` // the URL to request user information by token InfoURL string `json:"info_url,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OauthProviderQuery when eager-loading is set. Edges OauthProviderEdges `json:"edges"` // contains filtered or unexported fields }
OauthProvider is the model entity for the OauthProvider schema.
func (*OauthProvider) IsNode ¶
func (n *OauthProvider) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*OauthProvider) Owner ¶
func (op *OauthProvider) Owner(ctx context.Context) (*Organization, error)
func (*OauthProvider) QueryOwner ¶
func (op *OauthProvider) QueryOwner() *OrganizationQuery
QueryOwner queries the "owner" edge of the OauthProvider entity.
func (*OauthProvider) String ¶
func (op *OauthProvider) String() string
String implements the fmt.Stringer.
func (*OauthProvider) ToEdge ¶
func (op *OauthProvider) ToEdge(order *OauthProviderOrder) *OauthProviderEdge
ToEdge converts OauthProvider into OauthProviderEdge.
func (*OauthProvider) Unwrap ¶
func (op *OauthProvider) Unwrap() *OauthProvider
Unwrap unwraps the OauthProvider 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 (*OauthProvider) Update ¶
func (op *OauthProvider) Update() *OauthProviderUpdateOne
Update returns a builder for updating this OauthProvider. Note that you need to call OauthProvider.Unwrap() before calling this method if this OauthProvider was returned from a transaction, and the transaction was committed or rolled back.
type OauthProviderClient ¶
type OauthProviderClient struct {
// contains filtered or unexported fields
}
OauthProviderClient is a client for the OauthProvider schema.
func NewOauthProviderClient ¶
func NewOauthProviderClient(c config) *OauthProviderClient
NewOauthProviderClient returns a client for the OauthProvider from the given config.
func (*OauthProviderClient) Create ¶
func (c *OauthProviderClient) Create() *OauthProviderCreate
Create returns a builder for creating a OauthProvider entity.
func (*OauthProviderClient) CreateBulk ¶
func (c *OauthProviderClient) CreateBulk(builders ...*OauthProviderCreate) *OauthProviderCreateBulk
CreateBulk returns a builder for creating a bulk of OauthProvider entities.
func (*OauthProviderClient) Delete ¶
func (c *OauthProviderClient) Delete() *OauthProviderDelete
Delete returns a delete builder for OauthProvider.
func (*OauthProviderClient) DeleteOne ¶
func (c *OauthProviderClient) DeleteOne(op *OauthProvider) *OauthProviderDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OauthProviderClient) DeleteOneID ¶
func (c *OauthProviderClient) DeleteOneID(id string) *OauthProviderDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OauthProviderClient) Get ¶
func (c *OauthProviderClient) Get(ctx context.Context, id string) (*OauthProvider, error)
Get returns a OauthProvider entity by its id.
func (*OauthProviderClient) GetX ¶
func (c *OauthProviderClient) GetX(ctx context.Context, id string) *OauthProvider
GetX is like Get, but panics if an error occurs.
func (*OauthProviderClient) Hooks ¶
func (c *OauthProviderClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OauthProviderClient) Intercept ¶
func (c *OauthProviderClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `oauthprovider.Intercept(f(g(h())))`.
func (*OauthProviderClient) Interceptors ¶
func (c *OauthProviderClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OauthProviderClient) MapCreateBulk ¶
func (c *OauthProviderClient) MapCreateBulk(slice any, setFunc func(*OauthProviderCreate, int)) *OauthProviderCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OauthProviderClient) Query ¶
func (c *OauthProviderClient) Query() *OauthProviderQuery
Query returns a query builder for OauthProvider.
func (*OauthProviderClient) QueryOwner ¶
func (c *OauthProviderClient) QueryOwner(op *OauthProvider) *OrganizationQuery
QueryOwner queries the owner edge of a OauthProvider.
func (*OauthProviderClient) Update ¶
func (c *OauthProviderClient) Update() *OauthProviderUpdate
Update returns an update builder for OauthProvider.
func (*OauthProviderClient) UpdateOne ¶
func (c *OauthProviderClient) UpdateOne(op *OauthProvider) *OauthProviderUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OauthProviderClient) UpdateOneID ¶
func (c *OauthProviderClient) UpdateOneID(id string) *OauthProviderUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OauthProviderClient) Use ¶
func (c *OauthProviderClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `oauthprovider.Hooks(f(g(h())))`.
type OauthProviderConnection ¶
type OauthProviderConnection struct { Edges []*OauthProviderEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
OauthProviderConnection is the connection containing edges to OauthProvider.
type OauthProviderCreate ¶
type OauthProviderCreate struct {
// contains filtered or unexported fields
}
OauthProviderCreate is the builder for creating a OauthProvider entity.
func (*OauthProviderCreate) Exec ¶
func (opc *OauthProviderCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OauthProviderCreate) ExecX ¶
func (opc *OauthProviderCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OauthProviderCreate) Mutation ¶
func (opc *OauthProviderCreate) Mutation() *OauthProviderMutation
Mutation returns the OauthProviderMutation object of the builder.
func (*OauthProviderCreate) Save ¶
func (opc *OauthProviderCreate) Save(ctx context.Context) (*OauthProvider, error)
Save creates the OauthProvider in the database.
func (*OauthProviderCreate) SaveX ¶
func (opc *OauthProviderCreate) SaveX(ctx context.Context) *OauthProvider
SaveX calls Save and panics if Save returns an error.
func (*OauthProviderCreate) SetAuthStyle ¶
func (opc *OauthProviderCreate) SetAuthStyle(u uint8) *OauthProviderCreate
SetAuthStyle sets the "auth_style" field.
func (*OauthProviderCreate) SetAuthURL ¶
func (opc *OauthProviderCreate) SetAuthURL(s string) *OauthProviderCreate
SetAuthURL sets the "auth_url" field.
func (*OauthProviderCreate) SetClientID ¶
func (opc *OauthProviderCreate) SetClientID(s string) *OauthProviderCreate
SetClientID sets the "client_id" field.
func (*OauthProviderCreate) SetClientSecret ¶
func (opc *OauthProviderCreate) SetClientSecret(s string) *OauthProviderCreate
SetClientSecret sets the "client_secret" field.
func (*OauthProviderCreate) SetCreatedAt ¶
func (opc *OauthProviderCreate) SetCreatedAt(t time.Time) *OauthProviderCreate
SetCreatedAt sets the "created_at" field.
func (*OauthProviderCreate) SetCreatedBy ¶
func (opc *OauthProviderCreate) SetCreatedBy(s string) *OauthProviderCreate
SetCreatedBy sets the "created_by" field.
func (*OauthProviderCreate) SetDeletedAt ¶
func (opc *OauthProviderCreate) SetDeletedAt(t time.Time) *OauthProviderCreate
SetDeletedAt sets the "deleted_at" field.
func (*OauthProviderCreate) SetDeletedBy ¶
func (opc *OauthProviderCreate) SetDeletedBy(s string) *OauthProviderCreate
SetDeletedBy sets the "deleted_by" field.
func (*OauthProviderCreate) SetID ¶
func (opc *OauthProviderCreate) SetID(s string) *OauthProviderCreate
SetID sets the "id" field.
func (*OauthProviderCreate) SetInfoURL ¶
func (opc *OauthProviderCreate) SetInfoURL(s string) *OauthProviderCreate
SetInfoURL sets the "info_url" field.
func (*OauthProviderCreate) SetInput ¶
func (c *OauthProviderCreate) SetInput(i CreateOauthProviderInput) *OauthProviderCreate
SetInput applies the change-set in the CreateOauthProviderInput on the OauthProviderCreate builder.
func (*OauthProviderCreate) SetName ¶
func (opc *OauthProviderCreate) SetName(s string) *OauthProviderCreate
SetName sets the "name" field.
func (*OauthProviderCreate) SetNillableCreatedAt ¶
func (opc *OauthProviderCreate) SetNillableCreatedAt(t *time.Time) *OauthProviderCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OauthProviderCreate) SetNillableCreatedBy ¶
func (opc *OauthProviderCreate) SetNillableCreatedBy(s *string) *OauthProviderCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*OauthProviderCreate) SetNillableDeletedAt ¶
func (opc *OauthProviderCreate) SetNillableDeletedAt(t *time.Time) *OauthProviderCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OauthProviderCreate) SetNillableDeletedBy ¶
func (opc *OauthProviderCreate) SetNillableDeletedBy(s *string) *OauthProviderCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OauthProviderCreate) SetNillableID ¶
func (opc *OauthProviderCreate) SetNillableID(s *string) *OauthProviderCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OauthProviderCreate) SetNillableOwnerID ¶
func (opc *OauthProviderCreate) SetNillableOwnerID(id *string) *OauthProviderCreate
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*OauthProviderCreate) SetNillableUpdatedAt ¶
func (opc *OauthProviderCreate) SetNillableUpdatedAt(t *time.Time) *OauthProviderCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*OauthProviderCreate) SetNillableUpdatedBy ¶
func (opc *OauthProviderCreate) SetNillableUpdatedBy(s *string) *OauthProviderCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OauthProviderCreate) SetOwner ¶
func (opc *OauthProviderCreate) SetOwner(o *Organization) *OauthProviderCreate
SetOwner sets the "owner" edge to the Organization entity.
func (*OauthProviderCreate) SetOwnerID ¶
func (opc *OauthProviderCreate) SetOwnerID(id string) *OauthProviderCreate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*OauthProviderCreate) SetRedirectURL ¶
func (opc *OauthProviderCreate) SetRedirectURL(s string) *OauthProviderCreate
SetRedirectURL sets the "redirect_url" field.
func (*OauthProviderCreate) SetScopes ¶
func (opc *OauthProviderCreate) SetScopes(s string) *OauthProviderCreate
SetScopes sets the "scopes" field.
func (*OauthProviderCreate) SetTokenURL ¶
func (opc *OauthProviderCreate) SetTokenURL(s string) *OauthProviderCreate
SetTokenURL sets the "token_url" field.
func (*OauthProviderCreate) SetUpdatedAt ¶
func (opc *OauthProviderCreate) SetUpdatedAt(t time.Time) *OauthProviderCreate
SetUpdatedAt sets the "updated_at" field.
func (*OauthProviderCreate) SetUpdatedBy ¶
func (opc *OauthProviderCreate) SetUpdatedBy(s string) *OauthProviderCreate
SetUpdatedBy sets the "updated_by" field.
type OauthProviderCreateBulk ¶
type OauthProviderCreateBulk struct {
// contains filtered or unexported fields
}
OauthProviderCreateBulk is the builder for creating many OauthProvider entities in bulk.
func (*OauthProviderCreateBulk) Exec ¶
func (opcb *OauthProviderCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OauthProviderCreateBulk) ExecX ¶
func (opcb *OauthProviderCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OauthProviderCreateBulk) Save ¶
func (opcb *OauthProviderCreateBulk) Save(ctx context.Context) ([]*OauthProvider, error)
Save creates the OauthProvider entities in the database.
func (*OauthProviderCreateBulk) SaveX ¶
func (opcb *OauthProviderCreateBulk) SaveX(ctx context.Context) []*OauthProvider
SaveX is like Save, but panics if an error occurs.
type OauthProviderDelete ¶
type OauthProviderDelete struct {
// contains filtered or unexported fields
}
OauthProviderDelete is the builder for deleting a OauthProvider entity.
func (*OauthProviderDelete) Exec ¶
func (opd *OauthProviderDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OauthProviderDelete) ExecX ¶
func (opd *OauthProviderDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OauthProviderDelete) Where ¶
func (opd *OauthProviderDelete) Where(ps ...predicate.OauthProvider) *OauthProviderDelete
Where appends a list predicates to the OauthProviderDelete builder.
type OauthProviderDeleteOne ¶
type OauthProviderDeleteOne struct {
// contains filtered or unexported fields
}
OauthProviderDeleteOne is the builder for deleting a single OauthProvider entity.
func (*OauthProviderDeleteOne) Exec ¶
func (opdo *OauthProviderDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OauthProviderDeleteOne) ExecX ¶
func (opdo *OauthProviderDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OauthProviderDeleteOne) Where ¶
func (opdo *OauthProviderDeleteOne) Where(ps ...predicate.OauthProvider) *OauthProviderDeleteOne
Where appends a list predicates to the OauthProviderDelete builder.
type OauthProviderEdge ¶
type OauthProviderEdge struct { Node *OauthProvider `json:"node"` Cursor Cursor `json:"cursor"` }
OauthProviderEdge is the edge representation of OauthProvider.
type OauthProviderEdges ¶
type OauthProviderEdges struct { // Owner holds the value of the owner edge. Owner *Organization `json:"owner,omitempty"` // contains filtered or unexported fields }
OauthProviderEdges holds the relations/edges for other nodes in the graph.
func (OauthProviderEdges) OwnerOrErr ¶
func (e OauthProviderEdges) OwnerOrErr() (*Organization, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type OauthProviderFilter ¶
type OauthProviderFilter struct {
// contains filtered or unexported fields
}
OauthProviderFilter provides a generic filtering capability at runtime for OauthProviderQuery.
func (*OauthProviderFilter) Where ¶
func (f *OauthProviderFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*OauthProviderFilter) WhereAuthStyle ¶
func (f *OauthProviderFilter) WhereAuthStyle(p entql.Uint8P)
WhereAuthStyle applies the entql uint8 predicate on the auth_style field.
func (*OauthProviderFilter) WhereAuthURL ¶
func (f *OauthProviderFilter) WhereAuthURL(p entql.StringP)
WhereAuthURL applies the entql string predicate on the auth_url field.
func (*OauthProviderFilter) WhereClientID ¶
func (f *OauthProviderFilter) WhereClientID(p entql.StringP)
WhereClientID applies the entql string predicate on the client_id field.
func (*OauthProviderFilter) WhereClientSecret ¶
func (f *OauthProviderFilter) WhereClientSecret(p entql.StringP)
WhereClientSecret applies the entql string predicate on the client_secret field.
func (*OauthProviderFilter) WhereCreatedAt ¶
func (f *OauthProviderFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*OauthProviderFilter) WhereCreatedBy ¶
func (f *OauthProviderFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*OauthProviderFilter) WhereDeletedAt ¶
func (f *OauthProviderFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*OauthProviderFilter) WhereDeletedBy ¶
func (f *OauthProviderFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*OauthProviderFilter) WhereHasOwner ¶
func (f *OauthProviderFilter) WhereHasOwner()
WhereHasOwner applies a predicate to check if query has an edge owner.
func (*OauthProviderFilter) WhereHasOwnerWith ¶
func (f *OauthProviderFilter) WhereHasOwnerWith(preds ...predicate.Organization)
WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).
func (*OauthProviderFilter) WhereID ¶
func (f *OauthProviderFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*OauthProviderFilter) WhereInfoURL ¶
func (f *OauthProviderFilter) WhereInfoURL(p entql.StringP)
WhereInfoURL applies the entql string predicate on the info_url field.
func (*OauthProviderFilter) WhereName ¶
func (f *OauthProviderFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*OauthProviderFilter) WhereRedirectURL ¶
func (f *OauthProviderFilter) WhereRedirectURL(p entql.StringP)
WhereRedirectURL applies the entql string predicate on the redirect_url field.
func (*OauthProviderFilter) WhereScopes ¶
func (f *OauthProviderFilter) WhereScopes(p entql.StringP)
WhereScopes applies the entql string predicate on the scopes field.
func (*OauthProviderFilter) WhereTokenURL ¶
func (f *OauthProviderFilter) WhereTokenURL(p entql.StringP)
WhereTokenURL applies the entql string predicate on the token_url field.
func (*OauthProviderFilter) WhereUpdatedAt ¶
func (f *OauthProviderFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*OauthProviderFilter) WhereUpdatedBy ¶
func (f *OauthProviderFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type OauthProviderGroupBy ¶
type OauthProviderGroupBy struct {
// contains filtered or unexported fields
}
OauthProviderGroupBy is the group-by builder for OauthProvider entities.
func (*OauthProviderGroupBy) Aggregate ¶
func (opgb *OauthProviderGroupBy) Aggregate(fns ...AggregateFunc) *OauthProviderGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OauthProviderGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OauthProviderGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OauthProviderGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OauthProviderGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OauthProviderGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OauthProviderGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OauthProviderGroupBy) Scan ¶
func (opgb *OauthProviderGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OauthProviderGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OauthProviderMutation ¶
type OauthProviderMutation struct {
// contains filtered or unexported fields
}
OauthProviderMutation represents an operation that mutates the OauthProvider nodes in the graph.
func (*OauthProviderMutation) AddAuthStyle ¶
func (m *OauthProviderMutation) AddAuthStyle(u int8)
AddAuthStyle adds u to the "auth_style" field.
func (*OauthProviderMutation) AddField ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) AddedAuthStyle ¶
func (m *OauthProviderMutation) AddedAuthStyle() (r int8, exists bool)
AddedAuthStyle returns the value that was added to the "auth_style" field in this mutation.
func (*OauthProviderMutation) AddedEdges ¶
func (m *OauthProviderMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OauthProviderMutation) AddedField ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) AddedFields ¶
func (m *OauthProviderMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OauthProviderMutation) AddedIDs ¶
func (m *OauthProviderMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OauthProviderMutation) AuthStyle ¶
func (m *OauthProviderMutation) AuthStyle() (r uint8, exists bool)
AuthStyle returns the value of the "auth_style" field in the mutation.
func (*OauthProviderMutation) AuthURL ¶
func (m *OauthProviderMutation) AuthURL() (r string, exists bool)
AuthURL returns the value of the "auth_url" field in the mutation.
func (*OauthProviderMutation) ClearCreatedBy ¶
func (m *OauthProviderMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*OauthProviderMutation) ClearDeletedAt ¶
func (m *OauthProviderMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OauthProviderMutation) ClearDeletedBy ¶
func (m *OauthProviderMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OauthProviderMutation) ClearEdge ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) ClearField ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) ClearOwner ¶
func (m *OauthProviderMutation) ClearOwner()
ClearOwner clears the "owner" edge to the Organization entity.
func (*OauthProviderMutation) ClearUpdatedBy ¶
func (m *OauthProviderMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OauthProviderMutation) ClearedEdges ¶
func (m *OauthProviderMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OauthProviderMutation) ClearedFields ¶
func (m *OauthProviderMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OauthProviderMutation) Client ¶
func (m OauthProviderMutation) 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 (*OauthProviderMutation) ClientID ¶
func (m *OauthProviderMutation) ClientID() (r string, exists bool)
ClientID returns the value of the "client_id" field in the mutation.
func (*OauthProviderMutation) ClientSecret ¶
func (m *OauthProviderMutation) ClientSecret() (r string, exists bool)
ClientSecret returns the value of the "client_secret" field in the mutation.
func (*OauthProviderMutation) CreatedAt ¶
func (m *OauthProviderMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OauthProviderMutation) CreatedBy ¶
func (m *OauthProviderMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*OauthProviderMutation) CreatedByCleared ¶
func (m *OauthProviderMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*OauthProviderMutation) DeletedAt ¶
func (m *OauthProviderMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*OauthProviderMutation) DeletedAtCleared ¶
func (m *OauthProviderMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*OauthProviderMutation) DeletedBy ¶
func (m *OauthProviderMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*OauthProviderMutation) DeletedByCleared ¶
func (m *OauthProviderMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*OauthProviderMutation) EdgeCleared ¶
func (m *OauthProviderMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OauthProviderMutation) Field ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) FieldCleared ¶
func (m *OauthProviderMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OauthProviderMutation) Fields ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) Filter ¶
func (m *OauthProviderMutation) Filter() *OauthProviderFilter
Filter returns an entql.Where implementation to apply filters on the OauthProviderMutation builder.
func (*OauthProviderMutation) ID ¶
func (m *OauthProviderMutation) ID() (id string, 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 (*OauthProviderMutation) IDs ¶
func (m *OauthProviderMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OauthProviderMutation) InfoURL ¶
func (m *OauthProviderMutation) InfoURL() (r string, exists bool)
InfoURL returns the value of the "info_url" field in the mutation.
func (*OauthProviderMutation) Name ¶
func (m *OauthProviderMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*OauthProviderMutation) OldAuthStyle ¶
func (m *OauthProviderMutation) OldAuthStyle(ctx context.Context) (v uint8, err error)
OldAuthStyle returns the old "auth_style" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldAuthURL ¶
func (m *OauthProviderMutation) OldAuthURL(ctx context.Context) (v string, err error)
OldAuthURL returns the old "auth_url" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldClientID ¶
func (m *OauthProviderMutation) OldClientID(ctx context.Context) (v string, err error)
OldClientID returns the old "client_id" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldClientSecret ¶
func (m *OauthProviderMutation) OldClientSecret(ctx context.Context) (v string, err error)
OldClientSecret returns the old "client_secret" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldCreatedBy ¶
func (m *OauthProviderMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldDeletedBy ¶
func (m *OauthProviderMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) 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 (*OauthProviderMutation) OldInfoURL ¶
func (m *OauthProviderMutation) OldInfoURL(ctx context.Context) (v string, err error)
OldInfoURL returns the old "info_url" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldName ¶
func (m *OauthProviderMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldRedirectURL ¶
func (m *OauthProviderMutation) OldRedirectURL(ctx context.Context) (v string, err error)
OldRedirectURL returns the old "redirect_url" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldScopes ¶
func (m *OauthProviderMutation) OldScopes(ctx context.Context) (v string, err error)
OldScopes returns the old "scopes" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldTokenURL ¶
func (m *OauthProviderMutation) OldTokenURL(ctx context.Context) (v string, err error)
OldTokenURL returns the old "token_url" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) OldUpdatedBy ¶
func (m *OauthProviderMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the OauthProvider entity. If the OauthProvider 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 (*OauthProviderMutation) Op ¶
func (m *OauthProviderMutation) Op() Op
Op returns the operation name.
func (*OauthProviderMutation) OwnerCleared ¶
func (m *OauthProviderMutation) OwnerCleared() bool
OwnerCleared reports if the "owner" edge to the Organization entity was cleared.
func (*OauthProviderMutation) OwnerID ¶
func (m *OauthProviderMutation) OwnerID() (id string, exists bool)
OwnerID returns the "owner" edge ID in the mutation.
func (*OauthProviderMutation) OwnerIDs ¶
func (m *OauthProviderMutation) OwnerIDs() (ids []string)
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.
func (*OauthProviderMutation) RedirectURL ¶
func (m *OauthProviderMutation) RedirectURL() (r string, exists bool)
RedirectURL returns the value of the "redirect_url" field in the mutation.
func (*OauthProviderMutation) RemovedEdges ¶
func (m *OauthProviderMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OauthProviderMutation) RemovedIDs ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) ResetAuthStyle ¶
func (m *OauthProviderMutation) ResetAuthStyle()
ResetAuthStyle resets all changes to the "auth_style" field.
func (*OauthProviderMutation) ResetAuthURL ¶
func (m *OauthProviderMutation) ResetAuthURL()
ResetAuthURL resets all changes to the "auth_url" field.
func (*OauthProviderMutation) ResetClientID ¶
func (m *OauthProviderMutation) ResetClientID()
ResetClientID resets all changes to the "client_id" field.
func (*OauthProviderMutation) ResetClientSecret ¶
func (m *OauthProviderMutation) ResetClientSecret()
ResetClientSecret resets all changes to the "client_secret" field.
func (*OauthProviderMutation) ResetCreatedAt ¶
func (m *OauthProviderMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OauthProviderMutation) ResetCreatedBy ¶
func (m *OauthProviderMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*OauthProviderMutation) ResetDeletedAt ¶
func (m *OauthProviderMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*OauthProviderMutation) ResetDeletedBy ¶
func (m *OauthProviderMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*OauthProviderMutation) ResetEdge ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) ResetField ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) ResetInfoURL ¶
func (m *OauthProviderMutation) ResetInfoURL()
ResetInfoURL resets all changes to the "info_url" field.
func (*OauthProviderMutation) ResetName ¶
func (m *OauthProviderMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*OauthProviderMutation) ResetOwner ¶
func (m *OauthProviderMutation) ResetOwner()
ResetOwner resets all changes to the "owner" edge.
func (*OauthProviderMutation) ResetRedirectURL ¶
func (m *OauthProviderMutation) ResetRedirectURL()
ResetRedirectURL resets all changes to the "redirect_url" field.
func (*OauthProviderMutation) ResetScopes ¶
func (m *OauthProviderMutation) ResetScopes()
ResetScopes resets all changes to the "scopes" field.
func (*OauthProviderMutation) ResetTokenURL ¶
func (m *OauthProviderMutation) ResetTokenURL()
ResetTokenURL resets all changes to the "token_url" field.
func (*OauthProviderMutation) ResetUpdatedAt ¶
func (m *OauthProviderMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*OauthProviderMutation) ResetUpdatedBy ¶
func (m *OauthProviderMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*OauthProviderMutation) Scopes ¶
func (m *OauthProviderMutation) Scopes() (r string, exists bool)
Scopes returns the value of the "scopes" field in the mutation.
func (*OauthProviderMutation) SetAuthStyle ¶
func (m *OauthProviderMutation) SetAuthStyle(u uint8)
SetAuthStyle sets the "auth_style" field.
func (*OauthProviderMutation) SetAuthURL ¶
func (m *OauthProviderMutation) SetAuthURL(s string)
SetAuthURL sets the "auth_url" field.
func (*OauthProviderMutation) SetClientID ¶
func (m *OauthProviderMutation) SetClientID(s string)
SetClientID sets the "client_id" field.
func (*OauthProviderMutation) SetClientSecret ¶
func (m *OauthProviderMutation) SetClientSecret(s string)
SetClientSecret sets the "client_secret" field.
func (*OauthProviderMutation) SetCreatedAt ¶
func (m *OauthProviderMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OauthProviderMutation) SetCreatedBy ¶
func (m *OauthProviderMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*OauthProviderMutation) SetDeletedAt ¶
func (m *OauthProviderMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*OauthProviderMutation) SetDeletedBy ¶
func (m *OauthProviderMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*OauthProviderMutation) SetField ¶
func (m *OauthProviderMutation) 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 (*OauthProviderMutation) SetID ¶
func (m *OauthProviderMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of OauthProvider entities.
func (*OauthProviderMutation) SetInfoURL ¶
func (m *OauthProviderMutation) SetInfoURL(s string)
SetInfoURL sets the "info_url" field.
func (*OauthProviderMutation) SetName ¶
func (m *OauthProviderMutation) SetName(s string)
SetName sets the "name" field.
func (*OauthProviderMutation) SetOp ¶
func (m *OauthProviderMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OauthProviderMutation) SetOwnerID ¶
func (m *OauthProviderMutation) SetOwnerID(id string)
SetOwnerID sets the "owner" edge to the Organization entity by id.
func (*OauthProviderMutation) SetRedirectURL ¶
func (m *OauthProviderMutation) SetRedirectURL(s string)
SetRedirectURL sets the "redirect_url" field.
func (*OauthProviderMutation) SetScopes ¶
func (m *OauthProviderMutation) SetScopes(s string)
SetScopes sets the "scopes" field.
func (*OauthProviderMutation) SetTokenURL ¶
func (m *OauthProviderMutation) SetTokenURL(s string)
SetTokenURL sets the "token_url" field.
func (*OauthProviderMutation) SetUpdatedAt ¶
func (m *OauthProviderMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*OauthProviderMutation) SetUpdatedBy ¶
func (m *OauthProviderMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*OauthProviderMutation) TokenURL ¶
func (m *OauthProviderMutation) TokenURL() (r string, exists bool)
TokenURL returns the value of the "token_url" field in the mutation.
func (OauthProviderMutation) Tx ¶
func (m OauthProviderMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OauthProviderMutation) Type ¶
func (m *OauthProviderMutation) Type() string
Type returns the node type of this mutation (OauthProvider).
func (*OauthProviderMutation) UpdatedAt ¶
func (m *OauthProviderMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*OauthProviderMutation) UpdatedBy ¶
func (m *OauthProviderMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*OauthProviderMutation) UpdatedByCleared ¶
func (m *OauthProviderMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*OauthProviderMutation) Where ¶
func (m *OauthProviderMutation) Where(ps ...predicate.OauthProvider)
Where appends a list predicates to the OauthProviderMutation builder.
func (*OauthProviderMutation) WhereP ¶
func (m *OauthProviderMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OauthProviderMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OauthProviderOrder ¶
type OauthProviderOrder struct { Direction OrderDirection `json:"direction"` Field *OauthProviderOrderField `json:"field"` }
OauthProviderOrder defines the ordering of OauthProvider.
type OauthProviderOrderField ¶
type OauthProviderOrderField struct { // Value extracts the ordering value from the given OauthProvider. Value func(*OauthProvider) (ent.Value, error) // contains filtered or unexported fields }
OauthProviderOrderField defines the ordering field of OauthProvider.
type OauthProviderPaginateOption ¶
type OauthProviderPaginateOption func(*oauthproviderPager) error
OauthProviderPaginateOption enables pagination customization.
func WithOauthProviderFilter ¶
func WithOauthProviderFilter(filter func(*OauthProviderQuery) (*OauthProviderQuery, error)) OauthProviderPaginateOption
WithOauthProviderFilter configures pagination filter.
func WithOauthProviderOrder ¶
func WithOauthProviderOrder(order *OauthProviderOrder) OauthProviderPaginateOption
WithOauthProviderOrder configures pagination ordering.
type OauthProviderQuery ¶
type OauthProviderQuery struct {
// contains filtered or unexported fields
}
OauthProviderQuery is the builder for querying OauthProvider entities.
func (*OauthProviderQuery) Aggregate ¶
func (opq *OauthProviderQuery) Aggregate(fns ...AggregateFunc) *OauthProviderSelect
Aggregate returns a OauthProviderSelect configured with the given aggregations.
func (*OauthProviderQuery) All ¶
func (opq *OauthProviderQuery) All(ctx context.Context) ([]*OauthProvider, error)
All executes the query and returns a list of OauthProviders.
func (*OauthProviderQuery) AllX ¶
func (opq *OauthProviderQuery) AllX(ctx context.Context) []*OauthProvider
AllX is like All, but panics if an error occurs.
func (*OauthProviderQuery) Clone ¶
func (opq *OauthProviderQuery) Clone() *OauthProviderQuery
Clone returns a duplicate of the OauthProviderQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OauthProviderQuery) CollectFields ¶
func (op *OauthProviderQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*OauthProviderQuery) Count ¶
func (opq *OauthProviderQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OauthProviderQuery) CountX ¶
func (opq *OauthProviderQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OauthProviderQuery) Exist ¶
func (opq *OauthProviderQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OauthProviderQuery) ExistX ¶
func (opq *OauthProviderQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OauthProviderQuery) Filter ¶
func (opq *OauthProviderQuery) Filter() *OauthProviderFilter
Filter returns a Filter implementation to apply filters on the OauthProviderQuery builder.
func (*OauthProviderQuery) First ¶
func (opq *OauthProviderQuery) First(ctx context.Context) (*OauthProvider, error)
First returns the first OauthProvider entity from the query. Returns a *NotFoundError when no OauthProvider was found.
func (*OauthProviderQuery) FirstID ¶
func (opq *OauthProviderQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first OauthProvider ID from the query. Returns a *NotFoundError when no OauthProvider ID was found.
func (*OauthProviderQuery) FirstIDX ¶
func (opq *OauthProviderQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*OauthProviderQuery) FirstX ¶
func (opq *OauthProviderQuery) FirstX(ctx context.Context) *OauthProvider
FirstX is like First, but panics if an error occurs.
func (*OauthProviderQuery) GroupBy ¶
func (opq *OauthProviderQuery) GroupBy(field string, fields ...string) *OauthProviderGroupBy
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.OauthProvider.Query(). GroupBy(oauthprovider.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*OauthProviderQuery) IDs ¶
func (opq *OauthProviderQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of OauthProvider IDs.
func (*OauthProviderQuery) IDsX ¶
func (opq *OauthProviderQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*OauthProviderQuery) Limit ¶
func (opq *OauthProviderQuery) Limit(limit int) *OauthProviderQuery
Limit the number of records to be returned by this query.
func (*OauthProviderQuery) Offset ¶
func (opq *OauthProviderQuery) Offset(offset int) *OauthProviderQuery
Offset to start from.
func (*OauthProviderQuery) Only ¶
func (opq *OauthProviderQuery) Only(ctx context.Context) (*OauthProvider, error)
Only returns a single OauthProvider entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OauthProvider entity is found. Returns a *NotFoundError when no OauthProvider entities are found.
func (*OauthProviderQuery) OnlyID ¶
func (opq *OauthProviderQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only OauthProvider ID in the query. Returns a *NotSingularError when more than one OauthProvider ID is found. Returns a *NotFoundError when no entities are found.
func (*OauthProviderQuery) OnlyIDX ¶
func (opq *OauthProviderQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OauthProviderQuery) OnlyX ¶
func (opq *OauthProviderQuery) OnlyX(ctx context.Context) *OauthProvider
OnlyX is like Only, but panics if an error occurs.
func (*OauthProviderQuery) Order ¶
func (opq *OauthProviderQuery) Order(o ...oauthprovider.OrderOption) *OauthProviderQuery
Order specifies how the records should be ordered.
func (*OauthProviderQuery) Paginate ¶
func (op *OauthProviderQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...OauthProviderPaginateOption, ) (*OauthProviderConnection, error)
Paginate executes the query and returns a relay based cursor connection to OauthProvider.
func (*OauthProviderQuery) QueryOwner ¶
func (opq *OauthProviderQuery) QueryOwner() *OrganizationQuery
QueryOwner chains the current query on the "owner" edge.
func (*OauthProviderQuery) Select ¶
func (opq *OauthProviderQuery) Select(fields ...string) *OauthProviderSelect
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.OauthProvider.Query(). Select(oauthprovider.FieldCreatedAt). Scan(ctx, &v)
func (*OauthProviderQuery) Unique ¶
func (opq *OauthProviderQuery) Unique(unique bool) *OauthProviderQuery
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 (*OauthProviderQuery) Where ¶
func (opq *OauthProviderQuery) Where(ps ...predicate.OauthProvider) *OauthProviderQuery
Where adds a new predicate for the OauthProviderQuery builder.
func (*OauthProviderQuery) WithOwner ¶
func (opq *OauthProviderQuery) WithOwner(opts ...func(*OrganizationQuery)) *OauthProviderQuery
WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
type OauthProviderSelect ¶
type OauthProviderSelect struct { *OauthProviderQuery // contains filtered or unexported fields }
OauthProviderSelect is the builder for selecting fields of OauthProvider entities.
func (*OauthProviderSelect) Aggregate ¶
func (ops *OauthProviderSelect) Aggregate(fns ...AggregateFunc) *OauthProviderSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OauthProviderSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OauthProviderSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OauthProviderSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OauthProviderSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OauthProviderSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OauthProviderSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OauthProviderSelect) Scan ¶
func (ops *OauthProviderSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OauthProviderSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OauthProviderUpdate ¶
type OauthProviderUpdate struct {
// contains filtered or unexported fields
}
OauthProviderUpdate is the builder for updating OauthProvider entities.
func (*OauthProviderUpdate) AddAuthStyle ¶
func (opu *OauthProviderUpdate) AddAuthStyle(u int8) *OauthProviderUpdate
AddAuthStyle adds u to the "auth_style" field.
func (*OauthProviderUpdate) ClearDeletedAt ¶
func (opu *OauthProviderUpdate) ClearDeletedAt() *OauthProviderUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OauthProviderUpdate) ClearDeletedBy ¶
func (opu *OauthProviderUpdate) ClearDeletedBy() *OauthProviderUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OauthProviderUpdate) ClearOwner ¶
func (opu *OauthProviderUpdate) ClearOwner() *OauthProviderUpdate
ClearOwner clears the "owner" edge to the Organization entity.
func (*OauthProviderUpdate) ClearUpdatedBy ¶
func (opu *OauthProviderUpdate) ClearUpdatedBy() *OauthProviderUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OauthProviderUpdate) Exec ¶
func (opu *OauthProviderUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OauthProviderUpdate) ExecX ¶
func (opu *OauthProviderUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OauthProviderUpdate) Mutation ¶
func (opu *OauthProviderUpdate) Mutation() *OauthProviderMutation
Mutation returns the OauthProviderMutation object of the builder.
func (*OauthProviderUpdate) Save ¶
func (opu *OauthProviderUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OauthProviderUpdate) SaveX ¶
func (opu *OauthProviderUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OauthProviderUpdate) SetAuthStyle ¶
func (opu *OauthProviderUpdate) SetAuthStyle(u uint8) *OauthProviderUpdate
SetAuthStyle sets the "auth_style" field.
func (*OauthProviderUpdate) SetAuthURL ¶
func (opu *OauthProviderUpdate) SetAuthURL(s string) *OauthProviderUpdate
SetAuthURL sets the "auth_url" field.
func (*OauthProviderUpdate) SetClientID ¶
func (opu *OauthProviderUpdate) SetClientID(s string) *OauthProviderUpdate
SetClientID sets the "client_id" field.
func (*OauthProviderUpdate) SetClientSecret ¶
func (opu *OauthProviderUpdate) SetClientSecret(s string) *OauthProviderUpdate
SetClientSecret sets the "client_secret" field.
func (*OauthProviderUpdate) SetDeletedAt ¶
func (opu *OauthProviderUpdate) SetDeletedAt(t time.Time) *OauthProviderUpdate
SetDeletedAt sets the "deleted_at" field.
func (*OauthProviderUpdate) SetDeletedBy ¶
func (opu *OauthProviderUpdate) SetDeletedBy(s string) *OauthProviderUpdate
SetDeletedBy sets the "deleted_by" field.
func (*OauthProviderUpdate) SetInfoURL ¶
func (opu *OauthProviderUpdate) SetInfoURL(s string) *OauthProviderUpdate
SetInfoURL sets the "info_url" field.
func (*OauthProviderUpdate) SetInput ¶
func (c *OauthProviderUpdate) SetInput(i UpdateOauthProviderInput) *OauthProviderUpdate
SetInput applies the change-set in the UpdateOauthProviderInput on the OauthProviderUpdate builder.
func (*OauthProviderUpdate) SetName ¶
func (opu *OauthProviderUpdate) SetName(s string) *OauthProviderUpdate
SetName sets the "name" field.
func (*OauthProviderUpdate) SetNillableAuthStyle ¶
func (opu *OauthProviderUpdate) SetNillableAuthStyle(u *uint8) *OauthProviderUpdate
SetNillableAuthStyle sets the "auth_style" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableAuthURL ¶
func (opu *OauthProviderUpdate) SetNillableAuthURL(s *string) *OauthProviderUpdate
SetNillableAuthURL sets the "auth_url" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableClientID ¶
func (opu *OauthProviderUpdate) SetNillableClientID(s *string) *OauthProviderUpdate
SetNillableClientID sets the "client_id" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableClientSecret ¶
func (opu *OauthProviderUpdate) SetNillableClientSecret(s *string) *OauthProviderUpdate
SetNillableClientSecret sets the "client_secret" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableDeletedAt ¶
func (opu *OauthProviderUpdate) SetNillableDeletedAt(t *time.Time) *OauthProviderUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableDeletedBy ¶
func (opu *OauthProviderUpdate) SetNillableDeletedBy(s *string) *OauthProviderUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableInfoURL ¶
func (opu *OauthProviderUpdate) SetNillableInfoURL(s *string) *OauthProviderUpdate
SetNillableInfoURL sets the "info_url" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableName ¶
func (opu *OauthProviderUpdate) SetNillableName(s *string) *OauthProviderUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableOwnerID ¶
func (opu *OauthProviderUpdate) SetNillableOwnerID(id *string) *OauthProviderUpdate
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*OauthProviderUpdate) SetNillableRedirectURL ¶
func (opu *OauthProviderUpdate) SetNillableRedirectURL(s *string) *OauthProviderUpdate
SetNillableRedirectURL sets the "redirect_url" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableScopes ¶
func (opu *OauthProviderUpdate) SetNillableScopes(s *string) *OauthProviderUpdate
SetNillableScopes sets the "scopes" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableTokenURL ¶
func (opu *OauthProviderUpdate) SetNillableTokenURL(s *string) *OauthProviderUpdate
SetNillableTokenURL sets the "token_url" field if the given value is not nil.
func (*OauthProviderUpdate) SetNillableUpdatedBy ¶
func (opu *OauthProviderUpdate) SetNillableUpdatedBy(s *string) *OauthProviderUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OauthProviderUpdate) SetOwner ¶
func (opu *OauthProviderUpdate) SetOwner(o *Organization) *OauthProviderUpdate
SetOwner sets the "owner" edge to the Organization entity.
func (*OauthProviderUpdate) SetOwnerID ¶
func (opu *OauthProviderUpdate) SetOwnerID(id string) *OauthProviderUpdate
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*OauthProviderUpdate) SetRedirectURL ¶
func (opu *OauthProviderUpdate) SetRedirectURL(s string) *OauthProviderUpdate
SetRedirectURL sets the "redirect_url" field.
func (*OauthProviderUpdate) SetScopes ¶
func (opu *OauthProviderUpdate) SetScopes(s string) *OauthProviderUpdate
SetScopes sets the "scopes" field.
func (*OauthProviderUpdate) SetTokenURL ¶
func (opu *OauthProviderUpdate) SetTokenURL(s string) *OauthProviderUpdate
SetTokenURL sets the "token_url" field.
func (*OauthProviderUpdate) SetUpdatedAt ¶
func (opu *OauthProviderUpdate) SetUpdatedAt(t time.Time) *OauthProviderUpdate
SetUpdatedAt sets the "updated_at" field.
func (*OauthProviderUpdate) SetUpdatedBy ¶
func (opu *OauthProviderUpdate) SetUpdatedBy(s string) *OauthProviderUpdate
SetUpdatedBy sets the "updated_by" field.
func (*OauthProviderUpdate) Where ¶
func (opu *OauthProviderUpdate) Where(ps ...predicate.OauthProvider) *OauthProviderUpdate
Where appends a list predicates to the OauthProviderUpdate builder.
type OauthProviderUpdateOne ¶
type OauthProviderUpdateOne struct {
// contains filtered or unexported fields
}
OauthProviderUpdateOne is the builder for updating a single OauthProvider entity.
func (*OauthProviderUpdateOne) AddAuthStyle ¶
func (opuo *OauthProviderUpdateOne) AddAuthStyle(u int8) *OauthProviderUpdateOne
AddAuthStyle adds u to the "auth_style" field.
func (*OauthProviderUpdateOne) ClearDeletedAt ¶
func (opuo *OauthProviderUpdateOne) ClearDeletedAt() *OauthProviderUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OauthProviderUpdateOne) ClearDeletedBy ¶
func (opuo *OauthProviderUpdateOne) ClearDeletedBy() *OauthProviderUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OauthProviderUpdateOne) ClearOwner ¶
func (opuo *OauthProviderUpdateOne) ClearOwner() *OauthProviderUpdateOne
ClearOwner clears the "owner" edge to the Organization entity.
func (*OauthProviderUpdateOne) ClearUpdatedBy ¶
func (opuo *OauthProviderUpdateOne) ClearUpdatedBy() *OauthProviderUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OauthProviderUpdateOne) Exec ¶
func (opuo *OauthProviderUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OauthProviderUpdateOne) ExecX ¶
func (opuo *OauthProviderUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OauthProviderUpdateOne) Mutation ¶
func (opuo *OauthProviderUpdateOne) Mutation() *OauthProviderMutation
Mutation returns the OauthProviderMutation object of the builder.
func (*OauthProviderUpdateOne) Save ¶
func (opuo *OauthProviderUpdateOne) Save(ctx context.Context) (*OauthProvider, error)
Save executes the query and returns the updated OauthProvider entity.
func (*OauthProviderUpdateOne) SaveX ¶
func (opuo *OauthProviderUpdateOne) SaveX(ctx context.Context) *OauthProvider
SaveX is like Save, but panics if an error occurs.
func (*OauthProviderUpdateOne) Select ¶
func (opuo *OauthProviderUpdateOne) Select(field string, fields ...string) *OauthProviderUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OauthProviderUpdateOne) SetAuthStyle ¶
func (opuo *OauthProviderUpdateOne) SetAuthStyle(u uint8) *OauthProviderUpdateOne
SetAuthStyle sets the "auth_style" field.
func (*OauthProviderUpdateOne) SetAuthURL ¶
func (opuo *OauthProviderUpdateOne) SetAuthURL(s string) *OauthProviderUpdateOne
SetAuthURL sets the "auth_url" field.
func (*OauthProviderUpdateOne) SetClientID ¶
func (opuo *OauthProviderUpdateOne) SetClientID(s string) *OauthProviderUpdateOne
SetClientID sets the "client_id" field.
func (*OauthProviderUpdateOne) SetClientSecret ¶
func (opuo *OauthProviderUpdateOne) SetClientSecret(s string) *OauthProviderUpdateOne
SetClientSecret sets the "client_secret" field.
func (*OauthProviderUpdateOne) SetDeletedAt ¶
func (opuo *OauthProviderUpdateOne) SetDeletedAt(t time.Time) *OauthProviderUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*OauthProviderUpdateOne) SetDeletedBy ¶
func (opuo *OauthProviderUpdateOne) SetDeletedBy(s string) *OauthProviderUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*OauthProviderUpdateOne) SetInfoURL ¶
func (opuo *OauthProviderUpdateOne) SetInfoURL(s string) *OauthProviderUpdateOne
SetInfoURL sets the "info_url" field.
func (*OauthProviderUpdateOne) SetInput ¶
func (c *OauthProviderUpdateOne) SetInput(i UpdateOauthProviderInput) *OauthProviderUpdateOne
SetInput applies the change-set in the UpdateOauthProviderInput on the OauthProviderUpdateOne builder.
func (*OauthProviderUpdateOne) SetName ¶
func (opuo *OauthProviderUpdateOne) SetName(s string) *OauthProviderUpdateOne
SetName sets the "name" field.
func (*OauthProviderUpdateOne) SetNillableAuthStyle ¶
func (opuo *OauthProviderUpdateOne) SetNillableAuthStyle(u *uint8) *OauthProviderUpdateOne
SetNillableAuthStyle sets the "auth_style" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableAuthURL ¶
func (opuo *OauthProviderUpdateOne) SetNillableAuthURL(s *string) *OauthProviderUpdateOne
SetNillableAuthURL sets the "auth_url" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableClientID ¶
func (opuo *OauthProviderUpdateOne) SetNillableClientID(s *string) *OauthProviderUpdateOne
SetNillableClientID sets the "client_id" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableClientSecret ¶
func (opuo *OauthProviderUpdateOne) SetNillableClientSecret(s *string) *OauthProviderUpdateOne
SetNillableClientSecret sets the "client_secret" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableDeletedAt ¶
func (opuo *OauthProviderUpdateOne) SetNillableDeletedAt(t *time.Time) *OauthProviderUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableDeletedBy ¶
func (opuo *OauthProviderUpdateOne) SetNillableDeletedBy(s *string) *OauthProviderUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableInfoURL ¶
func (opuo *OauthProviderUpdateOne) SetNillableInfoURL(s *string) *OauthProviderUpdateOne
SetNillableInfoURL sets the "info_url" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableName ¶
func (opuo *OauthProviderUpdateOne) SetNillableName(s *string) *OauthProviderUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableOwnerID ¶
func (opuo *OauthProviderUpdateOne) SetNillableOwnerID(id *string) *OauthProviderUpdateOne
SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableRedirectURL ¶
func (opuo *OauthProviderUpdateOne) SetNillableRedirectURL(s *string) *OauthProviderUpdateOne
SetNillableRedirectURL sets the "redirect_url" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableScopes ¶
func (opuo *OauthProviderUpdateOne) SetNillableScopes(s *string) *OauthProviderUpdateOne
SetNillableScopes sets the "scopes" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableTokenURL ¶
func (opuo *OauthProviderUpdateOne) SetNillableTokenURL(s *string) *OauthProviderUpdateOne
SetNillableTokenURL sets the "token_url" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetNillableUpdatedBy ¶
func (opuo *OauthProviderUpdateOne) SetNillableUpdatedBy(s *string) *OauthProviderUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OauthProviderUpdateOne) SetOwner ¶
func (opuo *OauthProviderUpdateOne) SetOwner(o *Organization) *OauthProviderUpdateOne
SetOwner sets the "owner" edge to the Organization entity.
func (*OauthProviderUpdateOne) SetOwnerID ¶
func (opuo *OauthProviderUpdateOne) SetOwnerID(id string) *OauthProviderUpdateOne
SetOwnerID sets the "owner" edge to the Organization entity by ID.
func (*OauthProviderUpdateOne) SetRedirectURL ¶
func (opuo *OauthProviderUpdateOne) SetRedirectURL(s string) *OauthProviderUpdateOne
SetRedirectURL sets the "redirect_url" field.
func (*OauthProviderUpdateOne) SetScopes ¶
func (opuo *OauthProviderUpdateOne) SetScopes(s string) *OauthProviderUpdateOne
SetScopes sets the "scopes" field.
func (*OauthProviderUpdateOne) SetTokenURL ¶
func (opuo *OauthProviderUpdateOne) SetTokenURL(s string) *OauthProviderUpdateOne
SetTokenURL sets the "token_url" field.
func (*OauthProviderUpdateOne) SetUpdatedAt ¶
func (opuo *OauthProviderUpdateOne) SetUpdatedAt(t time.Time) *OauthProviderUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*OauthProviderUpdateOne) SetUpdatedBy ¶
func (opuo *OauthProviderUpdateOne) SetUpdatedBy(s string) *OauthProviderUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*OauthProviderUpdateOne) Where ¶
func (opuo *OauthProviderUpdateOne) Where(ps ...predicate.OauthProvider) *OauthProviderUpdateOne
Where appends a list predicates to the OauthProviderUpdate builder.
type OauthProviderWhereInput ¶
type OauthProviderWhereInput struct { Predicates []predicate.OauthProvider `json:"-"` Not *OauthProviderWhereInput `json:"not,omitempty"` Or []*OauthProviderWhereInput `json:"or,omitempty"` And []*OauthProviderWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` // "client_id" field predicates. ClientID *string `json:"clientID,omitempty"` ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` ClientIDIn []string `json:"clientIDIn,omitempty"` ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` ClientIDGT *string `json:"clientIDGT,omitempty"` ClientIDGTE *string `json:"clientIDGTE,omitempty"` ClientIDLT *string `json:"clientIDLT,omitempty"` ClientIDLTE *string `json:"clientIDLTE,omitempty"` ClientIDContains *string `json:"clientIDContains,omitempty"` ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` // "client_secret" field predicates. ClientSecret *string `json:"clientSecret,omitempty"` ClientSecretNEQ *string `json:"clientSecretNEQ,omitempty"` ClientSecretIn []string `json:"clientSecretIn,omitempty"` ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` ClientSecretGT *string `json:"clientSecretGT,omitempty"` ClientSecretGTE *string `json:"clientSecretGTE,omitempty"` ClientSecretLT *string `json:"clientSecretLT,omitempty"` ClientSecretLTE *string `json:"clientSecretLTE,omitempty"` ClientSecretContains *string `json:"clientSecretContains,omitempty"` ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` // "redirect_url" field predicates. RedirectURL *string `json:"redirectURL,omitempty"` RedirectURLNEQ *string `json:"redirectURLNEQ,omitempty"` RedirectURLIn []string `json:"redirectURLIn,omitempty"` RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` RedirectURLGT *string `json:"redirectURLGT,omitempty"` RedirectURLGTE *string `json:"redirectURLGTE,omitempty"` RedirectURLLT *string `json:"redirectURLLT,omitempty"` RedirectURLLTE *string `json:"redirectURLLTE,omitempty"` RedirectURLContains *string `json:"redirectURLContains,omitempty"` RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` // "scopes" field predicates. Scopes *string `json:"scopes,omitempty"` ScopesNEQ *string `json:"scopesNEQ,omitempty"` ScopesIn []string `json:"scopesIn,omitempty"` ScopesNotIn []string `json:"scopesNotIn,omitempty"` ScopesGT *string `json:"scopesGT,omitempty"` ScopesGTE *string `json:"scopesGTE,omitempty"` ScopesLT *string `json:"scopesLT,omitempty"` ScopesLTE *string `json:"scopesLTE,omitempty"` ScopesContains *string `json:"scopesContains,omitempty"` ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` // "auth_url" field predicates. AuthURL *string `json:"authURL,omitempty"` AuthURLNEQ *string `json:"authURLNEQ,omitempty"` AuthURLIn []string `json:"authURLIn,omitempty"` AuthURLNotIn []string `json:"authURLNotIn,omitempty"` AuthURLGT *string `json:"authURLGT,omitempty"` AuthURLGTE *string `json:"authURLGTE,omitempty"` AuthURLLT *string `json:"authURLLT,omitempty"` AuthURLLTE *string `json:"authURLLTE,omitempty"` AuthURLContains *string `json:"authURLContains,omitempty"` AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` // "token_url" field predicates. TokenURL *string `json:"tokenURL,omitempty"` TokenURLNEQ *string `json:"tokenURLNEQ,omitempty"` TokenURLIn []string `json:"tokenURLIn,omitempty"` TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` TokenURLGT *string `json:"tokenURLGT,omitempty"` TokenURLGTE *string `json:"tokenURLGTE,omitempty"` TokenURLLT *string `json:"tokenURLLT,omitempty"` TokenURLLTE *string `json:"tokenURLLTE,omitempty"` TokenURLContains *string `json:"tokenURLContains,omitempty"` TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` // "auth_style" field predicates. AuthStyle *uint8 `json:"authStyle,omitempty"` AuthStyleNEQ *uint8 `json:"authStyleNEQ,omitempty"` AuthStyleIn []uint8 `json:"authStyleIn,omitempty"` AuthStyleNotIn []uint8 `json:"authStyleNotIn,omitempty"` AuthStyleGT *uint8 `json:"authStyleGT,omitempty"` AuthStyleGTE *uint8 `json:"authStyleGTE,omitempty"` AuthStyleLT *uint8 `json:"authStyleLT,omitempty"` AuthStyleLTE *uint8 `json:"authStyleLTE,omitempty"` // "info_url" field predicates. InfoURL *string `json:"infoURL,omitempty"` InfoURLNEQ *string `json:"infoURLNEQ,omitempty"` InfoURLIn []string `json:"infoURLIn,omitempty"` InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` InfoURLGT *string `json:"infoURLGT,omitempty"` InfoURLGTE *string `json:"infoURLGTE,omitempty"` InfoURLLT *string `json:"infoURLLT,omitempty"` InfoURLLTE *string `json:"infoURLLTE,omitempty"` InfoURLContains *string `json:"infoURLContains,omitempty"` InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` }
OauthProviderWhereInput represents a where input for filtering OauthProvider queries.
func (*OauthProviderWhereInput) AddPredicates ¶
func (i *OauthProviderWhereInput) AddPredicates(predicates ...predicate.OauthProvider)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*OauthProviderWhereInput) Filter ¶
func (i *OauthProviderWhereInput) Filter(q *OauthProviderQuery) (*OauthProviderQuery, error)
Filter applies the OauthProviderWhereInput filter on the OauthProviderQuery builder.
func (*OauthProviderWhereInput) P ¶
func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error)
P returns a predicate for filtering oauthproviders. An error is returned if the input is empty or invalid.
type OauthProviders ¶
type OauthProviders []*OauthProvider
OauthProviders is a parsable slice of OauthProvider.
type OhAuthTooToken ¶
type OhAuthTooToken struct { // ID of the ent. ID string `json:"id,omitempty"` // ClientID holds the value of the "client_id" field. ClientID string `json:"client_id,omitempty"` // Scopes holds the value of the "scopes" field. Scopes []string `json:"scopes,omitempty"` // Nonce holds the value of the "nonce" field. Nonce string `json:"nonce,omitempty"` // ClaimsUserID holds the value of the "claims_user_id" field. ClaimsUserID string `json:"claims_user_id,omitempty"` // ClaimsUsername holds the value of the "claims_username" field. ClaimsUsername string `json:"claims_username,omitempty"` // ClaimsEmail holds the value of the "claims_email" field. ClaimsEmail string `json:"claims_email,omitempty"` // ClaimsEmailVerified holds the value of the "claims_email_verified" field. ClaimsEmailVerified bool `json:"claims_email_verified,omitempty"` // ClaimsGroups holds the value of the "claims_groups" field. ClaimsGroups []string `json:"claims_groups,omitempty"` // ClaimsPreferredUsername holds the value of the "claims_preferred_username" field. ClaimsPreferredUsername string `json:"claims_preferred_username,omitempty"` // ConnectorID holds the value of the "connector_id" field. ConnectorID string `json:"connector_id,omitempty"` // ConnectorData holds the value of the "connector_data" field. ConnectorData []string `json:"connector_data,omitempty"` // LastUsed holds the value of the "last_used" field. LastUsed time.Time `json:"last_used,omitempty"` // contains filtered or unexported fields }
OhAuthTooToken is the model entity for the OhAuthTooToken schema.
func (*OhAuthTooToken) IsNode ¶
func (n *OhAuthTooToken) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*OhAuthTooToken) String ¶
func (oatt *OhAuthTooToken) String() string
String implements the fmt.Stringer.
func (*OhAuthTooToken) ToEdge ¶
func (oatt *OhAuthTooToken) ToEdge(order *OhAuthTooTokenOrder) *OhAuthTooTokenEdge
ToEdge converts OhAuthTooToken into OhAuthTooTokenEdge.
func (*OhAuthTooToken) Unwrap ¶
func (oatt *OhAuthTooToken) Unwrap() *OhAuthTooToken
Unwrap unwraps the OhAuthTooToken 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 (*OhAuthTooToken) Update ¶
func (oatt *OhAuthTooToken) Update() *OhAuthTooTokenUpdateOne
Update returns a builder for updating this OhAuthTooToken. Note that you need to call OhAuthTooToken.Unwrap() before calling this method if this OhAuthTooToken was returned from a transaction, and the transaction was committed or rolled back.
type OhAuthTooTokenClient ¶
type OhAuthTooTokenClient struct {
// contains filtered or unexported fields
}
OhAuthTooTokenClient is a client for the OhAuthTooToken schema.
func NewOhAuthTooTokenClient ¶
func NewOhAuthTooTokenClient(c config) *OhAuthTooTokenClient
NewOhAuthTooTokenClient returns a client for the OhAuthTooToken from the given config.
func (*OhAuthTooTokenClient) Create ¶
func (c *OhAuthTooTokenClient) Create() *OhAuthTooTokenCreate
Create returns a builder for creating a OhAuthTooToken entity.
func (*OhAuthTooTokenClient) CreateBulk ¶
func (c *OhAuthTooTokenClient) CreateBulk(builders ...*OhAuthTooTokenCreate) *OhAuthTooTokenCreateBulk
CreateBulk returns a builder for creating a bulk of OhAuthTooToken entities.
func (*OhAuthTooTokenClient) Delete ¶
func (c *OhAuthTooTokenClient) Delete() *OhAuthTooTokenDelete
Delete returns a delete builder for OhAuthTooToken.
func (*OhAuthTooTokenClient) DeleteOne ¶
func (c *OhAuthTooTokenClient) DeleteOne(oatt *OhAuthTooToken) *OhAuthTooTokenDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OhAuthTooTokenClient) DeleteOneID ¶
func (c *OhAuthTooTokenClient) DeleteOneID(id string) *OhAuthTooTokenDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OhAuthTooTokenClient) Get ¶
func (c *OhAuthTooTokenClient) Get(ctx context.Context, id string) (*OhAuthTooToken, error)
Get returns a OhAuthTooToken entity by its id.
func (*OhAuthTooTokenClient) GetX ¶
func (c *OhAuthTooTokenClient) GetX(ctx context.Context, id string) *OhAuthTooToken
GetX is like Get, but panics if an error occurs.
func (*OhAuthTooTokenClient) Hooks ¶
func (c *OhAuthTooTokenClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OhAuthTooTokenClient) Intercept ¶
func (c *OhAuthTooTokenClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `ohauthtootoken.Intercept(f(g(h())))`.
func (*OhAuthTooTokenClient) Interceptors ¶
func (c *OhAuthTooTokenClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OhAuthTooTokenClient) MapCreateBulk ¶
func (c *OhAuthTooTokenClient) MapCreateBulk(slice any, setFunc func(*OhAuthTooTokenCreate, int)) *OhAuthTooTokenCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OhAuthTooTokenClient) Query ¶
func (c *OhAuthTooTokenClient) Query() *OhAuthTooTokenQuery
Query returns a query builder for OhAuthTooToken.
func (*OhAuthTooTokenClient) Update ¶
func (c *OhAuthTooTokenClient) Update() *OhAuthTooTokenUpdate
Update returns an update builder for OhAuthTooToken.
func (*OhAuthTooTokenClient) UpdateOne ¶
func (c *OhAuthTooTokenClient) UpdateOne(oatt *OhAuthTooToken) *OhAuthTooTokenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OhAuthTooTokenClient) UpdateOneID ¶
func (c *OhAuthTooTokenClient) UpdateOneID(id string) *OhAuthTooTokenUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OhAuthTooTokenClient) Use ¶
func (c *OhAuthTooTokenClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `ohauthtootoken.Hooks(f(g(h())))`.
type OhAuthTooTokenConnection ¶
type OhAuthTooTokenConnection struct { Edges []*OhAuthTooTokenEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
OhAuthTooTokenConnection is the connection containing edges to OhAuthTooToken.
type OhAuthTooTokenCreate ¶
type OhAuthTooTokenCreate struct {
// contains filtered or unexported fields
}
OhAuthTooTokenCreate is the builder for creating a OhAuthTooToken entity.
func (*OhAuthTooTokenCreate) Exec ¶
func (oattc *OhAuthTooTokenCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OhAuthTooTokenCreate) ExecX ¶
func (oattc *OhAuthTooTokenCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OhAuthTooTokenCreate) Mutation ¶
func (oattc *OhAuthTooTokenCreate) Mutation() *OhAuthTooTokenMutation
Mutation returns the OhAuthTooTokenMutation object of the builder.
func (*OhAuthTooTokenCreate) Save ¶
func (oattc *OhAuthTooTokenCreate) Save(ctx context.Context) (*OhAuthTooToken, error)
Save creates the OhAuthTooToken in the database.
func (*OhAuthTooTokenCreate) SaveX ¶
func (oattc *OhAuthTooTokenCreate) SaveX(ctx context.Context) *OhAuthTooToken
SaveX calls Save and panics if Save returns an error.
func (*OhAuthTooTokenCreate) SetClaimsEmail ¶
func (oattc *OhAuthTooTokenCreate) SetClaimsEmail(s string) *OhAuthTooTokenCreate
SetClaimsEmail sets the "claims_email" field.
func (*OhAuthTooTokenCreate) SetClaimsEmailVerified ¶
func (oattc *OhAuthTooTokenCreate) SetClaimsEmailVerified(b bool) *OhAuthTooTokenCreate
SetClaimsEmailVerified sets the "claims_email_verified" field.
func (*OhAuthTooTokenCreate) SetClaimsGroups ¶
func (oattc *OhAuthTooTokenCreate) SetClaimsGroups(s []string) *OhAuthTooTokenCreate
SetClaimsGroups sets the "claims_groups" field.
func (*OhAuthTooTokenCreate) SetClaimsPreferredUsername ¶
func (oattc *OhAuthTooTokenCreate) SetClaimsPreferredUsername(s string) *OhAuthTooTokenCreate
SetClaimsPreferredUsername sets the "claims_preferred_username" field.
func (*OhAuthTooTokenCreate) SetClaimsUserID ¶
func (oattc *OhAuthTooTokenCreate) SetClaimsUserID(s string) *OhAuthTooTokenCreate
SetClaimsUserID sets the "claims_user_id" field.
func (*OhAuthTooTokenCreate) SetClaimsUsername ¶
func (oattc *OhAuthTooTokenCreate) SetClaimsUsername(s string) *OhAuthTooTokenCreate
SetClaimsUsername sets the "claims_username" field.
func (*OhAuthTooTokenCreate) SetClientID ¶
func (oattc *OhAuthTooTokenCreate) SetClientID(s string) *OhAuthTooTokenCreate
SetClientID sets the "client_id" field.
func (*OhAuthTooTokenCreate) SetConnectorData ¶
func (oattc *OhAuthTooTokenCreate) SetConnectorData(s []string) *OhAuthTooTokenCreate
SetConnectorData sets the "connector_data" field.
func (*OhAuthTooTokenCreate) SetConnectorID ¶
func (oattc *OhAuthTooTokenCreate) SetConnectorID(s string) *OhAuthTooTokenCreate
SetConnectorID sets the "connector_id" field.
func (*OhAuthTooTokenCreate) SetID ¶
func (oattc *OhAuthTooTokenCreate) SetID(s string) *OhAuthTooTokenCreate
SetID sets the "id" field.
func (*OhAuthTooTokenCreate) SetInput ¶
func (c *OhAuthTooTokenCreate) SetInput(i CreateOhAuthTooTokenInput) *OhAuthTooTokenCreate
SetInput applies the change-set in the CreateOhAuthTooTokenInput on the OhAuthTooTokenCreate builder.
func (*OhAuthTooTokenCreate) SetLastUsed ¶
func (oattc *OhAuthTooTokenCreate) SetLastUsed(t time.Time) *OhAuthTooTokenCreate
SetLastUsed sets the "last_used" field.
func (*OhAuthTooTokenCreate) SetNillableID ¶
func (oattc *OhAuthTooTokenCreate) SetNillableID(s *string) *OhAuthTooTokenCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OhAuthTooTokenCreate) SetNillableLastUsed ¶
func (oattc *OhAuthTooTokenCreate) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenCreate
SetNillableLastUsed sets the "last_used" field if the given value is not nil.
func (*OhAuthTooTokenCreate) SetNonce ¶
func (oattc *OhAuthTooTokenCreate) SetNonce(s string) *OhAuthTooTokenCreate
SetNonce sets the "nonce" field.
func (*OhAuthTooTokenCreate) SetScopes ¶
func (oattc *OhAuthTooTokenCreate) SetScopes(s []string) *OhAuthTooTokenCreate
SetScopes sets the "scopes" field.
type OhAuthTooTokenCreateBulk ¶
type OhAuthTooTokenCreateBulk struct {
// contains filtered or unexported fields
}
OhAuthTooTokenCreateBulk is the builder for creating many OhAuthTooToken entities in bulk.
func (*OhAuthTooTokenCreateBulk) Exec ¶
func (oattcb *OhAuthTooTokenCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OhAuthTooTokenCreateBulk) ExecX ¶
func (oattcb *OhAuthTooTokenCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OhAuthTooTokenCreateBulk) Save ¶
func (oattcb *OhAuthTooTokenCreateBulk) Save(ctx context.Context) ([]*OhAuthTooToken, error)
Save creates the OhAuthTooToken entities in the database.
func (*OhAuthTooTokenCreateBulk) SaveX ¶
func (oattcb *OhAuthTooTokenCreateBulk) SaveX(ctx context.Context) []*OhAuthTooToken
SaveX is like Save, but panics if an error occurs.
type OhAuthTooTokenDelete ¶
type OhAuthTooTokenDelete struct {
// contains filtered or unexported fields
}
OhAuthTooTokenDelete is the builder for deleting a OhAuthTooToken entity.
func (*OhAuthTooTokenDelete) Exec ¶
func (oattd *OhAuthTooTokenDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OhAuthTooTokenDelete) ExecX ¶
func (oattd *OhAuthTooTokenDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OhAuthTooTokenDelete) Where ¶
func (oattd *OhAuthTooTokenDelete) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenDelete
Where appends a list predicates to the OhAuthTooTokenDelete builder.
type OhAuthTooTokenDeleteOne ¶
type OhAuthTooTokenDeleteOne struct {
// contains filtered or unexported fields
}
OhAuthTooTokenDeleteOne is the builder for deleting a single OhAuthTooToken entity.
func (*OhAuthTooTokenDeleteOne) Exec ¶
func (oattdo *OhAuthTooTokenDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OhAuthTooTokenDeleteOne) ExecX ¶
func (oattdo *OhAuthTooTokenDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OhAuthTooTokenDeleteOne) Where ¶
func (oattdo *OhAuthTooTokenDeleteOne) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenDeleteOne
Where appends a list predicates to the OhAuthTooTokenDelete builder.
type OhAuthTooTokenEdge ¶
type OhAuthTooTokenEdge struct { Node *OhAuthTooToken `json:"node"` Cursor Cursor `json:"cursor"` }
OhAuthTooTokenEdge is the edge representation of OhAuthTooToken.
type OhAuthTooTokenFilter ¶
type OhAuthTooTokenFilter struct {
// contains filtered or unexported fields
}
OhAuthTooTokenFilter provides a generic filtering capability at runtime for OhAuthTooTokenQuery.
func (*OhAuthTooTokenFilter) Where ¶
func (f *OhAuthTooTokenFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*OhAuthTooTokenFilter) WhereClaimsEmail ¶
func (f *OhAuthTooTokenFilter) WhereClaimsEmail(p entql.StringP)
WhereClaimsEmail applies the entql string predicate on the claims_email field.
func (*OhAuthTooTokenFilter) WhereClaimsEmailVerified ¶
func (f *OhAuthTooTokenFilter) WhereClaimsEmailVerified(p entql.BoolP)
WhereClaimsEmailVerified applies the entql bool predicate on the claims_email_verified field.
func (*OhAuthTooTokenFilter) WhereClaimsGroups ¶
func (f *OhAuthTooTokenFilter) WhereClaimsGroups(p entql.BytesP)
WhereClaimsGroups applies the entql json.RawMessage predicate on the claims_groups field.
func (*OhAuthTooTokenFilter) WhereClaimsPreferredUsername ¶
func (f *OhAuthTooTokenFilter) WhereClaimsPreferredUsername(p entql.StringP)
WhereClaimsPreferredUsername applies the entql string predicate on the claims_preferred_username field.
func (*OhAuthTooTokenFilter) WhereClaimsUserID ¶
func (f *OhAuthTooTokenFilter) WhereClaimsUserID(p entql.StringP)
WhereClaimsUserID applies the entql string predicate on the claims_user_id field.
func (*OhAuthTooTokenFilter) WhereClaimsUsername ¶
func (f *OhAuthTooTokenFilter) WhereClaimsUsername(p entql.StringP)
WhereClaimsUsername applies the entql string predicate on the claims_username field.
func (*OhAuthTooTokenFilter) WhereClientID ¶
func (f *OhAuthTooTokenFilter) WhereClientID(p entql.StringP)
WhereClientID applies the entql string predicate on the client_id field.
func (*OhAuthTooTokenFilter) WhereConnectorData ¶
func (f *OhAuthTooTokenFilter) WhereConnectorData(p entql.BytesP)
WhereConnectorData applies the entql json.RawMessage predicate on the connector_data field.
func (*OhAuthTooTokenFilter) WhereConnectorID ¶
func (f *OhAuthTooTokenFilter) WhereConnectorID(p entql.StringP)
WhereConnectorID applies the entql string predicate on the connector_id field.
func (*OhAuthTooTokenFilter) WhereID ¶
func (f *OhAuthTooTokenFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*OhAuthTooTokenFilter) WhereLastUsed ¶
func (f *OhAuthTooTokenFilter) WhereLastUsed(p entql.TimeP)
WhereLastUsed applies the entql time.Time predicate on the last_used field.
func (*OhAuthTooTokenFilter) WhereNonce ¶
func (f *OhAuthTooTokenFilter) WhereNonce(p entql.StringP)
WhereNonce applies the entql string predicate on the nonce field.
func (*OhAuthTooTokenFilter) WhereScopes ¶
func (f *OhAuthTooTokenFilter) WhereScopes(p entql.BytesP)
WhereScopes applies the entql json.RawMessage predicate on the scopes field.
type OhAuthTooTokenGroupBy ¶
type OhAuthTooTokenGroupBy struct {
// contains filtered or unexported fields
}
OhAuthTooTokenGroupBy is the group-by builder for OhAuthTooToken entities.
func (*OhAuthTooTokenGroupBy) Aggregate ¶
func (oattgb *OhAuthTooTokenGroupBy) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OhAuthTooTokenGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*OhAuthTooTokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenGroupBy) Scan ¶
func (oattgb *OhAuthTooTokenGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OhAuthTooTokenGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OhAuthTooTokenMutation ¶
type OhAuthTooTokenMutation struct {
// contains filtered or unexported fields
}
OhAuthTooTokenMutation represents an operation that mutates the OhAuthTooToken nodes in the graph.
func (*OhAuthTooTokenMutation) AddField ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) AddedEdges ¶
func (m *OhAuthTooTokenMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OhAuthTooTokenMutation) AddedField ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) AddedFields ¶
func (m *OhAuthTooTokenMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OhAuthTooTokenMutation) AddedIDs ¶
func (m *OhAuthTooTokenMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OhAuthTooTokenMutation) AppendClaimsGroups ¶
func (m *OhAuthTooTokenMutation) AppendClaimsGroups(s []string)
AppendClaimsGroups adds s to the "claims_groups" field.
func (*OhAuthTooTokenMutation) AppendConnectorData ¶
func (m *OhAuthTooTokenMutation) AppendConnectorData(s []string)
AppendConnectorData adds s to the "connector_data" field.
func (*OhAuthTooTokenMutation) AppendScopes ¶
func (m *OhAuthTooTokenMutation) AppendScopes(s []string)
AppendScopes adds s to the "scopes" field.
func (*OhAuthTooTokenMutation) AppendedClaimsGroups ¶
func (m *OhAuthTooTokenMutation) AppendedClaimsGroups() ([]string, bool)
AppendedClaimsGroups returns the list of values that were appended to the "claims_groups" field in this mutation.
func (*OhAuthTooTokenMutation) AppendedConnectorData ¶
func (m *OhAuthTooTokenMutation) AppendedConnectorData() ([]string, bool)
AppendedConnectorData returns the list of values that were appended to the "connector_data" field in this mutation.
func (*OhAuthTooTokenMutation) AppendedScopes ¶
func (m *OhAuthTooTokenMutation) AppendedScopes() ([]string, bool)
AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation.
func (*OhAuthTooTokenMutation) ClaimsEmail ¶
func (m *OhAuthTooTokenMutation) ClaimsEmail() (r string, exists bool)
ClaimsEmail returns the value of the "claims_email" field in the mutation.
func (*OhAuthTooTokenMutation) ClaimsEmailVerified ¶
func (m *OhAuthTooTokenMutation) ClaimsEmailVerified() (r bool, exists bool)
ClaimsEmailVerified returns the value of the "claims_email_verified" field in the mutation.
func (*OhAuthTooTokenMutation) ClaimsGroups ¶
func (m *OhAuthTooTokenMutation) ClaimsGroups() (r []string, exists bool)
ClaimsGroups returns the value of the "claims_groups" field in the mutation.
func (*OhAuthTooTokenMutation) ClaimsGroupsCleared ¶
func (m *OhAuthTooTokenMutation) ClaimsGroupsCleared() bool
ClaimsGroupsCleared returns if the "claims_groups" field was cleared in this mutation.
func (*OhAuthTooTokenMutation) ClaimsPreferredUsername ¶
func (m *OhAuthTooTokenMutation) ClaimsPreferredUsername() (r string, exists bool)
ClaimsPreferredUsername returns the value of the "claims_preferred_username" field in the mutation.
func (*OhAuthTooTokenMutation) ClaimsUserID ¶
func (m *OhAuthTooTokenMutation) ClaimsUserID() (r string, exists bool)
ClaimsUserID returns the value of the "claims_user_id" field in the mutation.
func (*OhAuthTooTokenMutation) ClaimsUsername ¶
func (m *OhAuthTooTokenMutation) ClaimsUsername() (r string, exists bool)
ClaimsUsername returns the value of the "claims_username" field in the mutation.
func (*OhAuthTooTokenMutation) ClearClaimsGroups ¶
func (m *OhAuthTooTokenMutation) ClearClaimsGroups()
ClearClaimsGroups clears the value of the "claims_groups" field.
func (*OhAuthTooTokenMutation) ClearConnectorData ¶
func (m *OhAuthTooTokenMutation) ClearConnectorData()
ClearConnectorData clears the value of the "connector_data" field.
func (*OhAuthTooTokenMutation) ClearEdge ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) ClearField ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) ClearScopes ¶
func (m *OhAuthTooTokenMutation) ClearScopes()
ClearScopes clears the value of the "scopes" field.
func (*OhAuthTooTokenMutation) ClearedEdges ¶
func (m *OhAuthTooTokenMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OhAuthTooTokenMutation) ClearedFields ¶
func (m *OhAuthTooTokenMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OhAuthTooTokenMutation) Client ¶
func (m OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) ClientID ¶
func (m *OhAuthTooTokenMutation) ClientID() (r string, exists bool)
ClientID returns the value of the "client_id" field in the mutation.
func (*OhAuthTooTokenMutation) ConnectorData ¶
func (m *OhAuthTooTokenMutation) ConnectorData() (r []string, exists bool)
ConnectorData returns the value of the "connector_data" field in the mutation.
func (*OhAuthTooTokenMutation) ConnectorDataCleared ¶
func (m *OhAuthTooTokenMutation) ConnectorDataCleared() bool
ConnectorDataCleared returns if the "connector_data" field was cleared in this mutation.
func (*OhAuthTooTokenMutation) ConnectorID ¶
func (m *OhAuthTooTokenMutation) ConnectorID() (r string, exists bool)
ConnectorID returns the value of the "connector_id" field in the mutation.
func (*OhAuthTooTokenMutation) EdgeCleared ¶
func (m *OhAuthTooTokenMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OhAuthTooTokenMutation) Field ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) FieldCleared ¶
func (m *OhAuthTooTokenMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OhAuthTooTokenMutation) Fields ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) Filter ¶
func (m *OhAuthTooTokenMutation) Filter() *OhAuthTooTokenFilter
Filter returns an entql.Where implementation to apply filters on the OhAuthTooTokenMutation builder.
func (*OhAuthTooTokenMutation) ID ¶
func (m *OhAuthTooTokenMutation) ID() (id string, 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 (*OhAuthTooTokenMutation) IDs ¶
func (m *OhAuthTooTokenMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OhAuthTooTokenMutation) LastUsed ¶
func (m *OhAuthTooTokenMutation) LastUsed() (r time.Time, exists bool)
LastUsed returns the value of the "last_used" field in the mutation.
func (*OhAuthTooTokenMutation) Nonce ¶
func (m *OhAuthTooTokenMutation) Nonce() (r string, exists bool)
Nonce returns the value of the "nonce" field in the mutation.
func (*OhAuthTooTokenMutation) OldClaimsEmail ¶
func (m *OhAuthTooTokenMutation) OldClaimsEmail(ctx context.Context) (v string, err error)
OldClaimsEmail returns the old "claims_email" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldClaimsEmailVerified ¶
func (m *OhAuthTooTokenMutation) OldClaimsEmailVerified(ctx context.Context) (v bool, err error)
OldClaimsEmailVerified returns the old "claims_email_verified" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldClaimsGroups ¶
func (m *OhAuthTooTokenMutation) OldClaimsGroups(ctx context.Context) (v []string, err error)
OldClaimsGroups returns the old "claims_groups" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldClaimsPreferredUsername ¶
func (m *OhAuthTooTokenMutation) OldClaimsPreferredUsername(ctx context.Context) (v string, err error)
OldClaimsPreferredUsername returns the old "claims_preferred_username" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldClaimsUserID ¶
func (m *OhAuthTooTokenMutation) OldClaimsUserID(ctx context.Context) (v string, err error)
OldClaimsUserID returns the old "claims_user_id" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldClaimsUsername ¶
func (m *OhAuthTooTokenMutation) OldClaimsUsername(ctx context.Context) (v string, err error)
OldClaimsUsername returns the old "claims_username" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldClientID ¶
func (m *OhAuthTooTokenMutation) OldClientID(ctx context.Context) (v string, err error)
OldClientID returns the old "client_id" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldConnectorData ¶
func (m *OhAuthTooTokenMutation) OldConnectorData(ctx context.Context) (v []string, err error)
OldConnectorData returns the old "connector_data" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldConnectorID ¶
func (m *OhAuthTooTokenMutation) OldConnectorID(ctx context.Context) (v string, err error)
OldConnectorID returns the old "connector_id" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) OldLastUsed ¶
OldLastUsed returns the old "last_used" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldNonce ¶
func (m *OhAuthTooTokenMutation) OldNonce(ctx context.Context) (v string, err error)
OldNonce returns the old "nonce" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) OldScopes ¶
func (m *OhAuthTooTokenMutation) OldScopes(ctx context.Context) (v []string, err error)
OldScopes returns the old "scopes" field's value of the OhAuthTooToken entity. If the OhAuthTooToken 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 (*OhAuthTooTokenMutation) Op ¶
func (m *OhAuthTooTokenMutation) Op() Op
Op returns the operation name.
func (*OhAuthTooTokenMutation) RemovedEdges ¶
func (m *OhAuthTooTokenMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OhAuthTooTokenMutation) RemovedIDs ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) ResetClaimsEmail ¶
func (m *OhAuthTooTokenMutation) ResetClaimsEmail()
ResetClaimsEmail resets all changes to the "claims_email" field.
func (*OhAuthTooTokenMutation) ResetClaimsEmailVerified ¶
func (m *OhAuthTooTokenMutation) ResetClaimsEmailVerified()
ResetClaimsEmailVerified resets all changes to the "claims_email_verified" field.
func (*OhAuthTooTokenMutation) ResetClaimsGroups ¶
func (m *OhAuthTooTokenMutation) ResetClaimsGroups()
ResetClaimsGroups resets all changes to the "claims_groups" field.
func (*OhAuthTooTokenMutation) ResetClaimsPreferredUsername ¶
func (m *OhAuthTooTokenMutation) ResetClaimsPreferredUsername()
ResetClaimsPreferredUsername resets all changes to the "claims_preferred_username" field.
func (*OhAuthTooTokenMutation) ResetClaimsUserID ¶
func (m *OhAuthTooTokenMutation) ResetClaimsUserID()
ResetClaimsUserID resets all changes to the "claims_user_id" field.
func (*OhAuthTooTokenMutation) ResetClaimsUsername ¶
func (m *OhAuthTooTokenMutation) ResetClaimsUsername()
ResetClaimsUsername resets all changes to the "claims_username" field.
func (*OhAuthTooTokenMutation) ResetClientID ¶
func (m *OhAuthTooTokenMutation) ResetClientID()
ResetClientID resets all changes to the "client_id" field.
func (*OhAuthTooTokenMutation) ResetConnectorData ¶
func (m *OhAuthTooTokenMutation) ResetConnectorData()
ResetConnectorData resets all changes to the "connector_data" field.
func (*OhAuthTooTokenMutation) ResetConnectorID ¶
func (m *OhAuthTooTokenMutation) ResetConnectorID()
ResetConnectorID resets all changes to the "connector_id" field.
func (*OhAuthTooTokenMutation) ResetEdge ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) ResetField ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) ResetLastUsed ¶
func (m *OhAuthTooTokenMutation) ResetLastUsed()
ResetLastUsed resets all changes to the "last_used" field.
func (*OhAuthTooTokenMutation) ResetNonce ¶
func (m *OhAuthTooTokenMutation) ResetNonce()
ResetNonce resets all changes to the "nonce" field.
func (*OhAuthTooTokenMutation) ResetScopes ¶
func (m *OhAuthTooTokenMutation) ResetScopes()
ResetScopes resets all changes to the "scopes" field.
func (*OhAuthTooTokenMutation) Scopes ¶
func (m *OhAuthTooTokenMutation) Scopes() (r []string, exists bool)
Scopes returns the value of the "scopes" field in the mutation.
func (*OhAuthTooTokenMutation) ScopesCleared ¶
func (m *OhAuthTooTokenMutation) ScopesCleared() bool
ScopesCleared returns if the "scopes" field was cleared in this mutation.
func (*OhAuthTooTokenMutation) SetClaimsEmail ¶
func (m *OhAuthTooTokenMutation) SetClaimsEmail(s string)
SetClaimsEmail sets the "claims_email" field.
func (*OhAuthTooTokenMutation) SetClaimsEmailVerified ¶
func (m *OhAuthTooTokenMutation) SetClaimsEmailVerified(b bool)
SetClaimsEmailVerified sets the "claims_email_verified" field.
func (*OhAuthTooTokenMutation) SetClaimsGroups ¶
func (m *OhAuthTooTokenMutation) SetClaimsGroups(s []string)
SetClaimsGroups sets the "claims_groups" field.
func (*OhAuthTooTokenMutation) SetClaimsPreferredUsername ¶
func (m *OhAuthTooTokenMutation) SetClaimsPreferredUsername(s string)
SetClaimsPreferredUsername sets the "claims_preferred_username" field.
func (*OhAuthTooTokenMutation) SetClaimsUserID ¶
func (m *OhAuthTooTokenMutation) SetClaimsUserID(s string)
SetClaimsUserID sets the "claims_user_id" field.
func (*OhAuthTooTokenMutation) SetClaimsUsername ¶
func (m *OhAuthTooTokenMutation) SetClaimsUsername(s string)
SetClaimsUsername sets the "claims_username" field.
func (*OhAuthTooTokenMutation) SetClientID ¶
func (m *OhAuthTooTokenMutation) SetClientID(s string)
SetClientID sets the "client_id" field.
func (*OhAuthTooTokenMutation) SetConnectorData ¶
func (m *OhAuthTooTokenMutation) SetConnectorData(s []string)
SetConnectorData sets the "connector_data" field.
func (*OhAuthTooTokenMutation) SetConnectorID ¶
func (m *OhAuthTooTokenMutation) SetConnectorID(s string)
SetConnectorID sets the "connector_id" field.
func (*OhAuthTooTokenMutation) SetField ¶
func (m *OhAuthTooTokenMutation) 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 (*OhAuthTooTokenMutation) SetID ¶
func (m *OhAuthTooTokenMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of OhAuthTooToken entities.
func (*OhAuthTooTokenMutation) SetLastUsed ¶
func (m *OhAuthTooTokenMutation) SetLastUsed(t time.Time)
SetLastUsed sets the "last_used" field.
func (*OhAuthTooTokenMutation) SetNonce ¶
func (m *OhAuthTooTokenMutation) SetNonce(s string)
SetNonce sets the "nonce" field.
func (*OhAuthTooTokenMutation) SetOp ¶
func (m *OhAuthTooTokenMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OhAuthTooTokenMutation) SetScopes ¶
func (m *OhAuthTooTokenMutation) SetScopes(s []string)
SetScopes sets the "scopes" field.
func (OhAuthTooTokenMutation) Tx ¶
func (m OhAuthTooTokenMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OhAuthTooTokenMutation) Type ¶
func (m *OhAuthTooTokenMutation) Type() string
Type returns the node type of this mutation (OhAuthTooToken).
func (*OhAuthTooTokenMutation) Where ¶
func (m *OhAuthTooTokenMutation) Where(ps ...predicate.OhAuthTooToken)
Where appends a list predicates to the OhAuthTooTokenMutation builder.
func (*OhAuthTooTokenMutation) WhereP ¶
func (m *OhAuthTooTokenMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OhAuthTooTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OhAuthTooTokenOrder ¶
type OhAuthTooTokenOrder struct { Direction OrderDirection `json:"direction"` Field *OhAuthTooTokenOrderField `json:"field"` }
OhAuthTooTokenOrder defines the ordering of OhAuthTooToken.
type OhAuthTooTokenOrderField ¶
type OhAuthTooTokenOrderField struct { // Value extracts the ordering value from the given OhAuthTooToken. Value func(*OhAuthTooToken) (ent.Value, error) // contains filtered or unexported fields }
OhAuthTooTokenOrderField defines the ordering field of OhAuthTooToken.
type OhAuthTooTokenPaginateOption ¶
type OhAuthTooTokenPaginateOption func(*ohauthtootokenPager) error
OhAuthTooTokenPaginateOption enables pagination customization.
func WithOhAuthTooTokenFilter ¶
func WithOhAuthTooTokenFilter(filter func(*OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error)) OhAuthTooTokenPaginateOption
WithOhAuthTooTokenFilter configures pagination filter.
func WithOhAuthTooTokenOrder ¶
func WithOhAuthTooTokenOrder(order *OhAuthTooTokenOrder) OhAuthTooTokenPaginateOption
WithOhAuthTooTokenOrder configures pagination ordering.
type OhAuthTooTokenQuery ¶
type OhAuthTooTokenQuery struct {
// contains filtered or unexported fields
}
OhAuthTooTokenQuery is the builder for querying OhAuthTooToken entities.
func (*OhAuthTooTokenQuery) Aggregate ¶
func (oattq *OhAuthTooTokenQuery) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenSelect
Aggregate returns a OhAuthTooTokenSelect configured with the given aggregations.
func (*OhAuthTooTokenQuery) All ¶
func (oattq *OhAuthTooTokenQuery) All(ctx context.Context) ([]*OhAuthTooToken, error)
All executes the query and returns a list of OhAuthTooTokens.
func (*OhAuthTooTokenQuery) AllX ¶
func (oattq *OhAuthTooTokenQuery) AllX(ctx context.Context) []*OhAuthTooToken
AllX is like All, but panics if an error occurs.
func (*OhAuthTooTokenQuery) Clone ¶
func (oattq *OhAuthTooTokenQuery) Clone() *OhAuthTooTokenQuery
Clone returns a duplicate of the OhAuthTooTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OhAuthTooTokenQuery) CollectFields ¶
func (oatt *OhAuthTooTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*OhAuthTooTokenQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*OhAuthTooTokenQuery) Count ¶
func (oattq *OhAuthTooTokenQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OhAuthTooTokenQuery) CountX ¶
func (oattq *OhAuthTooTokenQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OhAuthTooTokenQuery) Exist ¶
func (oattq *OhAuthTooTokenQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OhAuthTooTokenQuery) ExistX ¶
func (oattq *OhAuthTooTokenQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OhAuthTooTokenQuery) Filter ¶
func (oattq *OhAuthTooTokenQuery) Filter() *OhAuthTooTokenFilter
Filter returns a Filter implementation to apply filters on the OhAuthTooTokenQuery builder.
func (*OhAuthTooTokenQuery) First ¶
func (oattq *OhAuthTooTokenQuery) First(ctx context.Context) (*OhAuthTooToken, error)
First returns the first OhAuthTooToken entity from the query. Returns a *NotFoundError when no OhAuthTooToken was found.
func (*OhAuthTooTokenQuery) FirstID ¶
func (oattq *OhAuthTooTokenQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first OhAuthTooToken ID from the query. Returns a *NotFoundError when no OhAuthTooToken ID was found.
func (*OhAuthTooTokenQuery) FirstIDX ¶
func (oattq *OhAuthTooTokenQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*OhAuthTooTokenQuery) FirstX ¶
func (oattq *OhAuthTooTokenQuery) FirstX(ctx context.Context) *OhAuthTooToken
FirstX is like First, but panics if an error occurs.
func (*OhAuthTooTokenQuery) GroupBy ¶
func (oattq *OhAuthTooTokenQuery) GroupBy(field string, fields ...string) *OhAuthTooTokenGroupBy
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 { ClientID string `json:"client_id,omitempty"` Count int `json:"count,omitempty"` } client.OhAuthTooToken.Query(). GroupBy(ohauthtootoken.FieldClientID). Aggregate(generated.Count()). Scan(ctx, &v)
func (*OhAuthTooTokenQuery) IDs ¶
func (oattq *OhAuthTooTokenQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of OhAuthTooToken IDs.
func (*OhAuthTooTokenQuery) IDsX ¶
func (oattq *OhAuthTooTokenQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*OhAuthTooTokenQuery) Limit ¶
func (oattq *OhAuthTooTokenQuery) Limit(limit int) *OhAuthTooTokenQuery
Limit the number of records to be returned by this query.
func (*OhAuthTooTokenQuery) Offset ¶
func (oattq *OhAuthTooTokenQuery) Offset(offset int) *OhAuthTooTokenQuery
Offset to start from.
func (*OhAuthTooTokenQuery) Only ¶
func (oattq *OhAuthTooTokenQuery) Only(ctx context.Context) (*OhAuthTooToken, error)
Only returns a single OhAuthTooToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OhAuthTooToken entity is found. Returns a *NotFoundError when no OhAuthTooToken entities are found.
func (*OhAuthTooTokenQuery) OnlyID ¶
func (oattq *OhAuthTooTokenQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only OhAuthTooToken ID in the query. Returns a *NotSingularError when more than one OhAuthTooToken ID is found. Returns a *NotFoundError when no entities are found.
func (*OhAuthTooTokenQuery) OnlyIDX ¶
func (oattq *OhAuthTooTokenQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OhAuthTooTokenQuery) OnlyX ¶
func (oattq *OhAuthTooTokenQuery) OnlyX(ctx context.Context) *OhAuthTooToken
OnlyX is like Only, but panics if an error occurs.
func (*OhAuthTooTokenQuery) Order ¶
func (oattq *OhAuthTooTokenQuery) Order(o ...ohauthtootoken.OrderOption) *OhAuthTooTokenQuery
Order specifies how the records should be ordered.
func (*OhAuthTooTokenQuery) Paginate ¶
func (oatt *OhAuthTooTokenQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...OhAuthTooTokenPaginateOption, ) (*OhAuthTooTokenConnection, error)
Paginate executes the query and returns a relay based cursor connection to OhAuthTooToken.
func (*OhAuthTooTokenQuery) Select ¶
func (oattq *OhAuthTooTokenQuery) Select(fields ...string) *OhAuthTooTokenSelect
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 { ClientID string `json:"client_id,omitempty"` } client.OhAuthTooToken.Query(). Select(ohauthtootoken.FieldClientID). Scan(ctx, &v)
func (*OhAuthTooTokenQuery) Unique ¶
func (oattq *OhAuthTooTokenQuery) Unique(unique bool) *OhAuthTooTokenQuery
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 (*OhAuthTooTokenQuery) Where ¶
func (oattq *OhAuthTooTokenQuery) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenQuery
Where adds a new predicate for the OhAuthTooTokenQuery builder.
type OhAuthTooTokenSelect ¶
type OhAuthTooTokenSelect struct { *OhAuthTooTokenQuery // contains filtered or unexported fields }
OhAuthTooTokenSelect is the builder for selecting fields of OhAuthTooToken entities.
func (*OhAuthTooTokenSelect) Aggregate ¶
func (oatts *OhAuthTooTokenSelect) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OhAuthTooTokenSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OhAuthTooTokenSelect) Scan ¶
func (oatts *OhAuthTooTokenSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OhAuthTooTokenSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OhAuthTooTokenUpdate ¶
type OhAuthTooTokenUpdate struct {
// contains filtered or unexported fields
}
OhAuthTooTokenUpdate is the builder for updating OhAuthTooToken entities.
func (*OhAuthTooTokenUpdate) AppendClaimsGroups ¶
func (oattu *OhAuthTooTokenUpdate) AppendClaimsGroups(s []string) *OhAuthTooTokenUpdate
AppendClaimsGroups appends s to the "claims_groups" field.
func (*OhAuthTooTokenUpdate) AppendConnectorData ¶
func (oattu *OhAuthTooTokenUpdate) AppendConnectorData(s []string) *OhAuthTooTokenUpdate
AppendConnectorData appends s to the "connector_data" field.
func (*OhAuthTooTokenUpdate) AppendScopes ¶
func (oattu *OhAuthTooTokenUpdate) AppendScopes(s []string) *OhAuthTooTokenUpdate
AppendScopes appends s to the "scopes" field.
func (*OhAuthTooTokenUpdate) ClearClaimsGroups ¶
func (oattu *OhAuthTooTokenUpdate) ClearClaimsGroups() *OhAuthTooTokenUpdate
ClearClaimsGroups clears the value of the "claims_groups" field.
func (*OhAuthTooTokenUpdate) ClearConnectorData ¶
func (oattu *OhAuthTooTokenUpdate) ClearConnectorData() *OhAuthTooTokenUpdate
ClearConnectorData clears the value of the "connector_data" field.
func (*OhAuthTooTokenUpdate) ClearScopes ¶
func (oattu *OhAuthTooTokenUpdate) ClearScopes() *OhAuthTooTokenUpdate
ClearScopes clears the value of the "scopes" field.
func (*OhAuthTooTokenUpdate) Exec ¶
func (oattu *OhAuthTooTokenUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OhAuthTooTokenUpdate) ExecX ¶
func (oattu *OhAuthTooTokenUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OhAuthTooTokenUpdate) Mutation ¶
func (oattu *OhAuthTooTokenUpdate) Mutation() *OhAuthTooTokenMutation
Mutation returns the OhAuthTooTokenMutation object of the builder.
func (*OhAuthTooTokenUpdate) Save ¶
func (oattu *OhAuthTooTokenUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OhAuthTooTokenUpdate) SaveX ¶
func (oattu *OhAuthTooTokenUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OhAuthTooTokenUpdate) SetClaimsEmail ¶
func (oattu *OhAuthTooTokenUpdate) SetClaimsEmail(s string) *OhAuthTooTokenUpdate
SetClaimsEmail sets the "claims_email" field.
func (*OhAuthTooTokenUpdate) SetClaimsEmailVerified ¶
func (oattu *OhAuthTooTokenUpdate) SetClaimsEmailVerified(b bool) *OhAuthTooTokenUpdate
SetClaimsEmailVerified sets the "claims_email_verified" field.
func (*OhAuthTooTokenUpdate) SetClaimsGroups ¶
func (oattu *OhAuthTooTokenUpdate) SetClaimsGroups(s []string) *OhAuthTooTokenUpdate
SetClaimsGroups sets the "claims_groups" field.
func (*OhAuthTooTokenUpdate) SetClaimsPreferredUsername ¶
func (oattu *OhAuthTooTokenUpdate) SetClaimsPreferredUsername(s string) *OhAuthTooTokenUpdate
SetClaimsPreferredUsername sets the "claims_preferred_username" field.
func (*OhAuthTooTokenUpdate) SetClaimsUserID ¶
func (oattu *OhAuthTooTokenUpdate) SetClaimsUserID(s string) *OhAuthTooTokenUpdate
SetClaimsUserID sets the "claims_user_id" field.
func (*OhAuthTooTokenUpdate) SetClaimsUsername ¶
func (oattu *OhAuthTooTokenUpdate) SetClaimsUsername(s string) *OhAuthTooTokenUpdate
SetClaimsUsername sets the "claims_username" field.
func (*OhAuthTooTokenUpdate) SetClientID ¶
func (oattu *OhAuthTooTokenUpdate) SetClientID(s string) *OhAuthTooTokenUpdate
SetClientID sets the "client_id" field.
func (*OhAuthTooTokenUpdate) SetConnectorData ¶
func (oattu *OhAuthTooTokenUpdate) SetConnectorData(s []string) *OhAuthTooTokenUpdate
SetConnectorData sets the "connector_data" field.
func (*OhAuthTooTokenUpdate) SetConnectorID ¶
func (oattu *OhAuthTooTokenUpdate) SetConnectorID(s string) *OhAuthTooTokenUpdate
SetConnectorID sets the "connector_id" field.
func (*OhAuthTooTokenUpdate) SetInput ¶
func (c *OhAuthTooTokenUpdate) SetInput(i UpdateOhAuthTooTokenInput) *OhAuthTooTokenUpdate
SetInput applies the change-set in the UpdateOhAuthTooTokenInput on the OhAuthTooTokenUpdate builder.
func (*OhAuthTooTokenUpdate) SetLastUsed ¶
func (oattu *OhAuthTooTokenUpdate) SetLastUsed(t time.Time) *OhAuthTooTokenUpdate
SetLastUsed sets the "last_used" field.
func (*OhAuthTooTokenUpdate) SetNillableClaimsEmail ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsEmail(s *string) *OhAuthTooTokenUpdate
SetNillableClaimsEmail sets the "claims_email" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableClaimsEmailVerified ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsEmailVerified(b *bool) *OhAuthTooTokenUpdate
SetNillableClaimsEmailVerified sets the "claims_email_verified" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableClaimsPreferredUsername ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsPreferredUsername(s *string) *OhAuthTooTokenUpdate
SetNillableClaimsPreferredUsername sets the "claims_preferred_username" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableClaimsUserID ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsUserID(s *string) *OhAuthTooTokenUpdate
SetNillableClaimsUserID sets the "claims_user_id" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableClaimsUsername ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsUsername(s *string) *OhAuthTooTokenUpdate
SetNillableClaimsUsername sets the "claims_username" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableClientID ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableClientID(s *string) *OhAuthTooTokenUpdate
SetNillableClientID sets the "client_id" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableConnectorID ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableConnectorID(s *string) *OhAuthTooTokenUpdate
SetNillableConnectorID sets the "connector_id" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableLastUsed ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenUpdate
SetNillableLastUsed sets the "last_used" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNillableNonce ¶
func (oattu *OhAuthTooTokenUpdate) SetNillableNonce(s *string) *OhAuthTooTokenUpdate
SetNillableNonce sets the "nonce" field if the given value is not nil.
func (*OhAuthTooTokenUpdate) SetNonce ¶
func (oattu *OhAuthTooTokenUpdate) SetNonce(s string) *OhAuthTooTokenUpdate
SetNonce sets the "nonce" field.
func (*OhAuthTooTokenUpdate) SetScopes ¶
func (oattu *OhAuthTooTokenUpdate) SetScopes(s []string) *OhAuthTooTokenUpdate
SetScopes sets the "scopes" field.
func (*OhAuthTooTokenUpdate) Where ¶
func (oattu *OhAuthTooTokenUpdate) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenUpdate
Where appends a list predicates to the OhAuthTooTokenUpdate builder.
type OhAuthTooTokenUpdateOne ¶
type OhAuthTooTokenUpdateOne struct {
// contains filtered or unexported fields
}
OhAuthTooTokenUpdateOne is the builder for updating a single OhAuthTooToken entity.
func (*OhAuthTooTokenUpdateOne) AppendClaimsGroups ¶
func (oattuo *OhAuthTooTokenUpdateOne) AppendClaimsGroups(s []string) *OhAuthTooTokenUpdateOne
AppendClaimsGroups appends s to the "claims_groups" field.
func (*OhAuthTooTokenUpdateOne) AppendConnectorData ¶
func (oattuo *OhAuthTooTokenUpdateOne) AppendConnectorData(s []string) *OhAuthTooTokenUpdateOne
AppendConnectorData appends s to the "connector_data" field.
func (*OhAuthTooTokenUpdateOne) AppendScopes ¶
func (oattuo *OhAuthTooTokenUpdateOne) AppendScopes(s []string) *OhAuthTooTokenUpdateOne
AppendScopes appends s to the "scopes" field.
func (*OhAuthTooTokenUpdateOne) ClearClaimsGroups ¶
func (oattuo *OhAuthTooTokenUpdateOne) ClearClaimsGroups() *OhAuthTooTokenUpdateOne
ClearClaimsGroups clears the value of the "claims_groups" field.
func (*OhAuthTooTokenUpdateOne) ClearConnectorData ¶
func (oattuo *OhAuthTooTokenUpdateOne) ClearConnectorData() *OhAuthTooTokenUpdateOne
ClearConnectorData clears the value of the "connector_data" field.
func (*OhAuthTooTokenUpdateOne) ClearScopes ¶
func (oattuo *OhAuthTooTokenUpdateOne) ClearScopes() *OhAuthTooTokenUpdateOne
ClearScopes clears the value of the "scopes" field.
func (*OhAuthTooTokenUpdateOne) Exec ¶
func (oattuo *OhAuthTooTokenUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OhAuthTooTokenUpdateOne) ExecX ¶
func (oattuo *OhAuthTooTokenUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OhAuthTooTokenUpdateOne) Mutation ¶
func (oattuo *OhAuthTooTokenUpdateOne) Mutation() *OhAuthTooTokenMutation
Mutation returns the OhAuthTooTokenMutation object of the builder.
func (*OhAuthTooTokenUpdateOne) Save ¶
func (oattuo *OhAuthTooTokenUpdateOne) Save(ctx context.Context) (*OhAuthTooToken, error)
Save executes the query and returns the updated OhAuthTooToken entity.
func (*OhAuthTooTokenUpdateOne) SaveX ¶
func (oattuo *OhAuthTooTokenUpdateOne) SaveX(ctx context.Context) *OhAuthTooToken
SaveX is like Save, but panics if an error occurs.
func (*OhAuthTooTokenUpdateOne) Select ¶
func (oattuo *OhAuthTooTokenUpdateOne) Select(field string, fields ...string) *OhAuthTooTokenUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OhAuthTooTokenUpdateOne) SetClaimsEmail ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsEmail(s string) *OhAuthTooTokenUpdateOne
SetClaimsEmail sets the "claims_email" field.
func (*OhAuthTooTokenUpdateOne) SetClaimsEmailVerified ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsEmailVerified(b bool) *OhAuthTooTokenUpdateOne
SetClaimsEmailVerified sets the "claims_email_verified" field.
func (*OhAuthTooTokenUpdateOne) SetClaimsGroups ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsGroups(s []string) *OhAuthTooTokenUpdateOne
SetClaimsGroups sets the "claims_groups" field.
func (*OhAuthTooTokenUpdateOne) SetClaimsPreferredUsername ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsPreferredUsername(s string) *OhAuthTooTokenUpdateOne
SetClaimsPreferredUsername sets the "claims_preferred_username" field.
func (*OhAuthTooTokenUpdateOne) SetClaimsUserID ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsUserID(s string) *OhAuthTooTokenUpdateOne
SetClaimsUserID sets the "claims_user_id" field.
func (*OhAuthTooTokenUpdateOne) SetClaimsUsername ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsUsername(s string) *OhAuthTooTokenUpdateOne
SetClaimsUsername sets the "claims_username" field.
func (*OhAuthTooTokenUpdateOne) SetClientID ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetClientID(s string) *OhAuthTooTokenUpdateOne
SetClientID sets the "client_id" field.
func (*OhAuthTooTokenUpdateOne) SetConnectorData ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetConnectorData(s []string) *OhAuthTooTokenUpdateOne
SetConnectorData sets the "connector_data" field.
func (*OhAuthTooTokenUpdateOne) SetConnectorID ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetConnectorID(s string) *OhAuthTooTokenUpdateOne
SetConnectorID sets the "connector_id" field.
func (*OhAuthTooTokenUpdateOne) SetInput ¶
func (c *OhAuthTooTokenUpdateOne) SetInput(i UpdateOhAuthTooTokenInput) *OhAuthTooTokenUpdateOne
SetInput applies the change-set in the UpdateOhAuthTooTokenInput on the OhAuthTooTokenUpdateOne builder.
func (*OhAuthTooTokenUpdateOne) SetLastUsed ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetLastUsed(t time.Time) *OhAuthTooTokenUpdateOne
SetLastUsed sets the "last_used" field.
func (*OhAuthTooTokenUpdateOne) SetNillableClaimsEmail ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsEmail(s *string) *OhAuthTooTokenUpdateOne
SetNillableClaimsEmail sets the "claims_email" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableClaimsEmailVerified ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsEmailVerified(b *bool) *OhAuthTooTokenUpdateOne
SetNillableClaimsEmailVerified sets the "claims_email_verified" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableClaimsPreferredUsername ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsPreferredUsername(s *string) *OhAuthTooTokenUpdateOne
SetNillableClaimsPreferredUsername sets the "claims_preferred_username" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableClaimsUserID ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsUserID(s *string) *OhAuthTooTokenUpdateOne
SetNillableClaimsUserID sets the "claims_user_id" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableClaimsUsername ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsUsername(s *string) *OhAuthTooTokenUpdateOne
SetNillableClaimsUsername sets the "claims_username" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableClientID ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClientID(s *string) *OhAuthTooTokenUpdateOne
SetNillableClientID sets the "client_id" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableConnectorID ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableConnectorID(s *string) *OhAuthTooTokenUpdateOne
SetNillableConnectorID sets the "connector_id" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableLastUsed ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenUpdateOne
SetNillableLastUsed sets the "last_used" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNillableNonce ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNillableNonce(s *string) *OhAuthTooTokenUpdateOne
SetNillableNonce sets the "nonce" field if the given value is not nil.
func (*OhAuthTooTokenUpdateOne) SetNonce ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetNonce(s string) *OhAuthTooTokenUpdateOne
SetNonce sets the "nonce" field.
func (*OhAuthTooTokenUpdateOne) SetScopes ¶
func (oattuo *OhAuthTooTokenUpdateOne) SetScopes(s []string) *OhAuthTooTokenUpdateOne
SetScopes sets the "scopes" field.
func (*OhAuthTooTokenUpdateOne) Where ¶
func (oattuo *OhAuthTooTokenUpdateOne) Where(ps ...predicate.OhAuthTooToken) *OhAuthTooTokenUpdateOne
Where appends a list predicates to the OhAuthTooTokenUpdate builder.
type OhAuthTooTokenWhereInput ¶
type OhAuthTooTokenWhereInput struct { Predicates []predicate.OhAuthTooToken `json:"-"` Not *OhAuthTooTokenWhereInput `json:"not,omitempty"` Or []*OhAuthTooTokenWhereInput `json:"or,omitempty"` And []*OhAuthTooTokenWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` // "client_id" field predicates. ClientID *string `json:"clientID,omitempty"` ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` ClientIDIn []string `json:"clientIDIn,omitempty"` ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` ClientIDGT *string `json:"clientIDGT,omitempty"` ClientIDGTE *string `json:"clientIDGTE,omitempty"` ClientIDLT *string `json:"clientIDLT,omitempty"` ClientIDLTE *string `json:"clientIDLTE,omitempty"` ClientIDContains *string `json:"clientIDContains,omitempty"` ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` // "nonce" field predicates. Nonce *string `json:"nonce,omitempty"` NonceNEQ *string `json:"nonceNEQ,omitempty"` NonceIn []string `json:"nonceIn,omitempty"` NonceNotIn []string `json:"nonceNotIn,omitempty"` NonceGT *string `json:"nonceGT,omitempty"` NonceGTE *string `json:"nonceGTE,omitempty"` NonceLT *string `json:"nonceLT,omitempty"` NonceLTE *string `json:"nonceLTE,omitempty"` NonceContains *string `json:"nonceContains,omitempty"` NonceHasPrefix *string `json:"nonceHasPrefix,omitempty"` NonceHasSuffix *string `json:"nonceHasSuffix,omitempty"` NonceEqualFold *string `json:"nonceEqualFold,omitempty"` NonceContainsFold *string `json:"nonceContainsFold,omitempty"` // "claims_user_id" field predicates. ClaimsUserID *string `json:"claimsUserID,omitempty"` ClaimsUserIDNEQ *string `json:"claimsUserIDNEQ,omitempty"` ClaimsUserIDIn []string `json:"claimsUserIDIn,omitempty"` ClaimsUserIDNotIn []string `json:"claimsUserIDNotIn,omitempty"` ClaimsUserIDGT *string `json:"claimsUserIDGT,omitempty"` ClaimsUserIDGTE *string `json:"claimsUserIDGTE,omitempty"` ClaimsUserIDLT *string `json:"claimsUserIDLT,omitempty"` ClaimsUserIDLTE *string `json:"claimsUserIDLTE,omitempty"` ClaimsUserIDContains *string `json:"claimsUserIDContains,omitempty"` ClaimsUserIDHasPrefix *string `json:"claimsUserIDHasPrefix,omitempty"` ClaimsUserIDHasSuffix *string `json:"claimsUserIDHasSuffix,omitempty"` ClaimsUserIDEqualFold *string `json:"claimsUserIDEqualFold,omitempty"` ClaimsUserIDContainsFold *string `json:"claimsUserIDContainsFold,omitempty"` // "claims_username" field predicates. ClaimsUsername *string `json:"claimsUsername,omitempty"` ClaimsUsernameNEQ *string `json:"claimsUsernameNEQ,omitempty"` ClaimsUsernameIn []string `json:"claimsUsernameIn,omitempty"` ClaimsUsernameNotIn []string `json:"claimsUsernameNotIn,omitempty"` ClaimsUsernameGT *string `json:"claimsUsernameGT,omitempty"` ClaimsUsernameGTE *string `json:"claimsUsernameGTE,omitempty"` ClaimsUsernameLT *string `json:"claimsUsernameLT,omitempty"` ClaimsUsernameLTE *string `json:"claimsUsernameLTE,omitempty"` ClaimsUsernameContains *string `json:"claimsUsernameContains,omitempty"` ClaimsUsernameHasPrefix *string `json:"claimsUsernameHasPrefix,omitempty"` ClaimsUsernameHasSuffix *string `json:"claimsUsernameHasSuffix,omitempty"` ClaimsUsernameEqualFold *string `json:"claimsUsernameEqualFold,omitempty"` ClaimsUsernameContainsFold *string `json:"claimsUsernameContainsFold,omitempty"` // "claims_email" field predicates. ClaimsEmail *string `json:"claimsEmail,omitempty"` ClaimsEmailNEQ *string `json:"claimsEmailNEQ,omitempty"` ClaimsEmailIn []string `json:"claimsEmailIn,omitempty"` ClaimsEmailNotIn []string `json:"claimsEmailNotIn,omitempty"` ClaimsEmailGT *string `json:"claimsEmailGT,omitempty"` ClaimsEmailGTE *string `json:"claimsEmailGTE,omitempty"` ClaimsEmailLT *string `json:"claimsEmailLT,omitempty"` ClaimsEmailLTE *string `json:"claimsEmailLTE,omitempty"` ClaimsEmailContains *string `json:"claimsEmailContains,omitempty"` ClaimsEmailHasPrefix *string `json:"claimsEmailHasPrefix,omitempty"` ClaimsEmailHasSuffix *string `json:"claimsEmailHasSuffix,omitempty"` ClaimsEmailEqualFold *string `json:"claimsEmailEqualFold,omitempty"` ClaimsEmailContainsFold *string `json:"claimsEmailContainsFold,omitempty"` // "claims_email_verified" field predicates. ClaimsEmailVerified *bool `json:"claimsEmailVerified,omitempty"` ClaimsEmailVerifiedNEQ *bool `json:"claimsEmailVerifiedNEQ,omitempty"` // "claims_preferred_username" field predicates. ClaimsPreferredUsername *string `json:"claimsPreferredUsername,omitempty"` ClaimsPreferredUsernameNEQ *string `json:"claimsPreferredUsernameNEQ,omitempty"` ClaimsPreferredUsernameIn []string `json:"claimsPreferredUsernameIn,omitempty"` ClaimsPreferredUsernameNotIn []string `json:"claimsPreferredUsernameNotIn,omitempty"` ClaimsPreferredUsernameGT *string `json:"claimsPreferredUsernameGT,omitempty"` ClaimsPreferredUsernameGTE *string `json:"claimsPreferredUsernameGTE,omitempty"` ClaimsPreferredUsernameLT *string `json:"claimsPreferredUsernameLT,omitempty"` ClaimsPreferredUsernameLTE *string `json:"claimsPreferredUsernameLTE,omitempty"` ClaimsPreferredUsernameContains *string `json:"claimsPreferredUsernameContains,omitempty"` ClaimsPreferredUsernameHasPrefix *string `json:"claimsPreferredUsernameHasPrefix,omitempty"` ClaimsPreferredUsernameHasSuffix *string `json:"claimsPreferredUsernameHasSuffix,omitempty"` ClaimsPreferredUsernameEqualFold *string `json:"claimsPreferredUsernameEqualFold,omitempty"` ClaimsPreferredUsernameContainsFold *string `json:"claimsPreferredUsernameContainsFold,omitempty"` // "connector_id" field predicates. ConnectorID *string `json:"connectorID,omitempty"` ConnectorIDNEQ *string `json:"connectorIDNEQ,omitempty"` ConnectorIDIn []string `json:"connectorIDIn,omitempty"` ConnectorIDNotIn []string `json:"connectorIDNotIn,omitempty"` ConnectorIDGT *string `json:"connectorIDGT,omitempty"` ConnectorIDGTE *string `json:"connectorIDGTE,omitempty"` ConnectorIDLT *string `json:"connectorIDLT,omitempty"` ConnectorIDLTE *string `json:"connectorIDLTE,omitempty"` ConnectorIDContains *string `json:"connectorIDContains,omitempty"` ConnectorIDHasPrefix *string `json:"connectorIDHasPrefix,omitempty"` ConnectorIDHasSuffix *string `json:"connectorIDHasSuffix,omitempty"` ConnectorIDEqualFold *string `json:"connectorIDEqualFold,omitempty"` ConnectorIDContainsFold *string `json:"connectorIDContainsFold,omitempty"` // "last_used" field predicates. LastUsed *time.Time `json:"lastUsed,omitempty"` LastUsedNEQ *time.Time `json:"lastUsedNEQ,omitempty"` LastUsedIn []time.Time `json:"lastUsedIn,omitempty"` LastUsedNotIn []time.Time `json:"lastUsedNotIn,omitempty"` LastUsedGT *time.Time `json:"lastUsedGT,omitempty"` LastUsedGTE *time.Time `json:"lastUsedGTE,omitempty"` LastUsedLT *time.Time `json:"lastUsedLT,omitempty"` LastUsedLTE *time.Time `json:"lastUsedLTE,omitempty"` }
OhAuthTooTokenWhereInput represents a where input for filtering OhAuthTooToken queries.
func (*OhAuthTooTokenWhereInput) AddPredicates ¶
func (i *OhAuthTooTokenWhereInput) AddPredicates(predicates ...predicate.OhAuthTooToken)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*OhAuthTooTokenWhereInput) Filter ¶
func (i *OhAuthTooTokenWhereInput) Filter(q *OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error)
Filter applies the OhAuthTooTokenWhereInput filter on the OhAuthTooTokenQuery builder.
func (*OhAuthTooTokenWhereInput) P ¶
func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error)
P returns a predicate for filtering ohauthtootokens. An error is returned if the input is empty or invalid.
type OhAuthTooTokens ¶
type OhAuthTooTokens []*OhAuthTooToken
OhAuthTooTokens is a parsable slice of OhAuthTooToken.
type Option ¶
type Option func(*config)
Option function to configure the client.
func AlternateSchema ¶
func AlternateSchema(schemaConfig SchemaConfig) Option
AlternateSchemas allows alternate schema names to be passed into ent operations.
func SecretsKeeper ¶
SecretsKeeper configures the SecretsKeeper.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type Organization ¶
type Organization struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // the name of the organization Name string `json:"name,omitempty"` // The organization's displayed 'friendly' name DisplayName string `json:"display_name,omitempty"` // An optional description of the organization Description string `json:"description,omitempty"` // The ID of the parent organization for the organization. ParentOrganizationID string `json:"parent_organization_id,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OrganizationQuery when eager-loading is set. Edges OrganizationEdges `json:"edges"` // contains filtered or unexported fields }
Organization is the model entity for the Organization schema.
func (*Organization) Children ¶
func (o *Organization) Children( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy *OrganizationOrder, where *OrganizationWhereInput, ) (*OrganizationConnection, error)
func (*Organization) Entitlements ¶
func (o *Organization) Entitlements(ctx context.Context) (result []*Entitlement, err error)
func (*Organization) Groups ¶
func (o *Organization) Groups(ctx context.Context) (result []*Group, err error)
func (*Organization) Integrations ¶
func (o *Organization) Integrations(ctx context.Context) (result []*Integration, err error)
func (*Organization) IsNode ¶
func (n *Organization) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Organization) NamedChildren ¶
func (o *Organization) NamedChildren(name string) ([]*Organization, error)
NamedChildren returns the Children named value or an error if the edge was not loaded in eager-loading with this name.
func (*Organization) NamedEntitlements ¶
func (o *Organization) NamedEntitlements(name string) ([]*Entitlement, error)
NamedEntitlements returns the Entitlements named value or an error if the edge was not loaded in eager-loading with this name.
func (*Organization) NamedGroups ¶
func (o *Organization) NamedGroups(name string) ([]*Group, error)
NamedGroups returns the Groups named value or an error if the edge was not loaded in eager-loading with this name.
func (*Organization) NamedIntegrations ¶
func (o *Organization) NamedIntegrations(name string) ([]*Integration, error)
NamedIntegrations returns the Integrations named value or an error if the edge was not loaded in eager-loading with this name.
func (*Organization) NamedOauthprovider ¶
func (o *Organization) NamedOauthprovider(name string) ([]*OauthProvider, error)
NamedOauthprovider returns the Oauthprovider named value or an error if the edge was not loaded in eager-loading with this name.
func (*Organization) NamedUsers ¶
func (o *Organization) NamedUsers(name string) ([]*User, error)
NamedUsers returns the Users named value or an error if the edge was not loaded in eager-loading with this name.
func (*Organization) Oauthprovider ¶
func (o *Organization) Oauthprovider(ctx context.Context) (result []*OauthProvider, err error)
func (*Organization) Parent ¶
func (o *Organization) Parent(ctx context.Context) (*Organization, error)
func (*Organization) QueryChildren ¶
func (o *Organization) QueryChildren() *OrganizationQuery
QueryChildren queries the "children" edge of the Organization entity.
func (*Organization) QueryEntitlements ¶
func (o *Organization) QueryEntitlements() *EntitlementQuery
QueryEntitlements queries the "entitlements" edge of the Organization entity.
func (*Organization) QueryGroups ¶
func (o *Organization) QueryGroups() *GroupQuery
QueryGroups queries the "groups" edge of the Organization entity.
func (*Organization) QueryIntegrations ¶
func (o *Organization) QueryIntegrations() *IntegrationQuery
QueryIntegrations queries the "integrations" edge of the Organization entity.
func (*Organization) QueryOauthprovider ¶
func (o *Organization) QueryOauthprovider() *OauthProviderQuery
QueryOauthprovider queries the "oauthprovider" edge of the Organization entity.
func (*Organization) QueryParent ¶
func (o *Organization) QueryParent() *OrganizationQuery
QueryParent queries the "parent" edge of the Organization entity.
func (*Organization) QuerySetting ¶
func (o *Organization) QuerySetting() *OrganizationSettingQuery
QuerySetting queries the "setting" edge of the Organization entity.
func (*Organization) QueryUsers ¶
func (o *Organization) QueryUsers() *UserQuery
QueryUsers queries the "users" edge of the Organization entity.
func (*Organization) Setting ¶
func (o *Organization) Setting(ctx context.Context) (*OrganizationSetting, error)
func (*Organization) String ¶
func (o *Organization) String() string
String implements the fmt.Stringer.
func (*Organization) ToEdge ¶
func (o *Organization) ToEdge(order *OrganizationOrder) *OrganizationEdge
ToEdge converts Organization into OrganizationEdge.
func (*Organization) Unwrap ¶
func (o *Organization) Unwrap() *Organization
Unwrap unwraps the Organization 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 (*Organization) Update ¶
func (o *Organization) Update() *OrganizationUpdateOne
Update returns a builder for updating this Organization. Note that you need to call Organization.Unwrap() before calling this method if this Organization was returned from a transaction, and the transaction was committed or rolled back.
type OrganizationClient ¶
type OrganizationClient struct {
// contains filtered or unexported fields
}
OrganizationClient is a client for the Organization schema.
func NewOrganizationClient ¶
func NewOrganizationClient(c config) *OrganizationClient
NewOrganizationClient returns a client for the Organization from the given config.
func (*OrganizationClient) Create ¶
func (c *OrganizationClient) Create() *OrganizationCreate
Create returns a builder for creating a Organization entity.
func (*OrganizationClient) CreateBulk ¶
func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk
CreateBulk returns a builder for creating a bulk of Organization entities.
func (*OrganizationClient) Delete ¶
func (c *OrganizationClient) Delete() *OrganizationDelete
Delete returns a delete builder for Organization.
func (*OrganizationClient) DeleteOne ¶
func (c *OrganizationClient) DeleteOne(o *Organization) *OrganizationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OrganizationClient) DeleteOneID ¶
func (c *OrganizationClient) DeleteOneID(id string) *OrganizationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OrganizationClient) Get ¶
func (c *OrganizationClient) Get(ctx context.Context, id string) (*Organization, error)
Get returns a Organization entity by its id.
func (*OrganizationClient) GetX ¶
func (c *OrganizationClient) GetX(ctx context.Context, id string) *Organization
GetX is like Get, but panics if an error occurs.
func (*OrganizationClient) Hooks ¶
func (c *OrganizationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OrganizationClient) Intercept ¶
func (c *OrganizationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`.
func (*OrganizationClient) Interceptors ¶
func (c *OrganizationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OrganizationClient) MapCreateBulk ¶
func (c *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OrganizationClient) Query ¶
func (c *OrganizationClient) Query() *OrganizationQuery
Query returns a query builder for Organization.
func (*OrganizationClient) QueryChildren ¶
func (c *OrganizationClient) QueryChildren(o *Organization) *OrganizationQuery
QueryChildren queries the children edge of a Organization.
func (*OrganizationClient) QueryEntitlements ¶
func (c *OrganizationClient) QueryEntitlements(o *Organization) *EntitlementQuery
QueryEntitlements queries the entitlements edge of a Organization.
func (*OrganizationClient) QueryGroups ¶
func (c *OrganizationClient) QueryGroups(o *Organization) *GroupQuery
QueryGroups queries the groups edge of a Organization.
func (*OrganizationClient) QueryIntegrations ¶
func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery
QueryIntegrations queries the integrations edge of a Organization.
func (*OrganizationClient) QueryOauthprovider ¶
func (c *OrganizationClient) QueryOauthprovider(o *Organization) *OauthProviderQuery
QueryOauthprovider queries the oauthprovider edge of a Organization.
func (*OrganizationClient) QueryParent ¶
func (c *OrganizationClient) QueryParent(o *Organization) *OrganizationQuery
QueryParent queries the parent edge of a Organization.
func (*OrganizationClient) QuerySetting ¶
func (c *OrganizationClient) QuerySetting(o *Organization) *OrganizationSettingQuery
QuerySetting queries the setting edge of a Organization.
func (*OrganizationClient) QueryUsers ¶
func (c *OrganizationClient) QueryUsers(o *Organization) *UserQuery
QueryUsers queries the users edge of a Organization.
func (*OrganizationClient) Update ¶
func (c *OrganizationClient) Update() *OrganizationUpdate
Update returns an update builder for Organization.
func (*OrganizationClient) UpdateOne ¶
func (c *OrganizationClient) UpdateOne(o *Organization) *OrganizationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OrganizationClient) UpdateOneID ¶
func (c *OrganizationClient) UpdateOneID(id string) *OrganizationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OrganizationClient) Use ¶
func (c *OrganizationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`.
type OrganizationConnection ¶
type OrganizationConnection struct { Edges []*OrganizationEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
OrganizationConnection is the connection containing edges to Organization.
type OrganizationCreate ¶
type OrganizationCreate struct {
// contains filtered or unexported fields
}
OrganizationCreate is the builder for creating a Organization entity.
func (*OrganizationCreate) AddChildIDs ¶
func (oc *OrganizationCreate) AddChildIDs(ids ...string) *OrganizationCreate
AddChildIDs adds the "children" edge to the Organization entity by IDs.
func (*OrganizationCreate) AddChildren ¶
func (oc *OrganizationCreate) AddChildren(o ...*Organization) *OrganizationCreate
AddChildren adds the "children" edges to the Organization entity.
func (*OrganizationCreate) AddEntitlementIDs ¶
func (oc *OrganizationCreate) AddEntitlementIDs(ids ...string) *OrganizationCreate
AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by IDs.
func (*OrganizationCreate) AddEntitlements ¶
func (oc *OrganizationCreate) AddEntitlements(e ...*Entitlement) *OrganizationCreate
AddEntitlements adds the "entitlements" edges to the Entitlement entity.
func (*OrganizationCreate) AddGroupIDs ¶
func (oc *OrganizationCreate) AddGroupIDs(ids ...string) *OrganizationCreate
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
func (*OrganizationCreate) AddGroups ¶
func (oc *OrganizationCreate) AddGroups(g ...*Group) *OrganizationCreate
AddGroups adds the "groups" edges to the Group entity.
func (*OrganizationCreate) AddIntegrationIDs ¶
func (oc *OrganizationCreate) AddIntegrationIDs(ids ...string) *OrganizationCreate
AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.
func (*OrganizationCreate) AddIntegrations ¶
func (oc *OrganizationCreate) AddIntegrations(i ...*Integration) *OrganizationCreate
AddIntegrations adds the "integrations" edges to the Integration entity.
func (*OrganizationCreate) AddOauthprovider ¶
func (oc *OrganizationCreate) AddOauthprovider(o ...*OauthProvider) *OrganizationCreate
AddOauthprovider adds the "oauthprovider" edges to the OauthProvider entity.
func (*OrganizationCreate) AddOauthproviderIDs ¶
func (oc *OrganizationCreate) AddOauthproviderIDs(ids ...string) *OrganizationCreate
AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by IDs.
func (*OrganizationCreate) AddUserIDs ¶
func (oc *OrganizationCreate) AddUserIDs(ids ...string) *OrganizationCreate
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*OrganizationCreate) AddUsers ¶
func (oc *OrganizationCreate) AddUsers(u ...*User) *OrganizationCreate
AddUsers adds the "users" edges to the User entity.
func (*OrganizationCreate) Exec ¶
func (oc *OrganizationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationCreate) ExecX ¶
func (oc *OrganizationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationCreate) Mutation ¶
func (oc *OrganizationCreate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationCreate) Save ¶
func (oc *OrganizationCreate) Save(ctx context.Context) (*Organization, error)
Save creates the Organization in the database.
func (*OrganizationCreate) SaveX ¶
func (oc *OrganizationCreate) SaveX(ctx context.Context) *Organization
SaveX calls Save and panics if Save returns an error.
func (*OrganizationCreate) SetCreatedAt ¶
func (oc *OrganizationCreate) SetCreatedAt(t time.Time) *OrganizationCreate
SetCreatedAt sets the "created_at" field.
func (*OrganizationCreate) SetCreatedBy ¶
func (oc *OrganizationCreate) SetCreatedBy(s string) *OrganizationCreate
SetCreatedBy sets the "created_by" field.
func (*OrganizationCreate) SetDeletedAt ¶
func (oc *OrganizationCreate) SetDeletedAt(t time.Time) *OrganizationCreate
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationCreate) SetDeletedBy ¶
func (oc *OrganizationCreate) SetDeletedBy(s string) *OrganizationCreate
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationCreate) SetDescription ¶
func (oc *OrganizationCreate) SetDescription(s string) *OrganizationCreate
SetDescription sets the "description" field.
func (*OrganizationCreate) SetDisplayName ¶
func (oc *OrganizationCreate) SetDisplayName(s string) *OrganizationCreate
SetDisplayName sets the "display_name" field.
func (*OrganizationCreate) SetID ¶
func (oc *OrganizationCreate) SetID(s string) *OrganizationCreate
SetID sets the "id" field.
func (*OrganizationCreate) SetInput ¶
func (c *OrganizationCreate) SetInput(i CreateOrganizationInput) *OrganizationCreate
SetInput applies the change-set in the CreateOrganizationInput on the OrganizationCreate builder.
func (*OrganizationCreate) SetName ¶
func (oc *OrganizationCreate) SetName(s string) *OrganizationCreate
SetName sets the "name" field.
func (*OrganizationCreate) SetNillableCreatedAt ¶
func (oc *OrganizationCreate) SetNillableCreatedAt(t *time.Time) *OrganizationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OrganizationCreate) SetNillableCreatedBy ¶
func (oc *OrganizationCreate) SetNillableCreatedBy(s *string) *OrganizationCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*OrganizationCreate) SetNillableDeletedAt ¶
func (oc *OrganizationCreate) SetNillableDeletedAt(t *time.Time) *OrganizationCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrganizationCreate) SetNillableDeletedBy ¶
func (oc *OrganizationCreate) SetNillableDeletedBy(s *string) *OrganizationCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OrganizationCreate) SetNillableDescription ¶
func (oc *OrganizationCreate) SetNillableDescription(s *string) *OrganizationCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*OrganizationCreate) SetNillableDisplayName ¶
func (oc *OrganizationCreate) SetNillableDisplayName(s *string) *OrganizationCreate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*OrganizationCreate) SetNillableID ¶
func (oc *OrganizationCreate) SetNillableID(s *string) *OrganizationCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OrganizationCreate) SetNillableParentID ¶
func (oc *OrganizationCreate) SetNillableParentID(id *string) *OrganizationCreate
SetNillableParentID sets the "parent" edge to the Organization entity by ID if the given value is not nil.
func (*OrganizationCreate) SetNillableParentOrganizationID ¶
func (oc *OrganizationCreate) SetNillableParentOrganizationID(s *string) *OrganizationCreate
SetNillableParentOrganizationID sets the "parent_organization_id" field if the given value is not nil.
func (*OrganizationCreate) SetNillableSettingID ¶
func (oc *OrganizationCreate) SetNillableSettingID(id *string) *OrganizationCreate
SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil.
func (*OrganizationCreate) SetNillableUpdatedAt ¶
func (oc *OrganizationCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*OrganizationCreate) SetNillableUpdatedBy ¶
func (oc *OrganizationCreate) SetNillableUpdatedBy(s *string) *OrganizationCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OrganizationCreate) SetParent ¶
func (oc *OrganizationCreate) SetParent(o *Organization) *OrganizationCreate
SetParent sets the "parent" edge to the Organization entity.
func (*OrganizationCreate) SetParentID ¶
func (oc *OrganizationCreate) SetParentID(id string) *OrganizationCreate
SetParentID sets the "parent" edge to the Organization entity by ID.
func (*OrganizationCreate) SetParentOrganizationID ¶
func (oc *OrganizationCreate) SetParentOrganizationID(s string) *OrganizationCreate
SetParentOrganizationID sets the "parent_organization_id" field.
func (*OrganizationCreate) SetSetting ¶
func (oc *OrganizationCreate) SetSetting(o *OrganizationSetting) *OrganizationCreate
SetSetting sets the "setting" edge to the OrganizationSetting entity.
func (*OrganizationCreate) SetSettingID ¶
func (oc *OrganizationCreate) SetSettingID(id string) *OrganizationCreate
SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID.
func (*OrganizationCreate) SetUpdatedAt ¶
func (oc *OrganizationCreate) SetUpdatedAt(t time.Time) *OrganizationCreate
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationCreate) SetUpdatedBy ¶
func (oc *OrganizationCreate) SetUpdatedBy(s string) *OrganizationCreate
SetUpdatedBy sets the "updated_by" field.
type OrganizationCreateBulk ¶
type OrganizationCreateBulk struct {
// contains filtered or unexported fields
}
OrganizationCreateBulk is the builder for creating many Organization entities in bulk.
func (*OrganizationCreateBulk) Exec ¶
func (ocb *OrganizationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationCreateBulk) ExecX ¶
func (ocb *OrganizationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationCreateBulk) Save ¶
func (ocb *OrganizationCreateBulk) Save(ctx context.Context) ([]*Organization, error)
Save creates the Organization entities in the database.
func (*OrganizationCreateBulk) SaveX ¶
func (ocb *OrganizationCreateBulk) SaveX(ctx context.Context) []*Organization
SaveX is like Save, but panics if an error occurs.
type OrganizationDelete ¶
type OrganizationDelete struct {
// contains filtered or unexported fields
}
OrganizationDelete is the builder for deleting a Organization entity.
func (*OrganizationDelete) Exec ¶
func (od *OrganizationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OrganizationDelete) ExecX ¶
func (od *OrganizationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationDelete) Where ¶
func (od *OrganizationDelete) Where(ps ...predicate.Organization) *OrganizationDelete
Where appends a list predicates to the OrganizationDelete builder.
type OrganizationDeleteOne ¶
type OrganizationDeleteOne struct {
// contains filtered or unexported fields
}
OrganizationDeleteOne is the builder for deleting a single Organization entity.
func (*OrganizationDeleteOne) Exec ¶
func (odo *OrganizationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OrganizationDeleteOne) ExecX ¶
func (odo *OrganizationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationDeleteOne) Where ¶
func (odo *OrganizationDeleteOne) Where(ps ...predicate.Organization) *OrganizationDeleteOne
Where appends a list predicates to the OrganizationDelete builder.
type OrganizationEdge ¶
type OrganizationEdge struct { Node *Organization `json:"node"` Cursor Cursor `json:"cursor"` }
OrganizationEdge is the edge representation of Organization.
type OrganizationEdges ¶
type OrganizationEdges struct { // Parent holds the value of the parent edge. Parent *Organization `json:"parent,omitempty"` // Children holds the value of the children edge. Children []*Organization `json:"children,omitempty"` // Users holds the value of the users edge. Users []*User `json:"users,omitempty"` // Groups holds the value of the groups edge. Groups []*Group `json:"groups,omitempty"` // Integrations holds the value of the integrations edge. Integrations []*Integration `json:"integrations,omitempty"` // Setting holds the value of the setting edge. Setting *OrganizationSetting `json:"setting,omitempty"` // Entitlements holds the value of the entitlements edge. Entitlements []*Entitlement `json:"entitlements,omitempty"` // Oauthprovider holds the value of the oauthprovider edge. Oauthprovider []*OauthProvider `json:"oauthprovider,omitempty"` // contains filtered or unexported fields }
OrganizationEdges holds the relations/edges for other nodes in the graph.
func (OrganizationEdges) ChildrenOrErr ¶
func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error)
ChildrenOrErr returns the Children value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) EntitlementsOrErr ¶
func (e OrganizationEdges) EntitlementsOrErr() ([]*Entitlement, error)
EntitlementsOrErr returns the Entitlements value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) GroupsOrErr ¶
func (e OrganizationEdges) GroupsOrErr() ([]*Group, error)
GroupsOrErr returns the Groups value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) IntegrationsOrErr ¶
func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)
IntegrationsOrErr returns the Integrations value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) OauthproviderOrErr ¶
func (e OrganizationEdges) OauthproviderOrErr() ([]*OauthProvider, error)
OauthproviderOrErr returns the Oauthprovider value or an error if the edge was not loaded in eager-loading.
func (OrganizationEdges) ParentOrErr ¶
func (e OrganizationEdges) ParentOrErr() (*Organization, error)
ParentOrErr returns the Parent value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (OrganizationEdges) SettingOrErr ¶
func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error)
SettingOrErr returns the Setting value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (OrganizationEdges) UsersOrErr ¶
func (e OrganizationEdges) UsersOrErr() ([]*User, error)
UsersOrErr returns the Users value or an error if the edge was not loaded in eager-loading.
type OrganizationFilter ¶
type OrganizationFilter struct {
// contains filtered or unexported fields
}
OrganizationFilter provides a generic filtering capability at runtime for OrganizationQuery.
func (*OrganizationFilter) Where ¶
func (f *OrganizationFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*OrganizationFilter) WhereCreatedAt ¶
func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*OrganizationFilter) WhereCreatedBy ¶
func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*OrganizationFilter) WhereDeletedAt ¶
func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*OrganizationFilter) WhereDeletedBy ¶
func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*OrganizationFilter) WhereDescription ¶
func (f *OrganizationFilter) WhereDescription(p entql.StringP)
WhereDescription applies the entql string predicate on the description field.
func (*OrganizationFilter) WhereDisplayName ¶
func (f *OrganizationFilter) WhereDisplayName(p entql.StringP)
WhereDisplayName applies the entql string predicate on the display_name field.
func (*OrganizationFilter) WhereHasChildren ¶
func (f *OrganizationFilter) WhereHasChildren()
WhereHasChildren applies a predicate to check if query has an edge children.
func (*OrganizationFilter) WhereHasChildrenWith ¶
func (f *OrganizationFilter) WhereHasChildrenWith(preds ...predicate.Organization)
WhereHasChildrenWith applies a predicate to check if query has an edge children with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasEntitlements ¶
func (f *OrganizationFilter) WhereHasEntitlements()
WhereHasEntitlements applies a predicate to check if query has an edge entitlements.
func (*OrganizationFilter) WhereHasEntitlementsWith ¶
func (f *OrganizationFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement)
WhereHasEntitlementsWith applies a predicate to check if query has an edge entitlements with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasGroups ¶
func (f *OrganizationFilter) WhereHasGroups()
WhereHasGroups applies a predicate to check if query has an edge groups.
func (*OrganizationFilter) WhereHasGroupsWith ¶
func (f *OrganizationFilter) WhereHasGroupsWith(preds ...predicate.Group)
WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasIntegrations ¶
func (f *OrganizationFilter) WhereHasIntegrations()
WhereHasIntegrations applies a predicate to check if query has an edge integrations.
func (*OrganizationFilter) WhereHasIntegrationsWith ¶
func (f *OrganizationFilter) WhereHasIntegrationsWith(preds ...predicate.Integration)
WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasOauthprovider ¶
func (f *OrganizationFilter) WhereHasOauthprovider()
WhereHasOauthprovider applies a predicate to check if query has an edge oauthprovider.
func (*OrganizationFilter) WhereHasOauthproviderWith ¶
func (f *OrganizationFilter) WhereHasOauthproviderWith(preds ...predicate.OauthProvider)
WhereHasOauthproviderWith applies a predicate to check if query has an edge oauthprovider with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasParent ¶
func (f *OrganizationFilter) WhereHasParent()
WhereHasParent applies a predicate to check if query has an edge parent.
func (*OrganizationFilter) WhereHasParentWith ¶
func (f *OrganizationFilter) WhereHasParentWith(preds ...predicate.Organization)
WhereHasParentWith applies a predicate to check if query has an edge parent with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasSetting ¶
func (f *OrganizationFilter) WhereHasSetting()
WhereHasSetting applies a predicate to check if query has an edge setting.
func (*OrganizationFilter) WhereHasSettingWith ¶
func (f *OrganizationFilter) WhereHasSettingWith(preds ...predicate.OrganizationSetting)
WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates).
func (*OrganizationFilter) WhereHasUsers ¶
func (f *OrganizationFilter) WhereHasUsers()
WhereHasUsers applies a predicate to check if query has an edge users.
func (*OrganizationFilter) WhereHasUsersWith ¶
func (f *OrganizationFilter) WhereHasUsersWith(preds ...predicate.User)
WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates).
func (*OrganizationFilter) WhereID ¶
func (f *OrganizationFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*OrganizationFilter) WhereName ¶
func (f *OrganizationFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*OrganizationFilter) WhereParentOrganizationID ¶
func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP)
WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field.
func (*OrganizationFilter) WhereUpdatedAt ¶
func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*OrganizationFilter) WhereUpdatedBy ¶
func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type OrganizationGroupBy ¶
type OrganizationGroupBy struct {
// contains filtered or unexported fields
}
OrganizationGroupBy is the group-by builder for Organization entities.
func (*OrganizationGroupBy) Aggregate ¶
func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OrganizationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Scan ¶
func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationMutation ¶
type OrganizationMutation struct {
// contains filtered or unexported fields
}
OrganizationMutation represents an operation that mutates the Organization nodes in the graph.
func (*OrganizationMutation) AddChildIDs ¶
func (m *OrganizationMutation) AddChildIDs(ids ...string)
AddChildIDs adds the "children" edge to the Organization entity by ids.
func (*OrganizationMutation) AddEntitlementIDs ¶
func (m *OrganizationMutation) AddEntitlementIDs(ids ...string)
AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by ids.
func (*OrganizationMutation) AddField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) AddGroupIDs ¶
func (m *OrganizationMutation) AddGroupIDs(ids ...string)
AddGroupIDs adds the "groups" edge to the Group entity by ids.
func (*OrganizationMutation) AddIntegrationIDs ¶
func (m *OrganizationMutation) AddIntegrationIDs(ids ...string)
AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids.
func (*OrganizationMutation) AddOauthproviderIDs ¶
func (m *OrganizationMutation) AddOauthproviderIDs(ids ...string)
AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by ids.
func (*OrganizationMutation) AddUserIDs ¶
func (m *OrganizationMutation) AddUserIDs(ids ...string)
AddUserIDs adds the "users" edge to the User entity by ids.
func (*OrganizationMutation) AddedEdges ¶
func (m *OrganizationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OrganizationMutation) AddedField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) AddedFields ¶
func (m *OrganizationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OrganizationMutation) AddedIDs ¶
func (m *OrganizationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OrganizationMutation) ChildrenCleared ¶
func (m *OrganizationMutation) ChildrenCleared() bool
ChildrenCleared reports if the "children" edge to the Organization entity was cleared.
func (*OrganizationMutation) ChildrenIDs ¶
func (m *OrganizationMutation) ChildrenIDs() (ids []string)
ChildrenIDs returns the "children" edge IDs in the mutation.
func (*OrganizationMutation) ClearChildren ¶
func (m *OrganizationMutation) ClearChildren()
ClearChildren clears the "children" edge to the Organization entity.
func (*OrganizationMutation) ClearCreatedBy ¶
func (m *OrganizationMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*OrganizationMutation) ClearDeletedAt ¶
func (m *OrganizationMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrganizationMutation) ClearDeletedBy ¶
func (m *OrganizationMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OrganizationMutation) ClearDescription ¶
func (m *OrganizationMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*OrganizationMutation) ClearEdge ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearEntitlements ¶
func (m *OrganizationMutation) ClearEntitlements()
ClearEntitlements clears the "entitlements" edge to the Entitlement entity.
func (*OrganizationMutation) ClearField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearGroups ¶
func (m *OrganizationMutation) ClearGroups()
ClearGroups clears the "groups" edge to the Group entity.
func (*OrganizationMutation) ClearIntegrations ¶
func (m *OrganizationMutation) ClearIntegrations()
ClearIntegrations clears the "integrations" edge to the Integration entity.
func (*OrganizationMutation) ClearOauthprovider ¶
func (m *OrganizationMutation) ClearOauthprovider()
ClearOauthprovider clears the "oauthprovider" edge to the OauthProvider entity.
func (*OrganizationMutation) ClearParent ¶
func (m *OrganizationMutation) ClearParent()
ClearParent clears the "parent" edge to the Organization entity.
func (*OrganizationMutation) ClearParentOrganizationID ¶
func (m *OrganizationMutation) ClearParentOrganizationID()
ClearParentOrganizationID clears the value of the "parent_organization_id" field.
func (*OrganizationMutation) ClearSetting ¶
func (m *OrganizationMutation) ClearSetting()
ClearSetting clears the "setting" edge to the OrganizationSetting entity.
func (*OrganizationMutation) ClearUpdatedBy ¶
func (m *OrganizationMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OrganizationMutation) ClearUsers ¶
func (m *OrganizationMutation) ClearUsers()
ClearUsers clears the "users" edge to the User entity.
func (*OrganizationMutation) ClearedEdges ¶
func (m *OrganizationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OrganizationMutation) ClearedFields ¶
func (m *OrganizationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OrganizationMutation) Client ¶
func (m OrganizationMutation) 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 (*OrganizationMutation) CreatedAt ¶
func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OrganizationMutation) CreatedBy ¶
func (m *OrganizationMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*OrganizationMutation) CreatedByCleared ¶
func (m *OrganizationMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*OrganizationMutation) DeletedAt ¶
func (m *OrganizationMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*OrganizationMutation) DeletedAtCleared ¶
func (m *OrganizationMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*OrganizationMutation) DeletedBy ¶
func (m *OrganizationMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*OrganizationMutation) DeletedByCleared ¶
func (m *OrganizationMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*OrganizationMutation) Description ¶
func (m *OrganizationMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*OrganizationMutation) DescriptionCleared ¶
func (m *OrganizationMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*OrganizationMutation) DisplayName ¶
func (m *OrganizationMutation) DisplayName() (r string, exists bool)
DisplayName returns the value of the "display_name" field in the mutation.
func (*OrganizationMutation) EdgeCleared ¶
func (m *OrganizationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OrganizationMutation) EntitlementsCleared ¶
func (m *OrganizationMutation) EntitlementsCleared() bool
EntitlementsCleared reports if the "entitlements" edge to the Entitlement entity was cleared.
func (*OrganizationMutation) EntitlementsIDs ¶
func (m *OrganizationMutation) EntitlementsIDs() (ids []string)
EntitlementsIDs returns the "entitlements" edge IDs in the mutation.
func (*OrganizationMutation) Field ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) FieldCleared ¶
func (m *OrganizationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OrganizationMutation) Fields ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) Filter ¶
func (m *OrganizationMutation) Filter() *OrganizationFilter
Filter returns an entql.Where implementation to apply filters on the OrganizationMutation builder.
func (*OrganizationMutation) GroupsCleared ¶
func (m *OrganizationMutation) GroupsCleared() bool
GroupsCleared reports if the "groups" edge to the Group entity was cleared.
func (*OrganizationMutation) GroupsIDs ¶
func (m *OrganizationMutation) GroupsIDs() (ids []string)
GroupsIDs returns the "groups" edge IDs in the mutation.
func (*OrganizationMutation) ID ¶
func (m *OrganizationMutation) ID() (id string, 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 (*OrganizationMutation) IDs ¶
func (m *OrganizationMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OrganizationMutation) IntegrationsCleared ¶
func (m *OrganizationMutation) IntegrationsCleared() bool
IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared.
func (*OrganizationMutation) IntegrationsIDs ¶
func (m *OrganizationMutation) IntegrationsIDs() (ids []string)
IntegrationsIDs returns the "integrations" edge IDs in the mutation.
func (*OrganizationMutation) Name ¶
func (m *OrganizationMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*OrganizationMutation) OauthproviderCleared ¶
func (m *OrganizationMutation) OauthproviderCleared() bool
OauthproviderCleared reports if the "oauthprovider" edge to the OauthProvider entity was cleared.
func (*OrganizationMutation) OauthproviderIDs ¶
func (m *OrganizationMutation) OauthproviderIDs() (ids []string)
OauthproviderIDs returns the "oauthprovider" edge IDs in the mutation.
func (*OrganizationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldCreatedBy ¶
func (m *OrganizationMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldDeletedBy ¶
func (m *OrganizationMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldDescription ¶
func (m *OrganizationMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldDisplayName ¶
func (m *OrganizationMutation) OldDisplayName(ctx context.Context) (v string, err error)
OldDisplayName returns the old "display_name" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) 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 (*OrganizationMutation) OldName ¶
func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldParentOrganizationID ¶
func (m *OrganizationMutation) OldParentOrganizationID(ctx context.Context) (v string, err error)
OldParentOrganizationID returns the old "parent_organization_id" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) OldUpdatedBy ¶
func (m *OrganizationMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) Op ¶
func (m *OrganizationMutation) Op() Op
Op returns the operation name.
func (*OrganizationMutation) ParentCleared ¶
func (m *OrganizationMutation) ParentCleared() bool
ParentCleared reports if the "parent" edge to the Organization entity was cleared.
func (*OrganizationMutation) ParentID ¶
func (m *OrganizationMutation) ParentID() (id string, exists bool)
ParentID returns the "parent" edge ID in the mutation.
func (*OrganizationMutation) ParentIDs ¶
func (m *OrganizationMutation) ParentIDs() (ids []string)
ParentIDs returns the "parent" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ParentID instead. It exists only for internal usage by the builders.
func (*OrganizationMutation) ParentOrganizationID ¶
func (m *OrganizationMutation) ParentOrganizationID() (r string, exists bool)
ParentOrganizationID returns the value of the "parent_organization_id" field in the mutation.
func (*OrganizationMutation) ParentOrganizationIDCleared ¶
func (m *OrganizationMutation) ParentOrganizationIDCleared() bool
ParentOrganizationIDCleared returns if the "parent_organization_id" field was cleared in this mutation.
func (*OrganizationMutation) RemoveChildIDs ¶
func (m *OrganizationMutation) RemoveChildIDs(ids ...string)
RemoveChildIDs removes the "children" edge to the Organization entity by IDs.
func (*OrganizationMutation) RemoveEntitlementIDs ¶
func (m *OrganizationMutation) RemoveEntitlementIDs(ids ...string)
RemoveEntitlementIDs removes the "entitlements" edge to the Entitlement entity by IDs.
func (*OrganizationMutation) RemoveGroupIDs ¶
func (m *OrganizationMutation) RemoveGroupIDs(ids ...string)
RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.
func (*OrganizationMutation) RemoveIntegrationIDs ¶
func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...string)
RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs.
func (*OrganizationMutation) RemoveOauthproviderIDs ¶
func (m *OrganizationMutation) RemoveOauthproviderIDs(ids ...string)
RemoveOauthproviderIDs removes the "oauthprovider" edge to the OauthProvider entity by IDs.
func (*OrganizationMutation) RemoveUserIDs ¶
func (m *OrganizationMutation) RemoveUserIDs(ids ...string)
RemoveUserIDs removes the "users" edge to the User entity by IDs.
func (*OrganizationMutation) RemovedChildrenIDs ¶
func (m *OrganizationMutation) RemovedChildrenIDs() (ids []string)
RemovedChildren returns the removed IDs of the "children" edge to the Organization entity.
func (*OrganizationMutation) RemovedEdges ¶
func (m *OrganizationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OrganizationMutation) RemovedEntitlementsIDs ¶
func (m *OrganizationMutation) RemovedEntitlementsIDs() (ids []string)
RemovedEntitlements returns the removed IDs of the "entitlements" edge to the Entitlement entity.
func (*OrganizationMutation) RemovedGroupsIDs ¶
func (m *OrganizationMutation) RemovedGroupsIDs() (ids []string)
RemovedGroups returns the removed IDs of the "groups" edge to the Group entity.
func (*OrganizationMutation) RemovedIDs ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) RemovedIntegrationsIDs ¶
func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []string)
RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity.
func (*OrganizationMutation) RemovedOauthproviderIDs ¶
func (m *OrganizationMutation) RemovedOauthproviderIDs() (ids []string)
RemovedOauthprovider returns the removed IDs of the "oauthprovider" edge to the OauthProvider entity.
func (*OrganizationMutation) RemovedUsersIDs ¶
func (m *OrganizationMutation) RemovedUsersIDs() (ids []string)
RemovedUsers returns the removed IDs of the "users" edge to the User entity.
func (*OrganizationMutation) ResetChildren ¶
func (m *OrganizationMutation) ResetChildren()
ResetChildren resets all changes to the "children" edge.
func (*OrganizationMutation) ResetCreatedAt ¶
func (m *OrganizationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OrganizationMutation) ResetCreatedBy ¶
func (m *OrganizationMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*OrganizationMutation) ResetDeletedAt ¶
func (m *OrganizationMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*OrganizationMutation) ResetDeletedBy ¶
func (m *OrganizationMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*OrganizationMutation) ResetDescription ¶
func (m *OrganizationMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*OrganizationMutation) ResetDisplayName ¶
func (m *OrganizationMutation) ResetDisplayName()
ResetDisplayName resets all changes to the "display_name" field.
func (*OrganizationMutation) ResetEdge ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetEntitlements ¶
func (m *OrganizationMutation) ResetEntitlements()
ResetEntitlements resets all changes to the "entitlements" edge.
func (*OrganizationMutation) ResetField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetGroups ¶
func (m *OrganizationMutation) ResetGroups()
ResetGroups resets all changes to the "groups" edge.
func (*OrganizationMutation) ResetIntegrations ¶
func (m *OrganizationMutation) ResetIntegrations()
ResetIntegrations resets all changes to the "integrations" edge.
func (*OrganizationMutation) ResetName ¶
func (m *OrganizationMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*OrganizationMutation) ResetOauthprovider ¶
func (m *OrganizationMutation) ResetOauthprovider()
ResetOauthprovider resets all changes to the "oauthprovider" edge.
func (*OrganizationMutation) ResetParent ¶
func (m *OrganizationMutation) ResetParent()
ResetParent resets all changes to the "parent" edge.
func (*OrganizationMutation) ResetParentOrganizationID ¶
func (m *OrganizationMutation) ResetParentOrganizationID()
ResetParentOrganizationID resets all changes to the "parent_organization_id" field.
func (*OrganizationMutation) ResetSetting ¶
func (m *OrganizationMutation) ResetSetting()
ResetSetting resets all changes to the "setting" edge.
func (*OrganizationMutation) ResetUpdatedAt ¶
func (m *OrganizationMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*OrganizationMutation) ResetUpdatedBy ¶
func (m *OrganizationMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*OrganizationMutation) ResetUsers ¶
func (m *OrganizationMutation) ResetUsers()
ResetUsers resets all changes to the "users" edge.
func (*OrganizationMutation) SetCreatedAt ¶
func (m *OrganizationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OrganizationMutation) SetCreatedBy ¶
func (m *OrganizationMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*OrganizationMutation) SetDeletedAt ¶
func (m *OrganizationMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationMutation) SetDeletedBy ¶
func (m *OrganizationMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationMutation) SetDescription ¶
func (m *OrganizationMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*OrganizationMutation) SetDisplayName ¶
func (m *OrganizationMutation) SetDisplayName(s string)
SetDisplayName sets the "display_name" field.
func (*OrganizationMutation) SetField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) SetID ¶
func (m *OrganizationMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Organization entities.
func (*OrganizationMutation) SetName ¶
func (m *OrganizationMutation) SetName(s string)
SetName sets the "name" field.
func (*OrganizationMutation) SetOp ¶
func (m *OrganizationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OrganizationMutation) SetParentID ¶
func (m *OrganizationMutation) SetParentID(id string)
SetParentID sets the "parent" edge to the Organization entity by id.
func (*OrganizationMutation) SetParentOrganizationID ¶
func (m *OrganizationMutation) SetParentOrganizationID(s string)
SetParentOrganizationID sets the "parent_organization_id" field.
func (*OrganizationMutation) SetSettingID ¶
func (m *OrganizationMutation) SetSettingID(id string)
SetSettingID sets the "setting" edge to the OrganizationSetting entity by id.
func (*OrganizationMutation) SetUpdatedAt ¶
func (m *OrganizationMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationMutation) SetUpdatedBy ¶
func (m *OrganizationMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*OrganizationMutation) SettingCleared ¶
func (m *OrganizationMutation) SettingCleared() bool
SettingCleared reports if the "setting" edge to the OrganizationSetting entity was cleared.
func (*OrganizationMutation) SettingID ¶
func (m *OrganizationMutation) SettingID() (id string, exists bool)
SettingID returns the "setting" edge ID in the mutation.
func (*OrganizationMutation) SettingIDs ¶
func (m *OrganizationMutation) SettingIDs() (ids []string)
SettingIDs returns the "setting" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SettingID instead. It exists only for internal usage by the builders.
func (OrganizationMutation) Tx ¶
func (m OrganizationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OrganizationMutation) Type ¶
func (m *OrganizationMutation) Type() string
Type returns the node type of this mutation (Organization).
func (*OrganizationMutation) UpdatedAt ¶
func (m *OrganizationMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*OrganizationMutation) UpdatedBy ¶
func (m *OrganizationMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*OrganizationMutation) UpdatedByCleared ¶
func (m *OrganizationMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*OrganizationMutation) UsersCleared ¶
func (m *OrganizationMutation) UsersCleared() bool
UsersCleared reports if the "users" edge to the User entity was cleared.
func (*OrganizationMutation) UsersIDs ¶
func (m *OrganizationMutation) UsersIDs() (ids []string)
UsersIDs returns the "users" edge IDs in the mutation.
func (*OrganizationMutation) Where ¶
func (m *OrganizationMutation) Where(ps ...predicate.Organization)
Where appends a list predicates to the OrganizationMutation builder.
func (*OrganizationMutation) WhereP ¶
func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OrganizationOrder ¶
type OrganizationOrder struct { Direction OrderDirection `json:"direction"` Field *OrganizationOrderField `json:"field"` }
OrganizationOrder defines the ordering of Organization.
type OrganizationOrderField ¶
type OrganizationOrderField struct { // Value extracts the ordering value from the given Organization. Value func(*Organization) (ent.Value, error) // contains filtered or unexported fields }
OrganizationOrderField defines the ordering field of Organization.
func (OrganizationOrderField) MarshalGQL ¶
func (f OrganizationOrderField) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (OrganizationOrderField) String ¶
func (f OrganizationOrderField) String() string
String implement fmt.Stringer interface.
func (*OrganizationOrderField) UnmarshalGQL ¶
func (f *OrganizationOrderField) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrganizationPaginateOption ¶
type OrganizationPaginateOption func(*organizationPager) error
OrganizationPaginateOption enables pagination customization.
func WithOrganizationFilter ¶
func WithOrganizationFilter(filter func(*OrganizationQuery) (*OrganizationQuery, error)) OrganizationPaginateOption
WithOrganizationFilter configures pagination filter.
func WithOrganizationOrder ¶
func WithOrganizationOrder(order *OrganizationOrder) OrganizationPaginateOption
WithOrganizationOrder configures pagination ordering.
type OrganizationQuery ¶
type OrganizationQuery struct {
// contains filtered or unexported fields
}
OrganizationQuery is the builder for querying Organization entities.
func (*OrganizationQuery) Aggregate ¶
func (oq *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect
Aggregate returns a OrganizationSelect configured with the given aggregations.
func (*OrganizationQuery) All ¶
func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)
All executes the query and returns a list of Organizations.
func (*OrganizationQuery) AllX ¶
func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization
AllX is like All, but panics if an error occurs.
func (*OrganizationQuery) Clone ¶
func (oq *OrganizationQuery) Clone() *OrganizationQuery
Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OrganizationQuery) CollectFields ¶
func (o *OrganizationQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*OrganizationQuery) Count ¶
func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OrganizationQuery) CountX ¶
func (oq *OrganizationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OrganizationQuery) Exist ¶
func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OrganizationQuery) ExistX ¶
func (oq *OrganizationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OrganizationQuery) Filter ¶
func (oq *OrganizationQuery) Filter() *OrganizationFilter
Filter returns a Filter implementation to apply filters on the OrganizationQuery builder.
func (*OrganizationQuery) First ¶
func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)
First returns the first Organization entity from the query. Returns a *NotFoundError when no Organization was found.
func (*OrganizationQuery) FirstID ¶
func (oq *OrganizationQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Organization ID from the query. Returns a *NotFoundError when no Organization ID was found.
func (*OrganizationQuery) FirstIDX ¶
func (oq *OrganizationQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*OrganizationQuery) FirstX ¶
func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization
FirstX is like First, but panics if an error occurs.
func (*OrganizationQuery) GroupBy ¶
func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy
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.Organization.Query(). GroupBy(organization.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*OrganizationQuery) IDs ¶
func (oq *OrganizationQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Organization IDs.
func (*OrganizationQuery) IDsX ¶
func (oq *OrganizationQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*OrganizationQuery) Limit ¶
func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery
Limit the number of records to be returned by this query.
func (*OrganizationQuery) Offset ¶
func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery
Offset to start from.
func (*OrganizationQuery) Only ¶
func (oq *OrganizationQuery) Only(ctx context.Context) (*Organization, error)
Only returns a single Organization entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Organization entity is found. Returns a *NotFoundError when no Organization entities are found.
func (*OrganizationQuery) OnlyID ¶
func (oq *OrganizationQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Organization ID in the query. Returns a *NotSingularError when more than one Organization ID is found. Returns a *NotFoundError when no entities are found.
func (*OrganizationQuery) OnlyIDX ¶
func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OrganizationQuery) OnlyX ¶
func (oq *OrganizationQuery) OnlyX(ctx context.Context) *Organization
OnlyX is like Only, but panics if an error occurs.
func (*OrganizationQuery) Order ¶
func (oq *OrganizationQuery) Order(o ...organization.OrderOption) *OrganizationQuery
Order specifies how the records should be ordered.
func (*OrganizationQuery) Paginate ¶
func (o *OrganizationQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...OrganizationPaginateOption, ) (*OrganizationConnection, error)
Paginate executes the query and returns a relay based cursor connection to Organization.
func (*OrganizationQuery) QueryChildren ¶
func (oq *OrganizationQuery) QueryChildren() *OrganizationQuery
QueryChildren chains the current query on the "children" edge.
func (*OrganizationQuery) QueryEntitlements ¶
func (oq *OrganizationQuery) QueryEntitlements() *EntitlementQuery
QueryEntitlements chains the current query on the "entitlements" edge.
func (*OrganizationQuery) QueryGroups ¶
func (oq *OrganizationQuery) QueryGroups() *GroupQuery
QueryGroups chains the current query on the "groups" edge.
func (*OrganizationQuery) QueryIntegrations ¶
func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery
QueryIntegrations chains the current query on the "integrations" edge.
func (*OrganizationQuery) QueryOauthprovider ¶
func (oq *OrganizationQuery) QueryOauthprovider() *OauthProviderQuery
QueryOauthprovider chains the current query on the "oauthprovider" edge.
func (*OrganizationQuery) QueryParent ¶
func (oq *OrganizationQuery) QueryParent() *OrganizationQuery
QueryParent chains the current query on the "parent" edge.
func (*OrganizationQuery) QuerySetting ¶
func (oq *OrganizationQuery) QuerySetting() *OrganizationSettingQuery
QuerySetting chains the current query on the "setting" edge.
func (*OrganizationQuery) QueryUsers ¶
func (oq *OrganizationQuery) QueryUsers() *UserQuery
QueryUsers chains the current query on the "users" edge.
func (*OrganizationQuery) Select ¶
func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect
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.Organization.Query(). Select(organization.FieldCreatedAt). Scan(ctx, &v)
func (*OrganizationQuery) Unique ¶
func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery
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 (*OrganizationQuery) Where ¶
func (oq *OrganizationQuery) Where(ps ...predicate.Organization) *OrganizationQuery
Where adds a new predicate for the OrganizationQuery builder.
func (*OrganizationQuery) WithChildren ¶
func (oq *OrganizationQuery) WithChildren(opts ...func(*OrganizationQuery)) *OrganizationQuery
WithChildren tells the query-builder to eager-load the nodes that are connected to the "children" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithEntitlements ¶
func (oq *OrganizationQuery) WithEntitlements(opts ...func(*EntitlementQuery)) *OrganizationQuery
WithEntitlements tells the query-builder to eager-load the nodes that are connected to the "entitlements" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithGroups ¶
func (oq *OrganizationQuery) WithGroups(opts ...func(*GroupQuery)) *OrganizationQuery
WithGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithIntegrations ¶
func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery
WithIntegrations tells the query-builder to eager-load the nodes that are connected to the "integrations" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithNamedChildren ¶
func (oq *OrganizationQuery) WithNamedChildren(name string, opts ...func(*OrganizationQuery)) *OrganizationQuery
WithNamedChildren tells the query-builder to eager-load the nodes that are connected to the "children" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithNamedEntitlements ¶
func (oq *OrganizationQuery) WithNamedEntitlements(name string, opts ...func(*EntitlementQuery)) *OrganizationQuery
WithNamedEntitlements tells the query-builder to eager-load the nodes that are connected to the "entitlements" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithNamedGroups ¶
func (oq *OrganizationQuery) WithNamedGroups(name string, opts ...func(*GroupQuery)) *OrganizationQuery
WithNamedGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithNamedIntegrations ¶
func (oq *OrganizationQuery) WithNamedIntegrations(name string, opts ...func(*IntegrationQuery)) *OrganizationQuery
WithNamedIntegrations tells the query-builder to eager-load the nodes that are connected to the "integrations" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithNamedOauthprovider ¶
func (oq *OrganizationQuery) WithNamedOauthprovider(name string, opts ...func(*OauthProviderQuery)) *OrganizationQuery
WithNamedOauthprovider tells the query-builder to eager-load the nodes that are connected to the "oauthprovider" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithNamedUsers ¶
func (oq *OrganizationQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *OrganizationQuery
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 (*OrganizationQuery) WithOauthprovider ¶
func (oq *OrganizationQuery) WithOauthprovider(opts ...func(*OauthProviderQuery)) *OrganizationQuery
WithOauthprovider tells the query-builder to eager-load the nodes that are connected to the "oauthprovider" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithParent ¶
func (oq *OrganizationQuery) WithParent(opts ...func(*OrganizationQuery)) *OrganizationQuery
WithParent tells the query-builder to eager-load the nodes that are connected to the "parent" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithSetting ¶
func (oq *OrganizationQuery) WithSetting(opts ...func(*OrganizationSettingQuery)) *OrganizationQuery
WithSetting tells the query-builder to eager-load the nodes that are connected to the "setting" edge. The optional arguments are used to configure the query builder of the edge.
func (*OrganizationQuery) WithUsers ¶
func (oq *OrganizationQuery) WithUsers(opts ...func(*UserQuery)) *OrganizationQuery
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 OrganizationSelect ¶
type OrganizationSelect struct { *OrganizationQuery // contains filtered or unexported fields }
OrganizationSelect is the builder for selecting fields of Organization entities.
func (*OrganizationSelect) Aggregate ¶
func (os *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OrganizationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Scan ¶
func (os *OrganizationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationSetting ¶
type OrganizationSetting struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // domains associated with the organization Domains []string `json:"domains,omitempty"` // SSOCert holds the value of the "sso_cert" field. SSOCert string `json:"sso_cert,omitempty"` // SSOEntrypoint holds the value of the "sso_entrypoint" field. SSOEntrypoint string `json:"sso_entrypoint,omitempty"` // SSOIssuer holds the value of the "sso_issuer" field. SSOIssuer string `json:"sso_issuer,omitempty"` // Name of the person to contact for billing BillingContact string `json:"billing_contact,omitempty"` // BillingEmail holds the value of the "billing_email" field. BillingEmail string `json:"billing_email,omitempty"` // BillingPhone holds the value of the "billing_phone" field. BillingPhone string `json:"billing_phone,omitempty"` // BillingAddress holds the value of the "billing_address" field. BillingAddress string `json:"billing_address,omitempty"` // Usually government-issued tax ID or business ID such as ABN in Australia TaxIdentifier string `json:"tax_identifier,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OrganizationSettingQuery when eager-loading is set. Edges OrganizationSettingEdges `json:"edges"` // contains filtered or unexported fields }
OrganizationSetting is the model entity for the OrganizationSetting schema.
func (*OrganizationSetting) IsNode ¶
func (n *OrganizationSetting) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*OrganizationSetting) Organization ¶
func (os *OrganizationSetting) Organization(ctx context.Context) (*Organization, error)
func (*OrganizationSetting) QueryOrganization ¶
func (os *OrganizationSetting) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the OrganizationSetting entity.
func (*OrganizationSetting) String ¶
func (os *OrganizationSetting) String() string
String implements the fmt.Stringer.
func (*OrganizationSetting) ToEdge ¶
func (os *OrganizationSetting) ToEdge(order *OrganizationSettingOrder) *OrganizationSettingEdge
ToEdge converts OrganizationSetting into OrganizationSettingEdge.
func (*OrganizationSetting) Unwrap ¶
func (os *OrganizationSetting) Unwrap() *OrganizationSetting
Unwrap unwraps the OrganizationSetting 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 (*OrganizationSetting) Update ¶
func (os *OrganizationSetting) Update() *OrganizationSettingUpdateOne
Update returns a builder for updating this OrganizationSetting. Note that you need to call OrganizationSetting.Unwrap() before calling this method if this OrganizationSetting was returned from a transaction, and the transaction was committed or rolled back.
type OrganizationSettingClient ¶
type OrganizationSettingClient struct {
// contains filtered or unexported fields
}
OrganizationSettingClient is a client for the OrganizationSetting schema.
func NewOrganizationSettingClient ¶
func NewOrganizationSettingClient(c config) *OrganizationSettingClient
NewOrganizationSettingClient returns a client for the OrganizationSetting from the given config.
func (*OrganizationSettingClient) Create ¶
func (c *OrganizationSettingClient) Create() *OrganizationSettingCreate
Create returns a builder for creating a OrganizationSetting entity.
func (*OrganizationSettingClient) CreateBulk ¶
func (c *OrganizationSettingClient) CreateBulk(builders ...*OrganizationSettingCreate) *OrganizationSettingCreateBulk
CreateBulk returns a builder for creating a bulk of OrganizationSetting entities.
func (*OrganizationSettingClient) Delete ¶
func (c *OrganizationSettingClient) Delete() *OrganizationSettingDelete
Delete returns a delete builder for OrganizationSetting.
func (*OrganizationSettingClient) DeleteOne ¶
func (c *OrganizationSettingClient) DeleteOne(os *OrganizationSetting) *OrganizationSettingDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OrganizationSettingClient) DeleteOneID ¶
func (c *OrganizationSettingClient) DeleteOneID(id string) *OrganizationSettingDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OrganizationSettingClient) Get ¶
func (c *OrganizationSettingClient) Get(ctx context.Context, id string) (*OrganizationSetting, error)
Get returns a OrganizationSetting entity by its id.
func (*OrganizationSettingClient) GetX ¶
func (c *OrganizationSettingClient) GetX(ctx context.Context, id string) *OrganizationSetting
GetX is like Get, but panics if an error occurs.
func (*OrganizationSettingClient) Hooks ¶
func (c *OrganizationSettingClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OrganizationSettingClient) Intercept ¶
func (c *OrganizationSettingClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organizationsetting.Intercept(f(g(h())))`.
func (*OrganizationSettingClient) Interceptors ¶
func (c *OrganizationSettingClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OrganizationSettingClient) MapCreateBulk ¶
func (c *OrganizationSettingClient) MapCreateBulk(slice any, setFunc func(*OrganizationSettingCreate, int)) *OrganizationSettingCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OrganizationSettingClient) Query ¶
func (c *OrganizationSettingClient) Query() *OrganizationSettingQuery
Query returns a query builder for OrganizationSetting.
func (*OrganizationSettingClient) QueryOrganization ¶
func (c *OrganizationSettingClient) QueryOrganization(os *OrganizationSetting) *OrganizationQuery
QueryOrganization queries the organization edge of a OrganizationSetting.
func (*OrganizationSettingClient) Update ¶
func (c *OrganizationSettingClient) Update() *OrganizationSettingUpdate
Update returns an update builder for OrganizationSetting.
func (*OrganizationSettingClient) UpdateOne ¶
func (c *OrganizationSettingClient) UpdateOne(os *OrganizationSetting) *OrganizationSettingUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OrganizationSettingClient) UpdateOneID ¶
func (c *OrganizationSettingClient) UpdateOneID(id string) *OrganizationSettingUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OrganizationSettingClient) Use ¶
func (c *OrganizationSettingClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organizationsetting.Hooks(f(g(h())))`.
type OrganizationSettingConnection ¶
type OrganizationSettingConnection struct { Edges []*OrganizationSettingEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
OrganizationSettingConnection is the connection containing edges to OrganizationSetting.
type OrganizationSettingCreate ¶
type OrganizationSettingCreate struct {
// contains filtered or unexported fields
}
OrganizationSettingCreate is the builder for creating a OrganizationSetting entity.
func (*OrganizationSettingCreate) Exec ¶
func (osc *OrganizationSettingCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationSettingCreate) ExecX ¶
func (osc *OrganizationSettingCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationSettingCreate) Mutation ¶
func (osc *OrganizationSettingCreate) Mutation() *OrganizationSettingMutation
Mutation returns the OrganizationSettingMutation object of the builder.
func (*OrganizationSettingCreate) Save ¶
func (osc *OrganizationSettingCreate) Save(ctx context.Context) (*OrganizationSetting, error)
Save creates the OrganizationSetting in the database.
func (*OrganizationSettingCreate) SaveX ¶
func (osc *OrganizationSettingCreate) SaveX(ctx context.Context) *OrganizationSetting
SaveX calls Save and panics if Save returns an error.
func (*OrganizationSettingCreate) SetBillingAddress ¶
func (osc *OrganizationSettingCreate) SetBillingAddress(s string) *OrganizationSettingCreate
SetBillingAddress sets the "billing_address" field.
func (*OrganizationSettingCreate) SetBillingContact ¶
func (osc *OrganizationSettingCreate) SetBillingContact(s string) *OrganizationSettingCreate
SetBillingContact sets the "billing_contact" field.
func (*OrganizationSettingCreate) SetBillingEmail ¶
func (osc *OrganizationSettingCreate) SetBillingEmail(s string) *OrganizationSettingCreate
SetBillingEmail sets the "billing_email" field.
func (*OrganizationSettingCreate) SetBillingPhone ¶
func (osc *OrganizationSettingCreate) SetBillingPhone(s string) *OrganizationSettingCreate
SetBillingPhone sets the "billing_phone" field.
func (*OrganizationSettingCreate) SetCreatedAt ¶
func (osc *OrganizationSettingCreate) SetCreatedAt(t time.Time) *OrganizationSettingCreate
SetCreatedAt sets the "created_at" field.
func (*OrganizationSettingCreate) SetCreatedBy ¶
func (osc *OrganizationSettingCreate) SetCreatedBy(s string) *OrganizationSettingCreate
SetCreatedBy sets the "created_by" field.
func (*OrganizationSettingCreate) SetDeletedAt ¶
func (osc *OrganizationSettingCreate) SetDeletedAt(t time.Time) *OrganizationSettingCreate
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationSettingCreate) SetDeletedBy ¶
func (osc *OrganizationSettingCreate) SetDeletedBy(s string) *OrganizationSettingCreate
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationSettingCreate) SetDomains ¶
func (osc *OrganizationSettingCreate) SetDomains(s []string) *OrganizationSettingCreate
SetDomains sets the "domains" field.
func (*OrganizationSettingCreate) SetID ¶
func (osc *OrganizationSettingCreate) SetID(s string) *OrganizationSettingCreate
SetID sets the "id" field.
func (*OrganizationSettingCreate) SetInput ¶
func (c *OrganizationSettingCreate) SetInput(i CreateOrganizationSettingInput) *OrganizationSettingCreate
SetInput applies the change-set in the CreateOrganizationSettingInput on the OrganizationSettingCreate builder.
func (*OrganizationSettingCreate) SetNillableBillingAddress ¶
func (osc *OrganizationSettingCreate) SetNillableBillingAddress(s *string) *OrganizationSettingCreate
SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableBillingContact ¶
func (osc *OrganizationSettingCreate) SetNillableBillingContact(s *string) *OrganizationSettingCreate
SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableBillingEmail ¶
func (osc *OrganizationSettingCreate) SetNillableBillingEmail(s *string) *OrganizationSettingCreate
SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableBillingPhone ¶
func (osc *OrganizationSettingCreate) SetNillableBillingPhone(s *string) *OrganizationSettingCreate
SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableCreatedAt ¶
func (osc *OrganizationSettingCreate) SetNillableCreatedAt(t *time.Time) *OrganizationSettingCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableCreatedBy ¶
func (osc *OrganizationSettingCreate) SetNillableCreatedBy(s *string) *OrganizationSettingCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableDeletedAt ¶
func (osc *OrganizationSettingCreate) SetNillableDeletedAt(t *time.Time) *OrganizationSettingCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableDeletedBy ¶
func (osc *OrganizationSettingCreate) SetNillableDeletedBy(s *string) *OrganizationSettingCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableID ¶
func (osc *OrganizationSettingCreate) SetNillableID(s *string) *OrganizationSettingCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableOrganizationID ¶
func (osc *OrganizationSettingCreate) SetNillableOrganizationID(id *string) *OrganizationSettingCreate
SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableSSOCert ¶
func (osc *OrganizationSettingCreate) SetNillableSSOCert(s *string) *OrganizationSettingCreate
SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableSSOEntrypoint ¶
func (osc *OrganizationSettingCreate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingCreate
SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableSSOIssuer ¶
func (osc *OrganizationSettingCreate) SetNillableSSOIssuer(s *string) *OrganizationSettingCreate
SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableTaxIdentifier ¶
func (osc *OrganizationSettingCreate) SetNillableTaxIdentifier(s *string) *OrganizationSettingCreate
SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableUpdatedAt ¶
func (osc *OrganizationSettingCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationSettingCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*OrganizationSettingCreate) SetNillableUpdatedBy ¶
func (osc *OrganizationSettingCreate) SetNillableUpdatedBy(s *string) *OrganizationSettingCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OrganizationSettingCreate) SetOrganization ¶
func (osc *OrganizationSettingCreate) SetOrganization(o *Organization) *OrganizationSettingCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*OrganizationSettingCreate) SetOrganizationID ¶
func (osc *OrganizationSettingCreate) SetOrganizationID(id string) *OrganizationSettingCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*OrganizationSettingCreate) SetSSOCert ¶
func (osc *OrganizationSettingCreate) SetSSOCert(s string) *OrganizationSettingCreate
SetSSOCert sets the "sso_cert" field.
func (*OrganizationSettingCreate) SetSSOEntrypoint ¶
func (osc *OrganizationSettingCreate) SetSSOEntrypoint(s string) *OrganizationSettingCreate
SetSSOEntrypoint sets the "sso_entrypoint" field.
func (*OrganizationSettingCreate) SetSSOIssuer ¶
func (osc *OrganizationSettingCreate) SetSSOIssuer(s string) *OrganizationSettingCreate
SetSSOIssuer sets the "sso_issuer" field.
func (*OrganizationSettingCreate) SetTags ¶
func (osc *OrganizationSettingCreate) SetTags(s []string) *OrganizationSettingCreate
SetTags sets the "tags" field.
func (*OrganizationSettingCreate) SetTaxIdentifier ¶
func (osc *OrganizationSettingCreate) SetTaxIdentifier(s string) *OrganizationSettingCreate
SetTaxIdentifier sets the "tax_identifier" field.
func (*OrganizationSettingCreate) SetUpdatedAt ¶
func (osc *OrganizationSettingCreate) SetUpdatedAt(t time.Time) *OrganizationSettingCreate
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationSettingCreate) SetUpdatedBy ¶
func (osc *OrganizationSettingCreate) SetUpdatedBy(s string) *OrganizationSettingCreate
SetUpdatedBy sets the "updated_by" field.
type OrganizationSettingCreateBulk ¶
type OrganizationSettingCreateBulk struct {
// contains filtered or unexported fields
}
OrganizationSettingCreateBulk is the builder for creating many OrganizationSetting entities in bulk.
func (*OrganizationSettingCreateBulk) Exec ¶
func (oscb *OrganizationSettingCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationSettingCreateBulk) ExecX ¶
func (oscb *OrganizationSettingCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationSettingCreateBulk) Save ¶
func (oscb *OrganizationSettingCreateBulk) Save(ctx context.Context) ([]*OrganizationSetting, error)
Save creates the OrganizationSetting entities in the database.
func (*OrganizationSettingCreateBulk) SaveX ¶
func (oscb *OrganizationSettingCreateBulk) SaveX(ctx context.Context) []*OrganizationSetting
SaveX is like Save, but panics if an error occurs.
type OrganizationSettingDelete ¶
type OrganizationSettingDelete struct {
// contains filtered or unexported fields
}
OrganizationSettingDelete is the builder for deleting a OrganizationSetting entity.
func (*OrganizationSettingDelete) Exec ¶
func (osd *OrganizationSettingDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OrganizationSettingDelete) ExecX ¶
func (osd *OrganizationSettingDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationSettingDelete) Where ¶
func (osd *OrganizationSettingDelete) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingDelete
Where appends a list predicates to the OrganizationSettingDelete builder.
type OrganizationSettingDeleteOne ¶
type OrganizationSettingDeleteOne struct {
// contains filtered or unexported fields
}
OrganizationSettingDeleteOne is the builder for deleting a single OrganizationSetting entity.
func (*OrganizationSettingDeleteOne) Exec ¶
func (osdo *OrganizationSettingDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OrganizationSettingDeleteOne) ExecX ¶
func (osdo *OrganizationSettingDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationSettingDeleteOne) Where ¶
func (osdo *OrganizationSettingDeleteOne) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingDeleteOne
Where appends a list predicates to the OrganizationSettingDelete builder.
type OrganizationSettingEdge ¶
type OrganizationSettingEdge struct { Node *OrganizationSetting `json:"node"` Cursor Cursor `json:"cursor"` }
OrganizationSettingEdge is the edge representation of OrganizationSetting.
type OrganizationSettingEdges ¶
type OrganizationSettingEdges struct { // Organization holds the value of the organization edge. Organization *Organization `json:"organization,omitempty"` // contains filtered or unexported fields }
OrganizationSettingEdges holds the relations/edges for other nodes in the graph.
func (OrganizationSettingEdges) OrganizationOrErr ¶
func (e OrganizationSettingEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type OrganizationSettingFilter ¶
type OrganizationSettingFilter struct {
// contains filtered or unexported fields
}
OrganizationSettingFilter provides a generic filtering capability at runtime for OrganizationSettingQuery.
func (*OrganizationSettingFilter) Where ¶
func (f *OrganizationSettingFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*OrganizationSettingFilter) WhereBillingAddress ¶
func (f *OrganizationSettingFilter) WhereBillingAddress(p entql.StringP)
WhereBillingAddress applies the entql string predicate on the billing_address field.
func (*OrganizationSettingFilter) WhereBillingContact ¶
func (f *OrganizationSettingFilter) WhereBillingContact(p entql.StringP)
WhereBillingContact applies the entql string predicate on the billing_contact field.
func (*OrganizationSettingFilter) WhereBillingEmail ¶
func (f *OrganizationSettingFilter) WhereBillingEmail(p entql.StringP)
WhereBillingEmail applies the entql string predicate on the billing_email field.
func (*OrganizationSettingFilter) WhereBillingPhone ¶
func (f *OrganizationSettingFilter) WhereBillingPhone(p entql.StringP)
WhereBillingPhone applies the entql string predicate on the billing_phone field.
func (*OrganizationSettingFilter) WhereCreatedAt ¶
func (f *OrganizationSettingFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*OrganizationSettingFilter) WhereCreatedBy ¶
func (f *OrganizationSettingFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*OrganizationSettingFilter) WhereDeletedAt ¶
func (f *OrganizationSettingFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*OrganizationSettingFilter) WhereDeletedBy ¶
func (f *OrganizationSettingFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*OrganizationSettingFilter) WhereDomains ¶
func (f *OrganizationSettingFilter) WhereDomains(p entql.BytesP)
WhereDomains applies the entql json.RawMessage predicate on the domains field.
func (*OrganizationSettingFilter) WhereHasOrganization ¶
func (f *OrganizationSettingFilter) WhereHasOrganization()
WhereHasOrganization applies a predicate to check if query has an edge organization.
func (*OrganizationSettingFilter) WhereHasOrganizationWith ¶
func (f *OrganizationSettingFilter) WhereHasOrganizationWith(preds ...predicate.Organization)
WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates).
func (*OrganizationSettingFilter) WhereID ¶
func (f *OrganizationSettingFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*OrganizationSettingFilter) WhereSSOCert ¶
func (f *OrganizationSettingFilter) WhereSSOCert(p entql.StringP)
WhereSSOCert applies the entql string predicate on the sso_cert field.
func (*OrganizationSettingFilter) WhereSSOEntrypoint ¶
func (f *OrganizationSettingFilter) WhereSSOEntrypoint(p entql.StringP)
WhereSSOEntrypoint applies the entql string predicate on the sso_entrypoint field.
func (*OrganizationSettingFilter) WhereSSOIssuer ¶
func (f *OrganizationSettingFilter) WhereSSOIssuer(p entql.StringP)
WhereSSOIssuer applies the entql string predicate on the sso_issuer field.
func (*OrganizationSettingFilter) WhereTags ¶
func (f *OrganizationSettingFilter) WhereTags(p entql.BytesP)
WhereTags applies the entql json.RawMessage predicate on the tags field.
func (*OrganizationSettingFilter) WhereTaxIdentifier ¶
func (f *OrganizationSettingFilter) WhereTaxIdentifier(p entql.StringP)
WhereTaxIdentifier applies the entql string predicate on the tax_identifier field.
func (*OrganizationSettingFilter) WhereUpdatedAt ¶
func (f *OrganizationSettingFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*OrganizationSettingFilter) WhereUpdatedBy ¶
func (f *OrganizationSettingFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type OrganizationSettingGroupBy ¶
type OrganizationSettingGroupBy struct {
// contains filtered or unexported fields
}
OrganizationSettingGroupBy is the group-by builder for OrganizationSetting entities.
func (*OrganizationSettingGroupBy) Aggregate ¶
func (osgb *OrganizationSettingGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationSettingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OrganizationSettingGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*OrganizationSettingGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*OrganizationSettingGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingGroupBy) Scan ¶
func (osgb *OrganizationSettingGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationSettingGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationSettingMutation ¶
type OrganizationSettingMutation struct {
// contains filtered or unexported fields
}
OrganizationSettingMutation represents an operation that mutates the OrganizationSetting nodes in the graph.
func (*OrganizationSettingMutation) AddField ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) AddedEdges ¶
func (m *OrganizationSettingMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OrganizationSettingMutation) AddedField ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) AddedFields ¶
func (m *OrganizationSettingMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OrganizationSettingMutation) AddedIDs ¶
func (m *OrganizationSettingMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OrganizationSettingMutation) AppendDomains ¶
func (m *OrganizationSettingMutation) AppendDomains(s []string)
AppendDomains adds s to the "domains" field.
func (*OrganizationSettingMutation) AppendTags ¶
func (m *OrganizationSettingMutation) AppendTags(s []string)
AppendTags adds s to the "tags" field.
func (*OrganizationSettingMutation) AppendedDomains ¶
func (m *OrganizationSettingMutation) AppendedDomains() ([]string, bool)
AppendedDomains returns the list of values that were appended to the "domains" field in this mutation.
func (*OrganizationSettingMutation) AppendedTags ¶
func (m *OrganizationSettingMutation) AppendedTags() ([]string, bool)
AppendedTags returns the list of values that were appended to the "tags" field in this mutation.
func (*OrganizationSettingMutation) BillingAddress ¶
func (m *OrganizationSettingMutation) BillingAddress() (r string, exists bool)
BillingAddress returns the value of the "billing_address" field in the mutation.
func (*OrganizationSettingMutation) BillingAddressCleared ¶
func (m *OrganizationSettingMutation) BillingAddressCleared() bool
BillingAddressCleared returns if the "billing_address" field was cleared in this mutation.
func (*OrganizationSettingMutation) BillingContact ¶
func (m *OrganizationSettingMutation) BillingContact() (r string, exists bool)
BillingContact returns the value of the "billing_contact" field in the mutation.
func (*OrganizationSettingMutation) BillingContactCleared ¶
func (m *OrganizationSettingMutation) BillingContactCleared() bool
BillingContactCleared returns if the "billing_contact" field was cleared in this mutation.
func (*OrganizationSettingMutation) BillingEmail ¶
func (m *OrganizationSettingMutation) BillingEmail() (r string, exists bool)
BillingEmail returns the value of the "billing_email" field in the mutation.
func (*OrganizationSettingMutation) BillingEmailCleared ¶
func (m *OrganizationSettingMutation) BillingEmailCleared() bool
BillingEmailCleared returns if the "billing_email" field was cleared in this mutation.
func (*OrganizationSettingMutation) BillingPhone ¶
func (m *OrganizationSettingMutation) BillingPhone() (r string, exists bool)
BillingPhone returns the value of the "billing_phone" field in the mutation.
func (*OrganizationSettingMutation) BillingPhoneCleared ¶
func (m *OrganizationSettingMutation) BillingPhoneCleared() bool
BillingPhoneCleared returns if the "billing_phone" field was cleared in this mutation.
func (*OrganizationSettingMutation) ClearBillingAddress ¶
func (m *OrganizationSettingMutation) ClearBillingAddress()
ClearBillingAddress clears the value of the "billing_address" field.
func (*OrganizationSettingMutation) ClearBillingContact ¶
func (m *OrganizationSettingMutation) ClearBillingContact()
ClearBillingContact clears the value of the "billing_contact" field.
func (*OrganizationSettingMutation) ClearBillingEmail ¶
func (m *OrganizationSettingMutation) ClearBillingEmail()
ClearBillingEmail clears the value of the "billing_email" field.
func (*OrganizationSettingMutation) ClearBillingPhone ¶
func (m *OrganizationSettingMutation) ClearBillingPhone()
ClearBillingPhone clears the value of the "billing_phone" field.
func (*OrganizationSettingMutation) ClearCreatedBy ¶
func (m *OrganizationSettingMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*OrganizationSettingMutation) ClearDeletedAt ¶
func (m *OrganizationSettingMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrganizationSettingMutation) ClearDeletedBy ¶
func (m *OrganizationSettingMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OrganizationSettingMutation) ClearDomains ¶
func (m *OrganizationSettingMutation) ClearDomains()
ClearDomains clears the value of the "domains" field.
func (*OrganizationSettingMutation) ClearEdge ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) ClearField ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) ClearOrganization ¶
func (m *OrganizationSettingMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OrganizationSettingMutation) ClearSSOCert ¶
func (m *OrganizationSettingMutation) ClearSSOCert()
ClearSSOCert clears the value of the "sso_cert" field.
func (*OrganizationSettingMutation) ClearSSOEntrypoint ¶
func (m *OrganizationSettingMutation) ClearSSOEntrypoint()
ClearSSOEntrypoint clears the value of the "sso_entrypoint" field.
func (*OrganizationSettingMutation) ClearSSOIssuer ¶
func (m *OrganizationSettingMutation) ClearSSOIssuer()
ClearSSOIssuer clears the value of the "sso_issuer" field.
func (*OrganizationSettingMutation) ClearTags ¶
func (m *OrganizationSettingMutation) ClearTags()
ClearTags clears the value of the "tags" field.
func (*OrganizationSettingMutation) ClearTaxIdentifier ¶
func (m *OrganizationSettingMutation) ClearTaxIdentifier()
ClearTaxIdentifier clears the value of the "tax_identifier" field.
func (*OrganizationSettingMutation) ClearUpdatedBy ¶
func (m *OrganizationSettingMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OrganizationSettingMutation) ClearedEdges ¶
func (m *OrganizationSettingMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OrganizationSettingMutation) ClearedFields ¶
func (m *OrganizationSettingMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OrganizationSettingMutation) Client ¶
func (m OrganizationSettingMutation) 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 (*OrganizationSettingMutation) CreatedAt ¶
func (m *OrganizationSettingMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OrganizationSettingMutation) CreatedBy ¶
func (m *OrganizationSettingMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*OrganizationSettingMutation) CreatedByCleared ¶
func (m *OrganizationSettingMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*OrganizationSettingMutation) DeletedAt ¶
func (m *OrganizationSettingMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*OrganizationSettingMutation) DeletedAtCleared ¶
func (m *OrganizationSettingMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*OrganizationSettingMutation) DeletedBy ¶
func (m *OrganizationSettingMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*OrganizationSettingMutation) DeletedByCleared ¶
func (m *OrganizationSettingMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*OrganizationSettingMutation) Domains ¶
func (m *OrganizationSettingMutation) Domains() (r []string, exists bool)
Domains returns the value of the "domains" field in the mutation.
func (*OrganizationSettingMutation) DomainsCleared ¶
func (m *OrganizationSettingMutation) DomainsCleared() bool
DomainsCleared returns if the "domains" field was cleared in this mutation.
func (*OrganizationSettingMutation) EdgeCleared ¶
func (m *OrganizationSettingMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OrganizationSettingMutation) Field ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) FieldCleared ¶
func (m *OrganizationSettingMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OrganizationSettingMutation) Fields ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) Filter ¶
func (m *OrganizationSettingMutation) Filter() *OrganizationSettingFilter
Filter returns an entql.Where implementation to apply filters on the OrganizationSettingMutation builder.
func (*OrganizationSettingMutation) ID ¶
func (m *OrganizationSettingMutation) ID() (id string, 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 (*OrganizationSettingMutation) IDs ¶
func (m *OrganizationSettingMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OrganizationSettingMutation) OldBillingAddress ¶
func (m *OrganizationSettingMutation) OldBillingAddress(ctx context.Context) (v string, err error)
OldBillingAddress returns the old "billing_address" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldBillingContact ¶
func (m *OrganizationSettingMutation) OldBillingContact(ctx context.Context) (v string, err error)
OldBillingContact returns the old "billing_contact" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldBillingEmail ¶
func (m *OrganizationSettingMutation) OldBillingEmail(ctx context.Context) (v string, err error)
OldBillingEmail returns the old "billing_email" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldBillingPhone ¶
func (m *OrganizationSettingMutation) OldBillingPhone(ctx context.Context) (v string, err error)
OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldCreatedBy ¶
func (m *OrganizationSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldDeletedBy ¶
func (m *OrganizationSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldDomains ¶
func (m *OrganizationSettingMutation) OldDomains(ctx context.Context) (v []string, err error)
OldDomains returns the old "domains" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) 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 (*OrganizationSettingMutation) OldSSOCert ¶
func (m *OrganizationSettingMutation) OldSSOCert(ctx context.Context) (v string, err error)
OldSSOCert returns the old "sso_cert" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldSSOEntrypoint ¶
func (m *OrganizationSettingMutation) OldSSOEntrypoint(ctx context.Context) (v string, err error)
OldSSOEntrypoint returns the old "sso_entrypoint" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldSSOIssuer ¶
func (m *OrganizationSettingMutation) OldSSOIssuer(ctx context.Context) (v string, err error)
OldSSOIssuer returns the old "sso_issuer" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldTags ¶
func (m *OrganizationSettingMutation) OldTags(ctx context.Context) (v []string, err error)
OldTags returns the old "tags" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldTaxIdentifier ¶
func (m *OrganizationSettingMutation) OldTaxIdentifier(ctx context.Context) (v string, err error)
OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) OldUpdatedBy ¶
func (m *OrganizationSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSetting entity. If the OrganizationSetting 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 (*OrganizationSettingMutation) Op ¶
func (m *OrganizationSettingMutation) Op() Op
Op returns the operation name.
func (*OrganizationSettingMutation) OrganizationCleared ¶
func (m *OrganizationSettingMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*OrganizationSettingMutation) OrganizationID ¶
func (m *OrganizationSettingMutation) OrganizationID() (id string, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*OrganizationSettingMutation) OrganizationIDs ¶
func (m *OrganizationSettingMutation) OrganizationIDs() (ids []string)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*OrganizationSettingMutation) RemovedEdges ¶
func (m *OrganizationSettingMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OrganizationSettingMutation) RemovedIDs ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) ResetBillingAddress ¶
func (m *OrganizationSettingMutation) ResetBillingAddress()
ResetBillingAddress resets all changes to the "billing_address" field.
func (*OrganizationSettingMutation) ResetBillingContact ¶
func (m *OrganizationSettingMutation) ResetBillingContact()
ResetBillingContact resets all changes to the "billing_contact" field.
func (*OrganizationSettingMutation) ResetBillingEmail ¶
func (m *OrganizationSettingMutation) ResetBillingEmail()
ResetBillingEmail resets all changes to the "billing_email" field.
func (*OrganizationSettingMutation) ResetBillingPhone ¶
func (m *OrganizationSettingMutation) ResetBillingPhone()
ResetBillingPhone resets all changes to the "billing_phone" field.
func (*OrganizationSettingMutation) ResetCreatedAt ¶
func (m *OrganizationSettingMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OrganizationSettingMutation) ResetCreatedBy ¶
func (m *OrganizationSettingMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*OrganizationSettingMutation) ResetDeletedAt ¶
func (m *OrganizationSettingMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*OrganizationSettingMutation) ResetDeletedBy ¶
func (m *OrganizationSettingMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*OrganizationSettingMutation) ResetDomains ¶
func (m *OrganizationSettingMutation) ResetDomains()
ResetDomains resets all changes to the "domains" field.
func (*OrganizationSettingMutation) ResetEdge ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) ResetField ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) ResetOrganization ¶
func (m *OrganizationSettingMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*OrganizationSettingMutation) ResetSSOCert ¶
func (m *OrganizationSettingMutation) ResetSSOCert()
ResetSSOCert resets all changes to the "sso_cert" field.
func (*OrganizationSettingMutation) ResetSSOEntrypoint ¶
func (m *OrganizationSettingMutation) ResetSSOEntrypoint()
ResetSSOEntrypoint resets all changes to the "sso_entrypoint" field.
func (*OrganizationSettingMutation) ResetSSOIssuer ¶
func (m *OrganizationSettingMutation) ResetSSOIssuer()
ResetSSOIssuer resets all changes to the "sso_issuer" field.
func (*OrganizationSettingMutation) ResetTags ¶
func (m *OrganizationSettingMutation) ResetTags()
ResetTags resets all changes to the "tags" field.
func (*OrganizationSettingMutation) ResetTaxIdentifier ¶
func (m *OrganizationSettingMutation) ResetTaxIdentifier()
ResetTaxIdentifier resets all changes to the "tax_identifier" field.
func (*OrganizationSettingMutation) ResetUpdatedAt ¶
func (m *OrganizationSettingMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*OrganizationSettingMutation) ResetUpdatedBy ¶
func (m *OrganizationSettingMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*OrganizationSettingMutation) SSOCert ¶
func (m *OrganizationSettingMutation) SSOCert() (r string, exists bool)
SSOCert returns the value of the "sso_cert" field in the mutation.
func (*OrganizationSettingMutation) SSOCertCleared ¶
func (m *OrganizationSettingMutation) SSOCertCleared() bool
SSOCertCleared returns if the "sso_cert" field was cleared in this mutation.
func (*OrganizationSettingMutation) SSOEntrypoint ¶
func (m *OrganizationSettingMutation) SSOEntrypoint() (r string, exists bool)
SSOEntrypoint returns the value of the "sso_entrypoint" field in the mutation.
func (*OrganizationSettingMutation) SSOEntrypointCleared ¶
func (m *OrganizationSettingMutation) SSOEntrypointCleared() bool
SSOEntrypointCleared returns if the "sso_entrypoint" field was cleared in this mutation.
func (*OrganizationSettingMutation) SSOIssuer ¶
func (m *OrganizationSettingMutation) SSOIssuer() (r string, exists bool)
SSOIssuer returns the value of the "sso_issuer" field in the mutation.
func (*OrganizationSettingMutation) SSOIssuerCleared ¶
func (m *OrganizationSettingMutation) SSOIssuerCleared() bool
SSOIssuerCleared returns if the "sso_issuer" field was cleared in this mutation.
func (*OrganizationSettingMutation) SetBillingAddress ¶
func (m *OrganizationSettingMutation) SetBillingAddress(s string)
SetBillingAddress sets the "billing_address" field.
func (*OrganizationSettingMutation) SetBillingContact ¶
func (m *OrganizationSettingMutation) SetBillingContact(s string)
SetBillingContact sets the "billing_contact" field.
func (*OrganizationSettingMutation) SetBillingEmail ¶
func (m *OrganizationSettingMutation) SetBillingEmail(s string)
SetBillingEmail sets the "billing_email" field.
func (*OrganizationSettingMutation) SetBillingPhone ¶
func (m *OrganizationSettingMutation) SetBillingPhone(s string)
SetBillingPhone sets the "billing_phone" field.
func (*OrganizationSettingMutation) SetCreatedAt ¶
func (m *OrganizationSettingMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OrganizationSettingMutation) SetCreatedBy ¶
func (m *OrganizationSettingMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*OrganizationSettingMutation) SetDeletedAt ¶
func (m *OrganizationSettingMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationSettingMutation) SetDeletedBy ¶
func (m *OrganizationSettingMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationSettingMutation) SetDomains ¶
func (m *OrganizationSettingMutation) SetDomains(s []string)
SetDomains sets the "domains" field.
func (*OrganizationSettingMutation) SetField ¶
func (m *OrganizationSettingMutation) 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 (*OrganizationSettingMutation) SetID ¶
func (m *OrganizationSettingMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of OrganizationSetting entities.
func (*OrganizationSettingMutation) SetOp ¶
func (m *OrganizationSettingMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OrganizationSettingMutation) SetOrganizationID ¶
func (m *OrganizationSettingMutation) SetOrganizationID(id string)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*OrganizationSettingMutation) SetSSOCert ¶
func (m *OrganizationSettingMutation) SetSSOCert(s string)
SetSSOCert sets the "sso_cert" field.
func (*OrganizationSettingMutation) SetSSOEntrypoint ¶
func (m *OrganizationSettingMutation) SetSSOEntrypoint(s string)
SetSSOEntrypoint sets the "sso_entrypoint" field.
func (*OrganizationSettingMutation) SetSSOIssuer ¶
func (m *OrganizationSettingMutation) SetSSOIssuer(s string)
SetSSOIssuer sets the "sso_issuer" field.
func (*OrganizationSettingMutation) SetTags ¶
func (m *OrganizationSettingMutation) SetTags(s []string)
SetTags sets the "tags" field.
func (*OrganizationSettingMutation) SetTaxIdentifier ¶
func (m *OrganizationSettingMutation) SetTaxIdentifier(s string)
SetTaxIdentifier sets the "tax_identifier" field.
func (*OrganizationSettingMutation) SetUpdatedAt ¶
func (m *OrganizationSettingMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationSettingMutation) SetUpdatedBy ¶
func (m *OrganizationSettingMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*OrganizationSettingMutation) Tags ¶
func (m *OrganizationSettingMutation) Tags() (r []string, exists bool)
Tags returns the value of the "tags" field in the mutation.
func (*OrganizationSettingMutation) TagsCleared ¶
func (m *OrganizationSettingMutation) TagsCleared() bool
TagsCleared returns if the "tags" field was cleared in this mutation.
func (*OrganizationSettingMutation) TaxIdentifier ¶
func (m *OrganizationSettingMutation) TaxIdentifier() (r string, exists bool)
TaxIdentifier returns the value of the "tax_identifier" field in the mutation.
func (*OrganizationSettingMutation) TaxIdentifierCleared ¶
func (m *OrganizationSettingMutation) TaxIdentifierCleared() bool
TaxIdentifierCleared returns if the "tax_identifier" field was cleared in this mutation.
func (OrganizationSettingMutation) Tx ¶
func (m OrganizationSettingMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OrganizationSettingMutation) Type ¶
func (m *OrganizationSettingMutation) Type() string
Type returns the node type of this mutation (OrganizationSetting).
func (*OrganizationSettingMutation) UpdatedAt ¶
func (m *OrganizationSettingMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*OrganizationSettingMutation) UpdatedBy ¶
func (m *OrganizationSettingMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*OrganizationSettingMutation) UpdatedByCleared ¶
func (m *OrganizationSettingMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*OrganizationSettingMutation) Where ¶
func (m *OrganizationSettingMutation) Where(ps ...predicate.OrganizationSetting)
Where appends a list predicates to the OrganizationSettingMutation builder.
func (*OrganizationSettingMutation) WhereP ¶
func (m *OrganizationSettingMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OrganizationSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OrganizationSettingOrder ¶
type OrganizationSettingOrder struct { Direction OrderDirection `json:"direction"` Field *OrganizationSettingOrderField `json:"field"` }
OrganizationSettingOrder defines the ordering of OrganizationSetting.
type OrganizationSettingOrderField ¶
type OrganizationSettingOrderField struct { // Value extracts the ordering value from the given OrganizationSetting. Value func(*OrganizationSetting) (ent.Value, error) // contains filtered or unexported fields }
OrganizationSettingOrderField defines the ordering field of OrganizationSetting.
type OrganizationSettingPaginateOption ¶
type OrganizationSettingPaginateOption func(*organizationsettingPager) error
OrganizationSettingPaginateOption enables pagination customization.
func WithOrganizationSettingFilter ¶
func WithOrganizationSettingFilter(filter func(*OrganizationSettingQuery) (*OrganizationSettingQuery, error)) OrganizationSettingPaginateOption
WithOrganizationSettingFilter configures pagination filter.
func WithOrganizationSettingOrder ¶
func WithOrganizationSettingOrder(order *OrganizationSettingOrder) OrganizationSettingPaginateOption
WithOrganizationSettingOrder configures pagination ordering.
type OrganizationSettingQuery ¶
type OrganizationSettingQuery struct {
// contains filtered or unexported fields
}
OrganizationSettingQuery is the builder for querying OrganizationSetting entities.
func (*OrganizationSettingQuery) Aggregate ¶
func (osq *OrganizationSettingQuery) Aggregate(fns ...AggregateFunc) *OrganizationSettingSelect
Aggregate returns a OrganizationSettingSelect configured with the given aggregations.
func (*OrganizationSettingQuery) All ¶
func (osq *OrganizationSettingQuery) All(ctx context.Context) ([]*OrganizationSetting, error)
All executes the query and returns a list of OrganizationSettings.
func (*OrganizationSettingQuery) AllX ¶
func (osq *OrganizationSettingQuery) AllX(ctx context.Context) []*OrganizationSetting
AllX is like All, but panics if an error occurs.
func (*OrganizationSettingQuery) Clone ¶
func (osq *OrganizationSettingQuery) Clone() *OrganizationSettingQuery
Clone returns a duplicate of the OrganizationSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OrganizationSettingQuery) CollectFields ¶
func (os *OrganizationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*OrganizationSettingQuery) Count ¶
func (osq *OrganizationSettingQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OrganizationSettingQuery) CountX ¶
func (osq *OrganizationSettingQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OrganizationSettingQuery) Exist ¶
func (osq *OrganizationSettingQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OrganizationSettingQuery) ExistX ¶
func (osq *OrganizationSettingQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OrganizationSettingQuery) Filter ¶
func (osq *OrganizationSettingQuery) Filter() *OrganizationSettingFilter
Filter returns a Filter implementation to apply filters on the OrganizationSettingQuery builder.
func (*OrganizationSettingQuery) First ¶
func (osq *OrganizationSettingQuery) First(ctx context.Context) (*OrganizationSetting, error)
First returns the first OrganizationSetting entity from the query. Returns a *NotFoundError when no OrganizationSetting was found.
func (*OrganizationSettingQuery) FirstID ¶
func (osq *OrganizationSettingQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first OrganizationSetting ID from the query. Returns a *NotFoundError when no OrganizationSetting ID was found.
func (*OrganizationSettingQuery) FirstIDX ¶
func (osq *OrganizationSettingQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*OrganizationSettingQuery) FirstX ¶
func (osq *OrganizationSettingQuery) FirstX(ctx context.Context) *OrganizationSetting
FirstX is like First, but panics if an error occurs.
func (*OrganizationSettingQuery) GroupBy ¶
func (osq *OrganizationSettingQuery) GroupBy(field string, fields ...string) *OrganizationSettingGroupBy
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.OrganizationSetting.Query(). GroupBy(organizationsetting.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*OrganizationSettingQuery) IDs ¶
func (osq *OrganizationSettingQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of OrganizationSetting IDs.
func (*OrganizationSettingQuery) IDsX ¶
func (osq *OrganizationSettingQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*OrganizationSettingQuery) Limit ¶
func (osq *OrganizationSettingQuery) Limit(limit int) *OrganizationSettingQuery
Limit the number of records to be returned by this query.
func (*OrganizationSettingQuery) Offset ¶
func (osq *OrganizationSettingQuery) Offset(offset int) *OrganizationSettingQuery
Offset to start from.
func (*OrganizationSettingQuery) Only ¶
func (osq *OrganizationSettingQuery) Only(ctx context.Context) (*OrganizationSetting, error)
Only returns a single OrganizationSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OrganizationSetting entity is found. Returns a *NotFoundError when no OrganizationSetting entities are found.
func (*OrganizationSettingQuery) OnlyID ¶
func (osq *OrganizationSettingQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only OrganizationSetting ID in the query. Returns a *NotSingularError when more than one OrganizationSetting ID is found. Returns a *NotFoundError when no entities are found.
func (*OrganizationSettingQuery) OnlyIDX ¶
func (osq *OrganizationSettingQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OrganizationSettingQuery) OnlyX ¶
func (osq *OrganizationSettingQuery) OnlyX(ctx context.Context) *OrganizationSetting
OnlyX is like Only, but panics if an error occurs.
func (*OrganizationSettingQuery) Order ¶
func (osq *OrganizationSettingQuery) Order(o ...organizationsetting.OrderOption) *OrganizationSettingQuery
Order specifies how the records should be ordered.
func (*OrganizationSettingQuery) Paginate ¶
func (os *OrganizationSettingQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...OrganizationSettingPaginateOption, ) (*OrganizationSettingConnection, error)
Paginate executes the query and returns a relay based cursor connection to OrganizationSetting.
func (*OrganizationSettingQuery) QueryOrganization ¶
func (osq *OrganizationSettingQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*OrganizationSettingQuery) Select ¶
func (osq *OrganizationSettingQuery) Select(fields ...string) *OrganizationSettingSelect
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.OrganizationSetting.Query(). Select(organizationsetting.FieldCreatedAt). Scan(ctx, &v)
func (*OrganizationSettingQuery) Unique ¶
func (osq *OrganizationSettingQuery) Unique(unique bool) *OrganizationSettingQuery
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 (*OrganizationSettingQuery) Where ¶
func (osq *OrganizationSettingQuery) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingQuery
Where adds a new predicate for the OrganizationSettingQuery builder.
func (*OrganizationSettingQuery) WithOrganization ¶
func (osq *OrganizationSettingQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OrganizationSettingQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
type OrganizationSettingSelect ¶
type OrganizationSettingSelect struct { *OrganizationSettingQuery // contains filtered or unexported fields }
OrganizationSettingSelect is the builder for selecting fields of OrganizationSetting entities.
func (*OrganizationSettingSelect) Aggregate ¶
func (oss *OrganizationSettingSelect) Aggregate(fns ...AggregateFunc) *OrganizationSettingSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OrganizationSettingSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*OrganizationSettingSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*OrganizationSettingSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationSettingSelect) Scan ¶
func (oss *OrganizationSettingSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationSettingSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationSettingUpdate ¶
type OrganizationSettingUpdate struct {
// contains filtered or unexported fields
}
OrganizationSettingUpdate is the builder for updating OrganizationSetting entities.
func (*OrganizationSettingUpdate) AppendDomains ¶
func (osu *OrganizationSettingUpdate) AppendDomains(s []string) *OrganizationSettingUpdate
AppendDomains appends s to the "domains" field.
func (*OrganizationSettingUpdate) AppendTags ¶
func (osu *OrganizationSettingUpdate) AppendTags(s []string) *OrganizationSettingUpdate
AppendTags appends s to the "tags" field.
func (*OrganizationSettingUpdate) ClearBillingAddress ¶
func (osu *OrganizationSettingUpdate) ClearBillingAddress() *OrganizationSettingUpdate
ClearBillingAddress clears the value of the "billing_address" field.
func (*OrganizationSettingUpdate) ClearBillingContact ¶
func (osu *OrganizationSettingUpdate) ClearBillingContact() *OrganizationSettingUpdate
ClearBillingContact clears the value of the "billing_contact" field.
func (*OrganizationSettingUpdate) ClearBillingEmail ¶
func (osu *OrganizationSettingUpdate) ClearBillingEmail() *OrganizationSettingUpdate
ClearBillingEmail clears the value of the "billing_email" field.
func (*OrganizationSettingUpdate) ClearBillingPhone ¶
func (osu *OrganizationSettingUpdate) ClearBillingPhone() *OrganizationSettingUpdate
ClearBillingPhone clears the value of the "billing_phone" field.
func (*OrganizationSettingUpdate) ClearDeletedAt ¶
func (osu *OrganizationSettingUpdate) ClearDeletedAt() *OrganizationSettingUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrganizationSettingUpdate) ClearDeletedBy ¶
func (osu *OrganizationSettingUpdate) ClearDeletedBy() *OrganizationSettingUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OrganizationSettingUpdate) ClearDomains ¶
func (osu *OrganizationSettingUpdate) ClearDomains() *OrganizationSettingUpdate
ClearDomains clears the value of the "domains" field.
func (*OrganizationSettingUpdate) ClearOrganization ¶
func (osu *OrganizationSettingUpdate) ClearOrganization() *OrganizationSettingUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OrganizationSettingUpdate) ClearSSOCert ¶
func (osu *OrganizationSettingUpdate) ClearSSOCert() *OrganizationSettingUpdate
ClearSSOCert clears the value of the "sso_cert" field.
func (*OrganizationSettingUpdate) ClearSSOEntrypoint ¶
func (osu *OrganizationSettingUpdate) ClearSSOEntrypoint() *OrganizationSettingUpdate
ClearSSOEntrypoint clears the value of the "sso_entrypoint" field.
func (*OrganizationSettingUpdate) ClearSSOIssuer ¶
func (osu *OrganizationSettingUpdate) ClearSSOIssuer() *OrganizationSettingUpdate
ClearSSOIssuer clears the value of the "sso_issuer" field.
func (*OrganizationSettingUpdate) ClearTags ¶
func (osu *OrganizationSettingUpdate) ClearTags() *OrganizationSettingUpdate
ClearTags clears the value of the "tags" field.
func (*OrganizationSettingUpdate) ClearTaxIdentifier ¶
func (osu *OrganizationSettingUpdate) ClearTaxIdentifier() *OrganizationSettingUpdate
ClearTaxIdentifier clears the value of the "tax_identifier" field.
func (*OrganizationSettingUpdate) ClearUpdatedBy ¶
func (osu *OrganizationSettingUpdate) ClearUpdatedBy() *OrganizationSettingUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OrganizationSettingUpdate) Exec ¶
func (osu *OrganizationSettingUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationSettingUpdate) ExecX ¶
func (osu *OrganizationSettingUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationSettingUpdate) Mutation ¶
func (osu *OrganizationSettingUpdate) Mutation() *OrganizationSettingMutation
Mutation returns the OrganizationSettingMutation object of the builder.
func (*OrganizationSettingUpdate) Save ¶
func (osu *OrganizationSettingUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OrganizationSettingUpdate) SaveX ¶
func (osu *OrganizationSettingUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OrganizationSettingUpdate) SetBillingAddress ¶
func (osu *OrganizationSettingUpdate) SetBillingAddress(s string) *OrganizationSettingUpdate
SetBillingAddress sets the "billing_address" field.
func (*OrganizationSettingUpdate) SetBillingContact ¶
func (osu *OrganizationSettingUpdate) SetBillingContact(s string) *OrganizationSettingUpdate
SetBillingContact sets the "billing_contact" field.
func (*OrganizationSettingUpdate) SetBillingEmail ¶
func (osu *OrganizationSettingUpdate) SetBillingEmail(s string) *OrganizationSettingUpdate
SetBillingEmail sets the "billing_email" field.
func (*OrganizationSettingUpdate) SetBillingPhone ¶
func (osu *OrganizationSettingUpdate) SetBillingPhone(s string) *OrganizationSettingUpdate
SetBillingPhone sets the "billing_phone" field.
func (*OrganizationSettingUpdate) SetDeletedAt ¶
func (osu *OrganizationSettingUpdate) SetDeletedAt(t time.Time) *OrganizationSettingUpdate
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationSettingUpdate) SetDeletedBy ¶
func (osu *OrganizationSettingUpdate) SetDeletedBy(s string) *OrganizationSettingUpdate
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationSettingUpdate) SetDomains ¶
func (osu *OrganizationSettingUpdate) SetDomains(s []string) *OrganizationSettingUpdate
SetDomains sets the "domains" field.
func (*OrganizationSettingUpdate) SetInput ¶
func (c *OrganizationSettingUpdate) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdate
SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdate builder.
func (*OrganizationSettingUpdate) SetNillableBillingAddress ¶
func (osu *OrganizationSettingUpdate) SetNillableBillingAddress(s *string) *OrganizationSettingUpdate
SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableBillingContact ¶
func (osu *OrganizationSettingUpdate) SetNillableBillingContact(s *string) *OrganizationSettingUpdate
SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableBillingEmail ¶
func (osu *OrganizationSettingUpdate) SetNillableBillingEmail(s *string) *OrganizationSettingUpdate
SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableBillingPhone ¶
func (osu *OrganizationSettingUpdate) SetNillableBillingPhone(s *string) *OrganizationSettingUpdate
SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableDeletedAt ¶
func (osu *OrganizationSettingUpdate) SetNillableDeletedAt(t *time.Time) *OrganizationSettingUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableDeletedBy ¶
func (osu *OrganizationSettingUpdate) SetNillableDeletedBy(s *string) *OrganizationSettingUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableOrganizationID ¶
func (osu *OrganizationSettingUpdate) SetNillableOrganizationID(id *string) *OrganizationSettingUpdate
SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableSSOCert ¶
func (osu *OrganizationSettingUpdate) SetNillableSSOCert(s *string) *OrganizationSettingUpdate
SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableSSOEntrypoint ¶
func (osu *OrganizationSettingUpdate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingUpdate
SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableSSOIssuer ¶
func (osu *OrganizationSettingUpdate) SetNillableSSOIssuer(s *string) *OrganizationSettingUpdate
SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableTaxIdentifier ¶
func (osu *OrganizationSettingUpdate) SetNillableTaxIdentifier(s *string) *OrganizationSettingUpdate
SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetNillableUpdatedBy ¶
func (osu *OrganizationSettingUpdate) SetNillableUpdatedBy(s *string) *OrganizationSettingUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OrganizationSettingUpdate) SetOrganization ¶
func (osu *OrganizationSettingUpdate) SetOrganization(o *Organization) *OrganizationSettingUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*OrganizationSettingUpdate) SetOrganizationID ¶
func (osu *OrganizationSettingUpdate) SetOrganizationID(id string) *OrganizationSettingUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*OrganizationSettingUpdate) SetSSOCert ¶
func (osu *OrganizationSettingUpdate) SetSSOCert(s string) *OrganizationSettingUpdate
SetSSOCert sets the "sso_cert" field.
func (*OrganizationSettingUpdate) SetSSOEntrypoint ¶
func (osu *OrganizationSettingUpdate) SetSSOEntrypoint(s string) *OrganizationSettingUpdate
SetSSOEntrypoint sets the "sso_entrypoint" field.
func (*OrganizationSettingUpdate) SetSSOIssuer ¶
func (osu *OrganizationSettingUpdate) SetSSOIssuer(s string) *OrganizationSettingUpdate
SetSSOIssuer sets the "sso_issuer" field.
func (*OrganizationSettingUpdate) SetTags ¶
func (osu *OrganizationSettingUpdate) SetTags(s []string) *OrganizationSettingUpdate
SetTags sets the "tags" field.
func (*OrganizationSettingUpdate) SetTaxIdentifier ¶
func (osu *OrganizationSettingUpdate) SetTaxIdentifier(s string) *OrganizationSettingUpdate
SetTaxIdentifier sets the "tax_identifier" field.
func (*OrganizationSettingUpdate) SetUpdatedAt ¶
func (osu *OrganizationSettingUpdate) SetUpdatedAt(t time.Time) *OrganizationSettingUpdate
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationSettingUpdate) SetUpdatedBy ¶
func (osu *OrganizationSettingUpdate) SetUpdatedBy(s string) *OrganizationSettingUpdate
SetUpdatedBy sets the "updated_by" field.
func (*OrganizationSettingUpdate) Where ¶
func (osu *OrganizationSettingUpdate) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingUpdate
Where appends a list predicates to the OrganizationSettingUpdate builder.
type OrganizationSettingUpdateOne ¶
type OrganizationSettingUpdateOne struct {
// contains filtered or unexported fields
}
OrganizationSettingUpdateOne is the builder for updating a single OrganizationSetting entity.
func (*OrganizationSettingUpdateOne) AppendDomains ¶
func (osuo *OrganizationSettingUpdateOne) AppendDomains(s []string) *OrganizationSettingUpdateOne
AppendDomains appends s to the "domains" field.
func (*OrganizationSettingUpdateOne) AppendTags ¶
func (osuo *OrganizationSettingUpdateOne) AppendTags(s []string) *OrganizationSettingUpdateOne
AppendTags appends s to the "tags" field.
func (*OrganizationSettingUpdateOne) ClearBillingAddress ¶
func (osuo *OrganizationSettingUpdateOne) ClearBillingAddress() *OrganizationSettingUpdateOne
ClearBillingAddress clears the value of the "billing_address" field.
func (*OrganizationSettingUpdateOne) ClearBillingContact ¶
func (osuo *OrganizationSettingUpdateOne) ClearBillingContact() *OrganizationSettingUpdateOne
ClearBillingContact clears the value of the "billing_contact" field.
func (*OrganizationSettingUpdateOne) ClearBillingEmail ¶
func (osuo *OrganizationSettingUpdateOne) ClearBillingEmail() *OrganizationSettingUpdateOne
ClearBillingEmail clears the value of the "billing_email" field.
func (*OrganizationSettingUpdateOne) ClearBillingPhone ¶
func (osuo *OrganizationSettingUpdateOne) ClearBillingPhone() *OrganizationSettingUpdateOne
ClearBillingPhone clears the value of the "billing_phone" field.
func (*OrganizationSettingUpdateOne) ClearDeletedAt ¶
func (osuo *OrganizationSettingUpdateOne) ClearDeletedAt() *OrganizationSettingUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrganizationSettingUpdateOne) ClearDeletedBy ¶
func (osuo *OrganizationSettingUpdateOne) ClearDeletedBy() *OrganizationSettingUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OrganizationSettingUpdateOne) ClearDomains ¶
func (osuo *OrganizationSettingUpdateOne) ClearDomains() *OrganizationSettingUpdateOne
ClearDomains clears the value of the "domains" field.
func (*OrganizationSettingUpdateOne) ClearOrganization ¶
func (osuo *OrganizationSettingUpdateOne) ClearOrganization() *OrganizationSettingUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*OrganizationSettingUpdateOne) ClearSSOCert ¶
func (osuo *OrganizationSettingUpdateOne) ClearSSOCert() *OrganizationSettingUpdateOne
ClearSSOCert clears the value of the "sso_cert" field.
func (*OrganizationSettingUpdateOne) ClearSSOEntrypoint ¶
func (osuo *OrganizationSettingUpdateOne) ClearSSOEntrypoint() *OrganizationSettingUpdateOne
ClearSSOEntrypoint clears the value of the "sso_entrypoint" field.
func (*OrganizationSettingUpdateOne) ClearSSOIssuer ¶
func (osuo *OrganizationSettingUpdateOne) ClearSSOIssuer() *OrganizationSettingUpdateOne
ClearSSOIssuer clears the value of the "sso_issuer" field.
func (*OrganizationSettingUpdateOne) ClearTags ¶
func (osuo *OrganizationSettingUpdateOne) ClearTags() *OrganizationSettingUpdateOne
ClearTags clears the value of the "tags" field.
func (*OrganizationSettingUpdateOne) ClearTaxIdentifier ¶
func (osuo *OrganizationSettingUpdateOne) ClearTaxIdentifier() *OrganizationSettingUpdateOne
ClearTaxIdentifier clears the value of the "tax_identifier" field.
func (*OrganizationSettingUpdateOne) ClearUpdatedBy ¶
func (osuo *OrganizationSettingUpdateOne) ClearUpdatedBy() *OrganizationSettingUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OrganizationSettingUpdateOne) Exec ¶
func (osuo *OrganizationSettingUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OrganizationSettingUpdateOne) ExecX ¶
func (osuo *OrganizationSettingUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationSettingUpdateOne) Mutation ¶
func (osuo *OrganizationSettingUpdateOne) Mutation() *OrganizationSettingMutation
Mutation returns the OrganizationSettingMutation object of the builder.
func (*OrganizationSettingUpdateOne) Save ¶
func (osuo *OrganizationSettingUpdateOne) Save(ctx context.Context) (*OrganizationSetting, error)
Save executes the query and returns the updated OrganizationSetting entity.
func (*OrganizationSettingUpdateOne) SaveX ¶
func (osuo *OrganizationSettingUpdateOne) SaveX(ctx context.Context) *OrganizationSetting
SaveX is like Save, but panics if an error occurs.
func (*OrganizationSettingUpdateOne) Select ¶
func (osuo *OrganizationSettingUpdateOne) Select(field string, fields ...string) *OrganizationSettingUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OrganizationSettingUpdateOne) SetBillingAddress ¶
func (osuo *OrganizationSettingUpdateOne) SetBillingAddress(s string) *OrganizationSettingUpdateOne
SetBillingAddress sets the "billing_address" field.
func (*OrganizationSettingUpdateOne) SetBillingContact ¶
func (osuo *OrganizationSettingUpdateOne) SetBillingContact(s string) *OrganizationSettingUpdateOne
SetBillingContact sets the "billing_contact" field.
func (*OrganizationSettingUpdateOne) SetBillingEmail ¶
func (osuo *OrganizationSettingUpdateOne) SetBillingEmail(s string) *OrganizationSettingUpdateOne
SetBillingEmail sets the "billing_email" field.
func (*OrganizationSettingUpdateOne) SetBillingPhone ¶
func (osuo *OrganizationSettingUpdateOne) SetBillingPhone(s string) *OrganizationSettingUpdateOne
SetBillingPhone sets the "billing_phone" field.
func (*OrganizationSettingUpdateOne) SetDeletedAt ¶
func (osuo *OrganizationSettingUpdateOne) SetDeletedAt(t time.Time) *OrganizationSettingUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationSettingUpdateOne) SetDeletedBy ¶
func (osuo *OrganizationSettingUpdateOne) SetDeletedBy(s string) *OrganizationSettingUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationSettingUpdateOne) SetDomains ¶
func (osuo *OrganizationSettingUpdateOne) SetDomains(s []string) *OrganizationSettingUpdateOne
SetDomains sets the "domains" field.
func (*OrganizationSettingUpdateOne) SetInput ¶
func (c *OrganizationSettingUpdateOne) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdateOne
SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdateOne builder.
func (*OrganizationSettingUpdateOne) SetNillableBillingAddress ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableBillingAddress(s *string) *OrganizationSettingUpdateOne
SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableBillingContact ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableBillingContact(s *string) *OrganizationSettingUpdateOne
SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableBillingEmail ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableBillingEmail(s *string) *OrganizationSettingUpdateOne
SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableBillingPhone ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableBillingPhone(s *string) *OrganizationSettingUpdateOne
SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableDeletedAt ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *OrganizationSettingUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableDeletedBy ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableDeletedBy(s *string) *OrganizationSettingUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableOrganizationID ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableOrganizationID(id *string) *OrganizationSettingUpdateOne
SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableSSOCert ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableSSOCert(s *string) *OrganizationSettingUpdateOne
SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableSSOEntrypoint ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableSSOEntrypoint(s *string) *OrganizationSettingUpdateOne
SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableSSOIssuer ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableSSOIssuer(s *string) *OrganizationSettingUpdateOne
SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableTaxIdentifier ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableTaxIdentifier(s *string) *OrganizationSettingUpdateOne
SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetNillableUpdatedBy ¶
func (osuo *OrganizationSettingUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationSettingUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OrganizationSettingUpdateOne) SetOrganization ¶
func (osuo *OrganizationSettingUpdateOne) SetOrganization(o *Organization) *OrganizationSettingUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*OrganizationSettingUpdateOne) SetOrganizationID ¶
func (osuo *OrganizationSettingUpdateOne) SetOrganizationID(id string) *OrganizationSettingUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*OrganizationSettingUpdateOne) SetSSOCert ¶
func (osuo *OrganizationSettingUpdateOne) SetSSOCert(s string) *OrganizationSettingUpdateOne
SetSSOCert sets the "sso_cert" field.
func (*OrganizationSettingUpdateOne) SetSSOEntrypoint ¶
func (osuo *OrganizationSettingUpdateOne) SetSSOEntrypoint(s string) *OrganizationSettingUpdateOne
SetSSOEntrypoint sets the "sso_entrypoint" field.
func (*OrganizationSettingUpdateOne) SetSSOIssuer ¶
func (osuo *OrganizationSettingUpdateOne) SetSSOIssuer(s string) *OrganizationSettingUpdateOne
SetSSOIssuer sets the "sso_issuer" field.
func (*OrganizationSettingUpdateOne) SetTags ¶
func (osuo *OrganizationSettingUpdateOne) SetTags(s []string) *OrganizationSettingUpdateOne
SetTags sets the "tags" field.
func (*OrganizationSettingUpdateOne) SetTaxIdentifier ¶
func (osuo *OrganizationSettingUpdateOne) SetTaxIdentifier(s string) *OrganizationSettingUpdateOne
SetTaxIdentifier sets the "tax_identifier" field.
func (*OrganizationSettingUpdateOne) SetUpdatedAt ¶
func (osuo *OrganizationSettingUpdateOne) SetUpdatedAt(t time.Time) *OrganizationSettingUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationSettingUpdateOne) SetUpdatedBy ¶
func (osuo *OrganizationSettingUpdateOne) SetUpdatedBy(s string) *OrganizationSettingUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*OrganizationSettingUpdateOne) Where ¶
func (osuo *OrganizationSettingUpdateOne) Where(ps ...predicate.OrganizationSetting) *OrganizationSettingUpdateOne
Where appends a list predicates to the OrganizationSettingUpdate builder.
type OrganizationSettingWhereInput ¶
type OrganizationSettingWhereInput struct { Predicates []predicate.OrganizationSetting `json:"-"` Not *OrganizationSettingWhereInput `json:"not,omitempty"` Or []*OrganizationSettingWhereInput `json:"or,omitempty"` And []*OrganizationSettingWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // "sso_cert" field predicates. SSOCert *string `json:"ssoCert,omitempty"` SSOCertNEQ *string `json:"ssoCertNEQ,omitempty"` SSOCertIn []string `json:"ssoCertIn,omitempty"` SSOCertNotIn []string `json:"ssoCertNotIn,omitempty"` SSOCertGT *string `json:"ssoCertGT,omitempty"` SSOCertGTE *string `json:"ssoCertGTE,omitempty"` SSOCertLT *string `json:"ssoCertLT,omitempty"` SSOCertLTE *string `json:"ssoCertLTE,omitempty"` SSOCertContains *string `json:"ssoCertContains,omitempty"` SSOCertHasPrefix *string `json:"ssoCertHasPrefix,omitempty"` SSOCertHasSuffix *string `json:"ssoCertHasSuffix,omitempty"` SSOCertIsNil bool `json:"ssoCertIsNil,omitempty"` SSOCertNotNil bool `json:"ssoCertNotNil,omitempty"` SSOCertEqualFold *string `json:"ssoCertEqualFold,omitempty"` SSOCertContainsFold *string `json:"ssoCertContainsFold,omitempty"` // "sso_entrypoint" field predicates. SSOEntrypoint *string `json:"ssoEntrypoint,omitempty"` SSOEntrypointNEQ *string `json:"ssoEntrypointNEQ,omitempty"` SSOEntrypointIn []string `json:"ssoEntrypointIn,omitempty"` SSOEntrypointNotIn []string `json:"ssoEntrypointNotIn,omitempty"` SSOEntrypointGT *string `json:"ssoEntrypointGT,omitempty"` SSOEntrypointGTE *string `json:"ssoEntrypointGTE,omitempty"` SSOEntrypointLT *string `json:"ssoEntrypointLT,omitempty"` SSOEntrypointLTE *string `json:"ssoEntrypointLTE,omitempty"` SSOEntrypointContains *string `json:"ssoEntrypointContains,omitempty"` SSOEntrypointHasPrefix *string `json:"ssoEntrypointHasPrefix,omitempty"` SSOEntrypointHasSuffix *string `json:"ssoEntrypointHasSuffix,omitempty"` SSOEntrypointIsNil bool `json:"ssoEntrypointIsNil,omitempty"` SSOEntrypointNotNil bool `json:"ssoEntrypointNotNil,omitempty"` SSOEntrypointEqualFold *string `json:"ssoEntrypointEqualFold,omitempty"` SSOEntrypointContainsFold *string `json:"ssoEntrypointContainsFold,omitempty"` // "sso_issuer" field predicates. SSOIssuer *string `json:"ssoIssuer,omitempty"` SSOIssuerNEQ *string `json:"ssoIssuerNEQ,omitempty"` SSOIssuerIn []string `json:"ssoIssuerIn,omitempty"` SSOIssuerNotIn []string `json:"ssoIssuerNotIn,omitempty"` SSOIssuerGT *string `json:"ssoIssuerGT,omitempty"` SSOIssuerGTE *string `json:"ssoIssuerGTE,omitempty"` SSOIssuerLT *string `json:"ssoIssuerLT,omitempty"` SSOIssuerLTE *string `json:"ssoIssuerLTE,omitempty"` SSOIssuerContains *string `json:"ssoIssuerContains,omitempty"` SSOIssuerHasPrefix *string `json:"ssoIssuerHasPrefix,omitempty"` SSOIssuerHasSuffix *string `json:"ssoIssuerHasSuffix,omitempty"` SSOIssuerIsNil bool `json:"ssoIssuerIsNil,omitempty"` SSOIssuerNotNil bool `json:"ssoIssuerNotNil,omitempty"` SSOIssuerEqualFold *string `json:"ssoIssuerEqualFold,omitempty"` SSOIssuerContainsFold *string `json:"ssoIssuerContainsFold,omitempty"` // "billing_contact" field predicates. BillingContact *string `json:"billingContact,omitempty"` BillingContactNEQ *string `json:"billingContactNEQ,omitempty"` BillingContactIn []string `json:"billingContactIn,omitempty"` BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` BillingContactGT *string `json:"billingContactGT,omitempty"` BillingContactGTE *string `json:"billingContactGTE,omitempty"` BillingContactLT *string `json:"billingContactLT,omitempty"` BillingContactLTE *string `json:"billingContactLTE,omitempty"` BillingContactContains *string `json:"billingContactContains,omitempty"` BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` BillingContactIsNil bool `json:"billingContactIsNil,omitempty"` BillingContactNotNil bool `json:"billingContactNotNil,omitempty"` BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` // "billing_email" field predicates. BillingEmail *string `json:"billingEmail,omitempty"` BillingEmailNEQ *string `json:"billingEmailNEQ,omitempty"` BillingEmailIn []string `json:"billingEmailIn,omitempty"` BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` BillingEmailGT *string `json:"billingEmailGT,omitempty"` BillingEmailGTE *string `json:"billingEmailGTE,omitempty"` BillingEmailLT *string `json:"billingEmailLT,omitempty"` BillingEmailLTE *string `json:"billingEmailLTE,omitempty"` BillingEmailContains *string `json:"billingEmailContains,omitempty"` BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` BillingEmailIsNil bool `json:"billingEmailIsNil,omitempty"` BillingEmailNotNil bool `json:"billingEmailNotNil,omitempty"` BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` // "billing_phone" field predicates. BillingPhone *string `json:"billingPhone,omitempty"` BillingPhoneNEQ *string `json:"billingPhoneNEQ,omitempty"` BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` BillingPhoneGT *string `json:"billingPhoneGT,omitempty"` BillingPhoneGTE *string `json:"billingPhoneGTE,omitempty"` BillingPhoneLT *string `json:"billingPhoneLT,omitempty"` BillingPhoneLTE *string `json:"billingPhoneLTE,omitempty"` BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` BillingPhoneIsNil bool `json:"billingPhoneIsNil,omitempty"` BillingPhoneNotNil bool `json:"billingPhoneNotNil,omitempty"` BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` // "billing_address" field predicates. BillingAddress *string `json:"billingAddress,omitempty"` BillingAddressNEQ *string `json:"billingAddressNEQ,omitempty"` BillingAddressIn []string `json:"billingAddressIn,omitempty"` BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` BillingAddressGT *string `json:"billingAddressGT,omitempty"` BillingAddressGTE *string `json:"billingAddressGTE,omitempty"` BillingAddressLT *string `json:"billingAddressLT,omitempty"` BillingAddressLTE *string `json:"billingAddressLTE,omitempty"` BillingAddressContains *string `json:"billingAddressContains,omitempty"` BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` BillingAddressIsNil bool `json:"billingAddressIsNil,omitempty"` BillingAddressNotNil bool `json:"billingAddressNotNil,omitempty"` BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` // "tax_identifier" field predicates. TaxIdentifier *string `json:"taxIdentifier,omitempty"` TaxIdentifierNEQ *string `json:"taxIdentifierNEQ,omitempty"` TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` TaxIdentifierGT *string `json:"taxIdentifierGT,omitempty"` TaxIdentifierGTE *string `json:"taxIdentifierGTE,omitempty"` TaxIdentifierLT *string `json:"taxIdentifierLT,omitempty"` TaxIdentifierLTE *string `json:"taxIdentifierLTE,omitempty"` TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` TaxIdentifierIsNil bool `json:"taxIdentifierIsNil,omitempty"` TaxIdentifierNotNil bool `json:"taxIdentifierNotNil,omitempty"` TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` // "organization" edge predicates. HasOrganization *bool `json:"hasOrganization,omitempty"` HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` }
OrganizationSettingWhereInput represents a where input for filtering OrganizationSetting queries.
func (*OrganizationSettingWhereInput) AddPredicates ¶
func (i *OrganizationSettingWhereInput) AddPredicates(predicates ...predicate.OrganizationSetting)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*OrganizationSettingWhereInput) Filter ¶
func (i *OrganizationSettingWhereInput) Filter(q *OrganizationSettingQuery) (*OrganizationSettingQuery, error)
Filter applies the OrganizationSettingWhereInput filter on the OrganizationSettingQuery builder.
func (*OrganizationSettingWhereInput) P ¶
func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, error)
P returns a predicate for filtering organizationsettings. An error is returned if the input is empty or invalid.
type OrganizationSettings ¶
type OrganizationSettings []*OrganizationSetting
OrganizationSettings is a parsable slice of OrganizationSetting.
type OrganizationUpdate ¶
type OrganizationUpdate struct {
// contains filtered or unexported fields
}
OrganizationUpdate is the builder for updating Organization entities.
func (*OrganizationUpdate) AddChildIDs ¶
func (ou *OrganizationUpdate) AddChildIDs(ids ...string) *OrganizationUpdate
AddChildIDs adds the "children" edge to the Organization entity by IDs.
func (*OrganizationUpdate) AddChildren ¶
func (ou *OrganizationUpdate) AddChildren(o ...*Organization) *OrganizationUpdate
AddChildren adds the "children" edges to the Organization entity.
func (*OrganizationUpdate) AddEntitlementIDs ¶
func (ou *OrganizationUpdate) AddEntitlementIDs(ids ...string) *OrganizationUpdate
AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by IDs.
func (*OrganizationUpdate) AddEntitlements ¶
func (ou *OrganizationUpdate) AddEntitlements(e ...*Entitlement) *OrganizationUpdate
AddEntitlements adds the "entitlements" edges to the Entitlement entity.
func (*OrganizationUpdate) AddGroupIDs ¶
func (ou *OrganizationUpdate) AddGroupIDs(ids ...string) *OrganizationUpdate
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
func (*OrganizationUpdate) AddGroups ¶
func (ou *OrganizationUpdate) AddGroups(g ...*Group) *OrganizationUpdate
AddGroups adds the "groups" edges to the Group entity.
func (*OrganizationUpdate) AddIntegrationIDs ¶
func (ou *OrganizationUpdate) AddIntegrationIDs(ids ...string) *OrganizationUpdate
AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.
func (*OrganizationUpdate) AddIntegrations ¶
func (ou *OrganizationUpdate) AddIntegrations(i ...*Integration) *OrganizationUpdate
AddIntegrations adds the "integrations" edges to the Integration entity.
func (*OrganizationUpdate) AddOauthprovider ¶
func (ou *OrganizationUpdate) AddOauthprovider(o ...*OauthProvider) *OrganizationUpdate
AddOauthprovider adds the "oauthprovider" edges to the OauthProvider entity.
func (*OrganizationUpdate) AddOauthproviderIDs ¶
func (ou *OrganizationUpdate) AddOauthproviderIDs(ids ...string) *OrganizationUpdate
AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by IDs.
func (*OrganizationUpdate) AddUserIDs ¶
func (ou *OrganizationUpdate) AddUserIDs(ids ...string) *OrganizationUpdate
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*OrganizationUpdate) AddUsers ¶
func (ou *OrganizationUpdate) AddUsers(u ...*User) *OrganizationUpdate
AddUsers adds the "users" edges to the User entity.
func (*OrganizationUpdate) ClearChildren ¶
func (ou *OrganizationUpdate) ClearChildren() *OrganizationUpdate
ClearChildren clears all "children" edges to the Organization entity.
func (*OrganizationUpdate) ClearDeletedAt ¶
func (ou *OrganizationUpdate) ClearDeletedAt() *OrganizationUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrganizationUpdate) ClearDeletedBy ¶
func (ou *OrganizationUpdate) ClearDeletedBy() *OrganizationUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OrganizationUpdate) ClearDescription ¶
func (ou *OrganizationUpdate) ClearDescription() *OrganizationUpdate
ClearDescription clears the value of the "description" field.
func (*OrganizationUpdate) ClearEntitlements ¶
func (ou *OrganizationUpdate) ClearEntitlements() *OrganizationUpdate
ClearEntitlements clears all "entitlements" edges to the Entitlement entity.
func (*OrganizationUpdate) ClearGroups ¶
func (ou *OrganizationUpdate) ClearGroups() *OrganizationUpdate
ClearGroups clears all "groups" edges to the Group entity.
func (*OrganizationUpdate) ClearIntegrations ¶
func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate
ClearIntegrations clears all "integrations" edges to the Integration entity.
func (*OrganizationUpdate) ClearOauthprovider ¶
func (ou *OrganizationUpdate) ClearOauthprovider() *OrganizationUpdate
ClearOauthprovider clears all "oauthprovider" edges to the OauthProvider entity.
func (*OrganizationUpdate) ClearSetting ¶
func (ou *OrganizationUpdate) ClearSetting() *OrganizationUpdate
ClearSetting clears the "setting" edge to the OrganizationSetting entity.
func (*OrganizationUpdate) ClearUpdatedBy ¶
func (ou *OrganizationUpdate) ClearUpdatedBy() *OrganizationUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OrganizationUpdate) ClearUsers ¶
func (ou *OrganizationUpdate) ClearUsers() *OrganizationUpdate
ClearUsers clears all "users" edges to the User entity.
func (*OrganizationUpdate) Exec ¶
func (ou *OrganizationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationUpdate) ExecX ¶
func (ou *OrganizationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationUpdate) Mutation ¶
func (ou *OrganizationUpdate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdate) RemoveChildIDs ¶
func (ou *OrganizationUpdate) RemoveChildIDs(ids ...string) *OrganizationUpdate
RemoveChildIDs removes the "children" edge to Organization entities by IDs.
func (*OrganizationUpdate) RemoveChildren ¶
func (ou *OrganizationUpdate) RemoveChildren(o ...*Organization) *OrganizationUpdate
RemoveChildren removes "children" edges to Organization entities.
func (*OrganizationUpdate) RemoveEntitlementIDs ¶
func (ou *OrganizationUpdate) RemoveEntitlementIDs(ids ...string) *OrganizationUpdate
RemoveEntitlementIDs removes the "entitlements" edge to Entitlement entities by IDs.
func (*OrganizationUpdate) RemoveEntitlements ¶
func (ou *OrganizationUpdate) RemoveEntitlements(e ...*Entitlement) *OrganizationUpdate
RemoveEntitlements removes "entitlements" edges to Entitlement entities.
func (*OrganizationUpdate) RemoveGroupIDs ¶
func (ou *OrganizationUpdate) RemoveGroupIDs(ids ...string) *OrganizationUpdate
RemoveGroupIDs removes the "groups" edge to Group entities by IDs.
func (*OrganizationUpdate) RemoveGroups ¶
func (ou *OrganizationUpdate) RemoveGroups(g ...*Group) *OrganizationUpdate
RemoveGroups removes "groups" edges to Group entities.
func (*OrganizationUpdate) RemoveIntegrationIDs ¶
func (ou *OrganizationUpdate) RemoveIntegrationIDs(ids ...string) *OrganizationUpdate
RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.
func (*OrganizationUpdate) RemoveIntegrations ¶
func (ou *OrganizationUpdate) RemoveIntegrations(i ...*Integration) *OrganizationUpdate
RemoveIntegrations removes "integrations" edges to Integration entities.
func (*OrganizationUpdate) RemoveOauthprovider ¶
func (ou *OrganizationUpdate) RemoveOauthprovider(o ...*OauthProvider) *OrganizationUpdate
RemoveOauthprovider removes "oauthprovider" edges to OauthProvider entities.
func (*OrganizationUpdate) RemoveOauthproviderIDs ¶
func (ou *OrganizationUpdate) RemoveOauthproviderIDs(ids ...string) *OrganizationUpdate
RemoveOauthproviderIDs removes the "oauthprovider" edge to OauthProvider entities by IDs.
func (*OrganizationUpdate) RemoveUserIDs ¶
func (ou *OrganizationUpdate) RemoveUserIDs(ids ...string) *OrganizationUpdate
RemoveUserIDs removes the "users" edge to User entities by IDs.
func (*OrganizationUpdate) RemoveUsers ¶
func (ou *OrganizationUpdate) RemoveUsers(u ...*User) *OrganizationUpdate
RemoveUsers removes "users" edges to User entities.
func (*OrganizationUpdate) Save ¶
func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OrganizationUpdate) SaveX ¶
func (ou *OrganizationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OrganizationUpdate) SetDeletedAt ¶
func (ou *OrganizationUpdate) SetDeletedAt(t time.Time) *OrganizationUpdate
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationUpdate) SetDeletedBy ¶
func (ou *OrganizationUpdate) SetDeletedBy(s string) *OrganizationUpdate
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationUpdate) SetDescription ¶
func (ou *OrganizationUpdate) SetDescription(s string) *OrganizationUpdate
SetDescription sets the "description" field.
func (*OrganizationUpdate) SetDisplayName ¶
func (ou *OrganizationUpdate) SetDisplayName(s string) *OrganizationUpdate
SetDisplayName sets the "display_name" field.
func (*OrganizationUpdate) SetInput ¶
func (c *OrganizationUpdate) SetInput(i UpdateOrganizationInput) *OrganizationUpdate
SetInput applies the change-set in the UpdateOrganizationInput on the OrganizationUpdate builder.
func (*OrganizationUpdate) SetName ¶
func (ou *OrganizationUpdate) SetName(s string) *OrganizationUpdate
SetName sets the "name" field.
func (*OrganizationUpdate) SetNillableDeletedAt ¶
func (ou *OrganizationUpdate) SetNillableDeletedAt(t *time.Time) *OrganizationUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrganizationUpdate) SetNillableDeletedBy ¶
func (ou *OrganizationUpdate) SetNillableDeletedBy(s *string) *OrganizationUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OrganizationUpdate) SetNillableDescription ¶
func (ou *OrganizationUpdate) SetNillableDescription(s *string) *OrganizationUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*OrganizationUpdate) SetNillableDisplayName ¶
func (ou *OrganizationUpdate) SetNillableDisplayName(s *string) *OrganizationUpdate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*OrganizationUpdate) SetNillableName ¶
func (ou *OrganizationUpdate) SetNillableName(s *string) *OrganizationUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*OrganizationUpdate) SetNillableSettingID ¶
func (ou *OrganizationUpdate) SetNillableSettingID(id *string) *OrganizationUpdate
SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil.
func (*OrganizationUpdate) SetNillableUpdatedBy ¶
func (ou *OrganizationUpdate) SetNillableUpdatedBy(s *string) *OrganizationUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OrganizationUpdate) SetSetting ¶
func (ou *OrganizationUpdate) SetSetting(o *OrganizationSetting) *OrganizationUpdate
SetSetting sets the "setting" edge to the OrganizationSetting entity.
func (*OrganizationUpdate) SetSettingID ¶
func (ou *OrganizationUpdate) SetSettingID(id string) *OrganizationUpdate
SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID.
func (*OrganizationUpdate) SetUpdatedAt ¶
func (ou *OrganizationUpdate) SetUpdatedAt(t time.Time) *OrganizationUpdate
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationUpdate) SetUpdatedBy ¶
func (ou *OrganizationUpdate) SetUpdatedBy(s string) *OrganizationUpdate
SetUpdatedBy sets the "updated_by" field.
func (*OrganizationUpdate) Where ¶
func (ou *OrganizationUpdate) Where(ps ...predicate.Organization) *OrganizationUpdate
Where appends a list predicates to the OrganizationUpdate builder.
type OrganizationUpdateOne ¶
type OrganizationUpdateOne struct {
// contains filtered or unexported fields
}
OrganizationUpdateOne is the builder for updating a single Organization entity.
func (*OrganizationUpdateOne) AddChildIDs ¶
func (ouo *OrganizationUpdateOne) AddChildIDs(ids ...string) *OrganizationUpdateOne
AddChildIDs adds the "children" edge to the Organization entity by IDs.
func (*OrganizationUpdateOne) AddChildren ¶
func (ouo *OrganizationUpdateOne) AddChildren(o ...*Organization) *OrganizationUpdateOne
AddChildren adds the "children" edges to the Organization entity.
func (*OrganizationUpdateOne) AddEntitlementIDs ¶
func (ouo *OrganizationUpdateOne) AddEntitlementIDs(ids ...string) *OrganizationUpdateOne
AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by IDs.
func (*OrganizationUpdateOne) AddEntitlements ¶
func (ouo *OrganizationUpdateOne) AddEntitlements(e ...*Entitlement) *OrganizationUpdateOne
AddEntitlements adds the "entitlements" edges to the Entitlement entity.
func (*OrganizationUpdateOne) AddGroupIDs ¶
func (ouo *OrganizationUpdateOne) AddGroupIDs(ids ...string) *OrganizationUpdateOne
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
func (*OrganizationUpdateOne) AddGroups ¶
func (ouo *OrganizationUpdateOne) AddGroups(g ...*Group) *OrganizationUpdateOne
AddGroups adds the "groups" edges to the Group entity.
func (*OrganizationUpdateOne) AddIntegrationIDs ¶
func (ouo *OrganizationUpdateOne) AddIntegrationIDs(ids ...string) *OrganizationUpdateOne
AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.
func (*OrganizationUpdateOne) AddIntegrations ¶
func (ouo *OrganizationUpdateOne) AddIntegrations(i ...*Integration) *OrganizationUpdateOne
AddIntegrations adds the "integrations" edges to the Integration entity.
func (*OrganizationUpdateOne) AddOauthprovider ¶
func (ouo *OrganizationUpdateOne) AddOauthprovider(o ...*OauthProvider) *OrganizationUpdateOne
AddOauthprovider adds the "oauthprovider" edges to the OauthProvider entity.
func (*OrganizationUpdateOne) AddOauthproviderIDs ¶
func (ouo *OrganizationUpdateOne) AddOauthproviderIDs(ids ...string) *OrganizationUpdateOne
AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by IDs.
func (*OrganizationUpdateOne) AddUserIDs ¶
func (ouo *OrganizationUpdateOne) AddUserIDs(ids ...string) *OrganizationUpdateOne
AddUserIDs adds the "users" edge to the User entity by IDs.
func (*OrganizationUpdateOne) AddUsers ¶
func (ouo *OrganizationUpdateOne) AddUsers(u ...*User) *OrganizationUpdateOne
AddUsers adds the "users" edges to the User entity.
func (*OrganizationUpdateOne) ClearChildren ¶
func (ouo *OrganizationUpdateOne) ClearChildren() *OrganizationUpdateOne
ClearChildren clears all "children" edges to the Organization entity.
func (*OrganizationUpdateOne) ClearDeletedAt ¶
func (ouo *OrganizationUpdateOne) ClearDeletedAt() *OrganizationUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OrganizationUpdateOne) ClearDeletedBy ¶
func (ouo *OrganizationUpdateOne) ClearDeletedBy() *OrganizationUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*OrganizationUpdateOne) ClearDescription ¶
func (ouo *OrganizationUpdateOne) ClearDescription() *OrganizationUpdateOne
ClearDescription clears the value of the "description" field.
func (*OrganizationUpdateOne) ClearEntitlements ¶
func (ouo *OrganizationUpdateOne) ClearEntitlements() *OrganizationUpdateOne
ClearEntitlements clears all "entitlements" edges to the Entitlement entity.
func (*OrganizationUpdateOne) ClearGroups ¶
func (ouo *OrganizationUpdateOne) ClearGroups() *OrganizationUpdateOne
ClearGroups clears all "groups" edges to the Group entity.
func (*OrganizationUpdateOne) ClearIntegrations ¶
func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne
ClearIntegrations clears all "integrations" edges to the Integration entity.
func (*OrganizationUpdateOne) ClearOauthprovider ¶
func (ouo *OrganizationUpdateOne) ClearOauthprovider() *OrganizationUpdateOne
ClearOauthprovider clears all "oauthprovider" edges to the OauthProvider entity.
func (*OrganizationUpdateOne) ClearSetting ¶
func (ouo *OrganizationUpdateOne) ClearSetting() *OrganizationUpdateOne
ClearSetting clears the "setting" edge to the OrganizationSetting entity.
func (*OrganizationUpdateOne) ClearUpdatedBy ¶
func (ouo *OrganizationUpdateOne) ClearUpdatedBy() *OrganizationUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*OrganizationUpdateOne) ClearUsers ¶
func (ouo *OrganizationUpdateOne) ClearUsers() *OrganizationUpdateOne
ClearUsers clears all "users" edges to the User entity.
func (*OrganizationUpdateOne) Exec ¶
func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OrganizationUpdateOne) ExecX ¶
func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationUpdateOne) Mutation ¶
func (ouo *OrganizationUpdateOne) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdateOne) RemoveChildIDs ¶
func (ouo *OrganizationUpdateOne) RemoveChildIDs(ids ...string) *OrganizationUpdateOne
RemoveChildIDs removes the "children" edge to Organization entities by IDs.
func (*OrganizationUpdateOne) RemoveChildren ¶
func (ouo *OrganizationUpdateOne) RemoveChildren(o ...*Organization) *OrganizationUpdateOne
RemoveChildren removes "children" edges to Organization entities.
func (*OrganizationUpdateOne) RemoveEntitlementIDs ¶
func (ouo *OrganizationUpdateOne) RemoveEntitlementIDs(ids ...string) *OrganizationUpdateOne
RemoveEntitlementIDs removes the "entitlements" edge to Entitlement entities by IDs.
func (*OrganizationUpdateOne) RemoveEntitlements ¶
func (ouo *OrganizationUpdateOne) RemoveEntitlements(e ...*Entitlement) *OrganizationUpdateOne
RemoveEntitlements removes "entitlements" edges to Entitlement entities.
func (*OrganizationUpdateOne) RemoveGroupIDs ¶
func (ouo *OrganizationUpdateOne) RemoveGroupIDs(ids ...string) *OrganizationUpdateOne
RemoveGroupIDs removes the "groups" edge to Group entities by IDs.
func (*OrganizationUpdateOne) RemoveGroups ¶
func (ouo *OrganizationUpdateOne) RemoveGroups(g ...*Group) *OrganizationUpdateOne
RemoveGroups removes "groups" edges to Group entities.
func (*OrganizationUpdateOne) RemoveIntegrationIDs ¶
func (ouo *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...string) *OrganizationUpdateOne
RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.
func (*OrganizationUpdateOne) RemoveIntegrations ¶
func (ouo *OrganizationUpdateOne) RemoveIntegrations(i ...*Integration) *OrganizationUpdateOne
RemoveIntegrations removes "integrations" edges to Integration entities.
func (*OrganizationUpdateOne) RemoveOauthprovider ¶
func (ouo *OrganizationUpdateOne) RemoveOauthprovider(o ...*OauthProvider) *OrganizationUpdateOne
RemoveOauthprovider removes "oauthprovider" edges to OauthProvider entities.
func (*OrganizationUpdateOne) RemoveOauthproviderIDs ¶
func (ouo *OrganizationUpdateOne) RemoveOauthproviderIDs(ids ...string) *OrganizationUpdateOne
RemoveOauthproviderIDs removes the "oauthprovider" edge to OauthProvider entities by IDs.
func (*OrganizationUpdateOne) RemoveUserIDs ¶
func (ouo *OrganizationUpdateOne) RemoveUserIDs(ids ...string) *OrganizationUpdateOne
RemoveUserIDs removes the "users" edge to User entities by IDs.
func (*OrganizationUpdateOne) RemoveUsers ¶
func (ouo *OrganizationUpdateOne) RemoveUsers(u ...*User) *OrganizationUpdateOne
RemoveUsers removes "users" edges to User entities.
func (*OrganizationUpdateOne) Save ¶
func (ouo *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error)
Save executes the query and returns the updated Organization entity.
func (*OrganizationUpdateOne) SaveX ¶
func (ouo *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization
SaveX is like Save, but panics if an error occurs.
func (*OrganizationUpdateOne) Select ¶
func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OrganizationUpdateOne) SetDeletedAt ¶
func (ouo *OrganizationUpdateOne) SetDeletedAt(t time.Time) *OrganizationUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*OrganizationUpdateOne) SetDeletedBy ¶
func (ouo *OrganizationUpdateOne) SetDeletedBy(s string) *OrganizationUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*OrganizationUpdateOne) SetDescription ¶
func (ouo *OrganizationUpdateOne) SetDescription(s string) *OrganizationUpdateOne
SetDescription sets the "description" field.
func (*OrganizationUpdateOne) SetDisplayName ¶
func (ouo *OrganizationUpdateOne) SetDisplayName(s string) *OrganizationUpdateOne
SetDisplayName sets the "display_name" field.
func (*OrganizationUpdateOne) SetInput ¶
func (c *OrganizationUpdateOne) SetInput(i UpdateOrganizationInput) *OrganizationUpdateOne
SetInput applies the change-set in the UpdateOrganizationInput on the OrganizationUpdateOne builder.
func (*OrganizationUpdateOne) SetName ¶
func (ouo *OrganizationUpdateOne) SetName(s string) *OrganizationUpdateOne
SetName sets the "name" field.
func (*OrganizationUpdateOne) SetNillableDeletedAt ¶
func (ouo *OrganizationUpdateOne) SetNillableDeletedAt(t *time.Time) *OrganizationUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableDeletedBy ¶
func (ouo *OrganizationUpdateOne) SetNillableDeletedBy(s *string) *OrganizationUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableDescription ¶
func (ouo *OrganizationUpdateOne) SetNillableDescription(s *string) *OrganizationUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableDisplayName ¶
func (ouo *OrganizationUpdateOne) SetNillableDisplayName(s *string) *OrganizationUpdateOne
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableName ¶
func (ouo *OrganizationUpdateOne) SetNillableName(s *string) *OrganizationUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableSettingID ¶
func (ouo *OrganizationUpdateOne) SetNillableSettingID(id *string) *OrganizationUpdateOne
SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableUpdatedBy ¶
func (ouo *OrganizationUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*OrganizationUpdateOne) SetSetting ¶
func (ouo *OrganizationUpdateOne) SetSetting(o *OrganizationSetting) *OrganizationUpdateOne
SetSetting sets the "setting" edge to the OrganizationSetting entity.
func (*OrganizationUpdateOne) SetSettingID ¶
func (ouo *OrganizationUpdateOne) SetSettingID(id string) *OrganizationUpdateOne
SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID.
func (*OrganizationUpdateOne) SetUpdatedAt ¶
func (ouo *OrganizationUpdateOne) SetUpdatedAt(t time.Time) *OrganizationUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationUpdateOne) SetUpdatedBy ¶
func (ouo *OrganizationUpdateOne) SetUpdatedBy(s string) *OrganizationUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*OrganizationUpdateOne) Where ¶
func (ouo *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne
Where appends a list predicates to the OrganizationUpdate builder.
type OrganizationWhereInput ¶
type OrganizationWhereInput struct { Predicates []predicate.Organization `json:"-"` Not *OrganizationWhereInput `json:"not,omitempty"` Or []*OrganizationWhereInput `json:"or,omitempty"` And []*OrganizationWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // "display_name" field predicates. DisplayName *string `json:"displayName,omitempty"` DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` DisplayNameIn []string `json:"displayNameIn,omitempty"` DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` DisplayNameGT *string `json:"displayNameGT,omitempty"` DisplayNameGTE *string `json:"displayNameGTE,omitempty"` DisplayNameLT *string `json:"displayNameLT,omitempty"` DisplayNameLTE *string `json:"displayNameLTE,omitempty"` DisplayNameContains *string `json:"displayNameContains,omitempty"` DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` // "parent_organization_id" field predicates. ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` ParentOrganizationIDNEQ *string `json:"parentOrganizationIDNEQ,omitempty"` ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` ParentOrganizationIDGT *string `json:"parentOrganizationIDGT,omitempty"` ParentOrganizationIDGTE *string `json:"parentOrganizationIDGTE,omitempty"` ParentOrganizationIDLT *string `json:"parentOrganizationIDLT,omitempty"` ParentOrganizationIDLTE *string `json:"parentOrganizationIDLTE,omitempty"` ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` ParentOrganizationIDIsNil bool `json:"parentOrganizationIDIsNil,omitempty"` ParentOrganizationIDNotNil bool `json:"parentOrganizationIDNotNil,omitempty"` ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` // "parent" edge predicates. HasParent *bool `json:"hasParent,omitempty"` HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"` // "children" edge predicates. HasChildren *bool `json:"hasChildren,omitempty"` HasChildrenWith []*OrganizationWhereInput `json:"hasChildrenWith,omitempty"` // "users" edge predicates. HasUsers *bool `json:"hasUsers,omitempty"` HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` // "groups" edge predicates. HasGroups *bool `json:"hasGroups,omitempty"` HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"` // "integrations" edge predicates. HasIntegrations *bool `json:"hasIntegrations,omitempty"` HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` // "setting" edge predicates. HasSetting *bool `json:"hasSetting,omitempty"` HasSettingWith []*OrganizationSettingWhereInput `json:"hasSettingWith,omitempty"` // "entitlements" edge predicates. HasEntitlements *bool `json:"hasEntitlements,omitempty"` HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` // "oauthprovider" edge predicates. HasOauthprovider *bool `json:"hasOauthprovider,omitempty"` HasOauthproviderWith []*OauthProviderWhereInput `json:"hasOauthproviderWith,omitempty"` }
OrganizationWhereInput represents a where input for filtering Organization queries.
func (*OrganizationWhereInput) AddPredicates ¶
func (i *OrganizationWhereInput) AddPredicates(predicates ...predicate.Organization)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*OrganizationWhereInput) Filter ¶
func (i *OrganizationWhereInput) Filter(q *OrganizationQuery) (*OrganizationQuery, error)
Filter applies the OrganizationWhereInput filter on the OrganizationQuery builder.
func (*OrganizationWhereInput) P ¶
func (i *OrganizationWhereInput) P() (predicate.Organization, error)
P returns a predicate for filtering organizations. An error is returned if the input is empty or invalid.
type Organizations ¶
type Organizations []*Organization
Organizations is a parsable slice of Organization.
type PersonalAccessToken ¶
type PersonalAccessToken struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // the name associated with the token Name string `json:"name,omitempty"` // Token holds the value of the "token" field. Token string `json:"-"` // what abilites the token should have Abilities []string `json:"abilities,omitempty"` // when the token expires ExpiresAt *time.Time `json:"expires_at,omitempty"` // a description of the token's purpose Description string `json:"description,omitempty"` // LastUsedAt holds the value of the "last_used_at" field. LastUsedAt *time.Time `json:"last_used_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the PersonalAccessTokenQuery when eager-loading is set. Edges PersonalAccessTokenEdges `json:"edges"` // contains filtered or unexported fields }
PersonalAccessToken is the model entity for the PersonalAccessToken schema.
func (*PersonalAccessToken) IsNode ¶
func (n *PersonalAccessToken) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*PersonalAccessToken) Owner ¶
func (pat *PersonalAccessToken) Owner(ctx context.Context) (*User, error)
func (*PersonalAccessToken) QueryOwner ¶
func (pat *PersonalAccessToken) QueryOwner() *UserQuery
QueryOwner queries the "owner" edge of the PersonalAccessToken entity.
func (*PersonalAccessToken) String ¶
func (pat *PersonalAccessToken) String() string
String implements the fmt.Stringer.
func (*PersonalAccessToken) ToEdge ¶
func (pat *PersonalAccessToken) ToEdge(order *PersonalAccessTokenOrder) *PersonalAccessTokenEdge
ToEdge converts PersonalAccessToken into PersonalAccessTokenEdge.
func (*PersonalAccessToken) Unwrap ¶
func (pat *PersonalAccessToken) Unwrap() *PersonalAccessToken
Unwrap unwraps the PersonalAccessToken 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 (*PersonalAccessToken) Update ¶
func (pat *PersonalAccessToken) Update() *PersonalAccessTokenUpdateOne
Update returns a builder for updating this PersonalAccessToken. Note that you need to call PersonalAccessToken.Unwrap() before calling this method if this PersonalAccessToken was returned from a transaction, and the transaction was committed or rolled back.
type PersonalAccessTokenClient ¶
type PersonalAccessTokenClient struct {
// contains filtered or unexported fields
}
PersonalAccessTokenClient is a client for the PersonalAccessToken schema.
func NewPersonalAccessTokenClient ¶
func NewPersonalAccessTokenClient(c config) *PersonalAccessTokenClient
NewPersonalAccessTokenClient returns a client for the PersonalAccessToken from the given config.
func (*PersonalAccessTokenClient) Create ¶
func (c *PersonalAccessTokenClient) Create() *PersonalAccessTokenCreate
Create returns a builder for creating a PersonalAccessToken entity.
func (*PersonalAccessTokenClient) CreateBulk ¶
func (c *PersonalAccessTokenClient) CreateBulk(builders ...*PersonalAccessTokenCreate) *PersonalAccessTokenCreateBulk
CreateBulk returns a builder for creating a bulk of PersonalAccessToken entities.
func (*PersonalAccessTokenClient) Delete ¶
func (c *PersonalAccessTokenClient) Delete() *PersonalAccessTokenDelete
Delete returns a delete builder for PersonalAccessToken.
func (*PersonalAccessTokenClient) DeleteOne ¶
func (c *PersonalAccessTokenClient) DeleteOne(pat *PersonalAccessToken) *PersonalAccessTokenDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*PersonalAccessTokenClient) DeleteOneID ¶
func (c *PersonalAccessTokenClient) DeleteOneID(id string) *PersonalAccessTokenDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*PersonalAccessTokenClient) Get ¶
func (c *PersonalAccessTokenClient) Get(ctx context.Context, id string) (*PersonalAccessToken, error)
Get returns a PersonalAccessToken entity by its id.
func (*PersonalAccessTokenClient) GetX ¶
func (c *PersonalAccessTokenClient) GetX(ctx context.Context, id string) *PersonalAccessToken
GetX is like Get, but panics if an error occurs.
func (*PersonalAccessTokenClient) Hooks ¶
func (c *PersonalAccessTokenClient) Hooks() []Hook
Hooks returns the client hooks.
func (*PersonalAccessTokenClient) Intercept ¶
func (c *PersonalAccessTokenClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `personalaccesstoken.Intercept(f(g(h())))`.
func (*PersonalAccessTokenClient) Interceptors ¶
func (c *PersonalAccessTokenClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*PersonalAccessTokenClient) MapCreateBulk ¶
func (c *PersonalAccessTokenClient) MapCreateBulk(slice any, setFunc func(*PersonalAccessTokenCreate, int)) *PersonalAccessTokenCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*PersonalAccessTokenClient) Query ¶
func (c *PersonalAccessTokenClient) Query() *PersonalAccessTokenQuery
Query returns a query builder for PersonalAccessToken.
func (*PersonalAccessTokenClient) QueryOwner ¶
func (c *PersonalAccessTokenClient) QueryOwner(pat *PersonalAccessToken) *UserQuery
QueryOwner queries the owner edge of a PersonalAccessToken.
func (*PersonalAccessTokenClient) Update ¶
func (c *PersonalAccessTokenClient) Update() *PersonalAccessTokenUpdate
Update returns an update builder for PersonalAccessToken.
func (*PersonalAccessTokenClient) UpdateOne ¶
func (c *PersonalAccessTokenClient) UpdateOne(pat *PersonalAccessToken) *PersonalAccessTokenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PersonalAccessTokenClient) UpdateOneID ¶
func (c *PersonalAccessTokenClient) UpdateOneID(id string) *PersonalAccessTokenUpdateOne
UpdateOneID returns an update builder for the given id.
func (*PersonalAccessTokenClient) Use ¶
func (c *PersonalAccessTokenClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `personalaccesstoken.Hooks(f(g(h())))`.
type PersonalAccessTokenConnection ¶
type PersonalAccessTokenConnection struct { Edges []*PersonalAccessTokenEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
PersonalAccessTokenConnection is the connection containing edges to PersonalAccessToken.
type PersonalAccessTokenCreate ¶
type PersonalAccessTokenCreate struct {
// contains filtered or unexported fields
}
PersonalAccessTokenCreate is the builder for creating a PersonalAccessToken entity.
func (*PersonalAccessTokenCreate) Exec ¶
func (patc *PersonalAccessTokenCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*PersonalAccessTokenCreate) ExecX ¶
func (patc *PersonalAccessTokenCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonalAccessTokenCreate) Mutation ¶
func (patc *PersonalAccessTokenCreate) Mutation() *PersonalAccessTokenMutation
Mutation returns the PersonalAccessTokenMutation object of the builder.
func (*PersonalAccessTokenCreate) Save ¶
func (patc *PersonalAccessTokenCreate) Save(ctx context.Context) (*PersonalAccessToken, error)
Save creates the PersonalAccessToken in the database.
func (*PersonalAccessTokenCreate) SaveX ¶
func (patc *PersonalAccessTokenCreate) SaveX(ctx context.Context) *PersonalAccessToken
SaveX calls Save and panics if Save returns an error.
func (*PersonalAccessTokenCreate) SetAbilities ¶
func (patc *PersonalAccessTokenCreate) SetAbilities(s []string) *PersonalAccessTokenCreate
SetAbilities sets the "abilities" field.
func (*PersonalAccessTokenCreate) SetCreatedAt ¶
func (patc *PersonalAccessTokenCreate) SetCreatedAt(t time.Time) *PersonalAccessTokenCreate
SetCreatedAt sets the "created_at" field.
func (*PersonalAccessTokenCreate) SetCreatedBy ¶
func (patc *PersonalAccessTokenCreate) SetCreatedBy(s string) *PersonalAccessTokenCreate
SetCreatedBy sets the "created_by" field.
func (*PersonalAccessTokenCreate) SetDescription ¶
func (patc *PersonalAccessTokenCreate) SetDescription(s string) *PersonalAccessTokenCreate
SetDescription sets the "description" field.
func (*PersonalAccessTokenCreate) SetExpiresAt ¶
func (patc *PersonalAccessTokenCreate) SetExpiresAt(t time.Time) *PersonalAccessTokenCreate
SetExpiresAt sets the "expires_at" field.
func (*PersonalAccessTokenCreate) SetID ¶
func (patc *PersonalAccessTokenCreate) SetID(s string) *PersonalAccessTokenCreate
SetID sets the "id" field.
func (*PersonalAccessTokenCreate) SetInput ¶
func (c *PersonalAccessTokenCreate) SetInput(i CreatePersonalAccessTokenInput) *PersonalAccessTokenCreate
SetInput applies the change-set in the CreatePersonalAccessTokenInput on the PersonalAccessTokenCreate builder.
func (*PersonalAccessTokenCreate) SetLastUsedAt ¶
func (patc *PersonalAccessTokenCreate) SetLastUsedAt(t time.Time) *PersonalAccessTokenCreate
SetLastUsedAt sets the "last_used_at" field.
func (*PersonalAccessTokenCreate) SetName ¶
func (patc *PersonalAccessTokenCreate) SetName(s string) *PersonalAccessTokenCreate
SetName sets the "name" field.
func (*PersonalAccessTokenCreate) SetNillableCreatedAt ¶
func (patc *PersonalAccessTokenCreate) SetNillableCreatedAt(t *time.Time) *PersonalAccessTokenCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableCreatedBy ¶
func (patc *PersonalAccessTokenCreate) SetNillableCreatedBy(s *string) *PersonalAccessTokenCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableDescription ¶
func (patc *PersonalAccessTokenCreate) SetNillableDescription(s *string) *PersonalAccessTokenCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableID ¶
func (patc *PersonalAccessTokenCreate) SetNillableID(s *string) *PersonalAccessTokenCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableLastUsedAt ¶
func (patc *PersonalAccessTokenCreate) SetNillableLastUsedAt(t *time.Time) *PersonalAccessTokenCreate
SetNillableLastUsedAt sets the "last_used_at" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableToken ¶
func (patc *PersonalAccessTokenCreate) SetNillableToken(s *string) *PersonalAccessTokenCreate
SetNillableToken sets the "token" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableUpdatedAt ¶
func (patc *PersonalAccessTokenCreate) SetNillableUpdatedAt(t *time.Time) *PersonalAccessTokenCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetNillableUpdatedBy ¶
func (patc *PersonalAccessTokenCreate) SetNillableUpdatedBy(s *string) *PersonalAccessTokenCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*PersonalAccessTokenCreate) SetOwner ¶
func (patc *PersonalAccessTokenCreate) SetOwner(u *User) *PersonalAccessTokenCreate
SetOwner sets the "owner" edge to the User entity.
func (*PersonalAccessTokenCreate) SetOwnerID ¶
func (patc *PersonalAccessTokenCreate) SetOwnerID(id string) *PersonalAccessTokenCreate
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*PersonalAccessTokenCreate) SetToken ¶
func (patc *PersonalAccessTokenCreate) SetToken(s string) *PersonalAccessTokenCreate
SetToken sets the "token" field.
func (*PersonalAccessTokenCreate) SetUpdatedAt ¶
func (patc *PersonalAccessTokenCreate) SetUpdatedAt(t time.Time) *PersonalAccessTokenCreate
SetUpdatedAt sets the "updated_at" field.
func (*PersonalAccessTokenCreate) SetUpdatedBy ¶
func (patc *PersonalAccessTokenCreate) SetUpdatedBy(s string) *PersonalAccessTokenCreate
SetUpdatedBy sets the "updated_by" field.
type PersonalAccessTokenCreateBulk ¶
type PersonalAccessTokenCreateBulk struct {
// contains filtered or unexported fields
}
PersonalAccessTokenCreateBulk is the builder for creating many PersonalAccessToken entities in bulk.
func (*PersonalAccessTokenCreateBulk) Exec ¶
func (patcb *PersonalAccessTokenCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*PersonalAccessTokenCreateBulk) ExecX ¶
func (patcb *PersonalAccessTokenCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonalAccessTokenCreateBulk) Save ¶
func (patcb *PersonalAccessTokenCreateBulk) Save(ctx context.Context) ([]*PersonalAccessToken, error)
Save creates the PersonalAccessToken entities in the database.
func (*PersonalAccessTokenCreateBulk) SaveX ¶
func (patcb *PersonalAccessTokenCreateBulk) SaveX(ctx context.Context) []*PersonalAccessToken
SaveX is like Save, but panics if an error occurs.
type PersonalAccessTokenDelete ¶
type PersonalAccessTokenDelete struct {
// contains filtered or unexported fields
}
PersonalAccessTokenDelete is the builder for deleting a PersonalAccessToken entity.
func (*PersonalAccessTokenDelete) Exec ¶
func (patd *PersonalAccessTokenDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*PersonalAccessTokenDelete) ExecX ¶
func (patd *PersonalAccessTokenDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*PersonalAccessTokenDelete) Where ¶
func (patd *PersonalAccessTokenDelete) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenDelete
Where appends a list predicates to the PersonalAccessTokenDelete builder.
type PersonalAccessTokenDeleteOne ¶
type PersonalAccessTokenDeleteOne struct {
// contains filtered or unexported fields
}
PersonalAccessTokenDeleteOne is the builder for deleting a single PersonalAccessToken entity.
func (*PersonalAccessTokenDeleteOne) Exec ¶
func (patdo *PersonalAccessTokenDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PersonalAccessTokenDeleteOne) ExecX ¶
func (patdo *PersonalAccessTokenDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonalAccessTokenDeleteOne) Where ¶
func (patdo *PersonalAccessTokenDeleteOne) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenDeleteOne
Where appends a list predicates to the PersonalAccessTokenDelete builder.
type PersonalAccessTokenEdge ¶
type PersonalAccessTokenEdge struct { Node *PersonalAccessToken `json:"node"` Cursor Cursor `json:"cursor"` }
PersonalAccessTokenEdge is the edge representation of PersonalAccessToken.
type PersonalAccessTokenEdges ¶
type PersonalAccessTokenEdges struct { // Owner holds the value of the owner edge. Owner *User `json:"owner,omitempty"` // contains filtered or unexported fields }
PersonalAccessTokenEdges holds the relations/edges for other nodes in the graph.
func (PersonalAccessTokenEdges) OwnerOrErr ¶
func (e PersonalAccessTokenEdges) OwnerOrErr() (*User, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type PersonalAccessTokenFilter ¶
type PersonalAccessTokenFilter struct {
// contains filtered or unexported fields
}
PersonalAccessTokenFilter provides a generic filtering capability at runtime for PersonalAccessTokenQuery.
func (*PersonalAccessTokenFilter) Where ¶
func (f *PersonalAccessTokenFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*PersonalAccessTokenFilter) WhereAbilities ¶
func (f *PersonalAccessTokenFilter) WhereAbilities(p entql.BytesP)
WhereAbilities applies the entql json.RawMessage predicate on the abilities field.
func (*PersonalAccessTokenFilter) WhereCreatedAt ¶
func (f *PersonalAccessTokenFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*PersonalAccessTokenFilter) WhereCreatedBy ¶
func (f *PersonalAccessTokenFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*PersonalAccessTokenFilter) WhereDescription ¶
func (f *PersonalAccessTokenFilter) WhereDescription(p entql.StringP)
WhereDescription applies the entql string predicate on the description field.
func (*PersonalAccessTokenFilter) WhereExpiresAt ¶
func (f *PersonalAccessTokenFilter) WhereExpiresAt(p entql.TimeP)
WhereExpiresAt applies the entql time.Time predicate on the expires_at field.
func (*PersonalAccessTokenFilter) WhereHasOwner ¶
func (f *PersonalAccessTokenFilter) WhereHasOwner()
WhereHasOwner applies a predicate to check if query has an edge owner.
func (*PersonalAccessTokenFilter) WhereHasOwnerWith ¶
func (f *PersonalAccessTokenFilter) WhereHasOwnerWith(preds ...predicate.User)
WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).
func (*PersonalAccessTokenFilter) WhereID ¶
func (f *PersonalAccessTokenFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*PersonalAccessTokenFilter) WhereLastUsedAt ¶
func (f *PersonalAccessTokenFilter) WhereLastUsedAt(p entql.TimeP)
WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field.
func (*PersonalAccessTokenFilter) WhereName ¶
func (f *PersonalAccessTokenFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*PersonalAccessTokenFilter) WhereToken ¶
func (f *PersonalAccessTokenFilter) WhereToken(p entql.StringP)
WhereToken applies the entql string predicate on the token field.
func (*PersonalAccessTokenFilter) WhereUpdatedAt ¶
func (f *PersonalAccessTokenFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*PersonalAccessTokenFilter) WhereUpdatedBy ¶
func (f *PersonalAccessTokenFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type PersonalAccessTokenGroupBy ¶
type PersonalAccessTokenGroupBy struct {
// contains filtered or unexported fields
}
PersonalAccessTokenGroupBy is the group-by builder for PersonalAccessToken entities.
func (*PersonalAccessTokenGroupBy) Aggregate ¶
func (patgb *PersonalAccessTokenGroupBy) Aggregate(fns ...AggregateFunc) *PersonalAccessTokenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PersonalAccessTokenGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*PersonalAccessTokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*PersonalAccessTokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenGroupBy) Scan ¶
func (patgb *PersonalAccessTokenGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PersonalAccessTokenGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PersonalAccessTokenMutation ¶
type PersonalAccessTokenMutation struct {
// contains filtered or unexported fields
}
PersonalAccessTokenMutation represents an operation that mutates the PersonalAccessToken nodes in the graph.
func (*PersonalAccessTokenMutation) Abilities ¶
func (m *PersonalAccessTokenMutation) Abilities() (r []string, exists bool)
Abilities returns the value of the "abilities" field in the mutation.
func (*PersonalAccessTokenMutation) AbilitiesCleared ¶
func (m *PersonalAccessTokenMutation) AbilitiesCleared() bool
AbilitiesCleared returns if the "abilities" field was cleared in this mutation.
func (*PersonalAccessTokenMutation) AddField ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) AddedEdges ¶
func (m *PersonalAccessTokenMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*PersonalAccessTokenMutation) AddedField ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) AddedFields ¶
func (m *PersonalAccessTokenMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*PersonalAccessTokenMutation) AddedIDs ¶
func (m *PersonalAccessTokenMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*PersonalAccessTokenMutation) AppendAbilities ¶
func (m *PersonalAccessTokenMutation) AppendAbilities(s []string)
AppendAbilities adds s to the "abilities" field.
func (*PersonalAccessTokenMutation) AppendedAbilities ¶
func (m *PersonalAccessTokenMutation) AppendedAbilities() ([]string, bool)
AppendedAbilities returns the list of values that were appended to the "abilities" field in this mutation.
func (*PersonalAccessTokenMutation) ClearAbilities ¶
func (m *PersonalAccessTokenMutation) ClearAbilities()
ClearAbilities clears the value of the "abilities" field.
func (*PersonalAccessTokenMutation) ClearCreatedBy ¶
func (m *PersonalAccessTokenMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*PersonalAccessTokenMutation) ClearDescription ¶
func (m *PersonalAccessTokenMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*PersonalAccessTokenMutation) ClearEdge ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) ClearField ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) ClearLastUsedAt ¶
func (m *PersonalAccessTokenMutation) ClearLastUsedAt()
ClearLastUsedAt clears the value of the "last_used_at" field.
func (*PersonalAccessTokenMutation) ClearOwner ¶
func (m *PersonalAccessTokenMutation) ClearOwner()
ClearOwner clears the "owner" edge to the User entity.
func (*PersonalAccessTokenMutation) ClearUpdatedBy ¶
func (m *PersonalAccessTokenMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*PersonalAccessTokenMutation) ClearedEdges ¶
func (m *PersonalAccessTokenMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*PersonalAccessTokenMutation) ClearedFields ¶
func (m *PersonalAccessTokenMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (PersonalAccessTokenMutation) Client ¶
func (m PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) CreatedAt ¶
func (m *PersonalAccessTokenMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*PersonalAccessTokenMutation) CreatedBy ¶
func (m *PersonalAccessTokenMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*PersonalAccessTokenMutation) CreatedByCleared ¶
func (m *PersonalAccessTokenMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*PersonalAccessTokenMutation) Description ¶
func (m *PersonalAccessTokenMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*PersonalAccessTokenMutation) DescriptionCleared ¶
func (m *PersonalAccessTokenMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*PersonalAccessTokenMutation) EdgeCleared ¶
func (m *PersonalAccessTokenMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*PersonalAccessTokenMutation) ExpiresAt ¶
func (m *PersonalAccessTokenMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expires_at" field in the mutation.
func (*PersonalAccessTokenMutation) Field ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) FieldCleared ¶
func (m *PersonalAccessTokenMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*PersonalAccessTokenMutation) Fields ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) Filter ¶
func (m *PersonalAccessTokenMutation) Filter() *PersonalAccessTokenFilter
Filter returns an entql.Where implementation to apply filters on the PersonalAccessTokenMutation builder.
func (*PersonalAccessTokenMutation) ID ¶
func (m *PersonalAccessTokenMutation) ID() (id string, 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 (*PersonalAccessTokenMutation) IDs ¶
func (m *PersonalAccessTokenMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*PersonalAccessTokenMutation) LastUsedAt ¶
func (m *PersonalAccessTokenMutation) LastUsedAt() (r time.Time, exists bool)
LastUsedAt returns the value of the "last_used_at" field in the mutation.
func (*PersonalAccessTokenMutation) LastUsedAtCleared ¶
func (m *PersonalAccessTokenMutation) LastUsedAtCleared() bool
LastUsedAtCleared returns if the "last_used_at" field was cleared in this mutation.
func (*PersonalAccessTokenMutation) Name ¶
func (m *PersonalAccessTokenMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*PersonalAccessTokenMutation) OldAbilities ¶
func (m *PersonalAccessTokenMutation) OldAbilities(ctx context.Context) (v []string, err error)
OldAbilities returns the old "abilities" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldCreatedBy ¶
func (m *PersonalAccessTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldDescription ¶
func (m *PersonalAccessTokenMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldExpiresAt ¶
OldExpiresAt returns the old "expires_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) OldLastUsedAt ¶
OldLastUsedAt returns the old "last_used_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldName ¶
func (m *PersonalAccessTokenMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldToken ¶
func (m *PersonalAccessTokenMutation) OldToken(ctx context.Context) (v string, err error)
OldToken returns the old "token" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) OldUpdatedBy ¶
func (m *PersonalAccessTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the PersonalAccessToken entity. If the PersonalAccessToken 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 (*PersonalAccessTokenMutation) Op ¶
func (m *PersonalAccessTokenMutation) Op() Op
Op returns the operation name.
func (*PersonalAccessTokenMutation) OwnerCleared ¶
func (m *PersonalAccessTokenMutation) OwnerCleared() bool
OwnerCleared reports if the "owner" edge to the User entity was cleared.
func (*PersonalAccessTokenMutation) OwnerID ¶
func (m *PersonalAccessTokenMutation) OwnerID() (id string, exists bool)
OwnerID returns the "owner" edge ID in the mutation.
func (*PersonalAccessTokenMutation) OwnerIDs ¶
func (m *PersonalAccessTokenMutation) OwnerIDs() (ids []string)
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.
func (*PersonalAccessTokenMutation) RemovedEdges ¶
func (m *PersonalAccessTokenMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*PersonalAccessTokenMutation) RemovedIDs ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) ResetAbilities ¶
func (m *PersonalAccessTokenMutation) ResetAbilities()
ResetAbilities resets all changes to the "abilities" field.
func (*PersonalAccessTokenMutation) ResetCreatedAt ¶
func (m *PersonalAccessTokenMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*PersonalAccessTokenMutation) ResetCreatedBy ¶
func (m *PersonalAccessTokenMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*PersonalAccessTokenMutation) ResetDescription ¶
func (m *PersonalAccessTokenMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*PersonalAccessTokenMutation) ResetEdge ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) ResetExpiresAt ¶
func (m *PersonalAccessTokenMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expires_at" field.
func (*PersonalAccessTokenMutation) ResetField ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) ResetLastUsedAt ¶
func (m *PersonalAccessTokenMutation) ResetLastUsedAt()
ResetLastUsedAt resets all changes to the "last_used_at" field.
func (*PersonalAccessTokenMutation) ResetName ¶
func (m *PersonalAccessTokenMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*PersonalAccessTokenMutation) ResetOwner ¶
func (m *PersonalAccessTokenMutation) ResetOwner()
ResetOwner resets all changes to the "owner" edge.
func (*PersonalAccessTokenMutation) ResetToken ¶
func (m *PersonalAccessTokenMutation) ResetToken()
ResetToken resets all changes to the "token" field.
func (*PersonalAccessTokenMutation) ResetUpdatedAt ¶
func (m *PersonalAccessTokenMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*PersonalAccessTokenMutation) ResetUpdatedBy ¶
func (m *PersonalAccessTokenMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*PersonalAccessTokenMutation) SetAbilities ¶
func (m *PersonalAccessTokenMutation) SetAbilities(s []string)
SetAbilities sets the "abilities" field.
func (*PersonalAccessTokenMutation) SetCreatedAt ¶
func (m *PersonalAccessTokenMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*PersonalAccessTokenMutation) SetCreatedBy ¶
func (m *PersonalAccessTokenMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*PersonalAccessTokenMutation) SetDescription ¶
func (m *PersonalAccessTokenMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*PersonalAccessTokenMutation) SetExpiresAt ¶
func (m *PersonalAccessTokenMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expires_at" field.
func (*PersonalAccessTokenMutation) SetField ¶
func (m *PersonalAccessTokenMutation) 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 (*PersonalAccessTokenMutation) SetID ¶
func (m *PersonalAccessTokenMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of PersonalAccessToken entities.
func (*PersonalAccessTokenMutation) SetLastUsedAt ¶
func (m *PersonalAccessTokenMutation) SetLastUsedAt(t time.Time)
SetLastUsedAt sets the "last_used_at" field.
func (*PersonalAccessTokenMutation) SetName ¶
func (m *PersonalAccessTokenMutation) SetName(s string)
SetName sets the "name" field.
func (*PersonalAccessTokenMutation) SetOp ¶
func (m *PersonalAccessTokenMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*PersonalAccessTokenMutation) SetOwnerID ¶
func (m *PersonalAccessTokenMutation) SetOwnerID(id string)
SetOwnerID sets the "owner" edge to the User entity by id.
func (*PersonalAccessTokenMutation) SetToken ¶
func (m *PersonalAccessTokenMutation) SetToken(s string)
SetToken sets the "token" field.
func (*PersonalAccessTokenMutation) SetUpdatedAt ¶
func (m *PersonalAccessTokenMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*PersonalAccessTokenMutation) SetUpdatedBy ¶
func (m *PersonalAccessTokenMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*PersonalAccessTokenMutation) Token ¶
func (m *PersonalAccessTokenMutation) Token() (r string, exists bool)
Token returns the value of the "token" field in the mutation.
func (PersonalAccessTokenMutation) Tx ¶
func (m PersonalAccessTokenMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*PersonalAccessTokenMutation) Type ¶
func (m *PersonalAccessTokenMutation) Type() string
Type returns the node type of this mutation (PersonalAccessToken).
func (*PersonalAccessTokenMutation) UpdatedAt ¶
func (m *PersonalAccessTokenMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*PersonalAccessTokenMutation) UpdatedBy ¶
func (m *PersonalAccessTokenMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*PersonalAccessTokenMutation) UpdatedByCleared ¶
func (m *PersonalAccessTokenMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*PersonalAccessTokenMutation) Where ¶
func (m *PersonalAccessTokenMutation) Where(ps ...predicate.PersonalAccessToken)
Where appends a list predicates to the PersonalAccessTokenMutation builder.
func (*PersonalAccessTokenMutation) WhereP ¶
func (m *PersonalAccessTokenMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the PersonalAccessTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type PersonalAccessTokenOrder ¶
type PersonalAccessTokenOrder struct { Direction OrderDirection `json:"direction"` Field *PersonalAccessTokenOrderField `json:"field"` }
PersonalAccessTokenOrder defines the ordering of PersonalAccessToken.
type PersonalAccessTokenOrderField ¶
type PersonalAccessTokenOrderField struct { // Value extracts the ordering value from the given PersonalAccessToken. Value func(*PersonalAccessToken) (ent.Value, error) // contains filtered or unexported fields }
PersonalAccessTokenOrderField defines the ordering field of PersonalAccessToken.
type PersonalAccessTokenPaginateOption ¶
type PersonalAccessTokenPaginateOption func(*personalaccesstokenPager) error
PersonalAccessTokenPaginateOption enables pagination customization.
func WithPersonalAccessTokenFilter ¶
func WithPersonalAccessTokenFilter(filter func(*PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error)) PersonalAccessTokenPaginateOption
WithPersonalAccessTokenFilter configures pagination filter.
func WithPersonalAccessTokenOrder ¶
func WithPersonalAccessTokenOrder(order *PersonalAccessTokenOrder) PersonalAccessTokenPaginateOption
WithPersonalAccessTokenOrder configures pagination ordering.
type PersonalAccessTokenQuery ¶
type PersonalAccessTokenQuery struct {
// contains filtered or unexported fields
}
PersonalAccessTokenQuery is the builder for querying PersonalAccessToken entities.
func (*PersonalAccessTokenQuery) Aggregate ¶
func (patq *PersonalAccessTokenQuery) Aggregate(fns ...AggregateFunc) *PersonalAccessTokenSelect
Aggregate returns a PersonalAccessTokenSelect configured with the given aggregations.
func (*PersonalAccessTokenQuery) All ¶
func (patq *PersonalAccessTokenQuery) All(ctx context.Context) ([]*PersonalAccessToken, error)
All executes the query and returns a list of PersonalAccessTokens.
func (*PersonalAccessTokenQuery) AllX ¶
func (patq *PersonalAccessTokenQuery) AllX(ctx context.Context) []*PersonalAccessToken
AllX is like All, but panics if an error occurs.
func (*PersonalAccessTokenQuery) Clone ¶
func (patq *PersonalAccessTokenQuery) Clone() *PersonalAccessTokenQuery
Clone returns a duplicate of the PersonalAccessTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*PersonalAccessTokenQuery) CollectFields ¶
func (pat *PersonalAccessTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*PersonalAccessTokenQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*PersonalAccessTokenQuery) Count ¶
func (patq *PersonalAccessTokenQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*PersonalAccessTokenQuery) CountX ¶
func (patq *PersonalAccessTokenQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*PersonalAccessTokenQuery) Exist ¶
func (patq *PersonalAccessTokenQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*PersonalAccessTokenQuery) ExistX ¶
func (patq *PersonalAccessTokenQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*PersonalAccessTokenQuery) Filter ¶
func (patq *PersonalAccessTokenQuery) Filter() *PersonalAccessTokenFilter
Filter returns a Filter implementation to apply filters on the PersonalAccessTokenQuery builder.
func (*PersonalAccessTokenQuery) First ¶
func (patq *PersonalAccessTokenQuery) First(ctx context.Context) (*PersonalAccessToken, error)
First returns the first PersonalAccessToken entity from the query. Returns a *NotFoundError when no PersonalAccessToken was found.
func (*PersonalAccessTokenQuery) FirstID ¶
func (patq *PersonalAccessTokenQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first PersonalAccessToken ID from the query. Returns a *NotFoundError when no PersonalAccessToken ID was found.
func (*PersonalAccessTokenQuery) FirstIDX ¶
func (patq *PersonalAccessTokenQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*PersonalAccessTokenQuery) FirstX ¶
func (patq *PersonalAccessTokenQuery) FirstX(ctx context.Context) *PersonalAccessToken
FirstX is like First, but panics if an error occurs.
func (*PersonalAccessTokenQuery) GroupBy ¶
func (patq *PersonalAccessTokenQuery) GroupBy(field string, fields ...string) *PersonalAccessTokenGroupBy
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.PersonalAccessToken.Query(). GroupBy(personalaccesstoken.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*PersonalAccessTokenQuery) IDs ¶
func (patq *PersonalAccessTokenQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of PersonalAccessToken IDs.
func (*PersonalAccessTokenQuery) IDsX ¶
func (patq *PersonalAccessTokenQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*PersonalAccessTokenQuery) Limit ¶
func (patq *PersonalAccessTokenQuery) Limit(limit int) *PersonalAccessTokenQuery
Limit the number of records to be returned by this query.
func (*PersonalAccessTokenQuery) Offset ¶
func (patq *PersonalAccessTokenQuery) Offset(offset int) *PersonalAccessTokenQuery
Offset to start from.
func (*PersonalAccessTokenQuery) Only ¶
func (patq *PersonalAccessTokenQuery) Only(ctx context.Context) (*PersonalAccessToken, error)
Only returns a single PersonalAccessToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one PersonalAccessToken entity is found. Returns a *NotFoundError when no PersonalAccessToken entities are found.
func (*PersonalAccessTokenQuery) OnlyID ¶
func (patq *PersonalAccessTokenQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only PersonalAccessToken ID in the query. Returns a *NotSingularError when more than one PersonalAccessToken ID is found. Returns a *NotFoundError when no entities are found.
func (*PersonalAccessTokenQuery) OnlyIDX ¶
func (patq *PersonalAccessTokenQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*PersonalAccessTokenQuery) OnlyX ¶
func (patq *PersonalAccessTokenQuery) OnlyX(ctx context.Context) *PersonalAccessToken
OnlyX is like Only, but panics if an error occurs.
func (*PersonalAccessTokenQuery) Order ¶
func (patq *PersonalAccessTokenQuery) Order(o ...personalaccesstoken.OrderOption) *PersonalAccessTokenQuery
Order specifies how the records should be ordered.
func (*PersonalAccessTokenQuery) Paginate ¶
func (pat *PersonalAccessTokenQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...PersonalAccessTokenPaginateOption, ) (*PersonalAccessTokenConnection, error)
Paginate executes the query and returns a relay based cursor connection to PersonalAccessToken.
func (*PersonalAccessTokenQuery) QueryOwner ¶
func (patq *PersonalAccessTokenQuery) QueryOwner() *UserQuery
QueryOwner chains the current query on the "owner" edge.
func (*PersonalAccessTokenQuery) Select ¶
func (patq *PersonalAccessTokenQuery) Select(fields ...string) *PersonalAccessTokenSelect
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.PersonalAccessToken.Query(). Select(personalaccesstoken.FieldCreatedAt). Scan(ctx, &v)
func (*PersonalAccessTokenQuery) Unique ¶
func (patq *PersonalAccessTokenQuery) Unique(unique bool) *PersonalAccessTokenQuery
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 (*PersonalAccessTokenQuery) Where ¶
func (patq *PersonalAccessTokenQuery) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenQuery
Where adds a new predicate for the PersonalAccessTokenQuery builder.
func (*PersonalAccessTokenQuery) WithOwner ¶
func (patq *PersonalAccessTokenQuery) WithOwner(opts ...func(*UserQuery)) *PersonalAccessTokenQuery
WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
type PersonalAccessTokenSelect ¶
type PersonalAccessTokenSelect struct { *PersonalAccessTokenQuery // contains filtered or unexported fields }
PersonalAccessTokenSelect is the builder for selecting fields of PersonalAccessToken entities.
func (*PersonalAccessTokenSelect) Aggregate ¶
func (pats *PersonalAccessTokenSelect) Aggregate(fns ...AggregateFunc) *PersonalAccessTokenSelect
Aggregate adds the given aggregation functions to the selector query.
func (*PersonalAccessTokenSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*PersonalAccessTokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*PersonalAccessTokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PersonalAccessTokenSelect) Scan ¶
func (pats *PersonalAccessTokenSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PersonalAccessTokenSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PersonalAccessTokenUpdate ¶
type PersonalAccessTokenUpdate struct {
// contains filtered or unexported fields
}
PersonalAccessTokenUpdate is the builder for updating PersonalAccessToken entities.
func (*PersonalAccessTokenUpdate) AppendAbilities ¶
func (patu *PersonalAccessTokenUpdate) AppendAbilities(s []string) *PersonalAccessTokenUpdate
AppendAbilities appends s to the "abilities" field.
func (*PersonalAccessTokenUpdate) ClearAbilities ¶
func (patu *PersonalAccessTokenUpdate) ClearAbilities() *PersonalAccessTokenUpdate
ClearAbilities clears the value of the "abilities" field.
func (*PersonalAccessTokenUpdate) ClearDescription ¶
func (patu *PersonalAccessTokenUpdate) ClearDescription() *PersonalAccessTokenUpdate
ClearDescription clears the value of the "description" field.
func (*PersonalAccessTokenUpdate) ClearLastUsedAt ¶
func (patu *PersonalAccessTokenUpdate) ClearLastUsedAt() *PersonalAccessTokenUpdate
ClearLastUsedAt clears the value of the "last_used_at" field.
func (*PersonalAccessTokenUpdate) ClearOwner ¶
func (patu *PersonalAccessTokenUpdate) ClearOwner() *PersonalAccessTokenUpdate
ClearOwner clears the "owner" edge to the User entity.
func (*PersonalAccessTokenUpdate) ClearUpdatedBy ¶
func (patu *PersonalAccessTokenUpdate) ClearUpdatedBy() *PersonalAccessTokenUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*PersonalAccessTokenUpdate) Exec ¶
func (patu *PersonalAccessTokenUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*PersonalAccessTokenUpdate) ExecX ¶
func (patu *PersonalAccessTokenUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonalAccessTokenUpdate) Mutation ¶
func (patu *PersonalAccessTokenUpdate) Mutation() *PersonalAccessTokenMutation
Mutation returns the PersonalAccessTokenMutation object of the builder.
func (*PersonalAccessTokenUpdate) Save ¶
func (patu *PersonalAccessTokenUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*PersonalAccessTokenUpdate) SaveX ¶
func (patu *PersonalAccessTokenUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*PersonalAccessTokenUpdate) SetAbilities ¶
func (patu *PersonalAccessTokenUpdate) SetAbilities(s []string) *PersonalAccessTokenUpdate
SetAbilities sets the "abilities" field.
func (*PersonalAccessTokenUpdate) SetDescription ¶
func (patu *PersonalAccessTokenUpdate) SetDescription(s string) *PersonalAccessTokenUpdate
SetDescription sets the "description" field.
func (*PersonalAccessTokenUpdate) SetExpiresAt ¶
func (patu *PersonalAccessTokenUpdate) SetExpiresAt(t time.Time) *PersonalAccessTokenUpdate
SetExpiresAt sets the "expires_at" field.
func (*PersonalAccessTokenUpdate) SetInput ¶
func (c *PersonalAccessTokenUpdate) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdate
SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdate builder.
func (*PersonalAccessTokenUpdate) SetLastUsedAt ¶
func (patu *PersonalAccessTokenUpdate) SetLastUsedAt(t time.Time) *PersonalAccessTokenUpdate
SetLastUsedAt sets the "last_used_at" field.
func (*PersonalAccessTokenUpdate) SetName ¶
func (patu *PersonalAccessTokenUpdate) SetName(s string) *PersonalAccessTokenUpdate
SetName sets the "name" field.
func (*PersonalAccessTokenUpdate) SetNillableDescription ¶
func (patu *PersonalAccessTokenUpdate) SetNillableDescription(s *string) *PersonalAccessTokenUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*PersonalAccessTokenUpdate) SetNillableExpiresAt ¶
func (patu *PersonalAccessTokenUpdate) SetNillableExpiresAt(t *time.Time) *PersonalAccessTokenUpdate
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*PersonalAccessTokenUpdate) SetNillableName ¶
func (patu *PersonalAccessTokenUpdate) SetNillableName(s *string) *PersonalAccessTokenUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*PersonalAccessTokenUpdate) SetNillableUpdatedBy ¶
func (patu *PersonalAccessTokenUpdate) SetNillableUpdatedBy(s *string) *PersonalAccessTokenUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*PersonalAccessTokenUpdate) SetOwner ¶
func (patu *PersonalAccessTokenUpdate) SetOwner(u *User) *PersonalAccessTokenUpdate
SetOwner sets the "owner" edge to the User entity.
func (*PersonalAccessTokenUpdate) SetOwnerID ¶
func (patu *PersonalAccessTokenUpdate) SetOwnerID(id string) *PersonalAccessTokenUpdate
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*PersonalAccessTokenUpdate) SetUpdatedAt ¶
func (patu *PersonalAccessTokenUpdate) SetUpdatedAt(t time.Time) *PersonalAccessTokenUpdate
SetUpdatedAt sets the "updated_at" field.
func (*PersonalAccessTokenUpdate) SetUpdatedBy ¶
func (patu *PersonalAccessTokenUpdate) SetUpdatedBy(s string) *PersonalAccessTokenUpdate
SetUpdatedBy sets the "updated_by" field.
func (*PersonalAccessTokenUpdate) Where ¶
func (patu *PersonalAccessTokenUpdate) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenUpdate
Where appends a list predicates to the PersonalAccessTokenUpdate builder.
type PersonalAccessTokenUpdateOne ¶
type PersonalAccessTokenUpdateOne struct {
// contains filtered or unexported fields
}
PersonalAccessTokenUpdateOne is the builder for updating a single PersonalAccessToken entity.
func (*PersonalAccessTokenUpdateOne) AppendAbilities ¶
func (patuo *PersonalAccessTokenUpdateOne) AppendAbilities(s []string) *PersonalAccessTokenUpdateOne
AppendAbilities appends s to the "abilities" field.
func (*PersonalAccessTokenUpdateOne) ClearAbilities ¶
func (patuo *PersonalAccessTokenUpdateOne) ClearAbilities() *PersonalAccessTokenUpdateOne
ClearAbilities clears the value of the "abilities" field.
func (*PersonalAccessTokenUpdateOne) ClearDescription ¶
func (patuo *PersonalAccessTokenUpdateOne) ClearDescription() *PersonalAccessTokenUpdateOne
ClearDescription clears the value of the "description" field.
func (*PersonalAccessTokenUpdateOne) ClearLastUsedAt ¶
func (patuo *PersonalAccessTokenUpdateOne) ClearLastUsedAt() *PersonalAccessTokenUpdateOne
ClearLastUsedAt clears the value of the "last_used_at" field.
func (*PersonalAccessTokenUpdateOne) ClearOwner ¶
func (patuo *PersonalAccessTokenUpdateOne) ClearOwner() *PersonalAccessTokenUpdateOne
ClearOwner clears the "owner" edge to the User entity.
func (*PersonalAccessTokenUpdateOne) ClearUpdatedBy ¶
func (patuo *PersonalAccessTokenUpdateOne) ClearUpdatedBy() *PersonalAccessTokenUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*PersonalAccessTokenUpdateOne) Exec ¶
func (patuo *PersonalAccessTokenUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PersonalAccessTokenUpdateOne) ExecX ¶
func (patuo *PersonalAccessTokenUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonalAccessTokenUpdateOne) Mutation ¶
func (patuo *PersonalAccessTokenUpdateOne) Mutation() *PersonalAccessTokenMutation
Mutation returns the PersonalAccessTokenMutation object of the builder.
func (*PersonalAccessTokenUpdateOne) Save ¶
func (patuo *PersonalAccessTokenUpdateOne) Save(ctx context.Context) (*PersonalAccessToken, error)
Save executes the query and returns the updated PersonalAccessToken entity.
func (*PersonalAccessTokenUpdateOne) SaveX ¶
func (patuo *PersonalAccessTokenUpdateOne) SaveX(ctx context.Context) *PersonalAccessToken
SaveX is like Save, but panics if an error occurs.
func (*PersonalAccessTokenUpdateOne) Select ¶
func (patuo *PersonalAccessTokenUpdateOne) Select(field string, fields ...string) *PersonalAccessTokenUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*PersonalAccessTokenUpdateOne) SetAbilities ¶
func (patuo *PersonalAccessTokenUpdateOne) SetAbilities(s []string) *PersonalAccessTokenUpdateOne
SetAbilities sets the "abilities" field.
func (*PersonalAccessTokenUpdateOne) SetDescription ¶
func (patuo *PersonalAccessTokenUpdateOne) SetDescription(s string) *PersonalAccessTokenUpdateOne
SetDescription sets the "description" field.
func (*PersonalAccessTokenUpdateOne) SetExpiresAt ¶
func (patuo *PersonalAccessTokenUpdateOne) SetExpiresAt(t time.Time) *PersonalAccessTokenUpdateOne
SetExpiresAt sets the "expires_at" field.
func (*PersonalAccessTokenUpdateOne) SetInput ¶
func (c *PersonalAccessTokenUpdateOne) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdateOne
SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdateOne builder.
func (*PersonalAccessTokenUpdateOne) SetLastUsedAt ¶
func (patuo *PersonalAccessTokenUpdateOne) SetLastUsedAt(t time.Time) *PersonalAccessTokenUpdateOne
SetLastUsedAt sets the "last_used_at" field.
func (*PersonalAccessTokenUpdateOne) SetName ¶
func (patuo *PersonalAccessTokenUpdateOne) SetName(s string) *PersonalAccessTokenUpdateOne
SetName sets the "name" field.
func (*PersonalAccessTokenUpdateOne) SetNillableDescription ¶
func (patuo *PersonalAccessTokenUpdateOne) SetNillableDescription(s *string) *PersonalAccessTokenUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*PersonalAccessTokenUpdateOne) SetNillableExpiresAt ¶
func (patuo *PersonalAccessTokenUpdateOne) SetNillableExpiresAt(t *time.Time) *PersonalAccessTokenUpdateOne
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*PersonalAccessTokenUpdateOne) SetNillableName ¶
func (patuo *PersonalAccessTokenUpdateOne) SetNillableName(s *string) *PersonalAccessTokenUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*PersonalAccessTokenUpdateOne) SetNillableUpdatedBy ¶
func (patuo *PersonalAccessTokenUpdateOne) SetNillableUpdatedBy(s *string) *PersonalAccessTokenUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*PersonalAccessTokenUpdateOne) SetOwner ¶
func (patuo *PersonalAccessTokenUpdateOne) SetOwner(u *User) *PersonalAccessTokenUpdateOne
SetOwner sets the "owner" edge to the User entity.
func (*PersonalAccessTokenUpdateOne) SetOwnerID ¶
func (patuo *PersonalAccessTokenUpdateOne) SetOwnerID(id string) *PersonalAccessTokenUpdateOne
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*PersonalAccessTokenUpdateOne) SetUpdatedAt ¶
func (patuo *PersonalAccessTokenUpdateOne) SetUpdatedAt(t time.Time) *PersonalAccessTokenUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*PersonalAccessTokenUpdateOne) SetUpdatedBy ¶
func (patuo *PersonalAccessTokenUpdateOne) SetUpdatedBy(s string) *PersonalAccessTokenUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*PersonalAccessTokenUpdateOne) Where ¶
func (patuo *PersonalAccessTokenUpdateOne) Where(ps ...predicate.PersonalAccessToken) *PersonalAccessTokenUpdateOne
Where appends a list predicates to the PersonalAccessTokenUpdate builder.
type PersonalAccessTokenWhereInput ¶
type PersonalAccessTokenWhereInput struct { Predicates []predicate.PersonalAccessToken `json:"-"` Not *PersonalAccessTokenWhereInput `json:"not,omitempty"` Or []*PersonalAccessTokenWhereInput `json:"or,omitempty"` And []*PersonalAccessTokenWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "token" field predicates. Token *string `json:"token,omitempty"` TokenNEQ *string `json:"tokenNEQ,omitempty"` TokenIn []string `json:"tokenIn,omitempty"` TokenNotIn []string `json:"tokenNotIn,omitempty"` TokenGT *string `json:"tokenGT,omitempty"` TokenGTE *string `json:"tokenGTE,omitempty"` TokenLT *string `json:"tokenLT,omitempty"` TokenLTE *string `json:"tokenLTE,omitempty"` TokenContains *string `json:"tokenContains,omitempty"` TokenHasPrefix *string `json:"tokenHasPrefix,omitempty"` TokenHasSuffix *string `json:"tokenHasSuffix,omitempty"` TokenEqualFold *string `json:"tokenEqualFold,omitempty"` TokenContainsFold *string `json:"tokenContainsFold,omitempty"` // "expires_at" field predicates. ExpiresAt *time.Time `json:"expiresAt,omitempty"` ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` // "last_used_at" field predicates. LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` LastUsedAtNEQ *time.Time `json:"lastUsedAtNEQ,omitempty"` LastUsedAtIn []time.Time `json:"lastUsedAtIn,omitempty"` LastUsedAtNotIn []time.Time `json:"lastUsedAtNotIn,omitempty"` LastUsedAtGT *time.Time `json:"lastUsedAtGT,omitempty"` LastUsedAtGTE *time.Time `json:"lastUsedAtGTE,omitempty"` LastUsedAtLT *time.Time `json:"lastUsedAtLT,omitempty"` LastUsedAtLTE *time.Time `json:"lastUsedAtLTE,omitempty"` LastUsedAtIsNil bool `json:"lastUsedAtIsNil,omitempty"` LastUsedAtNotNil bool `json:"lastUsedAtNotNil,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"` }
PersonalAccessTokenWhereInput represents a where input for filtering PersonalAccessToken queries.
func (*PersonalAccessTokenWhereInput) AddPredicates ¶
func (i *PersonalAccessTokenWhereInput) AddPredicates(predicates ...predicate.PersonalAccessToken)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*PersonalAccessTokenWhereInput) Filter ¶
func (i *PersonalAccessTokenWhereInput) Filter(q *PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error)
Filter applies the PersonalAccessTokenWhereInput filter on the PersonalAccessTokenQuery builder.
func (*PersonalAccessTokenWhereInput) P ¶
func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, error)
P returns a predicate for filtering personalaccesstokens. An error is returned if the input is empty or invalid.
type PersonalAccessTokens ¶
type PersonalAccessTokens []*PersonalAccessToken
PersonalAccessTokens is a parsable slice of PersonalAccessToken.
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 SchemaConfig ¶
type SchemaConfig = internal.SchemaConfig
SchemaConfig represents alternative schema names for all tables that can be passed at runtime.
type Session ¶
type Session struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // token is a string token issued to users that has a limited lifetime SessionToken string `json:"session_token,omitempty"` // IssuedAt holds the value of the "issued_at" field. IssuedAt time.Time `json:"issued_at,omitempty"` // ExpiresAt holds the value of the "expires_at" field. ExpiresAt time.Time `json:"expires_at,omitempty"` // organization ID of the organization the user is accessing OrganizationID string `json:"organization_id,omitempty"` // the user the session is associated with UserID string `json:"user_id,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SessionQuery when eager-loading is set. Edges SessionEdges `json:"edges"` // contains filtered or unexported fields }
Session is the model entity for the Session schema.
func (*Session) IsNode ¶
func (n *Session) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*Session) QueryOwner ¶
QueryOwner queries the "owner" edge of the Session entity.
func (*Session) ToEdge ¶
func (s *Session) ToEdge(order *SessionOrder) *SessionEdge
ToEdge converts Session into SessionEdge.
func (*Session) Unwrap ¶
Unwrap unwraps the Session 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 (*Session) Update ¶
func (s *Session) Update() *SessionUpdateOne
Update returns a builder for updating this Session. Note that you need to call Session.Unwrap() before calling this method if this Session was returned from a transaction, and the transaction was committed or rolled back.
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient is a client for the Session schema.
func NewSessionClient ¶
func NewSessionClient(c config) *SessionClient
NewSessionClient returns a client for the Session from the given config.
func (*SessionClient) Create ¶
func (c *SessionClient) Create() *SessionCreate
Create returns a builder for creating a Session entity.
func (*SessionClient) CreateBulk ¶
func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
CreateBulk returns a builder for creating a bulk of Session entities.
func (*SessionClient) Delete ¶
func (c *SessionClient) Delete() *SessionDelete
Delete returns a delete builder for Session.
func (*SessionClient) DeleteOne ¶
func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SessionClient) DeleteOneID ¶
func (c *SessionClient) DeleteOneID(id string) *SessionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SessionClient) GetX ¶
func (c *SessionClient) GetX(ctx context.Context, id string) *Session
GetX is like Get, but panics if an error occurs.
func (*SessionClient) Hooks ¶
func (c *SessionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SessionClient) Intercept ¶
func (c *SessionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `session.Intercept(f(g(h())))`.
func (*SessionClient) Interceptors ¶
func (c *SessionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SessionClient) MapCreateBulk ¶
func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*SessionClient) Query ¶
func (c *SessionClient) Query() *SessionQuery
Query returns a query builder for Session.
func (*SessionClient) QueryOwner ¶
func (c *SessionClient) QueryOwner(s *Session) *UserQuery
QueryOwner queries the owner edge of a Session.
func (*SessionClient) Update ¶
func (c *SessionClient) Update() *SessionUpdate
Update returns an update builder for Session.
func (*SessionClient) UpdateOne ¶
func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SessionClient) UpdateOneID ¶
func (c *SessionClient) UpdateOneID(id string) *SessionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SessionClient) Use ¶
func (c *SessionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `session.Hooks(f(g(h())))`.
type SessionConnection ¶
type SessionConnection struct { Edges []*SessionEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
SessionConnection is the connection containing edges to Session.
type SessionCreate ¶
type SessionCreate struct {
// contains filtered or unexported fields
}
SessionCreate is the builder for creating a Session entity.
func (*SessionCreate) Exec ¶
func (sc *SessionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionCreate) ExecX ¶
func (sc *SessionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionCreate) Mutation ¶
func (sc *SessionCreate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionCreate) Save ¶
func (sc *SessionCreate) Save(ctx context.Context) (*Session, error)
Save creates the Session in the database.
func (*SessionCreate) SaveX ¶
func (sc *SessionCreate) SaveX(ctx context.Context) *Session
SaveX calls Save and panics if Save returns an error.
func (*SessionCreate) SetCreatedAt ¶
func (sc *SessionCreate) SetCreatedAt(t time.Time) *SessionCreate
SetCreatedAt sets the "created_at" field.
func (*SessionCreate) SetCreatedBy ¶
func (sc *SessionCreate) SetCreatedBy(s string) *SessionCreate
SetCreatedBy sets the "created_by" field.
func (*SessionCreate) SetExpiresAt ¶
func (sc *SessionCreate) SetExpiresAt(t time.Time) *SessionCreate
SetExpiresAt sets the "expires_at" field.
func (*SessionCreate) SetID ¶
func (sc *SessionCreate) SetID(s string) *SessionCreate
SetID sets the "id" field.
func (*SessionCreate) SetInput ¶
func (c *SessionCreate) SetInput(i CreateSessionInput) *SessionCreate
SetInput applies the change-set in the CreateSessionInput on the SessionCreate builder.
func (*SessionCreate) SetIssuedAt ¶
func (sc *SessionCreate) SetIssuedAt(t time.Time) *SessionCreate
SetIssuedAt sets the "issued_at" field.
func (*SessionCreate) SetNillableCreatedAt ¶
func (sc *SessionCreate) SetNillableCreatedAt(t *time.Time) *SessionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SessionCreate) SetNillableCreatedBy ¶
func (sc *SessionCreate) SetNillableCreatedBy(s *string) *SessionCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*SessionCreate) SetNillableID ¶
func (sc *SessionCreate) SetNillableID(s *string) *SessionCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SessionCreate) SetNillableUpdatedAt ¶
func (sc *SessionCreate) SetNillableUpdatedAt(t *time.Time) *SessionCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SessionCreate) SetNillableUpdatedBy ¶
func (sc *SessionCreate) SetNillableUpdatedBy(s *string) *SessionCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*SessionCreate) SetOrganizationID ¶
func (sc *SessionCreate) SetOrganizationID(s string) *SessionCreate
SetOrganizationID sets the "organization_id" field.
func (*SessionCreate) SetOwner ¶
func (sc *SessionCreate) SetOwner(u *User) *SessionCreate
SetOwner sets the "owner" edge to the User entity.
func (*SessionCreate) SetOwnerID ¶
func (sc *SessionCreate) SetOwnerID(id string) *SessionCreate
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*SessionCreate) SetSessionToken ¶
func (sc *SessionCreate) SetSessionToken(s string) *SessionCreate
SetSessionToken sets the "session_token" field.
func (*SessionCreate) SetUpdatedAt ¶
func (sc *SessionCreate) SetUpdatedAt(t time.Time) *SessionCreate
SetUpdatedAt sets the "updated_at" field.
func (*SessionCreate) SetUpdatedBy ¶
func (sc *SessionCreate) SetUpdatedBy(s string) *SessionCreate
SetUpdatedBy sets the "updated_by" field.
func (*SessionCreate) SetUserID ¶
func (sc *SessionCreate) SetUserID(s string) *SessionCreate
SetUserID sets the "user_id" field.
type SessionCreateBulk ¶
type SessionCreateBulk struct {
// contains filtered or unexported fields
}
SessionCreateBulk is the builder for creating many Session entities in bulk.
func (*SessionCreateBulk) Exec ¶
func (scb *SessionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionCreateBulk) ExecX ¶
func (scb *SessionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SessionDelete ¶
type SessionDelete struct {
// contains filtered or unexported fields
}
SessionDelete is the builder for deleting a Session entity.
func (*SessionDelete) Exec ¶
func (sd *SessionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SessionDelete) ExecX ¶
func (sd *SessionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SessionDelete) Where ¶
func (sd *SessionDelete) Where(ps ...predicate.Session) *SessionDelete
Where appends a list predicates to the SessionDelete builder.
type SessionDeleteOne ¶
type SessionDeleteOne struct {
// contains filtered or unexported fields
}
SessionDeleteOne is the builder for deleting a single Session entity.
func (*SessionDeleteOne) Exec ¶
func (sdo *SessionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SessionDeleteOne) ExecX ¶
func (sdo *SessionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionDeleteOne) Where ¶
func (sdo *SessionDeleteOne) Where(ps ...predicate.Session) *SessionDeleteOne
Where appends a list predicates to the SessionDelete builder.
type SessionEdge ¶
SessionEdge is the edge representation of Session.
type SessionEdges ¶
type SessionEdges struct { // Sessions belong to users Owner *User `json:"owner,omitempty"` // contains filtered or unexported fields }
SessionEdges holds the relations/edges for other nodes in the graph.
func (SessionEdges) OwnerOrErr ¶
func (e SessionEdges) OwnerOrErr() (*User, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SessionFilter ¶
type SessionFilter struct {
// contains filtered or unexported fields
}
SessionFilter provides a generic filtering capability at runtime for SessionQuery.
func (*SessionFilter) Where ¶
func (f *SessionFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*SessionFilter) WhereCreatedAt ¶
func (f *SessionFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*SessionFilter) WhereCreatedBy ¶
func (f *SessionFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*SessionFilter) WhereExpiresAt ¶
func (f *SessionFilter) WhereExpiresAt(p entql.TimeP)
WhereExpiresAt applies the entql time.Time predicate on the expires_at field.
func (*SessionFilter) WhereHasOwner ¶
func (f *SessionFilter) WhereHasOwner()
WhereHasOwner applies a predicate to check if query has an edge owner.
func (*SessionFilter) WhereHasOwnerWith ¶
func (f *SessionFilter) WhereHasOwnerWith(preds ...predicate.User)
WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).
func (*SessionFilter) WhereID ¶
func (f *SessionFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*SessionFilter) WhereIssuedAt ¶
func (f *SessionFilter) WhereIssuedAt(p entql.TimeP)
WhereIssuedAt applies the entql time.Time predicate on the issued_at field.
func (*SessionFilter) WhereOrganizationID ¶
func (f *SessionFilter) WhereOrganizationID(p entql.StringP)
WhereOrganizationID applies the entql string predicate on the organization_id field.
func (*SessionFilter) WhereSessionToken ¶
func (f *SessionFilter) WhereSessionToken(p entql.StringP)
WhereSessionToken applies the entql string predicate on the session_token field.
func (*SessionFilter) WhereUpdatedAt ¶
func (f *SessionFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*SessionFilter) WhereUpdatedBy ¶
func (f *SessionFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
func (*SessionFilter) WhereUserID ¶
func (f *SessionFilter) WhereUserID(p entql.StringP)
WhereUserID applies the entql string predicate on the user_id field.
type SessionGroupBy ¶
type SessionGroupBy struct {
// contains filtered or unexported fields
}
SessionGroupBy is the group-by builder for Session entities.
func (*SessionGroupBy) Aggregate ¶
func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SessionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Scan ¶
func (sgb *SessionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SessionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SessionMutation ¶
type SessionMutation struct {
// contains filtered or unexported fields
}
SessionMutation represents an operation that mutates the Session nodes in the graph.
func (*SessionMutation) AddField ¶
func (m *SessionMutation) 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 (*SessionMutation) AddedEdges ¶
func (m *SessionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SessionMutation) AddedField ¶
func (m *SessionMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was 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 (*SessionMutation) AddedFields ¶
func (m *SessionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SessionMutation) AddedIDs ¶
func (m *SessionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SessionMutation) ClearCreatedBy ¶
func (m *SessionMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*SessionMutation) ClearEdge ¶
func (m *SessionMutation) 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 (*SessionMutation) ClearField ¶
func (m *SessionMutation) 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 (*SessionMutation) ClearOwner ¶
func (m *SessionMutation) ClearOwner()
ClearOwner clears the "owner" edge to the User entity.
func (*SessionMutation) ClearUpdatedBy ¶
func (m *SessionMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*SessionMutation) ClearedEdges ¶
func (m *SessionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SessionMutation) ClearedFields ¶
func (m *SessionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SessionMutation) Client ¶
func (m SessionMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SessionMutation) CreatedAt ¶
func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SessionMutation) CreatedBy ¶
func (m *SessionMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*SessionMutation) CreatedByCleared ¶
func (m *SessionMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*SessionMutation) EdgeCleared ¶
func (m *SessionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SessionMutation) ExpiresAt ¶
func (m *SessionMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expires_at" field in the mutation.
func (*SessionMutation) Field ¶
func (m *SessionMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SessionMutation) FieldCleared ¶
func (m *SessionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SessionMutation) Fields ¶
func (m *SessionMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SessionMutation) Filter ¶
func (m *SessionMutation) Filter() *SessionFilter
Filter returns an entql.Where implementation to apply filters on the SessionMutation builder.
func (*SessionMutation) ID ¶
func (m *SessionMutation) ID() (id string, 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 (*SessionMutation) IDs ¶
func (m *SessionMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*SessionMutation) IssuedAt ¶
func (m *SessionMutation) IssuedAt() (r time.Time, exists bool)
IssuedAt returns the value of the "issued_at" field in the mutation.
func (*SessionMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldCreatedBy ¶
func (m *SessionMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldExpiresAt ¶
OldExpiresAt returns the old "expires_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SessionMutation) OldIssuedAt ¶
OldIssuedAt returns the old "issued_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldOrganizationID ¶
func (m *SessionMutation) OldOrganizationID(ctx context.Context) (v string, err error)
OldOrganizationID returns the old "organization_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldSessionToken ¶
func (m *SessionMutation) OldSessionToken(ctx context.Context) (v string, err error)
OldSessionToken returns the old "session_token" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUpdatedBy ¶
func (m *SessionMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUserID ¶
func (m *SessionMutation) OldUserID(ctx context.Context) (v string, err error)
OldUserID returns the old "user_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OrganizationID ¶
func (m *SessionMutation) OrganizationID() (r string, exists bool)
OrganizationID returns the value of the "organization_id" field in the mutation.
func (*SessionMutation) OwnerCleared ¶
func (m *SessionMutation) OwnerCleared() bool
OwnerCleared reports if the "owner" edge to the User entity was cleared.
func (*SessionMutation) OwnerID ¶
func (m *SessionMutation) OwnerID() (id string, exists bool)
OwnerID returns the "owner" edge ID in the mutation.
func (*SessionMutation) OwnerIDs ¶
func (m *SessionMutation) OwnerIDs() (ids []string)
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.
func (*SessionMutation) RemovedEdges ¶
func (m *SessionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SessionMutation) RemovedIDs ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetCreatedAt ¶
func (m *SessionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SessionMutation) ResetCreatedBy ¶
func (m *SessionMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*SessionMutation) ResetEdge ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetExpiresAt ¶
func (m *SessionMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expires_at" field.
func (*SessionMutation) ResetField ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetIssuedAt ¶
func (m *SessionMutation) ResetIssuedAt()
ResetIssuedAt resets all changes to the "issued_at" field.
func (*SessionMutation) ResetOrganizationID ¶
func (m *SessionMutation) ResetOrganizationID()
ResetOrganizationID resets all changes to the "organization_id" field.
func (*SessionMutation) ResetOwner ¶
func (m *SessionMutation) ResetOwner()
ResetOwner resets all changes to the "owner" edge.
func (*SessionMutation) ResetSessionToken ¶
func (m *SessionMutation) ResetSessionToken()
ResetSessionToken resets all changes to the "session_token" field.
func (*SessionMutation) ResetUpdatedAt ¶
func (m *SessionMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SessionMutation) ResetUpdatedBy ¶
func (m *SessionMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*SessionMutation) ResetUserID ¶
func (m *SessionMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*SessionMutation) SessionToken ¶
func (m *SessionMutation) SessionToken() (r string, exists bool)
SessionToken returns the value of the "session_token" field in the mutation.
func (*SessionMutation) SetCreatedAt ¶
func (m *SessionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SessionMutation) SetCreatedBy ¶
func (m *SessionMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*SessionMutation) SetExpiresAt ¶
func (m *SessionMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expires_at" field.
func (*SessionMutation) SetField ¶
func (m *SessionMutation) 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 (*SessionMutation) SetID ¶
func (m *SessionMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Session entities.
func (*SessionMutation) SetIssuedAt ¶
func (m *SessionMutation) SetIssuedAt(t time.Time)
SetIssuedAt sets the "issued_at" field.
func (*SessionMutation) SetOp ¶
func (m *SessionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SessionMutation) SetOrganizationID ¶
func (m *SessionMutation) SetOrganizationID(s string)
SetOrganizationID sets the "organization_id" field.
func (*SessionMutation) SetOwnerID ¶
func (m *SessionMutation) SetOwnerID(id string)
SetOwnerID sets the "owner" edge to the User entity by id.
func (*SessionMutation) SetSessionToken ¶
func (m *SessionMutation) SetSessionToken(s string)
SetSessionToken sets the "session_token" field.
func (*SessionMutation) SetUpdatedAt ¶
func (m *SessionMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SessionMutation) SetUpdatedBy ¶
func (m *SessionMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*SessionMutation) SetUserID ¶
func (m *SessionMutation) SetUserID(s string)
SetUserID sets the "user_id" field.
func (SessionMutation) Tx ¶
func (m SessionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SessionMutation) Type ¶
func (m *SessionMutation) Type() string
Type returns the node type of this mutation (Session).
func (*SessionMutation) UpdatedAt ¶
func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SessionMutation) UpdatedBy ¶
func (m *SessionMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*SessionMutation) UpdatedByCleared ¶
func (m *SessionMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*SessionMutation) UserID ¶
func (m *SessionMutation) UserID() (r string, exists bool)
UserID returns the value of the "user_id" field in the mutation.
func (*SessionMutation) Where ¶
func (m *SessionMutation) Where(ps ...predicate.Session)
Where appends a list predicates to the SessionMutation builder.
func (*SessionMutation) WhereP ¶
func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SessionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SessionOrder ¶
type SessionOrder struct { Direction OrderDirection `json:"direction"` Field *SessionOrderField `json:"field"` }
SessionOrder defines the ordering of Session.
type SessionOrderField ¶
type SessionOrderField struct { // Value extracts the ordering value from the given Session. Value func(*Session) (ent.Value, error) // contains filtered or unexported fields }
SessionOrderField defines the ordering field of Session.
type SessionPaginateOption ¶
type SessionPaginateOption func(*sessionPager) error
SessionPaginateOption enables pagination customization.
func WithSessionFilter ¶
func WithSessionFilter(filter func(*SessionQuery) (*SessionQuery, error)) SessionPaginateOption
WithSessionFilter configures pagination filter.
func WithSessionOrder ¶
func WithSessionOrder(order *SessionOrder) SessionPaginateOption
WithSessionOrder configures pagination ordering.
type SessionQuery ¶
type SessionQuery struct {
// contains filtered or unexported fields
}
SessionQuery is the builder for querying Session entities.
func (*SessionQuery) Aggregate ¶
func (sq *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect
Aggregate returns a SessionSelect configured with the given aggregations.
func (*SessionQuery) All ¶
func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error)
All executes the query and returns a list of Sessions.
func (*SessionQuery) AllX ¶
func (sq *SessionQuery) AllX(ctx context.Context) []*Session
AllX is like All, but panics if an error occurs.
func (*SessionQuery) Clone ¶
func (sq *SessionQuery) Clone() *SessionQuery
Clone returns a duplicate of the SessionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SessionQuery) CollectFields ¶
func (s *SessionQuery) CollectFields(ctx context.Context, satisfies ...string) (*SessionQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*SessionQuery) Count ¶
func (sq *SessionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SessionQuery) CountX ¶
func (sq *SessionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SessionQuery) Exist ¶
func (sq *SessionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SessionQuery) ExistX ¶
func (sq *SessionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SessionQuery) Filter ¶
func (sq *SessionQuery) Filter() *SessionFilter
Filter returns a Filter implementation to apply filters on the SessionQuery builder.
func (*SessionQuery) First ¶
func (sq *SessionQuery) First(ctx context.Context) (*Session, error)
First returns the first Session entity from the query. Returns a *NotFoundError when no Session was found.
func (*SessionQuery) FirstID ¶
func (sq *SessionQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Session ID from the query. Returns a *NotFoundError when no Session ID was found.
func (*SessionQuery) FirstIDX ¶
func (sq *SessionQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SessionQuery) FirstX ¶
func (sq *SessionQuery) FirstX(ctx context.Context) *Session
FirstX is like First, but panics if an error occurs.
func (*SessionQuery) GroupBy ¶
func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
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.Session.Query(). GroupBy(session.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*SessionQuery) IDs ¶
func (sq *SessionQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Session IDs.
func (*SessionQuery) IDsX ¶
func (sq *SessionQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SessionQuery) Limit ¶
func (sq *SessionQuery) Limit(limit int) *SessionQuery
Limit the number of records to be returned by this query.
func (*SessionQuery) Offset ¶
func (sq *SessionQuery) Offset(offset int) *SessionQuery
Offset to start from.
func (*SessionQuery) Only ¶
func (sq *SessionQuery) Only(ctx context.Context) (*Session, error)
Only returns a single Session entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Session entity is found. Returns a *NotFoundError when no Session entities are found.
func (*SessionQuery) OnlyID ¶
func (sq *SessionQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Session ID in the query. Returns a *NotSingularError when more than one Session ID is found. Returns a *NotFoundError when no entities are found.
func (*SessionQuery) OnlyIDX ¶
func (sq *SessionQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SessionQuery) OnlyX ¶
func (sq *SessionQuery) OnlyX(ctx context.Context) *Session
OnlyX is like Only, but panics if an error occurs.
func (*SessionQuery) Order ¶
func (sq *SessionQuery) Order(o ...session.OrderOption) *SessionQuery
Order specifies how the records should be ordered.
func (*SessionQuery) Paginate ¶
func (s *SessionQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...SessionPaginateOption, ) (*SessionConnection, error)
Paginate executes the query and returns a relay based cursor connection to Session.
func (*SessionQuery) QueryOwner ¶
func (sq *SessionQuery) QueryOwner() *UserQuery
QueryOwner chains the current query on the "owner" edge.
func (*SessionQuery) Select ¶
func (sq *SessionQuery) Select(fields ...string) *SessionSelect
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.Session.Query(). Select(session.FieldCreatedAt). Scan(ctx, &v)
func (*SessionQuery) Unique ¶
func (sq *SessionQuery) Unique(unique bool) *SessionQuery
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 (*SessionQuery) Where ¶
func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
Where adds a new predicate for the SessionQuery builder.
func (*SessionQuery) WithOwner ¶
func (sq *SessionQuery) WithOwner(opts ...func(*UserQuery)) *SessionQuery
WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
type SessionSelect ¶
type SessionSelect struct { *SessionQuery // contains filtered or unexported fields }
SessionSelect is the builder for selecting fields of Session entities.
func (*SessionSelect) Aggregate ¶
func (ss *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SessionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Scan ¶
func (ss *SessionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SessionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SessionUpdate ¶
type SessionUpdate struct {
// contains filtered or unexported fields
}
SessionUpdate is the builder for updating Session entities.
func (*SessionUpdate) ClearOwner ¶
func (su *SessionUpdate) ClearOwner() *SessionUpdate
ClearOwner clears the "owner" edge to the User entity.
func (*SessionUpdate) ClearUpdatedBy ¶
func (su *SessionUpdate) ClearUpdatedBy() *SessionUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*SessionUpdate) Exec ¶
func (su *SessionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionUpdate) ExecX ¶
func (su *SessionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdate) Mutation ¶
func (su *SessionUpdate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdate) Save ¶
func (su *SessionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SessionUpdate) SaveX ¶
func (su *SessionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdate) SetExpiresAt ¶
func (su *SessionUpdate) SetExpiresAt(t time.Time) *SessionUpdate
SetExpiresAt sets the "expires_at" field.
func (*SessionUpdate) SetInput ¶
func (c *SessionUpdate) SetInput(i UpdateSessionInput) *SessionUpdate
SetInput applies the change-set in the UpdateSessionInput on the SessionUpdate builder.
func (*SessionUpdate) SetIssuedAt ¶
func (su *SessionUpdate) SetIssuedAt(t time.Time) *SessionUpdate
SetIssuedAt sets the "issued_at" field.
func (*SessionUpdate) SetNillableExpiresAt ¶
func (su *SessionUpdate) SetNillableExpiresAt(t *time.Time) *SessionUpdate
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*SessionUpdate) SetNillableOrganizationID ¶
func (su *SessionUpdate) SetNillableOrganizationID(s *string) *SessionUpdate
SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.
func (*SessionUpdate) SetNillableUpdatedBy ¶
func (su *SessionUpdate) SetNillableUpdatedBy(s *string) *SessionUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*SessionUpdate) SetNillableUserID ¶
func (su *SessionUpdate) SetNillableUserID(s *string) *SessionUpdate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*SessionUpdate) SetOrganizationID ¶
func (su *SessionUpdate) SetOrganizationID(s string) *SessionUpdate
SetOrganizationID sets the "organization_id" field.
func (*SessionUpdate) SetOwner ¶
func (su *SessionUpdate) SetOwner(u *User) *SessionUpdate
SetOwner sets the "owner" edge to the User entity.
func (*SessionUpdate) SetOwnerID ¶
func (su *SessionUpdate) SetOwnerID(id string) *SessionUpdate
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*SessionUpdate) SetUpdatedAt ¶
func (su *SessionUpdate) SetUpdatedAt(t time.Time) *SessionUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpdate) SetUpdatedBy ¶
func (su *SessionUpdate) SetUpdatedBy(s string) *SessionUpdate
SetUpdatedBy sets the "updated_by" field.
func (*SessionUpdate) SetUserID ¶
func (su *SessionUpdate) SetUserID(s string) *SessionUpdate
SetUserID sets the "user_id" field.
func (*SessionUpdate) Where ¶
func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
Where appends a list predicates to the SessionUpdate builder.
type SessionUpdateOne ¶
type SessionUpdateOne struct {
// contains filtered or unexported fields
}
SessionUpdateOne is the builder for updating a single Session entity.
func (*SessionUpdateOne) ClearOwner ¶
func (suo *SessionUpdateOne) ClearOwner() *SessionUpdateOne
ClearOwner clears the "owner" edge to the User entity.
func (*SessionUpdateOne) ClearUpdatedBy ¶
func (suo *SessionUpdateOne) ClearUpdatedBy() *SessionUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*SessionUpdateOne) Exec ¶
func (suo *SessionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SessionUpdateOne) ExecX ¶
func (suo *SessionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdateOne) Mutation ¶
func (suo *SessionUpdateOne) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdateOne) Save ¶
func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
Save executes the query and returns the updated Session entity.
func (*SessionUpdateOne) SaveX ¶
func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdateOne) Select ¶
func (suo *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SessionUpdateOne) SetExpiresAt ¶
func (suo *SessionUpdateOne) SetExpiresAt(t time.Time) *SessionUpdateOne
SetExpiresAt sets the "expires_at" field.
func (*SessionUpdateOne) SetInput ¶
func (c *SessionUpdateOne) SetInput(i UpdateSessionInput) *SessionUpdateOne
SetInput applies the change-set in the UpdateSessionInput on the SessionUpdateOne builder.
func (*SessionUpdateOne) SetIssuedAt ¶
func (suo *SessionUpdateOne) SetIssuedAt(t time.Time) *SessionUpdateOne
SetIssuedAt sets the "issued_at" field.
func (*SessionUpdateOne) SetNillableExpiresAt ¶
func (suo *SessionUpdateOne) SetNillableExpiresAt(t *time.Time) *SessionUpdateOne
SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableOrganizationID ¶
func (suo *SessionUpdateOne) SetNillableOrganizationID(s *string) *SessionUpdateOne
SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableUpdatedBy ¶
func (suo *SessionUpdateOne) SetNillableUpdatedBy(s *string) *SessionUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableUserID ¶
func (suo *SessionUpdateOne) SetNillableUserID(s *string) *SessionUpdateOne
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*SessionUpdateOne) SetOrganizationID ¶
func (suo *SessionUpdateOne) SetOrganizationID(s string) *SessionUpdateOne
SetOrganizationID sets the "organization_id" field.
func (*SessionUpdateOne) SetOwner ¶
func (suo *SessionUpdateOne) SetOwner(u *User) *SessionUpdateOne
SetOwner sets the "owner" edge to the User entity.
func (*SessionUpdateOne) SetOwnerID ¶
func (suo *SessionUpdateOne) SetOwnerID(id string) *SessionUpdateOne
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*SessionUpdateOne) SetUpdatedAt ¶
func (suo *SessionUpdateOne) SetUpdatedAt(t time.Time) *SessionUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpdateOne) SetUpdatedBy ¶
func (suo *SessionUpdateOne) SetUpdatedBy(s string) *SessionUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*SessionUpdateOne) SetUserID ¶
func (suo *SessionUpdateOne) SetUserID(s string) *SessionUpdateOne
SetUserID sets the "user_id" field.
func (*SessionUpdateOne) Where ¶
func (suo *SessionUpdateOne) Where(ps ...predicate.Session) *SessionUpdateOne
Where appends a list predicates to the SessionUpdate builder.
type SessionWhereInput ¶
type SessionWhereInput struct { Predicates []predicate.Session `json:"-"` Not *SessionWhereInput `json:"not,omitempty"` Or []*SessionWhereInput `json:"or,omitempty"` And []*SessionWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` // "session_token" field predicates. SessionToken *string `json:"sessionToken,omitempty"` SessionTokenNEQ *string `json:"sessionTokenNEQ,omitempty"` SessionTokenIn []string `json:"sessionTokenIn,omitempty"` SessionTokenNotIn []string `json:"sessionTokenNotIn,omitempty"` SessionTokenGT *string `json:"sessionTokenGT,omitempty"` SessionTokenGTE *string `json:"sessionTokenGTE,omitempty"` SessionTokenLT *string `json:"sessionTokenLT,omitempty"` SessionTokenLTE *string `json:"sessionTokenLTE,omitempty"` SessionTokenContains *string `json:"sessionTokenContains,omitempty"` SessionTokenHasPrefix *string `json:"sessionTokenHasPrefix,omitempty"` SessionTokenHasSuffix *string `json:"sessionTokenHasSuffix,omitempty"` SessionTokenEqualFold *string `json:"sessionTokenEqualFold,omitempty"` SessionTokenContainsFold *string `json:"sessionTokenContainsFold,omitempty"` // "issued_at" field predicates. IssuedAt *time.Time `json:"issuedAt,omitempty"` IssuedAtNEQ *time.Time `json:"issuedAtNEQ,omitempty"` IssuedAtIn []time.Time `json:"issuedAtIn,omitempty"` IssuedAtNotIn []time.Time `json:"issuedAtNotIn,omitempty"` IssuedAtGT *time.Time `json:"issuedAtGT,omitempty"` IssuedAtGTE *time.Time `json:"issuedAtGTE,omitempty"` IssuedAtLT *time.Time `json:"issuedAtLT,omitempty"` IssuedAtLTE *time.Time `json:"issuedAtLTE,omitempty"` // "expires_at" field predicates. ExpiresAt *time.Time `json:"expiresAt,omitempty"` ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` // "organization_id" field predicates. OrganizationID *string `json:"organizationID,omitempty"` OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` OrganizationIDIn []string `json:"organizationIDIn,omitempty"` OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` OrganizationIDGT *string `json:"organizationIDGT,omitempty"` OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` OrganizationIDLT *string `json:"organizationIDLT,omitempty"` OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` OrganizationIDContains *string `json:"organizationIDContains,omitempty"` OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` // "user_id" field predicates. UserID *string `json:"userID,omitempty"` UserIDNEQ *string `json:"userIDNEQ,omitempty"` UserIDIn []string `json:"userIDIn,omitempty"` UserIDNotIn []string `json:"userIDNotIn,omitempty"` UserIDGT *string `json:"userIDGT,omitempty"` UserIDGTE *string `json:"userIDGTE,omitempty"` UserIDLT *string `json:"userIDLT,omitempty"` UserIDLTE *string `json:"userIDLTE,omitempty"` UserIDContains *string `json:"userIDContains,omitempty"` UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"` }
SessionWhereInput represents a where input for filtering Session queries.
func (*SessionWhereInput) AddPredicates ¶
func (i *SessionWhereInput) AddPredicates(predicates ...predicate.Session)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*SessionWhereInput) Filter ¶
func (i *SessionWhereInput) Filter(q *SessionQuery) (*SessionQuery, error)
Filter applies the SessionWhereInput filter on the SessionQuery builder.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // Entitlement is the client for interacting with the Entitlement builders. Entitlement *EntitlementClient // Group is the client for interacting with the Group builders. Group *GroupClient // GroupSetting is the client for interacting with the GroupSetting builders. GroupSetting *GroupSettingClient // Integration is the client for interacting with the Integration builders. Integration *IntegrationClient // OauthProvider is the client for interacting with the OauthProvider builders. OauthProvider *OauthProviderClient // OhAuthTooToken is the client for interacting with the OhAuthTooToken builders. OhAuthTooToken *OhAuthTooTokenClient // Organization is the client for interacting with the Organization builders. Organization *OrganizationClient // OrganizationSetting is the client for interacting with the OrganizationSetting builders. OrganizationSetting *OrganizationSettingClient // PersonalAccessToken is the client for interacting with the PersonalAccessToken builders. PersonalAccessToken *PersonalAccessTokenClient // Session is the client for interacting with the Session builders. Session *SessionClient // User is the client for interacting with the User builders. User *UserClient // UserSetting is the client for interacting with the UserSetting builders. UserSetting *UserSettingClient // 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 UpdateEntitlementInput ¶
type UpdateEntitlementInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Tier *entitlement.Tier ClearExternalCustomerID bool ExternalCustomerID *string ClearExternalSubscriptionID bool ExternalSubscriptionID *string Expires *bool ClearExpiresAt bool ExpiresAt *time.Time Cancelled *bool ClearOwner bool OwnerID *string }
UpdateEntitlementInput represents a mutation input for updating entitlements.
func (*UpdateEntitlementInput) Mutate ¶
func (i *UpdateEntitlementInput) Mutate(m *EntitlementMutation)
Mutate applies the UpdateEntitlementInput on the EntitlementMutation builder.
type UpdateGroupInput ¶
type UpdateGroupInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Name *string ClearDescription bool Description *string ClearGravatarLogoURL bool GravatarLogoURL *string ClearLogoURL bool LogoURL *string DisplayName *string SettingID *string ClearUsers bool AddUserIDs []string RemoveUserIDs []string OwnerID *string }
UpdateGroupInput represents a mutation input for updating groups.
func (*UpdateGroupInput) Mutate ¶
func (i *UpdateGroupInput) Mutate(m *GroupMutation)
Mutate applies the UpdateGroupInput on the GroupMutation builder.
type UpdateGroupSettingInput ¶
type UpdateGroupSettingInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Visibility *groupsetting.Visibility JoinPolicy *groupsetting.JoinPolicy Tags []string AppendTags []string SyncToSlack *bool SyncToGithub *bool ClearGroup bool GroupID *string }
UpdateGroupSettingInput represents a mutation input for updating groupsettings.
func (*UpdateGroupSettingInput) Mutate ¶
func (i *UpdateGroupSettingInput) Mutate(m *GroupSettingMutation)
Mutate applies the UpdateGroupSettingInput on the GroupSettingMutation builder.
type UpdateIntegrationInput ¶
type UpdateIntegrationInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Name *string ClearDescription bool Description *string ClearKind bool Kind *string ClearOwner bool OwnerID *string }
UpdateIntegrationInput represents a mutation input for updating integrations.
func (*UpdateIntegrationInput) Mutate ¶
func (i *UpdateIntegrationInput) Mutate(m *IntegrationMutation)
Mutate applies the UpdateIntegrationInput on the IntegrationMutation builder.
type UpdateOauthProviderInput ¶
type UpdateOauthProviderInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Name *string ClientID *string ClientSecret *string RedirectURL *string Scopes *string AuthURL *string TokenURL *string AuthStyle *uint8 InfoURL *string ClearOwner bool OwnerID *string }
UpdateOauthProviderInput represents a mutation input for updating oauthproviders.
func (*UpdateOauthProviderInput) Mutate ¶
func (i *UpdateOauthProviderInput) Mutate(m *OauthProviderMutation)
Mutate applies the UpdateOauthProviderInput on the OauthProviderMutation builder.
type UpdateOhAuthTooTokenInput ¶
type UpdateOhAuthTooTokenInput struct { ClientID *string ClearScopes bool Scopes []string AppendScopes []string Nonce *string ClaimsUserID *string ClaimsUsername *string ClaimsEmail *string ClaimsEmailVerified *bool ClearClaimsGroups bool ClaimsGroups []string AppendClaimsGroups []string ClaimsPreferredUsername *string ConnectorID *string ClearConnectorData bool ConnectorData []string AppendConnectorData []string LastUsed *time.Time }
UpdateOhAuthTooTokenInput represents a mutation input for updating ohauthtootokens.
func (*UpdateOhAuthTooTokenInput) Mutate ¶
func (i *UpdateOhAuthTooTokenInput) Mutate(m *OhAuthTooTokenMutation)
Mutate applies the UpdateOhAuthTooTokenInput on the OhAuthTooTokenMutation builder.
type UpdateOrganizationInput ¶
type UpdateOrganizationInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Name *string DisplayName *string ClearDescription bool Description *string ClearUsers bool AddUserIDs []string RemoveUserIDs []string ClearGroups bool AddGroupIDs []string RemoveGroupIDs []string ClearIntegrations bool AddIntegrationIDs []string RemoveIntegrationIDs []string ClearSetting bool SettingID *string ClearEntitlements bool AddEntitlementIDs []string RemoveEntitlementIDs []string ClearOauthprovider bool AddOauthproviderIDs []string RemoveOauthproviderIDs []string }
UpdateOrganizationInput represents a mutation input for updating organizations.
func (*UpdateOrganizationInput) Mutate ¶
func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation)
Mutate applies the UpdateOrganizationInput on the OrganizationMutation builder.
type UpdateOrganizationSettingInput ¶
type UpdateOrganizationSettingInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string ClearDomains bool Domains []string AppendDomains []string ClearSSOCert bool SSOCert *string ClearSSOEntrypoint bool SSOEntrypoint *string ClearSSOIssuer bool SSOIssuer *string ClearBillingContact bool BillingContact *string ClearBillingEmail bool BillingEmail *string ClearBillingPhone bool BillingPhone *string ClearBillingAddress bool BillingAddress *string ClearTaxIdentifier bool TaxIdentifier *string ClearTags bool Tags []string AppendTags []string ClearOrganization bool OrganizationID *string }
UpdateOrganizationSettingInput represents a mutation input for updating organizationsettings.
func (*UpdateOrganizationSettingInput) Mutate ¶
func (i *UpdateOrganizationSettingInput) Mutate(m *OrganizationSettingMutation)
Mutate applies the UpdateOrganizationSettingInput on the OrganizationSettingMutation builder.
type UpdatePersonalAccessTokenInput ¶
type UpdatePersonalAccessTokenInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Name *string ClearAbilities bool Abilities []string AppendAbilities []string ExpiresAt *time.Time ClearDescription bool Description *string ClearLastUsedAt bool LastUsedAt *time.Time OwnerID *string }
UpdatePersonalAccessTokenInput represents a mutation input for updating personalaccesstokens.
func (*UpdatePersonalAccessTokenInput) Mutate ¶
func (i *UpdatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation)
Mutate applies the UpdatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder.
type UpdateSessionInput ¶
type UpdateSessionInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string IssuedAt *time.Time ExpiresAt *time.Time OrganizationID *string OwnerID *string }
UpdateSessionInput represents a mutation input for updating sessions.
func (*UpdateSessionInput) Mutate ¶
func (i *UpdateSessionInput) Mutate(m *SessionMutation)
Mutate applies the UpdateSessionInput on the SessionMutation builder.
type UpdateUserInput ¶
type UpdateUserInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Email *string FirstName *string LastName *string DisplayName *string ClearAvatarRemoteURL bool AvatarRemoteURL *string ClearAvatarLocalFile bool AvatarLocalFile *string ClearAvatarUpdatedAt bool AvatarUpdatedAt *time.Time ClearLastSeen bool LastSeen *time.Time ClearPassword bool Password *string ClearSub bool Sub *string Oauth *bool ClearOrganizations bool AddOrganizationIDs []string RemoveOrganizationIDs []string ClearSessions bool AddSessionIDs []string RemoveSessionIDs []string ClearGroups bool AddGroupIDs []string RemoveGroupIDs []string ClearPersonalAccessTokens bool AddPersonalAccessTokenIDs []string RemovePersonalAccessTokenIDs []string SettingID *string }
UpdateUserInput represents a mutation input for updating users.
func (*UpdateUserInput) Mutate ¶
func (i *UpdateUserInput) Mutate(m *UserMutation)
Mutate applies the UpdateUserInput on the UserMutation builder.
type UpdateUserSettingInput ¶
type UpdateUserSettingInput struct { UpdatedAt *time.Time ClearUpdatedBy bool UpdatedBy *string Locked *bool ClearSilencedAt bool SilencedAt *time.Time ClearSuspendedAt bool SuspendedAt *time.Time ClearRecoveryCode bool RecoveryCode *string Status *usersetting.Status Role *usersetting.Role Permissions []string AppendPermissions []string EmailConfirmed *bool Tags []string AppendTags []string ClearUser bool UserID *string }
UpdateUserSettingInput represents a mutation input for updating usersettings.
func (*UpdateUserSettingInput) Mutate ¶
func (i *UpdateUserSettingInput) Mutate(m *UserSettingMutation)
Mutate applies the UpdateUserSettingInput on the UserSettingMutation builder.
type User ¶
type User struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // FirstName holds the value of the "first_name" field. FirstName string `json:"first_name,omitempty"` // LastName holds the value of the "last_name" field. LastName string `json:"last_name,omitempty"` // The user's displayed 'friendly' name DisplayName string `json:"display_name,omitempty"` // URL of the user's remote avatar AvatarRemoteURL *string `json:"avatar_remote_url,omitempty"` // The user's local avatar file AvatarLocalFile *string `json:"avatar_local_file,omitempty"` // The time the user's (local) avatar was last updated AvatarUpdatedAt *time.Time `json:"avatar_updated_at,omitempty"` // the time the user was last seen LastSeen *time.Time `json:"last_seen,omitempty"` // user password hash Password *string `json:"password,omitempty"` // the Subject of the user JWT Sub string `json:"sub,omitempty"` // whether the user uses oauth for login or not Oauth bool `json:"oauth,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserQuery when eager-loading is set. Edges UserEdges `json:"edges"` // contains filtered or unexported fields }
User is the model entity for the User schema.
func (*User) IsNode ¶
func (n *User) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*User) NamedGroups ¶
NamedGroups returns the Groups named value or an error if the edge was not loaded in eager-loading with this name.
func (*User) NamedOrganizations ¶
func (u *User) NamedOrganizations(name string) ([]*Organization, error)
NamedOrganizations returns the Organizations named value or an error if the edge was not loaded in eager-loading with this name.
func (*User) NamedPersonalAccessTokens ¶
func (u *User) NamedPersonalAccessTokens(name string) ([]*PersonalAccessToken, error)
NamedPersonalAccessTokens returns the PersonalAccessTokens named value or an error if the edge was not loaded in eager-loading with this name.
func (*User) NamedSessions ¶
NamedSessions returns the Sessions named value or an error if the edge was not loaded in eager-loading with this name.
func (*User) Organizations ¶
func (u *User) Organizations(ctx context.Context) (result []*Organization, err error)
func (*User) PersonalAccessTokens ¶
func (u *User) PersonalAccessTokens(ctx context.Context) (result []*PersonalAccessToken, err error)
func (*User) QueryGroups ¶
func (u *User) QueryGroups() *GroupQuery
QueryGroups queries the "groups" edge of the User entity.
func (*User) QueryOrganizations ¶
func (u *User) QueryOrganizations() *OrganizationQuery
QueryOrganizations queries the "organizations" edge of the User entity.
func (*User) QueryPersonalAccessTokens ¶
func (u *User) QueryPersonalAccessTokens() *PersonalAccessTokenQuery
QueryPersonalAccessTokens queries the "personal_access_tokens" edge of the User entity.
func (*User) QuerySessions ¶
func (u *User) QuerySessions() *SessionQuery
QuerySessions queries the "sessions" edge of the User entity.
func (*User) QuerySetting ¶
func (u *User) QuerySetting() *UserSettingQuery
QuerySetting queries the "setting" 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 string) *UserDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserClient) GetX ¶
func (c *UserClient) GetX(ctx context.Context, id string) *User
GetX is like Get, but panics if an error occurs.
func (*UserClient) Intercept ¶
func (c *UserClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (*UserClient) Interceptors ¶
func (c *UserClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserClient) MapCreateBulk ¶
func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) QueryGroups ¶
func (c *UserClient) QueryGroups(u *User) *GroupQuery
QueryGroups queries the groups edge of a User.
func (*UserClient) QueryOrganizations ¶
func (c *UserClient) QueryOrganizations(u *User) *OrganizationQuery
QueryOrganizations queries the organizations edge of a User.
func (*UserClient) QueryPersonalAccessTokens ¶
func (c *UserClient) QueryPersonalAccessTokens(u *User) *PersonalAccessTokenQuery
QueryPersonalAccessTokens queries the personal_access_tokens edge of a User.
func (*UserClient) QuerySessions ¶
func (c *UserClient) QuerySessions(u *User) *SessionQuery
QuerySessions queries the sessions edge of a User.
func (*UserClient) QuerySetting ¶
func (c *UserClient) QuerySetting(u *User) *UserSettingQuery
QuerySetting queries the setting edge of a User.
func (*UserClient) Update ¶
func (c *UserClient) Update() *UserUpdate
Update returns an update builder for User.
func (*UserClient) UpdateOne ¶
func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserClient) UpdateOneID ¶
func (c *UserClient) UpdateOneID(id string) *UserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserClient) Use ¶
func (c *UserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.
type 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) AddGroupIDs ¶
func (uc *UserCreate) AddGroupIDs(ids ...string) *UserCreate
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
func (*UserCreate) AddGroups ¶
func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate
AddGroups adds the "groups" edges to the Group entity.
func (*UserCreate) AddOrganizationIDs ¶
func (uc *UserCreate) AddOrganizationIDs(ids ...string) *UserCreate
AddOrganizationIDs adds the "organizations" edge to the Organization entity by IDs.
func (*UserCreate) AddOrganizations ¶
func (uc *UserCreate) AddOrganizations(o ...*Organization) *UserCreate
AddOrganizations adds the "organizations" edges to the Organization entity.
func (*UserCreate) AddPersonalAccessTokenIDs ¶
func (uc *UserCreate) AddPersonalAccessTokenIDs(ids ...string) *UserCreate
AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.
func (*UserCreate) AddPersonalAccessTokens ¶
func (uc *UserCreate) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserCreate
AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity.
func (*UserCreate) AddSessionIDs ¶
func (uc *UserCreate) AddSessionIDs(ids ...string) *UserCreate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*UserCreate) AddSessions ¶
func (uc *UserCreate) AddSessions(s ...*Session) *UserCreate
AddSessions adds the "sessions" edges to the Session 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) SetAvatarLocalFile ¶
func (uc *UserCreate) SetAvatarLocalFile(s string) *UserCreate
SetAvatarLocalFile sets the "avatar_local_file" field.
func (*UserCreate) SetAvatarRemoteURL ¶
func (uc *UserCreate) SetAvatarRemoteURL(s string) *UserCreate
SetAvatarRemoteURL sets the "avatar_remote_url" field.
func (*UserCreate) SetAvatarUpdatedAt ¶
func (uc *UserCreate) SetAvatarUpdatedAt(t time.Time) *UserCreate
SetAvatarUpdatedAt sets the "avatar_updated_at" field.
func (*UserCreate) SetCreatedAt ¶
func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
SetCreatedAt sets the "created_at" field.
func (*UserCreate) SetCreatedBy ¶
func (uc *UserCreate) SetCreatedBy(s string) *UserCreate
SetCreatedBy sets the "created_by" field.
func (*UserCreate) SetDeletedAt ¶
func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate
SetDeletedAt sets the "deleted_at" field.
func (*UserCreate) SetDeletedBy ¶
func (uc *UserCreate) SetDeletedBy(s string) *UserCreate
SetDeletedBy sets the "deleted_by" field.
func (*UserCreate) SetDisplayName ¶
func (uc *UserCreate) SetDisplayName(s string) *UserCreate
SetDisplayName sets the "display_name" 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 "first_name" field.
func (*UserCreate) SetID ¶
func (uc *UserCreate) SetID(s string) *UserCreate
SetID sets the "id" field.
func (*UserCreate) SetInput ¶
func (c *UserCreate) SetInput(i CreateUserInput) *UserCreate
SetInput applies the change-set in the CreateUserInput on the UserCreate builder.
func (*UserCreate) SetLastName ¶
func (uc *UserCreate) SetLastName(s string) *UserCreate
SetLastName sets the "last_name" field.
func (*UserCreate) SetLastSeen ¶
func (uc *UserCreate) SetLastSeen(t time.Time) *UserCreate
SetLastSeen sets the "last_seen" field.
func (*UserCreate) SetNillableAvatarLocalFile ¶
func (uc *UserCreate) SetNillableAvatarLocalFile(s *string) *UserCreate
SetNillableAvatarLocalFile sets the "avatar_local_file" field if the given value is not nil.
func (*UserCreate) SetNillableAvatarRemoteURL ¶
func (uc *UserCreate) SetNillableAvatarRemoteURL(s *string) *UserCreate
SetNillableAvatarRemoteURL sets the "avatar_remote_url" field if the given value is not nil.
func (*UserCreate) SetNillableAvatarUpdatedAt ¶
func (uc *UserCreate) SetNillableAvatarUpdatedAt(t *time.Time) *UserCreate
SetNillableAvatarUpdatedAt sets the "avatar_updated_at" 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) SetNillableCreatedBy ¶
func (uc *UserCreate) SetNillableCreatedBy(s *string) *UserCreate
SetNillableCreatedBy sets the "created_by" 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) SetNillableDeletedBy ¶
func (uc *UserCreate) SetNillableDeletedBy(s *string) *UserCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*UserCreate) SetNillableDisplayName ¶
func (uc *UserCreate) SetNillableDisplayName(s *string) *UserCreate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*UserCreate) SetNillableID ¶
func (uc *UserCreate) SetNillableID(s *string) *UserCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*UserCreate) SetNillableLastSeen ¶
func (uc *UserCreate) SetNillableLastSeen(t *time.Time) *UserCreate
SetNillableLastSeen sets the "last_seen" field if the given value is not nil.
func (*UserCreate) SetNillableOauth ¶
func (uc *UserCreate) SetNillableOauth(b *bool) *UserCreate
SetNillableOauth sets the "oauth" field if the given value is not nil.
func (*UserCreate) SetNillablePassword ¶
func (uc *UserCreate) SetNillablePassword(s *string) *UserCreate
SetNillablePassword sets the "password" field if the given value is not nil.
func (*UserCreate) SetNillableSub ¶
func (uc *UserCreate) SetNillableSub(s *string) *UserCreate
SetNillableSub sets the "sub" 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) SetNillableUpdatedBy ¶
func (uc *UserCreate) SetNillableUpdatedBy(s *string) *UserCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*UserCreate) SetOauth ¶
func (uc *UserCreate) SetOauth(b bool) *UserCreate
SetOauth sets the "oauth" field.
func (*UserCreate) SetPassword ¶
func (uc *UserCreate) SetPassword(s string) *UserCreate
SetPassword sets the "password" field.
func (*UserCreate) SetSetting ¶
func (uc *UserCreate) SetSetting(u *UserSetting) *UserCreate
SetSetting sets the "setting" edge to the UserSetting entity.
func (*UserCreate) SetSettingID ¶
func (uc *UserCreate) SetSettingID(id string) *UserCreate
SetSettingID sets the "setting" edge to the UserSetting entity by ID.
func (*UserCreate) SetSub ¶
func (uc *UserCreate) SetSub(s string) *UserCreate
SetSub sets the "sub" field.
func (*UserCreate) SetUpdatedAt ¶
func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
SetUpdatedAt sets the "updated_at" field.
func (*UserCreate) SetUpdatedBy ¶
func (uc *UserCreate) SetUpdatedBy(s string) *UserCreate
SetUpdatedBy sets the "updated_by" 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 { // Organizations holds the value of the organizations edge. Organizations []*Organization `json:"organizations,omitempty"` // Sessions holds the value of the sessions edge. Sessions []*Session `json:"sessions,omitempty"` // Groups holds the value of the groups edge. Groups []*Group `json:"groups,omitempty"` // PersonalAccessTokens holds the value of the personal_access_tokens edge. PersonalAccessTokens []*PersonalAccessToken `json:"personal_access_tokens,omitempty"` // Setting holds the value of the setting edge. Setting *UserSetting `json:"setting,omitempty"` // contains filtered or unexported fields }
UserEdges holds the relations/edges for other nodes in the graph.
func (UserEdges) GroupsOrErr ¶
GroupsOrErr returns the Groups value or an error if the edge was not loaded in eager-loading.
func (UserEdges) OrganizationsOrErr ¶
func (e UserEdges) OrganizationsOrErr() ([]*Organization, error)
OrganizationsOrErr returns the Organizations value or an error if the edge was not loaded in eager-loading.
func (UserEdges) PersonalAccessTokensOrErr ¶
func (e UserEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, error)
PersonalAccessTokensOrErr returns the PersonalAccessTokens value or an error if the edge was not loaded in eager-loading.
func (UserEdges) SessionsOrErr ¶
SessionsOrErr returns the Sessions value or an error if the edge was not loaded in eager-loading.
func (UserEdges) SettingOrErr ¶
func (e UserEdges) SettingOrErr() (*UserSetting, error)
SettingOrErr returns the Setting value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserFilter ¶
type UserFilter struct {
// contains filtered or unexported fields
}
UserFilter provides a generic filtering capability at runtime for UserQuery.
func (*UserFilter) Where ¶
func (f *UserFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*UserFilter) WhereAvatarLocalFile ¶
func (f *UserFilter) WhereAvatarLocalFile(p entql.StringP)
WhereAvatarLocalFile applies the entql string predicate on the avatar_local_file field.
func (*UserFilter) WhereAvatarRemoteURL ¶
func (f *UserFilter) WhereAvatarRemoteURL(p entql.StringP)
WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field.
func (*UserFilter) WhereAvatarUpdatedAt ¶
func (f *UserFilter) WhereAvatarUpdatedAt(p entql.TimeP)
WhereAvatarUpdatedAt applies the entql time.Time predicate on the avatar_updated_at field.
func (*UserFilter) WhereCreatedAt ¶
func (f *UserFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*UserFilter) WhereCreatedBy ¶
func (f *UserFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*UserFilter) WhereDeletedAt ¶
func (f *UserFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*UserFilter) WhereDeletedBy ¶
func (f *UserFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*UserFilter) WhereDisplayName ¶
func (f *UserFilter) WhereDisplayName(p entql.StringP)
WhereDisplayName applies the entql string predicate on the display_name field.
func (*UserFilter) WhereEmail ¶
func (f *UserFilter) WhereEmail(p entql.StringP)
WhereEmail applies the entql string predicate on the email field.
func (*UserFilter) WhereFirstName ¶
func (f *UserFilter) WhereFirstName(p entql.StringP)
WhereFirstName applies the entql string predicate on the first_name field.
func (*UserFilter) WhereHasGroups ¶
func (f *UserFilter) WhereHasGroups()
WhereHasGroups applies a predicate to check if query has an edge groups.
func (*UserFilter) WhereHasGroupsWith ¶
func (f *UserFilter) WhereHasGroupsWith(preds ...predicate.Group)
WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates).
func (*UserFilter) WhereHasOrganizations ¶
func (f *UserFilter) WhereHasOrganizations()
WhereHasOrganizations applies a predicate to check if query has an edge organizations.
func (*UserFilter) WhereHasOrganizationsWith ¶
func (f *UserFilter) WhereHasOrganizationsWith(preds ...predicate.Organization)
WhereHasOrganizationsWith applies a predicate to check if query has an edge organizations with a given conditions (other predicates).
func (*UserFilter) WhereHasPersonalAccessTokens ¶
func (f *UserFilter) WhereHasPersonalAccessTokens()
WhereHasPersonalAccessTokens applies a predicate to check if query has an edge personal_access_tokens.
func (*UserFilter) WhereHasPersonalAccessTokensWith ¶
func (f *UserFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken)
WhereHasPersonalAccessTokensWith applies a predicate to check if query has an edge personal_access_tokens with a given conditions (other predicates).
func (*UserFilter) WhereHasSessions ¶
func (f *UserFilter) WhereHasSessions()
WhereHasSessions applies a predicate to check if query has an edge sessions.
func (*UserFilter) WhereHasSessionsWith ¶
func (f *UserFilter) WhereHasSessionsWith(preds ...predicate.Session)
WhereHasSessionsWith applies a predicate to check if query has an edge sessions with a given conditions (other predicates).
func (*UserFilter) WhereHasSetting ¶
func (f *UserFilter) WhereHasSetting()
WhereHasSetting applies a predicate to check if query has an edge setting.
func (*UserFilter) WhereHasSettingWith ¶
func (f *UserFilter) WhereHasSettingWith(preds ...predicate.UserSetting)
WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates).
func (*UserFilter) WhereID ¶
func (f *UserFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*UserFilter) WhereLastName ¶
func (f *UserFilter) WhereLastName(p entql.StringP)
WhereLastName applies the entql string predicate on the last_name field.
func (*UserFilter) WhereLastSeen ¶
func (f *UserFilter) WhereLastSeen(p entql.TimeP)
WhereLastSeen applies the entql time.Time predicate on the last_seen field.
func (*UserFilter) WhereOauth ¶
func (f *UserFilter) WhereOauth(p entql.BoolP)
WhereOauth applies the entql bool predicate on the oauth field.
func (*UserFilter) WherePassword ¶
func (f *UserFilter) WherePassword(p entql.StringP)
WherePassword applies the entql string predicate on the password field.
func (*UserFilter) WhereSub ¶
func (f *UserFilter) WhereSub(p entql.StringP)
WhereSub applies the entql string predicate on the sub field.
func (*UserFilter) WhereUpdatedAt ¶
func (f *UserFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*UserFilter) WhereUpdatedBy ¶
func (f *UserFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
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) 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) AddGroupIDs ¶
func (m *UserMutation) AddGroupIDs(ids ...string)
AddGroupIDs adds the "groups" edge to the Group entity by ids.
func (*UserMutation) AddOrganizationIDs ¶
func (m *UserMutation) AddOrganizationIDs(ids ...string)
AddOrganizationIDs adds the "organizations" edge to the Organization entity by ids.
func (*UserMutation) AddPersonalAccessTokenIDs ¶
func (m *UserMutation) AddPersonalAccessTokenIDs(ids ...string)
AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by ids.
func (*UserMutation) AddSessionIDs ¶
func (m *UserMutation) AddSessionIDs(ids ...string)
AddSessionIDs adds the "sessions" edge to the Session 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) AvatarLocalFile ¶
func (m *UserMutation) AvatarLocalFile() (r string, exists bool)
AvatarLocalFile returns the value of the "avatar_local_file" field in the mutation.
func (*UserMutation) AvatarLocalFileCleared ¶
func (m *UserMutation) AvatarLocalFileCleared() bool
AvatarLocalFileCleared returns if the "avatar_local_file" field was cleared in this mutation.
func (*UserMutation) AvatarRemoteURL ¶
func (m *UserMutation) AvatarRemoteURL() (r string, exists bool)
AvatarRemoteURL returns the value of the "avatar_remote_url" field in the mutation.
func (*UserMutation) AvatarRemoteURLCleared ¶
func (m *UserMutation) AvatarRemoteURLCleared() bool
AvatarRemoteURLCleared returns if the "avatar_remote_url" field was cleared in this mutation.
func (*UserMutation) AvatarUpdatedAt ¶
func (m *UserMutation) AvatarUpdatedAt() (r time.Time, exists bool)
AvatarUpdatedAt returns the value of the "avatar_updated_at" field in the mutation.
func (*UserMutation) AvatarUpdatedAtCleared ¶
func (m *UserMutation) AvatarUpdatedAtCleared() bool
AvatarUpdatedAtCleared returns if the "avatar_updated_at" field was cleared in this mutation.
func (*UserMutation) ClearAvatarLocalFile ¶
func (m *UserMutation) ClearAvatarLocalFile()
ClearAvatarLocalFile clears the value of the "avatar_local_file" field.
func (*UserMutation) ClearAvatarRemoteURL ¶
func (m *UserMutation) ClearAvatarRemoteURL()
ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field.
func (*UserMutation) ClearAvatarUpdatedAt ¶
func (m *UserMutation) ClearAvatarUpdatedAt()
ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field.
func (*UserMutation) ClearCreatedBy ¶
func (m *UserMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*UserMutation) ClearDeletedAt ¶
func (m *UserMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserMutation) ClearDeletedBy ¶
func (m *UserMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" 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) ClearGroups ¶
func (m *UserMutation) ClearGroups()
ClearGroups clears the "groups" edge to the Group entity.
func (*UserMutation) ClearLastSeen ¶
func (m *UserMutation) ClearLastSeen()
ClearLastSeen clears the value of the "last_seen" field.
func (*UserMutation) ClearOrganizations ¶
func (m *UserMutation) ClearOrganizations()
ClearOrganizations clears the "organizations" edge to the Organization entity.
func (*UserMutation) ClearPassword ¶
func (m *UserMutation) ClearPassword()
ClearPassword clears the value of the "password" field.
func (*UserMutation) ClearPersonalAccessTokens ¶
func (m *UserMutation) ClearPersonalAccessTokens()
ClearPersonalAccessTokens clears the "personal_access_tokens" edge to the PersonalAccessToken entity.
func (*UserMutation) ClearSessions ¶
func (m *UserMutation) ClearSessions()
ClearSessions clears the "sessions" edge to the Session entity.
func (*UserMutation) ClearSetting ¶
func (m *UserMutation) ClearSetting()
ClearSetting clears the "setting" edge to the UserSetting entity.
func (*UserMutation) ClearSub ¶
func (m *UserMutation) ClearSub()
ClearSub clears the value of the "sub" field.
func (*UserMutation) ClearUpdatedBy ¶
func (m *UserMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" 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) CreatedAt ¶
func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*UserMutation) CreatedBy ¶
func (m *UserMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*UserMutation) CreatedByCleared ¶
func (m *UserMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this 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) DeletedBy ¶
func (m *UserMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*UserMutation) DeletedByCleared ¶
func (m *UserMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*UserMutation) DisplayName ¶
func (m *UserMutation) DisplayName() (r string, exists bool)
DisplayName returns the value of the "display_name" field in the 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) Filter ¶
func (m *UserMutation) Filter() *UserFilter
Filter returns an entql.Where implementation to apply filters on the UserMutation builder.
func (*UserMutation) FirstName ¶
func (m *UserMutation) FirstName() (r string, exists bool)
FirstName returns the value of the "first_name" field in the mutation.
func (*UserMutation) GroupsCleared ¶
func (m *UserMutation) GroupsCleared() bool
GroupsCleared reports if the "groups" edge to the Group entity was cleared.
func (*UserMutation) GroupsIDs ¶
func (m *UserMutation) GroupsIDs() (ids []string)
GroupsIDs returns the "groups" edge IDs in the mutation.
func (*UserMutation) ID ¶
func (m *UserMutation) ID() (id string, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserMutation) IDs ¶
func (m *UserMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserMutation) LastName ¶
func (m *UserMutation) LastName() (r string, exists bool)
LastName returns the value of the "last_name" field in the mutation.
func (*UserMutation) LastSeen ¶
func (m *UserMutation) LastSeen() (r time.Time, exists bool)
LastSeen returns the value of the "last_seen" field in the mutation.
func (*UserMutation) LastSeenCleared ¶
func (m *UserMutation) LastSeenCleared() bool
LastSeenCleared returns if the "last_seen" field was cleared in this mutation.
func (*UserMutation) Oauth ¶
func (m *UserMutation) Oauth() (r bool, exists bool)
Oauth returns the value of the "oauth" field in the mutation.
func (*UserMutation) OldAvatarLocalFile ¶
func (m *UserMutation) OldAvatarLocalFile(ctx context.Context) (v *string, err error)
OldAvatarLocalFile returns the old "avatar_local_file" 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) OldAvatarRemoteURL ¶
func (m *UserMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error)
OldAvatarRemoteURL returns the old "avatar_remote_url" 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) OldAvatarUpdatedAt ¶
OldAvatarUpdatedAt returns the old "avatar_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) 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) OldCreatedBy ¶
func (m *UserMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" 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) OldDeletedBy ¶
func (m *UserMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" 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) OldDisplayName ¶
func (m *UserMutation) OldDisplayName(ctx context.Context) (v string, err error)
OldDisplayName returns the old "display_name" 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 "first_name" 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) OldLastName ¶
func (m *UserMutation) OldLastName(ctx context.Context) (v string, err error)
OldLastName returns the old "last_name" 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) OldLastSeen ¶
OldLastSeen returns the old "last_seen" 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) OldOauth ¶
func (m *UserMutation) OldOauth(ctx context.Context) (v bool, err error)
OldOauth returns the old "oauth" 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) OldPassword ¶
func (m *UserMutation) OldPassword(ctx context.Context) (v *string, err error)
OldPassword returns the old "password" 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) OldSub ¶
func (m *UserMutation) OldSub(ctx context.Context) (v string, err error)
OldSub returns the old "sub" 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) OldUpdatedBy ¶
func (m *UserMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" 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) OrganizationsCleared ¶
func (m *UserMutation) OrganizationsCleared() bool
OrganizationsCleared reports if the "organizations" edge to the Organization entity was cleared.
func (*UserMutation) OrganizationsIDs ¶
func (m *UserMutation) OrganizationsIDs() (ids []string)
OrganizationsIDs returns the "organizations" edge IDs in the mutation.
func (*UserMutation) Password ¶
func (m *UserMutation) Password() (r string, exists bool)
Password returns the value of the "password" field in the mutation.
func (*UserMutation) PasswordCleared ¶
func (m *UserMutation) PasswordCleared() bool
PasswordCleared returns if the "password" field was cleared in this mutation.
func (*UserMutation) PersonalAccessTokensCleared ¶
func (m *UserMutation) PersonalAccessTokensCleared() bool
PersonalAccessTokensCleared reports if the "personal_access_tokens" edge to the PersonalAccessToken entity was cleared.
func (*UserMutation) PersonalAccessTokensIDs ¶
func (m *UserMutation) PersonalAccessTokensIDs() (ids []string)
PersonalAccessTokensIDs returns the "personal_access_tokens" edge IDs in the mutation.
func (*UserMutation) RemoveGroupIDs ¶
func (m *UserMutation) RemoveGroupIDs(ids ...string)
RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.
func (*UserMutation) RemoveOrganizationIDs ¶
func (m *UserMutation) RemoveOrganizationIDs(ids ...string)
RemoveOrganizationIDs removes the "organizations" edge to the Organization entity by IDs.
func (*UserMutation) RemovePersonalAccessTokenIDs ¶
func (m *UserMutation) RemovePersonalAccessTokenIDs(ids ...string)
RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.
func (*UserMutation) RemoveSessionIDs ¶
func (m *UserMutation) RemoveSessionIDs(ids ...string)
RemoveSessionIDs removes the "sessions" edge to the Session entity by IDs.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedGroupsIDs ¶
func (m *UserMutation) RemovedGroupsIDs() (ids []string)
RemovedGroups returns the removed IDs of the "groups" edge to the Group entity.
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) RemovedOrganizationsIDs ¶
func (m *UserMutation) RemovedOrganizationsIDs() (ids []string)
RemovedOrganizations returns the removed IDs of the "organizations" edge to the Organization entity.
func (*UserMutation) RemovedPersonalAccessTokensIDs ¶
func (m *UserMutation) RemovedPersonalAccessTokensIDs() (ids []string)
RemovedPersonalAccessTokens returns the removed IDs of the "personal_access_tokens" edge to the PersonalAccessToken entity.
func (*UserMutation) RemovedSessionsIDs ¶
func (m *UserMutation) RemovedSessionsIDs() (ids []string)
RemovedSessions returns the removed IDs of the "sessions" edge to the Session entity.
func (*UserMutation) ResetAvatarLocalFile ¶
func (m *UserMutation) ResetAvatarLocalFile()
ResetAvatarLocalFile resets all changes to the "avatar_local_file" field.
func (*UserMutation) ResetAvatarRemoteURL ¶
func (m *UserMutation) ResetAvatarRemoteURL()
ResetAvatarRemoteURL resets all changes to the "avatar_remote_url" field.
func (*UserMutation) ResetAvatarUpdatedAt ¶
func (m *UserMutation) ResetAvatarUpdatedAt()
ResetAvatarUpdatedAt resets all changes to the "avatar_updated_at" field.
func (*UserMutation) ResetCreatedAt ¶
func (m *UserMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*UserMutation) ResetCreatedBy ¶
func (m *UserMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*UserMutation) ResetDeletedAt ¶
func (m *UserMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*UserMutation) ResetDeletedBy ¶
func (m *UserMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*UserMutation) ResetDisplayName ¶
func (m *UserMutation) ResetDisplayName()
ResetDisplayName resets all changes to the "display_name" 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 "first_name" field.
func (*UserMutation) ResetGroups ¶
func (m *UserMutation) ResetGroups()
ResetGroups resets all changes to the "groups" edge.
func (*UserMutation) ResetLastName ¶
func (m *UserMutation) ResetLastName()
ResetLastName resets all changes to the "last_name" field.
func (*UserMutation) ResetLastSeen ¶
func (m *UserMutation) ResetLastSeen()
ResetLastSeen resets all changes to the "last_seen" field.
func (*UserMutation) ResetOauth ¶
func (m *UserMutation) ResetOauth()
ResetOauth resets all changes to the "oauth" field.
func (*UserMutation) ResetOrganizations ¶
func (m *UserMutation) ResetOrganizations()
ResetOrganizations resets all changes to the "organizations" edge.
func (*UserMutation) ResetPassword ¶
func (m *UserMutation) ResetPassword()
ResetPassword resets all changes to the "password" field.
func (*UserMutation) ResetPersonalAccessTokens ¶
func (m *UserMutation) ResetPersonalAccessTokens()
ResetPersonalAccessTokens resets all changes to the "personal_access_tokens" edge.
func (*UserMutation) ResetSessions ¶
func (m *UserMutation) ResetSessions()
ResetSessions resets all changes to the "sessions" edge.
func (*UserMutation) ResetSetting ¶
func (m *UserMutation) ResetSetting()
ResetSetting resets all changes to the "setting" edge.
func (*UserMutation) ResetSub ¶
func (m *UserMutation) ResetSub()
ResetSub resets all changes to the "sub" field.
func (*UserMutation) ResetUpdatedAt ¶
func (m *UserMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*UserMutation) ResetUpdatedBy ¶
func (m *UserMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*UserMutation) SessionsCleared ¶
func (m *UserMutation) SessionsCleared() bool
SessionsCleared reports if the "sessions" edge to the Session entity was cleared.
func (*UserMutation) SessionsIDs ¶
func (m *UserMutation) SessionsIDs() (ids []string)
SessionsIDs returns the "sessions" edge IDs in the mutation.
func (*UserMutation) SetAvatarLocalFile ¶
func (m *UserMutation) SetAvatarLocalFile(s string)
SetAvatarLocalFile sets the "avatar_local_file" field.
func (*UserMutation) SetAvatarRemoteURL ¶
func (m *UserMutation) SetAvatarRemoteURL(s string)
SetAvatarRemoteURL sets the "avatar_remote_url" field.
func (*UserMutation) SetAvatarUpdatedAt ¶
func (m *UserMutation) SetAvatarUpdatedAt(t time.Time)
SetAvatarUpdatedAt sets the "avatar_updated_at" field.
func (*UserMutation) SetCreatedAt ¶
func (m *UserMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*UserMutation) SetCreatedBy ¶
func (m *UserMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*UserMutation) SetDeletedAt ¶
func (m *UserMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*UserMutation) SetDeletedBy ¶
func (m *UserMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*UserMutation) SetDisplayName ¶
func (m *UserMutation) SetDisplayName(s string)
SetDisplayName sets the "display_name" 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 "first_name" field.
func (*UserMutation) SetID ¶
func (m *UserMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.
func (*UserMutation) SetLastName ¶
func (m *UserMutation) SetLastName(s string)
SetLastName sets the "last_name" field.
func (*UserMutation) SetLastSeen ¶
func (m *UserMutation) SetLastSeen(t time.Time)
SetLastSeen sets the "last_seen" field.
func (*UserMutation) SetOauth ¶
func (m *UserMutation) SetOauth(b bool)
SetOauth sets the "oauth" field.
func (*UserMutation) SetOp ¶
func (m *UserMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserMutation) SetPassword ¶
func (m *UserMutation) SetPassword(s string)
SetPassword sets the "password" field.
func (*UserMutation) SetSettingID ¶
func (m *UserMutation) SetSettingID(id string)
SetSettingID sets the "setting" edge to the UserSetting entity by id.
func (*UserMutation) SetUpdatedAt ¶
func (m *UserMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*UserMutation) SetUpdatedBy ¶
func (m *UserMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*UserMutation) SettingCleared ¶
func (m *UserMutation) SettingCleared() bool
SettingCleared reports if the "setting" edge to the UserSetting entity was cleared.
func (*UserMutation) SettingID ¶
func (m *UserMutation) SettingID() (id string, exists bool)
SettingID returns the "setting" edge ID in the mutation.
func (*UserMutation) SettingIDs ¶
func (m *UserMutation) SettingIDs() (ids []string)
SettingIDs returns the "setting" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SettingID instead. It exists only for internal usage by the builders.
func (*UserMutation) Sub ¶
func (m *UserMutation) Sub() (r string, exists bool)
Sub returns the value of the "sub" field in the mutation.
func (*UserMutation) SubCleared ¶
func (m *UserMutation) SubCleared() bool
SubCleared returns if the "sub" 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) UpdatedBy ¶
func (m *UserMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*UserMutation) UpdatedByCleared ¶
func (m *UserMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this 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) Filter ¶
func (uq *UserQuery) Filter() *UserFilter
Filter returns a Filter implementation to apply filters on the UserQuery builder.
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(generated.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) QueryGroups ¶
func (uq *UserQuery) QueryGroups() *GroupQuery
QueryGroups chains the current query on the "groups" edge.
func (*UserQuery) QueryOrganizations ¶
func (uq *UserQuery) QueryOrganizations() *OrganizationQuery
QueryOrganizations chains the current query on the "organizations" edge.
func (*UserQuery) QueryPersonalAccessTokens ¶
func (uq *UserQuery) QueryPersonalAccessTokens() *PersonalAccessTokenQuery
QueryPersonalAccessTokens chains the current query on the "personal_access_tokens" edge.
func (*UserQuery) QuerySessions ¶
func (uq *UserQuery) QuerySessions() *SessionQuery
QuerySessions chains the current query on the "sessions" edge.
func (*UserQuery) QuerySetting ¶
func (uq *UserQuery) QuerySetting() *UserSettingQuery
QuerySetting chains the current query on the "setting" 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) WithGroups ¶
func (uq *UserQuery) WithGroups(opts ...func(*GroupQuery)) *UserQuery
WithGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNamedGroups ¶
func (uq *UserQuery) WithNamedGroups(name string, opts ...func(*GroupQuery)) *UserQuery
WithNamedGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNamedOrganizations ¶
func (uq *UserQuery) WithNamedOrganizations(name string, opts ...func(*OrganizationQuery)) *UserQuery
WithNamedOrganizations tells the query-builder to eager-load the nodes that are connected to the "organizations" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNamedPersonalAccessTokens ¶
func (uq *UserQuery) WithNamedPersonalAccessTokens(name string, opts ...func(*PersonalAccessTokenQuery)) *UserQuery
WithNamedPersonalAccessTokens tells the query-builder to eager-load the nodes that are connected to the "personal_access_tokens" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNamedSessions ¶
func (uq *UserQuery) WithNamedSessions(name string, opts ...func(*SessionQuery)) *UserQuery
WithNamedSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge with the given name. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithOrganizations ¶
func (uq *UserQuery) WithOrganizations(opts ...func(*OrganizationQuery)) *UserQuery
WithOrganizations tells the query-builder to eager-load the nodes that are connected to the "organizations" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithPersonalAccessTokens ¶
func (uq *UserQuery) WithPersonalAccessTokens(opts ...func(*PersonalAccessTokenQuery)) *UserQuery
WithPersonalAccessTokens tells the query-builder to eager-load the nodes that are connected to the "personal_access_tokens" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithSessions ¶
func (uq *UserQuery) WithSessions(opts ...func(*SessionQuery)) *UserQuery
WithSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithSetting ¶
func (uq *UserQuery) WithSetting(opts ...func(*UserSettingQuery)) *UserQuery
WithSetting tells the query-builder to eager-load the nodes that are connected to the "setting" edge. 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 UserSetting ¶
type UserSetting struct { // ID of the ent. ID string `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"` // CreatedBy holds the value of the "created_by" field. CreatedBy string `json:"created_by,omitempty"` // UpdatedBy holds the value of the "updated_by" field. UpdatedBy string `json:"updated_by,omitempty"` // DeletedAt holds the value of the "deleted_at" field. DeletedAt time.Time `json:"deleted_at,omitempty"` // DeletedBy holds the value of the "deleted_by" field. DeletedBy string `json:"deleted_by,omitempty"` // user account is locked if unconfirmed or explicitly locked Locked bool `json:"locked,omitempty"` // The time notifications regarding the user were silenced SilencedAt *time.Time `json:"silenced_at,omitempty"` // The time the user was suspended SuspendedAt *time.Time `json:"suspended_at,omitempty"` // local user password recovery code generated during account creation - does not exist for oauth'd users RecoveryCode *string `json:"-"` // Status holds the value of the "status" field. Status usersetting.Status `json:"status,omitempty"` // Role holds the value of the "role" field. Role usersetting.Role `json:"role,omitempty"` // Permissions holds the value of the "permissions" field. Permissions []string `json:"permissions,omitempty"` // EmailConfirmed holds the value of the "email_confirmed" field. EmailConfirmed bool `json:"email_confirmed,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserSettingQuery when eager-loading is set. Edges UserSettingEdges `json:"edges"` // contains filtered or unexported fields }
UserSetting is the model entity for the UserSetting schema.
func (*UserSetting) IsNode ¶
func (n *UserSetting) IsNode()
IsNode implements the Node interface check for GQLGen.
func (*UserSetting) QueryUser ¶
func (us *UserSetting) QueryUser() *UserQuery
QueryUser queries the "user" edge of the UserSetting entity.
func (*UserSetting) String ¶
func (us *UserSetting) String() string
String implements the fmt.Stringer.
func (*UserSetting) ToEdge ¶
func (us *UserSetting) ToEdge(order *UserSettingOrder) *UserSettingEdge
ToEdge converts UserSetting into UserSettingEdge.
func (*UserSetting) Unwrap ¶
func (us *UserSetting) Unwrap() *UserSetting
Unwrap unwraps the UserSetting 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 (*UserSetting) Update ¶
func (us *UserSetting) Update() *UserSettingUpdateOne
Update returns a builder for updating this UserSetting. Note that you need to call UserSetting.Unwrap() before calling this method if this UserSetting was returned from a transaction, and the transaction was committed or rolled back.
type UserSettingClient ¶
type UserSettingClient struct {
// contains filtered or unexported fields
}
UserSettingClient is a client for the UserSetting schema.
func NewUserSettingClient ¶
func NewUserSettingClient(c config) *UserSettingClient
NewUserSettingClient returns a client for the UserSetting from the given config.
func (*UserSettingClient) Create ¶
func (c *UserSettingClient) Create() *UserSettingCreate
Create returns a builder for creating a UserSetting entity.
func (*UserSettingClient) CreateBulk ¶
func (c *UserSettingClient) CreateBulk(builders ...*UserSettingCreate) *UserSettingCreateBulk
CreateBulk returns a builder for creating a bulk of UserSetting entities.
func (*UserSettingClient) Delete ¶
func (c *UserSettingClient) Delete() *UserSettingDelete
Delete returns a delete builder for UserSetting.
func (*UserSettingClient) DeleteOne ¶
func (c *UserSettingClient) DeleteOne(us *UserSetting) *UserSettingDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserSettingClient) DeleteOneID ¶
func (c *UserSettingClient) DeleteOneID(id string) *UserSettingDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserSettingClient) Get ¶
func (c *UserSettingClient) Get(ctx context.Context, id string) (*UserSetting, error)
Get returns a UserSetting entity by its id.
func (*UserSettingClient) GetX ¶
func (c *UserSettingClient) GetX(ctx context.Context, id string) *UserSetting
GetX is like Get, but panics if an error occurs.
func (*UserSettingClient) Hooks ¶
func (c *UserSettingClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserSettingClient) Intercept ¶
func (c *UserSettingClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usersetting.Intercept(f(g(h())))`.
func (*UserSettingClient) Interceptors ¶
func (c *UserSettingClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserSettingClient) MapCreateBulk ¶
func (c *UserSettingClient) MapCreateBulk(slice any, setFunc func(*UserSettingCreate, int)) *UserSettingCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*UserSettingClient) Query ¶
func (c *UserSettingClient) Query() *UserSettingQuery
Query returns a query builder for UserSetting.
func (*UserSettingClient) QueryUser ¶
func (c *UserSettingClient) QueryUser(us *UserSetting) *UserQuery
QueryUser queries the user edge of a UserSetting.
func (*UserSettingClient) Update ¶
func (c *UserSettingClient) Update() *UserSettingUpdate
Update returns an update builder for UserSetting.
func (*UserSettingClient) UpdateOne ¶
func (c *UserSettingClient) UpdateOne(us *UserSetting) *UserSettingUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserSettingClient) UpdateOneID ¶
func (c *UserSettingClient) UpdateOneID(id string) *UserSettingUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserSettingClient) Use ¶
func (c *UserSettingClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usersetting.Hooks(f(g(h())))`.
type UserSettingConnection ¶
type UserSettingConnection struct { Edges []*UserSettingEdge `json:"edges"` PageInfo PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
UserSettingConnection is the connection containing edges to UserSetting.
type UserSettingCreate ¶
type UserSettingCreate struct {
// contains filtered or unexported fields
}
UserSettingCreate is the builder for creating a UserSetting entity.
func (*UserSettingCreate) Exec ¶
func (usc *UserSettingCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserSettingCreate) ExecX ¶
func (usc *UserSettingCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserSettingCreate) Mutation ¶
func (usc *UserSettingCreate) Mutation() *UserSettingMutation
Mutation returns the UserSettingMutation object of the builder.
func (*UserSettingCreate) Save ¶
func (usc *UserSettingCreate) Save(ctx context.Context) (*UserSetting, error)
Save creates the UserSetting in the database.
func (*UserSettingCreate) SaveX ¶
func (usc *UserSettingCreate) SaveX(ctx context.Context) *UserSetting
SaveX calls Save and panics if Save returns an error.
func (*UserSettingCreate) SetCreatedAt ¶
func (usc *UserSettingCreate) SetCreatedAt(t time.Time) *UserSettingCreate
SetCreatedAt sets the "created_at" field.
func (*UserSettingCreate) SetCreatedBy ¶
func (usc *UserSettingCreate) SetCreatedBy(s string) *UserSettingCreate
SetCreatedBy sets the "created_by" field.
func (*UserSettingCreate) SetDeletedAt ¶
func (usc *UserSettingCreate) SetDeletedAt(t time.Time) *UserSettingCreate
SetDeletedAt sets the "deleted_at" field.
func (*UserSettingCreate) SetDeletedBy ¶
func (usc *UserSettingCreate) SetDeletedBy(s string) *UserSettingCreate
SetDeletedBy sets the "deleted_by" field.
func (*UserSettingCreate) SetEmailConfirmed ¶
func (usc *UserSettingCreate) SetEmailConfirmed(b bool) *UserSettingCreate
SetEmailConfirmed sets the "email_confirmed" field.
func (*UserSettingCreate) SetID ¶
func (usc *UserSettingCreate) SetID(s string) *UserSettingCreate
SetID sets the "id" field.
func (*UserSettingCreate) SetInput ¶
func (c *UserSettingCreate) SetInput(i CreateUserSettingInput) *UserSettingCreate
SetInput applies the change-set in the CreateUserSettingInput on the UserSettingCreate builder.
func (*UserSettingCreate) SetLocked ¶
func (usc *UserSettingCreate) SetLocked(b bool) *UserSettingCreate
SetLocked sets the "locked" field.
func (*UserSettingCreate) SetNillableCreatedAt ¶
func (usc *UserSettingCreate) SetNillableCreatedAt(t *time.Time) *UserSettingCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UserSettingCreate) SetNillableCreatedBy ¶
func (usc *UserSettingCreate) SetNillableCreatedBy(s *string) *UserSettingCreate
SetNillableCreatedBy sets the "created_by" field if the given value is not nil.
func (*UserSettingCreate) SetNillableDeletedAt ¶
func (usc *UserSettingCreate) SetNillableDeletedAt(t *time.Time) *UserSettingCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UserSettingCreate) SetNillableDeletedBy ¶
func (usc *UserSettingCreate) SetNillableDeletedBy(s *string) *UserSettingCreate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*UserSettingCreate) SetNillableEmailConfirmed ¶
func (usc *UserSettingCreate) SetNillableEmailConfirmed(b *bool) *UserSettingCreate
SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.
func (*UserSettingCreate) SetNillableID ¶
func (usc *UserSettingCreate) SetNillableID(s *string) *UserSettingCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*UserSettingCreate) SetNillableLocked ¶
func (usc *UserSettingCreate) SetNillableLocked(b *bool) *UserSettingCreate
SetNillableLocked sets the "locked" field if the given value is not nil.
func (*UserSettingCreate) SetNillableRecoveryCode ¶
func (usc *UserSettingCreate) SetNillableRecoveryCode(s *string) *UserSettingCreate
SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.
func (*UserSettingCreate) SetNillableRole ¶
func (usc *UserSettingCreate) SetNillableRole(u *usersetting.Role) *UserSettingCreate
SetNillableRole sets the "role" field if the given value is not nil.
func (*UserSettingCreate) SetNillableSilencedAt ¶
func (usc *UserSettingCreate) SetNillableSilencedAt(t *time.Time) *UserSettingCreate
SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.
func (*UserSettingCreate) SetNillableStatus ¶
func (usc *UserSettingCreate) SetNillableStatus(u *usersetting.Status) *UserSettingCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*UserSettingCreate) SetNillableSuspendedAt ¶
func (usc *UserSettingCreate) SetNillableSuspendedAt(t *time.Time) *UserSettingCreate
SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.
func (*UserSettingCreate) SetNillableUpdatedAt ¶
func (usc *UserSettingCreate) SetNillableUpdatedAt(t *time.Time) *UserSettingCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*UserSettingCreate) SetNillableUpdatedBy ¶
func (usc *UserSettingCreate) SetNillableUpdatedBy(s *string) *UserSettingCreate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*UserSettingCreate) SetNillableUserID ¶
func (usc *UserSettingCreate) SetNillableUserID(id *string) *UserSettingCreate
SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
func (*UserSettingCreate) SetPermissions ¶
func (usc *UserSettingCreate) SetPermissions(s []string) *UserSettingCreate
SetPermissions sets the "permissions" field.
func (*UserSettingCreate) SetRecoveryCode ¶
func (usc *UserSettingCreate) SetRecoveryCode(s string) *UserSettingCreate
SetRecoveryCode sets the "recovery_code" field.
func (*UserSettingCreate) SetRole ¶
func (usc *UserSettingCreate) SetRole(u usersetting.Role) *UserSettingCreate
SetRole sets the "role" field.
func (*UserSettingCreate) SetSilencedAt ¶
func (usc *UserSettingCreate) SetSilencedAt(t time.Time) *UserSettingCreate
SetSilencedAt sets the "silenced_at" field.
func (*UserSettingCreate) SetStatus ¶
func (usc *UserSettingCreate) SetStatus(u usersetting.Status) *UserSettingCreate
SetStatus sets the "status" field.
func (*UserSettingCreate) SetSuspendedAt ¶
func (usc *UserSettingCreate) SetSuspendedAt(t time.Time) *UserSettingCreate
SetSuspendedAt sets the "suspended_at" field.
func (*UserSettingCreate) SetTags ¶
func (usc *UserSettingCreate) SetTags(s []string) *UserSettingCreate
SetTags sets the "tags" field.
func (*UserSettingCreate) SetUpdatedAt ¶
func (usc *UserSettingCreate) SetUpdatedAt(t time.Time) *UserSettingCreate
SetUpdatedAt sets the "updated_at" field.
func (*UserSettingCreate) SetUpdatedBy ¶
func (usc *UserSettingCreate) SetUpdatedBy(s string) *UserSettingCreate
SetUpdatedBy sets the "updated_by" field.
func (*UserSettingCreate) SetUser ¶
func (usc *UserSettingCreate) SetUser(u *User) *UserSettingCreate
SetUser sets the "user" edge to the User entity.
func (*UserSettingCreate) SetUserID ¶
func (usc *UserSettingCreate) SetUserID(id string) *UserSettingCreate
SetUserID sets the "user" edge to the User entity by ID.
type UserSettingCreateBulk ¶
type UserSettingCreateBulk struct {
// contains filtered or unexported fields
}
UserSettingCreateBulk is the builder for creating many UserSetting entities in bulk.
func (*UserSettingCreateBulk) Exec ¶
func (uscb *UserSettingCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserSettingCreateBulk) ExecX ¶
func (uscb *UserSettingCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserSettingCreateBulk) Save ¶
func (uscb *UserSettingCreateBulk) Save(ctx context.Context) ([]*UserSetting, error)
Save creates the UserSetting entities in the database.
func (*UserSettingCreateBulk) SaveX ¶
func (uscb *UserSettingCreateBulk) SaveX(ctx context.Context) []*UserSetting
SaveX is like Save, but panics if an error occurs.
type UserSettingDelete ¶
type UserSettingDelete struct {
// contains filtered or unexported fields
}
UserSettingDelete is the builder for deleting a UserSetting entity.
func (*UserSettingDelete) Exec ¶
func (usd *UserSettingDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserSettingDelete) ExecX ¶
func (usd *UserSettingDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserSettingDelete) Where ¶
func (usd *UserSettingDelete) Where(ps ...predicate.UserSetting) *UserSettingDelete
Where appends a list predicates to the UserSettingDelete builder.
type UserSettingDeleteOne ¶
type UserSettingDeleteOne struct {
// contains filtered or unexported fields
}
UserSettingDeleteOne is the builder for deleting a single UserSetting entity.
func (*UserSettingDeleteOne) Exec ¶
func (usdo *UserSettingDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserSettingDeleteOne) ExecX ¶
func (usdo *UserSettingDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserSettingDeleteOne) Where ¶
func (usdo *UserSettingDeleteOne) Where(ps ...predicate.UserSetting) *UserSettingDeleteOne
Where appends a list predicates to the UserSettingDelete builder.
type UserSettingEdge ¶
type UserSettingEdge struct { Node *UserSetting `json:"node"` Cursor Cursor `json:"cursor"` }
UserSettingEdge is the edge representation of UserSetting.
type UserSettingEdges ¶
type UserSettingEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // contains filtered or unexported fields }
UserSettingEdges holds the relations/edges for other nodes in the graph.
func (UserSettingEdges) UserOrErr ¶
func (e UserSettingEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserSettingFilter ¶
type UserSettingFilter struct {
// contains filtered or unexported fields
}
UserSettingFilter provides a generic filtering capability at runtime for UserSettingQuery.
func (*UserSettingFilter) Where ¶
func (f *UserSettingFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*UserSettingFilter) WhereCreatedAt ¶
func (f *UserSettingFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the created_at field.
func (*UserSettingFilter) WhereCreatedBy ¶
func (f *UserSettingFilter) WhereCreatedBy(p entql.StringP)
WhereCreatedBy applies the entql string predicate on the created_by field.
func (*UserSettingFilter) WhereDeletedAt ¶
func (f *UserSettingFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.
func (*UserSettingFilter) WhereDeletedBy ¶
func (f *UserSettingFilter) WhereDeletedBy(p entql.StringP)
WhereDeletedBy applies the entql string predicate on the deleted_by field.
func (*UserSettingFilter) WhereEmailConfirmed ¶
func (f *UserSettingFilter) WhereEmailConfirmed(p entql.BoolP)
WhereEmailConfirmed applies the entql bool predicate on the email_confirmed field.
func (*UserSettingFilter) WhereHasUser ¶
func (f *UserSettingFilter) WhereHasUser()
WhereHasUser applies a predicate to check if query has an edge user.
func (*UserSettingFilter) WhereHasUserWith ¶
func (f *UserSettingFilter) WhereHasUserWith(preds ...predicate.User)
WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).
func (*UserSettingFilter) WhereID ¶
func (f *UserSettingFilter) WhereID(p entql.StringP)
WhereID applies the entql string predicate on the id field.
func (*UserSettingFilter) WhereLocked ¶
func (f *UserSettingFilter) WhereLocked(p entql.BoolP)
WhereLocked applies the entql bool predicate on the locked field.
func (*UserSettingFilter) WherePermissions ¶
func (f *UserSettingFilter) WherePermissions(p entql.BytesP)
WherePermissions applies the entql json.RawMessage predicate on the permissions field.
func (*UserSettingFilter) WhereRecoveryCode ¶
func (f *UserSettingFilter) WhereRecoveryCode(p entql.StringP)
WhereRecoveryCode applies the entql string predicate on the recovery_code field.
func (*UserSettingFilter) WhereRole ¶
func (f *UserSettingFilter) WhereRole(p entql.StringP)
WhereRole applies the entql string predicate on the role field.
func (*UserSettingFilter) WhereSilencedAt ¶
func (f *UserSettingFilter) WhereSilencedAt(p entql.TimeP)
WhereSilencedAt applies the entql time.Time predicate on the silenced_at field.
func (*UserSettingFilter) WhereStatus ¶
func (f *UserSettingFilter) WhereStatus(p entql.StringP)
WhereStatus applies the entql string predicate on the status field.
func (*UserSettingFilter) WhereSuspendedAt ¶
func (f *UserSettingFilter) WhereSuspendedAt(p entql.TimeP)
WhereSuspendedAt applies the entql time.Time predicate on the suspended_at field.
func (*UserSettingFilter) WhereTags ¶
func (f *UserSettingFilter) WhereTags(p entql.BytesP)
WhereTags applies the entql json.RawMessage predicate on the tags field.
func (*UserSettingFilter) WhereUpdatedAt ¶
func (f *UserSettingFilter) WhereUpdatedAt(p entql.TimeP)
WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.
func (*UserSettingFilter) WhereUpdatedBy ¶
func (f *UserSettingFilter) WhereUpdatedBy(p entql.StringP)
WhereUpdatedBy applies the entql string predicate on the updated_by field.
type UserSettingGroupBy ¶
type UserSettingGroupBy struct {
// contains filtered or unexported fields
}
UserSettingGroupBy is the group-by builder for UserSetting entities.
func (*UserSettingGroupBy) Aggregate ¶
func (usgb *UserSettingGroupBy) Aggregate(fns ...AggregateFunc) *UserSettingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserSettingGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSettingGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSettingGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSettingGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSettingGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSettingGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSettingGroupBy) Scan ¶
func (usgb *UserSettingGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSettingGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserSettingMutation ¶
type UserSettingMutation struct {
// contains filtered or unexported fields
}
UserSettingMutation represents an operation that mutates the UserSetting nodes in the graph.
func (*UserSettingMutation) AddField ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) AddedEdges ¶
func (m *UserSettingMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserSettingMutation) AddedField ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) AddedFields ¶
func (m *UserSettingMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserSettingMutation) AddedIDs ¶
func (m *UserSettingMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserSettingMutation) AppendPermissions ¶
func (m *UserSettingMutation) AppendPermissions(s []string)
AppendPermissions adds s to the "permissions" field.
func (*UserSettingMutation) AppendTags ¶
func (m *UserSettingMutation) AppendTags(s []string)
AppendTags adds s to the "tags" field.
func (*UserSettingMutation) AppendedPermissions ¶
func (m *UserSettingMutation) AppendedPermissions() ([]string, bool)
AppendedPermissions returns the list of values that were appended to the "permissions" field in this mutation.
func (*UserSettingMutation) AppendedTags ¶
func (m *UserSettingMutation) AppendedTags() ([]string, bool)
AppendedTags returns the list of values that were appended to the "tags" field in this mutation.
func (*UserSettingMutation) ClearCreatedBy ¶
func (m *UserSettingMutation) ClearCreatedBy()
ClearCreatedBy clears the value of the "created_by" field.
func (*UserSettingMutation) ClearDeletedAt ¶
func (m *UserSettingMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserSettingMutation) ClearDeletedBy ¶
func (m *UserSettingMutation) ClearDeletedBy()
ClearDeletedBy clears the value of the "deleted_by" field.
func (*UserSettingMutation) ClearEdge ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) ClearField ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) ClearRecoveryCode ¶
func (m *UserSettingMutation) ClearRecoveryCode()
ClearRecoveryCode clears the value of the "recovery_code" field.
func (*UserSettingMutation) ClearSilencedAt ¶
func (m *UserSettingMutation) ClearSilencedAt()
ClearSilencedAt clears the value of the "silenced_at" field.
func (*UserSettingMutation) ClearSuspendedAt ¶
func (m *UserSettingMutation) ClearSuspendedAt()
ClearSuspendedAt clears the value of the "suspended_at" field.
func (*UserSettingMutation) ClearUpdatedBy ¶
func (m *UserSettingMutation) ClearUpdatedBy()
ClearUpdatedBy clears the value of the "updated_by" field.
func (*UserSettingMutation) ClearUser ¶
func (m *UserSettingMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*UserSettingMutation) ClearedEdges ¶
func (m *UserSettingMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserSettingMutation) ClearedFields ¶
func (m *UserSettingMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserSettingMutation) Client ¶
func (m UserSettingMutation) 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 (*UserSettingMutation) CreatedAt ¶
func (m *UserSettingMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*UserSettingMutation) CreatedBy ¶
func (m *UserSettingMutation) CreatedBy() (r string, exists bool)
CreatedBy returns the value of the "created_by" field in the mutation.
func (*UserSettingMutation) CreatedByCleared ¶
func (m *UserSettingMutation) CreatedByCleared() bool
CreatedByCleared returns if the "created_by" field was cleared in this mutation.
func (*UserSettingMutation) DeletedAt ¶
func (m *UserSettingMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*UserSettingMutation) DeletedAtCleared ¶
func (m *UserSettingMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*UserSettingMutation) DeletedBy ¶
func (m *UserSettingMutation) DeletedBy() (r string, exists bool)
DeletedBy returns the value of the "deleted_by" field in the mutation.
func (*UserSettingMutation) DeletedByCleared ¶
func (m *UserSettingMutation) DeletedByCleared() bool
DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.
func (*UserSettingMutation) EdgeCleared ¶
func (m *UserSettingMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserSettingMutation) EmailConfirmed ¶
func (m *UserSettingMutation) EmailConfirmed() (r bool, exists bool)
EmailConfirmed returns the value of the "email_confirmed" field in the mutation.
func (*UserSettingMutation) Field ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) FieldCleared ¶
func (m *UserSettingMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserSettingMutation) Fields ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) Filter ¶
func (m *UserSettingMutation) Filter() *UserSettingFilter
Filter returns an entql.Where implementation to apply filters on the UserSettingMutation builder.
func (*UserSettingMutation) ID ¶
func (m *UserSettingMutation) ID() (id string, 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 (*UserSettingMutation) IDs ¶
func (m *UserSettingMutation) IDs(ctx context.Context) ([]string, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserSettingMutation) Locked ¶
func (m *UserSettingMutation) Locked() (r bool, exists bool)
Locked returns the value of the "locked" field in the mutation.
func (*UserSettingMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldCreatedBy ¶
func (m *UserSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)
OldCreatedBy returns the old "created_by" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldDeletedBy ¶
func (m *UserSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)
OldDeletedBy returns the old "deleted_by" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldEmailConfirmed ¶
func (m *UserSettingMutation) OldEmailConfirmed(ctx context.Context) (v bool, err error)
OldEmailConfirmed returns the old "email_confirmed" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) 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 (*UserSettingMutation) OldLocked ¶
func (m *UserSettingMutation) OldLocked(ctx context.Context) (v bool, err error)
OldLocked returns the old "locked" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldPermissions ¶
func (m *UserSettingMutation) OldPermissions(ctx context.Context) (v []string, err error)
OldPermissions returns the old "permissions" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldRecoveryCode ¶
func (m *UserSettingMutation) OldRecoveryCode(ctx context.Context) (v *string, err error)
OldRecoveryCode returns the old "recovery_code" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldRole ¶
func (m *UserSettingMutation) OldRole(ctx context.Context) (v usersetting.Role, err error)
OldRole returns the old "role" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldSilencedAt ¶
OldSilencedAt returns the old "silenced_at" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldStatus ¶
func (m *UserSettingMutation) OldStatus(ctx context.Context) (v usersetting.Status, err error)
OldStatus returns the old "status" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldSuspendedAt ¶
OldSuspendedAt returns the old "suspended_at" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldTags ¶
func (m *UserSettingMutation) OldTags(ctx context.Context) (v []string, err error)
OldTags returns the old "tags" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) OldUpdatedBy ¶
func (m *UserSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)
OldUpdatedBy returns the old "updated_by" field's value of the UserSetting entity. If the UserSetting 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 (*UserSettingMutation) Op ¶
func (m *UserSettingMutation) Op() Op
Op returns the operation name.
func (*UserSettingMutation) Permissions ¶
func (m *UserSettingMutation) Permissions() (r []string, exists bool)
Permissions returns the value of the "permissions" field in the mutation.
func (*UserSettingMutation) RecoveryCode ¶
func (m *UserSettingMutation) RecoveryCode() (r string, exists bool)
RecoveryCode returns the value of the "recovery_code" field in the mutation.
func (*UserSettingMutation) RecoveryCodeCleared ¶
func (m *UserSettingMutation) RecoveryCodeCleared() bool
RecoveryCodeCleared returns if the "recovery_code" field was cleared in this mutation.
func (*UserSettingMutation) RemovedEdges ¶
func (m *UserSettingMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserSettingMutation) RemovedIDs ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) ResetCreatedAt ¶
func (m *UserSettingMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*UserSettingMutation) ResetCreatedBy ¶
func (m *UserSettingMutation) ResetCreatedBy()
ResetCreatedBy resets all changes to the "created_by" field.
func (*UserSettingMutation) ResetDeletedAt ¶
func (m *UserSettingMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*UserSettingMutation) ResetDeletedBy ¶
func (m *UserSettingMutation) ResetDeletedBy()
ResetDeletedBy resets all changes to the "deleted_by" field.
func (*UserSettingMutation) ResetEdge ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) ResetEmailConfirmed ¶
func (m *UserSettingMutation) ResetEmailConfirmed()
ResetEmailConfirmed resets all changes to the "email_confirmed" field.
func (*UserSettingMutation) ResetField ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) ResetLocked ¶
func (m *UserSettingMutation) ResetLocked()
ResetLocked resets all changes to the "locked" field.
func (*UserSettingMutation) ResetPermissions ¶
func (m *UserSettingMutation) ResetPermissions()
ResetPermissions resets all changes to the "permissions" field.
func (*UserSettingMutation) ResetRecoveryCode ¶
func (m *UserSettingMutation) ResetRecoveryCode()
ResetRecoveryCode resets all changes to the "recovery_code" field.
func (*UserSettingMutation) ResetRole ¶
func (m *UserSettingMutation) ResetRole()
ResetRole resets all changes to the "role" field.
func (*UserSettingMutation) ResetSilencedAt ¶
func (m *UserSettingMutation) ResetSilencedAt()
ResetSilencedAt resets all changes to the "silenced_at" field.
func (*UserSettingMutation) ResetStatus ¶
func (m *UserSettingMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*UserSettingMutation) ResetSuspendedAt ¶
func (m *UserSettingMutation) ResetSuspendedAt()
ResetSuspendedAt resets all changes to the "suspended_at" field.
func (*UserSettingMutation) ResetTags ¶
func (m *UserSettingMutation) ResetTags()
ResetTags resets all changes to the "tags" field.
func (*UserSettingMutation) ResetUpdatedAt ¶
func (m *UserSettingMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*UserSettingMutation) ResetUpdatedBy ¶
func (m *UserSettingMutation) ResetUpdatedBy()
ResetUpdatedBy resets all changes to the "updated_by" field.
func (*UserSettingMutation) ResetUser ¶
func (m *UserSettingMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*UserSettingMutation) Role ¶
func (m *UserSettingMutation) Role() (r usersetting.Role, exists bool)
Role returns the value of the "role" field in the mutation.
func (*UserSettingMutation) SetCreatedAt ¶
func (m *UserSettingMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*UserSettingMutation) SetCreatedBy ¶
func (m *UserSettingMutation) SetCreatedBy(s string)
SetCreatedBy sets the "created_by" field.
func (*UserSettingMutation) SetDeletedAt ¶
func (m *UserSettingMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*UserSettingMutation) SetDeletedBy ¶
func (m *UserSettingMutation) SetDeletedBy(s string)
SetDeletedBy sets the "deleted_by" field.
func (*UserSettingMutation) SetEmailConfirmed ¶
func (m *UserSettingMutation) SetEmailConfirmed(b bool)
SetEmailConfirmed sets the "email_confirmed" field.
func (*UserSettingMutation) SetField ¶
func (m *UserSettingMutation) 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 (*UserSettingMutation) SetID ¶
func (m *UserSettingMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of UserSetting entities.
func (*UserSettingMutation) SetLocked ¶
func (m *UserSettingMutation) SetLocked(b bool)
SetLocked sets the "locked" field.
func (*UserSettingMutation) SetOp ¶
func (m *UserSettingMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserSettingMutation) SetPermissions ¶
func (m *UserSettingMutation) SetPermissions(s []string)
SetPermissions sets the "permissions" field.
func (*UserSettingMutation) SetRecoveryCode ¶
func (m *UserSettingMutation) SetRecoveryCode(s string)
SetRecoveryCode sets the "recovery_code" field.
func (*UserSettingMutation) SetRole ¶
func (m *UserSettingMutation) SetRole(u usersetting.Role)
SetRole sets the "role" field.
func (*UserSettingMutation) SetSilencedAt ¶
func (m *UserSettingMutation) SetSilencedAt(t time.Time)
SetSilencedAt sets the "silenced_at" field.
func (*UserSettingMutation) SetStatus ¶
func (m *UserSettingMutation) SetStatus(u usersetting.Status)
SetStatus sets the "status" field.
func (*UserSettingMutation) SetSuspendedAt ¶
func (m *UserSettingMutation) SetSuspendedAt(t time.Time)
SetSuspendedAt sets the "suspended_at" field.
func (*UserSettingMutation) SetTags ¶
func (m *UserSettingMutation) SetTags(s []string)
SetTags sets the "tags" field.
func (*UserSettingMutation) SetUpdatedAt ¶
func (m *UserSettingMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*UserSettingMutation) SetUpdatedBy ¶
func (m *UserSettingMutation) SetUpdatedBy(s string)
SetUpdatedBy sets the "updated_by" field.
func (*UserSettingMutation) SetUserID ¶
func (m *UserSettingMutation) SetUserID(id string)
SetUserID sets the "user" edge to the User entity by id.
func (*UserSettingMutation) SilencedAt ¶
func (m *UserSettingMutation) SilencedAt() (r time.Time, exists bool)
SilencedAt returns the value of the "silenced_at" field in the mutation.
func (*UserSettingMutation) SilencedAtCleared ¶
func (m *UserSettingMutation) SilencedAtCleared() bool
SilencedAtCleared returns if the "silenced_at" field was cleared in this mutation.
func (*UserSettingMutation) Status ¶
func (m *UserSettingMutation) Status() (r usersetting.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (*UserSettingMutation) SuspendedAt ¶
func (m *UserSettingMutation) SuspendedAt() (r time.Time, exists bool)
SuspendedAt returns the value of the "suspended_at" field in the mutation.
func (*UserSettingMutation) SuspendedAtCleared ¶
func (m *UserSettingMutation) SuspendedAtCleared() bool
SuspendedAtCleared returns if the "suspended_at" field was cleared in this mutation.
func (*UserSettingMutation) Tags ¶
func (m *UserSettingMutation) Tags() (r []string, exists bool)
Tags returns the value of the "tags" field in the mutation.
func (UserSettingMutation) Tx ¶
func (m UserSettingMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserSettingMutation) Type ¶
func (m *UserSettingMutation) Type() string
Type returns the node type of this mutation (UserSetting).
func (*UserSettingMutation) UpdatedAt ¶
func (m *UserSettingMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*UserSettingMutation) UpdatedBy ¶
func (m *UserSettingMutation) UpdatedBy() (r string, exists bool)
UpdatedBy returns the value of the "updated_by" field in the mutation.
func (*UserSettingMutation) UpdatedByCleared ¶
func (m *UserSettingMutation) UpdatedByCleared() bool
UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.
func (*UserSettingMutation) UserCleared ¶
func (m *UserSettingMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*UserSettingMutation) UserID ¶
func (m *UserSettingMutation) UserID() (id string, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*UserSettingMutation) UserIDs ¶
func (m *UserSettingMutation) UserIDs() (ids []string)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*UserSettingMutation) Where ¶
func (m *UserSettingMutation) Where(ps ...predicate.UserSetting)
Where appends a list predicates to the UserSettingMutation builder.
func (*UserSettingMutation) WhereP ¶
func (m *UserSettingMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserSettingOrder ¶
type UserSettingOrder struct { Direction OrderDirection `json:"direction"` Field *UserSettingOrderField `json:"field"` }
UserSettingOrder defines the ordering of UserSetting.
type UserSettingOrderField ¶
type UserSettingOrderField struct { // Value extracts the ordering value from the given UserSetting. Value func(*UserSetting) (ent.Value, error) // contains filtered or unexported fields }
UserSettingOrderField defines the ordering field of UserSetting.
type UserSettingPaginateOption ¶
type UserSettingPaginateOption func(*usersettingPager) error
UserSettingPaginateOption enables pagination customization.
func WithUserSettingFilter ¶
func WithUserSettingFilter(filter func(*UserSettingQuery) (*UserSettingQuery, error)) UserSettingPaginateOption
WithUserSettingFilter configures pagination filter.
func WithUserSettingOrder ¶
func WithUserSettingOrder(order *UserSettingOrder) UserSettingPaginateOption
WithUserSettingOrder configures pagination ordering.
type UserSettingQuery ¶
type UserSettingQuery struct {
// contains filtered or unexported fields
}
UserSettingQuery is the builder for querying UserSetting entities.
func (*UserSettingQuery) Aggregate ¶
func (usq *UserSettingQuery) Aggregate(fns ...AggregateFunc) *UserSettingSelect
Aggregate returns a UserSettingSelect configured with the given aggregations.
func (*UserSettingQuery) All ¶
func (usq *UserSettingQuery) All(ctx context.Context) ([]*UserSetting, error)
All executes the query and returns a list of UserSettings.
func (*UserSettingQuery) AllX ¶
func (usq *UserSettingQuery) AllX(ctx context.Context) []*UserSetting
AllX is like All, but panics if an error occurs.
func (*UserSettingQuery) Clone ¶
func (usq *UserSettingQuery) Clone() *UserSettingQuery
Clone returns a duplicate of the UserSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserSettingQuery) CollectFields ¶
func (us *UserSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserSettingQuery, error)
CollectFields tells the query-builder to eagerly load connected nodes by resolver context.
func (*UserSettingQuery) Count ¶
func (usq *UserSettingQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserSettingQuery) CountX ¶
func (usq *UserSettingQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserSettingQuery) Exist ¶
func (usq *UserSettingQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserSettingQuery) ExistX ¶
func (usq *UserSettingQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserSettingQuery) Filter ¶
func (usq *UserSettingQuery) Filter() *UserSettingFilter
Filter returns a Filter implementation to apply filters on the UserSettingQuery builder.
func (*UserSettingQuery) First ¶
func (usq *UserSettingQuery) First(ctx context.Context) (*UserSetting, error)
First returns the first UserSetting entity from the query. Returns a *NotFoundError when no UserSetting was found.
func (*UserSettingQuery) FirstID ¶
func (usq *UserSettingQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first UserSetting ID from the query. Returns a *NotFoundError when no UserSetting ID was found.
func (*UserSettingQuery) FirstIDX ¶
func (usq *UserSettingQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserSettingQuery) FirstX ¶
func (usq *UserSettingQuery) FirstX(ctx context.Context) *UserSetting
FirstX is like First, but panics if an error occurs.
func (*UserSettingQuery) GroupBy ¶
func (usq *UserSettingQuery) GroupBy(field string, fields ...string) *UserSettingGroupBy
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.UserSetting.Query(). GroupBy(usersetting.FieldCreatedAt). Aggregate(generated.Count()). Scan(ctx, &v)
func (*UserSettingQuery) IDs ¶
func (usq *UserSettingQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of UserSetting IDs.
func (*UserSettingQuery) IDsX ¶
func (usq *UserSettingQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*UserSettingQuery) Limit ¶
func (usq *UserSettingQuery) Limit(limit int) *UserSettingQuery
Limit the number of records to be returned by this query.
func (*UserSettingQuery) Offset ¶
func (usq *UserSettingQuery) Offset(offset int) *UserSettingQuery
Offset to start from.
func (*UserSettingQuery) Only ¶
func (usq *UserSettingQuery) Only(ctx context.Context) (*UserSetting, error)
Only returns a single UserSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserSetting entity is found. Returns a *NotFoundError when no UserSetting entities are found.
func (*UserSettingQuery) OnlyID ¶
func (usq *UserSettingQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only UserSetting ID in the query. Returns a *NotSingularError when more than one UserSetting ID is found. Returns a *NotFoundError when no entities are found.
func (*UserSettingQuery) OnlyIDX ¶
func (usq *UserSettingQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserSettingQuery) OnlyX ¶
func (usq *UserSettingQuery) OnlyX(ctx context.Context) *UserSetting
OnlyX is like Only, but panics if an error occurs.
func (*UserSettingQuery) Order ¶
func (usq *UserSettingQuery) Order(o ...usersetting.OrderOption) *UserSettingQuery
Order specifies how the records should be ordered.
func (*UserSettingQuery) Paginate ¶
func (us *UserSettingQuery) Paginate( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, opts ...UserSettingPaginateOption, ) (*UserSettingConnection, error)
Paginate executes the query and returns a relay based cursor connection to UserSetting.
func (*UserSettingQuery) QueryUser ¶
func (usq *UserSettingQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*UserSettingQuery) Select ¶
func (usq *UserSettingQuery) Select(fields ...string) *UserSettingSelect
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.UserSetting.Query(). Select(usersetting.FieldCreatedAt). Scan(ctx, &v)
func (*UserSettingQuery) Unique ¶
func (usq *UserSettingQuery) Unique(unique bool) *UserSettingQuery
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 (*UserSettingQuery) Where ¶
func (usq *UserSettingQuery) Where(ps ...predicate.UserSetting) *UserSettingQuery
Where adds a new predicate for the UserSettingQuery builder.
func (*UserSettingQuery) WithUser ¶
func (usq *UserSettingQuery) WithUser(opts ...func(*UserQuery)) *UserSettingQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type UserSettingSelect ¶
type UserSettingSelect struct { *UserSettingQuery // contains filtered or unexported fields }
UserSettingSelect is the builder for selecting fields of UserSetting entities.
func (*UserSettingSelect) Aggregate ¶
func (uss *UserSettingSelect) Aggregate(fns ...AggregateFunc) *UserSettingSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserSettingSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSettingSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSettingSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSettingSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSettingSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSettingSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSettingSelect) Scan ¶
func (uss *UserSettingSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSettingSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserSettingUpdate ¶
type UserSettingUpdate struct {
// contains filtered or unexported fields
}
UserSettingUpdate is the builder for updating UserSetting entities.
func (*UserSettingUpdate) AppendPermissions ¶
func (usu *UserSettingUpdate) AppendPermissions(s []string) *UserSettingUpdate
AppendPermissions appends s to the "permissions" field.
func (*UserSettingUpdate) AppendTags ¶
func (usu *UserSettingUpdate) AppendTags(s []string) *UserSettingUpdate
AppendTags appends s to the "tags" field.
func (*UserSettingUpdate) ClearDeletedAt ¶
func (usu *UserSettingUpdate) ClearDeletedAt() *UserSettingUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserSettingUpdate) ClearDeletedBy ¶
func (usu *UserSettingUpdate) ClearDeletedBy() *UserSettingUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*UserSettingUpdate) ClearRecoveryCode ¶
func (usu *UserSettingUpdate) ClearRecoveryCode() *UserSettingUpdate
ClearRecoveryCode clears the value of the "recovery_code" field.
func (*UserSettingUpdate) ClearSilencedAt ¶
func (usu *UserSettingUpdate) ClearSilencedAt() *UserSettingUpdate
ClearSilencedAt clears the value of the "silenced_at" field.
func (*UserSettingUpdate) ClearSuspendedAt ¶
func (usu *UserSettingUpdate) ClearSuspendedAt() *UserSettingUpdate
ClearSuspendedAt clears the value of the "suspended_at" field.
func (*UserSettingUpdate) ClearUpdatedBy ¶
func (usu *UserSettingUpdate) ClearUpdatedBy() *UserSettingUpdate
ClearUpdatedBy clears the value of the "updated_by" field.
func (*UserSettingUpdate) ClearUser ¶
func (usu *UserSettingUpdate) ClearUser() *UserSettingUpdate
ClearUser clears the "user" edge to the User entity.
func (*UserSettingUpdate) Exec ¶
func (usu *UserSettingUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserSettingUpdate) ExecX ¶
func (usu *UserSettingUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserSettingUpdate) Mutation ¶
func (usu *UserSettingUpdate) Mutation() *UserSettingMutation
Mutation returns the UserSettingMutation object of the builder.
func (*UserSettingUpdate) Save ¶
func (usu *UserSettingUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserSettingUpdate) SaveX ¶
func (usu *UserSettingUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserSettingUpdate) SetDeletedAt ¶
func (usu *UserSettingUpdate) SetDeletedAt(t time.Time) *UserSettingUpdate
SetDeletedAt sets the "deleted_at" field.
func (*UserSettingUpdate) SetDeletedBy ¶
func (usu *UserSettingUpdate) SetDeletedBy(s string) *UserSettingUpdate
SetDeletedBy sets the "deleted_by" field.
func (*UserSettingUpdate) SetEmailConfirmed ¶
func (usu *UserSettingUpdate) SetEmailConfirmed(b bool) *UserSettingUpdate
SetEmailConfirmed sets the "email_confirmed" field.
func (*UserSettingUpdate) SetInput ¶
func (c *UserSettingUpdate) SetInput(i UpdateUserSettingInput) *UserSettingUpdate
SetInput applies the change-set in the UpdateUserSettingInput on the UserSettingUpdate builder.
func (*UserSettingUpdate) SetLocked ¶
func (usu *UserSettingUpdate) SetLocked(b bool) *UserSettingUpdate
SetLocked sets the "locked" field.
func (*UserSettingUpdate) SetNillableDeletedAt ¶
func (usu *UserSettingUpdate) SetNillableDeletedAt(t *time.Time) *UserSettingUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableDeletedBy ¶
func (usu *UserSettingUpdate) SetNillableDeletedBy(s *string) *UserSettingUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableEmailConfirmed ¶
func (usu *UserSettingUpdate) SetNillableEmailConfirmed(b *bool) *UserSettingUpdate
SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableLocked ¶
func (usu *UserSettingUpdate) SetNillableLocked(b *bool) *UserSettingUpdate
SetNillableLocked sets the "locked" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableRecoveryCode ¶
func (usu *UserSettingUpdate) SetNillableRecoveryCode(s *string) *UserSettingUpdate
SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableRole ¶
func (usu *UserSettingUpdate) SetNillableRole(u *usersetting.Role) *UserSettingUpdate
SetNillableRole sets the "role" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableSilencedAt ¶
func (usu *UserSettingUpdate) SetNillableSilencedAt(t *time.Time) *UserSettingUpdate
SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableStatus ¶
func (usu *UserSettingUpdate) SetNillableStatus(u *usersetting.Status) *UserSettingUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableSuspendedAt ¶
func (usu *UserSettingUpdate) SetNillableSuspendedAt(t *time.Time) *UserSettingUpdate
SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableUpdatedBy ¶
func (usu *UserSettingUpdate) SetNillableUpdatedBy(s *string) *UserSettingUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*UserSettingUpdate) SetNillableUserID ¶
func (usu *UserSettingUpdate) SetNillableUserID(id *string) *UserSettingUpdate
SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
func (*UserSettingUpdate) SetPermissions ¶
func (usu *UserSettingUpdate) SetPermissions(s []string) *UserSettingUpdate
SetPermissions sets the "permissions" field.
func (*UserSettingUpdate) SetRecoveryCode ¶
func (usu *UserSettingUpdate) SetRecoveryCode(s string) *UserSettingUpdate
SetRecoveryCode sets the "recovery_code" field.
func (*UserSettingUpdate) SetRole ¶
func (usu *UserSettingUpdate) SetRole(u usersetting.Role) *UserSettingUpdate
SetRole sets the "role" field.
func (*UserSettingUpdate) SetSilencedAt ¶
func (usu *UserSettingUpdate) SetSilencedAt(t time.Time) *UserSettingUpdate
SetSilencedAt sets the "silenced_at" field.
func (*UserSettingUpdate) SetStatus ¶
func (usu *UserSettingUpdate) SetStatus(u usersetting.Status) *UserSettingUpdate
SetStatus sets the "status" field.
func (*UserSettingUpdate) SetSuspendedAt ¶
func (usu *UserSettingUpdate) SetSuspendedAt(t time.Time) *UserSettingUpdate
SetSuspendedAt sets the "suspended_at" field.
func (*UserSettingUpdate) SetTags ¶
func (usu *UserSettingUpdate) SetTags(s []string) *UserSettingUpdate
SetTags sets the "tags" field.
func (*UserSettingUpdate) SetUpdatedAt ¶
func (usu *UserSettingUpdate) SetUpdatedAt(t time.Time) *UserSettingUpdate
SetUpdatedAt sets the "updated_at" field.
func (*UserSettingUpdate) SetUpdatedBy ¶
func (usu *UserSettingUpdate) SetUpdatedBy(s string) *UserSettingUpdate
SetUpdatedBy sets the "updated_by" field.
func (*UserSettingUpdate) SetUser ¶
func (usu *UserSettingUpdate) SetUser(u *User) *UserSettingUpdate
SetUser sets the "user" edge to the User entity.
func (*UserSettingUpdate) SetUserID ¶
func (usu *UserSettingUpdate) SetUserID(id string) *UserSettingUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*UserSettingUpdate) Where ¶
func (usu *UserSettingUpdate) Where(ps ...predicate.UserSetting) *UserSettingUpdate
Where appends a list predicates to the UserSettingUpdate builder.
type UserSettingUpdateOne ¶
type UserSettingUpdateOne struct {
// contains filtered or unexported fields
}
UserSettingUpdateOne is the builder for updating a single UserSetting entity.
func (*UserSettingUpdateOne) AppendPermissions ¶
func (usuo *UserSettingUpdateOne) AppendPermissions(s []string) *UserSettingUpdateOne
AppendPermissions appends s to the "permissions" field.
func (*UserSettingUpdateOne) AppendTags ¶
func (usuo *UserSettingUpdateOne) AppendTags(s []string) *UserSettingUpdateOne
AppendTags appends s to the "tags" field.
func (*UserSettingUpdateOne) ClearDeletedAt ¶
func (usuo *UserSettingUpdateOne) ClearDeletedAt() *UserSettingUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserSettingUpdateOne) ClearDeletedBy ¶
func (usuo *UserSettingUpdateOne) ClearDeletedBy() *UserSettingUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*UserSettingUpdateOne) ClearRecoveryCode ¶
func (usuo *UserSettingUpdateOne) ClearRecoveryCode() *UserSettingUpdateOne
ClearRecoveryCode clears the value of the "recovery_code" field.
func (*UserSettingUpdateOne) ClearSilencedAt ¶
func (usuo *UserSettingUpdateOne) ClearSilencedAt() *UserSettingUpdateOne
ClearSilencedAt clears the value of the "silenced_at" field.
func (*UserSettingUpdateOne) ClearSuspendedAt ¶
func (usuo *UserSettingUpdateOne) ClearSuspendedAt() *UserSettingUpdateOne
ClearSuspendedAt clears the value of the "suspended_at" field.
func (*UserSettingUpdateOne) ClearUpdatedBy ¶
func (usuo *UserSettingUpdateOne) ClearUpdatedBy() *UserSettingUpdateOne
ClearUpdatedBy clears the value of the "updated_by" field.
func (*UserSettingUpdateOne) ClearUser ¶
func (usuo *UserSettingUpdateOne) ClearUser() *UserSettingUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*UserSettingUpdateOne) Exec ¶
func (usuo *UserSettingUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserSettingUpdateOne) ExecX ¶
func (usuo *UserSettingUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserSettingUpdateOne) Mutation ¶
func (usuo *UserSettingUpdateOne) Mutation() *UserSettingMutation
Mutation returns the UserSettingMutation object of the builder.
func (*UserSettingUpdateOne) Save ¶
func (usuo *UserSettingUpdateOne) Save(ctx context.Context) (*UserSetting, error)
Save executes the query and returns the updated UserSetting entity.
func (*UserSettingUpdateOne) SaveX ¶
func (usuo *UserSettingUpdateOne) SaveX(ctx context.Context) *UserSetting
SaveX is like Save, but panics if an error occurs.
func (*UserSettingUpdateOne) Select ¶
func (usuo *UserSettingUpdateOne) Select(field string, fields ...string) *UserSettingUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserSettingUpdateOne) SetDeletedAt ¶
func (usuo *UserSettingUpdateOne) SetDeletedAt(t time.Time) *UserSettingUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*UserSettingUpdateOne) SetDeletedBy ¶
func (usuo *UserSettingUpdateOne) SetDeletedBy(s string) *UserSettingUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*UserSettingUpdateOne) SetEmailConfirmed ¶
func (usuo *UserSettingUpdateOne) SetEmailConfirmed(b bool) *UserSettingUpdateOne
SetEmailConfirmed sets the "email_confirmed" field.
func (*UserSettingUpdateOne) SetInput ¶
func (c *UserSettingUpdateOne) SetInput(i UpdateUserSettingInput) *UserSettingUpdateOne
SetInput applies the change-set in the UpdateUserSettingInput on the UserSettingUpdateOne builder.
func (*UserSettingUpdateOne) SetLocked ¶
func (usuo *UserSettingUpdateOne) SetLocked(b bool) *UserSettingUpdateOne
SetLocked sets the "locked" field.
func (*UserSettingUpdateOne) SetNillableDeletedAt ¶
func (usuo *UserSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *UserSettingUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableDeletedBy ¶
func (usuo *UserSettingUpdateOne) SetNillableDeletedBy(s *string) *UserSettingUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableEmailConfirmed ¶
func (usuo *UserSettingUpdateOne) SetNillableEmailConfirmed(b *bool) *UserSettingUpdateOne
SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableLocked ¶
func (usuo *UserSettingUpdateOne) SetNillableLocked(b *bool) *UserSettingUpdateOne
SetNillableLocked sets the "locked" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableRecoveryCode ¶
func (usuo *UserSettingUpdateOne) SetNillableRecoveryCode(s *string) *UserSettingUpdateOne
SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableRole ¶
func (usuo *UserSettingUpdateOne) SetNillableRole(u *usersetting.Role) *UserSettingUpdateOne
SetNillableRole sets the "role" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableSilencedAt ¶
func (usuo *UserSettingUpdateOne) SetNillableSilencedAt(t *time.Time) *UserSettingUpdateOne
SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableStatus ¶
func (usuo *UserSettingUpdateOne) SetNillableStatus(u *usersetting.Status) *UserSettingUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableSuspendedAt ¶
func (usuo *UserSettingUpdateOne) SetNillableSuspendedAt(t *time.Time) *UserSettingUpdateOne
SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableUpdatedBy ¶
func (usuo *UserSettingUpdateOne) SetNillableUpdatedBy(s *string) *UserSettingUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*UserSettingUpdateOne) SetNillableUserID ¶
func (usuo *UserSettingUpdateOne) SetNillableUserID(id *string) *UserSettingUpdateOne
SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
func (*UserSettingUpdateOne) SetPermissions ¶
func (usuo *UserSettingUpdateOne) SetPermissions(s []string) *UserSettingUpdateOne
SetPermissions sets the "permissions" field.
func (*UserSettingUpdateOne) SetRecoveryCode ¶
func (usuo *UserSettingUpdateOne) SetRecoveryCode(s string) *UserSettingUpdateOne
SetRecoveryCode sets the "recovery_code" field.
func (*UserSettingUpdateOne) SetRole ¶
func (usuo *UserSettingUpdateOne) SetRole(u usersetting.Role) *UserSettingUpdateOne
SetRole sets the "role" field.
func (*UserSettingUpdateOne) SetSilencedAt ¶
func (usuo *UserSettingUpdateOne) SetSilencedAt(t time.Time) *UserSettingUpdateOne
SetSilencedAt sets the "silenced_at" field.
func (*UserSettingUpdateOne) SetStatus ¶
func (usuo *UserSettingUpdateOne) SetStatus(u usersetting.Status) *UserSettingUpdateOne
SetStatus sets the "status" field.
func (*UserSettingUpdateOne) SetSuspendedAt ¶
func (usuo *UserSettingUpdateOne) SetSuspendedAt(t time.Time) *UserSettingUpdateOne
SetSuspendedAt sets the "suspended_at" field.
func (*UserSettingUpdateOne) SetTags ¶
func (usuo *UserSettingUpdateOne) SetTags(s []string) *UserSettingUpdateOne
SetTags sets the "tags" field.
func (*UserSettingUpdateOne) SetUpdatedAt ¶
func (usuo *UserSettingUpdateOne) SetUpdatedAt(t time.Time) *UserSettingUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*UserSettingUpdateOne) SetUpdatedBy ¶
func (usuo *UserSettingUpdateOne) SetUpdatedBy(s string) *UserSettingUpdateOne
SetUpdatedBy sets the "updated_by" field.
func (*UserSettingUpdateOne) SetUser ¶
func (usuo *UserSettingUpdateOne) SetUser(u *User) *UserSettingUpdateOne
SetUser sets the "user" edge to the User entity.
func (*UserSettingUpdateOne) SetUserID ¶
func (usuo *UserSettingUpdateOne) SetUserID(id string) *UserSettingUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*UserSettingUpdateOne) Where ¶
func (usuo *UserSettingUpdateOne) Where(ps ...predicate.UserSetting) *UserSettingUpdateOne
Where appends a list predicates to the UserSettingUpdate builder.
type UserSettingWhereInput ¶
type UserSettingWhereInput struct { Predicates []predicate.UserSetting `json:"-"` Not *UserSettingWhereInput `json:"not,omitempty"` Or []*UserSettingWhereInput `json:"or,omitempty"` And []*UserSettingWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` // "locked" field predicates. Locked *bool `json:"locked,omitempty"` LockedNEQ *bool `json:"lockedNEQ,omitempty"` // "silenced_at" field predicates. SilencedAt *time.Time `json:"silencedAt,omitempty"` SilencedAtNEQ *time.Time `json:"silencedAtNEQ,omitempty"` SilencedAtIn []time.Time `json:"silencedAtIn,omitempty"` SilencedAtNotIn []time.Time `json:"silencedAtNotIn,omitempty"` SilencedAtGT *time.Time `json:"silencedAtGT,omitempty"` SilencedAtGTE *time.Time `json:"silencedAtGTE,omitempty"` SilencedAtLT *time.Time `json:"silencedAtLT,omitempty"` SilencedAtLTE *time.Time `json:"silencedAtLTE,omitempty"` SilencedAtIsNil bool `json:"silencedAtIsNil,omitempty"` SilencedAtNotNil bool `json:"silencedAtNotNil,omitempty"` // "suspended_at" field predicates. SuspendedAt *time.Time `json:"suspendedAt,omitempty"` SuspendedAtNEQ *time.Time `json:"suspendedAtNEQ,omitempty"` SuspendedAtIn []time.Time `json:"suspendedAtIn,omitempty"` SuspendedAtNotIn []time.Time `json:"suspendedAtNotIn,omitempty"` SuspendedAtGT *time.Time `json:"suspendedAtGT,omitempty"` SuspendedAtGTE *time.Time `json:"suspendedAtGTE,omitempty"` SuspendedAtLT *time.Time `json:"suspendedAtLT,omitempty"` SuspendedAtLTE *time.Time `json:"suspendedAtLTE,omitempty"` SuspendedAtIsNil bool `json:"suspendedAtIsNil,omitempty"` SuspendedAtNotNil bool `json:"suspendedAtNotNil,omitempty"` // "recovery_code" field predicates. RecoveryCode *string `json:"recoveryCode,omitempty"` RecoveryCodeNEQ *string `json:"recoveryCodeNEQ,omitempty"` RecoveryCodeIn []string `json:"recoveryCodeIn,omitempty"` RecoveryCodeNotIn []string `json:"recoveryCodeNotIn,omitempty"` RecoveryCodeGT *string `json:"recoveryCodeGT,omitempty"` RecoveryCodeGTE *string `json:"recoveryCodeGTE,omitempty"` RecoveryCodeLT *string `json:"recoveryCodeLT,omitempty"` RecoveryCodeLTE *string `json:"recoveryCodeLTE,omitempty"` RecoveryCodeContains *string `json:"recoveryCodeContains,omitempty"` RecoveryCodeHasPrefix *string `json:"recoveryCodeHasPrefix,omitempty"` RecoveryCodeHasSuffix *string `json:"recoveryCodeHasSuffix,omitempty"` RecoveryCodeIsNil bool `json:"recoveryCodeIsNil,omitempty"` RecoveryCodeNotNil bool `json:"recoveryCodeNotNil,omitempty"` RecoveryCodeEqualFold *string `json:"recoveryCodeEqualFold,omitempty"` RecoveryCodeContainsFold *string `json:"recoveryCodeContainsFold,omitempty"` // "status" field predicates. Status *usersetting.Status `json:"status,omitempty"` StatusNEQ *usersetting.Status `json:"statusNEQ,omitempty"` StatusIn []usersetting.Status `json:"statusIn,omitempty"` StatusNotIn []usersetting.Status `json:"statusNotIn,omitempty"` // "role" field predicates. Role *usersetting.Role `json:"role,omitempty"` RoleNEQ *usersetting.Role `json:"roleNEQ,omitempty"` RoleIn []usersetting.Role `json:"roleIn,omitempty"` RoleNotIn []usersetting.Role `json:"roleNotIn,omitempty"` // "email_confirmed" field predicates. EmailConfirmed *bool `json:"emailConfirmed,omitempty"` EmailConfirmedNEQ *bool `json:"emailConfirmedNEQ,omitempty"` // "user" edge predicates. HasUser *bool `json:"hasUser,omitempty"` HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` }
UserSettingWhereInput represents a where input for filtering UserSetting queries.
func (*UserSettingWhereInput) AddPredicates ¶
func (i *UserSettingWhereInput) AddPredicates(predicates ...predicate.UserSetting)
AddPredicates adds custom predicates to the where input to be used during the filtering phase.
func (*UserSettingWhereInput) Filter ¶
func (i *UserSettingWhereInput) Filter(q *UserSettingQuery) (*UserSettingQuery, error)
Filter applies the UserSettingWhereInput filter on the UserSettingQuery builder.
func (*UserSettingWhereInput) P ¶
func (i *UserSettingWhereInput) P() (predicate.UserSetting, error)
P returns a predicate for filtering usersettings. An error is returned if the input is empty or invalid.
type UserSettings ¶
type UserSettings []*UserSetting
UserSettings is a parsable slice of UserSetting.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) AddGroupIDs ¶
func (uu *UserUpdate) AddGroupIDs(ids ...string) *UserUpdate
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
func (*UserUpdate) AddGroups ¶
func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate
AddGroups adds the "groups" edges to the Group entity.
func (*UserUpdate) AddOrganizationIDs ¶
func (uu *UserUpdate) AddOrganizationIDs(ids ...string) *UserUpdate
AddOrganizationIDs adds the "organizations" edge to the Organization entity by IDs.
func (*UserUpdate) AddOrganizations ¶
func (uu *UserUpdate) AddOrganizations(o ...*Organization) *UserUpdate
AddOrganizations adds the "organizations" edges to the Organization entity.
func (*UserUpdate) AddPersonalAccessTokenIDs ¶
func (uu *UserUpdate) AddPersonalAccessTokenIDs(ids ...string) *UserUpdate
AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.
func (*UserUpdate) AddPersonalAccessTokens ¶
func (uu *UserUpdate) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdate
AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity.
func (*UserUpdate) AddSessionIDs ¶
func (uu *UserUpdate) AddSessionIDs(ids ...string) *UserUpdate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*UserUpdate) AddSessions ¶
func (uu *UserUpdate) AddSessions(s ...*Session) *UserUpdate
AddSessions adds the "sessions" edges to the Session entity.
func (*UserUpdate) ClearAvatarLocalFile ¶
func (uu *UserUpdate) ClearAvatarLocalFile() *UserUpdate
ClearAvatarLocalFile clears the value of the "avatar_local_file" field.
func (*UserUpdate) ClearAvatarRemoteURL ¶
func (uu *UserUpdate) ClearAvatarRemoteURL() *UserUpdate
ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field.
func (*UserUpdate) ClearAvatarUpdatedAt ¶
func (uu *UserUpdate) ClearAvatarUpdatedAt() *UserUpdate
ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field.
func (*UserUpdate) ClearDeletedAt ¶
func (uu *UserUpdate) ClearDeletedAt() *UserUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserUpdate) ClearDeletedBy ¶
func (uu *UserUpdate) ClearDeletedBy() *UserUpdate
ClearDeletedBy clears the value of the "deleted_by" field.
func (*UserUpdate) ClearGroups ¶
func (uu *UserUpdate) ClearGroups() *UserUpdate
ClearGroups clears all "groups" edges to the Group entity.
func (*UserUpdate) ClearLastSeen ¶
func (uu *UserUpdate) ClearLastSeen() *UserUpdate
ClearLastSeen clears the value of the "last_seen" field.
func (*UserUpdate) ClearOrganizations ¶
func (uu *UserUpdate) ClearOrganizations() *UserUpdate
ClearOrganizations clears all "organizations" edges to the Organization entity.
func (*UserUpdate) ClearPassword ¶
func (uu *UserUpdate) ClearPassword() *UserUpdate
ClearPassword clears the value of the "password" field.
func (*UserUpdate) ClearPersonalAccessTokens ¶
func (uu *UserUpdate) ClearPersonalAccessTokens() *UserUpdate
ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity.
func (*UserUpdate) ClearSessions ¶
func (uu *UserUpdate) ClearSessions() *UserUpdate
ClearSessions clears all "sessions" edges to the Session entity.
func (*UserUpdate) ClearSetting ¶
func (uu *UserUpdate) ClearSetting() *UserUpdate
ClearSetting clears the "setting" edge to the UserSetting entity.
func (*UserUpdate) ClearSub ¶
func (uu *UserUpdate) ClearSub() *UserUpdate
ClearSub clears the value of the "sub" field.
func (*UserUpdate) ClearUpdatedBy ¶
func (uu *UserUpdate) ClearUpdatedBy() *UserUpdate
ClearUpdatedBy clears the value of the "updated_by" 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) RemoveGroupIDs ¶
func (uu *UserUpdate) RemoveGroupIDs(ids ...string) *UserUpdate
RemoveGroupIDs removes the "groups" edge to Group entities by IDs.
func (*UserUpdate) RemoveGroups ¶
func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate
RemoveGroups removes "groups" edges to Group entities.
func (*UserUpdate) RemoveOrganizationIDs ¶
func (uu *UserUpdate) RemoveOrganizationIDs(ids ...string) *UserUpdate
RemoveOrganizationIDs removes the "organizations" edge to Organization entities by IDs.
func (*UserUpdate) RemoveOrganizations ¶
func (uu *UserUpdate) RemoveOrganizations(o ...*Organization) *UserUpdate
RemoveOrganizations removes "organizations" edges to Organization entities.
func (*UserUpdate) RemovePersonalAccessTokenIDs ¶
func (uu *UserUpdate) RemovePersonalAccessTokenIDs(ids ...string) *UserUpdate
RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs.
func (*UserUpdate) RemovePersonalAccessTokens ¶
func (uu *UserUpdate) RemovePersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdate
RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities.
func (*UserUpdate) RemoveSessionIDs ¶
func (uu *UserUpdate) RemoveSessionIDs(ids ...string) *UserUpdate
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*UserUpdate) RemoveSessions ¶
func (uu *UserUpdate) RemoveSessions(s ...*Session) *UserUpdate
RemoveSessions removes "sessions" edges to Session 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) SetAvatarLocalFile ¶
func (uu *UserUpdate) SetAvatarLocalFile(s string) *UserUpdate
SetAvatarLocalFile sets the "avatar_local_file" field.
func (*UserUpdate) SetAvatarRemoteURL ¶
func (uu *UserUpdate) SetAvatarRemoteURL(s string) *UserUpdate
SetAvatarRemoteURL sets the "avatar_remote_url" field.
func (*UserUpdate) SetAvatarUpdatedAt ¶
func (uu *UserUpdate) SetAvatarUpdatedAt(t time.Time) *UserUpdate
SetAvatarUpdatedAt sets the "avatar_updated_at" field.
func (*UserUpdate) SetDeletedAt ¶
func (uu *UserUpdate) SetDeletedAt(t time.Time) *UserUpdate
SetDeletedAt sets the "deleted_at" field.
func (*UserUpdate) SetDeletedBy ¶
func (uu *UserUpdate) SetDeletedBy(s string) *UserUpdate
SetDeletedBy sets the "deleted_by" field.
func (*UserUpdate) SetDisplayName ¶
func (uu *UserUpdate) SetDisplayName(s string) *UserUpdate
SetDisplayName sets the "display_name" 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 "first_name" field.
func (*UserUpdate) SetInput ¶
func (c *UserUpdate) SetInput(i UpdateUserInput) *UserUpdate
SetInput applies the change-set in the UpdateUserInput on the UserUpdate builder.
func (*UserUpdate) SetLastName ¶
func (uu *UserUpdate) SetLastName(s string) *UserUpdate
SetLastName sets the "last_name" field.
func (*UserUpdate) SetLastSeen ¶
func (uu *UserUpdate) SetLastSeen(t time.Time) *UserUpdate
SetLastSeen sets the "last_seen" field.
func (*UserUpdate) SetNillableAvatarLocalFile ¶
func (uu *UserUpdate) SetNillableAvatarLocalFile(s *string) *UserUpdate
SetNillableAvatarLocalFile sets the "avatar_local_file" field if the given value is not nil.
func (*UserUpdate) SetNillableAvatarRemoteURL ¶
func (uu *UserUpdate) SetNillableAvatarRemoteURL(s *string) *UserUpdate
SetNillableAvatarRemoteURL sets the "avatar_remote_url" 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) SetNillableDeletedBy ¶
func (uu *UserUpdate) SetNillableDeletedBy(s *string) *UserUpdate
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*UserUpdate) SetNillableDisplayName ¶
func (uu *UserUpdate) SetNillableDisplayName(s *string) *UserUpdate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*UserUpdate) SetNillableEmail ¶
func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate
SetNillableEmail sets the "email" field if the given value is not nil.
func (*UserUpdate) SetNillableFirstName ¶
func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate
SetNillableFirstName sets the "first_name" field if the given value is not nil.
func (*UserUpdate) SetNillableLastName ¶
func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate
SetNillableLastName sets the "last_name" field if the given value is not nil.
func (*UserUpdate) SetNillableOauth ¶
func (uu *UserUpdate) SetNillableOauth(b *bool) *UserUpdate
SetNillableOauth sets the "oauth" field if the given value is not nil.
func (*UserUpdate) SetNillablePassword ¶
func (uu *UserUpdate) SetNillablePassword(s *string) *UserUpdate
SetNillablePassword sets the "password" field if the given value is not nil.
func (*UserUpdate) SetNillableSub ¶
func (uu *UserUpdate) SetNillableSub(s *string) *UserUpdate
SetNillableSub sets the "sub" field if the given value is not nil.
func (*UserUpdate) SetNillableUpdatedBy ¶
func (uu *UserUpdate) SetNillableUpdatedBy(s *string) *UserUpdate
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*UserUpdate) SetOauth ¶
func (uu *UserUpdate) SetOauth(b bool) *UserUpdate
SetOauth sets the "oauth" field.
func (*UserUpdate) SetPassword ¶
func (uu *UserUpdate) SetPassword(s string) *UserUpdate
SetPassword sets the "password" field.
func (*UserUpdate) SetSetting ¶
func (uu *UserUpdate) SetSetting(u *UserSetting) *UserUpdate
SetSetting sets the "setting" edge to the UserSetting entity.
func (*UserUpdate) SetSettingID ¶
func (uu *UserUpdate) SetSettingID(id string) *UserUpdate
SetSettingID sets the "setting" edge to the UserSetting entity by ID.
func (*UserUpdate) SetSub ¶
func (uu *UserUpdate) SetSub(s string) *UserUpdate
SetSub sets the "sub" field.
func (*UserUpdate) SetUpdatedAt ¶
func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
SetUpdatedAt sets the "updated_at" field.
func (*UserUpdate) SetUpdatedBy ¶
func (uu *UserUpdate) SetUpdatedBy(s string) *UserUpdate
SetUpdatedBy sets the "updated_by" 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) AddGroupIDs ¶
func (uuo *UserUpdateOne) AddGroupIDs(ids ...string) *UserUpdateOne
AddGroupIDs adds the "groups" edge to the Group entity by IDs.
func (*UserUpdateOne) AddGroups ¶
func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne
AddGroups adds the "groups" edges to the Group entity.
func (*UserUpdateOne) AddOrganizationIDs ¶
func (uuo *UserUpdateOne) AddOrganizationIDs(ids ...string) *UserUpdateOne
AddOrganizationIDs adds the "organizations" edge to the Organization entity by IDs.
func (*UserUpdateOne) AddOrganizations ¶
func (uuo *UserUpdateOne) AddOrganizations(o ...*Organization) *UserUpdateOne
AddOrganizations adds the "organizations" edges to the Organization entity.
func (*UserUpdateOne) AddPersonalAccessTokenIDs ¶
func (uuo *UserUpdateOne) AddPersonalAccessTokenIDs(ids ...string) *UserUpdateOne
AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.
func (*UserUpdateOne) AddPersonalAccessTokens ¶
func (uuo *UserUpdateOne) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdateOne
AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity.
func (*UserUpdateOne) AddSessionIDs ¶
func (uuo *UserUpdateOne) AddSessionIDs(ids ...string) *UserUpdateOne
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*UserUpdateOne) AddSessions ¶
func (uuo *UserUpdateOne) AddSessions(s ...*Session) *UserUpdateOne
AddSessions adds the "sessions" edges to the Session entity.
func (*UserUpdateOne) ClearAvatarLocalFile ¶
func (uuo *UserUpdateOne) ClearAvatarLocalFile() *UserUpdateOne
ClearAvatarLocalFile clears the value of the "avatar_local_file" field.
func (*UserUpdateOne) ClearAvatarRemoteURL ¶
func (uuo *UserUpdateOne) ClearAvatarRemoteURL() *UserUpdateOne
ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field.
func (*UserUpdateOne) ClearAvatarUpdatedAt ¶
func (uuo *UserUpdateOne) ClearAvatarUpdatedAt() *UserUpdateOne
ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field.
func (*UserUpdateOne) ClearDeletedAt ¶
func (uuo *UserUpdateOne) ClearDeletedAt() *UserUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UserUpdateOne) ClearDeletedBy ¶
func (uuo *UserUpdateOne) ClearDeletedBy() *UserUpdateOne
ClearDeletedBy clears the value of the "deleted_by" field.
func (*UserUpdateOne) ClearGroups ¶
func (uuo *UserUpdateOne) ClearGroups() *UserUpdateOne
ClearGroups clears all "groups" edges to the Group entity.
func (*UserUpdateOne) ClearLastSeen ¶
func (uuo *UserUpdateOne) ClearLastSeen() *UserUpdateOne
ClearLastSeen clears the value of the "last_seen" field.
func (*UserUpdateOne) ClearOrganizations ¶
func (uuo *UserUpdateOne) ClearOrganizations() *UserUpdateOne
ClearOrganizations clears all "organizations" edges to the Organization entity.
func (*UserUpdateOne) ClearPassword ¶
func (uuo *UserUpdateOne) ClearPassword() *UserUpdateOne
ClearPassword clears the value of the "password" field.
func (*UserUpdateOne) ClearPersonalAccessTokens ¶
func (uuo *UserUpdateOne) ClearPersonalAccessTokens() *UserUpdateOne
ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity.
func (*UserUpdateOne) ClearSessions ¶
func (uuo *UserUpdateOne) ClearSessions() *UserUpdateOne
ClearSessions clears all "sessions" edges to the Session entity.
func (*UserUpdateOne) ClearSetting ¶
func (uuo *UserUpdateOne) ClearSetting() *UserUpdateOne
ClearSetting clears the "setting" edge to the UserSetting entity.
func (*UserUpdateOne) ClearSub ¶
func (uuo *UserUpdateOne) ClearSub() *UserUpdateOne
ClearSub clears the value of the "sub" field.
func (*UserUpdateOne) ClearUpdatedBy ¶
func (uuo *UserUpdateOne) ClearUpdatedBy() *UserUpdateOne
ClearUpdatedBy clears the value of the "updated_by" 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) RemoveGroupIDs ¶
func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...string) *UserUpdateOne
RemoveGroupIDs removes the "groups" edge to Group entities by IDs.
func (*UserUpdateOne) RemoveGroups ¶
func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne
RemoveGroups removes "groups" edges to Group entities.
func (*UserUpdateOne) RemoveOrganizationIDs ¶
func (uuo *UserUpdateOne) RemoveOrganizationIDs(ids ...string) *UserUpdateOne
RemoveOrganizationIDs removes the "organizations" edge to Organization entities by IDs.
func (*UserUpdateOne) RemoveOrganizations ¶
func (uuo *UserUpdateOne) RemoveOrganizations(o ...*Organization) *UserUpdateOne
RemoveOrganizations removes "organizations" edges to Organization entities.
func (*UserUpdateOne) RemovePersonalAccessTokenIDs ¶
func (uuo *UserUpdateOne) RemovePersonalAccessTokenIDs(ids ...string) *UserUpdateOne
RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs.
func (*UserUpdateOne) RemovePersonalAccessTokens ¶
func (uuo *UserUpdateOne) RemovePersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdateOne
RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities.
func (*UserUpdateOne) RemoveSessionIDs ¶
func (uuo *UserUpdateOne) RemoveSessionIDs(ids ...string) *UserUpdateOne
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*UserUpdateOne) RemoveSessions ¶
func (uuo *UserUpdateOne) RemoveSessions(s ...*Session) *UserUpdateOne
RemoveSessions removes "sessions" edges to Session 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) SetAvatarLocalFile ¶
func (uuo *UserUpdateOne) SetAvatarLocalFile(s string) *UserUpdateOne
SetAvatarLocalFile sets the "avatar_local_file" field.
func (*UserUpdateOne) SetAvatarRemoteURL ¶
func (uuo *UserUpdateOne) SetAvatarRemoteURL(s string) *UserUpdateOne
SetAvatarRemoteURL sets the "avatar_remote_url" field.
func (*UserUpdateOne) SetAvatarUpdatedAt ¶
func (uuo *UserUpdateOne) SetAvatarUpdatedAt(t time.Time) *UserUpdateOne
SetAvatarUpdatedAt sets the "avatar_updated_at" field.
func (*UserUpdateOne) SetDeletedAt ¶
func (uuo *UserUpdateOne) SetDeletedAt(t time.Time) *UserUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*UserUpdateOne) SetDeletedBy ¶
func (uuo *UserUpdateOne) SetDeletedBy(s string) *UserUpdateOne
SetDeletedBy sets the "deleted_by" field.
func (*UserUpdateOne) SetDisplayName ¶
func (uuo *UserUpdateOne) SetDisplayName(s string) *UserUpdateOne
SetDisplayName sets the "display_name" 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 "first_name" field.
func (*UserUpdateOne) SetInput ¶
func (c *UserUpdateOne) SetInput(i UpdateUserInput) *UserUpdateOne
SetInput applies the change-set in the UpdateUserInput on the UserUpdateOne builder.
func (*UserUpdateOne) SetLastName ¶
func (uuo *UserUpdateOne) SetLastName(s string) *UserUpdateOne
SetLastName sets the "last_name" field.
func (*UserUpdateOne) SetLastSeen ¶
func (uuo *UserUpdateOne) SetLastSeen(t time.Time) *UserUpdateOne
SetLastSeen sets the "last_seen" field.
func (*UserUpdateOne) SetNillableAvatarLocalFile ¶
func (uuo *UserUpdateOne) SetNillableAvatarLocalFile(s *string) *UserUpdateOne
SetNillableAvatarLocalFile sets the "avatar_local_file" field if the given value is not nil.
func (*UserUpdateOne) SetNillableAvatarRemoteURL ¶
func (uuo *UserUpdateOne) SetNillableAvatarRemoteURL(s *string) *UserUpdateOne
SetNillableAvatarRemoteURL sets the "avatar_remote_url" 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) SetNillableDeletedBy ¶
func (uuo *UserUpdateOne) SetNillableDeletedBy(s *string) *UserUpdateOne
SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.
func (*UserUpdateOne) SetNillableDisplayName ¶
func (uuo *UserUpdateOne) SetNillableDisplayName(s *string) *UserUpdateOne
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*UserUpdateOne) SetNillableEmail ¶
func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne
SetNillableEmail sets the "email" field if the given value is not nil.
func (*UserUpdateOne) SetNillableFirstName ¶
func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne
SetNillableFirstName sets the "first_name" field if the given value is not nil.
func (*UserUpdateOne) SetNillableLastName ¶
func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne
SetNillableLastName sets the "last_name" field if the given value is not nil.
func (*UserUpdateOne) SetNillableOauth ¶
func (uuo *UserUpdateOne) SetNillableOauth(b *bool) *UserUpdateOne
SetNillableOauth sets the "oauth" field if the given value is not nil.
func (*UserUpdateOne) SetNillablePassword ¶
func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne
SetNillablePassword sets the "password" field if the given value is not nil.
func (*UserUpdateOne) SetNillableSub ¶
func (uuo *UserUpdateOne) SetNillableSub(s *string) *UserUpdateOne
SetNillableSub sets the "sub" field if the given value is not nil.
func (*UserUpdateOne) SetNillableUpdatedBy ¶
func (uuo *UserUpdateOne) SetNillableUpdatedBy(s *string) *UserUpdateOne
SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.
func (*UserUpdateOne) SetOauth ¶
func (uuo *UserUpdateOne) SetOauth(b bool) *UserUpdateOne
SetOauth sets the "oauth" field.
func (*UserUpdateOne) SetPassword ¶
func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne
SetPassword sets the "password" field.
func (*UserUpdateOne) SetSetting ¶
func (uuo *UserUpdateOne) SetSetting(u *UserSetting) *UserUpdateOne
SetSetting sets the "setting" edge to the UserSetting entity.
func (*UserUpdateOne) SetSettingID ¶
func (uuo *UserUpdateOne) SetSettingID(id string) *UserUpdateOne
SetSettingID sets the "setting" edge to the UserSetting entity by ID.
func (*UserUpdateOne) SetSub ¶
func (uuo *UserUpdateOne) SetSub(s string) *UserUpdateOne
SetSub sets the "sub" field.
func (*UserUpdateOne) SetUpdatedAt ¶
func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*UserUpdateOne) SetUpdatedBy ¶
func (uuo *UserUpdateOne) SetUpdatedBy(s string) *UserUpdateOne
SetUpdatedBy sets the "updated_by" 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 *string `json:"id,omitempty"` IDNEQ *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGT *string `json:"idGT,omitempty"` IDGTE *string `json:"idGTE,omitempty"` IDLT *string `json:"idLT,omitempty"` IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,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"` // "created_by" field predicates. CreatedBy *string `json:"createdBy,omitempty"` CreatedByNEQ *string `json:"createdByNEQ,omitempty"` CreatedByIn []string `json:"createdByIn,omitempty"` CreatedByNotIn []string `json:"createdByNotIn,omitempty"` CreatedByGT *string `json:"createdByGT,omitempty"` CreatedByGTE *string `json:"createdByGTE,omitempty"` CreatedByLT *string `json:"createdByLT,omitempty"` CreatedByLTE *string `json:"createdByLTE,omitempty"` CreatedByContains *string `json:"createdByContains,omitempty"` CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` CreatedByIsNil bool `json:"createdByIsNil,omitempty"` CreatedByNotNil bool `json:"createdByNotNil,omitempty"` CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` // "updated_by" field predicates. UpdatedBy *string `json:"updatedBy,omitempty"` UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` UpdatedByIn []string `json:"updatedByIn,omitempty"` UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` UpdatedByGT *string `json:"updatedByGT,omitempty"` UpdatedByGTE *string `json:"updatedByGTE,omitempty"` UpdatedByLT *string `json:"updatedByLT,omitempty"` UpdatedByLTE *string `json:"updatedByLTE,omitempty"` UpdatedByContains *string `json:"updatedByContains,omitempty"` UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,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"` // "deleted_by" field predicates. DeletedBy *string `json:"deletedBy,omitempty"` DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` DeletedByIn []string `json:"deletedByIn,omitempty"` DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` DeletedByGT *string `json:"deletedByGT,omitempty"` DeletedByGTE *string `json:"deletedByGTE,omitempty"` DeletedByLT *string `json:"deletedByLT,omitempty"` DeletedByLTE *string `json:"deletedByLTE,omitempty"` DeletedByContains *string `json:"deletedByContains,omitempty"` DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` // "first_name" 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"` // "last_name" field predicates. LastName *string `json:"lastName,omitempty"` LastNameNEQ *string `json:"lastNameNEQ,omitempty"` LastNameIn []string `json:"lastNameIn,omitempty"` LastNameNotIn []string `json:"lastNameNotIn,omitempty"` LastNameGT *string `json:"lastNameGT,omitempty"` LastNameGTE *string `json:"lastNameGTE,omitempty"` LastNameLT *string `json:"lastNameLT,omitempty"` LastNameLTE *string `json:"lastNameLTE,omitempty"` LastNameContains *string `json:"lastNameContains,omitempty"` LastNameHasPrefix *string `json:"lastNameHasPrefix,omitempty"` LastNameHasSuffix *string `json:"lastNameHasSuffix,omitempty"` LastNameEqualFold *string `json:"lastNameEqualFold,omitempty"` LastNameContainsFold *string `json:"lastNameContainsFold,omitempty"` // "display_name" field predicates. DisplayName *string `json:"displayName,omitempty"` DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` DisplayNameIn []string `json:"displayNameIn,omitempty"` DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` DisplayNameGT *string `json:"displayNameGT,omitempty"` DisplayNameGTE *string `json:"displayNameGTE,omitempty"` DisplayNameLT *string `json:"displayNameLT,omitempty"` DisplayNameLTE *string `json:"displayNameLTE,omitempty"` DisplayNameContains *string `json:"displayNameContains,omitempty"` DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` // "avatar_remote_url" field predicates. AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` AvatarRemoteURLNEQ *string `json:"avatarRemoteURLNEQ,omitempty"` AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` AvatarRemoteURLGT *string `json:"avatarRemoteURLGT,omitempty"` AvatarRemoteURLGTE *string `json:"avatarRemoteURLGTE,omitempty"` AvatarRemoteURLLT *string `json:"avatarRemoteURLLT,omitempty"` AvatarRemoteURLLTE *string `json:"avatarRemoteURLLTE,omitempty"` AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` AvatarRemoteURLIsNil bool `json:"avatarRemoteURLIsNil,omitempty"` AvatarRemoteURLNotNil bool `json:"avatarRemoteURLNotNil,omitempty"` AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` // "avatar_local_file" field predicates. AvatarLocalFile *string `json:"avatarLocalFile,omitempty"` AvatarLocalFileNEQ *string `json:"avatarLocalFileNEQ,omitempty"` AvatarLocalFileIn []string `json:"avatarLocalFileIn,omitempty"` AvatarLocalFileNotIn []string `json:"avatarLocalFileNotIn,omitempty"` AvatarLocalFileGT *string `json:"avatarLocalFileGT,omitempty"` AvatarLocalFileGTE *string `json:"avatarLocalFileGTE,omitempty"` AvatarLocalFileLT *string `json:"avatarLocalFileLT,omitempty"` AvatarLocalFileLTE *string `json:"avatarLocalFileLTE,omitempty"` AvatarLocalFileContains *string `json:"avatarLocalFileContains,omitempty"` AvatarLocalFileHasPrefix *string `json:"avatarLocalFileHasPrefix,omitempty"` AvatarLocalFileHasSuffix *string `json:"avatarLocalFileHasSuffix,omitempty"` AvatarLocalFileIsNil bool `json:"avatarLocalFileIsNil,omitempty"` AvatarLocalFileNotNil bool `json:"avatarLocalFileNotNil,omitempty"` AvatarLocalFileEqualFold *string `json:"avatarLocalFileEqualFold,omitempty"` AvatarLocalFileContainsFold *string `json:"avatarLocalFileContainsFold,omitempty"` // "avatar_updated_at" field predicates. AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt,omitempty"` AvatarUpdatedAtNEQ *time.Time `json:"avatarUpdatedAtNEQ,omitempty"` AvatarUpdatedAtIn []time.Time `json:"avatarUpdatedAtIn,omitempty"` AvatarUpdatedAtNotIn []time.Time `json:"avatarUpdatedAtNotIn,omitempty"` AvatarUpdatedAtGT *time.Time `json:"avatarUpdatedAtGT,omitempty"` AvatarUpdatedAtGTE *time.Time `json:"avatarUpdatedAtGTE,omitempty"` AvatarUpdatedAtLT *time.Time `json:"avatarUpdatedAtLT,omitempty"` AvatarUpdatedAtLTE *time.Time `json:"avatarUpdatedAtLTE,omitempty"` AvatarUpdatedAtIsNil bool `json:"avatarUpdatedAtIsNil,omitempty"` AvatarUpdatedAtNotNil bool `json:"avatarUpdatedAtNotNil,omitempty"` // "last_seen" field predicates. LastSeen *time.Time `json:"lastSeen,omitempty"` LastSeenNEQ *time.Time `json:"lastSeenNEQ,omitempty"` LastSeenIn []time.Time `json:"lastSeenIn,omitempty"` LastSeenNotIn []time.Time `json:"lastSeenNotIn,omitempty"` LastSeenGT *time.Time `json:"lastSeenGT,omitempty"` LastSeenGTE *time.Time `json:"lastSeenGTE,omitempty"` LastSeenLT *time.Time `json:"lastSeenLT,omitempty"` LastSeenLTE *time.Time `json:"lastSeenLTE,omitempty"` LastSeenIsNil bool `json:"lastSeenIsNil,omitempty"` LastSeenNotNil bool `json:"lastSeenNotNil,omitempty"` // "password" field predicates. Password *string `json:"password,omitempty"` PasswordNEQ *string `json:"passwordNEQ,omitempty"` PasswordIn []string `json:"passwordIn,omitempty"` PasswordNotIn []string `json:"passwordNotIn,omitempty"` PasswordGT *string `json:"passwordGT,omitempty"` PasswordGTE *string `json:"passwordGTE,omitempty"` PasswordLT *string `json:"passwordLT,omitempty"` PasswordLTE *string `json:"passwordLTE,omitempty"` PasswordContains *string `json:"passwordContains,omitempty"` PasswordHasPrefix *string `json:"passwordHasPrefix,omitempty"` PasswordHasSuffix *string `json:"passwordHasSuffix,omitempty"` PasswordIsNil bool `json:"passwordIsNil,omitempty"` PasswordNotNil bool `json:"passwordNotNil,omitempty"` PasswordEqualFold *string `json:"passwordEqualFold,omitempty"` PasswordContainsFold *string `json:"passwordContainsFold,omitempty"` // "sub" field predicates. Sub *string `json:"sub,omitempty"` SubNEQ *string `json:"subNEQ,omitempty"` SubIn []string `json:"subIn,omitempty"` SubNotIn []string `json:"subNotIn,omitempty"` SubGT *string `json:"subGT,omitempty"` SubGTE *string `json:"subGTE,omitempty"` SubLT *string `json:"subLT,omitempty"` SubLTE *string `json:"subLTE,omitempty"` SubContains *string `json:"subContains,omitempty"` SubHasPrefix *string `json:"subHasPrefix,omitempty"` SubHasSuffix *string `json:"subHasSuffix,omitempty"` SubIsNil bool `json:"subIsNil,omitempty"` SubNotNil bool `json:"subNotNil,omitempty"` SubEqualFold *string `json:"subEqualFold,omitempty"` SubContainsFold *string `json:"subContainsFold,omitempty"` // "oauth" field predicates. Oauth *bool `json:"oauth,omitempty"` OauthNEQ *bool `json:"oauthNEQ,omitempty"` // "organizations" edge predicates. HasOrganizations *bool `json:"hasOrganizations,omitempty"` HasOrganizationsWith []*OrganizationWhereInput `json:"hasOrganizationsWith,omitempty"` // "sessions" edge predicates. HasSessions *bool `json:"hasSessions,omitempty"` HasSessionsWith []*SessionWhereInput `json:"hasSessionsWith,omitempty"` // "groups" edge predicates. HasGroups *bool `json:"hasGroups,omitempty"` HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"` // "personal_access_tokens" edge predicates. HasPersonalAccessTokens *bool `json:"hasPersonalAccessTokens,omitempty"` HasPersonalAccessTokensWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokensWith,omitempty"` // "setting" edge predicates. HasSetting *bool `json:"hasSetting,omitempty"` HasSettingWith []*UserSettingWhereInput `json:"hasSettingWith,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 ¶
- client.go
- doc.go
- edge_cleanup.go
- ent.go
- entitlement.go
- entitlement_create.go
- entitlement_delete.go
- entitlement_query.go
- entitlement_update.go
- entql.go
- gql_collection.go
- gql_edge.go
- gql_mutation_input.go
- gql_node.go
- gql_pagination.go
- gql_transaction.go
- gql_where_input.go
- group.go
- group_create.go
- group_delete.go
- group_query.go
- group_update.go
- groupsetting.go
- groupsetting_create.go
- groupsetting_delete.go
- groupsetting_query.go
- groupsetting_update.go
- integration.go
- integration_create.go
- integration_delete.go
- integration_query.go
- integration_update.go
- mutation.go
- oauthprovider.go
- oauthprovider_create.go
- oauthprovider_delete.go
- oauthprovider_query.go
- oauthprovider_update.go
- ohauthtootoken.go
- ohauthtootoken_create.go
- ohauthtootoken_delete.go
- ohauthtootoken_query.go
- ohauthtootoken_update.go
- organization.go
- organization_create.go
- organization_delete.go
- organization_query.go
- organization_update.go
- organizationsetting.go
- organizationsetting_create.go
- organizationsetting_delete.go
- organizationsetting_query.go
- organizationsetting_update.go
- personalaccesstoken.go
- personalaccesstoken_create.go
- personalaccesstoken_delete.go
- personalaccesstoken_query.go
- personalaccesstoken_update.go
- runtime.go
- session.go
- session_create.go
- session_delete.go
- session_query.go
- session_update.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go
- usersetting.go
- usersetting_create.go
- usersetting_delete.go
- usersetting_query.go
- usersetting_update.go