Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type Account
- func (c *Account) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_m *Account) QueryCalendars() *CalendarQuery
- func (c *Account) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *Account) QuerySecrets() *SecretQuery
- func (_m *Account) String() string
- func (_m *Account) Unwrap() *Account
- func (_m *Account) Update() *AccountUpdateOne
- func (_m *Account) Value(name string) (ent.Value, error)
- type AccountClient
- func (c *AccountClient) Create() *AccountCreate
- func (c *AccountClient) CreateBulk(builders ...*AccountCreate) *AccountCreateBulk
- func (c *AccountClient) Delete() *AccountDelete
- func (c *AccountClient) DeleteOne(_m *Account) *AccountDeleteOne
- func (c *AccountClient) DeleteOneID(id string) *AccountDeleteOne
- func (c *AccountClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *AccountClient) Get(ctx context.Context, id string) (*Account, error)
- func (c *AccountClient) GetX(ctx context.Context, id string) *Account
- func (c *AccountClient) Hooks() []Hook
- func (c *AccountClient) Intercept(interceptors ...Interceptor)
- func (c *AccountClient) Interceptors() []Interceptor
- func (c *AccountClient) MapCreateBulk(slice any, setFunc func(*AccountCreate, int)) *AccountCreateBulk
- func (c *AccountClient) Query() *AccountQuery
- func (c *AccountClient) QueryCalendars(_m *Account) *CalendarQuery
- func (c *AccountClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *AccountClient) QuerySecrets(_m *Account) *SecretQuery
- func (c *AccountClient) Update() *AccountUpdate
- func (c *AccountClient) UpdateOne(_m *Account) *AccountUpdateOne
- func (c *AccountClient) UpdateOneID(id string) *AccountUpdateOne
- func (c *AccountClient) Use(hooks ...Hook)
- type AccountCreate
- func (_c *AccountCreate) AddCalendarIDs(ids ...string) *AccountCreate
- func (_c *AccountCreate) AddCalendars(v ...*Calendar) *AccountCreate
- func (_c *AccountCreate) AddSecretIDs(ids ...string) *AccountCreate
- func (_c *AccountCreate) AddSecrets(v ...*Secret) *AccountCreate
- func (_c *AccountCreate) Exec(ctx context.Context) error
- func (c *AccountCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *AccountCreate) ExecX(ctx context.Context)
- func (_c *AccountCreate) Mutation() *AccountMutation
- func (_c *AccountCreate) OnConflict(opts ...sql.ConflictOption) *AccountUpsertOne
- func (_c *AccountCreate) OnConflictColumns(columns ...string) *AccountUpsertOne
- func (c *AccountCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *AccountCreate) Save(ctx context.Context) (*Account, error)
- func (_c *AccountCreate) SaveX(ctx context.Context) *Account
- func (_c *AccountCreate) SetAuthError(v string) *AccountCreate
- func (_c *AccountCreate) SetCreatedAt(v time.Time) *AccountCreate
- func (_c *AccountCreate) SetDisplayName(v string) *AccountCreate
- func (_c *AccountCreate) SetID(v string) *AccountCreate
- func (_c *AccountCreate) SetKind(v account.Kind) *AccountCreate
- func (_c *AccountCreate) SetNeedsReauth(v bool) *AccountCreate
- func (_c *AccountCreate) SetNillableAuthError(v *string) *AccountCreate
- func (_c *AccountCreate) SetNillableCreatedAt(v *time.Time) *AccountCreate
- func (_c *AccountCreate) SetNillableNeedsReauth(v *bool) *AccountCreate
- func (_c *AccountCreate) SetNillableSyncNotice(v *string) *AccountCreate
- func (_c *AccountCreate) SetNillableUpdatedAt(v *time.Time) *AccountCreate
- func (_c *AccountCreate) SetSettings(v map[string]interface{}) *AccountCreate
- func (_c *AccountCreate) SetSyncNotice(v string) *AccountCreate
- func (_c *AccountCreate) SetUpdatedAt(v time.Time) *AccountCreate
- type AccountCreateBulk
- func (_c *AccountCreateBulk) Exec(ctx context.Context) error
- func (c *AccountCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *AccountCreateBulk) ExecX(ctx context.Context)
- func (_c *AccountCreateBulk) OnConflict(opts ...sql.ConflictOption) *AccountUpsertBulk
- func (_c *AccountCreateBulk) OnConflictColumns(columns ...string) *AccountUpsertBulk
- func (c *AccountCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *AccountCreateBulk) Save(ctx context.Context) ([]*Account, error)
- func (_c *AccountCreateBulk) SaveX(ctx context.Context) []*Account
- type AccountDelete
- func (_d *AccountDelete) Exec(ctx context.Context) (int, error)
- func (c *AccountDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *AccountDelete) ExecX(ctx context.Context) int
- func (c *AccountDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *AccountDelete) Where(ps ...predicate.Account) *AccountDelete
- type AccountDeleteOne
- type AccountEdges
- type AccountGroupBy
- func (_g *AccountGroupBy) Aggregate(fns ...AggregateFunc) *AccountGroupBy
- func (s *AccountGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AccountGroupBy) BoolX(ctx context.Context) bool
- func (s *AccountGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AccountGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AccountGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AccountGroupBy) Float64X(ctx context.Context) float64
- func (s *AccountGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AccountGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AccountGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AccountGroupBy) IntX(ctx context.Context) int
- func (s *AccountGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AccountGroupBy) IntsX(ctx context.Context) []int
- func (_g *AccountGroupBy) Scan(ctx context.Context, v any) error
- func (s *AccountGroupBy) ScanX(ctx context.Context, v any)
- func (s *AccountGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AccountGroupBy) StringX(ctx context.Context) string
- func (s *AccountGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AccountGroupBy) StringsX(ctx context.Context) []string
- type AccountMutation
- func (m *AccountMutation) AddCalendarIDs(ids ...string)
- func (m *AccountMutation) AddField(name string, value ent.Value) error
- func (m *AccountMutation) AddSecretIDs(ids ...string)
- func (m *AccountMutation) AddedEdges() []string
- func (m *AccountMutation) AddedField(name string) (ent.Value, bool)
- func (m *AccountMutation) AddedFields() []string
- func (m *AccountMutation) AddedIDs(name string) []ent.Value
- func (m *AccountMutation) AuthError() (r string, exists bool)
- func (m *AccountMutation) AuthErrorCleared() bool
- func (m *AccountMutation) CalendarsCleared() bool
- func (m *AccountMutation) CalendarsIDs() (ids []string)
- func (m *AccountMutation) ClearAuthError()
- func (m *AccountMutation) ClearCalendars()
- func (m *AccountMutation) ClearEdge(name string) error
- func (m *AccountMutation) ClearField(name string) error
- func (m *AccountMutation) ClearSecrets()
- func (m *AccountMutation) ClearSettings()
- func (m *AccountMutation) ClearSyncNotice()
- func (m *AccountMutation) ClearedEdges() []string
- func (m *AccountMutation) ClearedFields() []string
- func (m AccountMutation) Client() *Client
- func (m *AccountMutation) CreatedAt() (r time.Time, exists bool)
- func (m *AccountMutation) DisplayName() (r string, exists bool)
- func (m *AccountMutation) EdgeCleared(name string) bool
- func (c *AccountMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *AccountMutation) Field(name string) (ent.Value, bool)
- func (m *AccountMutation) FieldCleared(name string) bool
- func (m *AccountMutation) Fields() []string
- func (m *AccountMutation) ID() (id string, exists bool)
- func (m *AccountMutation) IDs(ctx context.Context) ([]string, error)
- func (m *AccountMutation) Kind() (r account.Kind, exists bool)
- func (m *AccountMutation) NeedsReauth() (r bool, exists bool)
- func (m *AccountMutation) OldAuthError(ctx context.Context) (v string, err error)
- func (m *AccountMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AccountMutation) OldDisplayName(ctx context.Context) (v string, err error)
- func (m *AccountMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AccountMutation) OldKind(ctx context.Context) (v account.Kind, err error)
- func (m *AccountMutation) OldNeedsReauth(ctx context.Context) (v bool, err error)
- func (m *AccountMutation) OldSettings(ctx context.Context) (v map[string]interface{}, err error)
- func (m *AccountMutation) OldSyncNotice(ctx context.Context) (v string, err error)
- func (m *AccountMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AccountMutation) Op() Op
- func (c *AccountMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *AccountMutation) RemoveCalendarIDs(ids ...string)
- func (m *AccountMutation) RemoveSecretIDs(ids ...string)
- func (m *AccountMutation) RemovedCalendarsIDs() (ids []string)
- func (m *AccountMutation) RemovedEdges() []string
- func (m *AccountMutation) RemovedIDs(name string) []ent.Value
- func (m *AccountMutation) RemovedSecretsIDs() (ids []string)
- func (m *AccountMutation) ResetAuthError()
- func (m *AccountMutation) ResetCalendars()
- func (m *AccountMutation) ResetCreatedAt()
- func (m *AccountMutation) ResetDisplayName()
- func (m *AccountMutation) ResetEdge(name string) error
- func (m *AccountMutation) ResetField(name string) error
- func (m *AccountMutation) ResetKind()
- func (m *AccountMutation) ResetNeedsReauth()
- func (m *AccountMutation) ResetSecrets()
- func (m *AccountMutation) ResetSettings()
- func (m *AccountMutation) ResetSyncNotice()
- func (m *AccountMutation) ResetUpdatedAt()
- func (m *AccountMutation) SecretsCleared() bool
- func (m *AccountMutation) SecretsIDs() (ids []string)
- func (m *AccountMutation) SetAuthError(s string)
- func (m *AccountMutation) SetCreatedAt(t time.Time)
- func (m *AccountMutation) SetDisplayName(s string)
- func (m *AccountMutation) SetField(name string, value ent.Value) error
- func (m *AccountMutation) SetID(id string)
- func (m *AccountMutation) SetKind(a account.Kind)
- func (m *AccountMutation) SetNeedsReauth(b bool)
- func (m *AccountMutation) SetOp(op Op)
- func (m *AccountMutation) SetSettings(value map[string]interface{})
- func (m *AccountMutation) SetSyncNotice(s string)
- func (m *AccountMutation) SetUpdatedAt(t time.Time)
- func (m *AccountMutation) Settings() (r map[string]interface{}, exists bool)
- func (m *AccountMutation) SettingsCleared() bool
- func (m *AccountMutation) SyncNotice() (r string, exists bool)
- func (m *AccountMutation) SyncNoticeCleared() bool
- func (m AccountMutation) Tx() (*Tx, error)
- func (m *AccountMutation) Type() string
- func (m *AccountMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *AccountMutation) Where(ps ...predicate.Account)
- func (m *AccountMutation) WhereP(ps ...func(*sql.Selector))
- type AccountQuery
- func (_q *AccountQuery) Aggregate(fns ...AggregateFunc) *AccountSelect
- func (_q *AccountQuery) All(ctx context.Context) ([]*Account, error)
- func (_q *AccountQuery) AllX(ctx context.Context) []*Account
- func (_q *AccountQuery) Clone() *AccountQuery
- func (_q *AccountQuery) Count(ctx context.Context) (int, error)
- func (_q *AccountQuery) CountX(ctx context.Context) int
- func (c *AccountQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *AccountQuery) Exist(ctx context.Context) (bool, error)
- func (_q *AccountQuery) ExistX(ctx context.Context) bool
- func (_q *AccountQuery) First(ctx context.Context) (*Account, error)
- func (_q *AccountQuery) FirstID(ctx context.Context) (id string, err error)
- func (_q *AccountQuery) FirstIDX(ctx context.Context) string
- func (_q *AccountQuery) FirstX(ctx context.Context) *Account
- func (_q *AccountQuery) GroupBy(field string, fields ...string) *AccountGroupBy
- func (_q *AccountQuery) IDs(ctx context.Context) (ids []string, err error)
- func (_q *AccountQuery) IDsX(ctx context.Context) []string
- func (_q *AccountQuery) Limit(limit int) *AccountQuery
- func (_q *AccountQuery) Modify(modifiers ...func(s *sql.Selector)) *AccountSelect
- func (_q *AccountQuery) Offset(offset int) *AccountQuery
- func (_q *AccountQuery) Only(ctx context.Context) (*Account, error)
- func (_q *AccountQuery) OnlyID(ctx context.Context) (id string, err error)
- func (_q *AccountQuery) OnlyIDX(ctx context.Context) string
- func (_q *AccountQuery) OnlyX(ctx context.Context) *Account
- func (_q *AccountQuery) Order(o ...account.OrderOption) *AccountQuery
- func (_q *AccountQuery) QueryCalendars() *CalendarQuery
- func (c *AccountQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *AccountQuery) QuerySecrets() *SecretQuery
- func (_q *AccountQuery) Select(fields ...string) *AccountSelect
- func (_q *AccountQuery) Unique(unique bool) *AccountQuery
- func (_q *AccountQuery) Where(ps ...predicate.Account) *AccountQuery
- func (_q *AccountQuery) WithCalendars(opts ...func(*CalendarQuery)) *AccountQuery
- func (_q *AccountQuery) WithSecrets(opts ...func(*SecretQuery)) *AccountQuery
- type AccountSelect
- func (_s *AccountSelect) Aggregate(fns ...AggregateFunc) *AccountSelect
- func (s *AccountSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AccountSelect) BoolX(ctx context.Context) bool
- func (s *AccountSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AccountSelect) BoolsX(ctx context.Context) []bool
- func (c AccountSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *AccountSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AccountSelect) Float64X(ctx context.Context) float64
- func (s *AccountSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AccountSelect) Float64sX(ctx context.Context) []float64
- func (s *AccountSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AccountSelect) IntX(ctx context.Context) int
- func (s *AccountSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AccountSelect) IntsX(ctx context.Context) []int
- func (_s *AccountSelect) Modify(modifiers ...func(s *sql.Selector)) *AccountSelect
- func (c AccountSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *AccountSelect) Scan(ctx context.Context, v any) error
- func (s *AccountSelect) ScanX(ctx context.Context, v any)
- func (s *AccountSelect) String(ctx context.Context) (_ string, err error)
- func (s *AccountSelect) StringX(ctx context.Context) string
- func (s *AccountSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AccountSelect) StringsX(ctx context.Context) []string
- type AccountUpdate
- func (_u *AccountUpdate) AddCalendarIDs(ids ...string) *AccountUpdate
- func (_u *AccountUpdate) AddCalendars(v ...*Calendar) *AccountUpdate
- func (_u *AccountUpdate) AddSecretIDs(ids ...string) *AccountUpdate
- func (_u *AccountUpdate) AddSecrets(v ...*Secret) *AccountUpdate
- func (_u *AccountUpdate) ClearAuthError() *AccountUpdate
- func (_u *AccountUpdate) ClearCalendars() *AccountUpdate
- func (_u *AccountUpdate) ClearSecrets() *AccountUpdate
- func (_u *AccountUpdate) ClearSettings() *AccountUpdate
- func (_u *AccountUpdate) ClearSyncNotice() *AccountUpdate
- func (_u *AccountUpdate) Exec(ctx context.Context) error
- func (c *AccountUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *AccountUpdate) ExecX(ctx context.Context)
- func (_u *AccountUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AccountUpdate
- func (_u *AccountUpdate) Mutation() *AccountMutation
- func (c *AccountUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *AccountUpdate) RemoveCalendarIDs(ids ...string) *AccountUpdate
- func (_u *AccountUpdate) RemoveCalendars(v ...*Calendar) *AccountUpdate
- func (_u *AccountUpdate) RemoveSecretIDs(ids ...string) *AccountUpdate
- func (_u *AccountUpdate) RemoveSecrets(v ...*Secret) *AccountUpdate
- func (_u *AccountUpdate) Save(ctx context.Context) (int, error)
- func (_u *AccountUpdate) SaveX(ctx context.Context) int
- func (_u *AccountUpdate) SetAuthError(v string) *AccountUpdate
- func (_u *AccountUpdate) SetDisplayName(v string) *AccountUpdate
- func (_u *AccountUpdate) SetNeedsReauth(v bool) *AccountUpdate
- func (_u *AccountUpdate) SetNillableAuthError(v *string) *AccountUpdate
- func (_u *AccountUpdate) SetNillableDisplayName(v *string) *AccountUpdate
- func (_u *AccountUpdate) SetNillableNeedsReauth(v *bool) *AccountUpdate
- func (_u *AccountUpdate) SetNillableSyncNotice(v *string) *AccountUpdate
- func (_u *AccountUpdate) SetSettings(v map[string]interface{}) *AccountUpdate
- func (_u *AccountUpdate) SetSyncNotice(v string) *AccountUpdate
- func (_u *AccountUpdate) SetUpdatedAt(v time.Time) *AccountUpdate
- func (_u *AccountUpdate) Where(ps ...predicate.Account) *AccountUpdate
- type AccountUpdateOne
- func (_u *AccountUpdateOne) AddCalendarIDs(ids ...string) *AccountUpdateOne
- func (_u *AccountUpdateOne) AddCalendars(v ...*Calendar) *AccountUpdateOne
- func (_u *AccountUpdateOne) AddSecretIDs(ids ...string) *AccountUpdateOne
- func (_u *AccountUpdateOne) AddSecrets(v ...*Secret) *AccountUpdateOne
- func (_u *AccountUpdateOne) ClearAuthError() *AccountUpdateOne
- func (_u *AccountUpdateOne) ClearCalendars() *AccountUpdateOne
- func (_u *AccountUpdateOne) ClearSecrets() *AccountUpdateOne
- func (_u *AccountUpdateOne) ClearSettings() *AccountUpdateOne
- func (_u *AccountUpdateOne) ClearSyncNotice() *AccountUpdateOne
- func (_u *AccountUpdateOne) Exec(ctx context.Context) error
- func (c *AccountUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *AccountUpdateOne) ExecX(ctx context.Context)
- func (_u *AccountUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AccountUpdateOne
- func (_u *AccountUpdateOne) Mutation() *AccountMutation
- func (c *AccountUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *AccountUpdateOne) RemoveCalendarIDs(ids ...string) *AccountUpdateOne
- func (_u *AccountUpdateOne) RemoveCalendars(v ...*Calendar) *AccountUpdateOne
- func (_u *AccountUpdateOne) RemoveSecretIDs(ids ...string) *AccountUpdateOne
- func (_u *AccountUpdateOne) RemoveSecrets(v ...*Secret) *AccountUpdateOne
- func (_u *AccountUpdateOne) Save(ctx context.Context) (*Account, error)
- func (_u *AccountUpdateOne) SaveX(ctx context.Context) *Account
- func (_u *AccountUpdateOne) Select(field string, fields ...string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetAuthError(v string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetDisplayName(v string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetNeedsReauth(v bool) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetNillableAuthError(v *string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetNillableDisplayName(v *string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetNillableNeedsReauth(v *bool) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetNillableSyncNotice(v *string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetSettings(v map[string]interface{}) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetSyncNotice(v string) *AccountUpdateOne
- func (_u *AccountUpdateOne) SetUpdatedAt(v time.Time) *AccountUpdateOne
- func (_u *AccountUpdateOne) Where(ps ...predicate.Account) *AccountUpdateOne
- type AccountUpsert
- func (u *AccountUpsert) ClearAuthError() *AccountUpsert
- func (u *AccountUpsert) ClearSettings() *AccountUpsert
- func (u *AccountUpsert) ClearSyncNotice() *AccountUpsert
- func (u *AccountUpsert) SetAuthError(v string) *AccountUpsert
- func (u *AccountUpsert) SetDisplayName(v string) *AccountUpsert
- func (u *AccountUpsert) SetNeedsReauth(v bool) *AccountUpsert
- func (u *AccountUpsert) SetSettings(v map[string]interface{}) *AccountUpsert
- func (u *AccountUpsert) SetSyncNotice(v string) *AccountUpsert
- func (u *AccountUpsert) SetUpdatedAt(v time.Time) *AccountUpsert
- func (u *AccountUpsert) UpdateAuthError() *AccountUpsert
- func (u *AccountUpsert) UpdateDisplayName() *AccountUpsert
- func (u *AccountUpsert) UpdateNeedsReauth() *AccountUpsert
- func (u *AccountUpsert) UpdateSettings() *AccountUpsert
- func (u *AccountUpsert) UpdateSyncNotice() *AccountUpsert
- func (u *AccountUpsert) UpdateUpdatedAt() *AccountUpsert
- type AccountUpsertBulk
- func (u *AccountUpsertBulk) ClearAuthError() *AccountUpsertBulk
- func (u *AccountUpsertBulk) ClearSettings() *AccountUpsertBulk
- func (u *AccountUpsertBulk) ClearSyncNotice() *AccountUpsertBulk
- func (u *AccountUpsertBulk) DoNothing() *AccountUpsertBulk
- func (u *AccountUpsertBulk) Exec(ctx context.Context) error
- func (u *AccountUpsertBulk) ExecX(ctx context.Context)
- func (u *AccountUpsertBulk) Ignore() *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetAuthError(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetDisplayName(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetNeedsReauth(v bool) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetSettings(v map[string]interface{}) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetSyncNotice(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetUpdatedAt(v time.Time) *AccountUpsertBulk
- func (u *AccountUpsertBulk) Update(set func(*AccountUpsert)) *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateAuthError() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateDisplayName() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateNeedsReauth() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateNewValues() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateSettings() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateSyncNotice() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateUpdatedAt() *AccountUpsertBulk
- type AccountUpsertOne
- func (u *AccountUpsertOne) ClearAuthError() *AccountUpsertOne
- func (u *AccountUpsertOne) ClearSettings() *AccountUpsertOne
- func (u *AccountUpsertOne) ClearSyncNotice() *AccountUpsertOne
- func (u *AccountUpsertOne) DoNothing() *AccountUpsertOne
- func (u *AccountUpsertOne) Exec(ctx context.Context) error
- func (u *AccountUpsertOne) ExecX(ctx context.Context)
- func (u *AccountUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *AccountUpsertOne) IDX(ctx context.Context) string
- func (u *AccountUpsertOne) Ignore() *AccountUpsertOne
- func (u *AccountUpsertOne) SetAuthError(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetDisplayName(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetNeedsReauth(v bool) *AccountUpsertOne
- func (u *AccountUpsertOne) SetSettings(v map[string]interface{}) *AccountUpsertOne
- func (u *AccountUpsertOne) SetSyncNotice(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetUpdatedAt(v time.Time) *AccountUpsertOne
- func (u *AccountUpsertOne) Update(set func(*AccountUpsert)) *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateAuthError() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateDisplayName() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateNeedsReauth() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateNewValues() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateSettings() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateSyncNotice() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateUpdatedAt() *AccountUpsertOne
- type Accounts
- type AggregateFunc
- type Calendar
- func (c *Calendar) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_m *Calendar) QueryAccount() *AccountQuery
- func (c *Calendar) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *Calendar) QueryEvents() *EventQuery
- func (_m *Calendar) QueryTasks() *TaskQuery
- func (_m *Calendar) String() string
- func (_m *Calendar) Unwrap() *Calendar
- func (_m *Calendar) Update() *CalendarUpdateOne
- func (_m *Calendar) Value(name string) (ent.Value, error)
- type CalendarClient
- func (c *CalendarClient) Create() *CalendarCreate
- func (c *CalendarClient) CreateBulk(builders ...*CalendarCreate) *CalendarCreateBulk
- func (c *CalendarClient) Delete() *CalendarDelete
- func (c *CalendarClient) DeleteOne(_m *Calendar) *CalendarDeleteOne
- func (c *CalendarClient) DeleteOneID(id string) *CalendarDeleteOne
- func (c *CalendarClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *CalendarClient) Get(ctx context.Context, id string) (*Calendar, error)
- func (c *CalendarClient) GetX(ctx context.Context, id string) *Calendar
- func (c *CalendarClient) Hooks() []Hook
- func (c *CalendarClient) Intercept(interceptors ...Interceptor)
- func (c *CalendarClient) Interceptors() []Interceptor
- func (c *CalendarClient) MapCreateBulk(slice any, setFunc func(*CalendarCreate, int)) *CalendarCreateBulk
- func (c *CalendarClient) Query() *CalendarQuery
- func (c *CalendarClient) QueryAccount(_m *Calendar) *AccountQuery
- func (c *CalendarClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *CalendarClient) QueryEvents(_m *Calendar) *EventQuery
- func (c *CalendarClient) QueryTasks(_m *Calendar) *TaskQuery
- func (c *CalendarClient) Update() *CalendarUpdate
- func (c *CalendarClient) UpdateOne(_m *Calendar) *CalendarUpdateOne
- func (c *CalendarClient) UpdateOneID(id string) *CalendarUpdateOne
- func (c *CalendarClient) Use(hooks ...Hook)
- type CalendarCreate
- func (_c *CalendarCreate) AddEventIDs(ids ...string) *CalendarCreate
- func (_c *CalendarCreate) AddEvents(v ...*Event) *CalendarCreate
- func (_c *CalendarCreate) AddTaskIDs(ids ...string) *CalendarCreate
- func (_c *CalendarCreate) AddTasks(v ...*Task) *CalendarCreate
- func (_c *CalendarCreate) Exec(ctx context.Context) error
- func (c *CalendarCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *CalendarCreate) ExecX(ctx context.Context)
- func (_c *CalendarCreate) Mutation() *CalendarMutation
- func (_c *CalendarCreate) OnConflict(opts ...sql.ConflictOption) *CalendarUpsertOne
- func (_c *CalendarCreate) OnConflictColumns(columns ...string) *CalendarUpsertOne
- func (c *CalendarCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *CalendarCreate) Save(ctx context.Context) (*Calendar, error)
- func (_c *CalendarCreate) SaveX(ctx context.Context) *Calendar
- func (_c *CalendarCreate) SetAccount(v *Account) *CalendarCreate
- func (_c *CalendarCreate) SetAccountID(id string) *CalendarCreate
- func (_c *CalendarCreate) SetColor(v string) *CalendarCreate
- func (_c *CalendarCreate) SetCreatedAt(v time.Time) *CalendarCreate
- func (_c *CalendarCreate) SetDescription(v string) *CalendarCreate
- func (_c *CalendarCreate) SetHidden(v bool) *CalendarCreate
- func (_c *CalendarCreate) SetID(v string) *CalendarCreate
- func (_c *CalendarCreate) SetName(v string) *CalendarCreate
- func (_c *CalendarCreate) SetNameOverride(v string) *CalendarCreate
- func (_c *CalendarCreate) SetNillableColor(v *string) *CalendarCreate
- func (_c *CalendarCreate) SetNillableCreatedAt(v *time.Time) *CalendarCreate
- func (_c *CalendarCreate) SetNillableDescription(v *string) *CalendarCreate
- func (_c *CalendarCreate) SetNillableHidden(v *bool) *CalendarCreate
- func (_c *CalendarCreate) SetNillableNameOverride(v *string) *CalendarCreate
- func (_c *CalendarCreate) SetNillableReadOnly(v *bool) *CalendarCreate
- func (_c *CalendarCreate) SetNillableSyncDisabled(v *bool) *CalendarCreate
- func (_c *CalendarCreate) SetNillableSyncToken(v *string) *CalendarCreate
- func (_c *CalendarCreate) SetNillableTimeZone(v *string) *CalendarCreate
- func (_c *CalendarCreate) SetNillableUpdatedAt(v *time.Time) *CalendarCreate
- func (_c *CalendarCreate) SetReadOnly(v bool) *CalendarCreate
- func (_c *CalendarCreate) SetReminderOverrides(v *settings.ReminderOverride) *CalendarCreate
- func (_c *CalendarCreate) SetRemoteID(v string) *CalendarCreate
- func (_c *CalendarCreate) SetSupportedComponents(v []string) *CalendarCreate
- func (_c *CalendarCreate) SetSyncDisabled(v bool) *CalendarCreate
- func (_c *CalendarCreate) SetSyncToken(v string) *CalendarCreate
- func (_c *CalendarCreate) SetTimeZone(v string) *CalendarCreate
- func (_c *CalendarCreate) SetUpdatedAt(v time.Time) *CalendarCreate
- type CalendarCreateBulk
- func (_c *CalendarCreateBulk) Exec(ctx context.Context) error
- func (c *CalendarCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *CalendarCreateBulk) ExecX(ctx context.Context)
- func (_c *CalendarCreateBulk) OnConflict(opts ...sql.ConflictOption) *CalendarUpsertBulk
- func (_c *CalendarCreateBulk) OnConflictColumns(columns ...string) *CalendarUpsertBulk
- func (c *CalendarCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *CalendarCreateBulk) Save(ctx context.Context) ([]*Calendar, error)
- func (_c *CalendarCreateBulk) SaveX(ctx context.Context) []*Calendar
- type CalendarDelete
- func (_d *CalendarDelete) Exec(ctx context.Context) (int, error)
- func (c *CalendarDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *CalendarDelete) ExecX(ctx context.Context) int
- func (c *CalendarDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *CalendarDelete) Where(ps ...predicate.Calendar) *CalendarDelete
- type CalendarDeleteOne
- type CalendarEdges
- type CalendarGroupBy
- func (_g *CalendarGroupBy) Aggregate(fns ...AggregateFunc) *CalendarGroupBy
- func (s *CalendarGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CalendarGroupBy) BoolX(ctx context.Context) bool
- func (s *CalendarGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CalendarGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CalendarGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CalendarGroupBy) Float64X(ctx context.Context) float64
- func (s *CalendarGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CalendarGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CalendarGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CalendarGroupBy) IntX(ctx context.Context) int
- func (s *CalendarGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CalendarGroupBy) IntsX(ctx context.Context) []int
- func (_g *CalendarGroupBy) Scan(ctx context.Context, v any) error
- func (s *CalendarGroupBy) ScanX(ctx context.Context, v any)
- func (s *CalendarGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CalendarGroupBy) StringX(ctx context.Context) string
- func (s *CalendarGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CalendarGroupBy) StringsX(ctx context.Context) []string
- type CalendarMutation
- func (m *CalendarMutation) AccountCleared() bool
- func (m *CalendarMutation) AccountID() (id string, exists bool)
- func (m *CalendarMutation) AccountIDs() (ids []string)
- func (m *CalendarMutation) AddEventIDs(ids ...string)
- func (m *CalendarMutation) AddField(name string, value ent.Value) error
- func (m *CalendarMutation) AddTaskIDs(ids ...string)
- func (m *CalendarMutation) AddedEdges() []string
- func (m *CalendarMutation) AddedField(name string) (ent.Value, bool)
- func (m *CalendarMutation) AddedFields() []string
- func (m *CalendarMutation) AddedIDs(name string) []ent.Value
- func (m *CalendarMutation) AppendSupportedComponents(s []string)
- func (m *CalendarMutation) AppendedSupportedComponents() ([]string, bool)
- func (m *CalendarMutation) ClearAccount()
- func (m *CalendarMutation) ClearColor()
- func (m *CalendarMutation) ClearDescription()
- func (m *CalendarMutation) ClearEdge(name string) error
- func (m *CalendarMutation) ClearEvents()
- func (m *CalendarMutation) ClearField(name string) error
- func (m *CalendarMutation) ClearNameOverride()
- func (m *CalendarMutation) ClearReminderOverrides()
- func (m *CalendarMutation) ClearSupportedComponents()
- func (m *CalendarMutation) ClearSyncToken()
- func (m *CalendarMutation) ClearTasks()
- func (m *CalendarMutation) ClearTimeZone()
- func (m *CalendarMutation) ClearedEdges() []string
- func (m *CalendarMutation) ClearedFields() []string
- func (m CalendarMutation) Client() *Client
- func (m *CalendarMutation) Color() (r string, exists bool)
- func (m *CalendarMutation) ColorCleared() bool
- func (m *CalendarMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CalendarMutation) Description() (r string, exists bool)
- func (m *CalendarMutation) DescriptionCleared() bool
- func (m *CalendarMutation) EdgeCleared(name string) bool
- func (m *CalendarMutation) EventsCleared() bool
- func (m *CalendarMutation) EventsIDs() (ids []string)
- func (c *CalendarMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *CalendarMutation) Field(name string) (ent.Value, bool)
- func (m *CalendarMutation) FieldCleared(name string) bool
- func (m *CalendarMutation) Fields() []string
- func (m *CalendarMutation) Hidden() (r bool, exists bool)
- func (m *CalendarMutation) ID() (id string, exists bool)
- func (m *CalendarMutation) IDs(ctx context.Context) ([]string, error)
- func (m *CalendarMutation) Name() (r string, exists bool)
- func (m *CalendarMutation) NameOverride() (r string, exists bool)
- func (m *CalendarMutation) NameOverrideCleared() bool
- func (m *CalendarMutation) OldColor(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CalendarMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CalendarMutation) OldHidden(ctx context.Context) (v bool, err error)
- func (m *CalendarMutation) OldName(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldNameOverride(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldReadOnly(ctx context.Context) (v bool, err error)
- func (m *CalendarMutation) OldReminderOverrides(ctx context.Context) (v *settings.ReminderOverride, err error)
- func (m *CalendarMutation) OldRemoteID(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldSupportedComponents(ctx context.Context) (v []string, err error)
- func (m *CalendarMutation) OldSyncDisabled(ctx context.Context) (v bool, err error)
- func (m *CalendarMutation) OldSyncToken(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldTimeZone(ctx context.Context) (v string, err error)
- func (m *CalendarMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CalendarMutation) Op() Op
- func (c *CalendarMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *CalendarMutation) ReadOnly() (r bool, exists bool)
- func (m *CalendarMutation) ReminderOverrides() (r *settings.ReminderOverride, exists bool)
- func (m *CalendarMutation) ReminderOverridesCleared() bool
- func (m *CalendarMutation) RemoteID() (r string, exists bool)
- func (m *CalendarMutation) RemoveEventIDs(ids ...string)
- func (m *CalendarMutation) RemoveTaskIDs(ids ...string)
- func (m *CalendarMutation) RemovedEdges() []string
- func (m *CalendarMutation) RemovedEventsIDs() (ids []string)
- func (m *CalendarMutation) RemovedIDs(name string) []ent.Value
- func (m *CalendarMutation) RemovedTasksIDs() (ids []string)
- func (m *CalendarMutation) ResetAccount()
- func (m *CalendarMutation) ResetColor()
- func (m *CalendarMutation) ResetCreatedAt()
- func (m *CalendarMutation) ResetDescription()
- func (m *CalendarMutation) ResetEdge(name string) error
- func (m *CalendarMutation) ResetEvents()
- func (m *CalendarMutation) ResetField(name string) error
- func (m *CalendarMutation) ResetHidden()
- func (m *CalendarMutation) ResetName()
- func (m *CalendarMutation) ResetNameOverride()
- func (m *CalendarMutation) ResetReadOnly()
- func (m *CalendarMutation) ResetReminderOverrides()
- func (m *CalendarMutation) ResetRemoteID()
- func (m *CalendarMutation) ResetSupportedComponents()
- func (m *CalendarMutation) ResetSyncDisabled()
- func (m *CalendarMutation) ResetSyncToken()
- func (m *CalendarMutation) ResetTasks()
- func (m *CalendarMutation) ResetTimeZone()
- func (m *CalendarMutation) ResetUpdatedAt()
- func (m *CalendarMutation) SetAccountID(id string)
- func (m *CalendarMutation) SetColor(s string)
- func (m *CalendarMutation) SetCreatedAt(t time.Time)
- func (m *CalendarMutation) SetDescription(s string)
- func (m *CalendarMutation) SetField(name string, value ent.Value) error
- func (m *CalendarMutation) SetHidden(b bool)
- func (m *CalendarMutation) SetID(id string)
- func (m *CalendarMutation) SetName(s string)
- func (m *CalendarMutation) SetNameOverride(s string)
- func (m *CalendarMutation) SetOp(op Op)
- func (m *CalendarMutation) SetReadOnly(b bool)
- func (m *CalendarMutation) SetReminderOverrides(so *settings.ReminderOverride)
- func (m *CalendarMutation) SetRemoteID(s string)
- func (m *CalendarMutation) SetSupportedComponents(s []string)
- func (m *CalendarMutation) SetSyncDisabled(b bool)
- func (m *CalendarMutation) SetSyncToken(s string)
- func (m *CalendarMutation) SetTimeZone(s string)
- func (m *CalendarMutation) SetUpdatedAt(t time.Time)
- func (m *CalendarMutation) SupportedComponents() (r []string, exists bool)
- func (m *CalendarMutation) SupportedComponentsCleared() bool
- func (m *CalendarMutation) SyncDisabled() (r bool, exists bool)
- func (m *CalendarMutation) SyncToken() (r string, exists bool)
- func (m *CalendarMutation) SyncTokenCleared() bool
- func (m *CalendarMutation) TasksCleared() bool
- func (m *CalendarMutation) TasksIDs() (ids []string)
- func (m *CalendarMutation) TimeZone() (r string, exists bool)
- func (m *CalendarMutation) TimeZoneCleared() bool
- func (m CalendarMutation) Tx() (*Tx, error)
- func (m *CalendarMutation) Type() string
- func (m *CalendarMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *CalendarMutation) Where(ps ...predicate.Calendar)
- func (m *CalendarMutation) WhereP(ps ...func(*sql.Selector))
- type CalendarQuery
- func (_q *CalendarQuery) Aggregate(fns ...AggregateFunc) *CalendarSelect
- func (_q *CalendarQuery) All(ctx context.Context) ([]*Calendar, error)
- func (_q *CalendarQuery) AllX(ctx context.Context) []*Calendar
- func (_q *CalendarQuery) Clone() *CalendarQuery
- func (_q *CalendarQuery) Count(ctx context.Context) (int, error)
- func (_q *CalendarQuery) CountX(ctx context.Context) int
- func (c *CalendarQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *CalendarQuery) Exist(ctx context.Context) (bool, error)
- func (_q *CalendarQuery) ExistX(ctx context.Context) bool
- func (_q *CalendarQuery) First(ctx context.Context) (*Calendar, error)
- func (_q *CalendarQuery) FirstID(ctx context.Context) (id string, err error)
- func (_q *CalendarQuery) FirstIDX(ctx context.Context) string
- func (_q *CalendarQuery) FirstX(ctx context.Context) *Calendar
- func (_q *CalendarQuery) GroupBy(field string, fields ...string) *CalendarGroupBy
- func (_q *CalendarQuery) IDs(ctx context.Context) (ids []string, err error)
- func (_q *CalendarQuery) IDsX(ctx context.Context) []string
- func (_q *CalendarQuery) Limit(limit int) *CalendarQuery
- func (_q *CalendarQuery) Modify(modifiers ...func(s *sql.Selector)) *CalendarSelect
- func (_q *CalendarQuery) Offset(offset int) *CalendarQuery
- func (_q *CalendarQuery) Only(ctx context.Context) (*Calendar, error)
- func (_q *CalendarQuery) OnlyID(ctx context.Context) (id string, err error)
- func (_q *CalendarQuery) OnlyIDX(ctx context.Context) string
- func (_q *CalendarQuery) OnlyX(ctx context.Context) *Calendar
- func (_q *CalendarQuery) Order(o ...calendar.OrderOption) *CalendarQuery
- func (_q *CalendarQuery) QueryAccount() *AccountQuery
- func (c *CalendarQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *CalendarQuery) QueryEvents() *EventQuery
- func (_q *CalendarQuery) QueryTasks() *TaskQuery
- func (_q *CalendarQuery) Select(fields ...string) *CalendarSelect
- func (_q *CalendarQuery) Unique(unique bool) *CalendarQuery
- func (_q *CalendarQuery) Where(ps ...predicate.Calendar) *CalendarQuery
- func (_q *CalendarQuery) WithAccount(opts ...func(*AccountQuery)) *CalendarQuery
- func (_q *CalendarQuery) WithEvents(opts ...func(*EventQuery)) *CalendarQuery
- func (_q *CalendarQuery) WithTasks(opts ...func(*TaskQuery)) *CalendarQuery
- type CalendarSelect
- func (_s *CalendarSelect) Aggregate(fns ...AggregateFunc) *CalendarSelect
- func (s *CalendarSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CalendarSelect) BoolX(ctx context.Context) bool
- func (s *CalendarSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CalendarSelect) BoolsX(ctx context.Context) []bool
- func (c CalendarSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *CalendarSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CalendarSelect) Float64X(ctx context.Context) float64
- func (s *CalendarSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CalendarSelect) Float64sX(ctx context.Context) []float64
- func (s *CalendarSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CalendarSelect) IntX(ctx context.Context) int
- func (s *CalendarSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CalendarSelect) IntsX(ctx context.Context) []int
- func (_s *CalendarSelect) Modify(modifiers ...func(s *sql.Selector)) *CalendarSelect
- func (c CalendarSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *CalendarSelect) Scan(ctx context.Context, v any) error
- func (s *CalendarSelect) ScanX(ctx context.Context, v any)
- func (s *CalendarSelect) String(ctx context.Context) (_ string, err error)
- func (s *CalendarSelect) StringX(ctx context.Context) string
- func (s *CalendarSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CalendarSelect) StringsX(ctx context.Context) []string
- type CalendarUpdate
- func (_u *CalendarUpdate) AddEventIDs(ids ...string) *CalendarUpdate
- func (_u *CalendarUpdate) AddEvents(v ...*Event) *CalendarUpdate
- func (_u *CalendarUpdate) AddTaskIDs(ids ...string) *CalendarUpdate
- func (_u *CalendarUpdate) AddTasks(v ...*Task) *CalendarUpdate
- func (_u *CalendarUpdate) AppendSupportedComponents(v []string) *CalendarUpdate
- func (_u *CalendarUpdate) ClearAccount() *CalendarUpdate
- func (_u *CalendarUpdate) ClearColor() *CalendarUpdate
- func (_u *CalendarUpdate) ClearDescription() *CalendarUpdate
- func (_u *CalendarUpdate) ClearEvents() *CalendarUpdate
- func (_u *CalendarUpdate) ClearNameOverride() *CalendarUpdate
- func (_u *CalendarUpdate) ClearReminderOverrides() *CalendarUpdate
- func (_u *CalendarUpdate) ClearSupportedComponents() *CalendarUpdate
- func (_u *CalendarUpdate) ClearSyncToken() *CalendarUpdate
- func (_u *CalendarUpdate) ClearTasks() *CalendarUpdate
- func (_u *CalendarUpdate) ClearTimeZone() *CalendarUpdate
- func (_u *CalendarUpdate) Exec(ctx context.Context) error
- func (c *CalendarUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *CalendarUpdate) ExecX(ctx context.Context)
- func (_u *CalendarUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CalendarUpdate
- func (_u *CalendarUpdate) Mutation() *CalendarMutation
- func (c *CalendarUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *CalendarUpdate) RemoveEventIDs(ids ...string) *CalendarUpdate
- func (_u *CalendarUpdate) RemoveEvents(v ...*Event) *CalendarUpdate
- func (_u *CalendarUpdate) RemoveTaskIDs(ids ...string) *CalendarUpdate
- func (_u *CalendarUpdate) RemoveTasks(v ...*Task) *CalendarUpdate
- func (_u *CalendarUpdate) Save(ctx context.Context) (int, error)
- func (_u *CalendarUpdate) SaveX(ctx context.Context) int
- func (_u *CalendarUpdate) SetAccount(v *Account) *CalendarUpdate
- func (_u *CalendarUpdate) SetAccountID(id string) *CalendarUpdate
- func (_u *CalendarUpdate) SetColor(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetDescription(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetHidden(v bool) *CalendarUpdate
- func (_u *CalendarUpdate) SetName(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNameOverride(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableColor(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableDescription(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableHidden(v *bool) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableName(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableNameOverride(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableReadOnly(v *bool) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableRemoteID(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableSyncDisabled(v *bool) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableSyncToken(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetNillableTimeZone(v *string) *CalendarUpdate
- func (_u *CalendarUpdate) SetReadOnly(v bool) *CalendarUpdate
- func (_u *CalendarUpdate) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpdate
- func (_u *CalendarUpdate) SetRemoteID(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetSupportedComponents(v []string) *CalendarUpdate
- func (_u *CalendarUpdate) SetSyncDisabled(v bool) *CalendarUpdate
- func (_u *CalendarUpdate) SetSyncToken(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetTimeZone(v string) *CalendarUpdate
- func (_u *CalendarUpdate) SetUpdatedAt(v time.Time) *CalendarUpdate
- func (_u *CalendarUpdate) Where(ps ...predicate.Calendar) *CalendarUpdate
- type CalendarUpdateOne
- func (_u *CalendarUpdateOne) AddEventIDs(ids ...string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) AddEvents(v ...*Event) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) AddTaskIDs(ids ...string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) AddTasks(v ...*Task) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) AppendSupportedComponents(v []string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearAccount() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearColor() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearDescription() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearEvents() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearNameOverride() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearReminderOverrides() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearSupportedComponents() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearSyncToken() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearTasks() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) ClearTimeZone() *CalendarUpdateOne
- func (_u *CalendarUpdateOne) Exec(ctx context.Context) error
- func (c *CalendarUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *CalendarUpdateOne) ExecX(ctx context.Context)
- func (_u *CalendarUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) Mutation() *CalendarMutation
- func (c *CalendarUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *CalendarUpdateOne) RemoveEventIDs(ids ...string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) RemoveEvents(v ...*Event) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) RemoveTaskIDs(ids ...string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) RemoveTasks(v ...*Task) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) Save(ctx context.Context) (*Calendar, error)
- func (_u *CalendarUpdateOne) SaveX(ctx context.Context) *Calendar
- func (_u *CalendarUpdateOne) Select(field string, fields ...string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetAccount(v *Account) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetAccountID(id string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetColor(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetDescription(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetHidden(v bool) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetName(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNameOverride(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableColor(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableDescription(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableHidden(v *bool) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableName(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableNameOverride(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableReadOnly(v *bool) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableRemoteID(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableSyncDisabled(v *bool) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableSyncToken(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetNillableTimeZone(v *string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetReadOnly(v bool) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetRemoteID(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetSupportedComponents(v []string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetSyncDisabled(v bool) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetSyncToken(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetTimeZone(v string) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) SetUpdatedAt(v time.Time) *CalendarUpdateOne
- func (_u *CalendarUpdateOne) Where(ps ...predicate.Calendar) *CalendarUpdateOne
- type CalendarUpsert
- func (u *CalendarUpsert) ClearColor() *CalendarUpsert
- func (u *CalendarUpsert) ClearDescription() *CalendarUpsert
- func (u *CalendarUpsert) ClearNameOverride() *CalendarUpsert
- func (u *CalendarUpsert) ClearReminderOverrides() *CalendarUpsert
- func (u *CalendarUpsert) ClearSupportedComponents() *CalendarUpsert
- func (u *CalendarUpsert) ClearSyncToken() *CalendarUpsert
- func (u *CalendarUpsert) ClearTimeZone() *CalendarUpsert
- func (u *CalendarUpsert) SetColor(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetDescription(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetHidden(v bool) *CalendarUpsert
- func (u *CalendarUpsert) SetName(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetNameOverride(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetReadOnly(v bool) *CalendarUpsert
- func (u *CalendarUpsert) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpsert
- func (u *CalendarUpsert) SetRemoteID(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetSupportedComponents(v []string) *CalendarUpsert
- func (u *CalendarUpsert) SetSyncDisabled(v bool) *CalendarUpsert
- func (u *CalendarUpsert) SetSyncToken(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetTimeZone(v string) *CalendarUpsert
- func (u *CalendarUpsert) SetUpdatedAt(v time.Time) *CalendarUpsert
- func (u *CalendarUpsert) UpdateColor() *CalendarUpsert
- func (u *CalendarUpsert) UpdateDescription() *CalendarUpsert
- func (u *CalendarUpsert) UpdateHidden() *CalendarUpsert
- func (u *CalendarUpsert) UpdateName() *CalendarUpsert
- func (u *CalendarUpsert) UpdateNameOverride() *CalendarUpsert
- func (u *CalendarUpsert) UpdateReadOnly() *CalendarUpsert
- func (u *CalendarUpsert) UpdateReminderOverrides() *CalendarUpsert
- func (u *CalendarUpsert) UpdateRemoteID() *CalendarUpsert
- func (u *CalendarUpsert) UpdateSupportedComponents() *CalendarUpsert
- func (u *CalendarUpsert) UpdateSyncDisabled() *CalendarUpsert
- func (u *CalendarUpsert) UpdateSyncToken() *CalendarUpsert
- func (u *CalendarUpsert) UpdateTimeZone() *CalendarUpsert
- func (u *CalendarUpsert) UpdateUpdatedAt() *CalendarUpsert
- type CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearColor() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearDescription() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearNameOverride() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearReminderOverrides() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearSupportedComponents() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearSyncToken() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) ClearTimeZone() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) DoNothing() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) Exec(ctx context.Context) error
- func (u *CalendarUpsertBulk) ExecX(ctx context.Context)
- func (u *CalendarUpsertBulk) Ignore() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetColor(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetDescription(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetHidden(v bool) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetName(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetNameOverride(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetReadOnly(v bool) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetRemoteID(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetSupportedComponents(v []string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetSyncDisabled(v bool) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetSyncToken(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetTimeZone(v string) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) SetUpdatedAt(v time.Time) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) Update(set func(*CalendarUpsert)) *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateColor() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateDescription() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateHidden() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateName() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateNameOverride() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateNewValues() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateReadOnly() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateReminderOverrides() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateRemoteID() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateSupportedComponents() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateSyncDisabled() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateSyncToken() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateTimeZone() *CalendarUpsertBulk
- func (u *CalendarUpsertBulk) UpdateUpdatedAt() *CalendarUpsertBulk
- type CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearColor() *CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearDescription() *CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearNameOverride() *CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearReminderOverrides() *CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearSupportedComponents() *CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearSyncToken() *CalendarUpsertOne
- func (u *CalendarUpsertOne) ClearTimeZone() *CalendarUpsertOne
- func (u *CalendarUpsertOne) DoNothing() *CalendarUpsertOne
- func (u *CalendarUpsertOne) Exec(ctx context.Context) error
- func (u *CalendarUpsertOne) ExecX(ctx context.Context)
- func (u *CalendarUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *CalendarUpsertOne) IDX(ctx context.Context) string
- func (u *CalendarUpsertOne) Ignore() *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetColor(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetDescription(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetHidden(v bool) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetName(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetNameOverride(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetReadOnly(v bool) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetRemoteID(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetSupportedComponents(v []string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetSyncDisabled(v bool) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetSyncToken(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetTimeZone(v string) *CalendarUpsertOne
- func (u *CalendarUpsertOne) SetUpdatedAt(v time.Time) *CalendarUpsertOne
- func (u *CalendarUpsertOne) Update(set func(*CalendarUpsert)) *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateColor() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateDescription() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateHidden() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateName() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateNameOverride() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateNewValues() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateReadOnly() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateReminderOverrides() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateRemoteID() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateSupportedComponents() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateSyncDisabled() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateSyncToken() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateTimeZone() *CalendarUpsertOne
- func (u *CalendarUpsertOne) UpdateUpdatedAt() *CalendarUpsertOne
- type Calendars
- 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) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, 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 Event
- func (c *Event) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_m *Event) QueryCalendar() *CalendarQuery
- func (c *Event) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *Event) String() string
- func (_m *Event) Unwrap() *Event
- func (_m *Event) Update() *EventUpdateOne
- func (_m *Event) Value(name string) (ent.Value, error)
- type EventClient
- func (c *EventClient) Create() *EventCreate
- func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk
- func (c *EventClient) Delete() *EventDelete
- func (c *EventClient) DeleteOne(_m *Event) *EventDeleteOne
- func (c *EventClient) DeleteOneID(id string) *EventDeleteOne
- func (c *EventClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *EventClient) Get(ctx context.Context, id string) (*Event, error)
- func (c *EventClient) GetX(ctx context.Context, id string) *Event
- func (c *EventClient) Hooks() []Hook
- func (c *EventClient) Intercept(interceptors ...Interceptor)
- func (c *EventClient) Interceptors() []Interceptor
- func (c *EventClient) MapCreateBulk(slice any, setFunc func(*EventCreate, int)) *EventCreateBulk
- func (c *EventClient) Query() *EventQuery
- func (c *EventClient) QueryCalendar(_m *Event) *CalendarQuery
- func (c *EventClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *EventClient) Update() *EventUpdate
- func (c *EventClient) UpdateOne(_m *Event) *EventUpdateOne
- func (c *EventClient) UpdateOneID(id string) *EventUpdateOne
- func (c *EventClient) Use(hooks ...Hook)
- type EventCreate
- func (_c *EventCreate) Exec(ctx context.Context) error
- func (c *EventCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *EventCreate) ExecX(ctx context.Context)
- func (_c *EventCreate) Mutation() *EventMutation
- func (_c *EventCreate) OnConflict(opts ...sql.ConflictOption) *EventUpsertOne
- func (_c *EventCreate) OnConflictColumns(columns ...string) *EventUpsertOne
- func (c *EventCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *EventCreate) Save(ctx context.Context) (*Event, error)
- func (_c *EventCreate) SaveX(ctx context.Context) *Event
- func (_c *EventCreate) SetAllDay(v bool) *EventCreate
- func (_c *EventCreate) SetAttendees(v []map[string]interface{}) *EventCreate
- func (_c *EventCreate) SetCalendar(v *Calendar) *EventCreate
- func (_c *EventCreate) SetCalendarID(id string) *EventCreate
- func (_c *EventCreate) SetCategories(v []string) *EventCreate
- func (_c *EventCreate) SetCreated(v time.Time) *EventCreate
- func (_c *EventCreate) SetDescription(v string) *EventCreate
- func (_c *EventCreate) SetEnd(v time.Time) *EventCreate
- func (_c *EventCreate) SetEndTz(v string) *EventCreate
- func (_c *EventCreate) SetEtag(v string) *EventCreate
- func (_c *EventCreate) SetID(v string) *EventCreate
- func (_c *EventCreate) SetLocation(v string) *EventCreate
- func (_c *EventCreate) SetMeetingURL(v string) *EventCreate
- func (_c *EventCreate) SetNillableAllDay(v *bool) *EventCreate
- func (_c *EventCreate) SetNillableCreated(v *time.Time) *EventCreate
- func (_c *EventCreate) SetNillableDescription(v *string) *EventCreate
- func (_c *EventCreate) SetNillableEndTz(v *string) *EventCreate
- func (_c *EventCreate) SetNillableEtag(v *string) *EventCreate
- func (_c *EventCreate) SetNillableLocation(v *string) *EventCreate
- func (_c *EventCreate) SetNillableMeetingURL(v *string) *EventCreate
- func (_c *EventCreate) SetNillableOriginalStart(v *time.Time) *EventCreate
- func (_c *EventCreate) SetNillableRawIcs(v *string) *EventCreate
- func (_c *EventCreate) SetNillableRecurringID(v *string) *EventCreate
- func (_c *EventCreate) SetNillableRemoteID(v *string) *EventCreate
- func (_c *EventCreate) SetNillableStartTz(v *string) *EventCreate
- func (_c *EventCreate) SetNillableStatus(v *event.Status) *EventCreate
- func (_c *EventCreate) SetNillableTransparency(v *string) *EventCreate
- func (_c *EventCreate) SetNillableURL(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUpdated(v *time.Time) *EventCreate
- func (_c *EventCreate) SetNillableVisibility(v *string) *EventCreate
- func (_c *EventCreate) SetOrganizer(v map[string]interface{}) *EventCreate
- func (_c *EventCreate) SetOriginalStart(v time.Time) *EventCreate
- func (_c *EventCreate) SetRawIcs(v string) *EventCreate
- func (_c *EventCreate) SetRecurrence(v map[string]interface{}) *EventCreate
- func (_c *EventCreate) SetRecurringID(v string) *EventCreate
- func (_c *EventCreate) SetReminders(v []map[string]interface{}) *EventCreate
- func (_c *EventCreate) SetRemoteID(v string) *EventCreate
- func (_c *EventCreate) SetStart(v time.Time) *EventCreate
- func (_c *EventCreate) SetStartTz(v string) *EventCreate
- func (_c *EventCreate) SetStatus(v event.Status) *EventCreate
- func (_c *EventCreate) SetSummary(v string) *EventCreate
- func (_c *EventCreate) SetTransparency(v string) *EventCreate
- func (_c *EventCreate) SetUID(v string) *EventCreate
- func (_c *EventCreate) SetURL(v string) *EventCreate
- func (_c *EventCreate) SetUpdated(v time.Time) *EventCreate
- func (_c *EventCreate) SetVisibility(v string) *EventCreate
- type EventCreateBulk
- func (_c *EventCreateBulk) Exec(ctx context.Context) error
- func (c *EventCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *EventCreateBulk) ExecX(ctx context.Context)
- func (_c *EventCreateBulk) OnConflict(opts ...sql.ConflictOption) *EventUpsertBulk
- func (_c *EventCreateBulk) OnConflictColumns(columns ...string) *EventUpsertBulk
- func (c *EventCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *EventCreateBulk) Save(ctx context.Context) ([]*Event, error)
- func (_c *EventCreateBulk) SaveX(ctx context.Context) []*Event
- type EventDelete
- func (_d *EventDelete) Exec(ctx context.Context) (int, error)
- func (c *EventDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *EventDelete) ExecX(ctx context.Context) int
- func (c *EventDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *EventDelete) Where(ps ...predicate.Event) *EventDelete
- type EventDeleteOne
- type EventEdges
- type EventGroupBy
- func (_g *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy
- func (s *EventGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *EventGroupBy) BoolX(ctx context.Context) bool
- func (s *EventGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *EventGroupBy) BoolsX(ctx context.Context) []bool
- func (s *EventGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *EventGroupBy) Float64X(ctx context.Context) float64
- func (s *EventGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *EventGroupBy) Float64sX(ctx context.Context) []float64
- func (s *EventGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *EventGroupBy) IntX(ctx context.Context) int
- func (s *EventGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *EventGroupBy) IntsX(ctx context.Context) []int
- func (_g *EventGroupBy) Scan(ctx context.Context, v any) error
- func (s *EventGroupBy) ScanX(ctx context.Context, v any)
- func (s *EventGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *EventGroupBy) StringX(ctx context.Context) string
- func (s *EventGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *EventGroupBy) StringsX(ctx context.Context) []string
- type EventMutation
- func (m *EventMutation) AddField(name string, value ent.Value) error
- func (m *EventMutation) AddedEdges() []string
- func (m *EventMutation) AddedField(name string) (ent.Value, bool)
- func (m *EventMutation) AddedFields() []string
- func (m *EventMutation) AddedIDs(name string) []ent.Value
- func (m *EventMutation) AllDay() (r bool, exists bool)
- func (m *EventMutation) AppendAttendees(value []map[string]interface{})
- func (m *EventMutation) AppendCategories(s []string)
- func (m *EventMutation) AppendReminders(value []map[string]interface{})
- func (m *EventMutation) AppendedAttendees() ([]map[string]interface{}, bool)
- func (m *EventMutation) AppendedCategories() ([]string, bool)
- func (m *EventMutation) AppendedReminders() ([]map[string]interface{}, bool)
- func (m *EventMutation) Attendees() (r []map[string]interface{}, exists bool)
- func (m *EventMutation) AttendeesCleared() bool
- func (m *EventMutation) CalendarCleared() bool
- func (m *EventMutation) CalendarID() (id string, exists bool)
- func (m *EventMutation) CalendarIDs() (ids []string)
- func (m *EventMutation) Categories() (r []string, exists bool)
- func (m *EventMutation) CategoriesCleared() bool
- func (m *EventMutation) ClearAttendees()
- func (m *EventMutation) ClearCalendar()
- func (m *EventMutation) ClearCategories()
- func (m *EventMutation) ClearDescription()
- func (m *EventMutation) ClearEdge(name string) error
- func (m *EventMutation) ClearEndTz()
- func (m *EventMutation) ClearEtag()
- func (m *EventMutation) ClearField(name string) error
- func (m *EventMutation) ClearLocation()
- func (m *EventMutation) ClearMeetingURL()
- func (m *EventMutation) ClearOrganizer()
- func (m *EventMutation) ClearOriginalStart()
- func (m *EventMutation) ClearRawIcs()
- func (m *EventMutation) ClearRecurrence()
- func (m *EventMutation) ClearRecurringID()
- func (m *EventMutation) ClearReminders()
- func (m *EventMutation) ClearRemoteID()
- func (m *EventMutation) ClearStartTz()
- func (m *EventMutation) ClearTransparency()
- func (m *EventMutation) ClearURL()
- func (m *EventMutation) ClearVisibility()
- func (m *EventMutation) ClearedEdges() []string
- func (m *EventMutation) ClearedFields() []string
- func (m EventMutation) Client() *Client
- func (m *EventMutation) Created() (r time.Time, exists bool)
- func (m *EventMutation) Description() (r string, exists bool)
- func (m *EventMutation) DescriptionCleared() bool
- func (m *EventMutation) EdgeCleared(name string) bool
- func (m *EventMutation) End() (r time.Time, exists bool)
- func (m *EventMutation) EndTz() (r string, exists bool)
- func (m *EventMutation) EndTzCleared() bool
- func (m *EventMutation) Etag() (r string, exists bool)
- func (m *EventMutation) EtagCleared() bool
- func (c *EventMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *EventMutation) Field(name string) (ent.Value, bool)
- func (m *EventMutation) FieldCleared(name string) bool
- func (m *EventMutation) Fields() []string
- func (m *EventMutation) ID() (id string, exists bool)
- func (m *EventMutation) IDs(ctx context.Context) ([]string, error)
- func (m *EventMutation) Location() (r string, exists bool)
- func (m *EventMutation) LocationCleared() bool
- func (m *EventMutation) MeetingURL() (r string, exists bool)
- func (m *EventMutation) MeetingURLCleared() bool
- func (m *EventMutation) OldAllDay(ctx context.Context) (v bool, err error)
- func (m *EventMutation) OldAttendees(ctx context.Context) (v []map[string]interface{}, err error)
- func (m *EventMutation) OldCategories(ctx context.Context) (v []string, err error)
- func (m *EventMutation) OldCreated(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldEnd(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldEndTz(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldEtag(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *EventMutation) OldLocation(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldMeetingURL(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldOrganizer(ctx context.Context) (v map[string]interface{}, err error)
- func (m *EventMutation) OldOriginalStart(ctx context.Context) (v *time.Time, err error)
- func (m *EventMutation) OldRawIcs(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldRecurrence(ctx context.Context) (v map[string]interface{}, err error)
- func (m *EventMutation) OldRecurringID(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldReminders(ctx context.Context) (v []map[string]interface{}, err error)
- func (m *EventMutation) OldRemoteID(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldStart(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldStartTz(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldStatus(ctx context.Context) (v event.Status, err error)
- func (m *EventMutation) OldSummary(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldTransparency(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUID(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldURL(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUpdated(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldVisibility(ctx context.Context) (v string, err error)
- func (m *EventMutation) Op() Op
- func (m *EventMutation) Organizer() (r map[string]interface{}, exists bool)
- func (m *EventMutation) OrganizerCleared() bool
- func (m *EventMutation) OriginalStart() (r time.Time, exists bool)
- func (m *EventMutation) OriginalStartCleared() bool
- func (c *EventMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *EventMutation) RawIcs() (r string, exists bool)
- func (m *EventMutation) RawIcsCleared() bool
- func (m *EventMutation) Recurrence() (r map[string]interface{}, exists bool)
- func (m *EventMutation) RecurrenceCleared() bool
- func (m *EventMutation) RecurringID() (r string, exists bool)
- func (m *EventMutation) RecurringIDCleared() bool
- func (m *EventMutation) Reminders() (r []map[string]interface{}, exists bool)
- func (m *EventMutation) RemindersCleared() bool
- func (m *EventMutation) RemoteID() (r string, exists bool)
- func (m *EventMutation) RemoteIDCleared() bool
- func (m *EventMutation) RemovedEdges() []string
- func (m *EventMutation) RemovedIDs(name string) []ent.Value
- func (m *EventMutation) ResetAllDay()
- func (m *EventMutation) ResetAttendees()
- func (m *EventMutation) ResetCalendar()
- func (m *EventMutation) ResetCategories()
- func (m *EventMutation) ResetCreated()
- func (m *EventMutation) ResetDescription()
- func (m *EventMutation) ResetEdge(name string) error
- func (m *EventMutation) ResetEnd()
- func (m *EventMutation) ResetEndTz()
- func (m *EventMutation) ResetEtag()
- func (m *EventMutation) ResetField(name string) error
- func (m *EventMutation) ResetLocation()
- func (m *EventMutation) ResetMeetingURL()
- func (m *EventMutation) ResetOrganizer()
- func (m *EventMutation) ResetOriginalStart()
- func (m *EventMutation) ResetRawIcs()
- func (m *EventMutation) ResetRecurrence()
- func (m *EventMutation) ResetRecurringID()
- func (m *EventMutation) ResetReminders()
- func (m *EventMutation) ResetRemoteID()
- func (m *EventMutation) ResetStart()
- func (m *EventMutation) ResetStartTz()
- func (m *EventMutation) ResetStatus()
- func (m *EventMutation) ResetSummary()
- func (m *EventMutation) ResetTransparency()
- func (m *EventMutation) ResetUID()
- func (m *EventMutation) ResetURL()
- func (m *EventMutation) ResetUpdated()
- func (m *EventMutation) ResetVisibility()
- func (m *EventMutation) SetAllDay(b bool)
- func (m *EventMutation) SetAttendees(value []map[string]interface{})
- func (m *EventMutation) SetCalendarID(id string)
- func (m *EventMutation) SetCategories(s []string)
- func (m *EventMutation) SetCreated(t time.Time)
- func (m *EventMutation) SetDescription(s string)
- func (m *EventMutation) SetEnd(t time.Time)
- func (m *EventMutation) SetEndTz(s string)
- func (m *EventMutation) SetEtag(s string)
- func (m *EventMutation) SetField(name string, value ent.Value) error
- func (m *EventMutation) SetID(id string)
- func (m *EventMutation) SetLocation(s string)
- func (m *EventMutation) SetMeetingURL(s string)
- func (m *EventMutation) SetOp(op Op)
- func (m *EventMutation) SetOrganizer(value map[string]interface{})
- func (m *EventMutation) SetOriginalStart(t time.Time)
- func (m *EventMutation) SetRawIcs(s string)
- func (m *EventMutation) SetRecurrence(value map[string]interface{})
- func (m *EventMutation) SetRecurringID(s string)
- func (m *EventMutation) SetReminders(value []map[string]interface{})
- func (m *EventMutation) SetRemoteID(s string)
- func (m *EventMutation) SetStart(t time.Time)
- func (m *EventMutation) SetStartTz(s string)
- func (m *EventMutation) SetStatus(e event.Status)
- func (m *EventMutation) SetSummary(s string)
- func (m *EventMutation) SetTransparency(s string)
- func (m *EventMutation) SetUID(s string)
- func (m *EventMutation) SetURL(s string)
- func (m *EventMutation) SetUpdated(t time.Time)
- func (m *EventMutation) SetVisibility(s string)
- func (m *EventMutation) Start() (r time.Time, exists bool)
- func (m *EventMutation) StartTz() (r string, exists bool)
- func (m *EventMutation) StartTzCleared() bool
- func (m *EventMutation) Status() (r event.Status, exists bool)
- func (m *EventMutation) Summary() (r string, exists bool)
- func (m *EventMutation) Transparency() (r string, exists bool)
- func (m *EventMutation) TransparencyCleared() bool
- func (m EventMutation) Tx() (*Tx, error)
- func (m *EventMutation) Type() string
- func (m *EventMutation) UID() (r string, exists bool)
- func (m *EventMutation) URL() (r string, exists bool)
- func (m *EventMutation) URLCleared() bool
- func (m *EventMutation) Updated() (r time.Time, exists bool)
- func (m *EventMutation) Visibility() (r string, exists bool)
- func (m *EventMutation) VisibilityCleared() bool
- func (m *EventMutation) Where(ps ...predicate.Event)
- func (m *EventMutation) WhereP(ps ...func(*sql.Selector))
- type EventQuery
- func (_q *EventQuery) Aggregate(fns ...AggregateFunc) *EventSelect
- func (_q *EventQuery) All(ctx context.Context) ([]*Event, error)
- func (_q *EventQuery) AllX(ctx context.Context) []*Event
- func (_q *EventQuery) Clone() *EventQuery
- func (_q *EventQuery) Count(ctx context.Context) (int, error)
- func (_q *EventQuery) CountX(ctx context.Context) int
- func (c *EventQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *EventQuery) Exist(ctx context.Context) (bool, error)
- func (_q *EventQuery) ExistX(ctx context.Context) bool
- func (_q *EventQuery) First(ctx context.Context) (*Event, error)
- func (_q *EventQuery) FirstID(ctx context.Context) (id string, err error)
- func (_q *EventQuery) FirstIDX(ctx context.Context) string
- func (_q *EventQuery) FirstX(ctx context.Context) *Event
- func (_q *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy
- func (_q *EventQuery) IDs(ctx context.Context) (ids []string, err error)
- func (_q *EventQuery) IDsX(ctx context.Context) []string
- func (_q *EventQuery) Limit(limit int) *EventQuery
- func (_q *EventQuery) Modify(modifiers ...func(s *sql.Selector)) *EventSelect
- func (_q *EventQuery) Offset(offset int) *EventQuery
- func (_q *EventQuery) Only(ctx context.Context) (*Event, error)
- func (_q *EventQuery) OnlyID(ctx context.Context) (id string, err error)
- func (_q *EventQuery) OnlyIDX(ctx context.Context) string
- func (_q *EventQuery) OnlyX(ctx context.Context) *Event
- func (_q *EventQuery) Order(o ...event.OrderOption) *EventQuery
- func (_q *EventQuery) QueryCalendar() *CalendarQuery
- func (c *EventQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *EventQuery) Select(fields ...string) *EventSelect
- func (_q *EventQuery) Unique(unique bool) *EventQuery
- func (_q *EventQuery) Where(ps ...predicate.Event) *EventQuery
- func (_q *EventQuery) WithCalendar(opts ...func(*CalendarQuery)) *EventQuery
- type EventSelect
- func (_s *EventSelect) Aggregate(fns ...AggregateFunc) *EventSelect
- func (s *EventSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *EventSelect) BoolX(ctx context.Context) bool
- func (s *EventSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *EventSelect) BoolsX(ctx context.Context) []bool
- func (c EventSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *EventSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *EventSelect) Float64X(ctx context.Context) float64
- func (s *EventSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *EventSelect) Float64sX(ctx context.Context) []float64
- func (s *EventSelect) Int(ctx context.Context) (_ int, err error)
- func (s *EventSelect) IntX(ctx context.Context) int
- func (s *EventSelect) Ints(ctx context.Context) ([]int, error)
- func (s *EventSelect) IntsX(ctx context.Context) []int
- func (_s *EventSelect) Modify(modifiers ...func(s *sql.Selector)) *EventSelect
- func (c EventSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *EventSelect) Scan(ctx context.Context, v any) error
- func (s *EventSelect) ScanX(ctx context.Context, v any)
- func (s *EventSelect) String(ctx context.Context) (_ string, err error)
- func (s *EventSelect) StringX(ctx context.Context) string
- func (s *EventSelect) Strings(ctx context.Context) ([]string, error)
- func (s *EventSelect) StringsX(ctx context.Context) []string
- type EventUpdate
- func (_u *EventUpdate) AppendAttendees(v []map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) AppendCategories(v []string) *EventUpdate
- func (_u *EventUpdate) AppendReminders(v []map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) ClearAttendees() *EventUpdate
- func (_u *EventUpdate) ClearCalendar() *EventUpdate
- func (_u *EventUpdate) ClearCategories() *EventUpdate
- func (_u *EventUpdate) ClearDescription() *EventUpdate
- func (_u *EventUpdate) ClearEndTz() *EventUpdate
- func (_u *EventUpdate) ClearEtag() *EventUpdate
- func (_u *EventUpdate) ClearLocation() *EventUpdate
- func (_u *EventUpdate) ClearMeetingURL() *EventUpdate
- func (_u *EventUpdate) ClearOrganizer() *EventUpdate
- func (_u *EventUpdate) ClearOriginalStart() *EventUpdate
- func (_u *EventUpdate) ClearRawIcs() *EventUpdate
- func (_u *EventUpdate) ClearRecurrence() *EventUpdate
- func (_u *EventUpdate) ClearRecurringID() *EventUpdate
- func (_u *EventUpdate) ClearReminders() *EventUpdate
- func (_u *EventUpdate) ClearRemoteID() *EventUpdate
- func (_u *EventUpdate) ClearStartTz() *EventUpdate
- func (_u *EventUpdate) ClearTransparency() *EventUpdate
- func (_u *EventUpdate) ClearURL() *EventUpdate
- func (_u *EventUpdate) ClearVisibility() *EventUpdate
- func (_u *EventUpdate) Exec(ctx context.Context) error
- func (c *EventUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *EventUpdate) ExecX(ctx context.Context)
- func (_u *EventUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *EventUpdate
- func (_u *EventUpdate) Mutation() *EventMutation
- func (c *EventUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *EventUpdate) Save(ctx context.Context) (int, error)
- func (_u *EventUpdate) SaveX(ctx context.Context) int
- func (_u *EventUpdate) SetAllDay(v bool) *EventUpdate
- func (_u *EventUpdate) SetAttendees(v []map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) SetCalendar(v *Calendar) *EventUpdate
- func (_u *EventUpdate) SetCalendarID(id string) *EventUpdate
- func (_u *EventUpdate) SetCategories(v []string) *EventUpdate
- func (_u *EventUpdate) SetCreated(v time.Time) *EventUpdate
- func (_u *EventUpdate) SetDescription(v string) *EventUpdate
- func (_u *EventUpdate) SetEnd(v time.Time) *EventUpdate
- func (_u *EventUpdate) SetEndTz(v string) *EventUpdate
- func (_u *EventUpdate) SetEtag(v string) *EventUpdate
- func (_u *EventUpdate) SetLocation(v string) *EventUpdate
- func (_u *EventUpdate) SetMeetingURL(v string) *EventUpdate
- func (_u *EventUpdate) SetNillableAllDay(v *bool) *EventUpdate
- func (_u *EventUpdate) SetNillableCreated(v *time.Time) *EventUpdate
- func (_u *EventUpdate) SetNillableDescription(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableEnd(v *time.Time) *EventUpdate
- func (_u *EventUpdate) SetNillableEndTz(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableEtag(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableLocation(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableMeetingURL(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableOriginalStart(v *time.Time) *EventUpdate
- func (_u *EventUpdate) SetNillableRawIcs(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableRecurringID(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableRemoteID(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableStart(v *time.Time) *EventUpdate
- func (_u *EventUpdate) SetNillableStartTz(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableStatus(v *event.Status) *EventUpdate
- func (_u *EventUpdate) SetNillableSummary(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableTransparency(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUID(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableURL(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableVisibility(v *string) *EventUpdate
- func (_u *EventUpdate) SetOrganizer(v map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) SetOriginalStart(v time.Time) *EventUpdate
- func (_u *EventUpdate) SetRawIcs(v string) *EventUpdate
- func (_u *EventUpdate) SetRecurrence(v map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) SetRecurringID(v string) *EventUpdate
- func (_u *EventUpdate) SetReminders(v []map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) SetRemoteID(v string) *EventUpdate
- func (_u *EventUpdate) SetStart(v time.Time) *EventUpdate
- func (_u *EventUpdate) SetStartTz(v string) *EventUpdate
- func (_u *EventUpdate) SetStatus(v event.Status) *EventUpdate
- func (_u *EventUpdate) SetSummary(v string) *EventUpdate
- func (_u *EventUpdate) SetTransparency(v string) *EventUpdate
- func (_u *EventUpdate) SetUID(v string) *EventUpdate
- func (_u *EventUpdate) SetURL(v string) *EventUpdate
- func (_u *EventUpdate) SetUpdated(v time.Time) *EventUpdate
- func (_u *EventUpdate) SetVisibility(v string) *EventUpdate
- func (_u *EventUpdate) Where(ps ...predicate.Event) *EventUpdate
- type EventUpdateOne
- func (_u *EventUpdateOne) AppendAttendees(v []map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) AppendCategories(v []string) *EventUpdateOne
- func (_u *EventUpdateOne) AppendReminders(v []map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) ClearAttendees() *EventUpdateOne
- func (_u *EventUpdateOne) ClearCalendar() *EventUpdateOne
- func (_u *EventUpdateOne) ClearCategories() *EventUpdateOne
- func (_u *EventUpdateOne) ClearDescription() *EventUpdateOne
- func (_u *EventUpdateOne) ClearEndTz() *EventUpdateOne
- func (_u *EventUpdateOne) ClearEtag() *EventUpdateOne
- func (_u *EventUpdateOne) ClearLocation() *EventUpdateOne
- func (_u *EventUpdateOne) ClearMeetingURL() *EventUpdateOne
- func (_u *EventUpdateOne) ClearOrganizer() *EventUpdateOne
- func (_u *EventUpdateOne) ClearOriginalStart() *EventUpdateOne
- func (_u *EventUpdateOne) ClearRawIcs() *EventUpdateOne
- func (_u *EventUpdateOne) ClearRecurrence() *EventUpdateOne
- func (_u *EventUpdateOne) ClearRecurringID() *EventUpdateOne
- func (_u *EventUpdateOne) ClearReminders() *EventUpdateOne
- func (_u *EventUpdateOne) ClearRemoteID() *EventUpdateOne
- func (_u *EventUpdateOne) ClearStartTz() *EventUpdateOne
- func (_u *EventUpdateOne) ClearTransparency() *EventUpdateOne
- func (_u *EventUpdateOne) ClearURL() *EventUpdateOne
- func (_u *EventUpdateOne) ClearVisibility() *EventUpdateOne
- func (_u *EventUpdateOne) Exec(ctx context.Context) error
- func (c *EventUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *EventUpdateOne) ExecX(ctx context.Context)
- func (_u *EventUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *EventUpdateOne
- func (_u *EventUpdateOne) Mutation() *EventMutation
- func (c *EventUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *EventUpdateOne) Save(ctx context.Context) (*Event, error)
- func (_u *EventUpdateOne) SaveX(ctx context.Context) *Event
- func (_u *EventUpdateOne) Select(field string, fields ...string) *EventUpdateOne
- func (_u *EventUpdateOne) SetAllDay(v bool) *EventUpdateOne
- func (_u *EventUpdateOne) SetAttendees(v []map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) SetCalendar(v *Calendar) *EventUpdateOne
- func (_u *EventUpdateOne) SetCalendarID(id string) *EventUpdateOne
- func (_u *EventUpdateOne) SetCategories(v []string) *EventUpdateOne
- func (_u *EventUpdateOne) SetCreated(v time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetDescription(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetEnd(v time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetEndTz(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetEtag(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetLocation(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetMeetingURL(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableAllDay(v *bool) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableCreated(v *time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableDescription(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableEnd(v *time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableEndTz(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableEtag(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableLocation(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableMeetingURL(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableOriginalStart(v *time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableRawIcs(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableRecurringID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableRemoteID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableStart(v *time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableStartTz(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableStatus(v *event.Status) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableSummary(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableTransparency(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableURL(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableVisibility(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetOrganizer(v map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) SetOriginalStart(v time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetRawIcs(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetRecurrence(v map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) SetRecurringID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetReminders(v []map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) SetRemoteID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetStart(v time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetStartTz(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetStatus(v event.Status) *EventUpdateOne
- func (_u *EventUpdateOne) SetSummary(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetTransparency(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetURL(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUpdated(v time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetVisibility(v string) *EventUpdateOne
- func (_u *EventUpdateOne) Where(ps ...predicate.Event) *EventUpdateOne
- type EventUpsert
- func (u *EventUpsert) ClearAttendees() *EventUpsert
- func (u *EventUpsert) ClearCategories() *EventUpsert
- func (u *EventUpsert) ClearDescription() *EventUpsert
- func (u *EventUpsert) ClearEndTz() *EventUpsert
- func (u *EventUpsert) ClearEtag() *EventUpsert
- func (u *EventUpsert) ClearLocation() *EventUpsert
- func (u *EventUpsert) ClearMeetingURL() *EventUpsert
- func (u *EventUpsert) ClearOrganizer() *EventUpsert
- func (u *EventUpsert) ClearOriginalStart() *EventUpsert
- func (u *EventUpsert) ClearRawIcs() *EventUpsert
- func (u *EventUpsert) ClearRecurrence() *EventUpsert
- func (u *EventUpsert) ClearRecurringID() *EventUpsert
- func (u *EventUpsert) ClearReminders() *EventUpsert
- func (u *EventUpsert) ClearRemoteID() *EventUpsert
- func (u *EventUpsert) ClearStartTz() *EventUpsert
- func (u *EventUpsert) ClearTransparency() *EventUpsert
- func (u *EventUpsert) ClearURL() *EventUpsert
- func (u *EventUpsert) ClearVisibility() *EventUpsert
- func (u *EventUpsert) SetAllDay(v bool) *EventUpsert
- func (u *EventUpsert) SetAttendees(v []map[string]interface{}) *EventUpsert
- func (u *EventUpsert) SetCategories(v []string) *EventUpsert
- func (u *EventUpsert) SetCreated(v time.Time) *EventUpsert
- func (u *EventUpsert) SetDescription(v string) *EventUpsert
- func (u *EventUpsert) SetEnd(v time.Time) *EventUpsert
- func (u *EventUpsert) SetEndTz(v string) *EventUpsert
- func (u *EventUpsert) SetEtag(v string) *EventUpsert
- func (u *EventUpsert) SetLocation(v string) *EventUpsert
- func (u *EventUpsert) SetMeetingURL(v string) *EventUpsert
- func (u *EventUpsert) SetOrganizer(v map[string]interface{}) *EventUpsert
- func (u *EventUpsert) SetOriginalStart(v time.Time) *EventUpsert
- func (u *EventUpsert) SetRawIcs(v string) *EventUpsert
- func (u *EventUpsert) SetRecurrence(v map[string]interface{}) *EventUpsert
- func (u *EventUpsert) SetRecurringID(v string) *EventUpsert
- func (u *EventUpsert) SetReminders(v []map[string]interface{}) *EventUpsert
- func (u *EventUpsert) SetRemoteID(v string) *EventUpsert
- func (u *EventUpsert) SetStart(v time.Time) *EventUpsert
- func (u *EventUpsert) SetStartTz(v string) *EventUpsert
- func (u *EventUpsert) SetStatus(v event.Status) *EventUpsert
- func (u *EventUpsert) SetSummary(v string) *EventUpsert
- func (u *EventUpsert) SetTransparency(v string) *EventUpsert
- func (u *EventUpsert) SetUID(v string) *EventUpsert
- func (u *EventUpsert) SetURL(v string) *EventUpsert
- func (u *EventUpsert) SetUpdated(v time.Time) *EventUpsert
- func (u *EventUpsert) SetVisibility(v string) *EventUpsert
- func (u *EventUpsert) UpdateAllDay() *EventUpsert
- func (u *EventUpsert) UpdateAttendees() *EventUpsert
- func (u *EventUpsert) UpdateCategories() *EventUpsert
- func (u *EventUpsert) UpdateCreated() *EventUpsert
- func (u *EventUpsert) UpdateDescription() *EventUpsert
- func (u *EventUpsert) UpdateEnd() *EventUpsert
- func (u *EventUpsert) UpdateEndTz() *EventUpsert
- func (u *EventUpsert) UpdateEtag() *EventUpsert
- func (u *EventUpsert) UpdateLocation() *EventUpsert
- func (u *EventUpsert) UpdateMeetingURL() *EventUpsert
- func (u *EventUpsert) UpdateOrganizer() *EventUpsert
- func (u *EventUpsert) UpdateOriginalStart() *EventUpsert
- func (u *EventUpsert) UpdateRawIcs() *EventUpsert
- func (u *EventUpsert) UpdateRecurrence() *EventUpsert
- func (u *EventUpsert) UpdateRecurringID() *EventUpsert
- func (u *EventUpsert) UpdateReminders() *EventUpsert
- func (u *EventUpsert) UpdateRemoteID() *EventUpsert
- func (u *EventUpsert) UpdateStart() *EventUpsert
- func (u *EventUpsert) UpdateStartTz() *EventUpsert
- func (u *EventUpsert) UpdateStatus() *EventUpsert
- func (u *EventUpsert) UpdateSummary() *EventUpsert
- func (u *EventUpsert) UpdateTransparency() *EventUpsert
- func (u *EventUpsert) UpdateUID() *EventUpsert
- func (u *EventUpsert) UpdateURL() *EventUpsert
- func (u *EventUpsert) UpdateUpdated() *EventUpsert
- func (u *EventUpsert) UpdateVisibility() *EventUpsert
- type EventUpsertBulk
- func (u *EventUpsertBulk) ClearAttendees() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearCategories() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearDescription() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearEndTz() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearEtag() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearLocation() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearMeetingURL() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearOrganizer() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearOriginalStart() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearRawIcs() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearRecurrence() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearRecurringID() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearReminders() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearRemoteID() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearStartTz() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearTransparency() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearURL() *EventUpsertBulk
- func (u *EventUpsertBulk) ClearVisibility() *EventUpsertBulk
- func (u *EventUpsertBulk) DoNothing() *EventUpsertBulk
- func (u *EventUpsertBulk) Exec(ctx context.Context) error
- func (u *EventUpsertBulk) ExecX(ctx context.Context)
- func (u *EventUpsertBulk) Ignore() *EventUpsertBulk
- func (u *EventUpsertBulk) SetAllDay(v bool) *EventUpsertBulk
- func (u *EventUpsertBulk) SetAttendees(v []map[string]interface{}) *EventUpsertBulk
- func (u *EventUpsertBulk) SetCategories(v []string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetCreated(v time.Time) *EventUpsertBulk
- func (u *EventUpsertBulk) SetDescription(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetEnd(v time.Time) *EventUpsertBulk
- func (u *EventUpsertBulk) SetEndTz(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetEtag(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetLocation(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetMeetingURL(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetOrganizer(v map[string]interface{}) *EventUpsertBulk
- func (u *EventUpsertBulk) SetOriginalStart(v time.Time) *EventUpsertBulk
- func (u *EventUpsertBulk) SetRawIcs(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetRecurrence(v map[string]interface{}) *EventUpsertBulk
- func (u *EventUpsertBulk) SetRecurringID(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetReminders(v []map[string]interface{}) *EventUpsertBulk
- func (u *EventUpsertBulk) SetRemoteID(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetStart(v time.Time) *EventUpsertBulk
- func (u *EventUpsertBulk) SetStartTz(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetStatus(v event.Status) *EventUpsertBulk
- func (u *EventUpsertBulk) SetSummary(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetTransparency(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetUID(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetURL(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) SetUpdated(v time.Time) *EventUpsertBulk
- func (u *EventUpsertBulk) SetVisibility(v string) *EventUpsertBulk
- func (u *EventUpsertBulk) Update(set func(*EventUpsert)) *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateAllDay() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateAttendees() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateCategories() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateCreated() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateDescription() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateEnd() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateEndTz() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateEtag() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateLocation() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateMeetingURL() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateNewValues() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateOrganizer() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateOriginalStart() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateRawIcs() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateRecurrence() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateRecurringID() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateReminders() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateRemoteID() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateStart() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateStartTz() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateStatus() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateSummary() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateTransparency() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateUID() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateURL() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateUpdated() *EventUpsertBulk
- func (u *EventUpsertBulk) UpdateVisibility() *EventUpsertBulk
- type EventUpsertOne
- func (u *EventUpsertOne) ClearAttendees() *EventUpsertOne
- func (u *EventUpsertOne) ClearCategories() *EventUpsertOne
- func (u *EventUpsertOne) ClearDescription() *EventUpsertOne
- func (u *EventUpsertOne) ClearEndTz() *EventUpsertOne
- func (u *EventUpsertOne) ClearEtag() *EventUpsertOne
- func (u *EventUpsertOne) ClearLocation() *EventUpsertOne
- func (u *EventUpsertOne) ClearMeetingURL() *EventUpsertOne
- func (u *EventUpsertOne) ClearOrganizer() *EventUpsertOne
- func (u *EventUpsertOne) ClearOriginalStart() *EventUpsertOne
- func (u *EventUpsertOne) ClearRawIcs() *EventUpsertOne
- func (u *EventUpsertOne) ClearRecurrence() *EventUpsertOne
- func (u *EventUpsertOne) ClearRecurringID() *EventUpsertOne
- func (u *EventUpsertOne) ClearReminders() *EventUpsertOne
- func (u *EventUpsertOne) ClearRemoteID() *EventUpsertOne
- func (u *EventUpsertOne) ClearStartTz() *EventUpsertOne
- func (u *EventUpsertOne) ClearTransparency() *EventUpsertOne
- func (u *EventUpsertOne) ClearURL() *EventUpsertOne
- func (u *EventUpsertOne) ClearVisibility() *EventUpsertOne
- func (u *EventUpsertOne) DoNothing() *EventUpsertOne
- func (u *EventUpsertOne) Exec(ctx context.Context) error
- func (u *EventUpsertOne) ExecX(ctx context.Context)
- func (u *EventUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *EventUpsertOne) IDX(ctx context.Context) string
- func (u *EventUpsertOne) Ignore() *EventUpsertOne
- func (u *EventUpsertOne) SetAllDay(v bool) *EventUpsertOne
- func (u *EventUpsertOne) SetAttendees(v []map[string]interface{}) *EventUpsertOne
- func (u *EventUpsertOne) SetCategories(v []string) *EventUpsertOne
- func (u *EventUpsertOne) SetCreated(v time.Time) *EventUpsertOne
- func (u *EventUpsertOne) SetDescription(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetEnd(v time.Time) *EventUpsertOne
- func (u *EventUpsertOne) SetEndTz(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetEtag(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetLocation(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetMeetingURL(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetOrganizer(v map[string]interface{}) *EventUpsertOne
- func (u *EventUpsertOne) SetOriginalStart(v time.Time) *EventUpsertOne
- func (u *EventUpsertOne) SetRawIcs(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetRecurrence(v map[string]interface{}) *EventUpsertOne
- func (u *EventUpsertOne) SetRecurringID(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetReminders(v []map[string]interface{}) *EventUpsertOne
- func (u *EventUpsertOne) SetRemoteID(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetStart(v time.Time) *EventUpsertOne
- func (u *EventUpsertOne) SetStartTz(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetStatus(v event.Status) *EventUpsertOne
- func (u *EventUpsertOne) SetSummary(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetTransparency(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetUID(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetURL(v string) *EventUpsertOne
- func (u *EventUpsertOne) SetUpdated(v time.Time) *EventUpsertOne
- func (u *EventUpsertOne) SetVisibility(v string) *EventUpsertOne
- func (u *EventUpsertOne) Update(set func(*EventUpsert)) *EventUpsertOne
- func (u *EventUpsertOne) UpdateAllDay() *EventUpsertOne
- func (u *EventUpsertOne) UpdateAttendees() *EventUpsertOne
- func (u *EventUpsertOne) UpdateCategories() *EventUpsertOne
- func (u *EventUpsertOne) UpdateCreated() *EventUpsertOne
- func (u *EventUpsertOne) UpdateDescription() *EventUpsertOne
- func (u *EventUpsertOne) UpdateEnd() *EventUpsertOne
- func (u *EventUpsertOne) UpdateEndTz() *EventUpsertOne
- func (u *EventUpsertOne) UpdateEtag() *EventUpsertOne
- func (u *EventUpsertOne) UpdateLocation() *EventUpsertOne
- func (u *EventUpsertOne) UpdateMeetingURL() *EventUpsertOne
- func (u *EventUpsertOne) UpdateNewValues() *EventUpsertOne
- func (u *EventUpsertOne) UpdateOrganizer() *EventUpsertOne
- func (u *EventUpsertOne) UpdateOriginalStart() *EventUpsertOne
- func (u *EventUpsertOne) UpdateRawIcs() *EventUpsertOne
- func (u *EventUpsertOne) UpdateRecurrence() *EventUpsertOne
- func (u *EventUpsertOne) UpdateRecurringID() *EventUpsertOne
- func (u *EventUpsertOne) UpdateReminders() *EventUpsertOne
- func (u *EventUpsertOne) UpdateRemoteID() *EventUpsertOne
- func (u *EventUpsertOne) UpdateStart() *EventUpsertOne
- func (u *EventUpsertOne) UpdateStartTz() *EventUpsertOne
- func (u *EventUpsertOne) UpdateStatus() *EventUpsertOne
- func (u *EventUpsertOne) UpdateSummary() *EventUpsertOne
- func (u *EventUpsertOne) UpdateTransparency() *EventUpsertOne
- func (u *EventUpsertOne) UpdateUID() *EventUpsertOne
- func (u *EventUpsertOne) UpdateURL() *EventUpsertOne
- func (u *EventUpsertOne) UpdateUpdated() *EventUpsertOne
- func (u *EventUpsertOne) UpdateVisibility() *EventUpsertOne
- type Events
- type Hook
- type InterceptFunc
- type Interceptor
- type InvitationState
- func (c *InvitationState) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *InvitationState) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *InvitationState) String() string
- func (_m *InvitationState) Unwrap() *InvitationState
- func (_m *InvitationState) Update() *InvitationStateUpdateOne
- func (_m *InvitationState) Value(name string) (ent.Value, error)
- type InvitationStateClient
- func (c *InvitationStateClient) Create() *InvitationStateCreate
- func (c *InvitationStateClient) CreateBulk(builders ...*InvitationStateCreate) *InvitationStateCreateBulk
- func (c *InvitationStateClient) Delete() *InvitationStateDelete
- func (c *InvitationStateClient) DeleteOne(_m *InvitationState) *InvitationStateDeleteOne
- func (c *InvitationStateClient) DeleteOneID(id int) *InvitationStateDeleteOne
- func (c *InvitationStateClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *InvitationStateClient) Get(ctx context.Context, id int) (*InvitationState, error)
- func (c *InvitationStateClient) GetX(ctx context.Context, id int) *InvitationState
- func (c *InvitationStateClient) Hooks() []Hook
- func (c *InvitationStateClient) Intercept(interceptors ...Interceptor)
- func (c *InvitationStateClient) Interceptors() []Interceptor
- func (c *InvitationStateClient) MapCreateBulk(slice any, setFunc func(*InvitationStateCreate, int)) *InvitationStateCreateBulk
- func (c *InvitationStateClient) Query() *InvitationStateQuery
- func (c *InvitationStateClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *InvitationStateClient) Update() *InvitationStateUpdate
- func (c *InvitationStateClient) UpdateOne(_m *InvitationState) *InvitationStateUpdateOne
- func (c *InvitationStateClient) UpdateOneID(id int) *InvitationStateUpdateOne
- func (c *InvitationStateClient) Use(hooks ...Hook)
- type InvitationStateCreate
- func (_c *InvitationStateCreate) Exec(ctx context.Context) error
- func (c *InvitationStateCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *InvitationStateCreate) ExecX(ctx context.Context)
- func (_c *InvitationStateCreate) Mutation() *InvitationStateMutation
- func (_c *InvitationStateCreate) OnConflict(opts ...sql.ConflictOption) *InvitationStateUpsertOne
- func (_c *InvitationStateCreate) OnConflictColumns(columns ...string) *InvitationStateUpsertOne
- func (c *InvitationStateCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *InvitationStateCreate) Save(ctx context.Context) (*InvitationState, error)
- func (_c *InvitationStateCreate) SaveX(ctx context.Context) *InvitationState
- func (_c *InvitationStateCreate) SetCalendarID(v string) *InvitationStateCreate
- func (_c *InvitationStateCreate) SetEventStart(v time.Time) *InvitationStateCreate
- func (_c *InvitationStateCreate) SetNillableNotifiedAt(v *time.Time) *InvitationStateCreate
- func (_c *InvitationStateCreate) SetNotifiedAt(v time.Time) *InvitationStateCreate
- func (_c *InvitationStateCreate) SetUID(v string) *InvitationStateCreate
- type InvitationStateCreateBulk
- func (_c *InvitationStateCreateBulk) Exec(ctx context.Context) error
- func (c *InvitationStateCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *InvitationStateCreateBulk) ExecX(ctx context.Context)
- func (_c *InvitationStateCreateBulk) OnConflict(opts ...sql.ConflictOption) *InvitationStateUpsertBulk
- func (_c *InvitationStateCreateBulk) OnConflictColumns(columns ...string) *InvitationStateUpsertBulk
- func (c *InvitationStateCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *InvitationStateCreateBulk) Save(ctx context.Context) ([]*InvitationState, error)
- func (_c *InvitationStateCreateBulk) SaveX(ctx context.Context) []*InvitationState
- type InvitationStateDelete
- func (_d *InvitationStateDelete) Exec(ctx context.Context) (int, error)
- func (c *InvitationStateDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *InvitationStateDelete) ExecX(ctx context.Context) int
- func (c *InvitationStateDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *InvitationStateDelete) Where(ps ...predicate.InvitationState) *InvitationStateDelete
- type InvitationStateDeleteOne
- type InvitationStateGroupBy
- func (_g *InvitationStateGroupBy) Aggregate(fns ...AggregateFunc) *InvitationStateGroupBy
- func (s *InvitationStateGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *InvitationStateGroupBy) BoolX(ctx context.Context) bool
- func (s *InvitationStateGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *InvitationStateGroupBy) BoolsX(ctx context.Context) []bool
- func (s *InvitationStateGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *InvitationStateGroupBy) Float64X(ctx context.Context) float64
- func (s *InvitationStateGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *InvitationStateGroupBy) Float64sX(ctx context.Context) []float64
- func (s *InvitationStateGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *InvitationStateGroupBy) IntX(ctx context.Context) int
- func (s *InvitationStateGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *InvitationStateGroupBy) IntsX(ctx context.Context) []int
- func (_g *InvitationStateGroupBy) Scan(ctx context.Context, v any) error
- func (s *InvitationStateGroupBy) ScanX(ctx context.Context, v any)
- func (s *InvitationStateGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *InvitationStateGroupBy) StringX(ctx context.Context) string
- func (s *InvitationStateGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *InvitationStateGroupBy) StringsX(ctx context.Context) []string
- type InvitationStateMutation
- func (m *InvitationStateMutation) AddField(name string, value ent.Value) error
- func (m *InvitationStateMutation) AddedEdges() []string
- func (m *InvitationStateMutation) AddedField(name string) (ent.Value, bool)
- func (m *InvitationStateMutation) AddedFields() []string
- func (m *InvitationStateMutation) AddedIDs(name string) []ent.Value
- func (m *InvitationStateMutation) CalendarID() (r string, exists bool)
- func (m *InvitationStateMutation) ClearEdge(name string) error
- func (m *InvitationStateMutation) ClearField(name string) error
- func (m *InvitationStateMutation) ClearedEdges() []string
- func (m *InvitationStateMutation) ClearedFields() []string
- func (m InvitationStateMutation) Client() *Client
- func (m *InvitationStateMutation) EdgeCleared(name string) bool
- func (m *InvitationStateMutation) EventStart() (r time.Time, exists bool)
- func (c *InvitationStateMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *InvitationStateMutation) Field(name string) (ent.Value, bool)
- func (m *InvitationStateMutation) FieldCleared(name string) bool
- func (m *InvitationStateMutation) Fields() []string
- func (m *InvitationStateMutation) ID() (id int, exists bool)
- func (m *InvitationStateMutation) IDs(ctx context.Context) ([]int, error)
- func (m *InvitationStateMutation) NotifiedAt() (r time.Time, exists bool)
- func (m *InvitationStateMutation) OldCalendarID(ctx context.Context) (v string, err error)
- func (m *InvitationStateMutation) OldEventStart(ctx context.Context) (v time.Time, err error)
- func (m *InvitationStateMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *InvitationStateMutation) OldNotifiedAt(ctx context.Context) (v time.Time, err error)
- func (m *InvitationStateMutation) OldUID(ctx context.Context) (v string, err error)
- func (m *InvitationStateMutation) Op() Op
- func (c *InvitationStateMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *InvitationStateMutation) RemovedEdges() []string
- func (m *InvitationStateMutation) RemovedIDs(name string) []ent.Value
- func (m *InvitationStateMutation) ResetCalendarID()
- func (m *InvitationStateMutation) ResetEdge(name string) error
- func (m *InvitationStateMutation) ResetEventStart()
- func (m *InvitationStateMutation) ResetField(name string) error
- func (m *InvitationStateMutation) ResetNotifiedAt()
- func (m *InvitationStateMutation) ResetUID()
- func (m *InvitationStateMutation) SetCalendarID(s string)
- func (m *InvitationStateMutation) SetEventStart(t time.Time)
- func (m *InvitationStateMutation) SetField(name string, value ent.Value) error
- func (m *InvitationStateMutation) SetNotifiedAt(t time.Time)
- func (m *InvitationStateMutation) SetOp(op Op)
- func (m *InvitationStateMutation) SetUID(s string)
- func (m InvitationStateMutation) Tx() (*Tx, error)
- func (m *InvitationStateMutation) Type() string
- func (m *InvitationStateMutation) UID() (r string, exists bool)
- func (m *InvitationStateMutation) Where(ps ...predicate.InvitationState)
- func (m *InvitationStateMutation) WhereP(ps ...func(*sql.Selector))
- type InvitationStateQuery
- func (_q *InvitationStateQuery) Aggregate(fns ...AggregateFunc) *InvitationStateSelect
- func (_q *InvitationStateQuery) All(ctx context.Context) ([]*InvitationState, error)
- func (_q *InvitationStateQuery) AllX(ctx context.Context) []*InvitationState
- func (_q *InvitationStateQuery) Clone() *InvitationStateQuery
- func (_q *InvitationStateQuery) Count(ctx context.Context) (int, error)
- func (_q *InvitationStateQuery) CountX(ctx context.Context) int
- func (c *InvitationStateQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *InvitationStateQuery) Exist(ctx context.Context) (bool, error)
- func (_q *InvitationStateQuery) ExistX(ctx context.Context) bool
- func (_q *InvitationStateQuery) First(ctx context.Context) (*InvitationState, error)
- func (_q *InvitationStateQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *InvitationStateQuery) FirstIDX(ctx context.Context) int
- func (_q *InvitationStateQuery) FirstX(ctx context.Context) *InvitationState
- func (_q *InvitationStateQuery) GroupBy(field string, fields ...string) *InvitationStateGroupBy
- func (_q *InvitationStateQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *InvitationStateQuery) IDsX(ctx context.Context) []int
- func (_q *InvitationStateQuery) Limit(limit int) *InvitationStateQuery
- func (_q *InvitationStateQuery) Modify(modifiers ...func(s *sql.Selector)) *InvitationStateSelect
- func (_q *InvitationStateQuery) Offset(offset int) *InvitationStateQuery
- func (_q *InvitationStateQuery) Only(ctx context.Context) (*InvitationState, error)
- func (_q *InvitationStateQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *InvitationStateQuery) OnlyIDX(ctx context.Context) int
- func (_q *InvitationStateQuery) OnlyX(ctx context.Context) *InvitationState
- func (_q *InvitationStateQuery) Order(o ...invitationstate.OrderOption) *InvitationStateQuery
- func (c *InvitationStateQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *InvitationStateQuery) Select(fields ...string) *InvitationStateSelect
- func (_q *InvitationStateQuery) Unique(unique bool) *InvitationStateQuery
- func (_q *InvitationStateQuery) Where(ps ...predicate.InvitationState) *InvitationStateQuery
- type InvitationStateSelect
- func (_s *InvitationStateSelect) Aggregate(fns ...AggregateFunc) *InvitationStateSelect
- func (s *InvitationStateSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *InvitationStateSelect) BoolX(ctx context.Context) bool
- func (s *InvitationStateSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *InvitationStateSelect) BoolsX(ctx context.Context) []bool
- func (c InvitationStateSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *InvitationStateSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *InvitationStateSelect) Float64X(ctx context.Context) float64
- func (s *InvitationStateSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *InvitationStateSelect) Float64sX(ctx context.Context) []float64
- func (s *InvitationStateSelect) Int(ctx context.Context) (_ int, err error)
- func (s *InvitationStateSelect) IntX(ctx context.Context) int
- func (s *InvitationStateSelect) Ints(ctx context.Context) ([]int, error)
- func (s *InvitationStateSelect) IntsX(ctx context.Context) []int
- func (_s *InvitationStateSelect) Modify(modifiers ...func(s *sql.Selector)) *InvitationStateSelect
- func (c InvitationStateSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *InvitationStateSelect) Scan(ctx context.Context, v any) error
- func (s *InvitationStateSelect) ScanX(ctx context.Context, v any)
- func (s *InvitationStateSelect) String(ctx context.Context) (_ string, err error)
- func (s *InvitationStateSelect) StringX(ctx context.Context) string
- func (s *InvitationStateSelect) Strings(ctx context.Context) ([]string, error)
- func (s *InvitationStateSelect) StringsX(ctx context.Context) []string
- type InvitationStateUpdate
- func (_u *InvitationStateUpdate) Exec(ctx context.Context) error
- func (c *InvitationStateUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *InvitationStateUpdate) ExecX(ctx context.Context)
- func (_u *InvitationStateUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) Mutation() *InvitationStateMutation
- func (c *InvitationStateUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *InvitationStateUpdate) Save(ctx context.Context) (int, error)
- func (_u *InvitationStateUpdate) SaveX(ctx context.Context) int
- func (_u *InvitationStateUpdate) SetCalendarID(v string) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetEventStart(v time.Time) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetNillableCalendarID(v *string) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetNillableEventStart(v *time.Time) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetNillableNotifiedAt(v *time.Time) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetNillableUID(v *string) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetNotifiedAt(v time.Time) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) SetUID(v string) *InvitationStateUpdate
- func (_u *InvitationStateUpdate) Where(ps ...predicate.InvitationState) *InvitationStateUpdate
- type InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) Exec(ctx context.Context) error
- func (c *InvitationStateUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *InvitationStateUpdateOne) ExecX(ctx context.Context)
- func (_u *InvitationStateUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) Mutation() *InvitationStateMutation
- func (c *InvitationStateUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *InvitationStateUpdateOne) Save(ctx context.Context) (*InvitationState, error)
- func (_u *InvitationStateUpdateOne) SaveX(ctx context.Context) *InvitationState
- func (_u *InvitationStateUpdateOne) Select(field string, fields ...string) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetCalendarID(v string) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetEventStart(v time.Time) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetNillableCalendarID(v *string) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetNillableEventStart(v *time.Time) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetNillableNotifiedAt(v *time.Time) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetNillableUID(v *string) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetNotifiedAt(v time.Time) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) SetUID(v string) *InvitationStateUpdateOne
- func (_u *InvitationStateUpdateOne) Where(ps ...predicate.InvitationState) *InvitationStateUpdateOne
- type InvitationStateUpsert
- func (u *InvitationStateUpsert) SetCalendarID(v string) *InvitationStateUpsert
- func (u *InvitationStateUpsert) SetEventStart(v time.Time) *InvitationStateUpsert
- func (u *InvitationStateUpsert) SetNotifiedAt(v time.Time) *InvitationStateUpsert
- func (u *InvitationStateUpsert) SetUID(v string) *InvitationStateUpsert
- func (u *InvitationStateUpsert) UpdateCalendarID() *InvitationStateUpsert
- func (u *InvitationStateUpsert) UpdateEventStart() *InvitationStateUpsert
- func (u *InvitationStateUpsert) UpdateNotifiedAt() *InvitationStateUpsert
- func (u *InvitationStateUpsert) UpdateUID() *InvitationStateUpsert
- type InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) DoNothing() *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) Exec(ctx context.Context) error
- func (u *InvitationStateUpsertBulk) ExecX(ctx context.Context)
- func (u *InvitationStateUpsertBulk) Ignore() *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) SetCalendarID(v string) *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) SetEventStart(v time.Time) *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) SetNotifiedAt(v time.Time) *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) SetUID(v string) *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) Update(set func(*InvitationStateUpsert)) *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) UpdateCalendarID() *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) UpdateEventStart() *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) UpdateNewValues() *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) UpdateNotifiedAt() *InvitationStateUpsertBulk
- func (u *InvitationStateUpsertBulk) UpdateUID() *InvitationStateUpsertBulk
- type InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) DoNothing() *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) Exec(ctx context.Context) error
- func (u *InvitationStateUpsertOne) ExecX(ctx context.Context)
- func (u *InvitationStateUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *InvitationStateUpsertOne) IDX(ctx context.Context) int
- func (u *InvitationStateUpsertOne) Ignore() *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) SetCalendarID(v string) *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) SetEventStart(v time.Time) *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) SetNotifiedAt(v time.Time) *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) SetUID(v string) *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) Update(set func(*InvitationStateUpsert)) *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) UpdateCalendarID() *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) UpdateEventStart() *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) UpdateNewValues() *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) UpdateNotifiedAt() *InvitationStateUpsertOne
- func (u *InvitationStateUpsertOne) UpdateUID() *InvitationStateUpsertOne
- type InvitationStates
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type ReminderState
- func (c *ReminderState) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ReminderState) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *ReminderState) String() string
- func (_m *ReminderState) Unwrap() *ReminderState
- func (_m *ReminderState) Update() *ReminderStateUpdateOne
- func (_m *ReminderState) Value(name string) (ent.Value, error)
- type ReminderStateClient
- func (c *ReminderStateClient) Create() *ReminderStateCreate
- func (c *ReminderStateClient) CreateBulk(builders ...*ReminderStateCreate) *ReminderStateCreateBulk
- func (c *ReminderStateClient) Delete() *ReminderStateDelete
- func (c *ReminderStateClient) DeleteOne(_m *ReminderState) *ReminderStateDeleteOne
- func (c *ReminderStateClient) DeleteOneID(id int) *ReminderStateDeleteOne
- func (c *ReminderStateClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ReminderStateClient) Get(ctx context.Context, id int) (*ReminderState, error)
- func (c *ReminderStateClient) GetX(ctx context.Context, id int) *ReminderState
- func (c *ReminderStateClient) Hooks() []Hook
- func (c *ReminderStateClient) Intercept(interceptors ...Interceptor)
- func (c *ReminderStateClient) Interceptors() []Interceptor
- func (c *ReminderStateClient) MapCreateBulk(slice any, setFunc func(*ReminderStateCreate, int)) *ReminderStateCreateBulk
- func (c *ReminderStateClient) Query() *ReminderStateQuery
- func (c *ReminderStateClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *ReminderStateClient) Update() *ReminderStateUpdate
- func (c *ReminderStateClient) UpdateOne(_m *ReminderState) *ReminderStateUpdateOne
- func (c *ReminderStateClient) UpdateOneID(id int) *ReminderStateUpdateOne
- func (c *ReminderStateClient) Use(hooks ...Hook)
- type ReminderStateCreate
- func (_c *ReminderStateCreate) Exec(ctx context.Context) error
- func (c *ReminderStateCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *ReminderStateCreate) ExecX(ctx context.Context)
- func (_c *ReminderStateCreate) Mutation() *ReminderStateMutation
- func (_c *ReminderStateCreate) OnConflict(opts ...sql.ConflictOption) *ReminderStateUpsertOne
- func (_c *ReminderStateCreate) OnConflictColumns(columns ...string) *ReminderStateUpsertOne
- func (c *ReminderStateCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *ReminderStateCreate) Save(ctx context.Context) (*ReminderState, error)
- func (_c *ReminderStateCreate) SaveX(ctx context.Context) *ReminderState
- func (_c *ReminderStateCreate) SetCalendarID(v string) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetFiredAt(v time.Time) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetMinutes(v int) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetNillableFiredAt(v *time.Time) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetNillableSnoozedUntil(v *time.Time) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetOccurrenceStart(v time.Time) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetSnoozedUntil(v time.Time) *ReminderStateCreate
- func (_c *ReminderStateCreate) SetUID(v string) *ReminderStateCreate
- type ReminderStateCreateBulk
- func (_c *ReminderStateCreateBulk) Exec(ctx context.Context) error
- func (c *ReminderStateCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *ReminderStateCreateBulk) ExecX(ctx context.Context)
- func (_c *ReminderStateCreateBulk) OnConflict(opts ...sql.ConflictOption) *ReminderStateUpsertBulk
- func (_c *ReminderStateCreateBulk) OnConflictColumns(columns ...string) *ReminderStateUpsertBulk
- func (c *ReminderStateCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *ReminderStateCreateBulk) Save(ctx context.Context) ([]*ReminderState, error)
- func (_c *ReminderStateCreateBulk) SaveX(ctx context.Context) []*ReminderState
- type ReminderStateDelete
- func (_d *ReminderStateDelete) Exec(ctx context.Context) (int, error)
- func (c *ReminderStateDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *ReminderStateDelete) ExecX(ctx context.Context) int
- func (c *ReminderStateDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *ReminderStateDelete) Where(ps ...predicate.ReminderState) *ReminderStateDelete
- type ReminderStateDeleteOne
- type ReminderStateGroupBy
- func (_g *ReminderStateGroupBy) Aggregate(fns ...AggregateFunc) *ReminderStateGroupBy
- func (s *ReminderStateGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReminderStateGroupBy) BoolX(ctx context.Context) bool
- func (s *ReminderStateGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReminderStateGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReminderStateGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReminderStateGroupBy) Float64X(ctx context.Context) float64
- func (s *ReminderStateGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReminderStateGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReminderStateGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReminderStateGroupBy) IntX(ctx context.Context) int
- func (s *ReminderStateGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReminderStateGroupBy) IntsX(ctx context.Context) []int
- func (_g *ReminderStateGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReminderStateGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReminderStateGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReminderStateGroupBy) StringX(ctx context.Context) string
- func (s *ReminderStateGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReminderStateGroupBy) StringsX(ctx context.Context) []string
- type ReminderStateMutation
- func (m *ReminderStateMutation) AddField(name string, value ent.Value) error
- func (m *ReminderStateMutation) AddMinutes(i int)
- func (m *ReminderStateMutation) AddedEdges() []string
- func (m *ReminderStateMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReminderStateMutation) AddedFields() []string
- func (m *ReminderStateMutation) AddedIDs(name string) []ent.Value
- func (m *ReminderStateMutation) AddedMinutes() (r int, exists bool)
- func (m *ReminderStateMutation) CalendarID() (r string, exists bool)
- func (m *ReminderStateMutation) ClearEdge(name string) error
- func (m *ReminderStateMutation) ClearField(name string) error
- func (m *ReminderStateMutation) ClearSnoozedUntil()
- func (m *ReminderStateMutation) ClearedEdges() []string
- func (m *ReminderStateMutation) ClearedFields() []string
- func (m ReminderStateMutation) Client() *Client
- func (m *ReminderStateMutation) EdgeCleared(name string) bool
- func (c *ReminderStateMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *ReminderStateMutation) Field(name string) (ent.Value, bool)
- func (m *ReminderStateMutation) FieldCleared(name string) bool
- func (m *ReminderStateMutation) Fields() []string
- func (m *ReminderStateMutation) FiredAt() (r time.Time, exists bool)
- func (m *ReminderStateMutation) ID() (id int, exists bool)
- func (m *ReminderStateMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReminderStateMutation) Minutes() (r int, exists bool)
- func (m *ReminderStateMutation) OccurrenceStart() (r time.Time, exists bool)
- func (m *ReminderStateMutation) OldCalendarID(ctx context.Context) (v string, err error)
- func (m *ReminderStateMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReminderStateMutation) OldFiredAt(ctx context.Context) (v time.Time, err error)
- func (m *ReminderStateMutation) OldMinutes(ctx context.Context) (v int, err error)
- func (m *ReminderStateMutation) OldOccurrenceStart(ctx context.Context) (v time.Time, err error)
- func (m *ReminderStateMutation) OldSnoozedUntil(ctx context.Context) (v *time.Time, err error)
- func (m *ReminderStateMutation) OldUID(ctx context.Context) (v string, err error)
- func (m *ReminderStateMutation) Op() Op
- func (c *ReminderStateMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *ReminderStateMutation) RemovedEdges() []string
- func (m *ReminderStateMutation) RemovedIDs(name string) []ent.Value
- func (m *ReminderStateMutation) ResetCalendarID()
- func (m *ReminderStateMutation) ResetEdge(name string) error
- func (m *ReminderStateMutation) ResetField(name string) error
- func (m *ReminderStateMutation) ResetFiredAt()
- func (m *ReminderStateMutation) ResetMinutes()
- func (m *ReminderStateMutation) ResetOccurrenceStart()
- func (m *ReminderStateMutation) ResetSnoozedUntil()
- func (m *ReminderStateMutation) ResetUID()
- func (m *ReminderStateMutation) SetCalendarID(s string)
- func (m *ReminderStateMutation) SetField(name string, value ent.Value) error
- func (m *ReminderStateMutation) SetFiredAt(t time.Time)
- func (m *ReminderStateMutation) SetMinutes(i int)
- func (m *ReminderStateMutation) SetOccurrenceStart(t time.Time)
- func (m *ReminderStateMutation) SetOp(op Op)
- func (m *ReminderStateMutation) SetSnoozedUntil(t time.Time)
- func (m *ReminderStateMutation) SetUID(s string)
- func (m *ReminderStateMutation) SnoozedUntil() (r time.Time, exists bool)
- func (m *ReminderStateMutation) SnoozedUntilCleared() bool
- func (m ReminderStateMutation) Tx() (*Tx, error)
- func (m *ReminderStateMutation) Type() string
- func (m *ReminderStateMutation) UID() (r string, exists bool)
- func (m *ReminderStateMutation) Where(ps ...predicate.ReminderState)
- func (m *ReminderStateMutation) WhereP(ps ...func(*sql.Selector))
- type ReminderStateQuery
- func (_q *ReminderStateQuery) Aggregate(fns ...AggregateFunc) *ReminderStateSelect
- func (_q *ReminderStateQuery) All(ctx context.Context) ([]*ReminderState, error)
- func (_q *ReminderStateQuery) AllX(ctx context.Context) []*ReminderState
- func (_q *ReminderStateQuery) Clone() *ReminderStateQuery
- func (_q *ReminderStateQuery) Count(ctx context.Context) (int, error)
- func (_q *ReminderStateQuery) CountX(ctx context.Context) int
- func (c *ReminderStateQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *ReminderStateQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ReminderStateQuery) ExistX(ctx context.Context) bool
- func (_q *ReminderStateQuery) First(ctx context.Context) (*ReminderState, error)
- func (_q *ReminderStateQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *ReminderStateQuery) FirstIDX(ctx context.Context) int
- func (_q *ReminderStateQuery) FirstX(ctx context.Context) *ReminderState
- func (_q *ReminderStateQuery) GroupBy(field string, fields ...string) *ReminderStateGroupBy
- func (_q *ReminderStateQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *ReminderStateQuery) IDsX(ctx context.Context) []int
- func (_q *ReminderStateQuery) Limit(limit int) *ReminderStateQuery
- func (_q *ReminderStateQuery) Modify(modifiers ...func(s *sql.Selector)) *ReminderStateSelect
- func (_q *ReminderStateQuery) Offset(offset int) *ReminderStateQuery
- func (_q *ReminderStateQuery) Only(ctx context.Context) (*ReminderState, error)
- func (_q *ReminderStateQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *ReminderStateQuery) OnlyIDX(ctx context.Context) int
- func (_q *ReminderStateQuery) OnlyX(ctx context.Context) *ReminderState
- func (_q *ReminderStateQuery) Order(o ...reminderstate.OrderOption) *ReminderStateQuery
- func (c *ReminderStateQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *ReminderStateQuery) Select(fields ...string) *ReminderStateSelect
- func (_q *ReminderStateQuery) Unique(unique bool) *ReminderStateQuery
- func (_q *ReminderStateQuery) Where(ps ...predicate.ReminderState) *ReminderStateQuery
- type ReminderStateSelect
- func (_s *ReminderStateSelect) Aggregate(fns ...AggregateFunc) *ReminderStateSelect
- func (s *ReminderStateSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReminderStateSelect) BoolX(ctx context.Context) bool
- func (s *ReminderStateSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReminderStateSelect) BoolsX(ctx context.Context) []bool
- func (c ReminderStateSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *ReminderStateSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReminderStateSelect) Float64X(ctx context.Context) float64
- func (s *ReminderStateSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReminderStateSelect) Float64sX(ctx context.Context) []float64
- func (s *ReminderStateSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReminderStateSelect) IntX(ctx context.Context) int
- func (s *ReminderStateSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReminderStateSelect) IntsX(ctx context.Context) []int
- func (_s *ReminderStateSelect) Modify(modifiers ...func(s *sql.Selector)) *ReminderStateSelect
- func (c ReminderStateSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *ReminderStateSelect) Scan(ctx context.Context, v any) error
- func (s *ReminderStateSelect) ScanX(ctx context.Context, v any)
- func (s *ReminderStateSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReminderStateSelect) StringX(ctx context.Context) string
- func (s *ReminderStateSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReminderStateSelect) StringsX(ctx context.Context) []string
- type ReminderStateUpdate
- func (_u *ReminderStateUpdate) AddMinutes(v int) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) ClearSnoozedUntil() *ReminderStateUpdate
- func (_u *ReminderStateUpdate) Exec(ctx context.Context) error
- func (c *ReminderStateUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *ReminderStateUpdate) ExecX(ctx context.Context)
- func (_u *ReminderStateUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) Mutation() *ReminderStateMutation
- func (c *ReminderStateUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *ReminderStateUpdate) Save(ctx context.Context) (int, error)
- func (_u *ReminderStateUpdate) SaveX(ctx context.Context) int
- func (_u *ReminderStateUpdate) SetCalendarID(v string) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetFiredAt(v time.Time) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetMinutes(v int) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetNillableCalendarID(v *string) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetNillableFiredAt(v *time.Time) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetNillableMinutes(v *int) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetNillableOccurrenceStart(v *time.Time) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetNillableSnoozedUntil(v *time.Time) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetNillableUID(v *string) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetOccurrenceStart(v time.Time) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetSnoozedUntil(v time.Time) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) SetUID(v string) *ReminderStateUpdate
- func (_u *ReminderStateUpdate) Where(ps ...predicate.ReminderState) *ReminderStateUpdate
- type ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) AddMinutes(v int) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) ClearSnoozedUntil() *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) Exec(ctx context.Context) error
- func (c *ReminderStateUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *ReminderStateUpdateOne) ExecX(ctx context.Context)
- func (_u *ReminderStateUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) Mutation() *ReminderStateMutation
- func (c *ReminderStateUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *ReminderStateUpdateOne) Save(ctx context.Context) (*ReminderState, error)
- func (_u *ReminderStateUpdateOne) SaveX(ctx context.Context) *ReminderState
- func (_u *ReminderStateUpdateOne) Select(field string, fields ...string) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetCalendarID(v string) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetFiredAt(v time.Time) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetMinutes(v int) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetNillableCalendarID(v *string) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetNillableFiredAt(v *time.Time) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetNillableMinutes(v *int) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetNillableOccurrenceStart(v *time.Time) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetNillableSnoozedUntil(v *time.Time) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetNillableUID(v *string) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetOccurrenceStart(v time.Time) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetSnoozedUntil(v time.Time) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) SetUID(v string) *ReminderStateUpdateOne
- func (_u *ReminderStateUpdateOne) Where(ps ...predicate.ReminderState) *ReminderStateUpdateOne
- type ReminderStateUpsert
- func (u *ReminderStateUpsert) AddMinutes(v int) *ReminderStateUpsert
- func (u *ReminderStateUpsert) ClearSnoozedUntil() *ReminderStateUpsert
- func (u *ReminderStateUpsert) SetCalendarID(v string) *ReminderStateUpsert
- func (u *ReminderStateUpsert) SetFiredAt(v time.Time) *ReminderStateUpsert
- func (u *ReminderStateUpsert) SetMinutes(v int) *ReminderStateUpsert
- func (u *ReminderStateUpsert) SetOccurrenceStart(v time.Time) *ReminderStateUpsert
- func (u *ReminderStateUpsert) SetSnoozedUntil(v time.Time) *ReminderStateUpsert
- func (u *ReminderStateUpsert) SetUID(v string) *ReminderStateUpsert
- func (u *ReminderStateUpsert) UpdateCalendarID() *ReminderStateUpsert
- func (u *ReminderStateUpsert) UpdateFiredAt() *ReminderStateUpsert
- func (u *ReminderStateUpsert) UpdateMinutes() *ReminderStateUpsert
- func (u *ReminderStateUpsert) UpdateOccurrenceStart() *ReminderStateUpsert
- func (u *ReminderStateUpsert) UpdateSnoozedUntil() *ReminderStateUpsert
- func (u *ReminderStateUpsert) UpdateUID() *ReminderStateUpsert
- type ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) AddMinutes(v int) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) ClearSnoozedUntil() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) DoNothing() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) Exec(ctx context.Context) error
- func (u *ReminderStateUpsertBulk) ExecX(ctx context.Context)
- func (u *ReminderStateUpsertBulk) Ignore() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) SetCalendarID(v string) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) SetFiredAt(v time.Time) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) SetMinutes(v int) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) SetOccurrenceStart(v time.Time) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) SetSnoozedUntil(v time.Time) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) SetUID(v string) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) Update(set func(*ReminderStateUpsert)) *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateCalendarID() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateFiredAt() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateMinutes() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateNewValues() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateOccurrenceStart() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateSnoozedUntil() *ReminderStateUpsertBulk
- func (u *ReminderStateUpsertBulk) UpdateUID() *ReminderStateUpsertBulk
- type ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) AddMinutes(v int) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) ClearSnoozedUntil() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) DoNothing() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) Exec(ctx context.Context) error
- func (u *ReminderStateUpsertOne) ExecX(ctx context.Context)
- func (u *ReminderStateUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ReminderStateUpsertOne) IDX(ctx context.Context) int
- func (u *ReminderStateUpsertOne) Ignore() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) SetCalendarID(v string) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) SetFiredAt(v time.Time) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) SetMinutes(v int) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) SetOccurrenceStart(v time.Time) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) SetSnoozedUntil(v time.Time) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) SetUID(v string) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) Update(set func(*ReminderStateUpsert)) *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateCalendarID() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateFiredAt() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateMinutes() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateNewValues() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateOccurrenceStart() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateSnoozedUntil() *ReminderStateUpsertOne
- func (u *ReminderStateUpsertOne) UpdateUID() *ReminderStateUpsertOne
- type ReminderStates
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Secret
- func (c *Secret) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_m *Secret) GetValue(name string) (ent.Value, error)
- func (_m *Secret) QueryAccount() *AccountQuery
- func (c *Secret) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *Secret) String() string
- func (_m *Secret) Unwrap() *Secret
- func (_m *Secret) Update() *SecretUpdateOne
- type SecretClient
- func (c *SecretClient) Create() *SecretCreate
- func (c *SecretClient) CreateBulk(builders ...*SecretCreate) *SecretCreateBulk
- func (c *SecretClient) Delete() *SecretDelete
- func (c *SecretClient) DeleteOne(_m *Secret) *SecretDeleteOne
- func (c *SecretClient) DeleteOneID(id string) *SecretDeleteOne
- func (c *SecretClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *SecretClient) Get(ctx context.Context, id string) (*Secret, error)
- func (c *SecretClient) GetX(ctx context.Context, id string) *Secret
- func (c *SecretClient) Hooks() []Hook
- func (c *SecretClient) Intercept(interceptors ...Interceptor)
- func (c *SecretClient) Interceptors() []Interceptor
- func (c *SecretClient) MapCreateBulk(slice any, setFunc func(*SecretCreate, int)) *SecretCreateBulk
- func (c *SecretClient) Query() *SecretQuery
- func (c *SecretClient) QueryAccount(_m *Secret) *AccountQuery
- func (c *SecretClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *SecretClient) Update() *SecretUpdate
- func (c *SecretClient) UpdateOne(_m *Secret) *SecretUpdateOne
- func (c *SecretClient) UpdateOneID(id string) *SecretUpdateOne
- func (c *SecretClient) Use(hooks ...Hook)
- type SecretCreate
- func (_c *SecretCreate) Exec(ctx context.Context) error
- func (c *SecretCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *SecretCreate) ExecX(ctx context.Context)
- func (_c *SecretCreate) Mutation() *SecretMutation
- func (_c *SecretCreate) OnConflict(opts ...sql.ConflictOption) *SecretUpsertOne
- func (_c *SecretCreate) OnConflictColumns(columns ...string) *SecretUpsertOne
- func (c *SecretCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *SecretCreate) Save(ctx context.Context) (*Secret, error)
- func (_c *SecretCreate) SaveX(ctx context.Context) *Secret
- func (_c *SecretCreate) SetAccount(v *Account) *SecretCreate
- func (_c *SecretCreate) SetAccountID(id string) *SecretCreate
- func (_c *SecretCreate) SetCreatedAt(v time.Time) *SecretCreate
- func (_c *SecretCreate) SetID(v string) *SecretCreate
- func (_c *SecretCreate) SetKey(v string) *SecretCreate
- func (_c *SecretCreate) SetNillableCreatedAt(v *time.Time) *SecretCreate
- func (_c *SecretCreate) SetNillableUpdatedAt(v *time.Time) *SecretCreate
- func (_c *SecretCreate) SetUpdatedAt(v time.Time) *SecretCreate
- func (_c *SecretCreate) SetValue(v []byte) *SecretCreate
- type SecretCreateBulk
- func (_c *SecretCreateBulk) Exec(ctx context.Context) error
- func (c *SecretCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *SecretCreateBulk) ExecX(ctx context.Context)
- func (_c *SecretCreateBulk) OnConflict(opts ...sql.ConflictOption) *SecretUpsertBulk
- func (_c *SecretCreateBulk) OnConflictColumns(columns ...string) *SecretUpsertBulk
- func (c *SecretCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *SecretCreateBulk) Save(ctx context.Context) ([]*Secret, error)
- func (_c *SecretCreateBulk) SaveX(ctx context.Context) []*Secret
- type SecretDelete
- func (_d *SecretDelete) Exec(ctx context.Context) (int, error)
- func (c *SecretDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *SecretDelete) ExecX(ctx context.Context) int
- func (c *SecretDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *SecretDelete) Where(ps ...predicate.Secret) *SecretDelete
- type SecretDeleteOne
- type SecretEdges
- type SecretGroupBy
- func (_g *SecretGroupBy) Aggregate(fns ...AggregateFunc) *SecretGroupBy
- func (s *SecretGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SecretGroupBy) BoolX(ctx context.Context) bool
- func (s *SecretGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SecretGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SecretGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SecretGroupBy) Float64X(ctx context.Context) float64
- func (s *SecretGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SecretGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SecretGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SecretGroupBy) IntX(ctx context.Context) int
- func (s *SecretGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SecretGroupBy) IntsX(ctx context.Context) []int
- func (_g *SecretGroupBy) Scan(ctx context.Context, v any) error
- func (s *SecretGroupBy) ScanX(ctx context.Context, v any)
- func (s *SecretGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SecretGroupBy) StringX(ctx context.Context) string
- func (s *SecretGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SecretGroupBy) StringsX(ctx context.Context) []string
- type SecretMutation
- func (m *SecretMutation) AccountCleared() bool
- func (m *SecretMutation) AccountID() (id string, exists bool)
- func (m *SecretMutation) AccountIDs() (ids []string)
- func (m *SecretMutation) AddField(name string, value ent.Value) error
- func (m *SecretMutation) AddedEdges() []string
- func (m *SecretMutation) AddedField(name string) (ent.Value, bool)
- func (m *SecretMutation) AddedFields() []string
- func (m *SecretMutation) AddedIDs(name string) []ent.Value
- func (m *SecretMutation) ClearAccount()
- func (m *SecretMutation) ClearEdge(name string) error
- func (m *SecretMutation) ClearField(name string) error
- func (m *SecretMutation) ClearedEdges() []string
- func (m *SecretMutation) ClearedFields() []string
- func (m SecretMutation) Client() *Client
- func (m *SecretMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SecretMutation) EdgeCleared(name string) bool
- func (c *SecretMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *SecretMutation) Field(name string) (ent.Value, bool)
- func (m *SecretMutation) FieldCleared(name string) bool
- func (m *SecretMutation) Fields() []string
- func (m *SecretMutation) ID() (id string, exists bool)
- func (m *SecretMutation) IDs(ctx context.Context) ([]string, error)
- func (m *SecretMutation) Key() (r string, exists bool)
- func (m *SecretMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SecretMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SecretMutation) OldKey(ctx context.Context) (v string, err error)
- func (m *SecretMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SecretMutation) OldValue(ctx context.Context) (v []byte, err error)
- func (m *SecretMutation) Op() Op
- func (c *SecretMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *SecretMutation) RemovedEdges() []string
- func (m *SecretMutation) RemovedIDs(name string) []ent.Value
- func (m *SecretMutation) ResetAccount()
- func (m *SecretMutation) ResetCreatedAt()
- func (m *SecretMutation) ResetEdge(name string) error
- func (m *SecretMutation) ResetField(name string) error
- func (m *SecretMutation) ResetKey()
- func (m *SecretMutation) ResetUpdatedAt()
- func (m *SecretMutation) ResetValue()
- func (m *SecretMutation) SetAccountID(id string)
- func (m *SecretMutation) SetCreatedAt(t time.Time)
- func (m *SecretMutation) SetField(name string, value ent.Value) error
- func (m *SecretMutation) SetID(id string)
- func (m *SecretMutation) SetKey(s string)
- func (m *SecretMutation) SetOp(op Op)
- func (m *SecretMutation) SetUpdatedAt(t time.Time)
- func (m *SecretMutation) SetValue(b []byte)
- func (m SecretMutation) Tx() (*Tx, error)
- func (m *SecretMutation) Type() string
- func (m *SecretMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SecretMutation) Value() (r []byte, exists bool)
- func (m *SecretMutation) Where(ps ...predicate.Secret)
- func (m *SecretMutation) WhereP(ps ...func(*sql.Selector))
- type SecretQuery
- func (_q *SecretQuery) Aggregate(fns ...AggregateFunc) *SecretSelect
- func (_q *SecretQuery) All(ctx context.Context) ([]*Secret, error)
- func (_q *SecretQuery) AllX(ctx context.Context) []*Secret
- func (_q *SecretQuery) Clone() *SecretQuery
- func (_q *SecretQuery) Count(ctx context.Context) (int, error)
- func (_q *SecretQuery) CountX(ctx context.Context) int
- func (c *SecretQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *SecretQuery) Exist(ctx context.Context) (bool, error)
- func (_q *SecretQuery) ExistX(ctx context.Context) bool
- func (_q *SecretQuery) First(ctx context.Context) (*Secret, error)
- func (_q *SecretQuery) FirstID(ctx context.Context) (id string, err error)
- func (_q *SecretQuery) FirstIDX(ctx context.Context) string
- func (_q *SecretQuery) FirstX(ctx context.Context) *Secret
- func (_q *SecretQuery) GroupBy(field string, fields ...string) *SecretGroupBy
- func (_q *SecretQuery) IDs(ctx context.Context) (ids []string, err error)
- func (_q *SecretQuery) IDsX(ctx context.Context) []string
- func (_q *SecretQuery) Limit(limit int) *SecretQuery
- func (_q *SecretQuery) Modify(modifiers ...func(s *sql.Selector)) *SecretSelect
- func (_q *SecretQuery) Offset(offset int) *SecretQuery
- func (_q *SecretQuery) Only(ctx context.Context) (*Secret, error)
- func (_q *SecretQuery) OnlyID(ctx context.Context) (id string, err error)
- func (_q *SecretQuery) OnlyIDX(ctx context.Context) string
- func (_q *SecretQuery) OnlyX(ctx context.Context) *Secret
- func (_q *SecretQuery) Order(o ...secret.OrderOption) *SecretQuery
- func (_q *SecretQuery) QueryAccount() *AccountQuery
- func (c *SecretQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *SecretQuery) Select(fields ...string) *SecretSelect
- func (_q *SecretQuery) Unique(unique bool) *SecretQuery
- func (_q *SecretQuery) Where(ps ...predicate.Secret) *SecretQuery
- func (_q *SecretQuery) WithAccount(opts ...func(*AccountQuery)) *SecretQuery
- type SecretSelect
- func (_s *SecretSelect) Aggregate(fns ...AggregateFunc) *SecretSelect
- func (s *SecretSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SecretSelect) BoolX(ctx context.Context) bool
- func (s *SecretSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SecretSelect) BoolsX(ctx context.Context) []bool
- func (c SecretSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *SecretSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SecretSelect) Float64X(ctx context.Context) float64
- func (s *SecretSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SecretSelect) Float64sX(ctx context.Context) []float64
- func (s *SecretSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SecretSelect) IntX(ctx context.Context) int
- func (s *SecretSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SecretSelect) IntsX(ctx context.Context) []int
- func (_s *SecretSelect) Modify(modifiers ...func(s *sql.Selector)) *SecretSelect
- func (c SecretSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *SecretSelect) Scan(ctx context.Context, v any) error
- func (s *SecretSelect) ScanX(ctx context.Context, v any)
- func (s *SecretSelect) String(ctx context.Context) (_ string, err error)
- func (s *SecretSelect) StringX(ctx context.Context) string
- func (s *SecretSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SecretSelect) StringsX(ctx context.Context) []string
- type SecretUpdate
- func (_u *SecretUpdate) ClearAccount() *SecretUpdate
- func (_u *SecretUpdate) Exec(ctx context.Context) error
- func (c *SecretUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *SecretUpdate) ExecX(ctx context.Context)
- func (_u *SecretUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SecretUpdate
- func (_u *SecretUpdate) Mutation() *SecretMutation
- func (c *SecretUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *SecretUpdate) Save(ctx context.Context) (int, error)
- func (_u *SecretUpdate) SaveX(ctx context.Context) int
- func (_u *SecretUpdate) SetAccount(v *Account) *SecretUpdate
- func (_u *SecretUpdate) SetAccountID(id string) *SecretUpdate
- func (_u *SecretUpdate) SetKey(v string) *SecretUpdate
- func (_u *SecretUpdate) SetNillableKey(v *string) *SecretUpdate
- func (_u *SecretUpdate) SetUpdatedAt(v time.Time) *SecretUpdate
- func (_u *SecretUpdate) SetValue(v []byte) *SecretUpdate
- func (_u *SecretUpdate) Where(ps ...predicate.Secret) *SecretUpdate
- type SecretUpdateOne
- func (_u *SecretUpdateOne) ClearAccount() *SecretUpdateOne
- func (_u *SecretUpdateOne) Exec(ctx context.Context) error
- func (c *SecretUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *SecretUpdateOne) ExecX(ctx context.Context)
- func (_u *SecretUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SecretUpdateOne
- func (_u *SecretUpdateOne) Mutation() *SecretMutation
- func (c *SecretUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *SecretUpdateOne) Save(ctx context.Context) (*Secret, error)
- func (_u *SecretUpdateOne) SaveX(ctx context.Context) *Secret
- func (_u *SecretUpdateOne) Select(field string, fields ...string) *SecretUpdateOne
- func (_u *SecretUpdateOne) SetAccount(v *Account) *SecretUpdateOne
- func (_u *SecretUpdateOne) SetAccountID(id string) *SecretUpdateOne
- func (_u *SecretUpdateOne) SetKey(v string) *SecretUpdateOne
- func (_u *SecretUpdateOne) SetNillableKey(v *string) *SecretUpdateOne
- func (_u *SecretUpdateOne) SetUpdatedAt(v time.Time) *SecretUpdateOne
- func (_u *SecretUpdateOne) SetValue(v []byte) *SecretUpdateOne
- func (_u *SecretUpdateOne) Where(ps ...predicate.Secret) *SecretUpdateOne
- type SecretUpsert
- func (u *SecretUpsert) SetKey(v string) *SecretUpsert
- func (u *SecretUpsert) SetUpdatedAt(v time.Time) *SecretUpsert
- func (u *SecretUpsert) SetValue(v []byte) *SecretUpsert
- func (u *SecretUpsert) UpdateKey() *SecretUpsert
- func (u *SecretUpsert) UpdateUpdatedAt() *SecretUpsert
- func (u *SecretUpsert) UpdateValue() *SecretUpsert
- type SecretUpsertBulk
- func (u *SecretUpsertBulk) DoNothing() *SecretUpsertBulk
- func (u *SecretUpsertBulk) Exec(ctx context.Context) error
- func (u *SecretUpsertBulk) ExecX(ctx context.Context)
- func (u *SecretUpsertBulk) Ignore() *SecretUpsertBulk
- func (u *SecretUpsertBulk) SetKey(v string) *SecretUpsertBulk
- func (u *SecretUpsertBulk) SetUpdatedAt(v time.Time) *SecretUpsertBulk
- func (u *SecretUpsertBulk) SetValue(v []byte) *SecretUpsertBulk
- func (u *SecretUpsertBulk) Update(set func(*SecretUpsert)) *SecretUpsertBulk
- func (u *SecretUpsertBulk) UpdateKey() *SecretUpsertBulk
- func (u *SecretUpsertBulk) UpdateNewValues() *SecretUpsertBulk
- func (u *SecretUpsertBulk) UpdateUpdatedAt() *SecretUpsertBulk
- func (u *SecretUpsertBulk) UpdateValue() *SecretUpsertBulk
- type SecretUpsertOne
- func (u *SecretUpsertOne) DoNothing() *SecretUpsertOne
- func (u *SecretUpsertOne) Exec(ctx context.Context) error
- func (u *SecretUpsertOne) ExecX(ctx context.Context)
- func (u *SecretUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *SecretUpsertOne) IDX(ctx context.Context) string
- func (u *SecretUpsertOne) Ignore() *SecretUpsertOne
- func (u *SecretUpsertOne) SetKey(v string) *SecretUpsertOne
- func (u *SecretUpsertOne) SetUpdatedAt(v time.Time) *SecretUpsertOne
- func (u *SecretUpsertOne) SetValue(v []byte) *SecretUpsertOne
- func (u *SecretUpsertOne) Update(set func(*SecretUpsert)) *SecretUpsertOne
- func (u *SecretUpsertOne) UpdateKey() *SecretUpsertOne
- func (u *SecretUpsertOne) UpdateNewValues() *SecretUpsertOne
- func (u *SecretUpsertOne) UpdateUpdatedAt() *SecretUpsertOne
- func (u *SecretUpsertOne) UpdateValue() *SecretUpsertOne
- type Secrets
- type Task
- func (c *Task) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_m *Task) QueryCalendar() *CalendarQuery
- func (c *Task) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_m *Task) String() string
- func (_m *Task) Unwrap() *Task
- func (_m *Task) Update() *TaskUpdateOne
- func (_m *Task) Value(name string) (ent.Value, error)
- type TaskClient
- func (c *TaskClient) Create() *TaskCreate
- func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk
- func (c *TaskClient) Delete() *TaskDelete
- func (c *TaskClient) DeleteOne(_m *Task) *TaskDeleteOne
- func (c *TaskClient) DeleteOneID(id string) *TaskDeleteOne
- func (c *TaskClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *TaskClient) Get(ctx context.Context, id string) (*Task, error)
- func (c *TaskClient) GetX(ctx context.Context, id string) *Task
- func (c *TaskClient) Hooks() []Hook
- func (c *TaskClient) Intercept(interceptors ...Interceptor)
- func (c *TaskClient) Interceptors() []Interceptor
- func (c *TaskClient) MapCreateBulk(slice any, setFunc func(*TaskCreate, int)) *TaskCreateBulk
- func (c *TaskClient) Query() *TaskQuery
- func (c *TaskClient) QueryCalendar(_m *Task) *CalendarQuery
- func (c *TaskClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *TaskClient) Update() *TaskUpdate
- func (c *TaskClient) UpdateOne(_m *Task) *TaskUpdateOne
- func (c *TaskClient) UpdateOneID(id string) *TaskUpdateOne
- func (c *TaskClient) Use(hooks ...Hook)
- type TaskCreate
- func (_c *TaskCreate) Exec(ctx context.Context) error
- func (c *TaskCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *TaskCreate) ExecX(ctx context.Context)
- func (_c *TaskCreate) Mutation() *TaskMutation
- func (_c *TaskCreate) OnConflict(opts ...sql.ConflictOption) *TaskUpsertOne
- func (_c *TaskCreate) OnConflictColumns(columns ...string) *TaskUpsertOne
- func (c *TaskCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *TaskCreate) Save(ctx context.Context) (*Task, error)
- func (_c *TaskCreate) SaveX(ctx context.Context) *Task
- func (_c *TaskCreate) SetAllDay(v bool) *TaskCreate
- func (_c *TaskCreate) SetCalendar(v *Calendar) *TaskCreate
- func (_c *TaskCreate) SetCalendarID(id string) *TaskCreate
- func (_c *TaskCreate) SetCategories(v []string) *TaskCreate
- func (_c *TaskCreate) SetCompleted(v time.Time) *TaskCreate
- func (_c *TaskCreate) SetCreated(v time.Time) *TaskCreate
- func (_c *TaskCreate) SetDescription(v string) *TaskCreate
- func (_c *TaskCreate) SetDue(v time.Time) *TaskCreate
- func (_c *TaskCreate) SetDueTz(v string) *TaskCreate
- func (_c *TaskCreate) SetEtag(v string) *TaskCreate
- func (_c *TaskCreate) SetID(v string) *TaskCreate
- func (_c *TaskCreate) SetLocation(v string) *TaskCreate
- func (_c *TaskCreate) SetNillableAllDay(v *bool) *TaskCreate
- func (_c *TaskCreate) SetNillableCompleted(v *time.Time) *TaskCreate
- func (_c *TaskCreate) SetNillableCreated(v *time.Time) *TaskCreate
- func (_c *TaskCreate) SetNillableDescription(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableDue(v *time.Time) *TaskCreate
- func (_c *TaskCreate) SetNillableDueTz(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableEtag(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableLocation(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableParentUID(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillablePercentComplete(v *int) *TaskCreate
- func (_c *TaskCreate) SetNillablePriority(v *int) *TaskCreate
- func (_c *TaskCreate) SetNillableRawIcs(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableRemoteID(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableStart(v *time.Time) *TaskCreate
- func (_c *TaskCreate) SetNillableStartTz(v *string) *TaskCreate
- func (_c *TaskCreate) SetNillableStatus(v *task.Status) *TaskCreate
- func (_c *TaskCreate) SetNillableUpdated(v *time.Time) *TaskCreate
- func (_c *TaskCreate) SetParentUID(v string) *TaskCreate
- func (_c *TaskCreate) SetPercentComplete(v int) *TaskCreate
- func (_c *TaskCreate) SetPriority(v int) *TaskCreate
- func (_c *TaskCreate) SetRawIcs(v string) *TaskCreate
- func (_c *TaskCreate) SetRecurrence(v map[string]interface{}) *TaskCreate
- func (_c *TaskCreate) SetReminders(v []map[string]interface{}) *TaskCreate
- func (_c *TaskCreate) SetRemoteID(v string) *TaskCreate
- func (_c *TaskCreate) SetStart(v time.Time) *TaskCreate
- func (_c *TaskCreate) SetStartTz(v string) *TaskCreate
- func (_c *TaskCreate) SetStatus(v task.Status) *TaskCreate
- func (_c *TaskCreate) SetSummary(v string) *TaskCreate
- func (_c *TaskCreate) SetUID(v string) *TaskCreate
- func (_c *TaskCreate) SetUpdated(v time.Time) *TaskCreate
- type TaskCreateBulk
- func (_c *TaskCreateBulk) Exec(ctx context.Context) error
- func (c *TaskCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_c *TaskCreateBulk) ExecX(ctx context.Context)
- func (_c *TaskCreateBulk) OnConflict(opts ...sql.ConflictOption) *TaskUpsertBulk
- func (_c *TaskCreateBulk) OnConflictColumns(columns ...string) *TaskUpsertBulk
- func (c *TaskCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_c *TaskCreateBulk) Save(ctx context.Context) ([]*Task, error)
- func (_c *TaskCreateBulk) SaveX(ctx context.Context) []*Task
- type TaskDelete
- func (_d *TaskDelete) Exec(ctx context.Context) (int, error)
- func (c *TaskDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_d *TaskDelete) ExecX(ctx context.Context) int
- func (c *TaskDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_d *TaskDelete) Where(ps ...predicate.Task) *TaskDelete
- type TaskDeleteOne
- type TaskEdges
- type TaskGroupBy
- func (_g *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy
- func (s *TaskGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TaskGroupBy) BoolX(ctx context.Context) bool
- func (s *TaskGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TaskGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TaskGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TaskGroupBy) Float64X(ctx context.Context) float64
- func (s *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TaskGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TaskGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TaskGroupBy) IntX(ctx context.Context) int
- func (s *TaskGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TaskGroupBy) IntsX(ctx context.Context) []int
- func (_g *TaskGroupBy) Scan(ctx context.Context, v any) error
- func (s *TaskGroupBy) ScanX(ctx context.Context, v any)
- func (s *TaskGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TaskGroupBy) StringX(ctx context.Context) string
- func (s *TaskGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TaskGroupBy) StringsX(ctx context.Context) []string
- type TaskMutation
- func (m *TaskMutation) AddField(name string, value ent.Value) error
- func (m *TaskMutation) AddPercentComplete(i int)
- func (m *TaskMutation) AddPriority(i int)
- func (m *TaskMutation) AddedEdges() []string
- func (m *TaskMutation) AddedField(name string) (ent.Value, bool)
- func (m *TaskMutation) AddedFields() []string
- func (m *TaskMutation) AddedIDs(name string) []ent.Value
- func (m *TaskMutation) AddedPercentComplete() (r int, exists bool)
- func (m *TaskMutation) AddedPriority() (r int, exists bool)
- func (m *TaskMutation) AllDay() (r bool, exists bool)
- func (m *TaskMutation) AppendCategories(s []string)
- func (m *TaskMutation) AppendReminders(value []map[string]interface{})
- func (m *TaskMutation) AppendedCategories() ([]string, bool)
- func (m *TaskMutation) AppendedReminders() ([]map[string]interface{}, bool)
- func (m *TaskMutation) CalendarCleared() bool
- func (m *TaskMutation) CalendarID() (id string, exists bool)
- func (m *TaskMutation) CalendarIDs() (ids []string)
- func (m *TaskMutation) Categories() (r []string, exists bool)
- func (m *TaskMutation) CategoriesCleared() bool
- func (m *TaskMutation) ClearCalendar()
- func (m *TaskMutation) ClearCategories()
- func (m *TaskMutation) ClearCompleted()
- func (m *TaskMutation) ClearDescription()
- func (m *TaskMutation) ClearDue()
- func (m *TaskMutation) ClearDueTz()
- func (m *TaskMutation) ClearEdge(name string) error
- func (m *TaskMutation) ClearEtag()
- func (m *TaskMutation) ClearField(name string) error
- func (m *TaskMutation) ClearLocation()
- func (m *TaskMutation) ClearParentUID()
- func (m *TaskMutation) ClearRawIcs()
- func (m *TaskMutation) ClearRecurrence()
- func (m *TaskMutation) ClearReminders()
- func (m *TaskMutation) ClearRemoteID()
- func (m *TaskMutation) ClearStart()
- func (m *TaskMutation) ClearStartTz()
- func (m *TaskMutation) ClearedEdges() []string
- func (m *TaskMutation) ClearedFields() []string
- func (m TaskMutation) Client() *Client
- func (m *TaskMutation) Completed() (r time.Time, exists bool)
- func (m *TaskMutation) CompletedCleared() bool
- func (m *TaskMutation) Created() (r time.Time, exists bool)
- func (m *TaskMutation) Description() (r string, exists bool)
- func (m *TaskMutation) DescriptionCleared() bool
- func (m *TaskMutation) Due() (r time.Time, exists bool)
- func (m *TaskMutation) DueCleared() bool
- func (m *TaskMutation) DueTz() (r string, exists bool)
- func (m *TaskMutation) DueTzCleared() bool
- func (m *TaskMutation) EdgeCleared(name string) bool
- func (m *TaskMutation) Etag() (r string, exists bool)
- func (m *TaskMutation) EtagCleared() bool
- func (c *TaskMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *TaskMutation) Field(name string) (ent.Value, bool)
- func (m *TaskMutation) FieldCleared(name string) bool
- func (m *TaskMutation) Fields() []string
- func (m *TaskMutation) ID() (id string, exists bool)
- func (m *TaskMutation) IDs(ctx context.Context) ([]string, error)
- func (m *TaskMutation) Location() (r string, exists bool)
- func (m *TaskMutation) LocationCleared() bool
- func (m *TaskMutation) OldAllDay(ctx context.Context) (v bool, err error)
- func (m *TaskMutation) OldCategories(ctx context.Context) (v []string, err error)
- func (m *TaskMutation) OldCompleted(ctx context.Context) (v *time.Time, err error)
- func (m *TaskMutation) OldCreated(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldDue(ctx context.Context) (v *time.Time, err error)
- func (m *TaskMutation) OldDueTz(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldEtag(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TaskMutation) OldLocation(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldParentUID(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldPercentComplete(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldPriority(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldRawIcs(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldRecurrence(ctx context.Context) (v map[string]interface{}, err error)
- func (m *TaskMutation) OldReminders(ctx context.Context) (v []map[string]interface{}, err error)
- func (m *TaskMutation) OldRemoteID(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldStart(ctx context.Context) (v *time.Time, err error)
- func (m *TaskMutation) OldStartTz(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldStatus(ctx context.Context) (v task.Status, err error)
- func (m *TaskMutation) OldSummary(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldUID(ctx context.Context) (v string, err error)
- func (m *TaskMutation) OldUpdated(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) Op() Op
- func (m *TaskMutation) ParentUID() (r string, exists bool)
- func (m *TaskMutation) ParentUIDCleared() bool
- func (m *TaskMutation) PercentComplete() (r int, exists bool)
- func (m *TaskMutation) Priority() (r int, exists bool)
- func (c *TaskMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *TaskMutation) RawIcs() (r string, exists bool)
- func (m *TaskMutation) RawIcsCleared() bool
- func (m *TaskMutation) Recurrence() (r map[string]interface{}, exists bool)
- func (m *TaskMutation) RecurrenceCleared() bool
- func (m *TaskMutation) Reminders() (r []map[string]interface{}, exists bool)
- func (m *TaskMutation) RemindersCleared() bool
- func (m *TaskMutation) RemoteID() (r string, exists bool)
- func (m *TaskMutation) RemoteIDCleared() bool
- func (m *TaskMutation) RemovedEdges() []string
- func (m *TaskMutation) RemovedIDs(name string) []ent.Value
- func (m *TaskMutation) ResetAllDay()
- func (m *TaskMutation) ResetCalendar()
- func (m *TaskMutation) ResetCategories()
- func (m *TaskMutation) ResetCompleted()
- func (m *TaskMutation) ResetCreated()
- func (m *TaskMutation) ResetDescription()
- func (m *TaskMutation) ResetDue()
- func (m *TaskMutation) ResetDueTz()
- func (m *TaskMutation) ResetEdge(name string) error
- func (m *TaskMutation) ResetEtag()
- func (m *TaskMutation) ResetField(name string) error
- func (m *TaskMutation) ResetLocation()
- func (m *TaskMutation) ResetParentUID()
- func (m *TaskMutation) ResetPercentComplete()
- func (m *TaskMutation) ResetPriority()
- func (m *TaskMutation) ResetRawIcs()
- func (m *TaskMutation) ResetRecurrence()
- func (m *TaskMutation) ResetReminders()
- func (m *TaskMutation) ResetRemoteID()
- func (m *TaskMutation) ResetStart()
- func (m *TaskMutation) ResetStartTz()
- func (m *TaskMutation) ResetStatus()
- func (m *TaskMutation) ResetSummary()
- func (m *TaskMutation) ResetUID()
- func (m *TaskMutation) ResetUpdated()
- func (m *TaskMutation) SetAllDay(b bool)
- func (m *TaskMutation) SetCalendarID(id string)
- func (m *TaskMutation) SetCategories(s []string)
- func (m *TaskMutation) SetCompleted(t time.Time)
- func (m *TaskMutation) SetCreated(t time.Time)
- func (m *TaskMutation) SetDescription(s string)
- func (m *TaskMutation) SetDue(t time.Time)
- func (m *TaskMutation) SetDueTz(s string)
- func (m *TaskMutation) SetEtag(s string)
- func (m *TaskMutation) SetField(name string, value ent.Value) error
- func (m *TaskMutation) SetID(id string)
- func (m *TaskMutation) SetLocation(s string)
- func (m *TaskMutation) SetOp(op Op)
- func (m *TaskMutation) SetParentUID(s string)
- func (m *TaskMutation) SetPercentComplete(i int)
- func (m *TaskMutation) SetPriority(i int)
- func (m *TaskMutation) SetRawIcs(s string)
- func (m *TaskMutation) SetRecurrence(value map[string]interface{})
- func (m *TaskMutation) SetReminders(value []map[string]interface{})
- func (m *TaskMutation) SetRemoteID(s string)
- func (m *TaskMutation) SetStart(t time.Time)
- func (m *TaskMutation) SetStartTz(s string)
- func (m *TaskMutation) SetStatus(t task.Status)
- func (m *TaskMutation) SetSummary(s string)
- func (m *TaskMutation) SetUID(s string)
- func (m *TaskMutation) SetUpdated(t time.Time)
- func (m *TaskMutation) Start() (r time.Time, exists bool)
- func (m *TaskMutation) StartCleared() bool
- func (m *TaskMutation) StartTz() (r string, exists bool)
- func (m *TaskMutation) StartTzCleared() bool
- func (m *TaskMutation) Status() (r task.Status, exists bool)
- func (m *TaskMutation) Summary() (r string, exists bool)
- func (m TaskMutation) Tx() (*Tx, error)
- func (m *TaskMutation) Type() string
- func (m *TaskMutation) UID() (r string, exists bool)
- func (m *TaskMutation) Updated() (r time.Time, exists bool)
- func (m *TaskMutation) Where(ps ...predicate.Task)
- func (m *TaskMutation) WhereP(ps ...func(*sql.Selector))
- type TaskQuery
- func (_q *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect
- func (_q *TaskQuery) All(ctx context.Context) ([]*Task, error)
- func (_q *TaskQuery) AllX(ctx context.Context) []*Task
- func (_q *TaskQuery) Clone() *TaskQuery
- func (_q *TaskQuery) Count(ctx context.Context) (int, error)
- func (_q *TaskQuery) CountX(ctx context.Context) int
- func (c *TaskQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_q *TaskQuery) Exist(ctx context.Context) (bool, error)
- func (_q *TaskQuery) ExistX(ctx context.Context) bool
- func (_q *TaskQuery) First(ctx context.Context) (*Task, error)
- func (_q *TaskQuery) FirstID(ctx context.Context) (id string, err error)
- func (_q *TaskQuery) FirstIDX(ctx context.Context) string
- func (_q *TaskQuery) FirstX(ctx context.Context) *Task
- func (_q *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
- func (_q *TaskQuery) IDs(ctx context.Context) (ids []string, err error)
- func (_q *TaskQuery) IDsX(ctx context.Context) []string
- func (_q *TaskQuery) Limit(limit int) *TaskQuery
- func (_q *TaskQuery) Modify(modifiers ...func(s *sql.Selector)) *TaskSelect
- func (_q *TaskQuery) Offset(offset int) *TaskQuery
- func (_q *TaskQuery) Only(ctx context.Context) (*Task, error)
- func (_q *TaskQuery) OnlyID(ctx context.Context) (id string, err error)
- func (_q *TaskQuery) OnlyIDX(ctx context.Context) string
- func (_q *TaskQuery) OnlyX(ctx context.Context) *Task
- func (_q *TaskQuery) Order(o ...task.OrderOption) *TaskQuery
- func (_q *TaskQuery) QueryCalendar() *CalendarQuery
- func (c *TaskQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_q *TaskQuery) Select(fields ...string) *TaskSelect
- func (_q *TaskQuery) Unique(unique bool) *TaskQuery
- func (_q *TaskQuery) Where(ps ...predicate.Task) *TaskQuery
- func (_q *TaskQuery) WithCalendar(opts ...func(*CalendarQuery)) *TaskQuery
- type TaskSelect
- func (_s *TaskSelect) Aggregate(fns ...AggregateFunc) *TaskSelect
- func (s *TaskSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TaskSelect) BoolX(ctx context.Context) bool
- func (s *TaskSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TaskSelect) BoolsX(ctx context.Context) []bool
- func (c TaskSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *TaskSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TaskSelect) Float64X(ctx context.Context) float64
- func (s *TaskSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TaskSelect) Float64sX(ctx context.Context) []float64
- func (s *TaskSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TaskSelect) IntX(ctx context.Context) int
- func (s *TaskSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TaskSelect) IntsX(ctx context.Context) []int
- func (_s *TaskSelect) Modify(modifiers ...func(s *sql.Selector)) *TaskSelect
- func (c TaskSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_s *TaskSelect) Scan(ctx context.Context, v any) error
- func (s *TaskSelect) ScanX(ctx context.Context, v any)
- func (s *TaskSelect) String(ctx context.Context) (_ string, err error)
- func (s *TaskSelect) StringX(ctx context.Context) string
- func (s *TaskSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TaskSelect) StringsX(ctx context.Context) []string
- type TaskUpdate
- func (_u *TaskUpdate) AddPercentComplete(v int) *TaskUpdate
- func (_u *TaskUpdate) AddPriority(v int) *TaskUpdate
- func (_u *TaskUpdate) AppendCategories(v []string) *TaskUpdate
- func (_u *TaskUpdate) AppendReminders(v []map[string]interface{}) *TaskUpdate
- func (_u *TaskUpdate) ClearCalendar() *TaskUpdate
- func (_u *TaskUpdate) ClearCategories() *TaskUpdate
- func (_u *TaskUpdate) ClearCompleted() *TaskUpdate
- func (_u *TaskUpdate) ClearDescription() *TaskUpdate
- func (_u *TaskUpdate) ClearDue() *TaskUpdate
- func (_u *TaskUpdate) ClearDueTz() *TaskUpdate
- func (_u *TaskUpdate) ClearEtag() *TaskUpdate
- func (_u *TaskUpdate) ClearLocation() *TaskUpdate
- func (_u *TaskUpdate) ClearParentUID() *TaskUpdate
- func (_u *TaskUpdate) ClearRawIcs() *TaskUpdate
- func (_u *TaskUpdate) ClearRecurrence() *TaskUpdate
- func (_u *TaskUpdate) ClearReminders() *TaskUpdate
- func (_u *TaskUpdate) ClearRemoteID() *TaskUpdate
- func (_u *TaskUpdate) ClearStart() *TaskUpdate
- func (_u *TaskUpdate) ClearStartTz() *TaskUpdate
- func (_u *TaskUpdate) Exec(ctx context.Context) error
- func (c *TaskUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *TaskUpdate) ExecX(ctx context.Context)
- func (_u *TaskUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *TaskUpdate
- func (_u *TaskUpdate) Mutation() *TaskMutation
- func (c *TaskUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *TaskUpdate) Save(ctx context.Context) (int, error)
- func (_u *TaskUpdate) SaveX(ctx context.Context) int
- func (_u *TaskUpdate) SetAllDay(v bool) *TaskUpdate
- func (_u *TaskUpdate) SetCalendar(v *Calendar) *TaskUpdate
- func (_u *TaskUpdate) SetCalendarID(id string) *TaskUpdate
- func (_u *TaskUpdate) SetCategories(v []string) *TaskUpdate
- func (_u *TaskUpdate) SetCompleted(v time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetCreated(v time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetDescription(v string) *TaskUpdate
- func (_u *TaskUpdate) SetDue(v time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetDueTz(v string) *TaskUpdate
- func (_u *TaskUpdate) SetEtag(v string) *TaskUpdate
- func (_u *TaskUpdate) SetLocation(v string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableAllDay(v *bool) *TaskUpdate
- func (_u *TaskUpdate) SetNillableCompleted(v *time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetNillableCreated(v *time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetNillableDescription(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableDue(v *time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetNillableDueTz(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableEtag(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableLocation(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableParentUID(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillablePercentComplete(v *int) *TaskUpdate
- func (_u *TaskUpdate) SetNillablePriority(v *int) *TaskUpdate
- func (_u *TaskUpdate) SetNillableRawIcs(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableRemoteID(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableStart(v *time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetNillableStartTz(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableStatus(v *task.Status) *TaskUpdate
- func (_u *TaskUpdate) SetNillableSummary(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetNillableUID(v *string) *TaskUpdate
- func (_u *TaskUpdate) SetParentUID(v string) *TaskUpdate
- func (_u *TaskUpdate) SetPercentComplete(v int) *TaskUpdate
- func (_u *TaskUpdate) SetPriority(v int) *TaskUpdate
- func (_u *TaskUpdate) SetRawIcs(v string) *TaskUpdate
- func (_u *TaskUpdate) SetRecurrence(v map[string]interface{}) *TaskUpdate
- func (_u *TaskUpdate) SetReminders(v []map[string]interface{}) *TaskUpdate
- func (_u *TaskUpdate) SetRemoteID(v string) *TaskUpdate
- func (_u *TaskUpdate) SetStart(v time.Time) *TaskUpdate
- func (_u *TaskUpdate) SetStartTz(v string) *TaskUpdate
- func (_u *TaskUpdate) SetStatus(v task.Status) *TaskUpdate
- func (_u *TaskUpdate) SetSummary(v string) *TaskUpdate
- func (_u *TaskUpdate) SetUID(v string) *TaskUpdate
- func (_u *TaskUpdate) SetUpdated(v time.Time) *TaskUpdate
- func (_u *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
- type TaskUpdateOne
- func (_u *TaskUpdateOne) AddPercentComplete(v int) *TaskUpdateOne
- func (_u *TaskUpdateOne) AddPriority(v int) *TaskUpdateOne
- func (_u *TaskUpdateOne) AppendCategories(v []string) *TaskUpdateOne
- func (_u *TaskUpdateOne) AppendReminders(v []map[string]interface{}) *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearCalendar() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearCategories() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearCompleted() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearDescription() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearDue() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearDueTz() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearEtag() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearLocation() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearParentUID() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearRawIcs() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearRecurrence() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearReminders() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearRemoteID() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearStart() *TaskUpdateOne
- func (_u *TaskUpdateOne) ClearStartTz() *TaskUpdateOne
- func (_u *TaskUpdateOne) Exec(ctx context.Context) error
- func (c *TaskUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (_u *TaskUpdateOne) ExecX(ctx context.Context)
- func (_u *TaskUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *TaskUpdateOne
- func (_u *TaskUpdateOne) Mutation() *TaskMutation
- func (c *TaskUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (_u *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
- func (_u *TaskUpdateOne) SaveX(ctx context.Context) *Task
- func (_u *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetAllDay(v bool) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetCalendar(v *Calendar) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetCalendarID(id string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetCategories(v []string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetCompleted(v time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetCreated(v time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetDescription(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetDue(v time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetDueTz(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetEtag(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetLocation(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableAllDay(v *bool) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableCompleted(v *time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableCreated(v *time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableDescription(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableDue(v *time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableDueTz(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableEtag(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableLocation(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableParentUID(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillablePercentComplete(v *int) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillablePriority(v *int) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableRawIcs(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableRemoteID(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableStart(v *time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableStartTz(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableStatus(v *task.Status) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableSummary(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetNillableUID(v *string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetParentUID(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetPercentComplete(v int) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetPriority(v int) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetRawIcs(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetRecurrence(v map[string]interface{}) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetReminders(v []map[string]interface{}) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetRemoteID(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetStart(v time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetStartTz(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetStatus(v task.Status) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetSummary(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetUID(v string) *TaskUpdateOne
- func (_u *TaskUpdateOne) SetUpdated(v time.Time) *TaskUpdateOne
- func (_u *TaskUpdateOne) Where(ps ...predicate.Task) *TaskUpdateOne
- type TaskUpsert
- func (u *TaskUpsert) AddPercentComplete(v int) *TaskUpsert
- func (u *TaskUpsert) AddPriority(v int) *TaskUpsert
- func (u *TaskUpsert) ClearCategories() *TaskUpsert
- func (u *TaskUpsert) ClearCompleted() *TaskUpsert
- func (u *TaskUpsert) ClearDescription() *TaskUpsert
- func (u *TaskUpsert) ClearDue() *TaskUpsert
- func (u *TaskUpsert) ClearDueTz() *TaskUpsert
- func (u *TaskUpsert) ClearEtag() *TaskUpsert
- func (u *TaskUpsert) ClearLocation() *TaskUpsert
- func (u *TaskUpsert) ClearParentUID() *TaskUpsert
- func (u *TaskUpsert) ClearRawIcs() *TaskUpsert
- func (u *TaskUpsert) ClearRecurrence() *TaskUpsert
- func (u *TaskUpsert) ClearReminders() *TaskUpsert
- func (u *TaskUpsert) ClearRemoteID() *TaskUpsert
- func (u *TaskUpsert) ClearStart() *TaskUpsert
- func (u *TaskUpsert) ClearStartTz() *TaskUpsert
- func (u *TaskUpsert) SetAllDay(v bool) *TaskUpsert
- func (u *TaskUpsert) SetCategories(v []string) *TaskUpsert
- func (u *TaskUpsert) SetCompleted(v time.Time) *TaskUpsert
- func (u *TaskUpsert) SetCreated(v time.Time) *TaskUpsert
- func (u *TaskUpsert) SetDescription(v string) *TaskUpsert
- func (u *TaskUpsert) SetDue(v time.Time) *TaskUpsert
- func (u *TaskUpsert) SetDueTz(v string) *TaskUpsert
- func (u *TaskUpsert) SetEtag(v string) *TaskUpsert
- func (u *TaskUpsert) SetLocation(v string) *TaskUpsert
- func (u *TaskUpsert) SetParentUID(v string) *TaskUpsert
- func (u *TaskUpsert) SetPercentComplete(v int) *TaskUpsert
- func (u *TaskUpsert) SetPriority(v int) *TaskUpsert
- func (u *TaskUpsert) SetRawIcs(v string) *TaskUpsert
- func (u *TaskUpsert) SetRecurrence(v map[string]interface{}) *TaskUpsert
- func (u *TaskUpsert) SetReminders(v []map[string]interface{}) *TaskUpsert
- func (u *TaskUpsert) SetRemoteID(v string) *TaskUpsert
- func (u *TaskUpsert) SetStart(v time.Time) *TaskUpsert
- func (u *TaskUpsert) SetStartTz(v string) *TaskUpsert
- func (u *TaskUpsert) SetStatus(v task.Status) *TaskUpsert
- func (u *TaskUpsert) SetSummary(v string) *TaskUpsert
- func (u *TaskUpsert) SetUID(v string) *TaskUpsert
- func (u *TaskUpsert) SetUpdated(v time.Time) *TaskUpsert
- func (u *TaskUpsert) UpdateAllDay() *TaskUpsert
- func (u *TaskUpsert) UpdateCategories() *TaskUpsert
- func (u *TaskUpsert) UpdateCompleted() *TaskUpsert
- func (u *TaskUpsert) UpdateCreated() *TaskUpsert
- func (u *TaskUpsert) UpdateDescription() *TaskUpsert
- func (u *TaskUpsert) UpdateDue() *TaskUpsert
- func (u *TaskUpsert) UpdateDueTz() *TaskUpsert
- func (u *TaskUpsert) UpdateEtag() *TaskUpsert
- func (u *TaskUpsert) UpdateLocation() *TaskUpsert
- func (u *TaskUpsert) UpdateParentUID() *TaskUpsert
- func (u *TaskUpsert) UpdatePercentComplete() *TaskUpsert
- func (u *TaskUpsert) UpdatePriority() *TaskUpsert
- func (u *TaskUpsert) UpdateRawIcs() *TaskUpsert
- func (u *TaskUpsert) UpdateRecurrence() *TaskUpsert
- func (u *TaskUpsert) UpdateReminders() *TaskUpsert
- func (u *TaskUpsert) UpdateRemoteID() *TaskUpsert
- func (u *TaskUpsert) UpdateStart() *TaskUpsert
- func (u *TaskUpsert) UpdateStartTz() *TaskUpsert
- func (u *TaskUpsert) UpdateStatus() *TaskUpsert
- func (u *TaskUpsert) UpdateSummary() *TaskUpsert
- func (u *TaskUpsert) UpdateUID() *TaskUpsert
- func (u *TaskUpsert) UpdateUpdated() *TaskUpsert
- type TaskUpsertBulk
- func (u *TaskUpsertBulk) AddPercentComplete(v int) *TaskUpsertBulk
- func (u *TaskUpsertBulk) AddPriority(v int) *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearCategories() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearCompleted() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearDescription() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearDue() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearDueTz() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearEtag() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearLocation() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearParentUID() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearRawIcs() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearRecurrence() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearReminders() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearRemoteID() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearStart() *TaskUpsertBulk
- func (u *TaskUpsertBulk) ClearStartTz() *TaskUpsertBulk
- func (u *TaskUpsertBulk) DoNothing() *TaskUpsertBulk
- func (u *TaskUpsertBulk) Exec(ctx context.Context) error
- func (u *TaskUpsertBulk) ExecX(ctx context.Context)
- func (u *TaskUpsertBulk) Ignore() *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetAllDay(v bool) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetCategories(v []string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetCompleted(v time.Time) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetCreated(v time.Time) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetDescription(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetDue(v time.Time) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetDueTz(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetEtag(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetLocation(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetParentUID(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetPercentComplete(v int) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetPriority(v int) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetRawIcs(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetRecurrence(v map[string]interface{}) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetReminders(v []map[string]interface{}) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetRemoteID(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetStart(v time.Time) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetStartTz(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetStatus(v task.Status) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetSummary(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetUID(v string) *TaskUpsertBulk
- func (u *TaskUpsertBulk) SetUpdated(v time.Time) *TaskUpsertBulk
- func (u *TaskUpsertBulk) Update(set func(*TaskUpsert)) *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateAllDay() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateCategories() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateCompleted() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateCreated() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateDescription() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateDue() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateDueTz() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateEtag() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateLocation() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateNewValues() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateParentUID() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdatePercentComplete() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdatePriority() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateRawIcs() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateRecurrence() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateReminders() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateRemoteID() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateStart() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateStartTz() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateStatus() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateSummary() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateUID() *TaskUpsertBulk
- func (u *TaskUpsertBulk) UpdateUpdated() *TaskUpsertBulk
- type TaskUpsertOne
- func (u *TaskUpsertOne) AddPercentComplete(v int) *TaskUpsertOne
- func (u *TaskUpsertOne) AddPriority(v int) *TaskUpsertOne
- func (u *TaskUpsertOne) ClearCategories() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearCompleted() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearDescription() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearDue() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearDueTz() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearEtag() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearLocation() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearParentUID() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearRawIcs() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearRecurrence() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearReminders() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearRemoteID() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearStart() *TaskUpsertOne
- func (u *TaskUpsertOne) ClearStartTz() *TaskUpsertOne
- func (u *TaskUpsertOne) DoNothing() *TaskUpsertOne
- func (u *TaskUpsertOne) Exec(ctx context.Context) error
- func (u *TaskUpsertOne) ExecX(ctx context.Context)
- func (u *TaskUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *TaskUpsertOne) IDX(ctx context.Context) string
- func (u *TaskUpsertOne) Ignore() *TaskUpsertOne
- func (u *TaskUpsertOne) SetAllDay(v bool) *TaskUpsertOne
- func (u *TaskUpsertOne) SetCategories(v []string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetCompleted(v time.Time) *TaskUpsertOne
- func (u *TaskUpsertOne) SetCreated(v time.Time) *TaskUpsertOne
- func (u *TaskUpsertOne) SetDescription(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetDue(v time.Time) *TaskUpsertOne
- func (u *TaskUpsertOne) SetDueTz(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetEtag(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetLocation(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetParentUID(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetPercentComplete(v int) *TaskUpsertOne
- func (u *TaskUpsertOne) SetPriority(v int) *TaskUpsertOne
- func (u *TaskUpsertOne) SetRawIcs(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetRecurrence(v map[string]interface{}) *TaskUpsertOne
- func (u *TaskUpsertOne) SetReminders(v []map[string]interface{}) *TaskUpsertOne
- func (u *TaskUpsertOne) SetRemoteID(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetStart(v time.Time) *TaskUpsertOne
- func (u *TaskUpsertOne) SetStartTz(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetStatus(v task.Status) *TaskUpsertOne
- func (u *TaskUpsertOne) SetSummary(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetUID(v string) *TaskUpsertOne
- func (u *TaskUpsertOne) SetUpdated(v time.Time) *TaskUpsertOne
- func (u *TaskUpsertOne) Update(set func(*TaskUpsert)) *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateAllDay() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateCategories() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateCompleted() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateCreated() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateDescription() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateDue() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateDueTz() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateEtag() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateLocation() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateNewValues() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateParentUID() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdatePercentComplete() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdatePriority() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateRawIcs() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateRecurrence() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateReminders() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateRemoteID() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateStart() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateStartTz() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateStatus() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateSummary() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateUID() *TaskUpsertOne
- func (u *TaskUpsertOne) UpdateUpdated() *TaskUpsertOne
- type Tasks
- type TraverseFunc
- type Traverser
- type Tx
- func (tx *Tx) Client() *Client
- func (tx *Tx) Commit() error
- func (c *Tx) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (tx *Tx) OnCommit(f CommitHook)
- func (tx *Tx) OnRollback(f RollbackHook)
- func (c *Tx) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (tx *Tx) Rollback() error
- 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. TypeAccount = "Account" TypeCalendar = "Calendar" TypeEvent = "Event" TypeInvitationState = "InvitationState" TypeReminderState = "ReminderState" TypeSecret = "Secret" TypeTask = "Task" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type Account ¶
type Account struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Kind holds the value of the "kind" field.
Kind account.Kind `json:"kind,omitempty"`
// DisplayName holds the value of the "display_name" field.
DisplayName string `json:"display_name,omitempty"`
// Settings holds the value of the "settings" field.
Settings map[string]interface{} `json:"settings,omitempty"`
// NeedsReauth holds the value of the "needs_reauth" field.
NeedsReauth bool `json:"needs_reauth,omitempty"`
// AuthError holds the value of the "auth_error" field.
AuthError string `json:"auth_error,omitempty"`
// SyncNotice holds the value of the "sync_notice" field.
SyncNotice string `json:"sync_notice,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"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the AccountQuery when eager-loading is set.
Edges AccountEdges `json:"edges"`
// contains filtered or unexported fields
}
Account is the model entity for the Account schema.
func (*Account) ExecContext ¶
func (c *Account) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Account) QueryCalendars ¶
func (_m *Account) QueryCalendars() *CalendarQuery
QueryCalendars queries the "calendars" edge of the Account entity.
func (*Account) QueryContext ¶
func (c *Account) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Account) QuerySecrets ¶
func (_m *Account) QuerySecrets() *SecretQuery
QuerySecrets queries the "secrets" edge of the Account entity.
func (*Account) Unwrap ¶
Unwrap unwraps the Account 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 (*Account) Update ¶
func (_m *Account) Update() *AccountUpdateOne
Update returns a builder for updating this Account. Note that you need to call Account.Unwrap() before calling this method if this Account was returned from a transaction, and the transaction was committed or rolled back.
type AccountClient ¶
type AccountClient struct {
// contains filtered or unexported fields
}
AccountClient is a client for the Account schema.
func NewAccountClient ¶
func NewAccountClient(c config) *AccountClient
NewAccountClient returns a client for the Account from the given config.
func (*AccountClient) Create ¶
func (c *AccountClient) Create() *AccountCreate
Create returns a builder for creating a Account entity.
func (*AccountClient) CreateBulk ¶
func (c *AccountClient) CreateBulk(builders ...*AccountCreate) *AccountCreateBulk
CreateBulk returns a builder for creating a bulk of Account entities.
func (*AccountClient) Delete ¶
func (c *AccountClient) Delete() *AccountDelete
Delete returns a delete builder for Account.
func (*AccountClient) DeleteOne ¶
func (c *AccountClient) DeleteOne(_m *Account) *AccountDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AccountClient) DeleteOneID ¶
func (c *AccountClient) DeleteOneID(id string) *AccountDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AccountClient) ExecContext ¶
func (c *AccountClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountClient) GetX ¶
func (c *AccountClient) GetX(ctx context.Context, id string) *Account
GetX is like Get, but panics if an error occurs.
func (*AccountClient) Hooks ¶
func (c *AccountClient) Hooks() []Hook
Hooks returns the client hooks.
func (*AccountClient) Intercept ¶
func (c *AccountClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `account.Intercept(f(g(h())))`.
func (*AccountClient) Interceptors ¶
func (c *AccountClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AccountClient) MapCreateBulk ¶
func (c *AccountClient) MapCreateBulk(slice any, setFunc func(*AccountCreate, int)) *AccountCreateBulk
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 (*AccountClient) Query ¶
func (c *AccountClient) Query() *AccountQuery
Query returns a query builder for Account.
func (*AccountClient) QueryCalendars ¶
func (c *AccountClient) QueryCalendars(_m *Account) *CalendarQuery
QueryCalendars queries the calendars edge of a Account.
func (*AccountClient) QueryContext ¶
func (c *AccountClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountClient) QuerySecrets ¶
func (c *AccountClient) QuerySecrets(_m *Account) *SecretQuery
QuerySecrets queries the secrets edge of a Account.
func (*AccountClient) Update ¶
func (c *AccountClient) Update() *AccountUpdate
Update returns an update builder for Account.
func (*AccountClient) UpdateOne ¶
func (c *AccountClient) UpdateOne(_m *Account) *AccountUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AccountClient) UpdateOneID ¶
func (c *AccountClient) UpdateOneID(id string) *AccountUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AccountClient) Use ¶
func (c *AccountClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `account.Hooks(f(g(h())))`.
type AccountCreate ¶
type AccountCreate struct {
// contains filtered or unexported fields
}
AccountCreate is the builder for creating a Account entity.
func (*AccountCreate) AddCalendarIDs ¶
func (_c *AccountCreate) AddCalendarIDs(ids ...string) *AccountCreate
AddCalendarIDs adds the "calendars" edge to the Calendar entity by IDs.
func (*AccountCreate) AddCalendars ¶
func (_c *AccountCreate) AddCalendars(v ...*Calendar) *AccountCreate
AddCalendars adds the "calendars" edges to the Calendar entity.
func (*AccountCreate) AddSecretIDs ¶
func (_c *AccountCreate) AddSecretIDs(ids ...string) *AccountCreate
AddSecretIDs adds the "secrets" edge to the Secret entity by IDs.
func (*AccountCreate) AddSecrets ¶
func (_c *AccountCreate) AddSecrets(v ...*Secret) *AccountCreate
AddSecrets adds the "secrets" edges to the Secret entity.
func (*AccountCreate) Exec ¶
func (_c *AccountCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountCreate) ExecContext ¶
func (c *AccountCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountCreate) ExecX ¶
func (_c *AccountCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountCreate) Mutation ¶
func (_c *AccountCreate) Mutation() *AccountMutation
Mutation returns the AccountMutation object of the builder.
func (*AccountCreate) OnConflict ¶
func (_c *AccountCreate) OnConflict(opts ...sql.ConflictOption) *AccountUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Account.Create().
SetKind(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.AccountUpsert) {
SetKind(v+v).
}).
Exec(ctx)
func (*AccountCreate) OnConflictColumns ¶
func (_c *AccountCreate) OnConflictColumns(columns ...string) *AccountUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Account.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*AccountCreate) QueryContext ¶
func (c *AccountCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountCreate) Save ¶
func (_c *AccountCreate) Save(ctx context.Context) (*Account, error)
Save creates the Account in the database.
func (*AccountCreate) SaveX ¶
func (_c *AccountCreate) SaveX(ctx context.Context) *Account
SaveX calls Save and panics if Save returns an error.
func (*AccountCreate) SetAuthError ¶
func (_c *AccountCreate) SetAuthError(v string) *AccountCreate
SetAuthError sets the "auth_error" field.
func (*AccountCreate) SetCreatedAt ¶
func (_c *AccountCreate) SetCreatedAt(v time.Time) *AccountCreate
SetCreatedAt sets the "created_at" field.
func (*AccountCreate) SetDisplayName ¶
func (_c *AccountCreate) SetDisplayName(v string) *AccountCreate
SetDisplayName sets the "display_name" field.
func (*AccountCreate) SetID ¶
func (_c *AccountCreate) SetID(v string) *AccountCreate
SetID sets the "id" field.
func (*AccountCreate) SetKind ¶
func (_c *AccountCreate) SetKind(v account.Kind) *AccountCreate
SetKind sets the "kind" field.
func (*AccountCreate) SetNeedsReauth ¶
func (_c *AccountCreate) SetNeedsReauth(v bool) *AccountCreate
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountCreate) SetNillableAuthError ¶
func (_c *AccountCreate) SetNillableAuthError(v *string) *AccountCreate
SetNillableAuthError sets the "auth_error" field if the given value is not nil.
func (*AccountCreate) SetNillableCreatedAt ¶
func (_c *AccountCreate) SetNillableCreatedAt(v *time.Time) *AccountCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AccountCreate) SetNillableNeedsReauth ¶
func (_c *AccountCreate) SetNillableNeedsReauth(v *bool) *AccountCreate
SetNillableNeedsReauth sets the "needs_reauth" field if the given value is not nil.
func (*AccountCreate) SetNillableSyncNotice ¶
func (_c *AccountCreate) SetNillableSyncNotice(v *string) *AccountCreate
SetNillableSyncNotice sets the "sync_notice" field if the given value is not nil.
func (*AccountCreate) SetNillableUpdatedAt ¶
func (_c *AccountCreate) SetNillableUpdatedAt(v *time.Time) *AccountCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AccountCreate) SetSettings ¶
func (_c *AccountCreate) SetSettings(v map[string]interface{}) *AccountCreate
SetSettings sets the "settings" field.
func (*AccountCreate) SetSyncNotice ¶
func (_c *AccountCreate) SetSyncNotice(v string) *AccountCreate
SetSyncNotice sets the "sync_notice" field.
func (*AccountCreate) SetUpdatedAt ¶
func (_c *AccountCreate) SetUpdatedAt(v time.Time) *AccountCreate
SetUpdatedAt sets the "updated_at" field.
type AccountCreateBulk ¶
type AccountCreateBulk struct {
// contains filtered or unexported fields
}
AccountCreateBulk is the builder for creating many Account entities in bulk.
func (*AccountCreateBulk) Exec ¶
func (_c *AccountCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountCreateBulk) ExecContext ¶
func (c *AccountCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountCreateBulk) ExecX ¶
func (_c *AccountCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountCreateBulk) OnConflict ¶
func (_c *AccountCreateBulk) OnConflict(opts ...sql.ConflictOption) *AccountUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Account.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.AccountUpsert) {
SetKind(v+v).
}).
Exec(ctx)
func (*AccountCreateBulk) OnConflictColumns ¶
func (_c *AccountCreateBulk) OnConflictColumns(columns ...string) *AccountUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Account.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*AccountCreateBulk) QueryContext ¶
func (c *AccountCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type AccountDelete ¶
type AccountDelete struct {
// contains filtered or unexported fields
}
AccountDelete is the builder for deleting a Account entity.
func (*AccountDelete) Exec ¶
func (_d *AccountDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AccountDelete) ExecContext ¶
func (c *AccountDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountDelete) ExecX ¶
func (_d *AccountDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AccountDelete) QueryContext ¶
func (c *AccountDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountDelete) Where ¶
func (_d *AccountDelete) Where(ps ...predicate.Account) *AccountDelete
Where appends a list predicates to the AccountDelete builder.
type AccountDeleteOne ¶
type AccountDeleteOne struct {
// contains filtered or unexported fields
}
AccountDeleteOne is the builder for deleting a single Account entity.
func (*AccountDeleteOne) Exec ¶
func (_d *AccountDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AccountDeleteOne) ExecX ¶
func (_d *AccountDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountDeleteOne) Where ¶
func (_d *AccountDeleteOne) Where(ps ...predicate.Account) *AccountDeleteOne
Where appends a list predicates to the AccountDelete builder.
type AccountEdges ¶
type AccountEdges struct {
// Calendars holds the value of the calendars edge.
Calendars []*Calendar `json:"calendars,omitempty"`
// Secrets holds the value of the secrets edge.
Secrets []*Secret `json:"secrets,omitempty"`
// contains filtered or unexported fields
}
AccountEdges holds the relations/edges for other nodes in the graph.
func (AccountEdges) CalendarsOrErr ¶
func (e AccountEdges) CalendarsOrErr() ([]*Calendar, error)
CalendarsOrErr returns the Calendars value or an error if the edge was not loaded in eager-loading.
func (AccountEdges) SecretsOrErr ¶
func (e AccountEdges) SecretsOrErr() ([]*Secret, error)
SecretsOrErr returns the Secrets value or an error if the edge was not loaded in eager-loading.
type AccountGroupBy ¶
type AccountGroupBy struct {
// contains filtered or unexported fields
}
AccountGroupBy is the group-by builder for Account entities.
func (*AccountGroupBy) Aggregate ¶
func (_g *AccountGroupBy) Aggregate(fns ...AggregateFunc) *AccountGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AccountGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Scan ¶
func (_g *AccountGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AccountGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AccountMutation ¶
type AccountMutation struct {
// contains filtered or unexported fields
}
AccountMutation represents an operation that mutates the Account nodes in the graph.
func (*AccountMutation) AddCalendarIDs ¶
func (m *AccountMutation) AddCalendarIDs(ids ...string)
AddCalendarIDs adds the "calendars" edge to the Calendar entity by ids.
func (*AccountMutation) AddField ¶
func (m *AccountMutation) 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 (*AccountMutation) AddSecretIDs ¶
func (m *AccountMutation) AddSecretIDs(ids ...string)
AddSecretIDs adds the "secrets" edge to the Secret entity by ids.
func (*AccountMutation) AddedEdges ¶
func (m *AccountMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AccountMutation) AddedField ¶
func (m *AccountMutation) 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 (*AccountMutation) AddedFields ¶
func (m *AccountMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AccountMutation) AddedIDs ¶
func (m *AccountMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AccountMutation) AuthError ¶
func (m *AccountMutation) AuthError() (r string, exists bool)
AuthError returns the value of the "auth_error" field in the mutation.
func (*AccountMutation) AuthErrorCleared ¶
func (m *AccountMutation) AuthErrorCleared() bool
AuthErrorCleared returns if the "auth_error" field was cleared in this mutation.
func (*AccountMutation) CalendarsCleared ¶
func (m *AccountMutation) CalendarsCleared() bool
CalendarsCleared reports if the "calendars" edge to the Calendar entity was cleared.
func (*AccountMutation) CalendarsIDs ¶
func (m *AccountMutation) CalendarsIDs() (ids []string)
CalendarsIDs returns the "calendars" edge IDs in the mutation.
func (*AccountMutation) ClearAuthError ¶
func (m *AccountMutation) ClearAuthError()
ClearAuthError clears the value of the "auth_error" field.
func (*AccountMutation) ClearCalendars ¶
func (m *AccountMutation) ClearCalendars()
ClearCalendars clears the "calendars" edge to the Calendar entity.
func (*AccountMutation) ClearEdge ¶
func (m *AccountMutation) 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 (*AccountMutation) ClearField ¶
func (m *AccountMutation) 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 (*AccountMutation) ClearSecrets ¶
func (m *AccountMutation) ClearSecrets()
ClearSecrets clears the "secrets" edge to the Secret entity.
func (*AccountMutation) ClearSettings ¶
func (m *AccountMutation) ClearSettings()
ClearSettings clears the value of the "settings" field.
func (*AccountMutation) ClearSyncNotice ¶
func (m *AccountMutation) ClearSyncNotice()
ClearSyncNotice clears the value of the "sync_notice" field.
func (*AccountMutation) ClearedEdges ¶
func (m *AccountMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AccountMutation) ClearedFields ¶
func (m *AccountMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AccountMutation) Client ¶
func (m AccountMutation) 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 (*AccountMutation) CreatedAt ¶
func (m *AccountMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*AccountMutation) DisplayName ¶
func (m *AccountMutation) DisplayName() (r string, exists bool)
DisplayName returns the value of the "display_name" field in the mutation.
func (*AccountMutation) EdgeCleared ¶
func (m *AccountMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AccountMutation) ExecContext ¶
func (c *AccountMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountMutation) Field ¶
func (m *AccountMutation) 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 (*AccountMutation) FieldCleared ¶
func (m *AccountMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AccountMutation) Fields ¶
func (m *AccountMutation) 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 (*AccountMutation) ID ¶
func (m *AccountMutation) 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 (*AccountMutation) IDs ¶
func (m *AccountMutation) 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 (*AccountMutation) Kind ¶
func (m *AccountMutation) Kind() (r account.Kind, exists bool)
Kind returns the value of the "kind" field in the mutation.
func (*AccountMutation) NeedsReauth ¶
func (m *AccountMutation) NeedsReauth() (r bool, exists bool)
NeedsReauth returns the value of the "needs_reauth" field in the mutation.
func (*AccountMutation) OldAuthError ¶
func (m *AccountMutation) OldAuthError(ctx context.Context) (v string, err error)
OldAuthError returns the old "auth_error" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) OldDisplayName ¶
func (m *AccountMutation) OldDisplayName(ctx context.Context) (v string, err error)
OldDisplayName returns the old "display_name" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) 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 (*AccountMutation) OldKind ¶
OldKind returns the old "kind" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) OldNeedsReauth ¶
func (m *AccountMutation) OldNeedsReauth(ctx context.Context) (v bool, err error)
OldNeedsReauth returns the old "needs_reauth" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) OldSettings ¶
func (m *AccountMutation) OldSettings(ctx context.Context) (v map[string]interface{}, err error)
OldSettings returns the old "settings" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) OldSyncNotice ¶
func (m *AccountMutation) OldSyncNotice(ctx context.Context) (v string, err error)
OldSyncNotice returns the old "sync_notice" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Account entity. If the Account object wasn'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 (*AccountMutation) QueryContext ¶
func (c *AccountMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountMutation) RemoveCalendarIDs ¶
func (m *AccountMutation) RemoveCalendarIDs(ids ...string)
RemoveCalendarIDs removes the "calendars" edge to the Calendar entity by IDs.
func (*AccountMutation) RemoveSecretIDs ¶
func (m *AccountMutation) RemoveSecretIDs(ids ...string)
RemoveSecretIDs removes the "secrets" edge to the Secret entity by IDs.
func (*AccountMutation) RemovedCalendarsIDs ¶
func (m *AccountMutation) RemovedCalendarsIDs() (ids []string)
RemovedCalendars returns the removed IDs of the "calendars" edge to the Calendar entity.
func (*AccountMutation) RemovedEdges ¶
func (m *AccountMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AccountMutation) RemovedIDs ¶
func (m *AccountMutation) 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 (*AccountMutation) RemovedSecretsIDs ¶
func (m *AccountMutation) RemovedSecretsIDs() (ids []string)
RemovedSecrets returns the removed IDs of the "secrets" edge to the Secret entity.
func (*AccountMutation) ResetAuthError ¶
func (m *AccountMutation) ResetAuthError()
ResetAuthError resets all changes to the "auth_error" field.
func (*AccountMutation) ResetCalendars ¶
func (m *AccountMutation) ResetCalendars()
ResetCalendars resets all changes to the "calendars" edge.
func (*AccountMutation) ResetCreatedAt ¶
func (m *AccountMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*AccountMutation) ResetDisplayName ¶
func (m *AccountMutation) ResetDisplayName()
ResetDisplayName resets all changes to the "display_name" field.
func (*AccountMutation) ResetEdge ¶
func (m *AccountMutation) 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 (*AccountMutation) ResetField ¶
func (m *AccountMutation) 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 (*AccountMutation) ResetKind ¶
func (m *AccountMutation) ResetKind()
ResetKind resets all changes to the "kind" field.
func (*AccountMutation) ResetNeedsReauth ¶
func (m *AccountMutation) ResetNeedsReauth()
ResetNeedsReauth resets all changes to the "needs_reauth" field.
func (*AccountMutation) ResetSecrets ¶
func (m *AccountMutation) ResetSecrets()
ResetSecrets resets all changes to the "secrets" edge.
func (*AccountMutation) ResetSettings ¶
func (m *AccountMutation) ResetSettings()
ResetSettings resets all changes to the "settings" field.
func (*AccountMutation) ResetSyncNotice ¶
func (m *AccountMutation) ResetSyncNotice()
ResetSyncNotice resets all changes to the "sync_notice" field.
func (*AccountMutation) ResetUpdatedAt ¶
func (m *AccountMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*AccountMutation) SecretsCleared ¶
func (m *AccountMutation) SecretsCleared() bool
SecretsCleared reports if the "secrets" edge to the Secret entity was cleared.
func (*AccountMutation) SecretsIDs ¶
func (m *AccountMutation) SecretsIDs() (ids []string)
SecretsIDs returns the "secrets" edge IDs in the mutation.
func (*AccountMutation) SetAuthError ¶
func (m *AccountMutation) SetAuthError(s string)
SetAuthError sets the "auth_error" field.
func (*AccountMutation) SetCreatedAt ¶
func (m *AccountMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*AccountMutation) SetDisplayName ¶
func (m *AccountMutation) SetDisplayName(s string)
SetDisplayName sets the "display_name" field.
func (*AccountMutation) SetField ¶
func (m *AccountMutation) 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 (*AccountMutation) SetID ¶
func (m *AccountMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Account entities.
func (*AccountMutation) SetKind ¶
func (m *AccountMutation) SetKind(a account.Kind)
SetKind sets the "kind" field.
func (*AccountMutation) SetNeedsReauth ¶
func (m *AccountMutation) SetNeedsReauth(b bool)
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountMutation) SetOp ¶
func (m *AccountMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AccountMutation) SetSettings ¶
func (m *AccountMutation) SetSettings(value map[string]interface{})
SetSettings sets the "settings" field.
func (*AccountMutation) SetSyncNotice ¶
func (m *AccountMutation) SetSyncNotice(s string)
SetSyncNotice sets the "sync_notice" field.
func (*AccountMutation) SetUpdatedAt ¶
func (m *AccountMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*AccountMutation) Settings ¶
func (m *AccountMutation) Settings() (r map[string]interface{}, exists bool)
Settings returns the value of the "settings" field in the mutation.
func (*AccountMutation) SettingsCleared ¶
func (m *AccountMutation) SettingsCleared() bool
SettingsCleared returns if the "settings" field was cleared in this mutation.
func (*AccountMutation) SyncNotice ¶
func (m *AccountMutation) SyncNotice() (r string, exists bool)
SyncNotice returns the value of the "sync_notice" field in the mutation.
func (*AccountMutation) SyncNoticeCleared ¶
func (m *AccountMutation) SyncNoticeCleared() bool
SyncNoticeCleared returns if the "sync_notice" field was cleared in this mutation.
func (AccountMutation) Tx ¶
func (m AccountMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AccountMutation) Type ¶
func (m *AccountMutation) Type() string
Type returns the node type of this mutation (Account).
func (*AccountMutation) UpdatedAt ¶
func (m *AccountMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*AccountMutation) Where ¶
func (m *AccountMutation) Where(ps ...predicate.Account)
Where appends a list predicates to the AccountMutation builder.
func (*AccountMutation) WhereP ¶
func (m *AccountMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AccountMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type AccountQuery ¶
type AccountQuery struct {
// contains filtered or unexported fields
}
AccountQuery is the builder for querying Account entities.
func (*AccountQuery) Aggregate ¶
func (_q *AccountQuery) Aggregate(fns ...AggregateFunc) *AccountSelect
Aggregate returns a AccountSelect configured with the given aggregations.
func (*AccountQuery) All ¶
func (_q *AccountQuery) All(ctx context.Context) ([]*Account, error)
All executes the query and returns a list of Accounts.
func (*AccountQuery) AllX ¶
func (_q *AccountQuery) AllX(ctx context.Context) []*Account
AllX is like All, but panics if an error occurs.
func (*AccountQuery) Clone ¶
func (_q *AccountQuery) Clone() *AccountQuery
Clone returns a duplicate of the AccountQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AccountQuery) Count ¶
func (_q *AccountQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AccountQuery) CountX ¶
func (_q *AccountQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AccountQuery) ExecContext ¶
func (c *AccountQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountQuery) Exist ¶
func (_q *AccountQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AccountQuery) ExistX ¶
func (_q *AccountQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AccountQuery) First ¶
func (_q *AccountQuery) First(ctx context.Context) (*Account, error)
First returns the first Account entity from the query. Returns a *NotFoundError when no Account was found.
func (*AccountQuery) FirstID ¶
func (_q *AccountQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Account ID from the query. Returns a *NotFoundError when no Account ID was found.
func (*AccountQuery) FirstIDX ¶
func (_q *AccountQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*AccountQuery) FirstX ¶
func (_q *AccountQuery) FirstX(ctx context.Context) *Account
FirstX is like First, but panics if an error occurs.
func (*AccountQuery) GroupBy ¶
func (_q *AccountQuery) GroupBy(field string, fields ...string) *AccountGroupBy
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 {
Kind account.Kind `json:"kind,omitempty"`
Count int `json:"count,omitempty"`
}
client.Account.Query().
GroupBy(account.FieldKind).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*AccountQuery) IDs ¶
func (_q *AccountQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Account IDs.
func (*AccountQuery) IDsX ¶
func (_q *AccountQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*AccountQuery) Limit ¶
func (_q *AccountQuery) Limit(limit int) *AccountQuery
Limit the number of records to be returned by this query.
func (*AccountQuery) Modify ¶
func (_q *AccountQuery) Modify(modifiers ...func(s *sql.Selector)) *AccountSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*AccountQuery) Offset ¶
func (_q *AccountQuery) Offset(offset int) *AccountQuery
Offset to start from.
func (*AccountQuery) Only ¶
func (_q *AccountQuery) Only(ctx context.Context) (*Account, error)
Only returns a single Account entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Account entity is found. Returns a *NotFoundError when no Account entities are found.
func (*AccountQuery) OnlyID ¶
func (_q *AccountQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Account ID in the query. Returns a *NotSingularError when more than one Account ID is found. Returns a *NotFoundError when no entities are found.
func (*AccountQuery) OnlyIDX ¶
func (_q *AccountQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AccountQuery) OnlyX ¶
func (_q *AccountQuery) OnlyX(ctx context.Context) *Account
OnlyX is like Only, but panics if an error occurs.
func (*AccountQuery) Order ¶
func (_q *AccountQuery) Order(o ...account.OrderOption) *AccountQuery
Order specifies how the records should be ordered.
func (*AccountQuery) QueryCalendars ¶
func (_q *AccountQuery) QueryCalendars() *CalendarQuery
QueryCalendars chains the current query on the "calendars" edge.
func (*AccountQuery) QueryContext ¶
func (c *AccountQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountQuery) QuerySecrets ¶
func (_q *AccountQuery) QuerySecrets() *SecretQuery
QuerySecrets chains the current query on the "secrets" edge.
func (*AccountQuery) Select ¶
func (_q *AccountQuery) Select(fields ...string) *AccountSelect
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 {
Kind account.Kind `json:"kind,omitempty"`
}
client.Account.Query().
Select(account.FieldKind).
Scan(ctx, &v)
func (*AccountQuery) Unique ¶
func (_q *AccountQuery) Unique(unique bool) *AccountQuery
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 (*AccountQuery) Where ¶
func (_q *AccountQuery) Where(ps ...predicate.Account) *AccountQuery
Where adds a new predicate for the AccountQuery builder.
func (*AccountQuery) WithCalendars ¶
func (_q *AccountQuery) WithCalendars(opts ...func(*CalendarQuery)) *AccountQuery
WithCalendars tells the query-builder to eager-load the nodes that are connected to the "calendars" edge. The optional arguments are used to configure the query builder of the edge.
func (*AccountQuery) WithSecrets ¶
func (_q *AccountQuery) WithSecrets(opts ...func(*SecretQuery)) *AccountQuery
WithSecrets tells the query-builder to eager-load the nodes that are connected to the "secrets" edge. The optional arguments are used to configure the query builder of the edge.
type AccountSelect ¶
type AccountSelect struct {
*AccountQuery
// contains filtered or unexported fields
}
AccountSelect is the builder for selecting fields of Account entities.
func (*AccountSelect) Aggregate ¶
func (_s *AccountSelect) Aggregate(fns ...AggregateFunc) *AccountSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AccountSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (AccountSelect) ExecContext ¶
func (c AccountSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Modify ¶
func (_s *AccountSelect) Modify(modifiers ...func(s *sql.Selector)) *AccountSelect
Modify adds a query modifier for attaching custom logic to queries.
func (AccountSelect) QueryContext ¶
func (c AccountSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountSelect) Scan ¶
func (_s *AccountSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AccountSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AccountUpdate ¶
type AccountUpdate struct {
// contains filtered or unexported fields
}
AccountUpdate is the builder for updating Account entities.
func (*AccountUpdate) AddCalendarIDs ¶
func (_u *AccountUpdate) AddCalendarIDs(ids ...string) *AccountUpdate
AddCalendarIDs adds the "calendars" edge to the Calendar entity by IDs.
func (*AccountUpdate) AddCalendars ¶
func (_u *AccountUpdate) AddCalendars(v ...*Calendar) *AccountUpdate
AddCalendars adds the "calendars" edges to the Calendar entity.
func (*AccountUpdate) AddSecretIDs ¶
func (_u *AccountUpdate) AddSecretIDs(ids ...string) *AccountUpdate
AddSecretIDs adds the "secrets" edge to the Secret entity by IDs.
func (*AccountUpdate) AddSecrets ¶
func (_u *AccountUpdate) AddSecrets(v ...*Secret) *AccountUpdate
AddSecrets adds the "secrets" edges to the Secret entity.
func (*AccountUpdate) ClearAuthError ¶
func (_u *AccountUpdate) ClearAuthError() *AccountUpdate
ClearAuthError clears the value of the "auth_error" field.
func (*AccountUpdate) ClearCalendars ¶
func (_u *AccountUpdate) ClearCalendars() *AccountUpdate
ClearCalendars clears all "calendars" edges to the Calendar entity.
func (*AccountUpdate) ClearSecrets ¶
func (_u *AccountUpdate) ClearSecrets() *AccountUpdate
ClearSecrets clears all "secrets" edges to the Secret entity.
func (*AccountUpdate) ClearSettings ¶
func (_u *AccountUpdate) ClearSettings() *AccountUpdate
ClearSettings clears the value of the "settings" field.
func (*AccountUpdate) ClearSyncNotice ¶
func (_u *AccountUpdate) ClearSyncNotice() *AccountUpdate
ClearSyncNotice clears the value of the "sync_notice" field.
func (*AccountUpdate) Exec ¶
func (_u *AccountUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountUpdate) ExecContext ¶
func (c *AccountUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountUpdate) ExecX ¶
func (_u *AccountUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpdate) Modify ¶
func (_u *AccountUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AccountUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*AccountUpdate) Mutation ¶
func (_u *AccountUpdate) Mutation() *AccountMutation
Mutation returns the AccountMutation object of the builder.
func (*AccountUpdate) QueryContext ¶
func (c *AccountUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountUpdate) RemoveCalendarIDs ¶
func (_u *AccountUpdate) RemoveCalendarIDs(ids ...string) *AccountUpdate
RemoveCalendarIDs removes the "calendars" edge to Calendar entities by IDs.
func (*AccountUpdate) RemoveCalendars ¶
func (_u *AccountUpdate) RemoveCalendars(v ...*Calendar) *AccountUpdate
RemoveCalendars removes "calendars" edges to Calendar entities.
func (*AccountUpdate) RemoveSecretIDs ¶
func (_u *AccountUpdate) RemoveSecretIDs(ids ...string) *AccountUpdate
RemoveSecretIDs removes the "secrets" edge to Secret entities by IDs.
func (*AccountUpdate) RemoveSecrets ¶
func (_u *AccountUpdate) RemoveSecrets(v ...*Secret) *AccountUpdate
RemoveSecrets removes "secrets" edges to Secret entities.
func (*AccountUpdate) Save ¶
func (_u *AccountUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*AccountUpdate) SaveX ¶
func (_u *AccountUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AccountUpdate) SetAuthError ¶
func (_u *AccountUpdate) SetAuthError(v string) *AccountUpdate
SetAuthError sets the "auth_error" field.
func (*AccountUpdate) SetDisplayName ¶
func (_u *AccountUpdate) SetDisplayName(v string) *AccountUpdate
SetDisplayName sets the "display_name" field.
func (*AccountUpdate) SetNeedsReauth ¶
func (_u *AccountUpdate) SetNeedsReauth(v bool) *AccountUpdate
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountUpdate) SetNillableAuthError ¶
func (_u *AccountUpdate) SetNillableAuthError(v *string) *AccountUpdate
SetNillableAuthError sets the "auth_error" field if the given value is not nil.
func (*AccountUpdate) SetNillableDisplayName ¶
func (_u *AccountUpdate) SetNillableDisplayName(v *string) *AccountUpdate
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*AccountUpdate) SetNillableNeedsReauth ¶
func (_u *AccountUpdate) SetNillableNeedsReauth(v *bool) *AccountUpdate
SetNillableNeedsReauth sets the "needs_reauth" field if the given value is not nil.
func (*AccountUpdate) SetNillableSyncNotice ¶
func (_u *AccountUpdate) SetNillableSyncNotice(v *string) *AccountUpdate
SetNillableSyncNotice sets the "sync_notice" field if the given value is not nil.
func (*AccountUpdate) SetSettings ¶
func (_u *AccountUpdate) SetSettings(v map[string]interface{}) *AccountUpdate
SetSettings sets the "settings" field.
func (*AccountUpdate) SetSyncNotice ¶
func (_u *AccountUpdate) SetSyncNotice(v string) *AccountUpdate
SetSyncNotice sets the "sync_notice" field.
func (*AccountUpdate) SetUpdatedAt ¶
func (_u *AccountUpdate) SetUpdatedAt(v time.Time) *AccountUpdate
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpdate) Where ¶
func (_u *AccountUpdate) Where(ps ...predicate.Account) *AccountUpdate
Where appends a list predicates to the AccountUpdate builder.
type AccountUpdateOne ¶
type AccountUpdateOne struct {
// contains filtered or unexported fields
}
AccountUpdateOne is the builder for updating a single Account entity.
func (*AccountUpdateOne) AddCalendarIDs ¶
func (_u *AccountUpdateOne) AddCalendarIDs(ids ...string) *AccountUpdateOne
AddCalendarIDs adds the "calendars" edge to the Calendar entity by IDs.
func (*AccountUpdateOne) AddCalendars ¶
func (_u *AccountUpdateOne) AddCalendars(v ...*Calendar) *AccountUpdateOne
AddCalendars adds the "calendars" edges to the Calendar entity.
func (*AccountUpdateOne) AddSecretIDs ¶
func (_u *AccountUpdateOne) AddSecretIDs(ids ...string) *AccountUpdateOne
AddSecretIDs adds the "secrets" edge to the Secret entity by IDs.
func (*AccountUpdateOne) AddSecrets ¶
func (_u *AccountUpdateOne) AddSecrets(v ...*Secret) *AccountUpdateOne
AddSecrets adds the "secrets" edges to the Secret entity.
func (*AccountUpdateOne) ClearAuthError ¶
func (_u *AccountUpdateOne) ClearAuthError() *AccountUpdateOne
ClearAuthError clears the value of the "auth_error" field.
func (*AccountUpdateOne) ClearCalendars ¶
func (_u *AccountUpdateOne) ClearCalendars() *AccountUpdateOne
ClearCalendars clears all "calendars" edges to the Calendar entity.
func (*AccountUpdateOne) ClearSecrets ¶
func (_u *AccountUpdateOne) ClearSecrets() *AccountUpdateOne
ClearSecrets clears all "secrets" edges to the Secret entity.
func (*AccountUpdateOne) ClearSettings ¶
func (_u *AccountUpdateOne) ClearSettings() *AccountUpdateOne
ClearSettings clears the value of the "settings" field.
func (*AccountUpdateOne) ClearSyncNotice ¶
func (_u *AccountUpdateOne) ClearSyncNotice() *AccountUpdateOne
ClearSyncNotice clears the value of the "sync_notice" field.
func (*AccountUpdateOne) Exec ¶
func (_u *AccountUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AccountUpdateOne) ExecContext ¶
func (c *AccountUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AccountUpdateOne) ExecX ¶
func (_u *AccountUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpdateOne) Modify ¶
func (_u *AccountUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AccountUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*AccountUpdateOne) Mutation ¶
func (_u *AccountUpdateOne) Mutation() *AccountMutation
Mutation returns the AccountMutation object of the builder.
func (*AccountUpdateOne) QueryContext ¶
func (c *AccountUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AccountUpdateOne) RemoveCalendarIDs ¶
func (_u *AccountUpdateOne) RemoveCalendarIDs(ids ...string) *AccountUpdateOne
RemoveCalendarIDs removes the "calendars" edge to Calendar entities by IDs.
func (*AccountUpdateOne) RemoveCalendars ¶
func (_u *AccountUpdateOne) RemoveCalendars(v ...*Calendar) *AccountUpdateOne
RemoveCalendars removes "calendars" edges to Calendar entities.
func (*AccountUpdateOne) RemoveSecretIDs ¶
func (_u *AccountUpdateOne) RemoveSecretIDs(ids ...string) *AccountUpdateOne
RemoveSecretIDs removes the "secrets" edge to Secret entities by IDs.
func (*AccountUpdateOne) RemoveSecrets ¶
func (_u *AccountUpdateOne) RemoveSecrets(v ...*Secret) *AccountUpdateOne
RemoveSecrets removes "secrets" edges to Secret entities.
func (*AccountUpdateOne) Save ¶
func (_u *AccountUpdateOne) Save(ctx context.Context) (*Account, error)
Save executes the query and returns the updated Account entity.
func (*AccountUpdateOne) SaveX ¶
func (_u *AccountUpdateOne) SaveX(ctx context.Context) *Account
SaveX is like Save, but panics if an error occurs.
func (*AccountUpdateOne) Select ¶
func (_u *AccountUpdateOne) Select(field string, fields ...string) *AccountUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AccountUpdateOne) SetAuthError ¶
func (_u *AccountUpdateOne) SetAuthError(v string) *AccountUpdateOne
SetAuthError sets the "auth_error" field.
func (*AccountUpdateOne) SetDisplayName ¶
func (_u *AccountUpdateOne) SetDisplayName(v string) *AccountUpdateOne
SetDisplayName sets the "display_name" field.
func (*AccountUpdateOne) SetNeedsReauth ¶
func (_u *AccountUpdateOne) SetNeedsReauth(v bool) *AccountUpdateOne
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountUpdateOne) SetNillableAuthError ¶
func (_u *AccountUpdateOne) SetNillableAuthError(v *string) *AccountUpdateOne
SetNillableAuthError sets the "auth_error" field if the given value is not nil.
func (*AccountUpdateOne) SetNillableDisplayName ¶
func (_u *AccountUpdateOne) SetNillableDisplayName(v *string) *AccountUpdateOne
SetNillableDisplayName sets the "display_name" field if the given value is not nil.
func (*AccountUpdateOne) SetNillableNeedsReauth ¶
func (_u *AccountUpdateOne) SetNillableNeedsReauth(v *bool) *AccountUpdateOne
SetNillableNeedsReauth sets the "needs_reauth" field if the given value is not nil.
func (*AccountUpdateOne) SetNillableSyncNotice ¶
func (_u *AccountUpdateOne) SetNillableSyncNotice(v *string) *AccountUpdateOne
SetNillableSyncNotice sets the "sync_notice" field if the given value is not nil.
func (*AccountUpdateOne) SetSettings ¶
func (_u *AccountUpdateOne) SetSettings(v map[string]interface{}) *AccountUpdateOne
SetSettings sets the "settings" field.
func (*AccountUpdateOne) SetSyncNotice ¶
func (_u *AccountUpdateOne) SetSyncNotice(v string) *AccountUpdateOne
SetSyncNotice sets the "sync_notice" field.
func (*AccountUpdateOne) SetUpdatedAt ¶
func (_u *AccountUpdateOne) SetUpdatedAt(v time.Time) *AccountUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpdateOne) Where ¶
func (_u *AccountUpdateOne) Where(ps ...predicate.Account) *AccountUpdateOne
Where appends a list predicates to the AccountUpdate builder.
type AccountUpsert ¶
AccountUpsert is the "OnConflict" setter.
func (*AccountUpsert) ClearAuthError ¶
func (u *AccountUpsert) ClearAuthError() *AccountUpsert
ClearAuthError clears the value of the "auth_error" field.
func (*AccountUpsert) ClearSettings ¶
func (u *AccountUpsert) ClearSettings() *AccountUpsert
ClearSettings clears the value of the "settings" field.
func (*AccountUpsert) ClearSyncNotice ¶
func (u *AccountUpsert) ClearSyncNotice() *AccountUpsert
ClearSyncNotice clears the value of the "sync_notice" field.
func (*AccountUpsert) SetAuthError ¶
func (u *AccountUpsert) SetAuthError(v string) *AccountUpsert
SetAuthError sets the "auth_error" field.
func (*AccountUpsert) SetDisplayName ¶
func (u *AccountUpsert) SetDisplayName(v string) *AccountUpsert
SetDisplayName sets the "display_name" field.
func (*AccountUpsert) SetNeedsReauth ¶
func (u *AccountUpsert) SetNeedsReauth(v bool) *AccountUpsert
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountUpsert) SetSettings ¶
func (u *AccountUpsert) SetSettings(v map[string]interface{}) *AccountUpsert
SetSettings sets the "settings" field.
func (*AccountUpsert) SetSyncNotice ¶
func (u *AccountUpsert) SetSyncNotice(v string) *AccountUpsert
SetSyncNotice sets the "sync_notice" field.
func (*AccountUpsert) SetUpdatedAt ¶
func (u *AccountUpsert) SetUpdatedAt(v time.Time) *AccountUpsert
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpsert) UpdateAuthError ¶
func (u *AccountUpsert) UpdateAuthError() *AccountUpsert
UpdateAuthError sets the "auth_error" field to the value that was provided on create.
func (*AccountUpsert) UpdateDisplayName ¶
func (u *AccountUpsert) UpdateDisplayName() *AccountUpsert
UpdateDisplayName sets the "display_name" field to the value that was provided on create.
func (*AccountUpsert) UpdateNeedsReauth ¶
func (u *AccountUpsert) UpdateNeedsReauth() *AccountUpsert
UpdateNeedsReauth sets the "needs_reauth" field to the value that was provided on create.
func (*AccountUpsert) UpdateSettings ¶
func (u *AccountUpsert) UpdateSettings() *AccountUpsert
UpdateSettings sets the "settings" field to the value that was provided on create.
func (*AccountUpsert) UpdateSyncNotice ¶
func (u *AccountUpsert) UpdateSyncNotice() *AccountUpsert
UpdateSyncNotice sets the "sync_notice" field to the value that was provided on create.
func (*AccountUpsert) UpdateUpdatedAt ¶
func (u *AccountUpsert) UpdateUpdatedAt() *AccountUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AccountUpsertBulk ¶
type AccountUpsertBulk struct {
// contains filtered or unexported fields
}
AccountUpsertBulk is the builder for "upsert"-ing a bulk of Account nodes.
func (*AccountUpsertBulk) ClearAuthError ¶
func (u *AccountUpsertBulk) ClearAuthError() *AccountUpsertBulk
ClearAuthError clears the value of the "auth_error" field.
func (*AccountUpsertBulk) ClearSettings ¶
func (u *AccountUpsertBulk) ClearSettings() *AccountUpsertBulk
ClearSettings clears the value of the "settings" field.
func (*AccountUpsertBulk) ClearSyncNotice ¶
func (u *AccountUpsertBulk) ClearSyncNotice() *AccountUpsertBulk
ClearSyncNotice clears the value of the "sync_notice" field.
func (*AccountUpsertBulk) DoNothing ¶
func (u *AccountUpsertBulk) DoNothing() *AccountUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AccountUpsertBulk) Exec ¶
func (u *AccountUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountUpsertBulk) ExecX ¶
func (u *AccountUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpsertBulk) Ignore ¶
func (u *AccountUpsertBulk) Ignore() *AccountUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Account.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*AccountUpsertBulk) SetAuthError ¶
func (u *AccountUpsertBulk) SetAuthError(v string) *AccountUpsertBulk
SetAuthError sets the "auth_error" field.
func (*AccountUpsertBulk) SetDisplayName ¶
func (u *AccountUpsertBulk) SetDisplayName(v string) *AccountUpsertBulk
SetDisplayName sets the "display_name" field.
func (*AccountUpsertBulk) SetNeedsReauth ¶
func (u *AccountUpsertBulk) SetNeedsReauth(v bool) *AccountUpsertBulk
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountUpsertBulk) SetSettings ¶
func (u *AccountUpsertBulk) SetSettings(v map[string]interface{}) *AccountUpsertBulk
SetSettings sets the "settings" field.
func (*AccountUpsertBulk) SetSyncNotice ¶
func (u *AccountUpsertBulk) SetSyncNotice(v string) *AccountUpsertBulk
SetSyncNotice sets the "sync_notice" field.
func (*AccountUpsertBulk) SetUpdatedAt ¶
func (u *AccountUpsertBulk) SetUpdatedAt(v time.Time) *AccountUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpsertBulk) Update ¶
func (u *AccountUpsertBulk) Update(set func(*AccountUpsert)) *AccountUpsertBulk
Update allows overriding fields `UPDATE` values. See the AccountCreateBulk.OnConflict documentation for more info.
func (*AccountUpsertBulk) UpdateAuthError ¶
func (u *AccountUpsertBulk) UpdateAuthError() *AccountUpsertBulk
UpdateAuthError sets the "auth_error" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateDisplayName ¶
func (u *AccountUpsertBulk) UpdateDisplayName() *AccountUpsertBulk
UpdateDisplayName sets the "display_name" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateNeedsReauth ¶
func (u *AccountUpsertBulk) UpdateNeedsReauth() *AccountUpsertBulk
UpdateNeedsReauth sets the "needs_reauth" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateNewValues ¶
func (u *AccountUpsertBulk) UpdateNewValues() *AccountUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Account.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(account.FieldID)
}),
).
Exec(ctx)
func (*AccountUpsertBulk) UpdateSettings ¶
func (u *AccountUpsertBulk) UpdateSettings() *AccountUpsertBulk
UpdateSettings sets the "settings" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateSyncNotice ¶
func (u *AccountUpsertBulk) UpdateSyncNotice() *AccountUpsertBulk
UpdateSyncNotice sets the "sync_notice" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateUpdatedAt ¶
func (u *AccountUpsertBulk) UpdateUpdatedAt() *AccountUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AccountUpsertOne ¶
type AccountUpsertOne struct {
// contains filtered or unexported fields
}
AccountUpsertOne is the builder for "upsert"-ing
one Account node.
func (*AccountUpsertOne) ClearAuthError ¶
func (u *AccountUpsertOne) ClearAuthError() *AccountUpsertOne
ClearAuthError clears the value of the "auth_error" field.
func (*AccountUpsertOne) ClearSettings ¶
func (u *AccountUpsertOne) ClearSettings() *AccountUpsertOne
ClearSettings clears the value of the "settings" field.
func (*AccountUpsertOne) ClearSyncNotice ¶
func (u *AccountUpsertOne) ClearSyncNotice() *AccountUpsertOne
ClearSyncNotice clears the value of the "sync_notice" field.
func (*AccountUpsertOne) DoNothing ¶
func (u *AccountUpsertOne) DoNothing() *AccountUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AccountUpsertOne) Exec ¶
func (u *AccountUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountUpsertOne) ExecX ¶
func (u *AccountUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpsertOne) ID ¶
func (u *AccountUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*AccountUpsertOne) IDX ¶
func (u *AccountUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*AccountUpsertOne) Ignore ¶
func (u *AccountUpsertOne) Ignore() *AccountUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Account.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*AccountUpsertOne) SetAuthError ¶
func (u *AccountUpsertOne) SetAuthError(v string) *AccountUpsertOne
SetAuthError sets the "auth_error" field.
func (*AccountUpsertOne) SetDisplayName ¶
func (u *AccountUpsertOne) SetDisplayName(v string) *AccountUpsertOne
SetDisplayName sets the "display_name" field.
func (*AccountUpsertOne) SetNeedsReauth ¶
func (u *AccountUpsertOne) SetNeedsReauth(v bool) *AccountUpsertOne
SetNeedsReauth sets the "needs_reauth" field.
func (*AccountUpsertOne) SetSettings ¶
func (u *AccountUpsertOne) SetSettings(v map[string]interface{}) *AccountUpsertOne
SetSettings sets the "settings" field.
func (*AccountUpsertOne) SetSyncNotice ¶
func (u *AccountUpsertOne) SetSyncNotice(v string) *AccountUpsertOne
SetSyncNotice sets the "sync_notice" field.
func (*AccountUpsertOne) SetUpdatedAt ¶
func (u *AccountUpsertOne) SetUpdatedAt(v time.Time) *AccountUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpsertOne) Update ¶
func (u *AccountUpsertOne) Update(set func(*AccountUpsert)) *AccountUpsertOne
Update allows overriding fields `UPDATE` values. See the AccountCreate.OnConflict documentation for more info.
func (*AccountUpsertOne) UpdateAuthError ¶
func (u *AccountUpsertOne) UpdateAuthError() *AccountUpsertOne
UpdateAuthError sets the "auth_error" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateDisplayName ¶
func (u *AccountUpsertOne) UpdateDisplayName() *AccountUpsertOne
UpdateDisplayName sets the "display_name" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateNeedsReauth ¶
func (u *AccountUpsertOne) UpdateNeedsReauth() *AccountUpsertOne
UpdateNeedsReauth sets the "needs_reauth" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateNewValues ¶
func (u *AccountUpsertOne) UpdateNewValues() *AccountUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Account.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(account.FieldID)
}),
).
Exec(ctx)
func (*AccountUpsertOne) UpdateSettings ¶
func (u *AccountUpsertOne) UpdateSettings() *AccountUpsertOne
UpdateSettings sets the "settings" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateSyncNotice ¶
func (u *AccountUpsertOne) UpdateSyncNotice() *AccountUpsertOne
UpdateSyncNotice sets the "sync_notice" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateUpdatedAt ¶
func (u *AccountUpsertOne) UpdateUpdatedAt() *AccountUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Calendar ¶
type Calendar struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// RemoteID holds the value of the "remote_id" field.
RemoteID string `json:"remote_id,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// NameOverride holds the value of the "name_override" field.
NameOverride string `json:"name_override,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// Color holds the value of the "color" field.
Color string `json:"color,omitempty"`
// TimeZone holds the value of the "time_zone" field.
TimeZone string `json:"time_zone,omitempty"`
// ReadOnly holds the value of the "read_only" field.
ReadOnly bool `json:"read_only,omitempty"`
// Hidden holds the value of the "hidden" field.
Hidden bool `json:"hidden,omitempty"`
// SyncDisabled holds the value of the "sync_disabled" field.
SyncDisabled bool `json:"sync_disabled,omitempty"`
// ReminderOverrides holds the value of the "reminder_overrides" field.
ReminderOverrides *settings.ReminderOverride `json:"reminder_overrides,omitempty"`
// SyncToken holds the value of the "sync_token" field.
SyncToken string `json:"sync_token,omitempty"`
// SupportedComponents holds the value of the "supported_components" field.
SupportedComponents []string `json:"supported_components,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"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the CalendarQuery when eager-loading is set.
Edges CalendarEdges `json:"edges"`
// contains filtered or unexported fields
}
Calendar is the model entity for the Calendar schema.
func (*Calendar) ExecContext ¶
func (c *Calendar) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Calendar) QueryAccount ¶
func (_m *Calendar) QueryAccount() *AccountQuery
QueryAccount queries the "account" edge of the Calendar entity.
func (*Calendar) QueryContext ¶
func (c *Calendar) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Calendar) QueryEvents ¶
func (_m *Calendar) QueryEvents() *EventQuery
QueryEvents queries the "events" edge of the Calendar entity.
func (*Calendar) QueryTasks ¶
QueryTasks queries the "tasks" edge of the Calendar entity.
func (*Calendar) Unwrap ¶
Unwrap unwraps the Calendar 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 (*Calendar) Update ¶
func (_m *Calendar) Update() *CalendarUpdateOne
Update returns a builder for updating this Calendar. Note that you need to call Calendar.Unwrap() before calling this method if this Calendar was returned from a transaction, and the transaction was committed or rolled back.
type CalendarClient ¶
type CalendarClient struct {
// contains filtered or unexported fields
}
CalendarClient is a client for the Calendar schema.
func NewCalendarClient ¶
func NewCalendarClient(c config) *CalendarClient
NewCalendarClient returns a client for the Calendar from the given config.
func (*CalendarClient) Create ¶
func (c *CalendarClient) Create() *CalendarCreate
Create returns a builder for creating a Calendar entity.
func (*CalendarClient) CreateBulk ¶
func (c *CalendarClient) CreateBulk(builders ...*CalendarCreate) *CalendarCreateBulk
CreateBulk returns a builder for creating a bulk of Calendar entities.
func (*CalendarClient) Delete ¶
func (c *CalendarClient) Delete() *CalendarDelete
Delete returns a delete builder for Calendar.
func (*CalendarClient) DeleteOne ¶
func (c *CalendarClient) DeleteOne(_m *Calendar) *CalendarDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CalendarClient) DeleteOneID ¶
func (c *CalendarClient) DeleteOneID(id string) *CalendarDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CalendarClient) ExecContext ¶
func (c *CalendarClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarClient) GetX ¶
func (c *CalendarClient) GetX(ctx context.Context, id string) *Calendar
GetX is like Get, but panics if an error occurs.
func (*CalendarClient) Hooks ¶
func (c *CalendarClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CalendarClient) Intercept ¶
func (c *CalendarClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `calendar.Intercept(f(g(h())))`.
func (*CalendarClient) Interceptors ¶
func (c *CalendarClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CalendarClient) MapCreateBulk ¶
func (c *CalendarClient) MapCreateBulk(slice any, setFunc func(*CalendarCreate, int)) *CalendarCreateBulk
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 (*CalendarClient) Query ¶
func (c *CalendarClient) Query() *CalendarQuery
Query returns a query builder for Calendar.
func (*CalendarClient) QueryAccount ¶
func (c *CalendarClient) QueryAccount(_m *Calendar) *AccountQuery
QueryAccount queries the account edge of a Calendar.
func (*CalendarClient) QueryContext ¶
func (c *CalendarClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarClient) QueryEvents ¶
func (c *CalendarClient) QueryEvents(_m *Calendar) *EventQuery
QueryEvents queries the events edge of a Calendar.
func (*CalendarClient) QueryTasks ¶
func (c *CalendarClient) QueryTasks(_m *Calendar) *TaskQuery
QueryTasks queries the tasks edge of a Calendar.
func (*CalendarClient) Update ¶
func (c *CalendarClient) Update() *CalendarUpdate
Update returns an update builder for Calendar.
func (*CalendarClient) UpdateOne ¶
func (c *CalendarClient) UpdateOne(_m *Calendar) *CalendarUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CalendarClient) UpdateOneID ¶
func (c *CalendarClient) UpdateOneID(id string) *CalendarUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CalendarClient) Use ¶
func (c *CalendarClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `calendar.Hooks(f(g(h())))`.
type CalendarCreate ¶
type CalendarCreate struct {
// contains filtered or unexported fields
}
CalendarCreate is the builder for creating a Calendar entity.
func (*CalendarCreate) AddEventIDs ¶
func (_c *CalendarCreate) AddEventIDs(ids ...string) *CalendarCreate
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*CalendarCreate) AddEvents ¶
func (_c *CalendarCreate) AddEvents(v ...*Event) *CalendarCreate
AddEvents adds the "events" edges to the Event entity.
func (*CalendarCreate) AddTaskIDs ¶
func (_c *CalendarCreate) AddTaskIDs(ids ...string) *CalendarCreate
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*CalendarCreate) AddTasks ¶
func (_c *CalendarCreate) AddTasks(v ...*Task) *CalendarCreate
AddTasks adds the "tasks" edges to the Task entity.
func (*CalendarCreate) Exec ¶
func (_c *CalendarCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CalendarCreate) ExecContext ¶
func (c *CalendarCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarCreate) ExecX ¶
func (_c *CalendarCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarCreate) Mutation ¶
func (_c *CalendarCreate) Mutation() *CalendarMutation
Mutation returns the CalendarMutation object of the builder.
func (*CalendarCreate) OnConflict ¶
func (_c *CalendarCreate) OnConflict(opts ...sql.ConflictOption) *CalendarUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Calendar.Create().
SetRemoteID(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.CalendarUpsert) {
SetRemoteID(v+v).
}).
Exec(ctx)
func (*CalendarCreate) OnConflictColumns ¶
func (_c *CalendarCreate) OnConflictColumns(columns ...string) *CalendarUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Calendar.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CalendarCreate) QueryContext ¶
func (c *CalendarCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarCreate) Save ¶
func (_c *CalendarCreate) Save(ctx context.Context) (*Calendar, error)
Save creates the Calendar in the database.
func (*CalendarCreate) SaveX ¶
func (_c *CalendarCreate) SaveX(ctx context.Context) *Calendar
SaveX calls Save and panics if Save returns an error.
func (*CalendarCreate) SetAccount ¶
func (_c *CalendarCreate) SetAccount(v *Account) *CalendarCreate
SetAccount sets the "account" edge to the Account entity.
func (*CalendarCreate) SetAccountID ¶
func (_c *CalendarCreate) SetAccountID(id string) *CalendarCreate
SetAccountID sets the "account" edge to the Account entity by ID.
func (*CalendarCreate) SetColor ¶
func (_c *CalendarCreate) SetColor(v string) *CalendarCreate
SetColor sets the "color" field.
func (*CalendarCreate) SetCreatedAt ¶
func (_c *CalendarCreate) SetCreatedAt(v time.Time) *CalendarCreate
SetCreatedAt sets the "created_at" field.
func (*CalendarCreate) SetDescription ¶
func (_c *CalendarCreate) SetDescription(v string) *CalendarCreate
SetDescription sets the "description" field.
func (*CalendarCreate) SetHidden ¶
func (_c *CalendarCreate) SetHidden(v bool) *CalendarCreate
SetHidden sets the "hidden" field.
func (*CalendarCreate) SetID ¶
func (_c *CalendarCreate) SetID(v string) *CalendarCreate
SetID sets the "id" field.
func (*CalendarCreate) SetName ¶
func (_c *CalendarCreate) SetName(v string) *CalendarCreate
SetName sets the "name" field.
func (*CalendarCreate) SetNameOverride ¶
func (_c *CalendarCreate) SetNameOverride(v string) *CalendarCreate
SetNameOverride sets the "name_override" field.
func (*CalendarCreate) SetNillableColor ¶
func (_c *CalendarCreate) SetNillableColor(v *string) *CalendarCreate
SetNillableColor sets the "color" field if the given value is not nil.
func (*CalendarCreate) SetNillableCreatedAt ¶
func (_c *CalendarCreate) SetNillableCreatedAt(v *time.Time) *CalendarCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CalendarCreate) SetNillableDescription ¶
func (_c *CalendarCreate) SetNillableDescription(v *string) *CalendarCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*CalendarCreate) SetNillableHidden ¶
func (_c *CalendarCreate) SetNillableHidden(v *bool) *CalendarCreate
SetNillableHidden sets the "hidden" field if the given value is not nil.
func (*CalendarCreate) SetNillableNameOverride ¶
func (_c *CalendarCreate) SetNillableNameOverride(v *string) *CalendarCreate
SetNillableNameOverride sets the "name_override" field if the given value is not nil.
func (*CalendarCreate) SetNillableReadOnly ¶
func (_c *CalendarCreate) SetNillableReadOnly(v *bool) *CalendarCreate
SetNillableReadOnly sets the "read_only" field if the given value is not nil.
func (*CalendarCreate) SetNillableSyncDisabled ¶
func (_c *CalendarCreate) SetNillableSyncDisabled(v *bool) *CalendarCreate
SetNillableSyncDisabled sets the "sync_disabled" field if the given value is not nil.
func (*CalendarCreate) SetNillableSyncToken ¶
func (_c *CalendarCreate) SetNillableSyncToken(v *string) *CalendarCreate
SetNillableSyncToken sets the "sync_token" field if the given value is not nil.
func (*CalendarCreate) SetNillableTimeZone ¶
func (_c *CalendarCreate) SetNillableTimeZone(v *string) *CalendarCreate
SetNillableTimeZone sets the "time_zone" field if the given value is not nil.
func (*CalendarCreate) SetNillableUpdatedAt ¶
func (_c *CalendarCreate) SetNillableUpdatedAt(v *time.Time) *CalendarCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*CalendarCreate) SetReadOnly ¶
func (_c *CalendarCreate) SetReadOnly(v bool) *CalendarCreate
SetReadOnly sets the "read_only" field.
func (*CalendarCreate) SetReminderOverrides ¶
func (_c *CalendarCreate) SetReminderOverrides(v *settings.ReminderOverride) *CalendarCreate
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarCreate) SetRemoteID ¶
func (_c *CalendarCreate) SetRemoteID(v string) *CalendarCreate
SetRemoteID sets the "remote_id" field.
func (*CalendarCreate) SetSupportedComponents ¶
func (_c *CalendarCreate) SetSupportedComponents(v []string) *CalendarCreate
SetSupportedComponents sets the "supported_components" field.
func (*CalendarCreate) SetSyncDisabled ¶
func (_c *CalendarCreate) SetSyncDisabled(v bool) *CalendarCreate
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarCreate) SetSyncToken ¶
func (_c *CalendarCreate) SetSyncToken(v string) *CalendarCreate
SetSyncToken sets the "sync_token" field.
func (*CalendarCreate) SetTimeZone ¶
func (_c *CalendarCreate) SetTimeZone(v string) *CalendarCreate
SetTimeZone sets the "time_zone" field.
func (*CalendarCreate) SetUpdatedAt ¶
func (_c *CalendarCreate) SetUpdatedAt(v time.Time) *CalendarCreate
SetUpdatedAt sets the "updated_at" field.
type CalendarCreateBulk ¶
type CalendarCreateBulk struct {
// contains filtered or unexported fields
}
CalendarCreateBulk is the builder for creating many Calendar entities in bulk.
func (*CalendarCreateBulk) Exec ¶
func (_c *CalendarCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CalendarCreateBulk) ExecContext ¶
func (c *CalendarCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarCreateBulk) ExecX ¶
func (_c *CalendarCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarCreateBulk) OnConflict ¶
func (_c *CalendarCreateBulk) OnConflict(opts ...sql.ConflictOption) *CalendarUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Calendar.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.CalendarUpsert) {
SetRemoteID(v+v).
}).
Exec(ctx)
func (*CalendarCreateBulk) OnConflictColumns ¶
func (_c *CalendarCreateBulk) OnConflictColumns(columns ...string) *CalendarUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Calendar.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CalendarCreateBulk) QueryContext ¶
func (c *CalendarCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type CalendarDelete ¶
type CalendarDelete struct {
// contains filtered or unexported fields
}
CalendarDelete is the builder for deleting a Calendar entity.
func (*CalendarDelete) Exec ¶
func (_d *CalendarDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CalendarDelete) ExecContext ¶
func (c *CalendarDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarDelete) ExecX ¶
func (_d *CalendarDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CalendarDelete) QueryContext ¶
func (c *CalendarDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarDelete) Where ¶
func (_d *CalendarDelete) Where(ps ...predicate.Calendar) *CalendarDelete
Where appends a list predicates to the CalendarDelete builder.
type CalendarDeleteOne ¶
type CalendarDeleteOne struct {
// contains filtered or unexported fields
}
CalendarDeleteOne is the builder for deleting a single Calendar entity.
func (*CalendarDeleteOne) Exec ¶
func (_d *CalendarDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CalendarDeleteOne) ExecX ¶
func (_d *CalendarDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarDeleteOne) Where ¶
func (_d *CalendarDeleteOne) Where(ps ...predicate.Calendar) *CalendarDeleteOne
Where appends a list predicates to the CalendarDelete builder.
type CalendarEdges ¶
type CalendarEdges struct {
// Account holds the value of the account edge.
Account *Account `json:"account,omitempty"`
// Events holds the value of the events edge.
Events []*Event `json:"events,omitempty"`
// Tasks holds the value of the tasks edge.
Tasks []*Task `json:"tasks,omitempty"`
// contains filtered or unexported fields
}
CalendarEdges holds the relations/edges for other nodes in the graph.
func (CalendarEdges) AccountOrErr ¶
func (e CalendarEdges) AccountOrErr() (*Account, error)
AccountOrErr returns the Account value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (CalendarEdges) EventsOrErr ¶
func (e CalendarEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
func (CalendarEdges) TasksOrErr ¶
func (e CalendarEdges) TasksOrErr() ([]*Task, error)
TasksOrErr returns the Tasks value or an error if the edge was not loaded in eager-loading.
type CalendarGroupBy ¶
type CalendarGroupBy struct {
// contains filtered or unexported fields
}
CalendarGroupBy is the group-by builder for Calendar entities.
func (*CalendarGroupBy) Aggregate ¶
func (_g *CalendarGroupBy) Aggregate(fns ...AggregateFunc) *CalendarGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CalendarGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CalendarGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CalendarGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CalendarGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CalendarGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CalendarGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CalendarGroupBy) Scan ¶
func (_g *CalendarGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CalendarGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CalendarMutation ¶
type CalendarMutation struct {
// contains filtered or unexported fields
}
CalendarMutation represents an operation that mutates the Calendar nodes in the graph.
func (*CalendarMutation) AccountCleared ¶
func (m *CalendarMutation) AccountCleared() bool
AccountCleared reports if the "account" edge to the Account entity was cleared.
func (*CalendarMutation) AccountID ¶
func (m *CalendarMutation) AccountID() (id string, exists bool)
AccountID returns the "account" edge ID in the mutation.
func (*CalendarMutation) AccountIDs ¶
func (m *CalendarMutation) AccountIDs() (ids []string)
AccountIDs returns the "account" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AccountID instead. It exists only for internal usage by the builders.
func (*CalendarMutation) AddEventIDs ¶
func (m *CalendarMutation) AddEventIDs(ids ...string)
AddEventIDs adds the "events" edge to the Event entity by ids.
func (*CalendarMutation) AddField ¶
func (m *CalendarMutation) 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 (*CalendarMutation) AddTaskIDs ¶
func (m *CalendarMutation) AddTaskIDs(ids ...string)
AddTaskIDs adds the "tasks" edge to the Task entity by ids.
func (*CalendarMutation) AddedEdges ¶
func (m *CalendarMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CalendarMutation) AddedField ¶
func (m *CalendarMutation) 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 (*CalendarMutation) AddedFields ¶
func (m *CalendarMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CalendarMutation) AddedIDs ¶
func (m *CalendarMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CalendarMutation) AppendSupportedComponents ¶
func (m *CalendarMutation) AppendSupportedComponents(s []string)
AppendSupportedComponents adds s to the "supported_components" field.
func (*CalendarMutation) AppendedSupportedComponents ¶
func (m *CalendarMutation) AppendedSupportedComponents() ([]string, bool)
AppendedSupportedComponents returns the list of values that were appended to the "supported_components" field in this mutation.
func (*CalendarMutation) ClearAccount ¶
func (m *CalendarMutation) ClearAccount()
ClearAccount clears the "account" edge to the Account entity.
func (*CalendarMutation) ClearColor ¶
func (m *CalendarMutation) ClearColor()
ClearColor clears the value of the "color" field.
func (*CalendarMutation) ClearDescription ¶
func (m *CalendarMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*CalendarMutation) ClearEdge ¶
func (m *CalendarMutation) 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 (*CalendarMutation) ClearEvents ¶
func (m *CalendarMutation) ClearEvents()
ClearEvents clears the "events" edge to the Event entity.
func (*CalendarMutation) ClearField ¶
func (m *CalendarMutation) 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 (*CalendarMutation) ClearNameOverride ¶
func (m *CalendarMutation) ClearNameOverride()
ClearNameOverride clears the value of the "name_override" field.
func (*CalendarMutation) ClearReminderOverrides ¶
func (m *CalendarMutation) ClearReminderOverrides()
ClearReminderOverrides clears the value of the "reminder_overrides" field.
func (*CalendarMutation) ClearSupportedComponents ¶
func (m *CalendarMutation) ClearSupportedComponents()
ClearSupportedComponents clears the value of the "supported_components" field.
func (*CalendarMutation) ClearSyncToken ¶
func (m *CalendarMutation) ClearSyncToken()
ClearSyncToken clears the value of the "sync_token" field.
func (*CalendarMutation) ClearTasks ¶
func (m *CalendarMutation) ClearTasks()
ClearTasks clears the "tasks" edge to the Task entity.
func (*CalendarMutation) ClearTimeZone ¶
func (m *CalendarMutation) ClearTimeZone()
ClearTimeZone clears the value of the "time_zone" field.
func (*CalendarMutation) ClearedEdges ¶
func (m *CalendarMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CalendarMutation) ClearedFields ¶
func (m *CalendarMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CalendarMutation) Client ¶
func (m CalendarMutation) 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 (*CalendarMutation) Color ¶
func (m *CalendarMutation) Color() (r string, exists bool)
Color returns the value of the "color" field in the mutation.
func (*CalendarMutation) ColorCleared ¶
func (m *CalendarMutation) ColorCleared() bool
ColorCleared returns if the "color" field was cleared in this mutation.
func (*CalendarMutation) CreatedAt ¶
func (m *CalendarMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CalendarMutation) Description ¶
func (m *CalendarMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*CalendarMutation) DescriptionCleared ¶
func (m *CalendarMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*CalendarMutation) EdgeCleared ¶
func (m *CalendarMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CalendarMutation) EventsCleared ¶
func (m *CalendarMutation) EventsCleared() bool
EventsCleared reports if the "events" edge to the Event entity was cleared.
func (*CalendarMutation) EventsIDs ¶
func (m *CalendarMutation) EventsIDs() (ids []string)
EventsIDs returns the "events" edge IDs in the mutation.
func (*CalendarMutation) ExecContext ¶
func (c *CalendarMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarMutation) Field ¶
func (m *CalendarMutation) 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 (*CalendarMutation) FieldCleared ¶
func (m *CalendarMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CalendarMutation) Fields ¶
func (m *CalendarMutation) 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 (*CalendarMutation) Hidden ¶
func (m *CalendarMutation) Hidden() (r bool, exists bool)
Hidden returns the value of the "hidden" field in the mutation.
func (*CalendarMutation) ID ¶
func (m *CalendarMutation) 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 (*CalendarMutation) IDs ¶
func (m *CalendarMutation) 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 (*CalendarMutation) Name ¶
func (m *CalendarMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*CalendarMutation) NameOverride ¶
func (m *CalendarMutation) NameOverride() (r string, exists bool)
NameOverride returns the value of the "name_override" field in the mutation.
func (*CalendarMutation) NameOverrideCleared ¶
func (m *CalendarMutation) NameOverrideCleared() bool
NameOverrideCleared returns if the "name_override" field was cleared in this mutation.
func (*CalendarMutation) OldColor ¶
func (m *CalendarMutation) OldColor(ctx context.Context) (v string, err error)
OldColor returns the old "color" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldDescription ¶
func (m *CalendarMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) 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 (*CalendarMutation) OldHidden ¶
func (m *CalendarMutation) OldHidden(ctx context.Context) (v bool, err error)
OldHidden returns the old "hidden" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldName ¶
func (m *CalendarMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldNameOverride ¶
func (m *CalendarMutation) OldNameOverride(ctx context.Context) (v string, err error)
OldNameOverride returns the old "name_override" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldReadOnly ¶
func (m *CalendarMutation) OldReadOnly(ctx context.Context) (v bool, err error)
OldReadOnly returns the old "read_only" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldReminderOverrides ¶
func (m *CalendarMutation) OldReminderOverrides(ctx context.Context) (v *settings.ReminderOverride, err error)
OldReminderOverrides returns the old "reminder_overrides" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldRemoteID ¶
func (m *CalendarMutation) OldRemoteID(ctx context.Context) (v string, err error)
OldRemoteID returns the old "remote_id" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldSupportedComponents ¶
func (m *CalendarMutation) OldSupportedComponents(ctx context.Context) (v []string, err error)
OldSupportedComponents returns the old "supported_components" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldSyncDisabled ¶
func (m *CalendarMutation) OldSyncDisabled(ctx context.Context) (v bool, err error)
OldSyncDisabled returns the old "sync_disabled" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldSyncToken ¶
func (m *CalendarMutation) OldSyncToken(ctx context.Context) (v string, err error)
OldSyncToken returns the old "sync_token" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldTimeZone ¶
func (m *CalendarMutation) OldTimeZone(ctx context.Context) (v string, err error)
OldTimeZone returns the old "time_zone" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Calendar entity. If the Calendar object wasn'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 (*CalendarMutation) QueryContext ¶
func (c *CalendarMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarMutation) ReadOnly ¶
func (m *CalendarMutation) ReadOnly() (r bool, exists bool)
ReadOnly returns the value of the "read_only" field in the mutation.
func (*CalendarMutation) ReminderOverrides ¶
func (m *CalendarMutation) ReminderOverrides() (r *settings.ReminderOverride, exists bool)
ReminderOverrides returns the value of the "reminder_overrides" field in the mutation.
func (*CalendarMutation) ReminderOverridesCleared ¶
func (m *CalendarMutation) ReminderOverridesCleared() bool
ReminderOverridesCleared returns if the "reminder_overrides" field was cleared in this mutation.
func (*CalendarMutation) RemoteID ¶
func (m *CalendarMutation) RemoteID() (r string, exists bool)
RemoteID returns the value of the "remote_id" field in the mutation.
func (*CalendarMutation) RemoveEventIDs ¶
func (m *CalendarMutation) RemoveEventIDs(ids ...string)
RemoveEventIDs removes the "events" edge to the Event entity by IDs.
func (*CalendarMutation) RemoveTaskIDs ¶
func (m *CalendarMutation) RemoveTaskIDs(ids ...string)
RemoveTaskIDs removes the "tasks" edge to the Task entity by IDs.
func (*CalendarMutation) RemovedEdges ¶
func (m *CalendarMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CalendarMutation) RemovedEventsIDs ¶
func (m *CalendarMutation) RemovedEventsIDs() (ids []string)
RemovedEvents returns the removed IDs of the "events" edge to the Event entity.
func (*CalendarMutation) RemovedIDs ¶
func (m *CalendarMutation) 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 (*CalendarMutation) RemovedTasksIDs ¶
func (m *CalendarMutation) RemovedTasksIDs() (ids []string)
RemovedTasks returns the removed IDs of the "tasks" edge to the Task entity.
func (*CalendarMutation) ResetAccount ¶
func (m *CalendarMutation) ResetAccount()
ResetAccount resets all changes to the "account" edge.
func (*CalendarMutation) ResetColor ¶
func (m *CalendarMutation) ResetColor()
ResetColor resets all changes to the "color" field.
func (*CalendarMutation) ResetCreatedAt ¶
func (m *CalendarMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CalendarMutation) ResetDescription ¶
func (m *CalendarMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*CalendarMutation) ResetEdge ¶
func (m *CalendarMutation) 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 (*CalendarMutation) ResetEvents ¶
func (m *CalendarMutation) ResetEvents()
ResetEvents resets all changes to the "events" edge.
func (*CalendarMutation) ResetField ¶
func (m *CalendarMutation) 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 (*CalendarMutation) ResetHidden ¶
func (m *CalendarMutation) ResetHidden()
ResetHidden resets all changes to the "hidden" field.
func (*CalendarMutation) ResetName ¶
func (m *CalendarMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*CalendarMutation) ResetNameOverride ¶
func (m *CalendarMutation) ResetNameOverride()
ResetNameOverride resets all changes to the "name_override" field.
func (*CalendarMutation) ResetReadOnly ¶
func (m *CalendarMutation) ResetReadOnly()
ResetReadOnly resets all changes to the "read_only" field.
func (*CalendarMutation) ResetReminderOverrides ¶
func (m *CalendarMutation) ResetReminderOverrides()
ResetReminderOverrides resets all changes to the "reminder_overrides" field.
func (*CalendarMutation) ResetRemoteID ¶
func (m *CalendarMutation) ResetRemoteID()
ResetRemoteID resets all changes to the "remote_id" field.
func (*CalendarMutation) ResetSupportedComponents ¶
func (m *CalendarMutation) ResetSupportedComponents()
ResetSupportedComponents resets all changes to the "supported_components" field.
func (*CalendarMutation) ResetSyncDisabled ¶
func (m *CalendarMutation) ResetSyncDisabled()
ResetSyncDisabled resets all changes to the "sync_disabled" field.
func (*CalendarMutation) ResetSyncToken ¶
func (m *CalendarMutation) ResetSyncToken()
ResetSyncToken resets all changes to the "sync_token" field.
func (*CalendarMutation) ResetTasks ¶
func (m *CalendarMutation) ResetTasks()
ResetTasks resets all changes to the "tasks" edge.
func (*CalendarMutation) ResetTimeZone ¶
func (m *CalendarMutation) ResetTimeZone()
ResetTimeZone resets all changes to the "time_zone" field.
func (*CalendarMutation) ResetUpdatedAt ¶
func (m *CalendarMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*CalendarMutation) SetAccountID ¶
func (m *CalendarMutation) SetAccountID(id string)
SetAccountID sets the "account" edge to the Account entity by id.
func (*CalendarMutation) SetColor ¶
func (m *CalendarMutation) SetColor(s string)
SetColor sets the "color" field.
func (*CalendarMutation) SetCreatedAt ¶
func (m *CalendarMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CalendarMutation) SetDescription ¶
func (m *CalendarMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*CalendarMutation) SetField ¶
func (m *CalendarMutation) 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 (*CalendarMutation) SetHidden ¶
func (m *CalendarMutation) SetHidden(b bool)
SetHidden sets the "hidden" field.
func (*CalendarMutation) SetID ¶
func (m *CalendarMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Calendar entities.
func (*CalendarMutation) SetName ¶
func (m *CalendarMutation) SetName(s string)
SetName sets the "name" field.
func (*CalendarMutation) SetNameOverride ¶
func (m *CalendarMutation) SetNameOverride(s string)
SetNameOverride sets the "name_override" field.
func (*CalendarMutation) SetOp ¶
func (m *CalendarMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CalendarMutation) SetReadOnly ¶
func (m *CalendarMutation) SetReadOnly(b bool)
SetReadOnly sets the "read_only" field.
func (*CalendarMutation) SetReminderOverrides ¶
func (m *CalendarMutation) SetReminderOverrides(so *settings.ReminderOverride)
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarMutation) SetRemoteID ¶
func (m *CalendarMutation) SetRemoteID(s string)
SetRemoteID sets the "remote_id" field.
func (*CalendarMutation) SetSupportedComponents ¶
func (m *CalendarMutation) SetSupportedComponents(s []string)
SetSupportedComponents sets the "supported_components" field.
func (*CalendarMutation) SetSyncDisabled ¶
func (m *CalendarMutation) SetSyncDisabled(b bool)
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarMutation) SetSyncToken ¶
func (m *CalendarMutation) SetSyncToken(s string)
SetSyncToken sets the "sync_token" field.
func (*CalendarMutation) SetTimeZone ¶
func (m *CalendarMutation) SetTimeZone(s string)
SetTimeZone sets the "time_zone" field.
func (*CalendarMutation) SetUpdatedAt ¶
func (m *CalendarMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*CalendarMutation) SupportedComponents ¶
func (m *CalendarMutation) SupportedComponents() (r []string, exists bool)
SupportedComponents returns the value of the "supported_components" field in the mutation.
func (*CalendarMutation) SupportedComponentsCleared ¶
func (m *CalendarMutation) SupportedComponentsCleared() bool
SupportedComponentsCleared returns if the "supported_components" field was cleared in this mutation.
func (*CalendarMutation) SyncDisabled ¶
func (m *CalendarMutation) SyncDisabled() (r bool, exists bool)
SyncDisabled returns the value of the "sync_disabled" field in the mutation.
func (*CalendarMutation) SyncToken ¶
func (m *CalendarMutation) SyncToken() (r string, exists bool)
SyncToken returns the value of the "sync_token" field in the mutation.
func (*CalendarMutation) SyncTokenCleared ¶
func (m *CalendarMutation) SyncTokenCleared() bool
SyncTokenCleared returns if the "sync_token" field was cleared in this mutation.
func (*CalendarMutation) TasksCleared ¶
func (m *CalendarMutation) TasksCleared() bool
TasksCleared reports if the "tasks" edge to the Task entity was cleared.
func (*CalendarMutation) TasksIDs ¶
func (m *CalendarMutation) TasksIDs() (ids []string)
TasksIDs returns the "tasks" edge IDs in the mutation.
func (*CalendarMutation) TimeZone ¶
func (m *CalendarMutation) TimeZone() (r string, exists bool)
TimeZone returns the value of the "time_zone" field in the mutation.
func (*CalendarMutation) TimeZoneCleared ¶
func (m *CalendarMutation) TimeZoneCleared() bool
TimeZoneCleared returns if the "time_zone" field was cleared in this mutation.
func (CalendarMutation) Tx ¶
func (m CalendarMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CalendarMutation) Type ¶
func (m *CalendarMutation) Type() string
Type returns the node type of this mutation (Calendar).
func (*CalendarMutation) UpdatedAt ¶
func (m *CalendarMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*CalendarMutation) Where ¶
func (m *CalendarMutation) Where(ps ...predicate.Calendar)
Where appends a list predicates to the CalendarMutation builder.
func (*CalendarMutation) WhereP ¶
func (m *CalendarMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CalendarMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CalendarQuery ¶
type CalendarQuery struct {
// contains filtered or unexported fields
}
CalendarQuery is the builder for querying Calendar entities.
func (*CalendarQuery) Aggregate ¶
func (_q *CalendarQuery) Aggregate(fns ...AggregateFunc) *CalendarSelect
Aggregate returns a CalendarSelect configured with the given aggregations.
func (*CalendarQuery) All ¶
func (_q *CalendarQuery) All(ctx context.Context) ([]*Calendar, error)
All executes the query and returns a list of Calendars.
func (*CalendarQuery) AllX ¶
func (_q *CalendarQuery) AllX(ctx context.Context) []*Calendar
AllX is like All, but panics if an error occurs.
func (*CalendarQuery) Clone ¶
func (_q *CalendarQuery) Clone() *CalendarQuery
Clone returns a duplicate of the CalendarQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CalendarQuery) Count ¶
func (_q *CalendarQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CalendarQuery) CountX ¶
func (_q *CalendarQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CalendarQuery) ExecContext ¶
func (c *CalendarQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarQuery) Exist ¶
func (_q *CalendarQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CalendarQuery) ExistX ¶
func (_q *CalendarQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CalendarQuery) First ¶
func (_q *CalendarQuery) First(ctx context.Context) (*Calendar, error)
First returns the first Calendar entity from the query. Returns a *NotFoundError when no Calendar was found.
func (*CalendarQuery) FirstID ¶
func (_q *CalendarQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Calendar ID from the query. Returns a *NotFoundError when no Calendar ID was found.
func (*CalendarQuery) FirstIDX ¶
func (_q *CalendarQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*CalendarQuery) FirstX ¶
func (_q *CalendarQuery) FirstX(ctx context.Context) *Calendar
FirstX is like First, but panics if an error occurs.
func (*CalendarQuery) GroupBy ¶
func (_q *CalendarQuery) GroupBy(field string, fields ...string) *CalendarGroupBy
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 {
RemoteID string `json:"remote_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Calendar.Query().
GroupBy(calendar.FieldRemoteID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*CalendarQuery) IDs ¶
func (_q *CalendarQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Calendar IDs.
func (*CalendarQuery) IDsX ¶
func (_q *CalendarQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*CalendarQuery) Limit ¶
func (_q *CalendarQuery) Limit(limit int) *CalendarQuery
Limit the number of records to be returned by this query.
func (*CalendarQuery) Modify ¶
func (_q *CalendarQuery) Modify(modifiers ...func(s *sql.Selector)) *CalendarSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*CalendarQuery) Offset ¶
func (_q *CalendarQuery) Offset(offset int) *CalendarQuery
Offset to start from.
func (*CalendarQuery) Only ¶
func (_q *CalendarQuery) Only(ctx context.Context) (*Calendar, error)
Only returns a single Calendar entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Calendar entity is found. Returns a *NotFoundError when no Calendar entities are found.
func (*CalendarQuery) OnlyID ¶
func (_q *CalendarQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Calendar ID in the query. Returns a *NotSingularError when more than one Calendar ID is found. Returns a *NotFoundError when no entities are found.
func (*CalendarQuery) OnlyIDX ¶
func (_q *CalendarQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CalendarQuery) OnlyX ¶
func (_q *CalendarQuery) OnlyX(ctx context.Context) *Calendar
OnlyX is like Only, but panics if an error occurs.
func (*CalendarQuery) Order ¶
func (_q *CalendarQuery) Order(o ...calendar.OrderOption) *CalendarQuery
Order specifies how the records should be ordered.
func (*CalendarQuery) QueryAccount ¶
func (_q *CalendarQuery) QueryAccount() *AccountQuery
QueryAccount chains the current query on the "account" edge.
func (*CalendarQuery) QueryContext ¶
func (c *CalendarQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarQuery) QueryEvents ¶
func (_q *CalendarQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the "events" edge.
func (*CalendarQuery) QueryTasks ¶
func (_q *CalendarQuery) QueryTasks() *TaskQuery
QueryTasks chains the current query on the "tasks" edge.
func (*CalendarQuery) Select ¶
func (_q *CalendarQuery) Select(fields ...string) *CalendarSelect
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 {
RemoteID string `json:"remote_id,omitempty"`
}
client.Calendar.Query().
Select(calendar.FieldRemoteID).
Scan(ctx, &v)
func (*CalendarQuery) Unique ¶
func (_q *CalendarQuery) Unique(unique bool) *CalendarQuery
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 (*CalendarQuery) Where ¶
func (_q *CalendarQuery) Where(ps ...predicate.Calendar) *CalendarQuery
Where adds a new predicate for the CalendarQuery builder.
func (*CalendarQuery) WithAccount ¶
func (_q *CalendarQuery) WithAccount(opts ...func(*AccountQuery)) *CalendarQuery
WithAccount tells the query-builder to eager-load the nodes that are connected to the "account" edge. The optional arguments are used to configure the query builder of the edge.
func (*CalendarQuery) WithEvents ¶
func (_q *CalendarQuery) WithEvents(opts ...func(*EventQuery)) *CalendarQuery
WithEvents tells the query-builder to eager-load the nodes that are connected to the "events" edge. The optional arguments are used to configure the query builder of the edge.
func (*CalendarQuery) WithTasks ¶
func (_q *CalendarQuery) WithTasks(opts ...func(*TaskQuery)) *CalendarQuery
WithTasks tells the query-builder to eager-load the nodes that are connected to the "tasks" edge. The optional arguments are used to configure the query builder of the edge.
type CalendarSelect ¶
type CalendarSelect struct {
*CalendarQuery
// contains filtered or unexported fields
}
CalendarSelect is the builder for selecting fields of Calendar entities.
func (*CalendarSelect) Aggregate ¶
func (_s *CalendarSelect) Aggregate(fns ...AggregateFunc) *CalendarSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CalendarSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CalendarSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (CalendarSelect) ExecContext ¶
func (c CalendarSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CalendarSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CalendarSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CalendarSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CalendarSelect) Modify ¶
func (_s *CalendarSelect) Modify(modifiers ...func(s *sql.Selector)) *CalendarSelect
Modify adds a query modifier for attaching custom logic to queries.
func (CalendarSelect) QueryContext ¶
func (c CalendarSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarSelect) Scan ¶
func (_s *CalendarSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CalendarSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CalendarUpdate ¶
type CalendarUpdate struct {
// contains filtered or unexported fields
}
CalendarUpdate is the builder for updating Calendar entities.
func (*CalendarUpdate) AddEventIDs ¶
func (_u *CalendarUpdate) AddEventIDs(ids ...string) *CalendarUpdate
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*CalendarUpdate) AddEvents ¶
func (_u *CalendarUpdate) AddEvents(v ...*Event) *CalendarUpdate
AddEvents adds the "events" edges to the Event entity.
func (*CalendarUpdate) AddTaskIDs ¶
func (_u *CalendarUpdate) AddTaskIDs(ids ...string) *CalendarUpdate
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*CalendarUpdate) AddTasks ¶
func (_u *CalendarUpdate) AddTasks(v ...*Task) *CalendarUpdate
AddTasks adds the "tasks" edges to the Task entity.
func (*CalendarUpdate) AppendSupportedComponents ¶
func (_u *CalendarUpdate) AppendSupportedComponents(v []string) *CalendarUpdate
AppendSupportedComponents appends value to the "supported_components" field.
func (*CalendarUpdate) ClearAccount ¶
func (_u *CalendarUpdate) ClearAccount() *CalendarUpdate
ClearAccount clears the "account" edge to the Account entity.
func (*CalendarUpdate) ClearColor ¶
func (_u *CalendarUpdate) ClearColor() *CalendarUpdate
ClearColor clears the value of the "color" field.
func (*CalendarUpdate) ClearDescription ¶
func (_u *CalendarUpdate) ClearDescription() *CalendarUpdate
ClearDescription clears the value of the "description" field.
func (*CalendarUpdate) ClearEvents ¶
func (_u *CalendarUpdate) ClearEvents() *CalendarUpdate
ClearEvents clears all "events" edges to the Event entity.
func (*CalendarUpdate) ClearNameOverride ¶
func (_u *CalendarUpdate) ClearNameOverride() *CalendarUpdate
ClearNameOverride clears the value of the "name_override" field.
func (*CalendarUpdate) ClearReminderOverrides ¶
func (_u *CalendarUpdate) ClearReminderOverrides() *CalendarUpdate
ClearReminderOverrides clears the value of the "reminder_overrides" field.
func (*CalendarUpdate) ClearSupportedComponents ¶
func (_u *CalendarUpdate) ClearSupportedComponents() *CalendarUpdate
ClearSupportedComponents clears the value of the "supported_components" field.
func (*CalendarUpdate) ClearSyncToken ¶
func (_u *CalendarUpdate) ClearSyncToken() *CalendarUpdate
ClearSyncToken clears the value of the "sync_token" field.
func (*CalendarUpdate) ClearTasks ¶
func (_u *CalendarUpdate) ClearTasks() *CalendarUpdate
ClearTasks clears all "tasks" edges to the Task entity.
func (*CalendarUpdate) ClearTimeZone ¶
func (_u *CalendarUpdate) ClearTimeZone() *CalendarUpdate
ClearTimeZone clears the value of the "time_zone" field.
func (*CalendarUpdate) Exec ¶
func (_u *CalendarUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CalendarUpdate) ExecContext ¶
func (c *CalendarUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarUpdate) ExecX ¶
func (_u *CalendarUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarUpdate) Modify ¶
func (_u *CalendarUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CalendarUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CalendarUpdate) Mutation ¶
func (_u *CalendarUpdate) Mutation() *CalendarMutation
Mutation returns the CalendarMutation object of the builder.
func (*CalendarUpdate) QueryContext ¶
func (c *CalendarUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarUpdate) RemoveEventIDs ¶
func (_u *CalendarUpdate) RemoveEventIDs(ids ...string) *CalendarUpdate
RemoveEventIDs removes the "events" edge to Event entities by IDs.
func (*CalendarUpdate) RemoveEvents ¶
func (_u *CalendarUpdate) RemoveEvents(v ...*Event) *CalendarUpdate
RemoveEvents removes "events" edges to Event entities.
func (*CalendarUpdate) RemoveTaskIDs ¶
func (_u *CalendarUpdate) RemoveTaskIDs(ids ...string) *CalendarUpdate
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
func (*CalendarUpdate) RemoveTasks ¶
func (_u *CalendarUpdate) RemoveTasks(v ...*Task) *CalendarUpdate
RemoveTasks removes "tasks" edges to Task entities.
func (*CalendarUpdate) Save ¶
func (_u *CalendarUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CalendarUpdate) SaveX ¶
func (_u *CalendarUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CalendarUpdate) SetAccount ¶
func (_u *CalendarUpdate) SetAccount(v *Account) *CalendarUpdate
SetAccount sets the "account" edge to the Account entity.
func (*CalendarUpdate) SetAccountID ¶
func (_u *CalendarUpdate) SetAccountID(id string) *CalendarUpdate
SetAccountID sets the "account" edge to the Account entity by ID.
func (*CalendarUpdate) SetColor ¶
func (_u *CalendarUpdate) SetColor(v string) *CalendarUpdate
SetColor sets the "color" field.
func (*CalendarUpdate) SetDescription ¶
func (_u *CalendarUpdate) SetDescription(v string) *CalendarUpdate
SetDescription sets the "description" field.
func (*CalendarUpdate) SetHidden ¶
func (_u *CalendarUpdate) SetHidden(v bool) *CalendarUpdate
SetHidden sets the "hidden" field.
func (*CalendarUpdate) SetName ¶
func (_u *CalendarUpdate) SetName(v string) *CalendarUpdate
SetName sets the "name" field.
func (*CalendarUpdate) SetNameOverride ¶
func (_u *CalendarUpdate) SetNameOverride(v string) *CalendarUpdate
SetNameOverride sets the "name_override" field.
func (*CalendarUpdate) SetNillableColor ¶
func (_u *CalendarUpdate) SetNillableColor(v *string) *CalendarUpdate
SetNillableColor sets the "color" field if the given value is not nil.
func (*CalendarUpdate) SetNillableDescription ¶
func (_u *CalendarUpdate) SetNillableDescription(v *string) *CalendarUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*CalendarUpdate) SetNillableHidden ¶
func (_u *CalendarUpdate) SetNillableHidden(v *bool) *CalendarUpdate
SetNillableHidden sets the "hidden" field if the given value is not nil.
func (*CalendarUpdate) SetNillableName ¶
func (_u *CalendarUpdate) SetNillableName(v *string) *CalendarUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*CalendarUpdate) SetNillableNameOverride ¶
func (_u *CalendarUpdate) SetNillableNameOverride(v *string) *CalendarUpdate
SetNillableNameOverride sets the "name_override" field if the given value is not nil.
func (*CalendarUpdate) SetNillableReadOnly ¶
func (_u *CalendarUpdate) SetNillableReadOnly(v *bool) *CalendarUpdate
SetNillableReadOnly sets the "read_only" field if the given value is not nil.
func (*CalendarUpdate) SetNillableRemoteID ¶
func (_u *CalendarUpdate) SetNillableRemoteID(v *string) *CalendarUpdate
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*CalendarUpdate) SetNillableSyncDisabled ¶
func (_u *CalendarUpdate) SetNillableSyncDisabled(v *bool) *CalendarUpdate
SetNillableSyncDisabled sets the "sync_disabled" field if the given value is not nil.
func (*CalendarUpdate) SetNillableSyncToken ¶
func (_u *CalendarUpdate) SetNillableSyncToken(v *string) *CalendarUpdate
SetNillableSyncToken sets the "sync_token" field if the given value is not nil.
func (*CalendarUpdate) SetNillableTimeZone ¶
func (_u *CalendarUpdate) SetNillableTimeZone(v *string) *CalendarUpdate
SetNillableTimeZone sets the "time_zone" field if the given value is not nil.
func (*CalendarUpdate) SetReadOnly ¶
func (_u *CalendarUpdate) SetReadOnly(v bool) *CalendarUpdate
SetReadOnly sets the "read_only" field.
func (*CalendarUpdate) SetReminderOverrides ¶
func (_u *CalendarUpdate) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpdate
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarUpdate) SetRemoteID ¶
func (_u *CalendarUpdate) SetRemoteID(v string) *CalendarUpdate
SetRemoteID sets the "remote_id" field.
func (*CalendarUpdate) SetSupportedComponents ¶
func (_u *CalendarUpdate) SetSupportedComponents(v []string) *CalendarUpdate
SetSupportedComponents sets the "supported_components" field.
func (*CalendarUpdate) SetSyncDisabled ¶
func (_u *CalendarUpdate) SetSyncDisabled(v bool) *CalendarUpdate
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarUpdate) SetSyncToken ¶
func (_u *CalendarUpdate) SetSyncToken(v string) *CalendarUpdate
SetSyncToken sets the "sync_token" field.
func (*CalendarUpdate) SetTimeZone ¶
func (_u *CalendarUpdate) SetTimeZone(v string) *CalendarUpdate
SetTimeZone sets the "time_zone" field.
func (*CalendarUpdate) SetUpdatedAt ¶
func (_u *CalendarUpdate) SetUpdatedAt(v time.Time) *CalendarUpdate
SetUpdatedAt sets the "updated_at" field.
func (*CalendarUpdate) Where ¶
func (_u *CalendarUpdate) Where(ps ...predicate.Calendar) *CalendarUpdate
Where appends a list predicates to the CalendarUpdate builder.
type CalendarUpdateOne ¶
type CalendarUpdateOne struct {
// contains filtered or unexported fields
}
CalendarUpdateOne is the builder for updating a single Calendar entity.
func (*CalendarUpdateOne) AddEventIDs ¶
func (_u *CalendarUpdateOne) AddEventIDs(ids ...string) *CalendarUpdateOne
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*CalendarUpdateOne) AddEvents ¶
func (_u *CalendarUpdateOne) AddEvents(v ...*Event) *CalendarUpdateOne
AddEvents adds the "events" edges to the Event entity.
func (*CalendarUpdateOne) AddTaskIDs ¶
func (_u *CalendarUpdateOne) AddTaskIDs(ids ...string) *CalendarUpdateOne
AddTaskIDs adds the "tasks" edge to the Task entity by IDs.
func (*CalendarUpdateOne) AddTasks ¶
func (_u *CalendarUpdateOne) AddTasks(v ...*Task) *CalendarUpdateOne
AddTasks adds the "tasks" edges to the Task entity.
func (*CalendarUpdateOne) AppendSupportedComponents ¶
func (_u *CalendarUpdateOne) AppendSupportedComponents(v []string) *CalendarUpdateOne
AppendSupportedComponents appends value to the "supported_components" field.
func (*CalendarUpdateOne) ClearAccount ¶
func (_u *CalendarUpdateOne) ClearAccount() *CalendarUpdateOne
ClearAccount clears the "account" edge to the Account entity.
func (*CalendarUpdateOne) ClearColor ¶
func (_u *CalendarUpdateOne) ClearColor() *CalendarUpdateOne
ClearColor clears the value of the "color" field.
func (*CalendarUpdateOne) ClearDescription ¶
func (_u *CalendarUpdateOne) ClearDescription() *CalendarUpdateOne
ClearDescription clears the value of the "description" field.
func (*CalendarUpdateOne) ClearEvents ¶
func (_u *CalendarUpdateOne) ClearEvents() *CalendarUpdateOne
ClearEvents clears all "events" edges to the Event entity.
func (*CalendarUpdateOne) ClearNameOverride ¶
func (_u *CalendarUpdateOne) ClearNameOverride() *CalendarUpdateOne
ClearNameOverride clears the value of the "name_override" field.
func (*CalendarUpdateOne) ClearReminderOverrides ¶
func (_u *CalendarUpdateOne) ClearReminderOverrides() *CalendarUpdateOne
ClearReminderOverrides clears the value of the "reminder_overrides" field.
func (*CalendarUpdateOne) ClearSupportedComponents ¶
func (_u *CalendarUpdateOne) ClearSupportedComponents() *CalendarUpdateOne
ClearSupportedComponents clears the value of the "supported_components" field.
func (*CalendarUpdateOne) ClearSyncToken ¶
func (_u *CalendarUpdateOne) ClearSyncToken() *CalendarUpdateOne
ClearSyncToken clears the value of the "sync_token" field.
func (*CalendarUpdateOne) ClearTasks ¶
func (_u *CalendarUpdateOne) ClearTasks() *CalendarUpdateOne
ClearTasks clears all "tasks" edges to the Task entity.
func (*CalendarUpdateOne) ClearTimeZone ¶
func (_u *CalendarUpdateOne) ClearTimeZone() *CalendarUpdateOne
ClearTimeZone clears the value of the "time_zone" field.
func (*CalendarUpdateOne) Exec ¶
func (_u *CalendarUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CalendarUpdateOne) ExecContext ¶
func (c *CalendarUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CalendarUpdateOne) ExecX ¶
func (_u *CalendarUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarUpdateOne) Modify ¶
func (_u *CalendarUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CalendarUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CalendarUpdateOne) Mutation ¶
func (_u *CalendarUpdateOne) Mutation() *CalendarMutation
Mutation returns the CalendarMutation object of the builder.
func (*CalendarUpdateOne) QueryContext ¶
func (c *CalendarUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CalendarUpdateOne) RemoveEventIDs ¶
func (_u *CalendarUpdateOne) RemoveEventIDs(ids ...string) *CalendarUpdateOne
RemoveEventIDs removes the "events" edge to Event entities by IDs.
func (*CalendarUpdateOne) RemoveEvents ¶
func (_u *CalendarUpdateOne) RemoveEvents(v ...*Event) *CalendarUpdateOne
RemoveEvents removes "events" edges to Event entities.
func (*CalendarUpdateOne) RemoveTaskIDs ¶
func (_u *CalendarUpdateOne) RemoveTaskIDs(ids ...string) *CalendarUpdateOne
RemoveTaskIDs removes the "tasks" edge to Task entities by IDs.
func (*CalendarUpdateOne) RemoveTasks ¶
func (_u *CalendarUpdateOne) RemoveTasks(v ...*Task) *CalendarUpdateOne
RemoveTasks removes "tasks" edges to Task entities.
func (*CalendarUpdateOne) Save ¶
func (_u *CalendarUpdateOne) Save(ctx context.Context) (*Calendar, error)
Save executes the query and returns the updated Calendar entity.
func (*CalendarUpdateOne) SaveX ¶
func (_u *CalendarUpdateOne) SaveX(ctx context.Context) *Calendar
SaveX is like Save, but panics if an error occurs.
func (*CalendarUpdateOne) Select ¶
func (_u *CalendarUpdateOne) Select(field string, fields ...string) *CalendarUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CalendarUpdateOne) SetAccount ¶
func (_u *CalendarUpdateOne) SetAccount(v *Account) *CalendarUpdateOne
SetAccount sets the "account" edge to the Account entity.
func (*CalendarUpdateOne) SetAccountID ¶
func (_u *CalendarUpdateOne) SetAccountID(id string) *CalendarUpdateOne
SetAccountID sets the "account" edge to the Account entity by ID.
func (*CalendarUpdateOne) SetColor ¶
func (_u *CalendarUpdateOne) SetColor(v string) *CalendarUpdateOne
SetColor sets the "color" field.
func (*CalendarUpdateOne) SetDescription ¶
func (_u *CalendarUpdateOne) SetDescription(v string) *CalendarUpdateOne
SetDescription sets the "description" field.
func (*CalendarUpdateOne) SetHidden ¶
func (_u *CalendarUpdateOne) SetHidden(v bool) *CalendarUpdateOne
SetHidden sets the "hidden" field.
func (*CalendarUpdateOne) SetName ¶
func (_u *CalendarUpdateOne) SetName(v string) *CalendarUpdateOne
SetName sets the "name" field.
func (*CalendarUpdateOne) SetNameOverride ¶
func (_u *CalendarUpdateOne) SetNameOverride(v string) *CalendarUpdateOne
SetNameOverride sets the "name_override" field.
func (*CalendarUpdateOne) SetNillableColor ¶
func (_u *CalendarUpdateOne) SetNillableColor(v *string) *CalendarUpdateOne
SetNillableColor sets the "color" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableDescription ¶
func (_u *CalendarUpdateOne) SetNillableDescription(v *string) *CalendarUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableHidden ¶
func (_u *CalendarUpdateOne) SetNillableHidden(v *bool) *CalendarUpdateOne
SetNillableHidden sets the "hidden" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableName ¶
func (_u *CalendarUpdateOne) SetNillableName(v *string) *CalendarUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableNameOverride ¶
func (_u *CalendarUpdateOne) SetNillableNameOverride(v *string) *CalendarUpdateOne
SetNillableNameOverride sets the "name_override" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableReadOnly ¶
func (_u *CalendarUpdateOne) SetNillableReadOnly(v *bool) *CalendarUpdateOne
SetNillableReadOnly sets the "read_only" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableRemoteID ¶
func (_u *CalendarUpdateOne) SetNillableRemoteID(v *string) *CalendarUpdateOne
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableSyncDisabled ¶
func (_u *CalendarUpdateOne) SetNillableSyncDisabled(v *bool) *CalendarUpdateOne
SetNillableSyncDisabled sets the "sync_disabled" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableSyncToken ¶
func (_u *CalendarUpdateOne) SetNillableSyncToken(v *string) *CalendarUpdateOne
SetNillableSyncToken sets the "sync_token" field if the given value is not nil.
func (*CalendarUpdateOne) SetNillableTimeZone ¶
func (_u *CalendarUpdateOne) SetNillableTimeZone(v *string) *CalendarUpdateOne
SetNillableTimeZone sets the "time_zone" field if the given value is not nil.
func (*CalendarUpdateOne) SetReadOnly ¶
func (_u *CalendarUpdateOne) SetReadOnly(v bool) *CalendarUpdateOne
SetReadOnly sets the "read_only" field.
func (*CalendarUpdateOne) SetReminderOverrides ¶
func (_u *CalendarUpdateOne) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpdateOne
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarUpdateOne) SetRemoteID ¶
func (_u *CalendarUpdateOne) SetRemoteID(v string) *CalendarUpdateOne
SetRemoteID sets the "remote_id" field.
func (*CalendarUpdateOne) SetSupportedComponents ¶
func (_u *CalendarUpdateOne) SetSupportedComponents(v []string) *CalendarUpdateOne
SetSupportedComponents sets the "supported_components" field.
func (*CalendarUpdateOne) SetSyncDisabled ¶
func (_u *CalendarUpdateOne) SetSyncDisabled(v bool) *CalendarUpdateOne
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarUpdateOne) SetSyncToken ¶
func (_u *CalendarUpdateOne) SetSyncToken(v string) *CalendarUpdateOne
SetSyncToken sets the "sync_token" field.
func (*CalendarUpdateOne) SetTimeZone ¶
func (_u *CalendarUpdateOne) SetTimeZone(v string) *CalendarUpdateOne
SetTimeZone sets the "time_zone" field.
func (*CalendarUpdateOne) SetUpdatedAt ¶
func (_u *CalendarUpdateOne) SetUpdatedAt(v time.Time) *CalendarUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*CalendarUpdateOne) Where ¶
func (_u *CalendarUpdateOne) Where(ps ...predicate.Calendar) *CalendarUpdateOne
Where appends a list predicates to the CalendarUpdate builder.
type CalendarUpsert ¶
CalendarUpsert is the "OnConflict" setter.
func (*CalendarUpsert) ClearColor ¶
func (u *CalendarUpsert) ClearColor() *CalendarUpsert
ClearColor clears the value of the "color" field.
func (*CalendarUpsert) ClearDescription ¶
func (u *CalendarUpsert) ClearDescription() *CalendarUpsert
ClearDescription clears the value of the "description" field.
func (*CalendarUpsert) ClearNameOverride ¶
func (u *CalendarUpsert) ClearNameOverride() *CalendarUpsert
ClearNameOverride clears the value of the "name_override" field.
func (*CalendarUpsert) ClearReminderOverrides ¶
func (u *CalendarUpsert) ClearReminderOverrides() *CalendarUpsert
ClearReminderOverrides clears the value of the "reminder_overrides" field.
func (*CalendarUpsert) ClearSupportedComponents ¶
func (u *CalendarUpsert) ClearSupportedComponents() *CalendarUpsert
ClearSupportedComponents clears the value of the "supported_components" field.
func (*CalendarUpsert) ClearSyncToken ¶
func (u *CalendarUpsert) ClearSyncToken() *CalendarUpsert
ClearSyncToken clears the value of the "sync_token" field.
func (*CalendarUpsert) ClearTimeZone ¶
func (u *CalendarUpsert) ClearTimeZone() *CalendarUpsert
ClearTimeZone clears the value of the "time_zone" field.
func (*CalendarUpsert) SetColor ¶
func (u *CalendarUpsert) SetColor(v string) *CalendarUpsert
SetColor sets the "color" field.
func (*CalendarUpsert) SetDescription ¶
func (u *CalendarUpsert) SetDescription(v string) *CalendarUpsert
SetDescription sets the "description" field.
func (*CalendarUpsert) SetHidden ¶
func (u *CalendarUpsert) SetHidden(v bool) *CalendarUpsert
SetHidden sets the "hidden" field.
func (*CalendarUpsert) SetName ¶
func (u *CalendarUpsert) SetName(v string) *CalendarUpsert
SetName sets the "name" field.
func (*CalendarUpsert) SetNameOverride ¶
func (u *CalendarUpsert) SetNameOverride(v string) *CalendarUpsert
SetNameOverride sets the "name_override" field.
func (*CalendarUpsert) SetReadOnly ¶
func (u *CalendarUpsert) SetReadOnly(v bool) *CalendarUpsert
SetReadOnly sets the "read_only" field.
func (*CalendarUpsert) SetReminderOverrides ¶
func (u *CalendarUpsert) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpsert
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarUpsert) SetRemoteID ¶
func (u *CalendarUpsert) SetRemoteID(v string) *CalendarUpsert
SetRemoteID sets the "remote_id" field.
func (*CalendarUpsert) SetSupportedComponents ¶
func (u *CalendarUpsert) SetSupportedComponents(v []string) *CalendarUpsert
SetSupportedComponents sets the "supported_components" field.
func (*CalendarUpsert) SetSyncDisabled ¶
func (u *CalendarUpsert) SetSyncDisabled(v bool) *CalendarUpsert
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarUpsert) SetSyncToken ¶
func (u *CalendarUpsert) SetSyncToken(v string) *CalendarUpsert
SetSyncToken sets the "sync_token" field.
func (*CalendarUpsert) SetTimeZone ¶
func (u *CalendarUpsert) SetTimeZone(v string) *CalendarUpsert
SetTimeZone sets the "time_zone" field.
func (*CalendarUpsert) SetUpdatedAt ¶
func (u *CalendarUpsert) SetUpdatedAt(v time.Time) *CalendarUpsert
SetUpdatedAt sets the "updated_at" field.
func (*CalendarUpsert) UpdateColor ¶
func (u *CalendarUpsert) UpdateColor() *CalendarUpsert
UpdateColor sets the "color" field to the value that was provided on create.
func (*CalendarUpsert) UpdateDescription ¶
func (u *CalendarUpsert) UpdateDescription() *CalendarUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*CalendarUpsert) UpdateHidden ¶
func (u *CalendarUpsert) UpdateHidden() *CalendarUpsert
UpdateHidden sets the "hidden" field to the value that was provided on create.
func (*CalendarUpsert) UpdateName ¶
func (u *CalendarUpsert) UpdateName() *CalendarUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*CalendarUpsert) UpdateNameOverride ¶
func (u *CalendarUpsert) UpdateNameOverride() *CalendarUpsert
UpdateNameOverride sets the "name_override" field to the value that was provided on create.
func (*CalendarUpsert) UpdateReadOnly ¶
func (u *CalendarUpsert) UpdateReadOnly() *CalendarUpsert
UpdateReadOnly sets the "read_only" field to the value that was provided on create.
func (*CalendarUpsert) UpdateReminderOverrides ¶
func (u *CalendarUpsert) UpdateReminderOverrides() *CalendarUpsert
UpdateReminderOverrides sets the "reminder_overrides" field to the value that was provided on create.
func (*CalendarUpsert) UpdateRemoteID ¶
func (u *CalendarUpsert) UpdateRemoteID() *CalendarUpsert
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*CalendarUpsert) UpdateSupportedComponents ¶
func (u *CalendarUpsert) UpdateSupportedComponents() *CalendarUpsert
UpdateSupportedComponents sets the "supported_components" field to the value that was provided on create.
func (*CalendarUpsert) UpdateSyncDisabled ¶
func (u *CalendarUpsert) UpdateSyncDisabled() *CalendarUpsert
UpdateSyncDisabled sets the "sync_disabled" field to the value that was provided on create.
func (*CalendarUpsert) UpdateSyncToken ¶
func (u *CalendarUpsert) UpdateSyncToken() *CalendarUpsert
UpdateSyncToken sets the "sync_token" field to the value that was provided on create.
func (*CalendarUpsert) UpdateTimeZone ¶
func (u *CalendarUpsert) UpdateTimeZone() *CalendarUpsert
UpdateTimeZone sets the "time_zone" field to the value that was provided on create.
func (*CalendarUpsert) UpdateUpdatedAt ¶
func (u *CalendarUpsert) UpdateUpdatedAt() *CalendarUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type CalendarUpsertBulk ¶
type CalendarUpsertBulk struct {
// contains filtered or unexported fields
}
CalendarUpsertBulk is the builder for "upsert"-ing a bulk of Calendar nodes.
func (*CalendarUpsertBulk) ClearColor ¶
func (u *CalendarUpsertBulk) ClearColor() *CalendarUpsertBulk
ClearColor clears the value of the "color" field.
func (*CalendarUpsertBulk) ClearDescription ¶
func (u *CalendarUpsertBulk) ClearDescription() *CalendarUpsertBulk
ClearDescription clears the value of the "description" field.
func (*CalendarUpsertBulk) ClearNameOverride ¶
func (u *CalendarUpsertBulk) ClearNameOverride() *CalendarUpsertBulk
ClearNameOverride clears the value of the "name_override" field.
func (*CalendarUpsertBulk) ClearReminderOverrides ¶
func (u *CalendarUpsertBulk) ClearReminderOverrides() *CalendarUpsertBulk
ClearReminderOverrides clears the value of the "reminder_overrides" field.
func (*CalendarUpsertBulk) ClearSupportedComponents ¶
func (u *CalendarUpsertBulk) ClearSupportedComponents() *CalendarUpsertBulk
ClearSupportedComponents clears the value of the "supported_components" field.
func (*CalendarUpsertBulk) ClearSyncToken ¶
func (u *CalendarUpsertBulk) ClearSyncToken() *CalendarUpsertBulk
ClearSyncToken clears the value of the "sync_token" field.
func (*CalendarUpsertBulk) ClearTimeZone ¶
func (u *CalendarUpsertBulk) ClearTimeZone() *CalendarUpsertBulk
ClearTimeZone clears the value of the "time_zone" field.
func (*CalendarUpsertBulk) DoNothing ¶
func (u *CalendarUpsertBulk) DoNothing() *CalendarUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CalendarUpsertBulk) Exec ¶
func (u *CalendarUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CalendarUpsertBulk) ExecX ¶
func (u *CalendarUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarUpsertBulk) Ignore ¶
func (u *CalendarUpsertBulk) Ignore() *CalendarUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Calendar.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CalendarUpsertBulk) SetColor ¶
func (u *CalendarUpsertBulk) SetColor(v string) *CalendarUpsertBulk
SetColor sets the "color" field.
func (*CalendarUpsertBulk) SetDescription ¶
func (u *CalendarUpsertBulk) SetDescription(v string) *CalendarUpsertBulk
SetDescription sets the "description" field.
func (*CalendarUpsertBulk) SetHidden ¶
func (u *CalendarUpsertBulk) SetHidden(v bool) *CalendarUpsertBulk
SetHidden sets the "hidden" field.
func (*CalendarUpsertBulk) SetName ¶
func (u *CalendarUpsertBulk) SetName(v string) *CalendarUpsertBulk
SetName sets the "name" field.
func (*CalendarUpsertBulk) SetNameOverride ¶
func (u *CalendarUpsertBulk) SetNameOverride(v string) *CalendarUpsertBulk
SetNameOverride sets the "name_override" field.
func (*CalendarUpsertBulk) SetReadOnly ¶
func (u *CalendarUpsertBulk) SetReadOnly(v bool) *CalendarUpsertBulk
SetReadOnly sets the "read_only" field.
func (*CalendarUpsertBulk) SetReminderOverrides ¶
func (u *CalendarUpsertBulk) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpsertBulk
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarUpsertBulk) SetRemoteID ¶
func (u *CalendarUpsertBulk) SetRemoteID(v string) *CalendarUpsertBulk
SetRemoteID sets the "remote_id" field.
func (*CalendarUpsertBulk) SetSupportedComponents ¶
func (u *CalendarUpsertBulk) SetSupportedComponents(v []string) *CalendarUpsertBulk
SetSupportedComponents sets the "supported_components" field.
func (*CalendarUpsertBulk) SetSyncDisabled ¶
func (u *CalendarUpsertBulk) SetSyncDisabled(v bool) *CalendarUpsertBulk
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarUpsertBulk) SetSyncToken ¶
func (u *CalendarUpsertBulk) SetSyncToken(v string) *CalendarUpsertBulk
SetSyncToken sets the "sync_token" field.
func (*CalendarUpsertBulk) SetTimeZone ¶
func (u *CalendarUpsertBulk) SetTimeZone(v string) *CalendarUpsertBulk
SetTimeZone sets the "time_zone" field.
func (*CalendarUpsertBulk) SetUpdatedAt ¶
func (u *CalendarUpsertBulk) SetUpdatedAt(v time.Time) *CalendarUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*CalendarUpsertBulk) Update ¶
func (u *CalendarUpsertBulk) Update(set func(*CalendarUpsert)) *CalendarUpsertBulk
Update allows overriding fields `UPDATE` values. See the CalendarCreateBulk.OnConflict documentation for more info.
func (*CalendarUpsertBulk) UpdateColor ¶
func (u *CalendarUpsertBulk) UpdateColor() *CalendarUpsertBulk
UpdateColor sets the "color" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateDescription ¶
func (u *CalendarUpsertBulk) UpdateDescription() *CalendarUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateHidden ¶
func (u *CalendarUpsertBulk) UpdateHidden() *CalendarUpsertBulk
UpdateHidden sets the "hidden" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateName ¶
func (u *CalendarUpsertBulk) UpdateName() *CalendarUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateNameOverride ¶
func (u *CalendarUpsertBulk) UpdateNameOverride() *CalendarUpsertBulk
UpdateNameOverride sets the "name_override" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateNewValues ¶
func (u *CalendarUpsertBulk) UpdateNewValues() *CalendarUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Calendar.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(calendar.FieldID)
}),
).
Exec(ctx)
func (*CalendarUpsertBulk) UpdateReadOnly ¶
func (u *CalendarUpsertBulk) UpdateReadOnly() *CalendarUpsertBulk
UpdateReadOnly sets the "read_only" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateReminderOverrides ¶
func (u *CalendarUpsertBulk) UpdateReminderOverrides() *CalendarUpsertBulk
UpdateReminderOverrides sets the "reminder_overrides" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateRemoteID ¶
func (u *CalendarUpsertBulk) UpdateRemoteID() *CalendarUpsertBulk
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateSupportedComponents ¶
func (u *CalendarUpsertBulk) UpdateSupportedComponents() *CalendarUpsertBulk
UpdateSupportedComponents sets the "supported_components" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateSyncDisabled ¶
func (u *CalendarUpsertBulk) UpdateSyncDisabled() *CalendarUpsertBulk
UpdateSyncDisabled sets the "sync_disabled" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateSyncToken ¶
func (u *CalendarUpsertBulk) UpdateSyncToken() *CalendarUpsertBulk
UpdateSyncToken sets the "sync_token" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateTimeZone ¶
func (u *CalendarUpsertBulk) UpdateTimeZone() *CalendarUpsertBulk
UpdateTimeZone sets the "time_zone" field to the value that was provided on create.
func (*CalendarUpsertBulk) UpdateUpdatedAt ¶
func (u *CalendarUpsertBulk) UpdateUpdatedAt() *CalendarUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type CalendarUpsertOne ¶
type CalendarUpsertOne struct {
// contains filtered or unexported fields
}
CalendarUpsertOne is the builder for "upsert"-ing
one Calendar node.
func (*CalendarUpsertOne) ClearColor ¶
func (u *CalendarUpsertOne) ClearColor() *CalendarUpsertOne
ClearColor clears the value of the "color" field.
func (*CalendarUpsertOne) ClearDescription ¶
func (u *CalendarUpsertOne) ClearDescription() *CalendarUpsertOne
ClearDescription clears the value of the "description" field.
func (*CalendarUpsertOne) ClearNameOverride ¶
func (u *CalendarUpsertOne) ClearNameOverride() *CalendarUpsertOne
ClearNameOverride clears the value of the "name_override" field.
func (*CalendarUpsertOne) ClearReminderOverrides ¶
func (u *CalendarUpsertOne) ClearReminderOverrides() *CalendarUpsertOne
ClearReminderOverrides clears the value of the "reminder_overrides" field.
func (*CalendarUpsertOne) ClearSupportedComponents ¶
func (u *CalendarUpsertOne) ClearSupportedComponents() *CalendarUpsertOne
ClearSupportedComponents clears the value of the "supported_components" field.
func (*CalendarUpsertOne) ClearSyncToken ¶
func (u *CalendarUpsertOne) ClearSyncToken() *CalendarUpsertOne
ClearSyncToken clears the value of the "sync_token" field.
func (*CalendarUpsertOne) ClearTimeZone ¶
func (u *CalendarUpsertOne) ClearTimeZone() *CalendarUpsertOne
ClearTimeZone clears the value of the "time_zone" field.
func (*CalendarUpsertOne) DoNothing ¶
func (u *CalendarUpsertOne) DoNothing() *CalendarUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CalendarUpsertOne) Exec ¶
func (u *CalendarUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CalendarUpsertOne) ExecX ¶
func (u *CalendarUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CalendarUpsertOne) ID ¶
func (u *CalendarUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CalendarUpsertOne) IDX ¶
func (u *CalendarUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*CalendarUpsertOne) Ignore ¶
func (u *CalendarUpsertOne) Ignore() *CalendarUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Calendar.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*CalendarUpsertOne) SetColor ¶
func (u *CalendarUpsertOne) SetColor(v string) *CalendarUpsertOne
SetColor sets the "color" field.
func (*CalendarUpsertOne) SetDescription ¶
func (u *CalendarUpsertOne) SetDescription(v string) *CalendarUpsertOne
SetDescription sets the "description" field.
func (*CalendarUpsertOne) SetHidden ¶
func (u *CalendarUpsertOne) SetHidden(v bool) *CalendarUpsertOne
SetHidden sets the "hidden" field.
func (*CalendarUpsertOne) SetName ¶
func (u *CalendarUpsertOne) SetName(v string) *CalendarUpsertOne
SetName sets the "name" field.
func (*CalendarUpsertOne) SetNameOverride ¶
func (u *CalendarUpsertOne) SetNameOverride(v string) *CalendarUpsertOne
SetNameOverride sets the "name_override" field.
func (*CalendarUpsertOne) SetReadOnly ¶
func (u *CalendarUpsertOne) SetReadOnly(v bool) *CalendarUpsertOne
SetReadOnly sets the "read_only" field.
func (*CalendarUpsertOne) SetReminderOverrides ¶
func (u *CalendarUpsertOne) SetReminderOverrides(v *settings.ReminderOverride) *CalendarUpsertOne
SetReminderOverrides sets the "reminder_overrides" field.
func (*CalendarUpsertOne) SetRemoteID ¶
func (u *CalendarUpsertOne) SetRemoteID(v string) *CalendarUpsertOne
SetRemoteID sets the "remote_id" field.
func (*CalendarUpsertOne) SetSupportedComponents ¶
func (u *CalendarUpsertOne) SetSupportedComponents(v []string) *CalendarUpsertOne
SetSupportedComponents sets the "supported_components" field.
func (*CalendarUpsertOne) SetSyncDisabled ¶
func (u *CalendarUpsertOne) SetSyncDisabled(v bool) *CalendarUpsertOne
SetSyncDisabled sets the "sync_disabled" field.
func (*CalendarUpsertOne) SetSyncToken ¶
func (u *CalendarUpsertOne) SetSyncToken(v string) *CalendarUpsertOne
SetSyncToken sets the "sync_token" field.
func (*CalendarUpsertOne) SetTimeZone ¶
func (u *CalendarUpsertOne) SetTimeZone(v string) *CalendarUpsertOne
SetTimeZone sets the "time_zone" field.
func (*CalendarUpsertOne) SetUpdatedAt ¶
func (u *CalendarUpsertOne) SetUpdatedAt(v time.Time) *CalendarUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*CalendarUpsertOne) Update ¶
func (u *CalendarUpsertOne) Update(set func(*CalendarUpsert)) *CalendarUpsertOne
Update allows overriding fields `UPDATE` values. See the CalendarCreate.OnConflict documentation for more info.
func (*CalendarUpsertOne) UpdateColor ¶
func (u *CalendarUpsertOne) UpdateColor() *CalendarUpsertOne
UpdateColor sets the "color" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateDescription ¶
func (u *CalendarUpsertOne) UpdateDescription() *CalendarUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateHidden ¶
func (u *CalendarUpsertOne) UpdateHidden() *CalendarUpsertOne
UpdateHidden sets the "hidden" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateName ¶
func (u *CalendarUpsertOne) UpdateName() *CalendarUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateNameOverride ¶
func (u *CalendarUpsertOne) UpdateNameOverride() *CalendarUpsertOne
UpdateNameOverride sets the "name_override" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateNewValues ¶
func (u *CalendarUpsertOne) UpdateNewValues() *CalendarUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Calendar.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(calendar.FieldID)
}),
).
Exec(ctx)
func (*CalendarUpsertOne) UpdateReadOnly ¶
func (u *CalendarUpsertOne) UpdateReadOnly() *CalendarUpsertOne
UpdateReadOnly sets the "read_only" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateReminderOverrides ¶
func (u *CalendarUpsertOne) UpdateReminderOverrides() *CalendarUpsertOne
UpdateReminderOverrides sets the "reminder_overrides" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateRemoteID ¶
func (u *CalendarUpsertOne) UpdateRemoteID() *CalendarUpsertOne
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateSupportedComponents ¶
func (u *CalendarUpsertOne) UpdateSupportedComponents() *CalendarUpsertOne
UpdateSupportedComponents sets the "supported_components" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateSyncDisabled ¶
func (u *CalendarUpsertOne) UpdateSyncDisabled() *CalendarUpsertOne
UpdateSyncDisabled sets the "sync_disabled" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateSyncToken ¶
func (u *CalendarUpsertOne) UpdateSyncToken() *CalendarUpsertOne
UpdateSyncToken sets the "sync_token" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateTimeZone ¶
func (u *CalendarUpsertOne) UpdateTimeZone() *CalendarUpsertOne
UpdateTimeZone sets the "time_zone" field to the value that was provided on create.
func (*CalendarUpsertOne) UpdateUpdatedAt ¶
func (u *CalendarUpsertOne) UpdateUpdatedAt() *CalendarUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// Account is the client for interacting with the Account builders.
Account *AccountClient
// Calendar is the client for interacting with the Calendar builders.
Calendar *CalendarClient
// Event is the client for interacting with the Event builders.
Event *EventClient
// InvitationState is the client for interacting with the InvitationState builders.
InvitationState *InvitationStateClient
// ReminderState is the client for interacting with the ReminderState builders.
ReminderState *ReminderStateClient
// Secret is the client for interacting with the Secret builders.
Secret *SecretClient
// Task is the client for interacting with the Task builders.
Task *TaskClient
// 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(). Account. Query(). Count(ctx)
func (*Client) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
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) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
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 Event ¶
type Event struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// UID holds the value of the "uid" field.
UID string `json:"uid,omitempty"`
// RemoteID holds the value of the "remote_id" field.
RemoteID string `json:"remote_id,omitempty"`
// Etag holds the value of the "etag" field.
Etag string `json:"etag,omitempty"`
// Summary holds the value of the "summary" field.
Summary string `json:"summary,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// Location holds the value of the "location" field.
Location string `json:"location,omitempty"`
// URL holds the value of the "url" field.
URL string `json:"url,omitempty"`
// MeetingURL holds the value of the "meeting_url" field.
MeetingURL string `json:"meeting_url,omitempty"`
// Status holds the value of the "status" field.
Status event.Status `json:"status,omitempty"`
// Start holds the value of the "start" field.
Start time.Time `json:"start,omitempty"`
// End holds the value of the "end" field.
End time.Time `json:"end,omitempty"`
// AllDay holds the value of the "all_day" field.
AllDay bool `json:"all_day,omitempty"`
// StartTz holds the value of the "start_tz" field.
StartTz string `json:"start_tz,omitempty"`
// EndTz holds the value of the "end_tz" field.
EndTz string `json:"end_tz,omitempty"`
// Recurrence holds the value of the "recurrence" field.
Recurrence map[string]interface{} `json:"recurrence,omitempty"`
// RecurringID holds the value of the "recurring_id" field.
RecurringID string `json:"recurring_id,omitempty"`
// OriginalStart holds the value of the "original_start" field.
OriginalStart *time.Time `json:"original_start,omitempty"`
// Organizer holds the value of the "organizer" field.
Organizer map[string]interface{} `json:"organizer,omitempty"`
// Attendees holds the value of the "attendees" field.
Attendees []map[string]interface{} `json:"attendees,omitempty"`
// Reminders holds the value of the "reminders" field.
Reminders []map[string]interface{} `json:"reminders,omitempty"`
// Categories holds the value of the "categories" field.
Categories []string `json:"categories,omitempty"`
// Transparency holds the value of the "transparency" field.
Transparency string `json:"transparency,omitempty"`
// Visibility holds the value of the "visibility" field.
Visibility string `json:"visibility,omitempty"`
// RawIcs holds the value of the "raw_ics" field.
RawIcs string `json:"raw_ics,omitempty"`
// Created holds the value of the "created" field.
Created time.Time `json:"created,omitempty"`
// Updated holds the value of the "updated" field.
Updated time.Time `json:"updated,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the EventQuery when eager-loading is set.
Edges EventEdges `json:"edges"`
// contains filtered or unexported fields
}
Event is the model entity for the Event schema.
func (*Event) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Event) QueryCalendar ¶
func (_m *Event) QueryCalendar() *CalendarQuery
QueryCalendar queries the "calendar" edge of the Event entity.
func (*Event) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Event) Unwrap ¶
Unwrap unwraps the Event 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 (*Event) Update ¶
func (_m *Event) Update() *EventUpdateOne
Update returns a builder for updating this Event. Note that you need to call Event.Unwrap() before calling this method if this Event was returned from a transaction, and the transaction was committed or rolled back.
type EventClient ¶
type EventClient struct {
// contains filtered or unexported fields
}
EventClient is a client for the Event schema.
func NewEventClient ¶
func NewEventClient(c config) *EventClient
NewEventClient returns a client for the Event from the given config.
func (*EventClient) Create ¶
func (c *EventClient) Create() *EventCreate
Create returns a builder for creating a Event entity.
func (*EventClient) CreateBulk ¶
func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk
CreateBulk returns a builder for creating a bulk of Event entities.
func (*EventClient) Delete ¶
func (c *EventClient) Delete() *EventDelete
Delete returns a delete builder for Event.
func (*EventClient) DeleteOne ¶
func (c *EventClient) DeleteOne(_m *Event) *EventDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*EventClient) DeleteOneID ¶
func (c *EventClient) DeleteOneID(id string) *EventDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*EventClient) ExecContext ¶
func (c *EventClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventClient) GetX ¶
func (c *EventClient) GetX(ctx context.Context, id string) *Event
GetX is like Get, but panics if an error occurs.
func (*EventClient) Intercept ¶
func (c *EventClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `event.Intercept(f(g(h())))`.
func (*EventClient) Interceptors ¶
func (c *EventClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*EventClient) MapCreateBulk ¶
func (c *EventClient) MapCreateBulk(slice any, setFunc func(*EventCreate, int)) *EventCreateBulk
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 (*EventClient) Query ¶
func (c *EventClient) Query() *EventQuery
Query returns a query builder for Event.
func (*EventClient) QueryCalendar ¶
func (c *EventClient) QueryCalendar(_m *Event) *CalendarQuery
QueryCalendar queries the calendar edge of a Event.
func (*EventClient) QueryContext ¶
func (c *EventClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventClient) Update ¶
func (c *EventClient) Update() *EventUpdate
Update returns an update builder for Event.
func (*EventClient) UpdateOne ¶
func (c *EventClient) UpdateOne(_m *Event) *EventUpdateOne
UpdateOne returns an update builder for the given entity.
func (*EventClient) UpdateOneID ¶
func (c *EventClient) UpdateOneID(id string) *EventUpdateOne
UpdateOneID returns an update builder for the given id.
func (*EventClient) Use ¶
func (c *EventClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `event.Hooks(f(g(h())))`.
type EventCreate ¶
type EventCreate struct {
// contains filtered or unexported fields
}
EventCreate is the builder for creating a Event entity.
func (*EventCreate) Exec ¶
func (_c *EventCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*EventCreate) ExecContext ¶
func (c *EventCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventCreate) ExecX ¶
func (_c *EventCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventCreate) Mutation ¶
func (_c *EventCreate) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventCreate) OnConflict ¶
func (_c *EventCreate) OnConflict(opts ...sql.ConflictOption) *EventUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Event.Create().
SetUID(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.EventUpsert) {
SetUID(v+v).
}).
Exec(ctx)
func (*EventCreate) OnConflictColumns ¶
func (_c *EventCreate) OnConflictColumns(columns ...string) *EventUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Event.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*EventCreate) QueryContext ¶
func (c *EventCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventCreate) Save ¶
func (_c *EventCreate) Save(ctx context.Context) (*Event, error)
Save creates the Event in the database.
func (*EventCreate) SaveX ¶
func (_c *EventCreate) SaveX(ctx context.Context) *Event
SaveX calls Save and panics if Save returns an error.
func (*EventCreate) SetAllDay ¶
func (_c *EventCreate) SetAllDay(v bool) *EventCreate
SetAllDay sets the "all_day" field.
func (*EventCreate) SetAttendees ¶
func (_c *EventCreate) SetAttendees(v []map[string]interface{}) *EventCreate
SetAttendees sets the "attendees" field.
func (*EventCreate) SetCalendar ¶
func (_c *EventCreate) SetCalendar(v *Calendar) *EventCreate
SetCalendar sets the "calendar" edge to the Calendar entity.
func (*EventCreate) SetCalendarID ¶
func (_c *EventCreate) SetCalendarID(id string) *EventCreate
SetCalendarID sets the "calendar" edge to the Calendar entity by ID.
func (*EventCreate) SetCategories ¶
func (_c *EventCreate) SetCategories(v []string) *EventCreate
SetCategories sets the "categories" field.
func (*EventCreate) SetCreated ¶
func (_c *EventCreate) SetCreated(v time.Time) *EventCreate
SetCreated sets the "created" field.
func (*EventCreate) SetDescription ¶
func (_c *EventCreate) SetDescription(v string) *EventCreate
SetDescription sets the "description" field.
func (*EventCreate) SetEnd ¶
func (_c *EventCreate) SetEnd(v time.Time) *EventCreate
SetEnd sets the "end" field.
func (*EventCreate) SetEndTz ¶
func (_c *EventCreate) SetEndTz(v string) *EventCreate
SetEndTz sets the "end_tz" field.
func (*EventCreate) SetEtag ¶
func (_c *EventCreate) SetEtag(v string) *EventCreate
SetEtag sets the "etag" field.
func (*EventCreate) SetID ¶
func (_c *EventCreate) SetID(v string) *EventCreate
SetID sets the "id" field.
func (*EventCreate) SetLocation ¶
func (_c *EventCreate) SetLocation(v string) *EventCreate
SetLocation sets the "location" field.
func (*EventCreate) SetMeetingURL ¶
func (_c *EventCreate) SetMeetingURL(v string) *EventCreate
SetMeetingURL sets the "meeting_url" field.
func (*EventCreate) SetNillableAllDay ¶
func (_c *EventCreate) SetNillableAllDay(v *bool) *EventCreate
SetNillableAllDay sets the "all_day" field if the given value is not nil.
func (*EventCreate) SetNillableCreated ¶
func (_c *EventCreate) SetNillableCreated(v *time.Time) *EventCreate
SetNillableCreated sets the "created" field if the given value is not nil.
func (*EventCreate) SetNillableDescription ¶
func (_c *EventCreate) SetNillableDescription(v *string) *EventCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*EventCreate) SetNillableEndTz ¶
func (_c *EventCreate) SetNillableEndTz(v *string) *EventCreate
SetNillableEndTz sets the "end_tz" field if the given value is not nil.
func (*EventCreate) SetNillableEtag ¶
func (_c *EventCreate) SetNillableEtag(v *string) *EventCreate
SetNillableEtag sets the "etag" field if the given value is not nil.
func (*EventCreate) SetNillableLocation ¶
func (_c *EventCreate) SetNillableLocation(v *string) *EventCreate
SetNillableLocation sets the "location" field if the given value is not nil.
func (*EventCreate) SetNillableMeetingURL ¶
func (_c *EventCreate) SetNillableMeetingURL(v *string) *EventCreate
SetNillableMeetingURL sets the "meeting_url" field if the given value is not nil.
func (*EventCreate) SetNillableOriginalStart ¶
func (_c *EventCreate) SetNillableOriginalStart(v *time.Time) *EventCreate
SetNillableOriginalStart sets the "original_start" field if the given value is not nil.
func (*EventCreate) SetNillableRawIcs ¶
func (_c *EventCreate) SetNillableRawIcs(v *string) *EventCreate
SetNillableRawIcs sets the "raw_ics" field if the given value is not nil.
func (*EventCreate) SetNillableRecurringID ¶
func (_c *EventCreate) SetNillableRecurringID(v *string) *EventCreate
SetNillableRecurringID sets the "recurring_id" field if the given value is not nil.
func (*EventCreate) SetNillableRemoteID ¶
func (_c *EventCreate) SetNillableRemoteID(v *string) *EventCreate
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*EventCreate) SetNillableStartTz ¶
func (_c *EventCreate) SetNillableStartTz(v *string) *EventCreate
SetNillableStartTz sets the "start_tz" field if the given value is not nil.
func (*EventCreate) SetNillableStatus ¶
func (_c *EventCreate) SetNillableStatus(v *event.Status) *EventCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*EventCreate) SetNillableTransparency ¶
func (_c *EventCreate) SetNillableTransparency(v *string) *EventCreate
SetNillableTransparency sets the "transparency" field if the given value is not nil.
func (*EventCreate) SetNillableURL ¶
func (_c *EventCreate) SetNillableURL(v *string) *EventCreate
SetNillableURL sets the "url" field if the given value is not nil.
func (*EventCreate) SetNillableUpdated ¶
func (_c *EventCreate) SetNillableUpdated(v *time.Time) *EventCreate
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*EventCreate) SetNillableVisibility ¶
func (_c *EventCreate) SetNillableVisibility(v *string) *EventCreate
SetNillableVisibility sets the "visibility" field if the given value is not nil.
func (*EventCreate) SetOrganizer ¶
func (_c *EventCreate) SetOrganizer(v map[string]interface{}) *EventCreate
SetOrganizer sets the "organizer" field.
func (*EventCreate) SetOriginalStart ¶
func (_c *EventCreate) SetOriginalStart(v time.Time) *EventCreate
SetOriginalStart sets the "original_start" field.
func (*EventCreate) SetRawIcs ¶
func (_c *EventCreate) SetRawIcs(v string) *EventCreate
SetRawIcs sets the "raw_ics" field.
func (*EventCreate) SetRecurrence ¶
func (_c *EventCreate) SetRecurrence(v map[string]interface{}) *EventCreate
SetRecurrence sets the "recurrence" field.
func (*EventCreate) SetRecurringID ¶
func (_c *EventCreate) SetRecurringID(v string) *EventCreate
SetRecurringID sets the "recurring_id" field.
func (*EventCreate) SetReminders ¶
func (_c *EventCreate) SetReminders(v []map[string]interface{}) *EventCreate
SetReminders sets the "reminders" field.
func (*EventCreate) SetRemoteID ¶
func (_c *EventCreate) SetRemoteID(v string) *EventCreate
SetRemoteID sets the "remote_id" field.
func (*EventCreate) SetStart ¶
func (_c *EventCreate) SetStart(v time.Time) *EventCreate
SetStart sets the "start" field.
func (*EventCreate) SetStartTz ¶
func (_c *EventCreate) SetStartTz(v string) *EventCreate
SetStartTz sets the "start_tz" field.
func (*EventCreate) SetStatus ¶
func (_c *EventCreate) SetStatus(v event.Status) *EventCreate
SetStatus sets the "status" field.
func (*EventCreate) SetSummary ¶
func (_c *EventCreate) SetSummary(v string) *EventCreate
SetSummary sets the "summary" field.
func (*EventCreate) SetTransparency ¶
func (_c *EventCreate) SetTransparency(v string) *EventCreate
SetTransparency sets the "transparency" field.
func (*EventCreate) SetUID ¶
func (_c *EventCreate) SetUID(v string) *EventCreate
SetUID sets the "uid" field.
func (*EventCreate) SetURL ¶
func (_c *EventCreate) SetURL(v string) *EventCreate
SetURL sets the "url" field.
func (*EventCreate) SetUpdated ¶
func (_c *EventCreate) SetUpdated(v time.Time) *EventCreate
SetUpdated sets the "updated" field.
func (*EventCreate) SetVisibility ¶
func (_c *EventCreate) SetVisibility(v string) *EventCreate
SetVisibility sets the "visibility" field.
type EventCreateBulk ¶
type EventCreateBulk struct {
// contains filtered or unexported fields
}
EventCreateBulk is the builder for creating many Event entities in bulk.
func (*EventCreateBulk) Exec ¶
func (_c *EventCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*EventCreateBulk) ExecContext ¶
func (c *EventCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventCreateBulk) ExecX ¶
func (_c *EventCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventCreateBulk) OnConflict ¶
func (_c *EventCreateBulk) OnConflict(opts ...sql.ConflictOption) *EventUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Event.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.EventUpsert) {
SetUID(v+v).
}).
Exec(ctx)
func (*EventCreateBulk) OnConflictColumns ¶
func (_c *EventCreateBulk) OnConflictColumns(columns ...string) *EventUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Event.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*EventCreateBulk) QueryContext ¶
func (c *EventCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type EventDelete ¶
type EventDelete struct {
// contains filtered or unexported fields
}
EventDelete is the builder for deleting a Event entity.
func (*EventDelete) Exec ¶
func (_d *EventDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*EventDelete) ExecContext ¶
func (c *EventDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventDelete) ExecX ¶
func (_d *EventDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*EventDelete) QueryContext ¶
func (c *EventDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventDelete) Where ¶
func (_d *EventDelete) Where(ps ...predicate.Event) *EventDelete
Where appends a list predicates to the EventDelete builder.
type EventDeleteOne ¶
type EventDeleteOne struct {
// contains filtered or unexported fields
}
EventDeleteOne is the builder for deleting a single Event entity.
func (*EventDeleteOne) Exec ¶
func (_d *EventDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*EventDeleteOne) ExecX ¶
func (_d *EventDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventDeleteOne) Where ¶
func (_d *EventDeleteOne) Where(ps ...predicate.Event) *EventDeleteOne
Where appends a list predicates to the EventDelete builder.
type EventEdges ¶
type EventEdges struct {
// Calendar holds the value of the calendar edge.
Calendar *Calendar `json:"calendar,omitempty"`
// contains filtered or unexported fields
}
EventEdges holds the relations/edges for other nodes in the graph.
func (EventEdges) CalendarOrErr ¶
func (e EventEdges) CalendarOrErr() (*Calendar, error)
CalendarOrErr returns the Calendar value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type EventGroupBy ¶
type EventGroupBy struct {
// contains filtered or unexported fields
}
EventGroupBy is the group-by builder for Event entities.
func (*EventGroupBy) Aggregate ¶
func (_g *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*EventGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Scan ¶
func (_g *EventGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EventGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EventMutation ¶
type EventMutation struct {
// contains filtered or unexported fields
}
EventMutation represents an operation that mutates the Event nodes in the graph.
func (*EventMutation) AddField ¶
func (m *EventMutation) 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 (*EventMutation) AddedEdges ¶
func (m *EventMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*EventMutation) AddedField ¶
func (m *EventMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was 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 (*EventMutation) AddedFields ¶
func (m *EventMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*EventMutation) AddedIDs ¶
func (m *EventMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*EventMutation) AllDay ¶
func (m *EventMutation) AllDay() (r bool, exists bool)
AllDay returns the value of the "all_day" field in the mutation.
func (*EventMutation) AppendAttendees ¶
func (m *EventMutation) AppendAttendees(value []map[string]interface{})
AppendAttendees adds value to the "attendees" field.
func (*EventMutation) AppendCategories ¶
func (m *EventMutation) AppendCategories(s []string)
AppendCategories adds s to the "categories" field.
func (*EventMutation) AppendReminders ¶
func (m *EventMutation) AppendReminders(value []map[string]interface{})
AppendReminders adds value to the "reminders" field.
func (*EventMutation) AppendedAttendees ¶
func (m *EventMutation) AppendedAttendees() ([]map[string]interface{}, bool)
AppendedAttendees returns the list of values that were appended to the "attendees" field in this mutation.
func (*EventMutation) AppendedCategories ¶
func (m *EventMutation) AppendedCategories() ([]string, bool)
AppendedCategories returns the list of values that were appended to the "categories" field in this mutation.
func (*EventMutation) AppendedReminders ¶
func (m *EventMutation) AppendedReminders() ([]map[string]interface{}, bool)
AppendedReminders returns the list of values that were appended to the "reminders" field in this mutation.
func (*EventMutation) Attendees ¶
func (m *EventMutation) Attendees() (r []map[string]interface{}, exists bool)
Attendees returns the value of the "attendees" field in the mutation.
func (*EventMutation) AttendeesCleared ¶
func (m *EventMutation) AttendeesCleared() bool
AttendeesCleared returns if the "attendees" field was cleared in this mutation.
func (*EventMutation) CalendarCleared ¶
func (m *EventMutation) CalendarCleared() bool
CalendarCleared reports if the "calendar" edge to the Calendar entity was cleared.
func (*EventMutation) CalendarID ¶
func (m *EventMutation) CalendarID() (id string, exists bool)
CalendarID returns the "calendar" edge ID in the mutation.
func (*EventMutation) CalendarIDs ¶
func (m *EventMutation) CalendarIDs() (ids []string)
CalendarIDs returns the "calendar" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CalendarID instead. It exists only for internal usage by the builders.
func (*EventMutation) Categories ¶
func (m *EventMutation) Categories() (r []string, exists bool)
Categories returns the value of the "categories" field in the mutation.
func (*EventMutation) CategoriesCleared ¶
func (m *EventMutation) CategoriesCleared() bool
CategoriesCleared returns if the "categories" field was cleared in this mutation.
func (*EventMutation) ClearAttendees ¶
func (m *EventMutation) ClearAttendees()
ClearAttendees clears the value of the "attendees" field.
func (*EventMutation) ClearCalendar ¶
func (m *EventMutation) ClearCalendar()
ClearCalendar clears the "calendar" edge to the Calendar entity.
func (*EventMutation) ClearCategories ¶
func (m *EventMutation) ClearCategories()
ClearCategories clears the value of the "categories" field.
func (*EventMutation) ClearDescription ¶
func (m *EventMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*EventMutation) ClearEdge ¶
func (m *EventMutation) 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 (*EventMutation) ClearEndTz ¶
func (m *EventMutation) ClearEndTz()
ClearEndTz clears the value of the "end_tz" field.
func (*EventMutation) ClearEtag ¶
func (m *EventMutation) ClearEtag()
ClearEtag clears the value of the "etag" field.
func (*EventMutation) ClearField ¶
func (m *EventMutation) 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 (*EventMutation) ClearLocation ¶
func (m *EventMutation) ClearLocation()
ClearLocation clears the value of the "location" field.
func (*EventMutation) ClearMeetingURL ¶
func (m *EventMutation) ClearMeetingURL()
ClearMeetingURL clears the value of the "meeting_url" field.
func (*EventMutation) ClearOrganizer ¶
func (m *EventMutation) ClearOrganizer()
ClearOrganizer clears the value of the "organizer" field.
func (*EventMutation) ClearOriginalStart ¶
func (m *EventMutation) ClearOriginalStart()
ClearOriginalStart clears the value of the "original_start" field.
func (*EventMutation) ClearRawIcs ¶
func (m *EventMutation) ClearRawIcs()
ClearRawIcs clears the value of the "raw_ics" field.
func (*EventMutation) ClearRecurrence ¶
func (m *EventMutation) ClearRecurrence()
ClearRecurrence clears the value of the "recurrence" field.
func (*EventMutation) ClearRecurringID ¶
func (m *EventMutation) ClearRecurringID()
ClearRecurringID clears the value of the "recurring_id" field.
func (*EventMutation) ClearReminders ¶
func (m *EventMutation) ClearReminders()
ClearReminders clears the value of the "reminders" field.
func (*EventMutation) ClearRemoteID ¶
func (m *EventMutation) ClearRemoteID()
ClearRemoteID clears the value of the "remote_id" field.
func (*EventMutation) ClearStartTz ¶
func (m *EventMutation) ClearStartTz()
ClearStartTz clears the value of the "start_tz" field.
func (*EventMutation) ClearTransparency ¶
func (m *EventMutation) ClearTransparency()
ClearTransparency clears the value of the "transparency" field.
func (*EventMutation) ClearURL ¶
func (m *EventMutation) ClearURL()
ClearURL clears the value of the "url" field.
func (*EventMutation) ClearVisibility ¶
func (m *EventMutation) ClearVisibility()
ClearVisibility clears the value of the "visibility" field.
func (*EventMutation) ClearedEdges ¶
func (m *EventMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*EventMutation) ClearedFields ¶
func (m *EventMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (EventMutation) Client ¶
func (m EventMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*EventMutation) Created ¶
func (m *EventMutation) Created() (r time.Time, exists bool)
Created returns the value of the "created" field in the mutation.
func (*EventMutation) Description ¶
func (m *EventMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*EventMutation) DescriptionCleared ¶
func (m *EventMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*EventMutation) EdgeCleared ¶
func (m *EventMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*EventMutation) End ¶
func (m *EventMutation) End() (r time.Time, exists bool)
End returns the value of the "end" field in the mutation.
func (*EventMutation) EndTz ¶
func (m *EventMutation) EndTz() (r string, exists bool)
EndTz returns the value of the "end_tz" field in the mutation.
func (*EventMutation) EndTzCleared ¶
func (m *EventMutation) EndTzCleared() bool
EndTzCleared returns if the "end_tz" field was cleared in this mutation.
func (*EventMutation) Etag ¶
func (m *EventMutation) Etag() (r string, exists bool)
Etag returns the value of the "etag" field in the mutation.
func (*EventMutation) EtagCleared ¶
func (m *EventMutation) EtagCleared() bool
EtagCleared returns if the "etag" field was cleared in this mutation.
func (*EventMutation) ExecContext ¶
func (c *EventMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventMutation) Field ¶
func (m *EventMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*EventMutation) FieldCleared ¶
func (m *EventMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*EventMutation) Fields ¶
func (m *EventMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*EventMutation) ID ¶
func (m *EventMutation) 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 (*EventMutation) IDs ¶
func (m *EventMutation) 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 (*EventMutation) Location ¶
func (m *EventMutation) Location() (r string, exists bool)
Location returns the value of the "location" field in the mutation.
func (*EventMutation) LocationCleared ¶
func (m *EventMutation) LocationCleared() bool
LocationCleared returns if the "location" field was cleared in this mutation.
func (*EventMutation) MeetingURL ¶
func (m *EventMutation) MeetingURL() (r string, exists bool)
MeetingURL returns the value of the "meeting_url" field in the mutation.
func (*EventMutation) MeetingURLCleared ¶
func (m *EventMutation) MeetingURLCleared() bool
MeetingURLCleared returns if the "meeting_url" field was cleared in this mutation.
func (*EventMutation) OldAllDay ¶
func (m *EventMutation) OldAllDay(ctx context.Context) (v bool, err error)
OldAllDay returns the old "all_day" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldAttendees ¶
func (m *EventMutation) OldAttendees(ctx context.Context) (v []map[string]interface{}, err error)
OldAttendees returns the old "attendees" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldCategories ¶
func (m *EventMutation) OldCategories(ctx context.Context) (v []string, err error)
OldCategories returns the old "categories" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldCreated ¶
OldCreated returns the old "created" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldDescription ¶
func (m *EventMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldEnd ¶
OldEnd returns the old "end" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldEndTz ¶
func (m *EventMutation) OldEndTz(ctx context.Context) (v string, err error)
OldEndTz returns the old "end_tz" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldEtag ¶
func (m *EventMutation) OldEtag(ctx context.Context) (v string, err error)
OldEtag returns the old "etag" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*EventMutation) OldLocation ¶
func (m *EventMutation) OldLocation(ctx context.Context) (v string, err error)
OldLocation returns the old "location" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldMeetingURL ¶
func (m *EventMutation) OldMeetingURL(ctx context.Context) (v string, err error)
OldMeetingURL returns the old "meeting_url" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldOrganizer ¶
func (m *EventMutation) OldOrganizer(ctx context.Context) (v map[string]interface{}, err error)
OldOrganizer returns the old "organizer" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldOriginalStart ¶
OldOriginalStart returns the old "original_start" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldRawIcs ¶
func (m *EventMutation) OldRawIcs(ctx context.Context) (v string, err error)
OldRawIcs returns the old "raw_ics" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldRecurrence ¶
func (m *EventMutation) OldRecurrence(ctx context.Context) (v map[string]interface{}, err error)
OldRecurrence returns the old "recurrence" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldRecurringID ¶
func (m *EventMutation) OldRecurringID(ctx context.Context) (v string, err error)
OldRecurringID returns the old "recurring_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldReminders ¶
func (m *EventMutation) OldReminders(ctx context.Context) (v []map[string]interface{}, err error)
OldReminders returns the old "reminders" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldRemoteID ¶
func (m *EventMutation) OldRemoteID(ctx context.Context) (v string, err error)
OldRemoteID returns the old "remote_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldStart ¶
OldStart returns the old "start" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldStartTz ¶
func (m *EventMutation) OldStartTz(ctx context.Context) (v string, err error)
OldStartTz returns the old "start_tz" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldStatus ¶
OldStatus returns the old "status" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldSummary ¶
func (m *EventMutation) OldSummary(ctx context.Context) (v string, err error)
OldSummary returns the old "summary" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldTransparency ¶
func (m *EventMutation) OldTransparency(ctx context.Context) (v string, err error)
OldTransparency returns the old "transparency" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUID ¶
func (m *EventMutation) OldUID(ctx context.Context) (v string, err error)
OldUID returns the old "uid" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldURL ¶
func (m *EventMutation) OldURL(ctx context.Context) (v string, err error)
OldURL returns the old "url" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUpdated ¶
OldUpdated returns the old "updated" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldVisibility ¶
func (m *EventMutation) OldVisibility(ctx context.Context) (v string, err error)
OldVisibility returns the old "visibility" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) Organizer ¶
func (m *EventMutation) Organizer() (r map[string]interface{}, exists bool)
Organizer returns the value of the "organizer" field in the mutation.
func (*EventMutation) OrganizerCleared ¶
func (m *EventMutation) OrganizerCleared() bool
OrganizerCleared returns if the "organizer" field was cleared in this mutation.
func (*EventMutation) OriginalStart ¶
func (m *EventMutation) OriginalStart() (r time.Time, exists bool)
OriginalStart returns the value of the "original_start" field in the mutation.
func (*EventMutation) OriginalStartCleared ¶
func (m *EventMutation) OriginalStartCleared() bool
OriginalStartCleared returns if the "original_start" field was cleared in this mutation.
func (*EventMutation) QueryContext ¶
func (c *EventMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventMutation) RawIcs ¶
func (m *EventMutation) RawIcs() (r string, exists bool)
RawIcs returns the value of the "raw_ics" field in the mutation.
func (*EventMutation) RawIcsCleared ¶
func (m *EventMutation) RawIcsCleared() bool
RawIcsCleared returns if the "raw_ics" field was cleared in this mutation.
func (*EventMutation) Recurrence ¶
func (m *EventMutation) Recurrence() (r map[string]interface{}, exists bool)
Recurrence returns the value of the "recurrence" field in the mutation.
func (*EventMutation) RecurrenceCleared ¶
func (m *EventMutation) RecurrenceCleared() bool
RecurrenceCleared returns if the "recurrence" field was cleared in this mutation.
func (*EventMutation) RecurringID ¶
func (m *EventMutation) RecurringID() (r string, exists bool)
RecurringID returns the value of the "recurring_id" field in the mutation.
func (*EventMutation) RecurringIDCleared ¶
func (m *EventMutation) RecurringIDCleared() bool
RecurringIDCleared returns if the "recurring_id" field was cleared in this mutation.
func (*EventMutation) Reminders ¶
func (m *EventMutation) Reminders() (r []map[string]interface{}, exists bool)
Reminders returns the value of the "reminders" field in the mutation.
func (*EventMutation) RemindersCleared ¶
func (m *EventMutation) RemindersCleared() bool
RemindersCleared returns if the "reminders" field was cleared in this mutation.
func (*EventMutation) RemoteID ¶
func (m *EventMutation) RemoteID() (r string, exists bool)
RemoteID returns the value of the "remote_id" field in the mutation.
func (*EventMutation) RemoteIDCleared ¶
func (m *EventMutation) RemoteIDCleared() bool
RemoteIDCleared returns if the "remote_id" field was cleared in this mutation.
func (*EventMutation) RemovedEdges ¶
func (m *EventMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*EventMutation) RemovedIDs ¶
func (m *EventMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*EventMutation) ResetAllDay ¶
func (m *EventMutation) ResetAllDay()
ResetAllDay resets all changes to the "all_day" field.
func (*EventMutation) ResetAttendees ¶
func (m *EventMutation) ResetAttendees()
ResetAttendees resets all changes to the "attendees" field.
func (*EventMutation) ResetCalendar ¶
func (m *EventMutation) ResetCalendar()
ResetCalendar resets all changes to the "calendar" edge.
func (*EventMutation) ResetCategories ¶
func (m *EventMutation) ResetCategories()
ResetCategories resets all changes to the "categories" field.
func (*EventMutation) ResetCreated ¶
func (m *EventMutation) ResetCreated()
ResetCreated resets all changes to the "created" field.
func (*EventMutation) ResetDescription ¶
func (m *EventMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*EventMutation) ResetEdge ¶
func (m *EventMutation) 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 (*EventMutation) ResetEnd ¶
func (m *EventMutation) ResetEnd()
ResetEnd resets all changes to the "end" field.
func (*EventMutation) ResetEndTz ¶
func (m *EventMutation) ResetEndTz()
ResetEndTz resets all changes to the "end_tz" field.
func (*EventMutation) ResetEtag ¶
func (m *EventMutation) ResetEtag()
ResetEtag resets all changes to the "etag" field.
func (*EventMutation) ResetField ¶
func (m *EventMutation) 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 (*EventMutation) ResetLocation ¶
func (m *EventMutation) ResetLocation()
ResetLocation resets all changes to the "location" field.
func (*EventMutation) ResetMeetingURL ¶
func (m *EventMutation) ResetMeetingURL()
ResetMeetingURL resets all changes to the "meeting_url" field.
func (*EventMutation) ResetOrganizer ¶
func (m *EventMutation) ResetOrganizer()
ResetOrganizer resets all changes to the "organizer" field.
func (*EventMutation) ResetOriginalStart ¶
func (m *EventMutation) ResetOriginalStart()
ResetOriginalStart resets all changes to the "original_start" field.
func (*EventMutation) ResetRawIcs ¶
func (m *EventMutation) ResetRawIcs()
ResetRawIcs resets all changes to the "raw_ics" field.
func (*EventMutation) ResetRecurrence ¶
func (m *EventMutation) ResetRecurrence()
ResetRecurrence resets all changes to the "recurrence" field.
func (*EventMutation) ResetRecurringID ¶
func (m *EventMutation) ResetRecurringID()
ResetRecurringID resets all changes to the "recurring_id" field.
func (*EventMutation) ResetReminders ¶
func (m *EventMutation) ResetReminders()
ResetReminders resets all changes to the "reminders" field.
func (*EventMutation) ResetRemoteID ¶
func (m *EventMutation) ResetRemoteID()
ResetRemoteID resets all changes to the "remote_id" field.
func (*EventMutation) ResetStart ¶
func (m *EventMutation) ResetStart()
ResetStart resets all changes to the "start" field.
func (*EventMutation) ResetStartTz ¶
func (m *EventMutation) ResetStartTz()
ResetStartTz resets all changes to the "start_tz" field.
func (*EventMutation) ResetStatus ¶
func (m *EventMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*EventMutation) ResetSummary ¶
func (m *EventMutation) ResetSummary()
ResetSummary resets all changes to the "summary" field.
func (*EventMutation) ResetTransparency ¶
func (m *EventMutation) ResetTransparency()
ResetTransparency resets all changes to the "transparency" field.
func (*EventMutation) ResetUID ¶
func (m *EventMutation) ResetUID()
ResetUID resets all changes to the "uid" field.
func (*EventMutation) ResetURL ¶
func (m *EventMutation) ResetURL()
ResetURL resets all changes to the "url" field.
func (*EventMutation) ResetUpdated ¶
func (m *EventMutation) ResetUpdated()
ResetUpdated resets all changes to the "updated" field.
func (*EventMutation) ResetVisibility ¶
func (m *EventMutation) ResetVisibility()
ResetVisibility resets all changes to the "visibility" field.
func (*EventMutation) SetAllDay ¶
func (m *EventMutation) SetAllDay(b bool)
SetAllDay sets the "all_day" field.
func (*EventMutation) SetAttendees ¶
func (m *EventMutation) SetAttendees(value []map[string]interface{})
SetAttendees sets the "attendees" field.
func (*EventMutation) SetCalendarID ¶
func (m *EventMutation) SetCalendarID(id string)
SetCalendarID sets the "calendar" edge to the Calendar entity by id.
func (*EventMutation) SetCategories ¶
func (m *EventMutation) SetCategories(s []string)
SetCategories sets the "categories" field.
func (*EventMutation) SetCreated ¶
func (m *EventMutation) SetCreated(t time.Time)
SetCreated sets the "created" field.
func (*EventMutation) SetDescription ¶
func (m *EventMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*EventMutation) SetEnd ¶
func (m *EventMutation) SetEnd(t time.Time)
SetEnd sets the "end" field.
func (*EventMutation) SetEndTz ¶
func (m *EventMutation) SetEndTz(s string)
SetEndTz sets the "end_tz" field.
func (*EventMutation) SetEtag ¶
func (m *EventMutation) SetEtag(s string)
SetEtag sets the "etag" field.
func (*EventMutation) SetField ¶
func (m *EventMutation) 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 (*EventMutation) SetID ¶
func (m *EventMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Event entities.
func (*EventMutation) SetLocation ¶
func (m *EventMutation) SetLocation(s string)
SetLocation sets the "location" field.
func (*EventMutation) SetMeetingURL ¶
func (m *EventMutation) SetMeetingURL(s string)
SetMeetingURL sets the "meeting_url" field.
func (*EventMutation) SetOp ¶
func (m *EventMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*EventMutation) SetOrganizer ¶
func (m *EventMutation) SetOrganizer(value map[string]interface{})
SetOrganizer sets the "organizer" field.
func (*EventMutation) SetOriginalStart ¶
func (m *EventMutation) SetOriginalStart(t time.Time)
SetOriginalStart sets the "original_start" field.
func (*EventMutation) SetRawIcs ¶
func (m *EventMutation) SetRawIcs(s string)
SetRawIcs sets the "raw_ics" field.
func (*EventMutation) SetRecurrence ¶
func (m *EventMutation) SetRecurrence(value map[string]interface{})
SetRecurrence sets the "recurrence" field.
func (*EventMutation) SetRecurringID ¶
func (m *EventMutation) SetRecurringID(s string)
SetRecurringID sets the "recurring_id" field.
func (*EventMutation) SetReminders ¶
func (m *EventMutation) SetReminders(value []map[string]interface{})
SetReminders sets the "reminders" field.
func (*EventMutation) SetRemoteID ¶
func (m *EventMutation) SetRemoteID(s string)
SetRemoteID sets the "remote_id" field.
func (*EventMutation) SetStart ¶
func (m *EventMutation) SetStart(t time.Time)
SetStart sets the "start" field.
func (*EventMutation) SetStartTz ¶
func (m *EventMutation) SetStartTz(s string)
SetStartTz sets the "start_tz" field.
func (*EventMutation) SetStatus ¶
func (m *EventMutation) SetStatus(e event.Status)
SetStatus sets the "status" field.
func (*EventMutation) SetSummary ¶
func (m *EventMutation) SetSummary(s string)
SetSummary sets the "summary" field.
func (*EventMutation) SetTransparency ¶
func (m *EventMutation) SetTransparency(s string)
SetTransparency sets the "transparency" field.
func (*EventMutation) SetUID ¶
func (m *EventMutation) SetUID(s string)
SetUID sets the "uid" field.
func (*EventMutation) SetURL ¶
func (m *EventMutation) SetURL(s string)
SetURL sets the "url" field.
func (*EventMutation) SetUpdated ¶
func (m *EventMutation) SetUpdated(t time.Time)
SetUpdated sets the "updated" field.
func (*EventMutation) SetVisibility ¶
func (m *EventMutation) SetVisibility(s string)
SetVisibility sets the "visibility" field.
func (*EventMutation) Start ¶
func (m *EventMutation) Start() (r time.Time, exists bool)
Start returns the value of the "start" field in the mutation.
func (*EventMutation) StartTz ¶
func (m *EventMutation) StartTz() (r string, exists bool)
StartTz returns the value of the "start_tz" field in the mutation.
func (*EventMutation) StartTzCleared ¶
func (m *EventMutation) StartTzCleared() bool
StartTzCleared returns if the "start_tz" field was cleared in this mutation.
func (*EventMutation) Status ¶
func (m *EventMutation) Status() (r event.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (*EventMutation) Summary ¶
func (m *EventMutation) Summary() (r string, exists bool)
Summary returns the value of the "summary" field in the mutation.
func (*EventMutation) Transparency ¶
func (m *EventMutation) Transparency() (r string, exists bool)
Transparency returns the value of the "transparency" field in the mutation.
func (*EventMutation) TransparencyCleared ¶
func (m *EventMutation) TransparencyCleared() bool
TransparencyCleared returns if the "transparency" field was cleared in this mutation.
func (EventMutation) Tx ¶
func (m EventMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*EventMutation) Type ¶
func (m *EventMutation) Type() string
Type returns the node type of this mutation (Event).
func (*EventMutation) UID ¶
func (m *EventMutation) UID() (r string, exists bool)
UID returns the value of the "uid" field in the mutation.
func (*EventMutation) URL ¶
func (m *EventMutation) URL() (r string, exists bool)
URL returns the value of the "url" field in the mutation.
func (*EventMutation) URLCleared ¶
func (m *EventMutation) URLCleared() bool
URLCleared returns if the "url" field was cleared in this mutation.
func (*EventMutation) Updated ¶
func (m *EventMutation) Updated() (r time.Time, exists bool)
Updated returns the value of the "updated" field in the mutation.
func (*EventMutation) Visibility ¶
func (m *EventMutation) Visibility() (r string, exists bool)
Visibility returns the value of the "visibility" field in the mutation.
func (*EventMutation) VisibilityCleared ¶
func (m *EventMutation) VisibilityCleared() bool
VisibilityCleared returns if the "visibility" field was cleared in this mutation.
func (*EventMutation) Where ¶
func (m *EventMutation) Where(ps ...predicate.Event)
Where appends a list predicates to the EventMutation builder.
func (*EventMutation) WhereP ¶
func (m *EventMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the EventMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type EventQuery ¶
type EventQuery struct {
// contains filtered or unexported fields
}
EventQuery is the builder for querying Event entities.
func (*EventQuery) Aggregate ¶
func (_q *EventQuery) Aggregate(fns ...AggregateFunc) *EventSelect
Aggregate returns a EventSelect configured with the given aggregations.
func (*EventQuery) All ¶
func (_q *EventQuery) All(ctx context.Context) ([]*Event, error)
All executes the query and returns a list of Events.
func (*EventQuery) AllX ¶
func (_q *EventQuery) AllX(ctx context.Context) []*Event
AllX is like All, but panics if an error occurs.
func (*EventQuery) Clone ¶
func (_q *EventQuery) Clone() *EventQuery
Clone returns a duplicate of the EventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*EventQuery) Count ¶
func (_q *EventQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*EventQuery) CountX ¶
func (_q *EventQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*EventQuery) ExecContext ¶
func (c *EventQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventQuery) Exist ¶
func (_q *EventQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*EventQuery) ExistX ¶
func (_q *EventQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*EventQuery) First ¶
func (_q *EventQuery) First(ctx context.Context) (*Event, error)
First returns the first Event entity from the query. Returns a *NotFoundError when no Event was found.
func (*EventQuery) FirstID ¶
func (_q *EventQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Event ID from the query. Returns a *NotFoundError when no Event ID was found.
func (*EventQuery) FirstIDX ¶
func (_q *EventQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*EventQuery) FirstX ¶
func (_q *EventQuery) FirstX(ctx context.Context) *Event
FirstX is like First, but panics if an error occurs.
func (*EventQuery) GroupBy ¶
func (_q *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy
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 {
UID string `json:"uid,omitempty"`
Count int `json:"count,omitempty"`
}
client.Event.Query().
GroupBy(event.FieldUID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*EventQuery) IDs ¶
func (_q *EventQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Event IDs.
func (*EventQuery) IDsX ¶
func (_q *EventQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*EventQuery) Limit ¶
func (_q *EventQuery) Limit(limit int) *EventQuery
Limit the number of records to be returned by this query.
func (*EventQuery) Modify ¶
func (_q *EventQuery) Modify(modifiers ...func(s *sql.Selector)) *EventSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*EventQuery) Offset ¶
func (_q *EventQuery) Offset(offset int) *EventQuery
Offset to start from.
func (*EventQuery) Only ¶
func (_q *EventQuery) Only(ctx context.Context) (*Event, error)
Only returns a single Event entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Event entity is found. Returns a *NotFoundError when no Event entities are found.
func (*EventQuery) OnlyID ¶
func (_q *EventQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Event ID in the query. Returns a *NotSingularError when more than one Event ID is found. Returns a *NotFoundError when no entities are found.
func (*EventQuery) OnlyIDX ¶
func (_q *EventQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*EventQuery) OnlyX ¶
func (_q *EventQuery) OnlyX(ctx context.Context) *Event
OnlyX is like Only, but panics if an error occurs.
func (*EventQuery) Order ¶
func (_q *EventQuery) Order(o ...event.OrderOption) *EventQuery
Order specifies how the records should be ordered.
func (*EventQuery) QueryCalendar ¶
func (_q *EventQuery) QueryCalendar() *CalendarQuery
QueryCalendar chains the current query on the "calendar" edge.
func (*EventQuery) QueryContext ¶
func (c *EventQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventQuery) Select ¶
func (_q *EventQuery) Select(fields ...string) *EventSelect
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 {
UID string `json:"uid,omitempty"`
}
client.Event.Query().
Select(event.FieldUID).
Scan(ctx, &v)
func (*EventQuery) Unique ¶
func (_q *EventQuery) Unique(unique bool) *EventQuery
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 (*EventQuery) Where ¶
func (_q *EventQuery) Where(ps ...predicate.Event) *EventQuery
Where adds a new predicate for the EventQuery builder.
func (*EventQuery) WithCalendar ¶
func (_q *EventQuery) WithCalendar(opts ...func(*CalendarQuery)) *EventQuery
WithCalendar tells the query-builder to eager-load the nodes that are connected to the "calendar" edge. The optional arguments are used to configure the query builder of the edge.
type EventSelect ¶
type EventSelect struct {
*EventQuery
// contains filtered or unexported fields
}
EventSelect is the builder for selecting fields of Event entities.
func (*EventSelect) Aggregate ¶
func (_s *EventSelect) Aggregate(fns ...AggregateFunc) *EventSelect
Aggregate adds the given aggregation functions to the selector query.
func (*EventSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EventSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (EventSelect) ExecContext ¶
func (c EventSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EventSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EventSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EventSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EventSelect) Modify ¶
func (_s *EventSelect) Modify(modifiers ...func(s *sql.Selector)) *EventSelect
Modify adds a query modifier for attaching custom logic to queries.
func (EventSelect) QueryContext ¶
func (c EventSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventSelect) Scan ¶
func (_s *EventSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EventSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EventUpdate ¶
type EventUpdate struct {
// contains filtered or unexported fields
}
EventUpdate is the builder for updating Event entities.
func (*EventUpdate) AppendAttendees ¶
func (_u *EventUpdate) AppendAttendees(v []map[string]interface{}) *EventUpdate
AppendAttendees appends value to the "attendees" field.
func (*EventUpdate) AppendCategories ¶
func (_u *EventUpdate) AppendCategories(v []string) *EventUpdate
AppendCategories appends value to the "categories" field.
func (*EventUpdate) AppendReminders ¶
func (_u *EventUpdate) AppendReminders(v []map[string]interface{}) *EventUpdate
AppendReminders appends value to the "reminders" field.
func (*EventUpdate) ClearAttendees ¶
func (_u *EventUpdate) ClearAttendees() *EventUpdate
ClearAttendees clears the value of the "attendees" field.
func (*EventUpdate) ClearCalendar ¶
func (_u *EventUpdate) ClearCalendar() *EventUpdate
ClearCalendar clears the "calendar" edge to the Calendar entity.
func (*EventUpdate) ClearCategories ¶
func (_u *EventUpdate) ClearCategories() *EventUpdate
ClearCategories clears the value of the "categories" field.
func (*EventUpdate) ClearDescription ¶
func (_u *EventUpdate) ClearDescription() *EventUpdate
ClearDescription clears the value of the "description" field.
func (*EventUpdate) ClearEndTz ¶
func (_u *EventUpdate) ClearEndTz() *EventUpdate
ClearEndTz clears the value of the "end_tz" field.
func (*EventUpdate) ClearEtag ¶
func (_u *EventUpdate) ClearEtag() *EventUpdate
ClearEtag clears the value of the "etag" field.
func (*EventUpdate) ClearLocation ¶
func (_u *EventUpdate) ClearLocation() *EventUpdate
ClearLocation clears the value of the "location" field.
func (*EventUpdate) ClearMeetingURL ¶
func (_u *EventUpdate) ClearMeetingURL() *EventUpdate
ClearMeetingURL clears the value of the "meeting_url" field.
func (*EventUpdate) ClearOrganizer ¶
func (_u *EventUpdate) ClearOrganizer() *EventUpdate
ClearOrganizer clears the value of the "organizer" field.
func (*EventUpdate) ClearOriginalStart ¶
func (_u *EventUpdate) ClearOriginalStart() *EventUpdate
ClearOriginalStart clears the value of the "original_start" field.
func (*EventUpdate) ClearRawIcs ¶
func (_u *EventUpdate) ClearRawIcs() *EventUpdate
ClearRawIcs clears the value of the "raw_ics" field.
func (*EventUpdate) ClearRecurrence ¶
func (_u *EventUpdate) ClearRecurrence() *EventUpdate
ClearRecurrence clears the value of the "recurrence" field.
func (*EventUpdate) ClearRecurringID ¶
func (_u *EventUpdate) ClearRecurringID() *EventUpdate
ClearRecurringID clears the value of the "recurring_id" field.
func (*EventUpdate) ClearReminders ¶
func (_u *EventUpdate) ClearReminders() *EventUpdate
ClearReminders clears the value of the "reminders" field.
func (*EventUpdate) ClearRemoteID ¶
func (_u *EventUpdate) ClearRemoteID() *EventUpdate
ClearRemoteID clears the value of the "remote_id" field.
func (*EventUpdate) ClearStartTz ¶
func (_u *EventUpdate) ClearStartTz() *EventUpdate
ClearStartTz clears the value of the "start_tz" field.
func (*EventUpdate) ClearTransparency ¶
func (_u *EventUpdate) ClearTransparency() *EventUpdate
ClearTransparency clears the value of the "transparency" field.
func (*EventUpdate) ClearURL ¶
func (_u *EventUpdate) ClearURL() *EventUpdate
ClearURL clears the value of the "url" field.
func (*EventUpdate) ClearVisibility ¶
func (_u *EventUpdate) ClearVisibility() *EventUpdate
ClearVisibility clears the value of the "visibility" field.
func (*EventUpdate) Exec ¶
func (_u *EventUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*EventUpdate) ExecContext ¶
func (c *EventUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventUpdate) ExecX ¶
func (_u *EventUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpdate) Modify ¶
func (_u *EventUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *EventUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*EventUpdate) Mutation ¶
func (_u *EventUpdate) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventUpdate) QueryContext ¶
func (c *EventUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventUpdate) Save ¶
func (_u *EventUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*EventUpdate) SaveX ¶
func (_u *EventUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*EventUpdate) SetAllDay ¶
func (_u *EventUpdate) SetAllDay(v bool) *EventUpdate
SetAllDay sets the "all_day" field.
func (*EventUpdate) SetAttendees ¶
func (_u *EventUpdate) SetAttendees(v []map[string]interface{}) *EventUpdate
SetAttendees sets the "attendees" field.
func (*EventUpdate) SetCalendar ¶
func (_u *EventUpdate) SetCalendar(v *Calendar) *EventUpdate
SetCalendar sets the "calendar" edge to the Calendar entity.
func (*EventUpdate) SetCalendarID ¶
func (_u *EventUpdate) SetCalendarID(id string) *EventUpdate
SetCalendarID sets the "calendar" edge to the Calendar entity by ID.
func (*EventUpdate) SetCategories ¶
func (_u *EventUpdate) SetCategories(v []string) *EventUpdate
SetCategories sets the "categories" field.
func (*EventUpdate) SetCreated ¶
func (_u *EventUpdate) SetCreated(v time.Time) *EventUpdate
SetCreated sets the "created" field.
func (*EventUpdate) SetDescription ¶
func (_u *EventUpdate) SetDescription(v string) *EventUpdate
SetDescription sets the "description" field.
func (*EventUpdate) SetEnd ¶
func (_u *EventUpdate) SetEnd(v time.Time) *EventUpdate
SetEnd sets the "end" field.
func (*EventUpdate) SetEndTz ¶
func (_u *EventUpdate) SetEndTz(v string) *EventUpdate
SetEndTz sets the "end_tz" field.
func (*EventUpdate) SetEtag ¶
func (_u *EventUpdate) SetEtag(v string) *EventUpdate
SetEtag sets the "etag" field.
func (*EventUpdate) SetLocation ¶
func (_u *EventUpdate) SetLocation(v string) *EventUpdate
SetLocation sets the "location" field.
func (*EventUpdate) SetMeetingURL ¶
func (_u *EventUpdate) SetMeetingURL(v string) *EventUpdate
SetMeetingURL sets the "meeting_url" field.
func (*EventUpdate) SetNillableAllDay ¶
func (_u *EventUpdate) SetNillableAllDay(v *bool) *EventUpdate
SetNillableAllDay sets the "all_day" field if the given value is not nil.
func (*EventUpdate) SetNillableCreated ¶
func (_u *EventUpdate) SetNillableCreated(v *time.Time) *EventUpdate
SetNillableCreated sets the "created" field if the given value is not nil.
func (*EventUpdate) SetNillableDescription ¶
func (_u *EventUpdate) SetNillableDescription(v *string) *EventUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*EventUpdate) SetNillableEnd ¶
func (_u *EventUpdate) SetNillableEnd(v *time.Time) *EventUpdate
SetNillableEnd sets the "end" field if the given value is not nil.
func (*EventUpdate) SetNillableEndTz ¶
func (_u *EventUpdate) SetNillableEndTz(v *string) *EventUpdate
SetNillableEndTz sets the "end_tz" field if the given value is not nil.
func (*EventUpdate) SetNillableEtag ¶
func (_u *EventUpdate) SetNillableEtag(v *string) *EventUpdate
SetNillableEtag sets the "etag" field if the given value is not nil.
func (*EventUpdate) SetNillableLocation ¶
func (_u *EventUpdate) SetNillableLocation(v *string) *EventUpdate
SetNillableLocation sets the "location" field if the given value is not nil.
func (*EventUpdate) SetNillableMeetingURL ¶
func (_u *EventUpdate) SetNillableMeetingURL(v *string) *EventUpdate
SetNillableMeetingURL sets the "meeting_url" field if the given value is not nil.
func (*EventUpdate) SetNillableOriginalStart ¶
func (_u *EventUpdate) SetNillableOriginalStart(v *time.Time) *EventUpdate
SetNillableOriginalStart sets the "original_start" field if the given value is not nil.
func (*EventUpdate) SetNillableRawIcs ¶
func (_u *EventUpdate) SetNillableRawIcs(v *string) *EventUpdate
SetNillableRawIcs sets the "raw_ics" field if the given value is not nil.
func (*EventUpdate) SetNillableRecurringID ¶
func (_u *EventUpdate) SetNillableRecurringID(v *string) *EventUpdate
SetNillableRecurringID sets the "recurring_id" field if the given value is not nil.
func (*EventUpdate) SetNillableRemoteID ¶
func (_u *EventUpdate) SetNillableRemoteID(v *string) *EventUpdate
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*EventUpdate) SetNillableStart ¶
func (_u *EventUpdate) SetNillableStart(v *time.Time) *EventUpdate
SetNillableStart sets the "start" field if the given value is not nil.
func (*EventUpdate) SetNillableStartTz ¶
func (_u *EventUpdate) SetNillableStartTz(v *string) *EventUpdate
SetNillableStartTz sets the "start_tz" field if the given value is not nil.
func (*EventUpdate) SetNillableStatus ¶
func (_u *EventUpdate) SetNillableStatus(v *event.Status) *EventUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*EventUpdate) SetNillableSummary ¶
func (_u *EventUpdate) SetNillableSummary(v *string) *EventUpdate
SetNillableSummary sets the "summary" field if the given value is not nil.
func (*EventUpdate) SetNillableTransparency ¶
func (_u *EventUpdate) SetNillableTransparency(v *string) *EventUpdate
SetNillableTransparency sets the "transparency" field if the given value is not nil.
func (*EventUpdate) SetNillableUID ¶
func (_u *EventUpdate) SetNillableUID(v *string) *EventUpdate
SetNillableUID sets the "uid" field if the given value is not nil.
func (*EventUpdate) SetNillableURL ¶
func (_u *EventUpdate) SetNillableURL(v *string) *EventUpdate
SetNillableURL sets the "url" field if the given value is not nil.
func (*EventUpdate) SetNillableVisibility ¶
func (_u *EventUpdate) SetNillableVisibility(v *string) *EventUpdate
SetNillableVisibility sets the "visibility" field if the given value is not nil.
func (*EventUpdate) SetOrganizer ¶
func (_u *EventUpdate) SetOrganizer(v map[string]interface{}) *EventUpdate
SetOrganizer sets the "organizer" field.
func (*EventUpdate) SetOriginalStart ¶
func (_u *EventUpdate) SetOriginalStart(v time.Time) *EventUpdate
SetOriginalStart sets the "original_start" field.
func (*EventUpdate) SetRawIcs ¶
func (_u *EventUpdate) SetRawIcs(v string) *EventUpdate
SetRawIcs sets the "raw_ics" field.
func (*EventUpdate) SetRecurrence ¶
func (_u *EventUpdate) SetRecurrence(v map[string]interface{}) *EventUpdate
SetRecurrence sets the "recurrence" field.
func (*EventUpdate) SetRecurringID ¶
func (_u *EventUpdate) SetRecurringID(v string) *EventUpdate
SetRecurringID sets the "recurring_id" field.
func (*EventUpdate) SetReminders ¶
func (_u *EventUpdate) SetReminders(v []map[string]interface{}) *EventUpdate
SetReminders sets the "reminders" field.
func (*EventUpdate) SetRemoteID ¶
func (_u *EventUpdate) SetRemoteID(v string) *EventUpdate
SetRemoteID sets the "remote_id" field.
func (*EventUpdate) SetStart ¶
func (_u *EventUpdate) SetStart(v time.Time) *EventUpdate
SetStart sets the "start" field.
func (*EventUpdate) SetStartTz ¶
func (_u *EventUpdate) SetStartTz(v string) *EventUpdate
SetStartTz sets the "start_tz" field.
func (*EventUpdate) SetStatus ¶
func (_u *EventUpdate) SetStatus(v event.Status) *EventUpdate
SetStatus sets the "status" field.
func (*EventUpdate) SetSummary ¶
func (_u *EventUpdate) SetSummary(v string) *EventUpdate
SetSummary sets the "summary" field.
func (*EventUpdate) SetTransparency ¶
func (_u *EventUpdate) SetTransparency(v string) *EventUpdate
SetTransparency sets the "transparency" field.
func (*EventUpdate) SetUID ¶
func (_u *EventUpdate) SetUID(v string) *EventUpdate
SetUID sets the "uid" field.
func (*EventUpdate) SetURL ¶
func (_u *EventUpdate) SetURL(v string) *EventUpdate
SetURL sets the "url" field.
func (*EventUpdate) SetUpdated ¶
func (_u *EventUpdate) SetUpdated(v time.Time) *EventUpdate
SetUpdated sets the "updated" field.
func (*EventUpdate) SetVisibility ¶
func (_u *EventUpdate) SetVisibility(v string) *EventUpdate
SetVisibility sets the "visibility" field.
func (*EventUpdate) Where ¶
func (_u *EventUpdate) Where(ps ...predicate.Event) *EventUpdate
Where appends a list predicates to the EventUpdate builder.
type EventUpdateOne ¶
type EventUpdateOne struct {
// contains filtered or unexported fields
}
EventUpdateOne is the builder for updating a single Event entity.
func (*EventUpdateOne) AppendAttendees ¶
func (_u *EventUpdateOne) AppendAttendees(v []map[string]interface{}) *EventUpdateOne
AppendAttendees appends value to the "attendees" field.
func (*EventUpdateOne) AppendCategories ¶
func (_u *EventUpdateOne) AppendCategories(v []string) *EventUpdateOne
AppendCategories appends value to the "categories" field.
func (*EventUpdateOne) AppendReminders ¶
func (_u *EventUpdateOne) AppendReminders(v []map[string]interface{}) *EventUpdateOne
AppendReminders appends value to the "reminders" field.
func (*EventUpdateOne) ClearAttendees ¶
func (_u *EventUpdateOne) ClearAttendees() *EventUpdateOne
ClearAttendees clears the value of the "attendees" field.
func (*EventUpdateOne) ClearCalendar ¶
func (_u *EventUpdateOne) ClearCalendar() *EventUpdateOne
ClearCalendar clears the "calendar" edge to the Calendar entity.
func (*EventUpdateOne) ClearCategories ¶
func (_u *EventUpdateOne) ClearCategories() *EventUpdateOne
ClearCategories clears the value of the "categories" field.
func (*EventUpdateOne) ClearDescription ¶
func (_u *EventUpdateOne) ClearDescription() *EventUpdateOne
ClearDescription clears the value of the "description" field.
func (*EventUpdateOne) ClearEndTz ¶
func (_u *EventUpdateOne) ClearEndTz() *EventUpdateOne
ClearEndTz clears the value of the "end_tz" field.
func (*EventUpdateOne) ClearEtag ¶
func (_u *EventUpdateOne) ClearEtag() *EventUpdateOne
ClearEtag clears the value of the "etag" field.
func (*EventUpdateOne) ClearLocation ¶
func (_u *EventUpdateOne) ClearLocation() *EventUpdateOne
ClearLocation clears the value of the "location" field.
func (*EventUpdateOne) ClearMeetingURL ¶
func (_u *EventUpdateOne) ClearMeetingURL() *EventUpdateOne
ClearMeetingURL clears the value of the "meeting_url" field.
func (*EventUpdateOne) ClearOrganizer ¶
func (_u *EventUpdateOne) ClearOrganizer() *EventUpdateOne
ClearOrganizer clears the value of the "organizer" field.
func (*EventUpdateOne) ClearOriginalStart ¶
func (_u *EventUpdateOne) ClearOriginalStart() *EventUpdateOne
ClearOriginalStart clears the value of the "original_start" field.
func (*EventUpdateOne) ClearRawIcs ¶
func (_u *EventUpdateOne) ClearRawIcs() *EventUpdateOne
ClearRawIcs clears the value of the "raw_ics" field.
func (*EventUpdateOne) ClearRecurrence ¶
func (_u *EventUpdateOne) ClearRecurrence() *EventUpdateOne
ClearRecurrence clears the value of the "recurrence" field.
func (*EventUpdateOne) ClearRecurringID ¶
func (_u *EventUpdateOne) ClearRecurringID() *EventUpdateOne
ClearRecurringID clears the value of the "recurring_id" field.
func (*EventUpdateOne) ClearReminders ¶
func (_u *EventUpdateOne) ClearReminders() *EventUpdateOne
ClearReminders clears the value of the "reminders" field.
func (*EventUpdateOne) ClearRemoteID ¶
func (_u *EventUpdateOne) ClearRemoteID() *EventUpdateOne
ClearRemoteID clears the value of the "remote_id" field.
func (*EventUpdateOne) ClearStartTz ¶
func (_u *EventUpdateOne) ClearStartTz() *EventUpdateOne
ClearStartTz clears the value of the "start_tz" field.
func (*EventUpdateOne) ClearTransparency ¶
func (_u *EventUpdateOne) ClearTransparency() *EventUpdateOne
ClearTransparency clears the value of the "transparency" field.
func (*EventUpdateOne) ClearURL ¶
func (_u *EventUpdateOne) ClearURL() *EventUpdateOne
ClearURL clears the value of the "url" field.
func (*EventUpdateOne) ClearVisibility ¶
func (_u *EventUpdateOne) ClearVisibility() *EventUpdateOne
ClearVisibility clears the value of the "visibility" field.
func (*EventUpdateOne) Exec ¶
func (_u *EventUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*EventUpdateOne) ExecContext ¶
func (c *EventUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EventUpdateOne) ExecX ¶
func (_u *EventUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpdateOne) Modify ¶
func (_u *EventUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *EventUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*EventUpdateOne) Mutation ¶
func (_u *EventUpdateOne) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventUpdateOne) QueryContext ¶
func (c *EventUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EventUpdateOne) Save ¶
func (_u *EventUpdateOne) Save(ctx context.Context) (*Event, error)
Save executes the query and returns the updated Event entity.
func (*EventUpdateOne) SaveX ¶
func (_u *EventUpdateOne) SaveX(ctx context.Context) *Event
SaveX is like Save, but panics if an error occurs.
func (*EventUpdateOne) Select ¶
func (_u *EventUpdateOne) Select(field string, fields ...string) *EventUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*EventUpdateOne) SetAllDay ¶
func (_u *EventUpdateOne) SetAllDay(v bool) *EventUpdateOne
SetAllDay sets the "all_day" field.
func (*EventUpdateOne) SetAttendees ¶
func (_u *EventUpdateOne) SetAttendees(v []map[string]interface{}) *EventUpdateOne
SetAttendees sets the "attendees" field.
func (*EventUpdateOne) SetCalendar ¶
func (_u *EventUpdateOne) SetCalendar(v *Calendar) *EventUpdateOne
SetCalendar sets the "calendar" edge to the Calendar entity.
func (*EventUpdateOne) SetCalendarID ¶
func (_u *EventUpdateOne) SetCalendarID(id string) *EventUpdateOne
SetCalendarID sets the "calendar" edge to the Calendar entity by ID.
func (*EventUpdateOne) SetCategories ¶
func (_u *EventUpdateOne) SetCategories(v []string) *EventUpdateOne
SetCategories sets the "categories" field.
func (*EventUpdateOne) SetCreated ¶
func (_u *EventUpdateOne) SetCreated(v time.Time) *EventUpdateOne
SetCreated sets the "created" field.
func (*EventUpdateOne) SetDescription ¶
func (_u *EventUpdateOne) SetDescription(v string) *EventUpdateOne
SetDescription sets the "description" field.
func (*EventUpdateOne) SetEnd ¶
func (_u *EventUpdateOne) SetEnd(v time.Time) *EventUpdateOne
SetEnd sets the "end" field.
func (*EventUpdateOne) SetEndTz ¶
func (_u *EventUpdateOne) SetEndTz(v string) *EventUpdateOne
SetEndTz sets the "end_tz" field.
func (*EventUpdateOne) SetEtag ¶
func (_u *EventUpdateOne) SetEtag(v string) *EventUpdateOne
SetEtag sets the "etag" field.
func (*EventUpdateOne) SetLocation ¶
func (_u *EventUpdateOne) SetLocation(v string) *EventUpdateOne
SetLocation sets the "location" field.
func (*EventUpdateOne) SetMeetingURL ¶
func (_u *EventUpdateOne) SetMeetingURL(v string) *EventUpdateOne
SetMeetingURL sets the "meeting_url" field.
func (*EventUpdateOne) SetNillableAllDay ¶
func (_u *EventUpdateOne) SetNillableAllDay(v *bool) *EventUpdateOne
SetNillableAllDay sets the "all_day" field if the given value is not nil.
func (*EventUpdateOne) SetNillableCreated ¶
func (_u *EventUpdateOne) SetNillableCreated(v *time.Time) *EventUpdateOne
SetNillableCreated sets the "created" field if the given value is not nil.
func (*EventUpdateOne) SetNillableDescription ¶
func (_u *EventUpdateOne) SetNillableDescription(v *string) *EventUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*EventUpdateOne) SetNillableEnd ¶
func (_u *EventUpdateOne) SetNillableEnd(v *time.Time) *EventUpdateOne
SetNillableEnd sets the "end" field if the given value is not nil.
func (*EventUpdateOne) SetNillableEndTz ¶
func (_u *EventUpdateOne) SetNillableEndTz(v *string) *EventUpdateOne
SetNillableEndTz sets the "end_tz" field if the given value is not nil.
func (*EventUpdateOne) SetNillableEtag ¶
func (_u *EventUpdateOne) SetNillableEtag(v *string) *EventUpdateOne
SetNillableEtag sets the "etag" field if the given value is not nil.
func (*EventUpdateOne) SetNillableLocation ¶
func (_u *EventUpdateOne) SetNillableLocation(v *string) *EventUpdateOne
SetNillableLocation sets the "location" field if the given value is not nil.
func (*EventUpdateOne) SetNillableMeetingURL ¶
func (_u *EventUpdateOne) SetNillableMeetingURL(v *string) *EventUpdateOne
SetNillableMeetingURL sets the "meeting_url" field if the given value is not nil.
func (*EventUpdateOne) SetNillableOriginalStart ¶
func (_u *EventUpdateOne) SetNillableOriginalStart(v *time.Time) *EventUpdateOne
SetNillableOriginalStart sets the "original_start" field if the given value is not nil.
func (*EventUpdateOne) SetNillableRawIcs ¶
func (_u *EventUpdateOne) SetNillableRawIcs(v *string) *EventUpdateOne
SetNillableRawIcs sets the "raw_ics" field if the given value is not nil.
func (*EventUpdateOne) SetNillableRecurringID ¶
func (_u *EventUpdateOne) SetNillableRecurringID(v *string) *EventUpdateOne
SetNillableRecurringID sets the "recurring_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableRemoteID ¶
func (_u *EventUpdateOne) SetNillableRemoteID(v *string) *EventUpdateOne
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableStart ¶
func (_u *EventUpdateOne) SetNillableStart(v *time.Time) *EventUpdateOne
SetNillableStart sets the "start" field if the given value is not nil.
func (*EventUpdateOne) SetNillableStartTz ¶
func (_u *EventUpdateOne) SetNillableStartTz(v *string) *EventUpdateOne
SetNillableStartTz sets the "start_tz" field if the given value is not nil.
func (*EventUpdateOne) SetNillableStatus ¶
func (_u *EventUpdateOne) SetNillableStatus(v *event.Status) *EventUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*EventUpdateOne) SetNillableSummary ¶
func (_u *EventUpdateOne) SetNillableSummary(v *string) *EventUpdateOne
SetNillableSummary sets the "summary" field if the given value is not nil.
func (*EventUpdateOne) SetNillableTransparency ¶
func (_u *EventUpdateOne) SetNillableTransparency(v *string) *EventUpdateOne
SetNillableTransparency sets the "transparency" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUID ¶
func (_u *EventUpdateOne) SetNillableUID(v *string) *EventUpdateOne
SetNillableUID sets the "uid" field if the given value is not nil.
func (*EventUpdateOne) SetNillableURL ¶
func (_u *EventUpdateOne) SetNillableURL(v *string) *EventUpdateOne
SetNillableURL sets the "url" field if the given value is not nil.
func (*EventUpdateOne) SetNillableVisibility ¶
func (_u *EventUpdateOne) SetNillableVisibility(v *string) *EventUpdateOne
SetNillableVisibility sets the "visibility" field if the given value is not nil.
func (*EventUpdateOne) SetOrganizer ¶
func (_u *EventUpdateOne) SetOrganizer(v map[string]interface{}) *EventUpdateOne
SetOrganizer sets the "organizer" field.
func (*EventUpdateOne) SetOriginalStart ¶
func (_u *EventUpdateOne) SetOriginalStart(v time.Time) *EventUpdateOne
SetOriginalStart sets the "original_start" field.
func (*EventUpdateOne) SetRawIcs ¶
func (_u *EventUpdateOne) SetRawIcs(v string) *EventUpdateOne
SetRawIcs sets the "raw_ics" field.
func (*EventUpdateOne) SetRecurrence ¶
func (_u *EventUpdateOne) SetRecurrence(v map[string]interface{}) *EventUpdateOne
SetRecurrence sets the "recurrence" field.
func (*EventUpdateOne) SetRecurringID ¶
func (_u *EventUpdateOne) SetRecurringID(v string) *EventUpdateOne
SetRecurringID sets the "recurring_id" field.
func (*EventUpdateOne) SetReminders ¶
func (_u *EventUpdateOne) SetReminders(v []map[string]interface{}) *EventUpdateOne
SetReminders sets the "reminders" field.
func (*EventUpdateOne) SetRemoteID ¶
func (_u *EventUpdateOne) SetRemoteID(v string) *EventUpdateOne
SetRemoteID sets the "remote_id" field.
func (*EventUpdateOne) SetStart ¶
func (_u *EventUpdateOne) SetStart(v time.Time) *EventUpdateOne
SetStart sets the "start" field.
func (*EventUpdateOne) SetStartTz ¶
func (_u *EventUpdateOne) SetStartTz(v string) *EventUpdateOne
SetStartTz sets the "start_tz" field.
func (*EventUpdateOne) SetStatus ¶
func (_u *EventUpdateOne) SetStatus(v event.Status) *EventUpdateOne
SetStatus sets the "status" field.
func (*EventUpdateOne) SetSummary ¶
func (_u *EventUpdateOne) SetSummary(v string) *EventUpdateOne
SetSummary sets the "summary" field.
func (*EventUpdateOne) SetTransparency ¶
func (_u *EventUpdateOne) SetTransparency(v string) *EventUpdateOne
SetTransparency sets the "transparency" field.
func (*EventUpdateOne) SetUID ¶
func (_u *EventUpdateOne) SetUID(v string) *EventUpdateOne
SetUID sets the "uid" field.
func (*EventUpdateOne) SetURL ¶
func (_u *EventUpdateOne) SetURL(v string) *EventUpdateOne
SetURL sets the "url" field.
func (*EventUpdateOne) SetUpdated ¶
func (_u *EventUpdateOne) SetUpdated(v time.Time) *EventUpdateOne
SetUpdated sets the "updated" field.
func (*EventUpdateOne) SetVisibility ¶
func (_u *EventUpdateOne) SetVisibility(v string) *EventUpdateOne
SetVisibility sets the "visibility" field.
func (*EventUpdateOne) Where ¶
func (_u *EventUpdateOne) Where(ps ...predicate.Event) *EventUpdateOne
Where appends a list predicates to the EventUpdate builder.
type EventUpsert ¶
EventUpsert is the "OnConflict" setter.
func (*EventUpsert) ClearAttendees ¶
func (u *EventUpsert) ClearAttendees() *EventUpsert
ClearAttendees clears the value of the "attendees" field.
func (*EventUpsert) ClearCategories ¶
func (u *EventUpsert) ClearCategories() *EventUpsert
ClearCategories clears the value of the "categories" field.
func (*EventUpsert) ClearDescription ¶
func (u *EventUpsert) ClearDescription() *EventUpsert
ClearDescription clears the value of the "description" field.
func (*EventUpsert) ClearEndTz ¶
func (u *EventUpsert) ClearEndTz() *EventUpsert
ClearEndTz clears the value of the "end_tz" field.
func (*EventUpsert) ClearEtag ¶
func (u *EventUpsert) ClearEtag() *EventUpsert
ClearEtag clears the value of the "etag" field.
func (*EventUpsert) ClearLocation ¶
func (u *EventUpsert) ClearLocation() *EventUpsert
ClearLocation clears the value of the "location" field.
func (*EventUpsert) ClearMeetingURL ¶
func (u *EventUpsert) ClearMeetingURL() *EventUpsert
ClearMeetingURL clears the value of the "meeting_url" field.
func (*EventUpsert) ClearOrganizer ¶
func (u *EventUpsert) ClearOrganizer() *EventUpsert
ClearOrganizer clears the value of the "organizer" field.
func (*EventUpsert) ClearOriginalStart ¶
func (u *EventUpsert) ClearOriginalStart() *EventUpsert
ClearOriginalStart clears the value of the "original_start" field.
func (*EventUpsert) ClearRawIcs ¶
func (u *EventUpsert) ClearRawIcs() *EventUpsert
ClearRawIcs clears the value of the "raw_ics" field.
func (*EventUpsert) ClearRecurrence ¶
func (u *EventUpsert) ClearRecurrence() *EventUpsert
ClearRecurrence clears the value of the "recurrence" field.
func (*EventUpsert) ClearRecurringID ¶
func (u *EventUpsert) ClearRecurringID() *EventUpsert
ClearRecurringID clears the value of the "recurring_id" field.
func (*EventUpsert) ClearReminders ¶
func (u *EventUpsert) ClearReminders() *EventUpsert
ClearReminders clears the value of the "reminders" field.
func (*EventUpsert) ClearRemoteID ¶
func (u *EventUpsert) ClearRemoteID() *EventUpsert
ClearRemoteID clears the value of the "remote_id" field.
func (*EventUpsert) ClearStartTz ¶
func (u *EventUpsert) ClearStartTz() *EventUpsert
ClearStartTz clears the value of the "start_tz" field.
func (*EventUpsert) ClearTransparency ¶
func (u *EventUpsert) ClearTransparency() *EventUpsert
ClearTransparency clears the value of the "transparency" field.
func (*EventUpsert) ClearURL ¶
func (u *EventUpsert) ClearURL() *EventUpsert
ClearURL clears the value of the "url" field.
func (*EventUpsert) ClearVisibility ¶
func (u *EventUpsert) ClearVisibility() *EventUpsert
ClearVisibility clears the value of the "visibility" field.
func (*EventUpsert) SetAllDay ¶
func (u *EventUpsert) SetAllDay(v bool) *EventUpsert
SetAllDay sets the "all_day" field.
func (*EventUpsert) SetAttendees ¶
func (u *EventUpsert) SetAttendees(v []map[string]interface{}) *EventUpsert
SetAttendees sets the "attendees" field.
func (*EventUpsert) SetCategories ¶
func (u *EventUpsert) SetCategories(v []string) *EventUpsert
SetCategories sets the "categories" field.
func (*EventUpsert) SetCreated ¶
func (u *EventUpsert) SetCreated(v time.Time) *EventUpsert
SetCreated sets the "created" field.
func (*EventUpsert) SetDescription ¶
func (u *EventUpsert) SetDescription(v string) *EventUpsert
SetDescription sets the "description" field.
func (*EventUpsert) SetEnd ¶
func (u *EventUpsert) SetEnd(v time.Time) *EventUpsert
SetEnd sets the "end" field.
func (*EventUpsert) SetEndTz ¶
func (u *EventUpsert) SetEndTz(v string) *EventUpsert
SetEndTz sets the "end_tz" field.
func (*EventUpsert) SetEtag ¶
func (u *EventUpsert) SetEtag(v string) *EventUpsert
SetEtag sets the "etag" field.
func (*EventUpsert) SetLocation ¶
func (u *EventUpsert) SetLocation(v string) *EventUpsert
SetLocation sets the "location" field.
func (*EventUpsert) SetMeetingURL ¶
func (u *EventUpsert) SetMeetingURL(v string) *EventUpsert
SetMeetingURL sets the "meeting_url" field.
func (*EventUpsert) SetOrganizer ¶
func (u *EventUpsert) SetOrganizer(v map[string]interface{}) *EventUpsert
SetOrganizer sets the "organizer" field.
func (*EventUpsert) SetOriginalStart ¶
func (u *EventUpsert) SetOriginalStart(v time.Time) *EventUpsert
SetOriginalStart sets the "original_start" field.
func (*EventUpsert) SetRawIcs ¶
func (u *EventUpsert) SetRawIcs(v string) *EventUpsert
SetRawIcs sets the "raw_ics" field.
func (*EventUpsert) SetRecurrence ¶
func (u *EventUpsert) SetRecurrence(v map[string]interface{}) *EventUpsert
SetRecurrence sets the "recurrence" field.
func (*EventUpsert) SetRecurringID ¶
func (u *EventUpsert) SetRecurringID(v string) *EventUpsert
SetRecurringID sets the "recurring_id" field.
func (*EventUpsert) SetReminders ¶
func (u *EventUpsert) SetReminders(v []map[string]interface{}) *EventUpsert
SetReminders sets the "reminders" field.
func (*EventUpsert) SetRemoteID ¶
func (u *EventUpsert) SetRemoteID(v string) *EventUpsert
SetRemoteID sets the "remote_id" field.
func (*EventUpsert) SetStart ¶
func (u *EventUpsert) SetStart(v time.Time) *EventUpsert
SetStart sets the "start" field.
func (*EventUpsert) SetStartTz ¶
func (u *EventUpsert) SetStartTz(v string) *EventUpsert
SetStartTz sets the "start_tz" field.
func (*EventUpsert) SetStatus ¶
func (u *EventUpsert) SetStatus(v event.Status) *EventUpsert
SetStatus sets the "status" field.
func (*EventUpsert) SetSummary ¶
func (u *EventUpsert) SetSummary(v string) *EventUpsert
SetSummary sets the "summary" field.
func (*EventUpsert) SetTransparency ¶
func (u *EventUpsert) SetTransparency(v string) *EventUpsert
SetTransparency sets the "transparency" field.
func (*EventUpsert) SetUID ¶
func (u *EventUpsert) SetUID(v string) *EventUpsert
SetUID sets the "uid" field.
func (*EventUpsert) SetURL ¶
func (u *EventUpsert) SetURL(v string) *EventUpsert
SetURL sets the "url" field.
func (*EventUpsert) SetUpdated ¶
func (u *EventUpsert) SetUpdated(v time.Time) *EventUpsert
SetUpdated sets the "updated" field.
func (*EventUpsert) SetVisibility ¶
func (u *EventUpsert) SetVisibility(v string) *EventUpsert
SetVisibility sets the "visibility" field.
func (*EventUpsert) UpdateAllDay ¶
func (u *EventUpsert) UpdateAllDay() *EventUpsert
UpdateAllDay sets the "all_day" field to the value that was provided on create.
func (*EventUpsert) UpdateAttendees ¶
func (u *EventUpsert) UpdateAttendees() *EventUpsert
UpdateAttendees sets the "attendees" field to the value that was provided on create.
func (*EventUpsert) UpdateCategories ¶
func (u *EventUpsert) UpdateCategories() *EventUpsert
UpdateCategories sets the "categories" field to the value that was provided on create.
func (*EventUpsert) UpdateCreated ¶
func (u *EventUpsert) UpdateCreated() *EventUpsert
UpdateCreated sets the "created" field to the value that was provided on create.
func (*EventUpsert) UpdateDescription ¶
func (u *EventUpsert) UpdateDescription() *EventUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*EventUpsert) UpdateEnd ¶
func (u *EventUpsert) UpdateEnd() *EventUpsert
UpdateEnd sets the "end" field to the value that was provided on create.
func (*EventUpsert) UpdateEndTz ¶
func (u *EventUpsert) UpdateEndTz() *EventUpsert
UpdateEndTz sets the "end_tz" field to the value that was provided on create.
func (*EventUpsert) UpdateEtag ¶
func (u *EventUpsert) UpdateEtag() *EventUpsert
UpdateEtag sets the "etag" field to the value that was provided on create.
func (*EventUpsert) UpdateLocation ¶
func (u *EventUpsert) UpdateLocation() *EventUpsert
UpdateLocation sets the "location" field to the value that was provided on create.
func (*EventUpsert) UpdateMeetingURL ¶
func (u *EventUpsert) UpdateMeetingURL() *EventUpsert
UpdateMeetingURL sets the "meeting_url" field to the value that was provided on create.
func (*EventUpsert) UpdateOrganizer ¶
func (u *EventUpsert) UpdateOrganizer() *EventUpsert
UpdateOrganizer sets the "organizer" field to the value that was provided on create.
func (*EventUpsert) UpdateOriginalStart ¶
func (u *EventUpsert) UpdateOriginalStart() *EventUpsert
UpdateOriginalStart sets the "original_start" field to the value that was provided on create.
func (*EventUpsert) UpdateRawIcs ¶
func (u *EventUpsert) UpdateRawIcs() *EventUpsert
UpdateRawIcs sets the "raw_ics" field to the value that was provided on create.
func (*EventUpsert) UpdateRecurrence ¶
func (u *EventUpsert) UpdateRecurrence() *EventUpsert
UpdateRecurrence sets the "recurrence" field to the value that was provided on create.
func (*EventUpsert) UpdateRecurringID ¶
func (u *EventUpsert) UpdateRecurringID() *EventUpsert
UpdateRecurringID sets the "recurring_id" field to the value that was provided on create.
func (*EventUpsert) UpdateReminders ¶
func (u *EventUpsert) UpdateReminders() *EventUpsert
UpdateReminders sets the "reminders" field to the value that was provided on create.
func (*EventUpsert) UpdateRemoteID ¶
func (u *EventUpsert) UpdateRemoteID() *EventUpsert
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*EventUpsert) UpdateStart ¶
func (u *EventUpsert) UpdateStart() *EventUpsert
UpdateStart sets the "start" field to the value that was provided on create.
func (*EventUpsert) UpdateStartTz ¶
func (u *EventUpsert) UpdateStartTz() *EventUpsert
UpdateStartTz sets the "start_tz" field to the value that was provided on create.
func (*EventUpsert) UpdateStatus ¶
func (u *EventUpsert) UpdateStatus() *EventUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*EventUpsert) UpdateSummary ¶
func (u *EventUpsert) UpdateSummary() *EventUpsert
UpdateSummary sets the "summary" field to the value that was provided on create.
func (*EventUpsert) UpdateTransparency ¶
func (u *EventUpsert) UpdateTransparency() *EventUpsert
UpdateTransparency sets the "transparency" field to the value that was provided on create.
func (*EventUpsert) UpdateUID ¶
func (u *EventUpsert) UpdateUID() *EventUpsert
UpdateUID sets the "uid" field to the value that was provided on create.
func (*EventUpsert) UpdateURL ¶
func (u *EventUpsert) UpdateURL() *EventUpsert
UpdateURL sets the "url" field to the value that was provided on create.
func (*EventUpsert) UpdateUpdated ¶
func (u *EventUpsert) UpdateUpdated() *EventUpsert
UpdateUpdated sets the "updated" field to the value that was provided on create.
func (*EventUpsert) UpdateVisibility ¶
func (u *EventUpsert) UpdateVisibility() *EventUpsert
UpdateVisibility sets the "visibility" field to the value that was provided on create.
type EventUpsertBulk ¶
type EventUpsertBulk struct {
// contains filtered or unexported fields
}
EventUpsertBulk is the builder for "upsert"-ing a bulk of Event nodes.
func (*EventUpsertBulk) ClearAttendees ¶
func (u *EventUpsertBulk) ClearAttendees() *EventUpsertBulk
ClearAttendees clears the value of the "attendees" field.
func (*EventUpsertBulk) ClearCategories ¶
func (u *EventUpsertBulk) ClearCategories() *EventUpsertBulk
ClearCategories clears the value of the "categories" field.
func (*EventUpsertBulk) ClearDescription ¶
func (u *EventUpsertBulk) ClearDescription() *EventUpsertBulk
ClearDescription clears the value of the "description" field.
func (*EventUpsertBulk) ClearEndTz ¶
func (u *EventUpsertBulk) ClearEndTz() *EventUpsertBulk
ClearEndTz clears the value of the "end_tz" field.
func (*EventUpsertBulk) ClearEtag ¶
func (u *EventUpsertBulk) ClearEtag() *EventUpsertBulk
ClearEtag clears the value of the "etag" field.
func (*EventUpsertBulk) ClearLocation ¶
func (u *EventUpsertBulk) ClearLocation() *EventUpsertBulk
ClearLocation clears the value of the "location" field.
func (*EventUpsertBulk) ClearMeetingURL ¶
func (u *EventUpsertBulk) ClearMeetingURL() *EventUpsertBulk
ClearMeetingURL clears the value of the "meeting_url" field.
func (*EventUpsertBulk) ClearOrganizer ¶
func (u *EventUpsertBulk) ClearOrganizer() *EventUpsertBulk
ClearOrganizer clears the value of the "organizer" field.
func (*EventUpsertBulk) ClearOriginalStart ¶
func (u *EventUpsertBulk) ClearOriginalStart() *EventUpsertBulk
ClearOriginalStart clears the value of the "original_start" field.
func (*EventUpsertBulk) ClearRawIcs ¶
func (u *EventUpsertBulk) ClearRawIcs() *EventUpsertBulk
ClearRawIcs clears the value of the "raw_ics" field.
func (*EventUpsertBulk) ClearRecurrence ¶
func (u *EventUpsertBulk) ClearRecurrence() *EventUpsertBulk
ClearRecurrence clears the value of the "recurrence" field.
func (*EventUpsertBulk) ClearRecurringID ¶
func (u *EventUpsertBulk) ClearRecurringID() *EventUpsertBulk
ClearRecurringID clears the value of the "recurring_id" field.
func (*EventUpsertBulk) ClearReminders ¶
func (u *EventUpsertBulk) ClearReminders() *EventUpsertBulk
ClearReminders clears the value of the "reminders" field.
func (*EventUpsertBulk) ClearRemoteID ¶
func (u *EventUpsertBulk) ClearRemoteID() *EventUpsertBulk
ClearRemoteID clears the value of the "remote_id" field.
func (*EventUpsertBulk) ClearStartTz ¶
func (u *EventUpsertBulk) ClearStartTz() *EventUpsertBulk
ClearStartTz clears the value of the "start_tz" field.
func (*EventUpsertBulk) ClearTransparency ¶
func (u *EventUpsertBulk) ClearTransparency() *EventUpsertBulk
ClearTransparency clears the value of the "transparency" field.
func (*EventUpsertBulk) ClearURL ¶
func (u *EventUpsertBulk) ClearURL() *EventUpsertBulk
ClearURL clears the value of the "url" field.
func (*EventUpsertBulk) ClearVisibility ¶
func (u *EventUpsertBulk) ClearVisibility() *EventUpsertBulk
ClearVisibility clears the value of the "visibility" field.
func (*EventUpsertBulk) DoNothing ¶
func (u *EventUpsertBulk) DoNothing() *EventUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*EventUpsertBulk) Exec ¶
func (u *EventUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*EventUpsertBulk) ExecX ¶
func (u *EventUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpsertBulk) Ignore ¶
func (u *EventUpsertBulk) Ignore() *EventUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Event.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*EventUpsertBulk) SetAllDay ¶
func (u *EventUpsertBulk) SetAllDay(v bool) *EventUpsertBulk
SetAllDay sets the "all_day" field.
func (*EventUpsertBulk) SetAttendees ¶
func (u *EventUpsertBulk) SetAttendees(v []map[string]interface{}) *EventUpsertBulk
SetAttendees sets the "attendees" field.
func (*EventUpsertBulk) SetCategories ¶
func (u *EventUpsertBulk) SetCategories(v []string) *EventUpsertBulk
SetCategories sets the "categories" field.
func (*EventUpsertBulk) SetCreated ¶
func (u *EventUpsertBulk) SetCreated(v time.Time) *EventUpsertBulk
SetCreated sets the "created" field.
func (*EventUpsertBulk) SetDescription ¶
func (u *EventUpsertBulk) SetDescription(v string) *EventUpsertBulk
SetDescription sets the "description" field.
func (*EventUpsertBulk) SetEnd ¶
func (u *EventUpsertBulk) SetEnd(v time.Time) *EventUpsertBulk
SetEnd sets the "end" field.
func (*EventUpsertBulk) SetEndTz ¶
func (u *EventUpsertBulk) SetEndTz(v string) *EventUpsertBulk
SetEndTz sets the "end_tz" field.
func (*EventUpsertBulk) SetEtag ¶
func (u *EventUpsertBulk) SetEtag(v string) *EventUpsertBulk
SetEtag sets the "etag" field.
func (*EventUpsertBulk) SetLocation ¶
func (u *EventUpsertBulk) SetLocation(v string) *EventUpsertBulk
SetLocation sets the "location" field.
func (*EventUpsertBulk) SetMeetingURL ¶
func (u *EventUpsertBulk) SetMeetingURL(v string) *EventUpsertBulk
SetMeetingURL sets the "meeting_url" field.
func (*EventUpsertBulk) SetOrganizer ¶
func (u *EventUpsertBulk) SetOrganizer(v map[string]interface{}) *EventUpsertBulk
SetOrganizer sets the "organizer" field.
func (*EventUpsertBulk) SetOriginalStart ¶
func (u *EventUpsertBulk) SetOriginalStart(v time.Time) *EventUpsertBulk
SetOriginalStart sets the "original_start" field.
func (*EventUpsertBulk) SetRawIcs ¶
func (u *EventUpsertBulk) SetRawIcs(v string) *EventUpsertBulk
SetRawIcs sets the "raw_ics" field.
func (*EventUpsertBulk) SetRecurrence ¶
func (u *EventUpsertBulk) SetRecurrence(v map[string]interface{}) *EventUpsertBulk
SetRecurrence sets the "recurrence" field.
func (*EventUpsertBulk) SetRecurringID ¶
func (u *EventUpsertBulk) SetRecurringID(v string) *EventUpsertBulk
SetRecurringID sets the "recurring_id" field.
func (*EventUpsertBulk) SetReminders ¶
func (u *EventUpsertBulk) SetReminders(v []map[string]interface{}) *EventUpsertBulk
SetReminders sets the "reminders" field.
func (*EventUpsertBulk) SetRemoteID ¶
func (u *EventUpsertBulk) SetRemoteID(v string) *EventUpsertBulk
SetRemoteID sets the "remote_id" field.
func (*EventUpsertBulk) SetStart ¶
func (u *EventUpsertBulk) SetStart(v time.Time) *EventUpsertBulk
SetStart sets the "start" field.
func (*EventUpsertBulk) SetStartTz ¶
func (u *EventUpsertBulk) SetStartTz(v string) *EventUpsertBulk
SetStartTz sets the "start_tz" field.
func (*EventUpsertBulk) SetStatus ¶
func (u *EventUpsertBulk) SetStatus(v event.Status) *EventUpsertBulk
SetStatus sets the "status" field.
func (*EventUpsertBulk) SetSummary ¶
func (u *EventUpsertBulk) SetSummary(v string) *EventUpsertBulk
SetSummary sets the "summary" field.
func (*EventUpsertBulk) SetTransparency ¶
func (u *EventUpsertBulk) SetTransparency(v string) *EventUpsertBulk
SetTransparency sets the "transparency" field.
func (*EventUpsertBulk) SetUID ¶
func (u *EventUpsertBulk) SetUID(v string) *EventUpsertBulk
SetUID sets the "uid" field.
func (*EventUpsertBulk) SetURL ¶
func (u *EventUpsertBulk) SetURL(v string) *EventUpsertBulk
SetURL sets the "url" field.
func (*EventUpsertBulk) SetUpdated ¶
func (u *EventUpsertBulk) SetUpdated(v time.Time) *EventUpsertBulk
SetUpdated sets the "updated" field.
func (*EventUpsertBulk) SetVisibility ¶
func (u *EventUpsertBulk) SetVisibility(v string) *EventUpsertBulk
SetVisibility sets the "visibility" field.
func (*EventUpsertBulk) Update ¶
func (u *EventUpsertBulk) Update(set func(*EventUpsert)) *EventUpsertBulk
Update allows overriding fields `UPDATE` values. See the EventCreateBulk.OnConflict documentation for more info.
func (*EventUpsertBulk) UpdateAllDay ¶
func (u *EventUpsertBulk) UpdateAllDay() *EventUpsertBulk
UpdateAllDay sets the "all_day" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateAttendees ¶
func (u *EventUpsertBulk) UpdateAttendees() *EventUpsertBulk
UpdateAttendees sets the "attendees" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateCategories ¶
func (u *EventUpsertBulk) UpdateCategories() *EventUpsertBulk
UpdateCategories sets the "categories" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateCreated ¶
func (u *EventUpsertBulk) UpdateCreated() *EventUpsertBulk
UpdateCreated sets the "created" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateDescription ¶
func (u *EventUpsertBulk) UpdateDescription() *EventUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateEnd ¶
func (u *EventUpsertBulk) UpdateEnd() *EventUpsertBulk
UpdateEnd sets the "end" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateEndTz ¶
func (u *EventUpsertBulk) UpdateEndTz() *EventUpsertBulk
UpdateEndTz sets the "end_tz" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateEtag ¶
func (u *EventUpsertBulk) UpdateEtag() *EventUpsertBulk
UpdateEtag sets the "etag" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateLocation ¶
func (u *EventUpsertBulk) UpdateLocation() *EventUpsertBulk
UpdateLocation sets the "location" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateMeetingURL ¶
func (u *EventUpsertBulk) UpdateMeetingURL() *EventUpsertBulk
UpdateMeetingURL sets the "meeting_url" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateNewValues ¶
func (u *EventUpsertBulk) UpdateNewValues() *EventUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Event.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(event.FieldID)
}),
).
Exec(ctx)
func (*EventUpsertBulk) UpdateOrganizer ¶
func (u *EventUpsertBulk) UpdateOrganizer() *EventUpsertBulk
UpdateOrganizer sets the "organizer" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateOriginalStart ¶
func (u *EventUpsertBulk) UpdateOriginalStart() *EventUpsertBulk
UpdateOriginalStart sets the "original_start" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateRawIcs ¶
func (u *EventUpsertBulk) UpdateRawIcs() *EventUpsertBulk
UpdateRawIcs sets the "raw_ics" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateRecurrence ¶
func (u *EventUpsertBulk) UpdateRecurrence() *EventUpsertBulk
UpdateRecurrence sets the "recurrence" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateRecurringID ¶
func (u *EventUpsertBulk) UpdateRecurringID() *EventUpsertBulk
UpdateRecurringID sets the "recurring_id" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateReminders ¶
func (u *EventUpsertBulk) UpdateReminders() *EventUpsertBulk
UpdateReminders sets the "reminders" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateRemoteID ¶
func (u *EventUpsertBulk) UpdateRemoteID() *EventUpsertBulk
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateStart ¶
func (u *EventUpsertBulk) UpdateStart() *EventUpsertBulk
UpdateStart sets the "start" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateStartTz ¶
func (u *EventUpsertBulk) UpdateStartTz() *EventUpsertBulk
UpdateStartTz sets the "start_tz" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateStatus ¶
func (u *EventUpsertBulk) UpdateStatus() *EventUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateSummary ¶
func (u *EventUpsertBulk) UpdateSummary() *EventUpsertBulk
UpdateSummary sets the "summary" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateTransparency ¶
func (u *EventUpsertBulk) UpdateTransparency() *EventUpsertBulk
UpdateTransparency sets the "transparency" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateUID ¶
func (u *EventUpsertBulk) UpdateUID() *EventUpsertBulk
UpdateUID sets the "uid" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateURL ¶
func (u *EventUpsertBulk) UpdateURL() *EventUpsertBulk
UpdateURL sets the "url" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateUpdated ¶
func (u *EventUpsertBulk) UpdateUpdated() *EventUpsertBulk
UpdateUpdated sets the "updated" field to the value that was provided on create.
func (*EventUpsertBulk) UpdateVisibility ¶
func (u *EventUpsertBulk) UpdateVisibility() *EventUpsertBulk
UpdateVisibility sets the "visibility" field to the value that was provided on create.
type EventUpsertOne ¶
type EventUpsertOne struct {
// contains filtered or unexported fields
}
EventUpsertOne is the builder for "upsert"-ing
one Event node.
func (*EventUpsertOne) ClearAttendees ¶
func (u *EventUpsertOne) ClearAttendees() *EventUpsertOne
ClearAttendees clears the value of the "attendees" field.
func (*EventUpsertOne) ClearCategories ¶
func (u *EventUpsertOne) ClearCategories() *EventUpsertOne
ClearCategories clears the value of the "categories" field.
func (*EventUpsertOne) ClearDescription ¶
func (u *EventUpsertOne) ClearDescription() *EventUpsertOne
ClearDescription clears the value of the "description" field.
func (*EventUpsertOne) ClearEndTz ¶
func (u *EventUpsertOne) ClearEndTz() *EventUpsertOne
ClearEndTz clears the value of the "end_tz" field.
func (*EventUpsertOne) ClearEtag ¶
func (u *EventUpsertOne) ClearEtag() *EventUpsertOne
ClearEtag clears the value of the "etag" field.
func (*EventUpsertOne) ClearLocation ¶
func (u *EventUpsertOne) ClearLocation() *EventUpsertOne
ClearLocation clears the value of the "location" field.
func (*EventUpsertOne) ClearMeetingURL ¶
func (u *EventUpsertOne) ClearMeetingURL() *EventUpsertOne
ClearMeetingURL clears the value of the "meeting_url" field.
func (*EventUpsertOne) ClearOrganizer ¶
func (u *EventUpsertOne) ClearOrganizer() *EventUpsertOne
ClearOrganizer clears the value of the "organizer" field.
func (*EventUpsertOne) ClearOriginalStart ¶
func (u *EventUpsertOne) ClearOriginalStart() *EventUpsertOne
ClearOriginalStart clears the value of the "original_start" field.
func (*EventUpsertOne) ClearRawIcs ¶
func (u *EventUpsertOne) ClearRawIcs() *EventUpsertOne
ClearRawIcs clears the value of the "raw_ics" field.
func (*EventUpsertOne) ClearRecurrence ¶
func (u *EventUpsertOne) ClearRecurrence() *EventUpsertOne
ClearRecurrence clears the value of the "recurrence" field.
func (*EventUpsertOne) ClearRecurringID ¶
func (u *EventUpsertOne) ClearRecurringID() *EventUpsertOne
ClearRecurringID clears the value of the "recurring_id" field.
func (*EventUpsertOne) ClearReminders ¶
func (u *EventUpsertOne) ClearReminders() *EventUpsertOne
ClearReminders clears the value of the "reminders" field.
func (*EventUpsertOne) ClearRemoteID ¶
func (u *EventUpsertOne) ClearRemoteID() *EventUpsertOne
ClearRemoteID clears the value of the "remote_id" field.
func (*EventUpsertOne) ClearStartTz ¶
func (u *EventUpsertOne) ClearStartTz() *EventUpsertOne
ClearStartTz clears the value of the "start_tz" field.
func (*EventUpsertOne) ClearTransparency ¶
func (u *EventUpsertOne) ClearTransparency() *EventUpsertOne
ClearTransparency clears the value of the "transparency" field.
func (*EventUpsertOne) ClearURL ¶
func (u *EventUpsertOne) ClearURL() *EventUpsertOne
ClearURL clears the value of the "url" field.
func (*EventUpsertOne) ClearVisibility ¶
func (u *EventUpsertOne) ClearVisibility() *EventUpsertOne
ClearVisibility clears the value of the "visibility" field.
func (*EventUpsertOne) DoNothing ¶
func (u *EventUpsertOne) DoNothing() *EventUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*EventUpsertOne) Exec ¶
func (u *EventUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*EventUpsertOne) ExecX ¶
func (u *EventUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpsertOne) ID ¶
func (u *EventUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*EventUpsertOne) IDX ¶
func (u *EventUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*EventUpsertOne) Ignore ¶
func (u *EventUpsertOne) Ignore() *EventUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Event.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*EventUpsertOne) SetAllDay ¶
func (u *EventUpsertOne) SetAllDay(v bool) *EventUpsertOne
SetAllDay sets the "all_day" field.
func (*EventUpsertOne) SetAttendees ¶
func (u *EventUpsertOne) SetAttendees(v []map[string]interface{}) *EventUpsertOne
SetAttendees sets the "attendees" field.
func (*EventUpsertOne) SetCategories ¶
func (u *EventUpsertOne) SetCategories(v []string) *EventUpsertOne
SetCategories sets the "categories" field.
func (*EventUpsertOne) SetCreated ¶
func (u *EventUpsertOne) SetCreated(v time.Time) *EventUpsertOne
SetCreated sets the "created" field.
func (*EventUpsertOne) SetDescription ¶
func (u *EventUpsertOne) SetDescription(v string) *EventUpsertOne
SetDescription sets the "description" field.
func (*EventUpsertOne) SetEnd ¶
func (u *EventUpsertOne) SetEnd(v time.Time) *EventUpsertOne
SetEnd sets the "end" field.
func (*EventUpsertOne) SetEndTz ¶
func (u *EventUpsertOne) SetEndTz(v string) *EventUpsertOne
SetEndTz sets the "end_tz" field.
func (*EventUpsertOne) SetEtag ¶
func (u *EventUpsertOne) SetEtag(v string) *EventUpsertOne
SetEtag sets the "etag" field.
func (*EventUpsertOne) SetLocation ¶
func (u *EventUpsertOne) SetLocation(v string) *EventUpsertOne
SetLocation sets the "location" field.
func (*EventUpsertOne) SetMeetingURL ¶
func (u *EventUpsertOne) SetMeetingURL(v string) *EventUpsertOne
SetMeetingURL sets the "meeting_url" field.
func (*EventUpsertOne) SetOrganizer ¶
func (u *EventUpsertOne) SetOrganizer(v map[string]interface{}) *EventUpsertOne
SetOrganizer sets the "organizer" field.
func (*EventUpsertOne) SetOriginalStart ¶
func (u *EventUpsertOne) SetOriginalStart(v time.Time) *EventUpsertOne
SetOriginalStart sets the "original_start" field.
func (*EventUpsertOne) SetRawIcs ¶
func (u *EventUpsertOne) SetRawIcs(v string) *EventUpsertOne
SetRawIcs sets the "raw_ics" field.
func (*EventUpsertOne) SetRecurrence ¶
func (u *EventUpsertOne) SetRecurrence(v map[string]interface{}) *EventUpsertOne
SetRecurrence sets the "recurrence" field.
func (*EventUpsertOne) SetRecurringID ¶
func (u *EventUpsertOne) SetRecurringID(v string) *EventUpsertOne
SetRecurringID sets the "recurring_id" field.
func (*EventUpsertOne) SetReminders ¶
func (u *EventUpsertOne) SetReminders(v []map[string]interface{}) *EventUpsertOne
SetReminders sets the "reminders" field.
func (*EventUpsertOne) SetRemoteID ¶
func (u *EventUpsertOne) SetRemoteID(v string) *EventUpsertOne
SetRemoteID sets the "remote_id" field.
func (*EventUpsertOne) SetStart ¶
func (u *EventUpsertOne) SetStart(v time.Time) *EventUpsertOne
SetStart sets the "start" field.
func (*EventUpsertOne) SetStartTz ¶
func (u *EventUpsertOne) SetStartTz(v string) *EventUpsertOne
SetStartTz sets the "start_tz" field.
func (*EventUpsertOne) SetStatus ¶
func (u *EventUpsertOne) SetStatus(v event.Status) *EventUpsertOne
SetStatus sets the "status" field.
func (*EventUpsertOne) SetSummary ¶
func (u *EventUpsertOne) SetSummary(v string) *EventUpsertOne
SetSummary sets the "summary" field.
func (*EventUpsertOne) SetTransparency ¶
func (u *EventUpsertOne) SetTransparency(v string) *EventUpsertOne
SetTransparency sets the "transparency" field.
func (*EventUpsertOne) SetUID ¶
func (u *EventUpsertOne) SetUID(v string) *EventUpsertOne
SetUID sets the "uid" field.
func (*EventUpsertOne) SetURL ¶
func (u *EventUpsertOne) SetURL(v string) *EventUpsertOne
SetURL sets the "url" field.
func (*EventUpsertOne) SetUpdated ¶
func (u *EventUpsertOne) SetUpdated(v time.Time) *EventUpsertOne
SetUpdated sets the "updated" field.
func (*EventUpsertOne) SetVisibility ¶
func (u *EventUpsertOne) SetVisibility(v string) *EventUpsertOne
SetVisibility sets the "visibility" field.
func (*EventUpsertOne) Update ¶
func (u *EventUpsertOne) Update(set func(*EventUpsert)) *EventUpsertOne
Update allows overriding fields `UPDATE` values. See the EventCreate.OnConflict documentation for more info.
func (*EventUpsertOne) UpdateAllDay ¶
func (u *EventUpsertOne) UpdateAllDay() *EventUpsertOne
UpdateAllDay sets the "all_day" field to the value that was provided on create.
func (*EventUpsertOne) UpdateAttendees ¶
func (u *EventUpsertOne) UpdateAttendees() *EventUpsertOne
UpdateAttendees sets the "attendees" field to the value that was provided on create.
func (*EventUpsertOne) UpdateCategories ¶
func (u *EventUpsertOne) UpdateCategories() *EventUpsertOne
UpdateCategories sets the "categories" field to the value that was provided on create.
func (*EventUpsertOne) UpdateCreated ¶
func (u *EventUpsertOne) UpdateCreated() *EventUpsertOne
UpdateCreated sets the "created" field to the value that was provided on create.
func (*EventUpsertOne) UpdateDescription ¶
func (u *EventUpsertOne) UpdateDescription() *EventUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*EventUpsertOne) UpdateEnd ¶
func (u *EventUpsertOne) UpdateEnd() *EventUpsertOne
UpdateEnd sets the "end" field to the value that was provided on create.
func (*EventUpsertOne) UpdateEndTz ¶
func (u *EventUpsertOne) UpdateEndTz() *EventUpsertOne
UpdateEndTz sets the "end_tz" field to the value that was provided on create.
func (*EventUpsertOne) UpdateEtag ¶
func (u *EventUpsertOne) UpdateEtag() *EventUpsertOne
UpdateEtag sets the "etag" field to the value that was provided on create.
func (*EventUpsertOne) UpdateLocation ¶
func (u *EventUpsertOne) UpdateLocation() *EventUpsertOne
UpdateLocation sets the "location" field to the value that was provided on create.
func (*EventUpsertOne) UpdateMeetingURL ¶
func (u *EventUpsertOne) UpdateMeetingURL() *EventUpsertOne
UpdateMeetingURL sets the "meeting_url" field to the value that was provided on create.
func (*EventUpsertOne) UpdateNewValues ¶
func (u *EventUpsertOne) UpdateNewValues() *EventUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Event.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(event.FieldID)
}),
).
Exec(ctx)
func (*EventUpsertOne) UpdateOrganizer ¶
func (u *EventUpsertOne) UpdateOrganizer() *EventUpsertOne
UpdateOrganizer sets the "organizer" field to the value that was provided on create.
func (*EventUpsertOne) UpdateOriginalStart ¶
func (u *EventUpsertOne) UpdateOriginalStart() *EventUpsertOne
UpdateOriginalStart sets the "original_start" field to the value that was provided on create.
func (*EventUpsertOne) UpdateRawIcs ¶
func (u *EventUpsertOne) UpdateRawIcs() *EventUpsertOne
UpdateRawIcs sets the "raw_ics" field to the value that was provided on create.
func (*EventUpsertOne) UpdateRecurrence ¶
func (u *EventUpsertOne) UpdateRecurrence() *EventUpsertOne
UpdateRecurrence sets the "recurrence" field to the value that was provided on create.
func (*EventUpsertOne) UpdateRecurringID ¶
func (u *EventUpsertOne) UpdateRecurringID() *EventUpsertOne
UpdateRecurringID sets the "recurring_id" field to the value that was provided on create.
func (*EventUpsertOne) UpdateReminders ¶
func (u *EventUpsertOne) UpdateReminders() *EventUpsertOne
UpdateReminders sets the "reminders" field to the value that was provided on create.
func (*EventUpsertOne) UpdateRemoteID ¶
func (u *EventUpsertOne) UpdateRemoteID() *EventUpsertOne
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*EventUpsertOne) UpdateStart ¶
func (u *EventUpsertOne) UpdateStart() *EventUpsertOne
UpdateStart sets the "start" field to the value that was provided on create.
func (*EventUpsertOne) UpdateStartTz ¶
func (u *EventUpsertOne) UpdateStartTz() *EventUpsertOne
UpdateStartTz sets the "start_tz" field to the value that was provided on create.
func (*EventUpsertOne) UpdateStatus ¶
func (u *EventUpsertOne) UpdateStatus() *EventUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*EventUpsertOne) UpdateSummary ¶
func (u *EventUpsertOne) UpdateSummary() *EventUpsertOne
UpdateSummary sets the "summary" field to the value that was provided on create.
func (*EventUpsertOne) UpdateTransparency ¶
func (u *EventUpsertOne) UpdateTransparency() *EventUpsertOne
UpdateTransparency sets the "transparency" field to the value that was provided on create.
func (*EventUpsertOne) UpdateUID ¶
func (u *EventUpsertOne) UpdateUID() *EventUpsertOne
UpdateUID sets the "uid" field to the value that was provided on create.
func (*EventUpsertOne) UpdateURL ¶
func (u *EventUpsertOne) UpdateURL() *EventUpsertOne
UpdateURL sets the "url" field to the value that was provided on create.
func (*EventUpsertOne) UpdateUpdated ¶
func (u *EventUpsertOne) UpdateUpdated() *EventUpsertOne
UpdateUpdated sets the "updated" field to the value that was provided on create.
func (*EventUpsertOne) UpdateVisibility ¶
func (u *EventUpsertOne) UpdateVisibility() *EventUpsertOne
UpdateVisibility sets the "visibility" field to the value that was provided on create.
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 InvitationState ¶
type InvitationState struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// CalendarID holds the value of the "calendar_id" field.
CalendarID string `json:"calendar_id,omitempty"`
// UID holds the value of the "uid" field.
UID string `json:"uid,omitempty"`
// EventStart holds the value of the "event_start" field.
EventStart time.Time `json:"event_start,omitempty"`
// NotifiedAt holds the value of the "notified_at" field.
NotifiedAt time.Time `json:"notified_at,omitempty"`
// contains filtered or unexported fields
}
InvitationState is the model entity for the InvitationState schema.
func (*InvitationState) ExecContext ¶
func (c *InvitationState) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationState) QueryContext ¶
func (c *InvitationState) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationState) String ¶
func (_m *InvitationState) String() string
String implements the fmt.Stringer.
func (*InvitationState) Unwrap ¶
func (_m *InvitationState) Unwrap() *InvitationState
Unwrap unwraps the InvitationState 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 (*InvitationState) Update ¶
func (_m *InvitationState) Update() *InvitationStateUpdateOne
Update returns a builder for updating this InvitationState. Note that you need to call InvitationState.Unwrap() before calling this method if this InvitationState was returned from a transaction, and the transaction was committed or rolled back.
type InvitationStateClient ¶
type InvitationStateClient struct {
// contains filtered or unexported fields
}
InvitationStateClient is a client for the InvitationState schema.
func NewInvitationStateClient ¶
func NewInvitationStateClient(c config) *InvitationStateClient
NewInvitationStateClient returns a client for the InvitationState from the given config.
func (*InvitationStateClient) Create ¶
func (c *InvitationStateClient) Create() *InvitationStateCreate
Create returns a builder for creating a InvitationState entity.
func (*InvitationStateClient) CreateBulk ¶
func (c *InvitationStateClient) CreateBulk(builders ...*InvitationStateCreate) *InvitationStateCreateBulk
CreateBulk returns a builder for creating a bulk of InvitationState entities.
func (*InvitationStateClient) Delete ¶
func (c *InvitationStateClient) Delete() *InvitationStateDelete
Delete returns a delete builder for InvitationState.
func (*InvitationStateClient) DeleteOne ¶
func (c *InvitationStateClient) DeleteOne(_m *InvitationState) *InvitationStateDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*InvitationStateClient) DeleteOneID ¶
func (c *InvitationStateClient) DeleteOneID(id int) *InvitationStateDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*InvitationStateClient) ExecContext ¶
func (c *InvitationStateClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateClient) Get ¶
func (c *InvitationStateClient) Get(ctx context.Context, id int) (*InvitationState, error)
Get returns a InvitationState entity by its id.
func (*InvitationStateClient) GetX ¶
func (c *InvitationStateClient) GetX(ctx context.Context, id int) *InvitationState
GetX is like Get, but panics if an error occurs.
func (*InvitationStateClient) Hooks ¶
func (c *InvitationStateClient) Hooks() []Hook
Hooks returns the client hooks.
func (*InvitationStateClient) Intercept ¶
func (c *InvitationStateClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `invitationstate.Intercept(f(g(h())))`.
func (*InvitationStateClient) Interceptors ¶
func (c *InvitationStateClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*InvitationStateClient) MapCreateBulk ¶
func (c *InvitationStateClient) MapCreateBulk(slice any, setFunc func(*InvitationStateCreate, int)) *InvitationStateCreateBulk
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 (*InvitationStateClient) Query ¶
func (c *InvitationStateClient) Query() *InvitationStateQuery
Query returns a query builder for InvitationState.
func (*InvitationStateClient) QueryContext ¶
func (c *InvitationStateClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateClient) Update ¶
func (c *InvitationStateClient) Update() *InvitationStateUpdate
Update returns an update builder for InvitationState.
func (*InvitationStateClient) UpdateOne ¶
func (c *InvitationStateClient) UpdateOne(_m *InvitationState) *InvitationStateUpdateOne
UpdateOne returns an update builder for the given entity.
func (*InvitationStateClient) UpdateOneID ¶
func (c *InvitationStateClient) UpdateOneID(id int) *InvitationStateUpdateOne
UpdateOneID returns an update builder for the given id.
func (*InvitationStateClient) Use ¶
func (c *InvitationStateClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `invitationstate.Hooks(f(g(h())))`.
type InvitationStateCreate ¶
type InvitationStateCreate struct {
// contains filtered or unexported fields
}
InvitationStateCreate is the builder for creating a InvitationState entity.
func (*InvitationStateCreate) Exec ¶
func (_c *InvitationStateCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*InvitationStateCreate) ExecContext ¶
func (c *InvitationStateCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateCreate) ExecX ¶
func (_c *InvitationStateCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateCreate) Mutation ¶
func (_c *InvitationStateCreate) Mutation() *InvitationStateMutation
Mutation returns the InvitationStateMutation object of the builder.
func (*InvitationStateCreate) OnConflict ¶
func (_c *InvitationStateCreate) OnConflict(opts ...sql.ConflictOption) *InvitationStateUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.InvitationState.Create().
SetCalendarID(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.InvitationStateUpsert) {
SetCalendarID(v+v).
}).
Exec(ctx)
func (*InvitationStateCreate) OnConflictColumns ¶
func (_c *InvitationStateCreate) OnConflictColumns(columns ...string) *InvitationStateUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.InvitationState.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*InvitationStateCreate) QueryContext ¶
func (c *InvitationStateCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateCreate) Save ¶
func (_c *InvitationStateCreate) Save(ctx context.Context) (*InvitationState, error)
Save creates the InvitationState in the database.
func (*InvitationStateCreate) SaveX ¶
func (_c *InvitationStateCreate) SaveX(ctx context.Context) *InvitationState
SaveX calls Save and panics if Save returns an error.
func (*InvitationStateCreate) SetCalendarID ¶
func (_c *InvitationStateCreate) SetCalendarID(v string) *InvitationStateCreate
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateCreate) SetEventStart ¶
func (_c *InvitationStateCreate) SetEventStart(v time.Time) *InvitationStateCreate
SetEventStart sets the "event_start" field.
func (*InvitationStateCreate) SetNillableNotifiedAt ¶
func (_c *InvitationStateCreate) SetNillableNotifiedAt(v *time.Time) *InvitationStateCreate
SetNillableNotifiedAt sets the "notified_at" field if the given value is not nil.
func (*InvitationStateCreate) SetNotifiedAt ¶
func (_c *InvitationStateCreate) SetNotifiedAt(v time.Time) *InvitationStateCreate
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateCreate) SetUID ¶
func (_c *InvitationStateCreate) SetUID(v string) *InvitationStateCreate
SetUID sets the "uid" field.
type InvitationStateCreateBulk ¶
type InvitationStateCreateBulk struct {
// contains filtered or unexported fields
}
InvitationStateCreateBulk is the builder for creating many InvitationState entities in bulk.
func (*InvitationStateCreateBulk) Exec ¶
func (_c *InvitationStateCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*InvitationStateCreateBulk) ExecContext ¶
func (c *InvitationStateCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateCreateBulk) ExecX ¶
func (_c *InvitationStateCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateCreateBulk) OnConflict ¶
func (_c *InvitationStateCreateBulk) OnConflict(opts ...sql.ConflictOption) *InvitationStateUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.InvitationState.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.InvitationStateUpsert) {
SetCalendarID(v+v).
}).
Exec(ctx)
func (*InvitationStateCreateBulk) OnConflictColumns ¶
func (_c *InvitationStateCreateBulk) OnConflictColumns(columns ...string) *InvitationStateUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.InvitationState.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*InvitationStateCreateBulk) QueryContext ¶
func (c *InvitationStateCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateCreateBulk) Save ¶
func (_c *InvitationStateCreateBulk) Save(ctx context.Context) ([]*InvitationState, error)
Save creates the InvitationState entities in the database.
func (*InvitationStateCreateBulk) SaveX ¶
func (_c *InvitationStateCreateBulk) SaveX(ctx context.Context) []*InvitationState
SaveX is like Save, but panics if an error occurs.
type InvitationStateDelete ¶
type InvitationStateDelete struct {
// contains filtered or unexported fields
}
InvitationStateDelete is the builder for deleting a InvitationState entity.
func (*InvitationStateDelete) Exec ¶
func (_d *InvitationStateDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*InvitationStateDelete) ExecContext ¶
func (c *InvitationStateDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateDelete) ExecX ¶
func (_d *InvitationStateDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateDelete) QueryContext ¶
func (c *InvitationStateDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateDelete) Where ¶
func (_d *InvitationStateDelete) Where(ps ...predicate.InvitationState) *InvitationStateDelete
Where appends a list predicates to the InvitationStateDelete builder.
type InvitationStateDeleteOne ¶
type InvitationStateDeleteOne struct {
// contains filtered or unexported fields
}
InvitationStateDeleteOne is the builder for deleting a single InvitationState entity.
func (*InvitationStateDeleteOne) Exec ¶
func (_d *InvitationStateDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*InvitationStateDeleteOne) ExecX ¶
func (_d *InvitationStateDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateDeleteOne) Where ¶
func (_d *InvitationStateDeleteOne) Where(ps ...predicate.InvitationState) *InvitationStateDeleteOne
Where appends a list predicates to the InvitationStateDelete builder.
type InvitationStateGroupBy ¶
type InvitationStateGroupBy struct {
// contains filtered or unexported fields
}
InvitationStateGroupBy is the group-by builder for InvitationState entities.
func (*InvitationStateGroupBy) Aggregate ¶
func (_g *InvitationStateGroupBy) Aggregate(fns ...AggregateFunc) *InvitationStateGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*InvitationStateGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*InvitationStateGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*InvitationStateGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*InvitationStateGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*InvitationStateGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*InvitationStateGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*InvitationStateGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*InvitationStateGroupBy) Scan ¶
func (_g *InvitationStateGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*InvitationStateGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type InvitationStateMutation ¶
type InvitationStateMutation struct {
// contains filtered or unexported fields
}
InvitationStateMutation represents an operation that mutates the InvitationState nodes in the graph.
func (*InvitationStateMutation) AddField ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) AddedEdges ¶
func (m *InvitationStateMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*InvitationStateMutation) AddedField ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) AddedFields ¶
func (m *InvitationStateMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*InvitationStateMutation) AddedIDs ¶
func (m *InvitationStateMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*InvitationStateMutation) CalendarID ¶
func (m *InvitationStateMutation) CalendarID() (r string, exists bool)
CalendarID returns the value of the "calendar_id" field in the mutation.
func (*InvitationStateMutation) ClearEdge ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) ClearField ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) ClearedEdges ¶
func (m *InvitationStateMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*InvitationStateMutation) ClearedFields ¶
func (m *InvitationStateMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (InvitationStateMutation) Client ¶
func (m InvitationStateMutation) 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 (*InvitationStateMutation) EdgeCleared ¶
func (m *InvitationStateMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*InvitationStateMutation) EventStart ¶
func (m *InvitationStateMutation) EventStart() (r time.Time, exists bool)
EventStart returns the value of the "event_start" field in the mutation.
func (*InvitationStateMutation) ExecContext ¶
func (c *InvitationStateMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateMutation) Field ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) FieldCleared ¶
func (m *InvitationStateMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*InvitationStateMutation) Fields ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) ID ¶
func (m *InvitationStateMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*InvitationStateMutation) IDs ¶
func (m *InvitationStateMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*InvitationStateMutation) NotifiedAt ¶
func (m *InvitationStateMutation) NotifiedAt() (r time.Time, exists bool)
NotifiedAt returns the value of the "notified_at" field in the mutation.
func (*InvitationStateMutation) OldCalendarID ¶
func (m *InvitationStateMutation) OldCalendarID(ctx context.Context) (v string, err error)
OldCalendarID returns the old "calendar_id" field's value of the InvitationState entity. If the InvitationState object wasn'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 (*InvitationStateMutation) OldEventStart ¶
OldEventStart returns the old "event_start" field's value of the InvitationState entity. If the InvitationState object wasn'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 (*InvitationStateMutation) 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 (*InvitationStateMutation) OldNotifiedAt ¶
OldNotifiedAt returns the old "notified_at" field's value of the InvitationState entity. If the InvitationState object wasn'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 (*InvitationStateMutation) OldUID ¶
func (m *InvitationStateMutation) OldUID(ctx context.Context) (v string, err error)
OldUID returns the old "uid" field's value of the InvitationState entity. If the InvitationState object wasn'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 (*InvitationStateMutation) Op ¶
func (m *InvitationStateMutation) Op() Op
Op returns the operation name.
func (*InvitationStateMutation) QueryContext ¶
func (c *InvitationStateMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateMutation) RemovedEdges ¶
func (m *InvitationStateMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*InvitationStateMutation) RemovedIDs ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) ResetCalendarID ¶
func (m *InvitationStateMutation) ResetCalendarID()
ResetCalendarID resets all changes to the "calendar_id" field.
func (*InvitationStateMutation) ResetEdge ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) ResetEventStart ¶
func (m *InvitationStateMutation) ResetEventStart()
ResetEventStart resets all changes to the "event_start" field.
func (*InvitationStateMutation) ResetField ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) ResetNotifiedAt ¶
func (m *InvitationStateMutation) ResetNotifiedAt()
ResetNotifiedAt resets all changes to the "notified_at" field.
func (*InvitationStateMutation) ResetUID ¶
func (m *InvitationStateMutation) ResetUID()
ResetUID resets all changes to the "uid" field.
func (*InvitationStateMutation) SetCalendarID ¶
func (m *InvitationStateMutation) SetCalendarID(s string)
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateMutation) SetEventStart ¶
func (m *InvitationStateMutation) SetEventStart(t time.Time)
SetEventStart sets the "event_start" field.
func (*InvitationStateMutation) SetField ¶
func (m *InvitationStateMutation) 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 (*InvitationStateMutation) SetNotifiedAt ¶
func (m *InvitationStateMutation) SetNotifiedAt(t time.Time)
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateMutation) SetOp ¶
func (m *InvitationStateMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*InvitationStateMutation) SetUID ¶
func (m *InvitationStateMutation) SetUID(s string)
SetUID sets the "uid" field.
func (InvitationStateMutation) Tx ¶
func (m InvitationStateMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*InvitationStateMutation) Type ¶
func (m *InvitationStateMutation) Type() string
Type returns the node type of this mutation (InvitationState).
func (*InvitationStateMutation) UID ¶
func (m *InvitationStateMutation) UID() (r string, exists bool)
UID returns the value of the "uid" field in the mutation.
func (*InvitationStateMutation) Where ¶
func (m *InvitationStateMutation) Where(ps ...predicate.InvitationState)
Where appends a list predicates to the InvitationStateMutation builder.
func (*InvitationStateMutation) WhereP ¶
func (m *InvitationStateMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the InvitationStateMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type InvitationStateQuery ¶
type InvitationStateQuery struct {
// contains filtered or unexported fields
}
InvitationStateQuery is the builder for querying InvitationState entities.
func (*InvitationStateQuery) Aggregate ¶
func (_q *InvitationStateQuery) Aggregate(fns ...AggregateFunc) *InvitationStateSelect
Aggregate returns a InvitationStateSelect configured with the given aggregations.
func (*InvitationStateQuery) All ¶
func (_q *InvitationStateQuery) All(ctx context.Context) ([]*InvitationState, error)
All executes the query and returns a list of InvitationStates.
func (*InvitationStateQuery) AllX ¶
func (_q *InvitationStateQuery) AllX(ctx context.Context) []*InvitationState
AllX is like All, but panics if an error occurs.
func (*InvitationStateQuery) Clone ¶
func (_q *InvitationStateQuery) Clone() *InvitationStateQuery
Clone returns a duplicate of the InvitationStateQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*InvitationStateQuery) Count ¶
func (_q *InvitationStateQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*InvitationStateQuery) CountX ¶
func (_q *InvitationStateQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*InvitationStateQuery) ExecContext ¶
func (c *InvitationStateQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateQuery) Exist ¶
func (_q *InvitationStateQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*InvitationStateQuery) ExistX ¶
func (_q *InvitationStateQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*InvitationStateQuery) First ¶
func (_q *InvitationStateQuery) First(ctx context.Context) (*InvitationState, error)
First returns the first InvitationState entity from the query. Returns a *NotFoundError when no InvitationState was found.
func (*InvitationStateQuery) FirstID ¶
func (_q *InvitationStateQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first InvitationState ID from the query. Returns a *NotFoundError when no InvitationState ID was found.
func (*InvitationStateQuery) FirstIDX ¶
func (_q *InvitationStateQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*InvitationStateQuery) FirstX ¶
func (_q *InvitationStateQuery) FirstX(ctx context.Context) *InvitationState
FirstX is like First, but panics if an error occurs.
func (*InvitationStateQuery) GroupBy ¶
func (_q *InvitationStateQuery) GroupBy(field string, fields ...string) *InvitationStateGroupBy
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 {
CalendarID string `json:"calendar_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.InvitationState.Query().
GroupBy(invitationstate.FieldCalendarID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*InvitationStateQuery) IDs ¶
func (_q *InvitationStateQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of InvitationState IDs.
func (*InvitationStateQuery) IDsX ¶
func (_q *InvitationStateQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*InvitationStateQuery) Limit ¶
func (_q *InvitationStateQuery) Limit(limit int) *InvitationStateQuery
Limit the number of records to be returned by this query.
func (*InvitationStateQuery) Modify ¶
func (_q *InvitationStateQuery) Modify(modifiers ...func(s *sql.Selector)) *InvitationStateSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*InvitationStateQuery) Offset ¶
func (_q *InvitationStateQuery) Offset(offset int) *InvitationStateQuery
Offset to start from.
func (*InvitationStateQuery) Only ¶
func (_q *InvitationStateQuery) Only(ctx context.Context) (*InvitationState, error)
Only returns a single InvitationState entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one InvitationState entity is found. Returns a *NotFoundError when no InvitationState entities are found.
func (*InvitationStateQuery) OnlyID ¶
func (_q *InvitationStateQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only InvitationState ID in the query. Returns a *NotSingularError when more than one InvitationState ID is found. Returns a *NotFoundError when no entities are found.
func (*InvitationStateQuery) OnlyIDX ¶
func (_q *InvitationStateQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*InvitationStateQuery) OnlyX ¶
func (_q *InvitationStateQuery) OnlyX(ctx context.Context) *InvitationState
OnlyX is like Only, but panics if an error occurs.
func (*InvitationStateQuery) Order ¶
func (_q *InvitationStateQuery) Order(o ...invitationstate.OrderOption) *InvitationStateQuery
Order specifies how the records should be ordered.
func (*InvitationStateQuery) QueryContext ¶
func (c *InvitationStateQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateQuery) Select ¶
func (_q *InvitationStateQuery) Select(fields ...string) *InvitationStateSelect
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 {
CalendarID string `json:"calendar_id,omitempty"`
}
client.InvitationState.Query().
Select(invitationstate.FieldCalendarID).
Scan(ctx, &v)
func (*InvitationStateQuery) Unique ¶
func (_q *InvitationStateQuery) Unique(unique bool) *InvitationStateQuery
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 (*InvitationStateQuery) Where ¶
func (_q *InvitationStateQuery) Where(ps ...predicate.InvitationState) *InvitationStateQuery
Where adds a new predicate for the InvitationStateQuery builder.
type InvitationStateSelect ¶
type InvitationStateSelect struct {
*InvitationStateQuery
// contains filtered or unexported fields
}
InvitationStateSelect is the builder for selecting fields of InvitationState entities.
func (*InvitationStateSelect) Aggregate ¶
func (_s *InvitationStateSelect) Aggregate(fns ...AggregateFunc) *InvitationStateSelect
Aggregate adds the given aggregation functions to the selector query.
func (*InvitationStateSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*InvitationStateSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (InvitationStateSelect) ExecContext ¶
func (c InvitationStateSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*InvitationStateSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*InvitationStateSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*InvitationStateSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*InvitationStateSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*InvitationStateSelect) Modify ¶
func (_s *InvitationStateSelect) Modify(modifiers ...func(s *sql.Selector)) *InvitationStateSelect
Modify adds a query modifier for attaching custom logic to queries.
func (InvitationStateSelect) QueryContext ¶
func (c InvitationStateSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateSelect) Scan ¶
func (_s *InvitationStateSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*InvitationStateSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type InvitationStateUpdate ¶
type InvitationStateUpdate struct {
// contains filtered or unexported fields
}
InvitationStateUpdate is the builder for updating InvitationState entities.
func (*InvitationStateUpdate) Exec ¶
func (_u *InvitationStateUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*InvitationStateUpdate) ExecContext ¶
func (c *InvitationStateUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateUpdate) ExecX ¶
func (_u *InvitationStateUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateUpdate) Modify ¶
func (_u *InvitationStateUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InvitationStateUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*InvitationStateUpdate) Mutation ¶
func (_u *InvitationStateUpdate) Mutation() *InvitationStateMutation
Mutation returns the InvitationStateMutation object of the builder.
func (*InvitationStateUpdate) QueryContext ¶
func (c *InvitationStateUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateUpdate) Save ¶
func (_u *InvitationStateUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*InvitationStateUpdate) SaveX ¶
func (_u *InvitationStateUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*InvitationStateUpdate) SetCalendarID ¶
func (_u *InvitationStateUpdate) SetCalendarID(v string) *InvitationStateUpdate
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateUpdate) SetEventStart ¶
func (_u *InvitationStateUpdate) SetEventStart(v time.Time) *InvitationStateUpdate
SetEventStart sets the "event_start" field.
func (*InvitationStateUpdate) SetNillableCalendarID ¶
func (_u *InvitationStateUpdate) SetNillableCalendarID(v *string) *InvitationStateUpdate
SetNillableCalendarID sets the "calendar_id" field if the given value is not nil.
func (*InvitationStateUpdate) SetNillableEventStart ¶
func (_u *InvitationStateUpdate) SetNillableEventStart(v *time.Time) *InvitationStateUpdate
SetNillableEventStart sets the "event_start" field if the given value is not nil.
func (*InvitationStateUpdate) SetNillableNotifiedAt ¶
func (_u *InvitationStateUpdate) SetNillableNotifiedAt(v *time.Time) *InvitationStateUpdate
SetNillableNotifiedAt sets the "notified_at" field if the given value is not nil.
func (*InvitationStateUpdate) SetNillableUID ¶
func (_u *InvitationStateUpdate) SetNillableUID(v *string) *InvitationStateUpdate
SetNillableUID sets the "uid" field if the given value is not nil.
func (*InvitationStateUpdate) SetNotifiedAt ¶
func (_u *InvitationStateUpdate) SetNotifiedAt(v time.Time) *InvitationStateUpdate
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateUpdate) SetUID ¶
func (_u *InvitationStateUpdate) SetUID(v string) *InvitationStateUpdate
SetUID sets the "uid" field.
func (*InvitationStateUpdate) Where ¶
func (_u *InvitationStateUpdate) Where(ps ...predicate.InvitationState) *InvitationStateUpdate
Where appends a list predicates to the InvitationStateUpdate builder.
type InvitationStateUpdateOne ¶
type InvitationStateUpdateOne struct {
// contains filtered or unexported fields
}
InvitationStateUpdateOne is the builder for updating a single InvitationState entity.
func (*InvitationStateUpdateOne) Exec ¶
func (_u *InvitationStateUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*InvitationStateUpdateOne) ExecContext ¶
func (c *InvitationStateUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*InvitationStateUpdateOne) ExecX ¶
func (_u *InvitationStateUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateUpdateOne) Modify ¶
func (_u *InvitationStateUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InvitationStateUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*InvitationStateUpdateOne) Mutation ¶
func (_u *InvitationStateUpdateOne) Mutation() *InvitationStateMutation
Mutation returns the InvitationStateMutation object of the builder.
func (*InvitationStateUpdateOne) QueryContext ¶
func (c *InvitationStateUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*InvitationStateUpdateOne) Save ¶
func (_u *InvitationStateUpdateOne) Save(ctx context.Context) (*InvitationState, error)
Save executes the query and returns the updated InvitationState entity.
func (*InvitationStateUpdateOne) SaveX ¶
func (_u *InvitationStateUpdateOne) SaveX(ctx context.Context) *InvitationState
SaveX is like Save, but panics if an error occurs.
func (*InvitationStateUpdateOne) Select ¶
func (_u *InvitationStateUpdateOne) Select(field string, fields ...string) *InvitationStateUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*InvitationStateUpdateOne) SetCalendarID ¶
func (_u *InvitationStateUpdateOne) SetCalendarID(v string) *InvitationStateUpdateOne
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateUpdateOne) SetEventStart ¶
func (_u *InvitationStateUpdateOne) SetEventStart(v time.Time) *InvitationStateUpdateOne
SetEventStart sets the "event_start" field.
func (*InvitationStateUpdateOne) SetNillableCalendarID ¶
func (_u *InvitationStateUpdateOne) SetNillableCalendarID(v *string) *InvitationStateUpdateOne
SetNillableCalendarID sets the "calendar_id" field if the given value is not nil.
func (*InvitationStateUpdateOne) SetNillableEventStart ¶
func (_u *InvitationStateUpdateOne) SetNillableEventStart(v *time.Time) *InvitationStateUpdateOne
SetNillableEventStart sets the "event_start" field if the given value is not nil.
func (*InvitationStateUpdateOne) SetNillableNotifiedAt ¶
func (_u *InvitationStateUpdateOne) SetNillableNotifiedAt(v *time.Time) *InvitationStateUpdateOne
SetNillableNotifiedAt sets the "notified_at" field if the given value is not nil.
func (*InvitationStateUpdateOne) SetNillableUID ¶
func (_u *InvitationStateUpdateOne) SetNillableUID(v *string) *InvitationStateUpdateOne
SetNillableUID sets the "uid" field if the given value is not nil.
func (*InvitationStateUpdateOne) SetNotifiedAt ¶
func (_u *InvitationStateUpdateOne) SetNotifiedAt(v time.Time) *InvitationStateUpdateOne
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateUpdateOne) SetUID ¶
func (_u *InvitationStateUpdateOne) SetUID(v string) *InvitationStateUpdateOne
SetUID sets the "uid" field.
func (*InvitationStateUpdateOne) Where ¶
func (_u *InvitationStateUpdateOne) Where(ps ...predicate.InvitationState) *InvitationStateUpdateOne
Where appends a list predicates to the InvitationStateUpdate builder.
type InvitationStateUpsert ¶
InvitationStateUpsert is the "OnConflict" setter.
func (*InvitationStateUpsert) SetCalendarID ¶
func (u *InvitationStateUpsert) SetCalendarID(v string) *InvitationStateUpsert
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateUpsert) SetEventStart ¶
func (u *InvitationStateUpsert) SetEventStart(v time.Time) *InvitationStateUpsert
SetEventStart sets the "event_start" field.
func (*InvitationStateUpsert) SetNotifiedAt ¶
func (u *InvitationStateUpsert) SetNotifiedAt(v time.Time) *InvitationStateUpsert
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateUpsert) SetUID ¶
func (u *InvitationStateUpsert) SetUID(v string) *InvitationStateUpsert
SetUID sets the "uid" field.
func (*InvitationStateUpsert) UpdateCalendarID ¶
func (u *InvitationStateUpsert) UpdateCalendarID() *InvitationStateUpsert
UpdateCalendarID sets the "calendar_id" field to the value that was provided on create.
func (*InvitationStateUpsert) UpdateEventStart ¶
func (u *InvitationStateUpsert) UpdateEventStart() *InvitationStateUpsert
UpdateEventStart sets the "event_start" field to the value that was provided on create.
func (*InvitationStateUpsert) UpdateNotifiedAt ¶
func (u *InvitationStateUpsert) UpdateNotifiedAt() *InvitationStateUpsert
UpdateNotifiedAt sets the "notified_at" field to the value that was provided on create.
func (*InvitationStateUpsert) UpdateUID ¶
func (u *InvitationStateUpsert) UpdateUID() *InvitationStateUpsert
UpdateUID sets the "uid" field to the value that was provided on create.
type InvitationStateUpsertBulk ¶
type InvitationStateUpsertBulk struct {
// contains filtered or unexported fields
}
InvitationStateUpsertBulk is the builder for "upsert"-ing a bulk of InvitationState nodes.
func (*InvitationStateUpsertBulk) DoNothing ¶
func (u *InvitationStateUpsertBulk) DoNothing() *InvitationStateUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*InvitationStateUpsertBulk) Exec ¶
func (u *InvitationStateUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*InvitationStateUpsertBulk) ExecX ¶
func (u *InvitationStateUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateUpsertBulk) Ignore ¶
func (u *InvitationStateUpsertBulk) Ignore() *InvitationStateUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.InvitationState.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*InvitationStateUpsertBulk) SetCalendarID ¶
func (u *InvitationStateUpsertBulk) SetCalendarID(v string) *InvitationStateUpsertBulk
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateUpsertBulk) SetEventStart ¶
func (u *InvitationStateUpsertBulk) SetEventStart(v time.Time) *InvitationStateUpsertBulk
SetEventStart sets the "event_start" field.
func (*InvitationStateUpsertBulk) SetNotifiedAt ¶
func (u *InvitationStateUpsertBulk) SetNotifiedAt(v time.Time) *InvitationStateUpsertBulk
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateUpsertBulk) SetUID ¶
func (u *InvitationStateUpsertBulk) SetUID(v string) *InvitationStateUpsertBulk
SetUID sets the "uid" field.
func (*InvitationStateUpsertBulk) Update ¶
func (u *InvitationStateUpsertBulk) Update(set func(*InvitationStateUpsert)) *InvitationStateUpsertBulk
Update allows overriding fields `UPDATE` values. See the InvitationStateCreateBulk.OnConflict documentation for more info.
func (*InvitationStateUpsertBulk) UpdateCalendarID ¶
func (u *InvitationStateUpsertBulk) UpdateCalendarID() *InvitationStateUpsertBulk
UpdateCalendarID sets the "calendar_id" field to the value that was provided on create.
func (*InvitationStateUpsertBulk) UpdateEventStart ¶
func (u *InvitationStateUpsertBulk) UpdateEventStart() *InvitationStateUpsertBulk
UpdateEventStart sets the "event_start" field to the value that was provided on create.
func (*InvitationStateUpsertBulk) UpdateNewValues ¶
func (u *InvitationStateUpsertBulk) UpdateNewValues() *InvitationStateUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.InvitationState.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*InvitationStateUpsertBulk) UpdateNotifiedAt ¶
func (u *InvitationStateUpsertBulk) UpdateNotifiedAt() *InvitationStateUpsertBulk
UpdateNotifiedAt sets the "notified_at" field to the value that was provided on create.
func (*InvitationStateUpsertBulk) UpdateUID ¶
func (u *InvitationStateUpsertBulk) UpdateUID() *InvitationStateUpsertBulk
UpdateUID sets the "uid" field to the value that was provided on create.
type InvitationStateUpsertOne ¶
type InvitationStateUpsertOne struct {
// contains filtered or unexported fields
}
InvitationStateUpsertOne is the builder for "upsert"-ing
one InvitationState node.
func (*InvitationStateUpsertOne) DoNothing ¶
func (u *InvitationStateUpsertOne) DoNothing() *InvitationStateUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*InvitationStateUpsertOne) Exec ¶
func (u *InvitationStateUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*InvitationStateUpsertOne) ExecX ¶
func (u *InvitationStateUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*InvitationStateUpsertOne) ID ¶
func (u *InvitationStateUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*InvitationStateUpsertOne) IDX ¶
func (u *InvitationStateUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*InvitationStateUpsertOne) Ignore ¶
func (u *InvitationStateUpsertOne) Ignore() *InvitationStateUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.InvitationState.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*InvitationStateUpsertOne) SetCalendarID ¶
func (u *InvitationStateUpsertOne) SetCalendarID(v string) *InvitationStateUpsertOne
SetCalendarID sets the "calendar_id" field.
func (*InvitationStateUpsertOne) SetEventStart ¶
func (u *InvitationStateUpsertOne) SetEventStart(v time.Time) *InvitationStateUpsertOne
SetEventStart sets the "event_start" field.
func (*InvitationStateUpsertOne) SetNotifiedAt ¶
func (u *InvitationStateUpsertOne) SetNotifiedAt(v time.Time) *InvitationStateUpsertOne
SetNotifiedAt sets the "notified_at" field.
func (*InvitationStateUpsertOne) SetUID ¶
func (u *InvitationStateUpsertOne) SetUID(v string) *InvitationStateUpsertOne
SetUID sets the "uid" field.
func (*InvitationStateUpsertOne) Update ¶
func (u *InvitationStateUpsertOne) Update(set func(*InvitationStateUpsert)) *InvitationStateUpsertOne
Update allows overriding fields `UPDATE` values. See the InvitationStateCreate.OnConflict documentation for more info.
func (*InvitationStateUpsertOne) UpdateCalendarID ¶
func (u *InvitationStateUpsertOne) UpdateCalendarID() *InvitationStateUpsertOne
UpdateCalendarID sets the "calendar_id" field to the value that was provided on create.
func (*InvitationStateUpsertOne) UpdateEventStart ¶
func (u *InvitationStateUpsertOne) UpdateEventStart() *InvitationStateUpsertOne
UpdateEventStart sets the "event_start" field to the value that was provided on create.
func (*InvitationStateUpsertOne) UpdateNewValues ¶
func (u *InvitationStateUpsertOne) UpdateNewValues() *InvitationStateUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.InvitationState.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*InvitationStateUpsertOne) UpdateNotifiedAt ¶
func (u *InvitationStateUpsertOne) UpdateNotifiedAt() *InvitationStateUpsertOne
UpdateNotifiedAt sets the "notified_at" field to the value that was provided on create.
func (*InvitationStateUpsertOne) UpdateUID ¶
func (u *InvitationStateUpsertOne) UpdateUID() *InvitationStateUpsertOne
UpdateUID sets the "uid" field to the value that was provided on create.
type InvitationStates ¶
type InvitationStates []*InvitationState
InvitationStates is a parsable slice of InvitationState.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
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 OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type ReminderState ¶
type ReminderState struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// CalendarID holds the value of the "calendar_id" field.
CalendarID string `json:"calendar_id,omitempty"`
// UID holds the value of the "uid" field.
UID string `json:"uid,omitempty"`
// OccurrenceStart holds the value of the "occurrence_start" field.
OccurrenceStart time.Time `json:"occurrence_start,omitempty"`
// Minutes holds the value of the "minutes" field.
Minutes int `json:"minutes,omitempty"`
// FiredAt holds the value of the "fired_at" field.
FiredAt time.Time `json:"fired_at,omitempty"`
// SnoozedUntil holds the value of the "snoozed_until" field.
SnoozedUntil *time.Time `json:"snoozed_until,omitempty"`
// contains filtered or unexported fields
}
ReminderState is the model entity for the ReminderState schema.
func (*ReminderState) ExecContext ¶
func (c *ReminderState) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderState) QueryContext ¶
func (c *ReminderState) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderState) String ¶
func (_m *ReminderState) String() string
String implements the fmt.Stringer.
func (*ReminderState) Unwrap ¶
func (_m *ReminderState) Unwrap() *ReminderState
Unwrap unwraps the ReminderState 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 (*ReminderState) Update ¶
func (_m *ReminderState) Update() *ReminderStateUpdateOne
Update returns a builder for updating this ReminderState. Note that you need to call ReminderState.Unwrap() before calling this method if this ReminderState was returned from a transaction, and the transaction was committed or rolled back.
type ReminderStateClient ¶
type ReminderStateClient struct {
// contains filtered or unexported fields
}
ReminderStateClient is a client for the ReminderState schema.
func NewReminderStateClient ¶
func NewReminderStateClient(c config) *ReminderStateClient
NewReminderStateClient returns a client for the ReminderState from the given config.
func (*ReminderStateClient) Create ¶
func (c *ReminderStateClient) Create() *ReminderStateCreate
Create returns a builder for creating a ReminderState entity.
func (*ReminderStateClient) CreateBulk ¶
func (c *ReminderStateClient) CreateBulk(builders ...*ReminderStateCreate) *ReminderStateCreateBulk
CreateBulk returns a builder for creating a bulk of ReminderState entities.
func (*ReminderStateClient) Delete ¶
func (c *ReminderStateClient) Delete() *ReminderStateDelete
Delete returns a delete builder for ReminderState.
func (*ReminderStateClient) DeleteOne ¶
func (c *ReminderStateClient) DeleteOne(_m *ReminderState) *ReminderStateDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReminderStateClient) DeleteOneID ¶
func (c *ReminderStateClient) DeleteOneID(id int) *ReminderStateDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReminderStateClient) ExecContext ¶
func (c *ReminderStateClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateClient) Get ¶
func (c *ReminderStateClient) Get(ctx context.Context, id int) (*ReminderState, error)
Get returns a ReminderState entity by its id.
func (*ReminderStateClient) GetX ¶
func (c *ReminderStateClient) GetX(ctx context.Context, id int) *ReminderState
GetX is like Get, but panics if an error occurs.
func (*ReminderStateClient) Hooks ¶
func (c *ReminderStateClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ReminderStateClient) Intercept ¶
func (c *ReminderStateClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reminderstate.Intercept(f(g(h())))`.
func (*ReminderStateClient) Interceptors ¶
func (c *ReminderStateClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ReminderStateClient) MapCreateBulk ¶
func (c *ReminderStateClient) MapCreateBulk(slice any, setFunc func(*ReminderStateCreate, int)) *ReminderStateCreateBulk
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 (*ReminderStateClient) Query ¶
func (c *ReminderStateClient) Query() *ReminderStateQuery
Query returns a query builder for ReminderState.
func (*ReminderStateClient) QueryContext ¶
func (c *ReminderStateClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateClient) Update ¶
func (c *ReminderStateClient) Update() *ReminderStateUpdate
Update returns an update builder for ReminderState.
func (*ReminderStateClient) UpdateOne ¶
func (c *ReminderStateClient) UpdateOne(_m *ReminderState) *ReminderStateUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReminderStateClient) UpdateOneID ¶
func (c *ReminderStateClient) UpdateOneID(id int) *ReminderStateUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ReminderStateClient) Use ¶
func (c *ReminderStateClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reminderstate.Hooks(f(g(h())))`.
type ReminderStateCreate ¶
type ReminderStateCreate struct {
// contains filtered or unexported fields
}
ReminderStateCreate is the builder for creating a ReminderState entity.
func (*ReminderStateCreate) Exec ¶
func (_c *ReminderStateCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ReminderStateCreate) ExecContext ¶
func (c *ReminderStateCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateCreate) ExecX ¶
func (_c *ReminderStateCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateCreate) Mutation ¶
func (_c *ReminderStateCreate) Mutation() *ReminderStateMutation
Mutation returns the ReminderStateMutation object of the builder.
func (*ReminderStateCreate) OnConflict ¶
func (_c *ReminderStateCreate) OnConflict(opts ...sql.ConflictOption) *ReminderStateUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ReminderState.Create().
SetCalendarID(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.ReminderStateUpsert) {
SetCalendarID(v+v).
}).
Exec(ctx)
func (*ReminderStateCreate) OnConflictColumns ¶
func (_c *ReminderStateCreate) OnConflictColumns(columns ...string) *ReminderStateUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ReminderState.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ReminderStateCreate) QueryContext ¶
func (c *ReminderStateCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateCreate) Save ¶
func (_c *ReminderStateCreate) Save(ctx context.Context) (*ReminderState, error)
Save creates the ReminderState in the database.
func (*ReminderStateCreate) SaveX ¶
func (_c *ReminderStateCreate) SaveX(ctx context.Context) *ReminderState
SaveX calls Save and panics if Save returns an error.
func (*ReminderStateCreate) SetCalendarID ¶
func (_c *ReminderStateCreate) SetCalendarID(v string) *ReminderStateCreate
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateCreate) SetFiredAt ¶
func (_c *ReminderStateCreate) SetFiredAt(v time.Time) *ReminderStateCreate
SetFiredAt sets the "fired_at" field.
func (*ReminderStateCreate) SetMinutes ¶
func (_c *ReminderStateCreate) SetMinutes(v int) *ReminderStateCreate
SetMinutes sets the "minutes" field.
func (*ReminderStateCreate) SetNillableFiredAt ¶
func (_c *ReminderStateCreate) SetNillableFiredAt(v *time.Time) *ReminderStateCreate
SetNillableFiredAt sets the "fired_at" field if the given value is not nil.
func (*ReminderStateCreate) SetNillableSnoozedUntil ¶
func (_c *ReminderStateCreate) SetNillableSnoozedUntil(v *time.Time) *ReminderStateCreate
SetNillableSnoozedUntil sets the "snoozed_until" field if the given value is not nil.
func (*ReminderStateCreate) SetOccurrenceStart ¶
func (_c *ReminderStateCreate) SetOccurrenceStart(v time.Time) *ReminderStateCreate
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateCreate) SetSnoozedUntil ¶
func (_c *ReminderStateCreate) SetSnoozedUntil(v time.Time) *ReminderStateCreate
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateCreate) SetUID ¶
func (_c *ReminderStateCreate) SetUID(v string) *ReminderStateCreate
SetUID sets the "uid" field.
type ReminderStateCreateBulk ¶
type ReminderStateCreateBulk struct {
// contains filtered or unexported fields
}
ReminderStateCreateBulk is the builder for creating many ReminderState entities in bulk.
func (*ReminderStateCreateBulk) Exec ¶
func (_c *ReminderStateCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReminderStateCreateBulk) ExecContext ¶
func (c *ReminderStateCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateCreateBulk) ExecX ¶
func (_c *ReminderStateCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateCreateBulk) OnConflict ¶
func (_c *ReminderStateCreateBulk) OnConflict(opts ...sql.ConflictOption) *ReminderStateUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ReminderState.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.ReminderStateUpsert) {
SetCalendarID(v+v).
}).
Exec(ctx)
func (*ReminderStateCreateBulk) OnConflictColumns ¶
func (_c *ReminderStateCreateBulk) OnConflictColumns(columns ...string) *ReminderStateUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ReminderState.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ReminderStateCreateBulk) QueryContext ¶
func (c *ReminderStateCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateCreateBulk) Save ¶
func (_c *ReminderStateCreateBulk) Save(ctx context.Context) ([]*ReminderState, error)
Save creates the ReminderState entities in the database.
func (*ReminderStateCreateBulk) SaveX ¶
func (_c *ReminderStateCreateBulk) SaveX(ctx context.Context) []*ReminderState
SaveX is like Save, but panics if an error occurs.
type ReminderStateDelete ¶
type ReminderStateDelete struct {
// contains filtered or unexported fields
}
ReminderStateDelete is the builder for deleting a ReminderState entity.
func (*ReminderStateDelete) Exec ¶
func (_d *ReminderStateDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ReminderStateDelete) ExecContext ¶
func (c *ReminderStateDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateDelete) ExecX ¶
func (_d *ReminderStateDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateDelete) QueryContext ¶
func (c *ReminderStateDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateDelete) Where ¶
func (_d *ReminderStateDelete) Where(ps ...predicate.ReminderState) *ReminderStateDelete
Where appends a list predicates to the ReminderStateDelete builder.
type ReminderStateDeleteOne ¶
type ReminderStateDeleteOne struct {
// contains filtered or unexported fields
}
ReminderStateDeleteOne is the builder for deleting a single ReminderState entity.
func (*ReminderStateDeleteOne) Exec ¶
func (_d *ReminderStateDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ReminderStateDeleteOne) ExecX ¶
func (_d *ReminderStateDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateDeleteOne) Where ¶
func (_d *ReminderStateDeleteOne) Where(ps ...predicate.ReminderState) *ReminderStateDeleteOne
Where appends a list predicates to the ReminderStateDelete builder.
type ReminderStateGroupBy ¶
type ReminderStateGroupBy struct {
// contains filtered or unexported fields
}
ReminderStateGroupBy is the group-by builder for ReminderState entities.
func (*ReminderStateGroupBy) Aggregate ¶
func (_g *ReminderStateGroupBy) Aggregate(fns ...AggregateFunc) *ReminderStateGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReminderStateGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReminderStateGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReminderStateGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReminderStateGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReminderStateGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReminderStateGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReminderStateGroupBy) Scan ¶
func (_g *ReminderStateGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReminderStateGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ReminderStateMutation ¶
type ReminderStateMutation struct {
// contains filtered or unexported fields
}
ReminderStateMutation represents an operation that mutates the ReminderState nodes in the graph.
func (*ReminderStateMutation) AddField ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) AddMinutes ¶
func (m *ReminderStateMutation) AddMinutes(i int)
AddMinutes adds i to the "minutes" field.
func (*ReminderStateMutation) AddedEdges ¶
func (m *ReminderStateMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ReminderStateMutation) AddedField ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) AddedFields ¶
func (m *ReminderStateMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ReminderStateMutation) AddedIDs ¶
func (m *ReminderStateMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ReminderStateMutation) AddedMinutes ¶
func (m *ReminderStateMutation) AddedMinutes() (r int, exists bool)
AddedMinutes returns the value that was added to the "minutes" field in this mutation.
func (*ReminderStateMutation) CalendarID ¶
func (m *ReminderStateMutation) CalendarID() (r string, exists bool)
CalendarID returns the value of the "calendar_id" field in the mutation.
func (*ReminderStateMutation) ClearEdge ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) ClearField ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) ClearSnoozedUntil ¶
func (m *ReminderStateMutation) ClearSnoozedUntil()
ClearSnoozedUntil clears the value of the "snoozed_until" field.
func (*ReminderStateMutation) ClearedEdges ¶
func (m *ReminderStateMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ReminderStateMutation) ClearedFields ¶
func (m *ReminderStateMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ReminderStateMutation) Client ¶
func (m ReminderStateMutation) 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 (*ReminderStateMutation) EdgeCleared ¶
func (m *ReminderStateMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ReminderStateMutation) ExecContext ¶
func (c *ReminderStateMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateMutation) Field ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) FieldCleared ¶
func (m *ReminderStateMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ReminderStateMutation) Fields ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) FiredAt ¶
func (m *ReminderStateMutation) FiredAt() (r time.Time, exists bool)
FiredAt returns the value of the "fired_at" field in the mutation.
func (*ReminderStateMutation) ID ¶
func (m *ReminderStateMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ReminderStateMutation) IDs ¶
func (m *ReminderStateMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*ReminderStateMutation) Minutes ¶
func (m *ReminderStateMutation) Minutes() (r int, exists bool)
Minutes returns the value of the "minutes" field in the mutation.
func (*ReminderStateMutation) OccurrenceStart ¶
func (m *ReminderStateMutation) OccurrenceStart() (r time.Time, exists bool)
OccurrenceStart returns the value of the "occurrence_start" field in the mutation.
func (*ReminderStateMutation) OldCalendarID ¶
func (m *ReminderStateMutation) OldCalendarID(ctx context.Context) (v string, err error)
OldCalendarID returns the old "calendar_id" field's value of the ReminderState entity. If the ReminderState object wasn'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 (*ReminderStateMutation) 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 (*ReminderStateMutation) OldFiredAt ¶
OldFiredAt returns the old "fired_at" field's value of the ReminderState entity. If the ReminderState object wasn'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 (*ReminderStateMutation) OldMinutes ¶
func (m *ReminderStateMutation) OldMinutes(ctx context.Context) (v int, err error)
OldMinutes returns the old "minutes" field's value of the ReminderState entity. If the ReminderState object wasn'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 (*ReminderStateMutation) OldOccurrenceStart ¶
OldOccurrenceStart returns the old "occurrence_start" field's value of the ReminderState entity. If the ReminderState object wasn'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 (*ReminderStateMutation) OldSnoozedUntil ¶
OldSnoozedUntil returns the old "snoozed_until" field's value of the ReminderState entity. If the ReminderState object wasn'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 (*ReminderStateMutation) OldUID ¶
func (m *ReminderStateMutation) OldUID(ctx context.Context) (v string, err error)
OldUID returns the old "uid" field's value of the ReminderState entity. If the ReminderState object wasn'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 (*ReminderStateMutation) Op ¶
func (m *ReminderStateMutation) Op() Op
Op returns the operation name.
func (*ReminderStateMutation) QueryContext ¶
func (c *ReminderStateMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateMutation) RemovedEdges ¶
func (m *ReminderStateMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ReminderStateMutation) RemovedIDs ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) ResetCalendarID ¶
func (m *ReminderStateMutation) ResetCalendarID()
ResetCalendarID resets all changes to the "calendar_id" field.
func (*ReminderStateMutation) ResetEdge ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) ResetField ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) ResetFiredAt ¶
func (m *ReminderStateMutation) ResetFiredAt()
ResetFiredAt resets all changes to the "fired_at" field.
func (*ReminderStateMutation) ResetMinutes ¶
func (m *ReminderStateMutation) ResetMinutes()
ResetMinutes resets all changes to the "minutes" field.
func (*ReminderStateMutation) ResetOccurrenceStart ¶
func (m *ReminderStateMutation) ResetOccurrenceStart()
ResetOccurrenceStart resets all changes to the "occurrence_start" field.
func (*ReminderStateMutation) ResetSnoozedUntil ¶
func (m *ReminderStateMutation) ResetSnoozedUntil()
ResetSnoozedUntil resets all changes to the "snoozed_until" field.
func (*ReminderStateMutation) ResetUID ¶
func (m *ReminderStateMutation) ResetUID()
ResetUID resets all changes to the "uid" field.
func (*ReminderStateMutation) SetCalendarID ¶
func (m *ReminderStateMutation) SetCalendarID(s string)
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateMutation) SetField ¶
func (m *ReminderStateMutation) 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 (*ReminderStateMutation) SetFiredAt ¶
func (m *ReminderStateMutation) SetFiredAt(t time.Time)
SetFiredAt sets the "fired_at" field.
func (*ReminderStateMutation) SetMinutes ¶
func (m *ReminderStateMutation) SetMinutes(i int)
SetMinutes sets the "minutes" field.
func (*ReminderStateMutation) SetOccurrenceStart ¶
func (m *ReminderStateMutation) SetOccurrenceStart(t time.Time)
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateMutation) SetOp ¶
func (m *ReminderStateMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ReminderStateMutation) SetSnoozedUntil ¶
func (m *ReminderStateMutation) SetSnoozedUntil(t time.Time)
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateMutation) SetUID ¶
func (m *ReminderStateMutation) SetUID(s string)
SetUID sets the "uid" field.
func (*ReminderStateMutation) SnoozedUntil ¶
func (m *ReminderStateMutation) SnoozedUntil() (r time.Time, exists bool)
SnoozedUntil returns the value of the "snoozed_until" field in the mutation.
func (*ReminderStateMutation) SnoozedUntilCleared ¶
func (m *ReminderStateMutation) SnoozedUntilCleared() bool
SnoozedUntilCleared returns if the "snoozed_until" field was cleared in this mutation.
func (ReminderStateMutation) Tx ¶
func (m ReminderStateMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ReminderStateMutation) Type ¶
func (m *ReminderStateMutation) Type() string
Type returns the node type of this mutation (ReminderState).
func (*ReminderStateMutation) UID ¶
func (m *ReminderStateMutation) UID() (r string, exists bool)
UID returns the value of the "uid" field in the mutation.
func (*ReminderStateMutation) Where ¶
func (m *ReminderStateMutation) Where(ps ...predicate.ReminderState)
Where appends a list predicates to the ReminderStateMutation builder.
func (*ReminderStateMutation) WhereP ¶
func (m *ReminderStateMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ReminderStateMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ReminderStateQuery ¶
type ReminderStateQuery struct {
// contains filtered or unexported fields
}
ReminderStateQuery is the builder for querying ReminderState entities.
func (*ReminderStateQuery) Aggregate ¶
func (_q *ReminderStateQuery) Aggregate(fns ...AggregateFunc) *ReminderStateSelect
Aggregate returns a ReminderStateSelect configured with the given aggregations.
func (*ReminderStateQuery) All ¶
func (_q *ReminderStateQuery) All(ctx context.Context) ([]*ReminderState, error)
All executes the query and returns a list of ReminderStates.
func (*ReminderStateQuery) AllX ¶
func (_q *ReminderStateQuery) AllX(ctx context.Context) []*ReminderState
AllX is like All, but panics if an error occurs.
func (*ReminderStateQuery) Clone ¶
func (_q *ReminderStateQuery) Clone() *ReminderStateQuery
Clone returns a duplicate of the ReminderStateQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ReminderStateQuery) Count ¶
func (_q *ReminderStateQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ReminderStateQuery) CountX ¶
func (_q *ReminderStateQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ReminderStateQuery) ExecContext ¶
func (c *ReminderStateQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateQuery) Exist ¶
func (_q *ReminderStateQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ReminderStateQuery) ExistX ¶
func (_q *ReminderStateQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ReminderStateQuery) First ¶
func (_q *ReminderStateQuery) First(ctx context.Context) (*ReminderState, error)
First returns the first ReminderState entity from the query. Returns a *NotFoundError when no ReminderState was found.
func (*ReminderStateQuery) FirstID ¶
func (_q *ReminderStateQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first ReminderState ID from the query. Returns a *NotFoundError when no ReminderState ID was found.
func (*ReminderStateQuery) FirstIDX ¶
func (_q *ReminderStateQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ReminderStateQuery) FirstX ¶
func (_q *ReminderStateQuery) FirstX(ctx context.Context) *ReminderState
FirstX is like First, but panics if an error occurs.
func (*ReminderStateQuery) GroupBy ¶
func (_q *ReminderStateQuery) GroupBy(field string, fields ...string) *ReminderStateGroupBy
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 {
CalendarID string `json:"calendar_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.ReminderState.Query().
GroupBy(reminderstate.FieldCalendarID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ReminderStateQuery) IDs ¶
func (_q *ReminderStateQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of ReminderState IDs.
func (*ReminderStateQuery) IDsX ¶
func (_q *ReminderStateQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ReminderStateQuery) Limit ¶
func (_q *ReminderStateQuery) Limit(limit int) *ReminderStateQuery
Limit the number of records to be returned by this query.
func (*ReminderStateQuery) Modify ¶
func (_q *ReminderStateQuery) Modify(modifiers ...func(s *sql.Selector)) *ReminderStateSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ReminderStateQuery) Offset ¶
func (_q *ReminderStateQuery) Offset(offset int) *ReminderStateQuery
Offset to start from.
func (*ReminderStateQuery) Only ¶
func (_q *ReminderStateQuery) Only(ctx context.Context) (*ReminderState, error)
Only returns a single ReminderState entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReminderState entity is found. Returns a *NotFoundError when no ReminderState entities are found.
func (*ReminderStateQuery) OnlyID ¶
func (_q *ReminderStateQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only ReminderState ID in the query. Returns a *NotSingularError when more than one ReminderState ID is found. Returns a *NotFoundError when no entities are found.
func (*ReminderStateQuery) OnlyIDX ¶
func (_q *ReminderStateQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ReminderStateQuery) OnlyX ¶
func (_q *ReminderStateQuery) OnlyX(ctx context.Context) *ReminderState
OnlyX is like Only, but panics if an error occurs.
func (*ReminderStateQuery) Order ¶
func (_q *ReminderStateQuery) Order(o ...reminderstate.OrderOption) *ReminderStateQuery
Order specifies how the records should be ordered.
func (*ReminderStateQuery) QueryContext ¶
func (c *ReminderStateQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateQuery) Select ¶
func (_q *ReminderStateQuery) Select(fields ...string) *ReminderStateSelect
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 {
CalendarID string `json:"calendar_id,omitempty"`
}
client.ReminderState.Query().
Select(reminderstate.FieldCalendarID).
Scan(ctx, &v)
func (*ReminderStateQuery) Unique ¶
func (_q *ReminderStateQuery) Unique(unique bool) *ReminderStateQuery
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 (*ReminderStateQuery) Where ¶
func (_q *ReminderStateQuery) Where(ps ...predicate.ReminderState) *ReminderStateQuery
Where adds a new predicate for the ReminderStateQuery builder.
type ReminderStateSelect ¶
type ReminderStateSelect struct {
*ReminderStateQuery
// contains filtered or unexported fields
}
ReminderStateSelect is the builder for selecting fields of ReminderState entities.
func (*ReminderStateSelect) Aggregate ¶
func (_s *ReminderStateSelect) Aggregate(fns ...AggregateFunc) *ReminderStateSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReminderStateSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReminderStateSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (ReminderStateSelect) ExecContext ¶
func (c ReminderStateSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReminderStateSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReminderStateSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReminderStateSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReminderStateSelect) Modify ¶
func (_s *ReminderStateSelect) Modify(modifiers ...func(s *sql.Selector)) *ReminderStateSelect
Modify adds a query modifier for attaching custom logic to queries.
func (ReminderStateSelect) QueryContext ¶
func (c ReminderStateSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateSelect) Scan ¶
func (_s *ReminderStateSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReminderStateSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ReminderStateUpdate ¶
type ReminderStateUpdate struct {
// contains filtered or unexported fields
}
ReminderStateUpdate is the builder for updating ReminderState entities.
func (*ReminderStateUpdate) AddMinutes ¶
func (_u *ReminderStateUpdate) AddMinutes(v int) *ReminderStateUpdate
AddMinutes adds value to the "minutes" field.
func (*ReminderStateUpdate) ClearSnoozedUntil ¶
func (_u *ReminderStateUpdate) ClearSnoozedUntil() *ReminderStateUpdate
ClearSnoozedUntil clears the value of the "snoozed_until" field.
func (*ReminderStateUpdate) Exec ¶
func (_u *ReminderStateUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ReminderStateUpdate) ExecContext ¶
func (c *ReminderStateUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateUpdate) ExecX ¶
func (_u *ReminderStateUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateUpdate) Modify ¶
func (_u *ReminderStateUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReminderStateUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ReminderStateUpdate) Mutation ¶
func (_u *ReminderStateUpdate) Mutation() *ReminderStateMutation
Mutation returns the ReminderStateMutation object of the builder.
func (*ReminderStateUpdate) QueryContext ¶
func (c *ReminderStateUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateUpdate) Save ¶
func (_u *ReminderStateUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ReminderStateUpdate) SaveX ¶
func (_u *ReminderStateUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ReminderStateUpdate) SetCalendarID ¶
func (_u *ReminderStateUpdate) SetCalendarID(v string) *ReminderStateUpdate
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateUpdate) SetFiredAt ¶
func (_u *ReminderStateUpdate) SetFiredAt(v time.Time) *ReminderStateUpdate
SetFiredAt sets the "fired_at" field.
func (*ReminderStateUpdate) SetMinutes ¶
func (_u *ReminderStateUpdate) SetMinutes(v int) *ReminderStateUpdate
SetMinutes sets the "minutes" field.
func (*ReminderStateUpdate) SetNillableCalendarID ¶
func (_u *ReminderStateUpdate) SetNillableCalendarID(v *string) *ReminderStateUpdate
SetNillableCalendarID sets the "calendar_id" field if the given value is not nil.
func (*ReminderStateUpdate) SetNillableFiredAt ¶
func (_u *ReminderStateUpdate) SetNillableFiredAt(v *time.Time) *ReminderStateUpdate
SetNillableFiredAt sets the "fired_at" field if the given value is not nil.
func (*ReminderStateUpdate) SetNillableMinutes ¶
func (_u *ReminderStateUpdate) SetNillableMinutes(v *int) *ReminderStateUpdate
SetNillableMinutes sets the "minutes" field if the given value is not nil.
func (*ReminderStateUpdate) SetNillableOccurrenceStart ¶
func (_u *ReminderStateUpdate) SetNillableOccurrenceStart(v *time.Time) *ReminderStateUpdate
SetNillableOccurrenceStart sets the "occurrence_start" field if the given value is not nil.
func (*ReminderStateUpdate) SetNillableSnoozedUntil ¶
func (_u *ReminderStateUpdate) SetNillableSnoozedUntil(v *time.Time) *ReminderStateUpdate
SetNillableSnoozedUntil sets the "snoozed_until" field if the given value is not nil.
func (*ReminderStateUpdate) SetNillableUID ¶
func (_u *ReminderStateUpdate) SetNillableUID(v *string) *ReminderStateUpdate
SetNillableUID sets the "uid" field if the given value is not nil.
func (*ReminderStateUpdate) SetOccurrenceStart ¶
func (_u *ReminderStateUpdate) SetOccurrenceStart(v time.Time) *ReminderStateUpdate
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateUpdate) SetSnoozedUntil ¶
func (_u *ReminderStateUpdate) SetSnoozedUntil(v time.Time) *ReminderStateUpdate
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateUpdate) SetUID ¶
func (_u *ReminderStateUpdate) SetUID(v string) *ReminderStateUpdate
SetUID sets the "uid" field.
func (*ReminderStateUpdate) Where ¶
func (_u *ReminderStateUpdate) Where(ps ...predicate.ReminderState) *ReminderStateUpdate
Where appends a list predicates to the ReminderStateUpdate builder.
type ReminderStateUpdateOne ¶
type ReminderStateUpdateOne struct {
// contains filtered or unexported fields
}
ReminderStateUpdateOne is the builder for updating a single ReminderState entity.
func (*ReminderStateUpdateOne) AddMinutes ¶
func (_u *ReminderStateUpdateOne) AddMinutes(v int) *ReminderStateUpdateOne
AddMinutes adds value to the "minutes" field.
func (*ReminderStateUpdateOne) ClearSnoozedUntil ¶
func (_u *ReminderStateUpdateOne) ClearSnoozedUntil() *ReminderStateUpdateOne
ClearSnoozedUntil clears the value of the "snoozed_until" field.
func (*ReminderStateUpdateOne) Exec ¶
func (_u *ReminderStateUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ReminderStateUpdateOne) ExecContext ¶
func (c *ReminderStateUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*ReminderStateUpdateOne) ExecX ¶
func (_u *ReminderStateUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateUpdateOne) Modify ¶
func (_u *ReminderStateUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ReminderStateUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ReminderStateUpdateOne) Mutation ¶
func (_u *ReminderStateUpdateOne) Mutation() *ReminderStateMutation
Mutation returns the ReminderStateMutation object of the builder.
func (*ReminderStateUpdateOne) QueryContext ¶
func (c *ReminderStateUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*ReminderStateUpdateOne) Save ¶
func (_u *ReminderStateUpdateOne) Save(ctx context.Context) (*ReminderState, error)
Save executes the query and returns the updated ReminderState entity.
func (*ReminderStateUpdateOne) SaveX ¶
func (_u *ReminderStateUpdateOne) SaveX(ctx context.Context) *ReminderState
SaveX is like Save, but panics if an error occurs.
func (*ReminderStateUpdateOne) Select ¶
func (_u *ReminderStateUpdateOne) Select(field string, fields ...string) *ReminderStateUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ReminderStateUpdateOne) SetCalendarID ¶
func (_u *ReminderStateUpdateOne) SetCalendarID(v string) *ReminderStateUpdateOne
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateUpdateOne) SetFiredAt ¶
func (_u *ReminderStateUpdateOne) SetFiredAt(v time.Time) *ReminderStateUpdateOne
SetFiredAt sets the "fired_at" field.
func (*ReminderStateUpdateOne) SetMinutes ¶
func (_u *ReminderStateUpdateOne) SetMinutes(v int) *ReminderStateUpdateOne
SetMinutes sets the "minutes" field.
func (*ReminderStateUpdateOne) SetNillableCalendarID ¶
func (_u *ReminderStateUpdateOne) SetNillableCalendarID(v *string) *ReminderStateUpdateOne
SetNillableCalendarID sets the "calendar_id" field if the given value is not nil.
func (*ReminderStateUpdateOne) SetNillableFiredAt ¶
func (_u *ReminderStateUpdateOne) SetNillableFiredAt(v *time.Time) *ReminderStateUpdateOne
SetNillableFiredAt sets the "fired_at" field if the given value is not nil.
func (*ReminderStateUpdateOne) SetNillableMinutes ¶
func (_u *ReminderStateUpdateOne) SetNillableMinutes(v *int) *ReminderStateUpdateOne
SetNillableMinutes sets the "minutes" field if the given value is not nil.
func (*ReminderStateUpdateOne) SetNillableOccurrenceStart ¶
func (_u *ReminderStateUpdateOne) SetNillableOccurrenceStart(v *time.Time) *ReminderStateUpdateOne
SetNillableOccurrenceStart sets the "occurrence_start" field if the given value is not nil.
func (*ReminderStateUpdateOne) SetNillableSnoozedUntil ¶
func (_u *ReminderStateUpdateOne) SetNillableSnoozedUntil(v *time.Time) *ReminderStateUpdateOne
SetNillableSnoozedUntil sets the "snoozed_until" field if the given value is not nil.
func (*ReminderStateUpdateOne) SetNillableUID ¶
func (_u *ReminderStateUpdateOne) SetNillableUID(v *string) *ReminderStateUpdateOne
SetNillableUID sets the "uid" field if the given value is not nil.
func (*ReminderStateUpdateOne) SetOccurrenceStart ¶
func (_u *ReminderStateUpdateOne) SetOccurrenceStart(v time.Time) *ReminderStateUpdateOne
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateUpdateOne) SetSnoozedUntil ¶
func (_u *ReminderStateUpdateOne) SetSnoozedUntil(v time.Time) *ReminderStateUpdateOne
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateUpdateOne) SetUID ¶
func (_u *ReminderStateUpdateOne) SetUID(v string) *ReminderStateUpdateOne
SetUID sets the "uid" field.
func (*ReminderStateUpdateOne) Where ¶
func (_u *ReminderStateUpdateOne) Where(ps ...predicate.ReminderState) *ReminderStateUpdateOne
Where appends a list predicates to the ReminderStateUpdate builder.
type ReminderStateUpsert ¶
ReminderStateUpsert is the "OnConflict" setter.
func (*ReminderStateUpsert) AddMinutes ¶
func (u *ReminderStateUpsert) AddMinutes(v int) *ReminderStateUpsert
AddMinutes adds v to the "minutes" field.
func (*ReminderStateUpsert) ClearSnoozedUntil ¶
func (u *ReminderStateUpsert) ClearSnoozedUntil() *ReminderStateUpsert
ClearSnoozedUntil clears the value of the "snoozed_until" field.
func (*ReminderStateUpsert) SetCalendarID ¶
func (u *ReminderStateUpsert) SetCalendarID(v string) *ReminderStateUpsert
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateUpsert) SetFiredAt ¶
func (u *ReminderStateUpsert) SetFiredAt(v time.Time) *ReminderStateUpsert
SetFiredAt sets the "fired_at" field.
func (*ReminderStateUpsert) SetMinutes ¶
func (u *ReminderStateUpsert) SetMinutes(v int) *ReminderStateUpsert
SetMinutes sets the "minutes" field.
func (*ReminderStateUpsert) SetOccurrenceStart ¶
func (u *ReminderStateUpsert) SetOccurrenceStart(v time.Time) *ReminderStateUpsert
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateUpsert) SetSnoozedUntil ¶
func (u *ReminderStateUpsert) SetSnoozedUntil(v time.Time) *ReminderStateUpsert
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateUpsert) SetUID ¶
func (u *ReminderStateUpsert) SetUID(v string) *ReminderStateUpsert
SetUID sets the "uid" field.
func (*ReminderStateUpsert) UpdateCalendarID ¶
func (u *ReminderStateUpsert) UpdateCalendarID() *ReminderStateUpsert
UpdateCalendarID sets the "calendar_id" field to the value that was provided on create.
func (*ReminderStateUpsert) UpdateFiredAt ¶
func (u *ReminderStateUpsert) UpdateFiredAt() *ReminderStateUpsert
UpdateFiredAt sets the "fired_at" field to the value that was provided on create.
func (*ReminderStateUpsert) UpdateMinutes ¶
func (u *ReminderStateUpsert) UpdateMinutes() *ReminderStateUpsert
UpdateMinutes sets the "minutes" field to the value that was provided on create.
func (*ReminderStateUpsert) UpdateOccurrenceStart ¶
func (u *ReminderStateUpsert) UpdateOccurrenceStart() *ReminderStateUpsert
UpdateOccurrenceStart sets the "occurrence_start" field to the value that was provided on create.
func (*ReminderStateUpsert) UpdateSnoozedUntil ¶
func (u *ReminderStateUpsert) UpdateSnoozedUntil() *ReminderStateUpsert
UpdateSnoozedUntil sets the "snoozed_until" field to the value that was provided on create.
func (*ReminderStateUpsert) UpdateUID ¶
func (u *ReminderStateUpsert) UpdateUID() *ReminderStateUpsert
UpdateUID sets the "uid" field to the value that was provided on create.
type ReminderStateUpsertBulk ¶
type ReminderStateUpsertBulk struct {
// contains filtered or unexported fields
}
ReminderStateUpsertBulk is the builder for "upsert"-ing a bulk of ReminderState nodes.
func (*ReminderStateUpsertBulk) AddMinutes ¶
func (u *ReminderStateUpsertBulk) AddMinutes(v int) *ReminderStateUpsertBulk
AddMinutes adds v to the "minutes" field.
func (*ReminderStateUpsertBulk) ClearSnoozedUntil ¶
func (u *ReminderStateUpsertBulk) ClearSnoozedUntil() *ReminderStateUpsertBulk
ClearSnoozedUntil clears the value of the "snoozed_until" field.
func (*ReminderStateUpsertBulk) DoNothing ¶
func (u *ReminderStateUpsertBulk) DoNothing() *ReminderStateUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ReminderStateUpsertBulk) Exec ¶
func (u *ReminderStateUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReminderStateUpsertBulk) ExecX ¶
func (u *ReminderStateUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateUpsertBulk) Ignore ¶
func (u *ReminderStateUpsertBulk) Ignore() *ReminderStateUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ReminderState.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ReminderStateUpsertBulk) SetCalendarID ¶
func (u *ReminderStateUpsertBulk) SetCalendarID(v string) *ReminderStateUpsertBulk
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateUpsertBulk) SetFiredAt ¶
func (u *ReminderStateUpsertBulk) SetFiredAt(v time.Time) *ReminderStateUpsertBulk
SetFiredAt sets the "fired_at" field.
func (*ReminderStateUpsertBulk) SetMinutes ¶
func (u *ReminderStateUpsertBulk) SetMinutes(v int) *ReminderStateUpsertBulk
SetMinutes sets the "minutes" field.
func (*ReminderStateUpsertBulk) SetOccurrenceStart ¶
func (u *ReminderStateUpsertBulk) SetOccurrenceStart(v time.Time) *ReminderStateUpsertBulk
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateUpsertBulk) SetSnoozedUntil ¶
func (u *ReminderStateUpsertBulk) SetSnoozedUntil(v time.Time) *ReminderStateUpsertBulk
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateUpsertBulk) SetUID ¶
func (u *ReminderStateUpsertBulk) SetUID(v string) *ReminderStateUpsertBulk
SetUID sets the "uid" field.
func (*ReminderStateUpsertBulk) Update ¶
func (u *ReminderStateUpsertBulk) Update(set func(*ReminderStateUpsert)) *ReminderStateUpsertBulk
Update allows overriding fields `UPDATE` values. See the ReminderStateCreateBulk.OnConflict documentation for more info.
func (*ReminderStateUpsertBulk) UpdateCalendarID ¶
func (u *ReminderStateUpsertBulk) UpdateCalendarID() *ReminderStateUpsertBulk
UpdateCalendarID sets the "calendar_id" field to the value that was provided on create.
func (*ReminderStateUpsertBulk) UpdateFiredAt ¶
func (u *ReminderStateUpsertBulk) UpdateFiredAt() *ReminderStateUpsertBulk
UpdateFiredAt sets the "fired_at" field to the value that was provided on create.
func (*ReminderStateUpsertBulk) UpdateMinutes ¶
func (u *ReminderStateUpsertBulk) UpdateMinutes() *ReminderStateUpsertBulk
UpdateMinutes sets the "minutes" field to the value that was provided on create.
func (*ReminderStateUpsertBulk) UpdateNewValues ¶
func (u *ReminderStateUpsertBulk) UpdateNewValues() *ReminderStateUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ReminderState.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ReminderStateUpsertBulk) UpdateOccurrenceStart ¶
func (u *ReminderStateUpsertBulk) UpdateOccurrenceStart() *ReminderStateUpsertBulk
UpdateOccurrenceStart sets the "occurrence_start" field to the value that was provided on create.
func (*ReminderStateUpsertBulk) UpdateSnoozedUntil ¶
func (u *ReminderStateUpsertBulk) UpdateSnoozedUntil() *ReminderStateUpsertBulk
UpdateSnoozedUntil sets the "snoozed_until" field to the value that was provided on create.
func (*ReminderStateUpsertBulk) UpdateUID ¶
func (u *ReminderStateUpsertBulk) UpdateUID() *ReminderStateUpsertBulk
UpdateUID sets the "uid" field to the value that was provided on create.
type ReminderStateUpsertOne ¶
type ReminderStateUpsertOne struct {
// contains filtered or unexported fields
}
ReminderStateUpsertOne is the builder for "upsert"-ing
one ReminderState node.
func (*ReminderStateUpsertOne) AddMinutes ¶
func (u *ReminderStateUpsertOne) AddMinutes(v int) *ReminderStateUpsertOne
AddMinutes adds v to the "minutes" field.
func (*ReminderStateUpsertOne) ClearSnoozedUntil ¶
func (u *ReminderStateUpsertOne) ClearSnoozedUntil() *ReminderStateUpsertOne
ClearSnoozedUntil clears the value of the "snoozed_until" field.
func (*ReminderStateUpsertOne) DoNothing ¶
func (u *ReminderStateUpsertOne) DoNothing() *ReminderStateUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ReminderStateUpsertOne) Exec ¶
func (u *ReminderStateUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ReminderStateUpsertOne) ExecX ¶
func (u *ReminderStateUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReminderStateUpsertOne) ID ¶
func (u *ReminderStateUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ReminderStateUpsertOne) IDX ¶
func (u *ReminderStateUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ReminderStateUpsertOne) Ignore ¶
func (u *ReminderStateUpsertOne) Ignore() *ReminderStateUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ReminderState.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*ReminderStateUpsertOne) SetCalendarID ¶
func (u *ReminderStateUpsertOne) SetCalendarID(v string) *ReminderStateUpsertOne
SetCalendarID sets the "calendar_id" field.
func (*ReminderStateUpsertOne) SetFiredAt ¶
func (u *ReminderStateUpsertOne) SetFiredAt(v time.Time) *ReminderStateUpsertOne
SetFiredAt sets the "fired_at" field.
func (*ReminderStateUpsertOne) SetMinutes ¶
func (u *ReminderStateUpsertOne) SetMinutes(v int) *ReminderStateUpsertOne
SetMinutes sets the "minutes" field.
func (*ReminderStateUpsertOne) SetOccurrenceStart ¶
func (u *ReminderStateUpsertOne) SetOccurrenceStart(v time.Time) *ReminderStateUpsertOne
SetOccurrenceStart sets the "occurrence_start" field.
func (*ReminderStateUpsertOne) SetSnoozedUntil ¶
func (u *ReminderStateUpsertOne) SetSnoozedUntil(v time.Time) *ReminderStateUpsertOne
SetSnoozedUntil sets the "snoozed_until" field.
func (*ReminderStateUpsertOne) SetUID ¶
func (u *ReminderStateUpsertOne) SetUID(v string) *ReminderStateUpsertOne
SetUID sets the "uid" field.
func (*ReminderStateUpsertOne) Update ¶
func (u *ReminderStateUpsertOne) Update(set func(*ReminderStateUpsert)) *ReminderStateUpsertOne
Update allows overriding fields `UPDATE` values. See the ReminderStateCreate.OnConflict documentation for more info.
func (*ReminderStateUpsertOne) UpdateCalendarID ¶
func (u *ReminderStateUpsertOne) UpdateCalendarID() *ReminderStateUpsertOne
UpdateCalendarID sets the "calendar_id" field to the value that was provided on create.
func (*ReminderStateUpsertOne) UpdateFiredAt ¶
func (u *ReminderStateUpsertOne) UpdateFiredAt() *ReminderStateUpsertOne
UpdateFiredAt sets the "fired_at" field to the value that was provided on create.
func (*ReminderStateUpsertOne) UpdateMinutes ¶
func (u *ReminderStateUpsertOne) UpdateMinutes() *ReminderStateUpsertOne
UpdateMinutes sets the "minutes" field to the value that was provided on create.
func (*ReminderStateUpsertOne) UpdateNewValues ¶
func (u *ReminderStateUpsertOne) UpdateNewValues() *ReminderStateUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ReminderState.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ReminderStateUpsertOne) UpdateOccurrenceStart ¶
func (u *ReminderStateUpsertOne) UpdateOccurrenceStart() *ReminderStateUpsertOne
UpdateOccurrenceStart sets the "occurrence_start" field to the value that was provided on create.
func (*ReminderStateUpsertOne) UpdateSnoozedUntil ¶
func (u *ReminderStateUpsertOne) UpdateSnoozedUntil() *ReminderStateUpsertOne
UpdateSnoozedUntil sets the "snoozed_until" field to the value that was provided on create.
func (*ReminderStateUpsertOne) UpdateUID ¶
func (u *ReminderStateUpsertOne) UpdateUID() *ReminderStateUpsertOne
UpdateUID sets the "uid" field to the value that was provided on create.
type ReminderStates ¶
type ReminderStates []*ReminderState
ReminderStates is a parsable slice of ReminderState.
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 Secret ¶
type Secret struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Key holds the value of the "key" field.
Key string `json:"key,omitempty"`
// Value holds the value of the "value" field.
Value []byte `json:"-"`
// 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"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the SecretQuery when eager-loading is set.
Edges SecretEdges `json:"edges"`
// contains filtered or unexported fields
}
Secret is the model entity for the Secret schema.
func (*Secret) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Secret) GetValue ¶
GetValue returns the ent.Value that was dynamically selected and assigned to the Secret. This includes values selected through modifiers, order, etc.
func (*Secret) QueryAccount ¶
func (_m *Secret) QueryAccount() *AccountQuery
QueryAccount queries the "account" edge of the Secret entity.
func (*Secret) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Secret) Unwrap ¶
Unwrap unwraps the Secret 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 (*Secret) Update ¶
func (_m *Secret) Update() *SecretUpdateOne
Update returns a builder for updating this Secret. Note that you need to call Secret.Unwrap() before calling this method if this Secret was returned from a transaction, and the transaction was committed or rolled back.
type SecretClient ¶
type SecretClient struct {
// contains filtered or unexported fields
}
SecretClient is a client for the Secret schema.
func NewSecretClient ¶
func NewSecretClient(c config) *SecretClient
NewSecretClient returns a client for the Secret from the given config.
func (*SecretClient) Create ¶
func (c *SecretClient) Create() *SecretCreate
Create returns a builder for creating a Secret entity.
func (*SecretClient) CreateBulk ¶
func (c *SecretClient) CreateBulk(builders ...*SecretCreate) *SecretCreateBulk
CreateBulk returns a builder for creating a bulk of Secret entities.
func (*SecretClient) Delete ¶
func (c *SecretClient) Delete() *SecretDelete
Delete returns a delete builder for Secret.
func (*SecretClient) DeleteOne ¶
func (c *SecretClient) DeleteOne(_m *Secret) *SecretDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SecretClient) DeleteOneID ¶
func (c *SecretClient) DeleteOneID(id string) *SecretDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SecretClient) ExecContext ¶
func (c *SecretClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretClient) GetX ¶
func (c *SecretClient) GetX(ctx context.Context, id string) *Secret
GetX is like Get, but panics if an error occurs.
func (*SecretClient) Intercept ¶
func (c *SecretClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `secret.Intercept(f(g(h())))`.
func (*SecretClient) Interceptors ¶
func (c *SecretClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SecretClient) MapCreateBulk ¶
func (c *SecretClient) MapCreateBulk(slice any, setFunc func(*SecretCreate, int)) *SecretCreateBulk
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 (*SecretClient) Query ¶
func (c *SecretClient) Query() *SecretQuery
Query returns a query builder for Secret.
func (*SecretClient) QueryAccount ¶
func (c *SecretClient) QueryAccount(_m *Secret) *AccountQuery
QueryAccount queries the account edge of a Secret.
func (*SecretClient) QueryContext ¶
func (c *SecretClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretClient) Update ¶
func (c *SecretClient) Update() *SecretUpdate
Update returns an update builder for Secret.
func (*SecretClient) UpdateOne ¶
func (c *SecretClient) UpdateOne(_m *Secret) *SecretUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SecretClient) UpdateOneID ¶
func (c *SecretClient) UpdateOneID(id string) *SecretUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SecretClient) Use ¶
func (c *SecretClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `secret.Hooks(f(g(h())))`.
type SecretCreate ¶
type SecretCreate struct {
// contains filtered or unexported fields
}
SecretCreate is the builder for creating a Secret entity.
func (*SecretCreate) Exec ¶
func (_c *SecretCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SecretCreate) ExecContext ¶
func (c *SecretCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretCreate) ExecX ¶
func (_c *SecretCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretCreate) Mutation ¶
func (_c *SecretCreate) Mutation() *SecretMutation
Mutation returns the SecretMutation object of the builder.
func (*SecretCreate) OnConflict ¶
func (_c *SecretCreate) OnConflict(opts ...sql.ConflictOption) *SecretUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Secret.Create().
SetKey(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.SecretUpsert) {
SetKey(v+v).
}).
Exec(ctx)
func (*SecretCreate) OnConflictColumns ¶
func (_c *SecretCreate) OnConflictColumns(columns ...string) *SecretUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Secret.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SecretCreate) QueryContext ¶
func (c *SecretCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretCreate) Save ¶
func (_c *SecretCreate) Save(ctx context.Context) (*Secret, error)
Save creates the Secret in the database.
func (*SecretCreate) SaveX ¶
func (_c *SecretCreate) SaveX(ctx context.Context) *Secret
SaveX calls Save and panics if Save returns an error.
func (*SecretCreate) SetAccount ¶
func (_c *SecretCreate) SetAccount(v *Account) *SecretCreate
SetAccount sets the "account" edge to the Account entity.
func (*SecretCreate) SetAccountID ¶
func (_c *SecretCreate) SetAccountID(id string) *SecretCreate
SetAccountID sets the "account" edge to the Account entity by ID.
func (*SecretCreate) SetCreatedAt ¶
func (_c *SecretCreate) SetCreatedAt(v time.Time) *SecretCreate
SetCreatedAt sets the "created_at" field.
func (*SecretCreate) SetID ¶
func (_c *SecretCreate) SetID(v string) *SecretCreate
SetID sets the "id" field.
func (*SecretCreate) SetKey ¶
func (_c *SecretCreate) SetKey(v string) *SecretCreate
SetKey sets the "key" field.
func (*SecretCreate) SetNillableCreatedAt ¶
func (_c *SecretCreate) SetNillableCreatedAt(v *time.Time) *SecretCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SecretCreate) SetNillableUpdatedAt ¶
func (_c *SecretCreate) SetNillableUpdatedAt(v *time.Time) *SecretCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SecretCreate) SetUpdatedAt ¶
func (_c *SecretCreate) SetUpdatedAt(v time.Time) *SecretCreate
SetUpdatedAt sets the "updated_at" field.
func (*SecretCreate) SetValue ¶
func (_c *SecretCreate) SetValue(v []byte) *SecretCreate
SetValue sets the "value" field.
type SecretCreateBulk ¶
type SecretCreateBulk struct {
// contains filtered or unexported fields
}
SecretCreateBulk is the builder for creating many Secret entities in bulk.
func (*SecretCreateBulk) Exec ¶
func (_c *SecretCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SecretCreateBulk) ExecContext ¶
func (c *SecretCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretCreateBulk) ExecX ¶
func (_c *SecretCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretCreateBulk) OnConflict ¶
func (_c *SecretCreateBulk) OnConflict(opts ...sql.ConflictOption) *SecretUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Secret.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.SecretUpsert) {
SetKey(v+v).
}).
Exec(ctx)
func (*SecretCreateBulk) OnConflictColumns ¶
func (_c *SecretCreateBulk) OnConflictColumns(columns ...string) *SecretUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Secret.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SecretCreateBulk) QueryContext ¶
func (c *SecretCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type SecretDelete ¶
type SecretDelete struct {
// contains filtered or unexported fields
}
SecretDelete is the builder for deleting a Secret entity.
func (*SecretDelete) Exec ¶
func (_d *SecretDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SecretDelete) ExecContext ¶
func (c *SecretDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretDelete) ExecX ¶
func (_d *SecretDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SecretDelete) QueryContext ¶
func (c *SecretDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretDelete) Where ¶
func (_d *SecretDelete) Where(ps ...predicate.Secret) *SecretDelete
Where appends a list predicates to the SecretDelete builder.
type SecretDeleteOne ¶
type SecretDeleteOne struct {
// contains filtered or unexported fields
}
SecretDeleteOne is the builder for deleting a single Secret entity.
func (*SecretDeleteOne) Exec ¶
func (_d *SecretDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SecretDeleteOne) ExecX ¶
func (_d *SecretDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretDeleteOne) Where ¶
func (_d *SecretDeleteOne) Where(ps ...predicate.Secret) *SecretDeleteOne
Where appends a list predicates to the SecretDelete builder.
type SecretEdges ¶
type SecretEdges struct {
// Account holds the value of the account edge.
Account *Account `json:"account,omitempty"`
// contains filtered or unexported fields
}
SecretEdges holds the relations/edges for other nodes in the graph.
func (SecretEdges) AccountOrErr ¶
func (e SecretEdges) AccountOrErr() (*Account, error)
AccountOrErr returns the Account value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SecretGroupBy ¶
type SecretGroupBy struct {
// contains filtered or unexported fields
}
SecretGroupBy is the group-by builder for Secret entities.
func (*SecretGroupBy) Aggregate ¶
func (_g *SecretGroupBy) Aggregate(fns ...AggregateFunc) *SecretGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SecretGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SecretGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SecretGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SecretGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SecretGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SecretGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SecretGroupBy) Scan ¶
func (_g *SecretGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SecretGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SecretMutation ¶
type SecretMutation struct {
// contains filtered or unexported fields
}
SecretMutation represents an operation that mutates the Secret nodes in the graph.
func (*SecretMutation) AccountCleared ¶
func (m *SecretMutation) AccountCleared() bool
AccountCleared reports if the "account" edge to the Account entity was cleared.
func (*SecretMutation) AccountID ¶
func (m *SecretMutation) AccountID() (id string, exists bool)
AccountID returns the "account" edge ID in the mutation.
func (*SecretMutation) AccountIDs ¶
func (m *SecretMutation) AccountIDs() (ids []string)
AccountIDs returns the "account" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AccountID instead. It exists only for internal usage by the builders.
func (*SecretMutation) AddField ¶
func (m *SecretMutation) 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 (*SecretMutation) AddedEdges ¶
func (m *SecretMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SecretMutation) AddedField ¶
func (m *SecretMutation) 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 (*SecretMutation) AddedFields ¶
func (m *SecretMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SecretMutation) AddedIDs ¶
func (m *SecretMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SecretMutation) ClearAccount ¶
func (m *SecretMutation) ClearAccount()
ClearAccount clears the "account" edge to the Account entity.
func (*SecretMutation) ClearEdge ¶
func (m *SecretMutation) 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 (*SecretMutation) ClearField ¶
func (m *SecretMutation) 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 (*SecretMutation) ClearedEdges ¶
func (m *SecretMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SecretMutation) ClearedFields ¶
func (m *SecretMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SecretMutation) Client ¶
func (m SecretMutation) 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 (*SecretMutation) CreatedAt ¶
func (m *SecretMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SecretMutation) EdgeCleared ¶
func (m *SecretMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SecretMutation) ExecContext ¶
func (c *SecretMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretMutation) Field ¶
func (m *SecretMutation) 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 (*SecretMutation) FieldCleared ¶
func (m *SecretMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SecretMutation) Fields ¶
func (m *SecretMutation) 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 (*SecretMutation) ID ¶
func (m *SecretMutation) 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 (*SecretMutation) IDs ¶
func (m *SecretMutation) 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 (*SecretMutation) Key ¶
func (m *SecretMutation) Key() (r string, exists bool)
Key returns the value of the "key" field in the mutation.
func (*SecretMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Secret entity. If the Secret object wasn'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 (*SecretMutation) 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 (*SecretMutation) OldKey ¶
func (m *SecretMutation) OldKey(ctx context.Context) (v string, err error)
OldKey returns the old "key" field's value of the Secret entity. If the Secret object wasn'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 (*SecretMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Secret entity. If the Secret object wasn'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 (*SecretMutation) OldValue ¶
func (m *SecretMutation) OldValue(ctx context.Context) (v []byte, err error)
OldValue returns the old "value" field's value of the Secret entity. If the Secret object wasn'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 (*SecretMutation) QueryContext ¶
func (c *SecretMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretMutation) RemovedEdges ¶
func (m *SecretMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SecretMutation) RemovedIDs ¶
func (m *SecretMutation) 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 (*SecretMutation) ResetAccount ¶
func (m *SecretMutation) ResetAccount()
ResetAccount resets all changes to the "account" edge.
func (*SecretMutation) ResetCreatedAt ¶
func (m *SecretMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SecretMutation) ResetEdge ¶
func (m *SecretMutation) 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 (*SecretMutation) ResetField ¶
func (m *SecretMutation) 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 (*SecretMutation) ResetKey ¶
func (m *SecretMutation) ResetKey()
ResetKey resets all changes to the "key" field.
func (*SecretMutation) ResetUpdatedAt ¶
func (m *SecretMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SecretMutation) ResetValue ¶
func (m *SecretMutation) ResetValue()
ResetValue resets all changes to the "value" field.
func (*SecretMutation) SetAccountID ¶
func (m *SecretMutation) SetAccountID(id string)
SetAccountID sets the "account" edge to the Account entity by id.
func (*SecretMutation) SetCreatedAt ¶
func (m *SecretMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SecretMutation) SetField ¶
func (m *SecretMutation) 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 (*SecretMutation) SetID ¶
func (m *SecretMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Secret entities.
func (*SecretMutation) SetKey ¶
func (m *SecretMutation) SetKey(s string)
SetKey sets the "key" field.
func (*SecretMutation) SetOp ¶
func (m *SecretMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SecretMutation) SetUpdatedAt ¶
func (m *SecretMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SecretMutation) SetValue ¶
func (m *SecretMutation) SetValue(b []byte)
SetValue sets the "value" field.
func (SecretMutation) Tx ¶
func (m SecretMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SecretMutation) Type ¶
func (m *SecretMutation) Type() string
Type returns the node type of this mutation (Secret).
func (*SecretMutation) UpdatedAt ¶
func (m *SecretMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SecretMutation) Value ¶
func (m *SecretMutation) Value() (r []byte, exists bool)
Value returns the value of the "value" field in the mutation.
func (*SecretMutation) Where ¶
func (m *SecretMutation) Where(ps ...predicate.Secret)
Where appends a list predicates to the SecretMutation builder.
func (*SecretMutation) WhereP ¶
func (m *SecretMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SecretMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SecretQuery ¶
type SecretQuery struct {
// contains filtered or unexported fields
}
SecretQuery is the builder for querying Secret entities.
func (*SecretQuery) Aggregate ¶
func (_q *SecretQuery) Aggregate(fns ...AggregateFunc) *SecretSelect
Aggregate returns a SecretSelect configured with the given aggregations.
func (*SecretQuery) All ¶
func (_q *SecretQuery) All(ctx context.Context) ([]*Secret, error)
All executes the query and returns a list of Secrets.
func (*SecretQuery) AllX ¶
func (_q *SecretQuery) AllX(ctx context.Context) []*Secret
AllX is like All, but panics if an error occurs.
func (*SecretQuery) Clone ¶
func (_q *SecretQuery) Clone() *SecretQuery
Clone returns a duplicate of the SecretQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SecretQuery) Count ¶
func (_q *SecretQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SecretQuery) CountX ¶
func (_q *SecretQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SecretQuery) ExecContext ¶
func (c *SecretQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretQuery) Exist ¶
func (_q *SecretQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SecretQuery) ExistX ¶
func (_q *SecretQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SecretQuery) First ¶
func (_q *SecretQuery) First(ctx context.Context) (*Secret, error)
First returns the first Secret entity from the query. Returns a *NotFoundError when no Secret was found.
func (*SecretQuery) FirstID ¶
func (_q *SecretQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Secret ID from the query. Returns a *NotFoundError when no Secret ID was found.
func (*SecretQuery) FirstIDX ¶
func (_q *SecretQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*SecretQuery) FirstX ¶
func (_q *SecretQuery) FirstX(ctx context.Context) *Secret
FirstX is like First, but panics if an error occurs.
func (*SecretQuery) GroupBy ¶
func (_q *SecretQuery) GroupBy(field string, fields ...string) *SecretGroupBy
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 {
Key string `json:"key,omitempty"`
Count int `json:"count,omitempty"`
}
client.Secret.Query().
GroupBy(secret.FieldKey).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*SecretQuery) IDs ¶
func (_q *SecretQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Secret IDs.
func (*SecretQuery) IDsX ¶
func (_q *SecretQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*SecretQuery) Limit ¶
func (_q *SecretQuery) Limit(limit int) *SecretQuery
Limit the number of records to be returned by this query.
func (*SecretQuery) Modify ¶
func (_q *SecretQuery) Modify(modifiers ...func(s *sql.Selector)) *SecretSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*SecretQuery) Offset ¶
func (_q *SecretQuery) Offset(offset int) *SecretQuery
Offset to start from.
func (*SecretQuery) Only ¶
func (_q *SecretQuery) Only(ctx context.Context) (*Secret, error)
Only returns a single Secret entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Secret entity is found. Returns a *NotFoundError when no Secret entities are found.
func (*SecretQuery) OnlyID ¶
func (_q *SecretQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Secret ID in the query. Returns a *NotSingularError when more than one Secret ID is found. Returns a *NotFoundError when no entities are found.
func (*SecretQuery) OnlyIDX ¶
func (_q *SecretQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SecretQuery) OnlyX ¶
func (_q *SecretQuery) OnlyX(ctx context.Context) *Secret
OnlyX is like Only, but panics if an error occurs.
func (*SecretQuery) Order ¶
func (_q *SecretQuery) Order(o ...secret.OrderOption) *SecretQuery
Order specifies how the records should be ordered.
func (*SecretQuery) QueryAccount ¶
func (_q *SecretQuery) QueryAccount() *AccountQuery
QueryAccount chains the current query on the "account" edge.
func (*SecretQuery) QueryContext ¶
func (c *SecretQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretQuery) Select ¶
func (_q *SecretQuery) Select(fields ...string) *SecretSelect
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 {
Key string `json:"key,omitempty"`
}
client.Secret.Query().
Select(secret.FieldKey).
Scan(ctx, &v)
func (*SecretQuery) Unique ¶
func (_q *SecretQuery) Unique(unique bool) *SecretQuery
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 (*SecretQuery) Where ¶
func (_q *SecretQuery) Where(ps ...predicate.Secret) *SecretQuery
Where adds a new predicate for the SecretQuery builder.
func (*SecretQuery) WithAccount ¶
func (_q *SecretQuery) WithAccount(opts ...func(*AccountQuery)) *SecretQuery
WithAccount tells the query-builder to eager-load the nodes that are connected to the "account" edge. The optional arguments are used to configure the query builder of the edge.
type SecretSelect ¶
type SecretSelect struct {
*SecretQuery
// contains filtered or unexported fields
}
SecretSelect is the builder for selecting fields of Secret entities.
func (*SecretSelect) Aggregate ¶
func (_s *SecretSelect) Aggregate(fns ...AggregateFunc) *SecretSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SecretSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SecretSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (SecretSelect) ExecContext ¶
func (c SecretSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SecretSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SecretSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SecretSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SecretSelect) Modify ¶
func (_s *SecretSelect) Modify(modifiers ...func(s *sql.Selector)) *SecretSelect
Modify adds a query modifier for attaching custom logic to queries.
func (SecretSelect) QueryContext ¶
func (c SecretSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretSelect) Scan ¶
func (_s *SecretSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SecretSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SecretUpdate ¶
type SecretUpdate struct {
// contains filtered or unexported fields
}
SecretUpdate is the builder for updating Secret entities.
func (*SecretUpdate) ClearAccount ¶
func (_u *SecretUpdate) ClearAccount() *SecretUpdate
ClearAccount clears the "account" edge to the Account entity.
func (*SecretUpdate) Exec ¶
func (_u *SecretUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SecretUpdate) ExecContext ¶
func (c *SecretUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretUpdate) ExecX ¶
func (_u *SecretUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretUpdate) Modify ¶
func (_u *SecretUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SecretUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*SecretUpdate) Mutation ¶
func (_u *SecretUpdate) Mutation() *SecretMutation
Mutation returns the SecretMutation object of the builder.
func (*SecretUpdate) QueryContext ¶
func (c *SecretUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretUpdate) Save ¶
func (_u *SecretUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SecretUpdate) SaveX ¶
func (_u *SecretUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SecretUpdate) SetAccount ¶
func (_u *SecretUpdate) SetAccount(v *Account) *SecretUpdate
SetAccount sets the "account" edge to the Account entity.
func (*SecretUpdate) SetAccountID ¶
func (_u *SecretUpdate) SetAccountID(id string) *SecretUpdate
SetAccountID sets the "account" edge to the Account entity by ID.
func (*SecretUpdate) SetKey ¶
func (_u *SecretUpdate) SetKey(v string) *SecretUpdate
SetKey sets the "key" field.
func (*SecretUpdate) SetNillableKey ¶
func (_u *SecretUpdate) SetNillableKey(v *string) *SecretUpdate
SetNillableKey sets the "key" field if the given value is not nil.
func (*SecretUpdate) SetUpdatedAt ¶
func (_u *SecretUpdate) SetUpdatedAt(v time.Time) *SecretUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SecretUpdate) SetValue ¶
func (_u *SecretUpdate) SetValue(v []byte) *SecretUpdate
SetValue sets the "value" field.
func (*SecretUpdate) Where ¶
func (_u *SecretUpdate) Where(ps ...predicate.Secret) *SecretUpdate
Where appends a list predicates to the SecretUpdate builder.
type SecretUpdateOne ¶
type SecretUpdateOne struct {
// contains filtered or unexported fields
}
SecretUpdateOne is the builder for updating a single Secret entity.
func (*SecretUpdateOne) ClearAccount ¶
func (_u *SecretUpdateOne) ClearAccount() *SecretUpdateOne
ClearAccount clears the "account" edge to the Account entity.
func (*SecretUpdateOne) Exec ¶
func (_u *SecretUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SecretUpdateOne) ExecContext ¶
func (c *SecretUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*SecretUpdateOne) ExecX ¶
func (_u *SecretUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretUpdateOne) Modify ¶
func (_u *SecretUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SecretUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*SecretUpdateOne) Mutation ¶
func (_u *SecretUpdateOne) Mutation() *SecretMutation
Mutation returns the SecretMutation object of the builder.
func (*SecretUpdateOne) QueryContext ¶
func (c *SecretUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*SecretUpdateOne) Save ¶
func (_u *SecretUpdateOne) Save(ctx context.Context) (*Secret, error)
Save executes the query and returns the updated Secret entity.
func (*SecretUpdateOne) SaveX ¶
func (_u *SecretUpdateOne) SaveX(ctx context.Context) *Secret
SaveX is like Save, but panics if an error occurs.
func (*SecretUpdateOne) Select ¶
func (_u *SecretUpdateOne) Select(field string, fields ...string) *SecretUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SecretUpdateOne) SetAccount ¶
func (_u *SecretUpdateOne) SetAccount(v *Account) *SecretUpdateOne
SetAccount sets the "account" edge to the Account entity.
func (*SecretUpdateOne) SetAccountID ¶
func (_u *SecretUpdateOne) SetAccountID(id string) *SecretUpdateOne
SetAccountID sets the "account" edge to the Account entity by ID.
func (*SecretUpdateOne) SetKey ¶
func (_u *SecretUpdateOne) SetKey(v string) *SecretUpdateOne
SetKey sets the "key" field.
func (*SecretUpdateOne) SetNillableKey ¶
func (_u *SecretUpdateOne) SetNillableKey(v *string) *SecretUpdateOne
SetNillableKey sets the "key" field if the given value is not nil.
func (*SecretUpdateOne) SetUpdatedAt ¶
func (_u *SecretUpdateOne) SetUpdatedAt(v time.Time) *SecretUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SecretUpdateOne) SetValue ¶
func (_u *SecretUpdateOne) SetValue(v []byte) *SecretUpdateOne
SetValue sets the "value" field.
func (*SecretUpdateOne) Where ¶
func (_u *SecretUpdateOne) Where(ps ...predicate.Secret) *SecretUpdateOne
Where appends a list predicates to the SecretUpdate builder.
type SecretUpsert ¶
SecretUpsert is the "OnConflict" setter.
func (*SecretUpsert) SetKey ¶
func (u *SecretUpsert) SetKey(v string) *SecretUpsert
SetKey sets the "key" field.
func (*SecretUpsert) SetUpdatedAt ¶
func (u *SecretUpsert) SetUpdatedAt(v time.Time) *SecretUpsert
SetUpdatedAt sets the "updated_at" field.
func (*SecretUpsert) SetValue ¶
func (u *SecretUpsert) SetValue(v []byte) *SecretUpsert
SetValue sets the "value" field.
func (*SecretUpsert) UpdateKey ¶
func (u *SecretUpsert) UpdateKey() *SecretUpsert
UpdateKey sets the "key" field to the value that was provided on create.
func (*SecretUpsert) UpdateUpdatedAt ¶
func (u *SecretUpsert) UpdateUpdatedAt() *SecretUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*SecretUpsert) UpdateValue ¶
func (u *SecretUpsert) UpdateValue() *SecretUpsert
UpdateValue sets the "value" field to the value that was provided on create.
type SecretUpsertBulk ¶
type SecretUpsertBulk struct {
// contains filtered or unexported fields
}
SecretUpsertBulk is the builder for "upsert"-ing a bulk of Secret nodes.
func (*SecretUpsertBulk) DoNothing ¶
func (u *SecretUpsertBulk) DoNothing() *SecretUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SecretUpsertBulk) Exec ¶
func (u *SecretUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SecretUpsertBulk) ExecX ¶
func (u *SecretUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretUpsertBulk) Ignore ¶
func (u *SecretUpsertBulk) Ignore() *SecretUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Secret.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SecretUpsertBulk) SetKey ¶
func (u *SecretUpsertBulk) SetKey(v string) *SecretUpsertBulk
SetKey sets the "key" field.
func (*SecretUpsertBulk) SetUpdatedAt ¶
func (u *SecretUpsertBulk) SetUpdatedAt(v time.Time) *SecretUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*SecretUpsertBulk) SetValue ¶
func (u *SecretUpsertBulk) SetValue(v []byte) *SecretUpsertBulk
SetValue sets the "value" field.
func (*SecretUpsertBulk) Update ¶
func (u *SecretUpsertBulk) Update(set func(*SecretUpsert)) *SecretUpsertBulk
Update allows overriding fields `UPDATE` values. See the SecretCreateBulk.OnConflict documentation for more info.
func (*SecretUpsertBulk) UpdateKey ¶
func (u *SecretUpsertBulk) UpdateKey() *SecretUpsertBulk
UpdateKey sets the "key" field to the value that was provided on create.
func (*SecretUpsertBulk) UpdateNewValues ¶
func (u *SecretUpsertBulk) UpdateNewValues() *SecretUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Secret.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(secret.FieldID)
}),
).
Exec(ctx)
func (*SecretUpsertBulk) UpdateUpdatedAt ¶
func (u *SecretUpsertBulk) UpdateUpdatedAt() *SecretUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*SecretUpsertBulk) UpdateValue ¶
func (u *SecretUpsertBulk) UpdateValue() *SecretUpsertBulk
UpdateValue sets the "value" field to the value that was provided on create.
type SecretUpsertOne ¶
type SecretUpsertOne struct {
// contains filtered or unexported fields
}
SecretUpsertOne is the builder for "upsert"-ing
one Secret node.
func (*SecretUpsertOne) DoNothing ¶
func (u *SecretUpsertOne) DoNothing() *SecretUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SecretUpsertOne) Exec ¶
func (u *SecretUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SecretUpsertOne) ExecX ¶
func (u *SecretUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SecretUpsertOne) ID ¶
func (u *SecretUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SecretUpsertOne) IDX ¶
func (u *SecretUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*SecretUpsertOne) Ignore ¶
func (u *SecretUpsertOne) Ignore() *SecretUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Secret.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*SecretUpsertOne) SetKey ¶
func (u *SecretUpsertOne) SetKey(v string) *SecretUpsertOne
SetKey sets the "key" field.
func (*SecretUpsertOne) SetUpdatedAt ¶
func (u *SecretUpsertOne) SetUpdatedAt(v time.Time) *SecretUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*SecretUpsertOne) SetValue ¶
func (u *SecretUpsertOne) SetValue(v []byte) *SecretUpsertOne
SetValue sets the "value" field.
func (*SecretUpsertOne) Update ¶
func (u *SecretUpsertOne) Update(set func(*SecretUpsert)) *SecretUpsertOne
Update allows overriding fields `UPDATE` values. See the SecretCreate.OnConflict documentation for more info.
func (*SecretUpsertOne) UpdateKey ¶
func (u *SecretUpsertOne) UpdateKey() *SecretUpsertOne
UpdateKey sets the "key" field to the value that was provided on create.
func (*SecretUpsertOne) UpdateNewValues ¶
func (u *SecretUpsertOne) UpdateNewValues() *SecretUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Secret.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(secret.FieldID)
}),
).
Exec(ctx)
func (*SecretUpsertOne) UpdateUpdatedAt ¶
func (u *SecretUpsertOne) UpdateUpdatedAt() *SecretUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*SecretUpsertOne) UpdateValue ¶
func (u *SecretUpsertOne) UpdateValue() *SecretUpsertOne
UpdateValue sets the "value" field to the value that was provided on create.
type Task ¶
type Task struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// UID holds the value of the "uid" field.
UID string `json:"uid,omitempty"`
// RemoteID holds the value of the "remote_id" field.
RemoteID string `json:"remote_id,omitempty"`
// Etag holds the value of the "etag" field.
Etag string `json:"etag,omitempty"`
// Summary holds the value of the "summary" field.
Summary string `json:"summary,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// Location holds the value of the "location" field.
Location string `json:"location,omitempty"`
// Status holds the value of the "status" field.
Status task.Status `json:"status,omitempty"`
// Priority holds the value of the "priority" field.
Priority int `json:"priority,omitempty"`
// PercentComplete holds the value of the "percent_complete" field.
PercentComplete int `json:"percent_complete,omitempty"`
// Due holds the value of the "due" field.
Due *time.Time `json:"due,omitempty"`
// Start holds the value of the "start" field.
Start *time.Time `json:"start,omitempty"`
// Completed holds the value of the "completed" field.
Completed *time.Time `json:"completed,omitempty"`
// AllDay holds the value of the "all_day" field.
AllDay bool `json:"all_day,omitempty"`
// DueTz holds the value of the "due_tz" field.
DueTz string `json:"due_tz,omitempty"`
// StartTz holds the value of the "start_tz" field.
StartTz string `json:"start_tz,omitempty"`
// ParentUID holds the value of the "parent_uid" field.
ParentUID string `json:"parent_uid,omitempty"`
// Recurrence holds the value of the "recurrence" field.
Recurrence map[string]interface{} `json:"recurrence,omitempty"`
// Reminders holds the value of the "reminders" field.
Reminders []map[string]interface{} `json:"reminders,omitempty"`
// Categories holds the value of the "categories" field.
Categories []string `json:"categories,omitempty"`
// RawIcs holds the value of the "raw_ics" field.
RawIcs string `json:"raw_ics,omitempty"`
// Created holds the value of the "created" field.
Created time.Time `json:"created,omitempty"`
// Updated holds the value of the "updated" field.
Updated time.Time `json:"updated,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the TaskQuery when eager-loading is set.
Edges TaskEdges `json:"edges"`
// contains filtered or unexported fields
}
Task is the model entity for the Task schema.
func (*Task) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Task) QueryCalendar ¶
func (_m *Task) QueryCalendar() *CalendarQuery
QueryCalendar queries the "calendar" edge of the Task entity.
func (*Task) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Task) Unwrap ¶
Unwrap unwraps the Task 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 (*Task) Update ¶
func (_m *Task) Update() *TaskUpdateOne
Update returns a builder for updating this Task. Note that you need to call Task.Unwrap() before calling this method if this Task was returned from a transaction, and the transaction was committed or rolled back.
type TaskClient ¶
type TaskClient struct {
// contains filtered or unexported fields
}
TaskClient is a client for the Task schema.
func NewTaskClient ¶
func NewTaskClient(c config) *TaskClient
NewTaskClient returns a client for the Task from the given config.
func (*TaskClient) Create ¶
func (c *TaskClient) Create() *TaskCreate
Create returns a builder for creating a Task entity.
func (*TaskClient) CreateBulk ¶
func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk
CreateBulk returns a builder for creating a bulk of Task entities.
func (*TaskClient) Delete ¶
func (c *TaskClient) Delete() *TaskDelete
Delete returns a delete builder for Task.
func (*TaskClient) DeleteOne ¶
func (c *TaskClient) DeleteOne(_m *Task) *TaskDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TaskClient) DeleteOneID ¶
func (c *TaskClient) DeleteOneID(id string) *TaskDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TaskClient) ExecContext ¶
func (c *TaskClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskClient) GetX ¶
func (c *TaskClient) GetX(ctx context.Context, id string) *Task
GetX is like Get, but panics if an error occurs.
func (*TaskClient) Intercept ¶
func (c *TaskClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `task.Intercept(f(g(h())))`.
func (*TaskClient) Interceptors ¶
func (c *TaskClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TaskClient) MapCreateBulk ¶
func (c *TaskClient) MapCreateBulk(slice any, setFunc func(*TaskCreate, int)) *TaskCreateBulk
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 (*TaskClient) Query ¶
func (c *TaskClient) Query() *TaskQuery
Query returns a query builder for Task.
func (*TaskClient) QueryCalendar ¶
func (c *TaskClient) QueryCalendar(_m *Task) *CalendarQuery
QueryCalendar queries the calendar edge of a Task.
func (*TaskClient) QueryContext ¶
func (c *TaskClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskClient) Update ¶
func (c *TaskClient) Update() *TaskUpdate
Update returns an update builder for Task.
func (*TaskClient) UpdateOne ¶
func (c *TaskClient) UpdateOne(_m *Task) *TaskUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TaskClient) UpdateOneID ¶
func (c *TaskClient) UpdateOneID(id string) *TaskUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TaskClient) Use ¶
func (c *TaskClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `task.Hooks(f(g(h())))`.
type TaskCreate ¶
type TaskCreate struct {
// contains filtered or unexported fields
}
TaskCreate is the builder for creating a Task entity.
func (*TaskCreate) Exec ¶
func (_c *TaskCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskCreate) ExecContext ¶
func (c *TaskCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskCreate) ExecX ¶
func (_c *TaskCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskCreate) Mutation ¶
func (_c *TaskCreate) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskCreate) OnConflict ¶
func (_c *TaskCreate) OnConflict(opts ...sql.ConflictOption) *TaskUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Task.Create().
SetUID(v).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.TaskUpsert) {
SetUID(v+v).
}).
Exec(ctx)
func (*TaskCreate) OnConflictColumns ¶
func (_c *TaskCreate) OnConflictColumns(columns ...string) *TaskUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Task.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*TaskCreate) QueryContext ¶
func (c *TaskCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskCreate) Save ¶
func (_c *TaskCreate) Save(ctx context.Context) (*Task, error)
Save creates the Task in the database.
func (*TaskCreate) SaveX ¶
func (_c *TaskCreate) SaveX(ctx context.Context) *Task
SaveX calls Save and panics if Save returns an error.
func (*TaskCreate) SetAllDay ¶
func (_c *TaskCreate) SetAllDay(v bool) *TaskCreate
SetAllDay sets the "all_day" field.
func (*TaskCreate) SetCalendar ¶
func (_c *TaskCreate) SetCalendar(v *Calendar) *TaskCreate
SetCalendar sets the "calendar" edge to the Calendar entity.
func (*TaskCreate) SetCalendarID ¶
func (_c *TaskCreate) SetCalendarID(id string) *TaskCreate
SetCalendarID sets the "calendar" edge to the Calendar entity by ID.
func (*TaskCreate) SetCategories ¶
func (_c *TaskCreate) SetCategories(v []string) *TaskCreate
SetCategories sets the "categories" field.
func (*TaskCreate) SetCompleted ¶
func (_c *TaskCreate) SetCompleted(v time.Time) *TaskCreate
SetCompleted sets the "completed" field.
func (*TaskCreate) SetCreated ¶
func (_c *TaskCreate) SetCreated(v time.Time) *TaskCreate
SetCreated sets the "created" field.
func (*TaskCreate) SetDescription ¶
func (_c *TaskCreate) SetDescription(v string) *TaskCreate
SetDescription sets the "description" field.
func (*TaskCreate) SetDue ¶
func (_c *TaskCreate) SetDue(v time.Time) *TaskCreate
SetDue sets the "due" field.
func (*TaskCreate) SetDueTz ¶
func (_c *TaskCreate) SetDueTz(v string) *TaskCreate
SetDueTz sets the "due_tz" field.
func (*TaskCreate) SetEtag ¶
func (_c *TaskCreate) SetEtag(v string) *TaskCreate
SetEtag sets the "etag" field.
func (*TaskCreate) SetID ¶
func (_c *TaskCreate) SetID(v string) *TaskCreate
SetID sets the "id" field.
func (*TaskCreate) SetLocation ¶
func (_c *TaskCreate) SetLocation(v string) *TaskCreate
SetLocation sets the "location" field.
func (*TaskCreate) SetNillableAllDay ¶
func (_c *TaskCreate) SetNillableAllDay(v *bool) *TaskCreate
SetNillableAllDay sets the "all_day" field if the given value is not nil.
func (*TaskCreate) SetNillableCompleted ¶
func (_c *TaskCreate) SetNillableCompleted(v *time.Time) *TaskCreate
SetNillableCompleted sets the "completed" field if the given value is not nil.
func (*TaskCreate) SetNillableCreated ¶
func (_c *TaskCreate) SetNillableCreated(v *time.Time) *TaskCreate
SetNillableCreated sets the "created" field if the given value is not nil.
func (*TaskCreate) SetNillableDescription ¶
func (_c *TaskCreate) SetNillableDescription(v *string) *TaskCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*TaskCreate) SetNillableDue ¶
func (_c *TaskCreate) SetNillableDue(v *time.Time) *TaskCreate
SetNillableDue sets the "due" field if the given value is not nil.
func (*TaskCreate) SetNillableDueTz ¶
func (_c *TaskCreate) SetNillableDueTz(v *string) *TaskCreate
SetNillableDueTz sets the "due_tz" field if the given value is not nil.
func (*TaskCreate) SetNillableEtag ¶
func (_c *TaskCreate) SetNillableEtag(v *string) *TaskCreate
SetNillableEtag sets the "etag" field if the given value is not nil.
func (*TaskCreate) SetNillableLocation ¶
func (_c *TaskCreate) SetNillableLocation(v *string) *TaskCreate
SetNillableLocation sets the "location" field if the given value is not nil.
func (*TaskCreate) SetNillableParentUID ¶
func (_c *TaskCreate) SetNillableParentUID(v *string) *TaskCreate
SetNillableParentUID sets the "parent_uid" field if the given value is not nil.
func (*TaskCreate) SetNillablePercentComplete ¶
func (_c *TaskCreate) SetNillablePercentComplete(v *int) *TaskCreate
SetNillablePercentComplete sets the "percent_complete" field if the given value is not nil.
func (*TaskCreate) SetNillablePriority ¶
func (_c *TaskCreate) SetNillablePriority(v *int) *TaskCreate
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*TaskCreate) SetNillableRawIcs ¶
func (_c *TaskCreate) SetNillableRawIcs(v *string) *TaskCreate
SetNillableRawIcs sets the "raw_ics" field if the given value is not nil.
func (*TaskCreate) SetNillableRemoteID ¶
func (_c *TaskCreate) SetNillableRemoteID(v *string) *TaskCreate
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*TaskCreate) SetNillableStart ¶
func (_c *TaskCreate) SetNillableStart(v *time.Time) *TaskCreate
SetNillableStart sets the "start" field if the given value is not nil.
func (*TaskCreate) SetNillableStartTz ¶
func (_c *TaskCreate) SetNillableStartTz(v *string) *TaskCreate
SetNillableStartTz sets the "start_tz" field if the given value is not nil.
func (*TaskCreate) SetNillableStatus ¶
func (_c *TaskCreate) SetNillableStatus(v *task.Status) *TaskCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*TaskCreate) SetNillableUpdated ¶
func (_c *TaskCreate) SetNillableUpdated(v *time.Time) *TaskCreate
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*TaskCreate) SetParentUID ¶
func (_c *TaskCreate) SetParentUID(v string) *TaskCreate
SetParentUID sets the "parent_uid" field.
func (*TaskCreate) SetPercentComplete ¶
func (_c *TaskCreate) SetPercentComplete(v int) *TaskCreate
SetPercentComplete sets the "percent_complete" field.
func (*TaskCreate) SetPriority ¶
func (_c *TaskCreate) SetPriority(v int) *TaskCreate
SetPriority sets the "priority" field.
func (*TaskCreate) SetRawIcs ¶
func (_c *TaskCreate) SetRawIcs(v string) *TaskCreate
SetRawIcs sets the "raw_ics" field.
func (*TaskCreate) SetRecurrence ¶
func (_c *TaskCreate) SetRecurrence(v map[string]interface{}) *TaskCreate
SetRecurrence sets the "recurrence" field.
func (*TaskCreate) SetReminders ¶
func (_c *TaskCreate) SetReminders(v []map[string]interface{}) *TaskCreate
SetReminders sets the "reminders" field.
func (*TaskCreate) SetRemoteID ¶
func (_c *TaskCreate) SetRemoteID(v string) *TaskCreate
SetRemoteID sets the "remote_id" field.
func (*TaskCreate) SetStart ¶
func (_c *TaskCreate) SetStart(v time.Time) *TaskCreate
SetStart sets the "start" field.
func (*TaskCreate) SetStartTz ¶
func (_c *TaskCreate) SetStartTz(v string) *TaskCreate
SetStartTz sets the "start_tz" field.
func (*TaskCreate) SetStatus ¶
func (_c *TaskCreate) SetStatus(v task.Status) *TaskCreate
SetStatus sets the "status" field.
func (*TaskCreate) SetSummary ¶
func (_c *TaskCreate) SetSummary(v string) *TaskCreate
SetSummary sets the "summary" field.
func (*TaskCreate) SetUID ¶
func (_c *TaskCreate) SetUID(v string) *TaskCreate
SetUID sets the "uid" field.
func (*TaskCreate) SetUpdated ¶
func (_c *TaskCreate) SetUpdated(v time.Time) *TaskCreate
SetUpdated sets the "updated" field.
type TaskCreateBulk ¶
type TaskCreateBulk struct {
// contains filtered or unexported fields
}
TaskCreateBulk is the builder for creating many Task entities in bulk.
func (*TaskCreateBulk) Exec ¶
func (_c *TaskCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskCreateBulk) ExecContext ¶
func (c *TaskCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskCreateBulk) ExecX ¶
func (_c *TaskCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskCreateBulk) OnConflict ¶
func (_c *TaskCreateBulk) OnConflict(opts ...sql.ConflictOption) *TaskUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Task.CreateBulk(builders...).
OnConflict(
// Update the row with the new values
// the was proposed for insertion.
sql.ResolveWithNewValues(),
).
// Override some of the fields with custom
// update values.
Update(func(u *ent.TaskUpsert) {
SetUID(v+v).
}).
Exec(ctx)
func (*TaskCreateBulk) OnConflictColumns ¶
func (_c *TaskCreateBulk) OnConflictColumns(columns ...string) *TaskUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Task.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*TaskCreateBulk) QueryContext ¶
func (c *TaskCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type TaskDelete ¶
type TaskDelete struct {
// contains filtered or unexported fields
}
TaskDelete is the builder for deleting a Task entity.
func (*TaskDelete) Exec ¶
func (_d *TaskDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TaskDelete) ExecContext ¶
func (c *TaskDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskDelete) ExecX ¶
func (_d *TaskDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TaskDelete) QueryContext ¶
func (c *TaskDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskDelete) Where ¶
func (_d *TaskDelete) Where(ps ...predicate.Task) *TaskDelete
Where appends a list predicates to the TaskDelete builder.
type TaskDeleteOne ¶
type TaskDeleteOne struct {
// contains filtered or unexported fields
}
TaskDeleteOne is the builder for deleting a single Task entity.
func (*TaskDeleteOne) Exec ¶
func (_d *TaskDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TaskDeleteOne) ExecX ¶
func (_d *TaskDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskDeleteOne) Where ¶
func (_d *TaskDeleteOne) Where(ps ...predicate.Task) *TaskDeleteOne
Where appends a list predicates to the TaskDelete builder.
type TaskEdges ¶
type TaskEdges struct {
// Calendar holds the value of the calendar edge.
Calendar *Calendar `json:"calendar,omitempty"`
// contains filtered or unexported fields
}
TaskEdges holds the relations/edges for other nodes in the graph.
func (TaskEdges) CalendarOrErr ¶
CalendarOrErr returns the Calendar value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type TaskGroupBy ¶
type TaskGroupBy struct {
// contains filtered or unexported fields
}
TaskGroupBy is the group-by builder for Task entities.
func (*TaskGroupBy) Aggregate ¶
func (_g *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TaskGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Scan ¶
func (_g *TaskGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TaskGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TaskMutation ¶
type TaskMutation struct {
// contains filtered or unexported fields
}
TaskMutation represents an operation that mutates the Task nodes in the graph.
func (*TaskMutation) AddField ¶
func (m *TaskMutation) 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 (*TaskMutation) AddPercentComplete ¶
func (m *TaskMutation) AddPercentComplete(i int)
AddPercentComplete adds i to the "percent_complete" field.
func (*TaskMutation) AddPriority ¶
func (m *TaskMutation) AddPriority(i int)
AddPriority adds i to the "priority" field.
func (*TaskMutation) AddedEdges ¶
func (m *TaskMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TaskMutation) AddedField ¶
func (m *TaskMutation) 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 (*TaskMutation) AddedFields ¶
func (m *TaskMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TaskMutation) AddedIDs ¶
func (m *TaskMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TaskMutation) AddedPercentComplete ¶
func (m *TaskMutation) AddedPercentComplete() (r int, exists bool)
AddedPercentComplete returns the value that was added to the "percent_complete" field in this mutation.
func (*TaskMutation) AddedPriority ¶
func (m *TaskMutation) AddedPriority() (r int, exists bool)
AddedPriority returns the value that was added to the "priority" field in this mutation.
func (*TaskMutation) AllDay ¶
func (m *TaskMutation) AllDay() (r bool, exists bool)
AllDay returns the value of the "all_day" field in the mutation.
func (*TaskMutation) AppendCategories ¶
func (m *TaskMutation) AppendCategories(s []string)
AppendCategories adds s to the "categories" field.
func (*TaskMutation) AppendReminders ¶
func (m *TaskMutation) AppendReminders(value []map[string]interface{})
AppendReminders adds value to the "reminders" field.
func (*TaskMutation) AppendedCategories ¶
func (m *TaskMutation) AppendedCategories() ([]string, bool)
AppendedCategories returns the list of values that were appended to the "categories" field in this mutation.
func (*TaskMutation) AppendedReminders ¶
func (m *TaskMutation) AppendedReminders() ([]map[string]interface{}, bool)
AppendedReminders returns the list of values that were appended to the "reminders" field in this mutation.
func (*TaskMutation) CalendarCleared ¶
func (m *TaskMutation) CalendarCleared() bool
CalendarCleared reports if the "calendar" edge to the Calendar entity was cleared.
func (*TaskMutation) CalendarID ¶
func (m *TaskMutation) CalendarID() (id string, exists bool)
CalendarID returns the "calendar" edge ID in the mutation.
func (*TaskMutation) CalendarIDs ¶
func (m *TaskMutation) CalendarIDs() (ids []string)
CalendarIDs returns the "calendar" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CalendarID instead. It exists only for internal usage by the builders.
func (*TaskMutation) Categories ¶
func (m *TaskMutation) Categories() (r []string, exists bool)
Categories returns the value of the "categories" field in the mutation.
func (*TaskMutation) CategoriesCleared ¶
func (m *TaskMutation) CategoriesCleared() bool
CategoriesCleared returns if the "categories" field was cleared in this mutation.
func (*TaskMutation) ClearCalendar ¶
func (m *TaskMutation) ClearCalendar()
ClearCalendar clears the "calendar" edge to the Calendar entity.
func (*TaskMutation) ClearCategories ¶
func (m *TaskMutation) ClearCategories()
ClearCategories clears the value of the "categories" field.
func (*TaskMutation) ClearCompleted ¶
func (m *TaskMutation) ClearCompleted()
ClearCompleted clears the value of the "completed" field.
func (*TaskMutation) ClearDescription ¶
func (m *TaskMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*TaskMutation) ClearDue ¶
func (m *TaskMutation) ClearDue()
ClearDue clears the value of the "due" field.
func (*TaskMutation) ClearDueTz ¶
func (m *TaskMutation) ClearDueTz()
ClearDueTz clears the value of the "due_tz" field.
func (*TaskMutation) ClearEdge ¶
func (m *TaskMutation) 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 (*TaskMutation) ClearEtag ¶
func (m *TaskMutation) ClearEtag()
ClearEtag clears the value of the "etag" field.
func (*TaskMutation) ClearField ¶
func (m *TaskMutation) 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 (*TaskMutation) ClearLocation ¶
func (m *TaskMutation) ClearLocation()
ClearLocation clears the value of the "location" field.
func (*TaskMutation) ClearParentUID ¶
func (m *TaskMutation) ClearParentUID()
ClearParentUID clears the value of the "parent_uid" field.
func (*TaskMutation) ClearRawIcs ¶
func (m *TaskMutation) ClearRawIcs()
ClearRawIcs clears the value of the "raw_ics" field.
func (*TaskMutation) ClearRecurrence ¶
func (m *TaskMutation) ClearRecurrence()
ClearRecurrence clears the value of the "recurrence" field.
func (*TaskMutation) ClearReminders ¶
func (m *TaskMutation) ClearReminders()
ClearReminders clears the value of the "reminders" field.
func (*TaskMutation) ClearRemoteID ¶
func (m *TaskMutation) ClearRemoteID()
ClearRemoteID clears the value of the "remote_id" field.
func (*TaskMutation) ClearStart ¶
func (m *TaskMutation) ClearStart()
ClearStart clears the value of the "start" field.
func (*TaskMutation) ClearStartTz ¶
func (m *TaskMutation) ClearStartTz()
ClearStartTz clears the value of the "start_tz" field.
func (*TaskMutation) ClearedEdges ¶
func (m *TaskMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TaskMutation) ClearedFields ¶
func (m *TaskMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TaskMutation) Client ¶
func (m TaskMutation) 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 (*TaskMutation) Completed ¶
func (m *TaskMutation) Completed() (r time.Time, exists bool)
Completed returns the value of the "completed" field in the mutation.
func (*TaskMutation) CompletedCleared ¶
func (m *TaskMutation) CompletedCleared() bool
CompletedCleared returns if the "completed" field was cleared in this mutation.
func (*TaskMutation) Created ¶
func (m *TaskMutation) Created() (r time.Time, exists bool)
Created returns the value of the "created" field in the mutation.
func (*TaskMutation) Description ¶
func (m *TaskMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*TaskMutation) DescriptionCleared ¶
func (m *TaskMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*TaskMutation) Due ¶
func (m *TaskMutation) Due() (r time.Time, exists bool)
Due returns the value of the "due" field in the mutation.
func (*TaskMutation) DueCleared ¶
func (m *TaskMutation) DueCleared() bool
DueCleared returns if the "due" field was cleared in this mutation.
func (*TaskMutation) DueTz ¶
func (m *TaskMutation) DueTz() (r string, exists bool)
DueTz returns the value of the "due_tz" field in the mutation.
func (*TaskMutation) DueTzCleared ¶
func (m *TaskMutation) DueTzCleared() bool
DueTzCleared returns if the "due_tz" field was cleared in this mutation.
func (*TaskMutation) EdgeCleared ¶
func (m *TaskMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TaskMutation) Etag ¶
func (m *TaskMutation) Etag() (r string, exists bool)
Etag returns the value of the "etag" field in the mutation.
func (*TaskMutation) EtagCleared ¶
func (m *TaskMutation) EtagCleared() bool
EtagCleared returns if the "etag" field was cleared in this mutation.
func (*TaskMutation) ExecContext ¶
func (c *TaskMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskMutation) Field ¶
func (m *TaskMutation) 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 (*TaskMutation) FieldCleared ¶
func (m *TaskMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TaskMutation) Fields ¶
func (m *TaskMutation) 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 (*TaskMutation) ID ¶
func (m *TaskMutation) 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 (*TaskMutation) IDs ¶
func (m *TaskMutation) 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 (*TaskMutation) Location ¶
func (m *TaskMutation) Location() (r string, exists bool)
Location returns the value of the "location" field in the mutation.
func (*TaskMutation) LocationCleared ¶
func (m *TaskMutation) LocationCleared() bool
LocationCleared returns if the "location" field was cleared in this mutation.
func (*TaskMutation) OldAllDay ¶
func (m *TaskMutation) OldAllDay(ctx context.Context) (v bool, err error)
OldAllDay returns the old "all_day" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldCategories ¶
func (m *TaskMutation) OldCategories(ctx context.Context) (v []string, err error)
OldCategories returns the old "categories" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldCompleted ¶
OldCompleted returns the old "completed" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldCreated ¶
OldCreated returns the old "created" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldDescription ¶
func (m *TaskMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldDue ¶
OldDue returns the old "due" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldDueTz ¶
func (m *TaskMutation) OldDueTz(ctx context.Context) (v string, err error)
OldDueTz returns the old "due_tz" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldEtag ¶
func (m *TaskMutation) OldEtag(ctx context.Context) (v string, err error)
OldEtag returns the old "etag" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) 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 (*TaskMutation) OldLocation ¶
func (m *TaskMutation) OldLocation(ctx context.Context) (v string, err error)
OldLocation returns the old "location" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldParentUID ¶
func (m *TaskMutation) OldParentUID(ctx context.Context) (v string, err error)
OldParentUID returns the old "parent_uid" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldPercentComplete ¶
func (m *TaskMutation) OldPercentComplete(ctx context.Context) (v int, err error)
OldPercentComplete returns the old "percent_complete" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldPriority ¶
func (m *TaskMutation) OldPriority(ctx context.Context) (v int, err error)
OldPriority returns the old "priority" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldRawIcs ¶
func (m *TaskMutation) OldRawIcs(ctx context.Context) (v string, err error)
OldRawIcs returns the old "raw_ics" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldRecurrence ¶
func (m *TaskMutation) OldRecurrence(ctx context.Context) (v map[string]interface{}, err error)
OldRecurrence returns the old "recurrence" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldReminders ¶
func (m *TaskMutation) OldReminders(ctx context.Context) (v []map[string]interface{}, err error)
OldReminders returns the old "reminders" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldRemoteID ¶
func (m *TaskMutation) OldRemoteID(ctx context.Context) (v string, err error)
OldRemoteID returns the old "remote_id" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldStart ¶
OldStart returns the old "start" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldStartTz ¶
func (m *TaskMutation) OldStartTz(ctx context.Context) (v string, err error)
OldStartTz returns the old "start_tz" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldStatus ¶
OldStatus returns the old "status" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldSummary ¶
func (m *TaskMutation) OldSummary(ctx context.Context) (v string, err error)
OldSummary returns the old "summary" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldUID ¶
func (m *TaskMutation) OldUID(ctx context.Context) (v string, err error)
OldUID returns the old "uid" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) OldUpdated ¶
OldUpdated returns the old "updated" field's value of the Task entity. If the Task object wasn'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 (*TaskMutation) ParentUID ¶
func (m *TaskMutation) ParentUID() (r string, exists bool)
ParentUID returns the value of the "parent_uid" field in the mutation.
func (*TaskMutation) ParentUIDCleared ¶
func (m *TaskMutation) ParentUIDCleared() bool
ParentUIDCleared returns if the "parent_uid" field was cleared in this mutation.
func (*TaskMutation) PercentComplete ¶
func (m *TaskMutation) PercentComplete() (r int, exists bool)
PercentComplete returns the value of the "percent_complete" field in the mutation.
func (*TaskMutation) Priority ¶
func (m *TaskMutation) Priority() (r int, exists bool)
Priority returns the value of the "priority" field in the mutation.
func (*TaskMutation) QueryContext ¶
func (c *TaskMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskMutation) RawIcs ¶
func (m *TaskMutation) RawIcs() (r string, exists bool)
RawIcs returns the value of the "raw_ics" field in the mutation.
func (*TaskMutation) RawIcsCleared ¶
func (m *TaskMutation) RawIcsCleared() bool
RawIcsCleared returns if the "raw_ics" field was cleared in this mutation.
func (*TaskMutation) Recurrence ¶
func (m *TaskMutation) Recurrence() (r map[string]interface{}, exists bool)
Recurrence returns the value of the "recurrence" field in the mutation.
func (*TaskMutation) RecurrenceCleared ¶
func (m *TaskMutation) RecurrenceCleared() bool
RecurrenceCleared returns if the "recurrence" field was cleared in this mutation.
func (*TaskMutation) Reminders ¶
func (m *TaskMutation) Reminders() (r []map[string]interface{}, exists bool)
Reminders returns the value of the "reminders" field in the mutation.
func (*TaskMutation) RemindersCleared ¶
func (m *TaskMutation) RemindersCleared() bool
RemindersCleared returns if the "reminders" field was cleared in this mutation.
func (*TaskMutation) RemoteID ¶
func (m *TaskMutation) RemoteID() (r string, exists bool)
RemoteID returns the value of the "remote_id" field in the mutation.
func (*TaskMutation) RemoteIDCleared ¶
func (m *TaskMutation) RemoteIDCleared() bool
RemoteIDCleared returns if the "remote_id" field was cleared in this mutation.
func (*TaskMutation) RemovedEdges ¶
func (m *TaskMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TaskMutation) RemovedIDs ¶
func (m *TaskMutation) 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 (*TaskMutation) ResetAllDay ¶
func (m *TaskMutation) ResetAllDay()
ResetAllDay resets all changes to the "all_day" field.
func (*TaskMutation) ResetCalendar ¶
func (m *TaskMutation) ResetCalendar()
ResetCalendar resets all changes to the "calendar" edge.
func (*TaskMutation) ResetCategories ¶
func (m *TaskMutation) ResetCategories()
ResetCategories resets all changes to the "categories" field.
func (*TaskMutation) ResetCompleted ¶
func (m *TaskMutation) ResetCompleted()
ResetCompleted resets all changes to the "completed" field.
func (*TaskMutation) ResetCreated ¶
func (m *TaskMutation) ResetCreated()
ResetCreated resets all changes to the "created" field.
func (*TaskMutation) ResetDescription ¶
func (m *TaskMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*TaskMutation) ResetDue ¶
func (m *TaskMutation) ResetDue()
ResetDue resets all changes to the "due" field.
func (*TaskMutation) ResetDueTz ¶
func (m *TaskMutation) ResetDueTz()
ResetDueTz resets all changes to the "due_tz" field.
func (*TaskMutation) ResetEdge ¶
func (m *TaskMutation) 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 (*TaskMutation) ResetEtag ¶
func (m *TaskMutation) ResetEtag()
ResetEtag resets all changes to the "etag" field.
func (*TaskMutation) ResetField ¶
func (m *TaskMutation) 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 (*TaskMutation) ResetLocation ¶
func (m *TaskMutation) ResetLocation()
ResetLocation resets all changes to the "location" field.
func (*TaskMutation) ResetParentUID ¶
func (m *TaskMutation) ResetParentUID()
ResetParentUID resets all changes to the "parent_uid" field.
func (*TaskMutation) ResetPercentComplete ¶
func (m *TaskMutation) ResetPercentComplete()
ResetPercentComplete resets all changes to the "percent_complete" field.
func (*TaskMutation) ResetPriority ¶
func (m *TaskMutation) ResetPriority()
ResetPriority resets all changes to the "priority" field.
func (*TaskMutation) ResetRawIcs ¶
func (m *TaskMutation) ResetRawIcs()
ResetRawIcs resets all changes to the "raw_ics" field.
func (*TaskMutation) ResetRecurrence ¶
func (m *TaskMutation) ResetRecurrence()
ResetRecurrence resets all changes to the "recurrence" field.
func (*TaskMutation) ResetReminders ¶
func (m *TaskMutation) ResetReminders()
ResetReminders resets all changes to the "reminders" field.
func (*TaskMutation) ResetRemoteID ¶
func (m *TaskMutation) ResetRemoteID()
ResetRemoteID resets all changes to the "remote_id" field.
func (*TaskMutation) ResetStart ¶
func (m *TaskMutation) ResetStart()
ResetStart resets all changes to the "start" field.
func (*TaskMutation) ResetStartTz ¶
func (m *TaskMutation) ResetStartTz()
ResetStartTz resets all changes to the "start_tz" field.
func (*TaskMutation) ResetStatus ¶
func (m *TaskMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*TaskMutation) ResetSummary ¶
func (m *TaskMutation) ResetSummary()
ResetSummary resets all changes to the "summary" field.
func (*TaskMutation) ResetUID ¶
func (m *TaskMutation) ResetUID()
ResetUID resets all changes to the "uid" field.
func (*TaskMutation) ResetUpdated ¶
func (m *TaskMutation) ResetUpdated()
ResetUpdated resets all changes to the "updated" field.
func (*TaskMutation) SetAllDay ¶
func (m *TaskMutation) SetAllDay(b bool)
SetAllDay sets the "all_day" field.
func (*TaskMutation) SetCalendarID ¶
func (m *TaskMutation) SetCalendarID(id string)
SetCalendarID sets the "calendar" edge to the Calendar entity by id.
func (*TaskMutation) SetCategories ¶
func (m *TaskMutation) SetCategories(s []string)
SetCategories sets the "categories" field.
func (*TaskMutation) SetCompleted ¶
func (m *TaskMutation) SetCompleted(t time.Time)
SetCompleted sets the "completed" field.
func (*TaskMutation) SetCreated ¶
func (m *TaskMutation) SetCreated(t time.Time)
SetCreated sets the "created" field.
func (*TaskMutation) SetDescription ¶
func (m *TaskMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*TaskMutation) SetDue ¶
func (m *TaskMutation) SetDue(t time.Time)
SetDue sets the "due" field.
func (*TaskMutation) SetDueTz ¶
func (m *TaskMutation) SetDueTz(s string)
SetDueTz sets the "due_tz" field.
func (*TaskMutation) SetEtag ¶
func (m *TaskMutation) SetEtag(s string)
SetEtag sets the "etag" field.
func (*TaskMutation) SetField ¶
func (m *TaskMutation) 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 (*TaskMutation) SetID ¶
func (m *TaskMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Task entities.
func (*TaskMutation) SetLocation ¶
func (m *TaskMutation) SetLocation(s string)
SetLocation sets the "location" field.
func (*TaskMutation) SetOp ¶
func (m *TaskMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*TaskMutation) SetParentUID ¶
func (m *TaskMutation) SetParentUID(s string)
SetParentUID sets the "parent_uid" field.
func (*TaskMutation) SetPercentComplete ¶
func (m *TaskMutation) SetPercentComplete(i int)
SetPercentComplete sets the "percent_complete" field.
func (*TaskMutation) SetPriority ¶
func (m *TaskMutation) SetPriority(i int)
SetPriority sets the "priority" field.
func (*TaskMutation) SetRawIcs ¶
func (m *TaskMutation) SetRawIcs(s string)
SetRawIcs sets the "raw_ics" field.
func (*TaskMutation) SetRecurrence ¶
func (m *TaskMutation) SetRecurrence(value map[string]interface{})
SetRecurrence sets the "recurrence" field.
func (*TaskMutation) SetReminders ¶
func (m *TaskMutation) SetReminders(value []map[string]interface{})
SetReminders sets the "reminders" field.
func (*TaskMutation) SetRemoteID ¶
func (m *TaskMutation) SetRemoteID(s string)
SetRemoteID sets the "remote_id" field.
func (*TaskMutation) SetStart ¶
func (m *TaskMutation) SetStart(t time.Time)
SetStart sets the "start" field.
func (*TaskMutation) SetStartTz ¶
func (m *TaskMutation) SetStartTz(s string)
SetStartTz sets the "start_tz" field.
func (*TaskMutation) SetStatus ¶
func (m *TaskMutation) SetStatus(t task.Status)
SetStatus sets the "status" field.
func (*TaskMutation) SetSummary ¶
func (m *TaskMutation) SetSummary(s string)
SetSummary sets the "summary" field.
func (*TaskMutation) SetUpdated ¶
func (m *TaskMutation) SetUpdated(t time.Time)
SetUpdated sets the "updated" field.
func (*TaskMutation) Start ¶
func (m *TaskMutation) Start() (r time.Time, exists bool)
Start returns the value of the "start" field in the mutation.
func (*TaskMutation) StartCleared ¶
func (m *TaskMutation) StartCleared() bool
StartCleared returns if the "start" field was cleared in this mutation.
func (*TaskMutation) StartTz ¶
func (m *TaskMutation) StartTz() (r string, exists bool)
StartTz returns the value of the "start_tz" field in the mutation.
func (*TaskMutation) StartTzCleared ¶
func (m *TaskMutation) StartTzCleared() bool
StartTzCleared returns if the "start_tz" field was cleared in this mutation.
func (*TaskMutation) Status ¶
func (m *TaskMutation) Status() (r task.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (*TaskMutation) Summary ¶
func (m *TaskMutation) Summary() (r string, exists bool)
Summary returns the value of the "summary" field in the mutation.
func (TaskMutation) Tx ¶
func (m TaskMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TaskMutation) Type ¶
func (m *TaskMutation) Type() string
Type returns the node type of this mutation (Task).
func (*TaskMutation) UID ¶
func (m *TaskMutation) UID() (r string, exists bool)
UID returns the value of the "uid" field in the mutation.
func (*TaskMutation) Updated ¶
func (m *TaskMutation) Updated() (r time.Time, exists bool)
Updated returns the value of the "updated" field in the mutation.
func (*TaskMutation) Where ¶
func (m *TaskMutation) Where(ps ...predicate.Task)
Where appends a list predicates to the TaskMutation builder.
func (*TaskMutation) WhereP ¶
func (m *TaskMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the TaskMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type TaskQuery ¶
type TaskQuery struct {
// contains filtered or unexported fields
}
TaskQuery is the builder for querying Task entities.
func (*TaskQuery) Aggregate ¶
func (_q *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect
Aggregate returns a TaskSelect configured with the given aggregations.
func (*TaskQuery) Clone ¶
Clone returns a duplicate of the TaskQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TaskQuery) ExecContext ¶
func (c *TaskQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskQuery) First ¶
First returns the first Task entity from the query. Returns a *NotFoundError when no Task was found.
func (*TaskQuery) FirstID ¶
FirstID returns the first Task ID from the query. Returns a *NotFoundError when no Task ID was found.
func (*TaskQuery) GroupBy ¶
func (_q *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
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 {
UID string `json:"uid,omitempty"`
Count int `json:"count,omitempty"`
}
client.Task.Query().
GroupBy(task.FieldUID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*TaskQuery) Modify ¶
func (_q *TaskQuery) Modify(modifiers ...func(s *sql.Selector)) *TaskSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*TaskQuery) Only ¶
Only returns a single Task entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Task entity is found. Returns a *NotFoundError when no Task entities are found.
func (*TaskQuery) OnlyID ¶
OnlyID is like Only, but returns the only Task ID in the query. Returns a *NotSingularError when more than one Task ID is found. Returns a *NotFoundError when no entities are found.
func (*TaskQuery) Order ¶
func (_q *TaskQuery) Order(o ...task.OrderOption) *TaskQuery
Order specifies how the records should be ordered.
func (*TaskQuery) QueryCalendar ¶
func (_q *TaskQuery) QueryCalendar() *CalendarQuery
QueryCalendar chains the current query on the "calendar" edge.
func (*TaskQuery) QueryContext ¶
func (c *TaskQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskQuery) Select ¶
func (_q *TaskQuery) Select(fields ...string) *TaskSelect
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 {
UID string `json:"uid,omitempty"`
}
client.Task.Query().
Select(task.FieldUID).
Scan(ctx, &v)
func (*TaskQuery) 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 (*TaskQuery) WithCalendar ¶
func (_q *TaskQuery) WithCalendar(opts ...func(*CalendarQuery)) *TaskQuery
WithCalendar tells the query-builder to eager-load the nodes that are connected to the "calendar" edge. The optional arguments are used to configure the query builder of the edge.
type TaskSelect ¶
type TaskSelect struct {
*TaskQuery
// contains filtered or unexported fields
}
TaskSelect is the builder for selecting fields of Task entities.
func (*TaskSelect) Aggregate ¶
func (_s *TaskSelect) Aggregate(fns ...AggregateFunc) *TaskSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TaskSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (TaskSelect) ExecContext ¶
func (c TaskSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Modify ¶
func (_s *TaskSelect) Modify(modifiers ...func(s *sql.Selector)) *TaskSelect
Modify adds a query modifier for attaching custom logic to queries.
func (TaskSelect) QueryContext ¶
func (c TaskSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskSelect) Scan ¶
func (_s *TaskSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TaskSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TaskUpdate ¶
type TaskUpdate struct {
// contains filtered or unexported fields
}
TaskUpdate is the builder for updating Task entities.
func (*TaskUpdate) AddPercentComplete ¶
func (_u *TaskUpdate) AddPercentComplete(v int) *TaskUpdate
AddPercentComplete adds value to the "percent_complete" field.
func (*TaskUpdate) AddPriority ¶
func (_u *TaskUpdate) AddPriority(v int) *TaskUpdate
AddPriority adds value to the "priority" field.
func (*TaskUpdate) AppendCategories ¶
func (_u *TaskUpdate) AppendCategories(v []string) *TaskUpdate
AppendCategories appends value to the "categories" field.
func (*TaskUpdate) AppendReminders ¶
func (_u *TaskUpdate) AppendReminders(v []map[string]interface{}) *TaskUpdate
AppendReminders appends value to the "reminders" field.
func (*TaskUpdate) ClearCalendar ¶
func (_u *TaskUpdate) ClearCalendar() *TaskUpdate
ClearCalendar clears the "calendar" edge to the Calendar entity.
func (*TaskUpdate) ClearCategories ¶
func (_u *TaskUpdate) ClearCategories() *TaskUpdate
ClearCategories clears the value of the "categories" field.
func (*TaskUpdate) ClearCompleted ¶
func (_u *TaskUpdate) ClearCompleted() *TaskUpdate
ClearCompleted clears the value of the "completed" field.
func (*TaskUpdate) ClearDescription ¶
func (_u *TaskUpdate) ClearDescription() *TaskUpdate
ClearDescription clears the value of the "description" field.
func (*TaskUpdate) ClearDue ¶
func (_u *TaskUpdate) ClearDue() *TaskUpdate
ClearDue clears the value of the "due" field.
func (*TaskUpdate) ClearDueTz ¶
func (_u *TaskUpdate) ClearDueTz() *TaskUpdate
ClearDueTz clears the value of the "due_tz" field.
func (*TaskUpdate) ClearEtag ¶
func (_u *TaskUpdate) ClearEtag() *TaskUpdate
ClearEtag clears the value of the "etag" field.
func (*TaskUpdate) ClearLocation ¶
func (_u *TaskUpdate) ClearLocation() *TaskUpdate
ClearLocation clears the value of the "location" field.
func (*TaskUpdate) ClearParentUID ¶
func (_u *TaskUpdate) ClearParentUID() *TaskUpdate
ClearParentUID clears the value of the "parent_uid" field.
func (*TaskUpdate) ClearRawIcs ¶
func (_u *TaskUpdate) ClearRawIcs() *TaskUpdate
ClearRawIcs clears the value of the "raw_ics" field.
func (*TaskUpdate) ClearRecurrence ¶
func (_u *TaskUpdate) ClearRecurrence() *TaskUpdate
ClearRecurrence clears the value of the "recurrence" field.
func (*TaskUpdate) ClearReminders ¶
func (_u *TaskUpdate) ClearReminders() *TaskUpdate
ClearReminders clears the value of the "reminders" field.
func (*TaskUpdate) ClearRemoteID ¶
func (_u *TaskUpdate) ClearRemoteID() *TaskUpdate
ClearRemoteID clears the value of the "remote_id" field.
func (*TaskUpdate) ClearStart ¶
func (_u *TaskUpdate) ClearStart() *TaskUpdate
ClearStart clears the value of the "start" field.
func (*TaskUpdate) ClearStartTz ¶
func (_u *TaskUpdate) ClearStartTz() *TaskUpdate
ClearStartTz clears the value of the "start_tz" field.
func (*TaskUpdate) Exec ¶
func (_u *TaskUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskUpdate) ExecContext ¶
func (c *TaskUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskUpdate) ExecX ¶
func (_u *TaskUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdate) Modify ¶
func (_u *TaskUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *TaskUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*TaskUpdate) Mutation ¶
func (_u *TaskUpdate) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskUpdate) QueryContext ¶
func (c *TaskUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskUpdate) Save ¶
func (_u *TaskUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TaskUpdate) SaveX ¶
func (_u *TaskUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdate) SetAllDay ¶
func (_u *TaskUpdate) SetAllDay(v bool) *TaskUpdate
SetAllDay sets the "all_day" field.
func (*TaskUpdate) SetCalendar ¶
func (_u *TaskUpdate) SetCalendar(v *Calendar) *TaskUpdate
SetCalendar sets the "calendar" edge to the Calendar entity.
func (*TaskUpdate) SetCalendarID ¶
func (_u *TaskUpdate) SetCalendarID(id string) *TaskUpdate
SetCalendarID sets the "calendar" edge to the Calendar entity by ID.
func (*TaskUpdate) SetCategories ¶
func (_u *TaskUpdate) SetCategories(v []string) *TaskUpdate
SetCategories sets the "categories" field.
func (*TaskUpdate) SetCompleted ¶
func (_u *TaskUpdate) SetCompleted(v time.Time) *TaskUpdate
SetCompleted sets the "completed" field.
func (*TaskUpdate) SetCreated ¶
func (_u *TaskUpdate) SetCreated(v time.Time) *TaskUpdate
SetCreated sets the "created" field.
func (*TaskUpdate) SetDescription ¶
func (_u *TaskUpdate) SetDescription(v string) *TaskUpdate
SetDescription sets the "description" field.
func (*TaskUpdate) SetDue ¶
func (_u *TaskUpdate) SetDue(v time.Time) *TaskUpdate
SetDue sets the "due" field.
func (*TaskUpdate) SetDueTz ¶
func (_u *TaskUpdate) SetDueTz(v string) *TaskUpdate
SetDueTz sets the "due_tz" field.
func (*TaskUpdate) SetEtag ¶
func (_u *TaskUpdate) SetEtag(v string) *TaskUpdate
SetEtag sets the "etag" field.
func (*TaskUpdate) SetLocation ¶
func (_u *TaskUpdate) SetLocation(v string) *TaskUpdate
SetLocation sets the "location" field.
func (*TaskUpdate) SetNillableAllDay ¶
func (_u *TaskUpdate) SetNillableAllDay(v *bool) *TaskUpdate
SetNillableAllDay sets the "all_day" field if the given value is not nil.
func (*TaskUpdate) SetNillableCompleted ¶
func (_u *TaskUpdate) SetNillableCompleted(v *time.Time) *TaskUpdate
SetNillableCompleted sets the "completed" field if the given value is not nil.
func (*TaskUpdate) SetNillableCreated ¶
func (_u *TaskUpdate) SetNillableCreated(v *time.Time) *TaskUpdate
SetNillableCreated sets the "created" field if the given value is not nil.
func (*TaskUpdate) SetNillableDescription ¶
func (_u *TaskUpdate) SetNillableDescription(v *string) *TaskUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*TaskUpdate) SetNillableDue ¶
func (_u *TaskUpdate) SetNillableDue(v *time.Time) *TaskUpdate
SetNillableDue sets the "due" field if the given value is not nil.
func (*TaskUpdate) SetNillableDueTz ¶
func (_u *TaskUpdate) SetNillableDueTz(v *string) *TaskUpdate
SetNillableDueTz sets the "due_tz" field if the given value is not nil.
func (*TaskUpdate) SetNillableEtag ¶
func (_u *TaskUpdate) SetNillableEtag(v *string) *TaskUpdate
SetNillableEtag sets the "etag" field if the given value is not nil.
func (*TaskUpdate) SetNillableLocation ¶
func (_u *TaskUpdate) SetNillableLocation(v *string) *TaskUpdate
SetNillableLocation sets the "location" field if the given value is not nil.
func (*TaskUpdate) SetNillableParentUID ¶
func (_u *TaskUpdate) SetNillableParentUID(v *string) *TaskUpdate
SetNillableParentUID sets the "parent_uid" field if the given value is not nil.
func (*TaskUpdate) SetNillablePercentComplete ¶
func (_u *TaskUpdate) SetNillablePercentComplete(v *int) *TaskUpdate
SetNillablePercentComplete sets the "percent_complete" field if the given value is not nil.
func (*TaskUpdate) SetNillablePriority ¶
func (_u *TaskUpdate) SetNillablePriority(v *int) *TaskUpdate
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*TaskUpdate) SetNillableRawIcs ¶
func (_u *TaskUpdate) SetNillableRawIcs(v *string) *TaskUpdate
SetNillableRawIcs sets the "raw_ics" field if the given value is not nil.
func (*TaskUpdate) SetNillableRemoteID ¶
func (_u *TaskUpdate) SetNillableRemoteID(v *string) *TaskUpdate
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*TaskUpdate) SetNillableStart ¶
func (_u *TaskUpdate) SetNillableStart(v *time.Time) *TaskUpdate
SetNillableStart sets the "start" field if the given value is not nil.
func (*TaskUpdate) SetNillableStartTz ¶
func (_u *TaskUpdate) SetNillableStartTz(v *string) *TaskUpdate
SetNillableStartTz sets the "start_tz" field if the given value is not nil.
func (*TaskUpdate) SetNillableStatus ¶
func (_u *TaskUpdate) SetNillableStatus(v *task.Status) *TaskUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*TaskUpdate) SetNillableSummary ¶
func (_u *TaskUpdate) SetNillableSummary(v *string) *TaskUpdate
SetNillableSummary sets the "summary" field if the given value is not nil.
func (*TaskUpdate) SetNillableUID ¶
func (_u *TaskUpdate) SetNillableUID(v *string) *TaskUpdate
SetNillableUID sets the "uid" field if the given value is not nil.
func (*TaskUpdate) SetParentUID ¶
func (_u *TaskUpdate) SetParentUID(v string) *TaskUpdate
SetParentUID sets the "parent_uid" field.
func (*TaskUpdate) SetPercentComplete ¶
func (_u *TaskUpdate) SetPercentComplete(v int) *TaskUpdate
SetPercentComplete sets the "percent_complete" field.
func (*TaskUpdate) SetPriority ¶
func (_u *TaskUpdate) SetPriority(v int) *TaskUpdate
SetPriority sets the "priority" field.
func (*TaskUpdate) SetRawIcs ¶
func (_u *TaskUpdate) SetRawIcs(v string) *TaskUpdate
SetRawIcs sets the "raw_ics" field.
func (*TaskUpdate) SetRecurrence ¶
func (_u *TaskUpdate) SetRecurrence(v map[string]interface{}) *TaskUpdate
SetRecurrence sets the "recurrence" field.
func (*TaskUpdate) SetReminders ¶
func (_u *TaskUpdate) SetReminders(v []map[string]interface{}) *TaskUpdate
SetReminders sets the "reminders" field.
func (*TaskUpdate) SetRemoteID ¶
func (_u *TaskUpdate) SetRemoteID(v string) *TaskUpdate
SetRemoteID sets the "remote_id" field.
func (*TaskUpdate) SetStart ¶
func (_u *TaskUpdate) SetStart(v time.Time) *TaskUpdate
SetStart sets the "start" field.
func (*TaskUpdate) SetStartTz ¶
func (_u *TaskUpdate) SetStartTz(v string) *TaskUpdate
SetStartTz sets the "start_tz" field.
func (*TaskUpdate) SetStatus ¶
func (_u *TaskUpdate) SetStatus(v task.Status) *TaskUpdate
SetStatus sets the "status" field.
func (*TaskUpdate) SetSummary ¶
func (_u *TaskUpdate) SetSummary(v string) *TaskUpdate
SetSummary sets the "summary" field.
func (*TaskUpdate) SetUID ¶
func (_u *TaskUpdate) SetUID(v string) *TaskUpdate
SetUID sets the "uid" field.
func (*TaskUpdate) SetUpdated ¶
func (_u *TaskUpdate) SetUpdated(v time.Time) *TaskUpdate
SetUpdated sets the "updated" field.
func (*TaskUpdate) Where ¶
func (_u *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
Where appends a list predicates to the TaskUpdate builder.
type TaskUpdateOne ¶
type TaskUpdateOne struct {
// contains filtered or unexported fields
}
TaskUpdateOne is the builder for updating a single Task entity.
func (*TaskUpdateOne) AddPercentComplete ¶
func (_u *TaskUpdateOne) AddPercentComplete(v int) *TaskUpdateOne
AddPercentComplete adds value to the "percent_complete" field.
func (*TaskUpdateOne) AddPriority ¶
func (_u *TaskUpdateOne) AddPriority(v int) *TaskUpdateOne
AddPriority adds value to the "priority" field.
func (*TaskUpdateOne) AppendCategories ¶
func (_u *TaskUpdateOne) AppendCategories(v []string) *TaskUpdateOne
AppendCategories appends value to the "categories" field.
func (*TaskUpdateOne) AppendReminders ¶
func (_u *TaskUpdateOne) AppendReminders(v []map[string]interface{}) *TaskUpdateOne
AppendReminders appends value to the "reminders" field.
func (*TaskUpdateOne) ClearCalendar ¶
func (_u *TaskUpdateOne) ClearCalendar() *TaskUpdateOne
ClearCalendar clears the "calendar" edge to the Calendar entity.
func (*TaskUpdateOne) ClearCategories ¶
func (_u *TaskUpdateOne) ClearCategories() *TaskUpdateOne
ClearCategories clears the value of the "categories" field.
func (*TaskUpdateOne) ClearCompleted ¶
func (_u *TaskUpdateOne) ClearCompleted() *TaskUpdateOne
ClearCompleted clears the value of the "completed" field.
func (*TaskUpdateOne) ClearDescription ¶
func (_u *TaskUpdateOne) ClearDescription() *TaskUpdateOne
ClearDescription clears the value of the "description" field.
func (*TaskUpdateOne) ClearDue ¶
func (_u *TaskUpdateOne) ClearDue() *TaskUpdateOne
ClearDue clears the value of the "due" field.
func (*TaskUpdateOne) ClearDueTz ¶
func (_u *TaskUpdateOne) ClearDueTz() *TaskUpdateOne
ClearDueTz clears the value of the "due_tz" field.
func (*TaskUpdateOne) ClearEtag ¶
func (_u *TaskUpdateOne) ClearEtag() *TaskUpdateOne
ClearEtag clears the value of the "etag" field.
func (*TaskUpdateOne) ClearLocation ¶
func (_u *TaskUpdateOne) ClearLocation() *TaskUpdateOne
ClearLocation clears the value of the "location" field.
func (*TaskUpdateOne) ClearParentUID ¶
func (_u *TaskUpdateOne) ClearParentUID() *TaskUpdateOne
ClearParentUID clears the value of the "parent_uid" field.
func (*TaskUpdateOne) ClearRawIcs ¶
func (_u *TaskUpdateOne) ClearRawIcs() *TaskUpdateOne
ClearRawIcs clears the value of the "raw_ics" field.
func (*TaskUpdateOne) ClearRecurrence ¶
func (_u *TaskUpdateOne) ClearRecurrence() *TaskUpdateOne
ClearRecurrence clears the value of the "recurrence" field.
func (*TaskUpdateOne) ClearReminders ¶
func (_u *TaskUpdateOne) ClearReminders() *TaskUpdateOne
ClearReminders clears the value of the "reminders" field.
func (*TaskUpdateOne) ClearRemoteID ¶
func (_u *TaskUpdateOne) ClearRemoteID() *TaskUpdateOne
ClearRemoteID clears the value of the "remote_id" field.
func (*TaskUpdateOne) ClearStart ¶
func (_u *TaskUpdateOne) ClearStart() *TaskUpdateOne
ClearStart clears the value of the "start" field.
func (*TaskUpdateOne) ClearStartTz ¶
func (_u *TaskUpdateOne) ClearStartTz() *TaskUpdateOne
ClearStartTz clears the value of the "start_tz" field.
func (*TaskUpdateOne) Exec ¶
func (_u *TaskUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TaskUpdateOne) ExecContext ¶
func (c *TaskUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*TaskUpdateOne) ExecX ¶
func (_u *TaskUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdateOne) Modify ¶
func (_u *TaskUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *TaskUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*TaskUpdateOne) Mutation ¶
func (_u *TaskUpdateOne) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskUpdateOne) QueryContext ¶
func (c *TaskUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*TaskUpdateOne) Save ¶
func (_u *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
Save executes the query and returns the updated Task entity.
func (*TaskUpdateOne) SaveX ¶
func (_u *TaskUpdateOne) SaveX(ctx context.Context) *Task
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdateOne) Select ¶
func (_u *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TaskUpdateOne) SetAllDay ¶
func (_u *TaskUpdateOne) SetAllDay(v bool) *TaskUpdateOne
SetAllDay sets the "all_day" field.
func (*TaskUpdateOne) SetCalendar ¶
func (_u *TaskUpdateOne) SetCalendar(v *Calendar) *TaskUpdateOne
SetCalendar sets the "calendar" edge to the Calendar entity.
func (*TaskUpdateOne) SetCalendarID ¶
func (_u *TaskUpdateOne) SetCalendarID(id string) *TaskUpdateOne
SetCalendarID sets the "calendar" edge to the Calendar entity by ID.
func (*TaskUpdateOne) SetCategories ¶
func (_u *TaskUpdateOne) SetCategories(v []string) *TaskUpdateOne
SetCategories sets the "categories" field.
func (*TaskUpdateOne) SetCompleted ¶
func (_u *TaskUpdateOne) SetCompleted(v time.Time) *TaskUpdateOne
SetCompleted sets the "completed" field.
func (*TaskUpdateOne) SetCreated ¶
func (_u *TaskUpdateOne) SetCreated(v time.Time) *TaskUpdateOne
SetCreated sets the "created" field.
func (*TaskUpdateOne) SetDescription ¶
func (_u *TaskUpdateOne) SetDescription(v string) *TaskUpdateOne
SetDescription sets the "description" field.
func (*TaskUpdateOne) SetDue ¶
func (_u *TaskUpdateOne) SetDue(v time.Time) *TaskUpdateOne
SetDue sets the "due" field.
func (*TaskUpdateOne) SetDueTz ¶
func (_u *TaskUpdateOne) SetDueTz(v string) *TaskUpdateOne
SetDueTz sets the "due_tz" field.
func (*TaskUpdateOne) SetEtag ¶
func (_u *TaskUpdateOne) SetEtag(v string) *TaskUpdateOne
SetEtag sets the "etag" field.
func (*TaskUpdateOne) SetLocation ¶
func (_u *TaskUpdateOne) SetLocation(v string) *TaskUpdateOne
SetLocation sets the "location" field.
func (*TaskUpdateOne) SetNillableAllDay ¶
func (_u *TaskUpdateOne) SetNillableAllDay(v *bool) *TaskUpdateOne
SetNillableAllDay sets the "all_day" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableCompleted ¶
func (_u *TaskUpdateOne) SetNillableCompleted(v *time.Time) *TaskUpdateOne
SetNillableCompleted sets the "completed" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableCreated ¶
func (_u *TaskUpdateOne) SetNillableCreated(v *time.Time) *TaskUpdateOne
SetNillableCreated sets the "created" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableDescription ¶
func (_u *TaskUpdateOne) SetNillableDescription(v *string) *TaskUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableDue ¶
func (_u *TaskUpdateOne) SetNillableDue(v *time.Time) *TaskUpdateOne
SetNillableDue sets the "due" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableDueTz ¶
func (_u *TaskUpdateOne) SetNillableDueTz(v *string) *TaskUpdateOne
SetNillableDueTz sets the "due_tz" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableEtag ¶
func (_u *TaskUpdateOne) SetNillableEtag(v *string) *TaskUpdateOne
SetNillableEtag sets the "etag" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableLocation ¶
func (_u *TaskUpdateOne) SetNillableLocation(v *string) *TaskUpdateOne
SetNillableLocation sets the "location" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableParentUID ¶
func (_u *TaskUpdateOne) SetNillableParentUID(v *string) *TaskUpdateOne
SetNillableParentUID sets the "parent_uid" field if the given value is not nil.
func (*TaskUpdateOne) SetNillablePercentComplete ¶
func (_u *TaskUpdateOne) SetNillablePercentComplete(v *int) *TaskUpdateOne
SetNillablePercentComplete sets the "percent_complete" field if the given value is not nil.
func (*TaskUpdateOne) SetNillablePriority ¶
func (_u *TaskUpdateOne) SetNillablePriority(v *int) *TaskUpdateOne
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableRawIcs ¶
func (_u *TaskUpdateOne) SetNillableRawIcs(v *string) *TaskUpdateOne
SetNillableRawIcs sets the "raw_ics" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableRemoteID ¶
func (_u *TaskUpdateOne) SetNillableRemoteID(v *string) *TaskUpdateOne
SetNillableRemoteID sets the "remote_id" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableStart ¶
func (_u *TaskUpdateOne) SetNillableStart(v *time.Time) *TaskUpdateOne
SetNillableStart sets the "start" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableStartTz ¶
func (_u *TaskUpdateOne) SetNillableStartTz(v *string) *TaskUpdateOne
SetNillableStartTz sets the "start_tz" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableStatus ¶
func (_u *TaskUpdateOne) SetNillableStatus(v *task.Status) *TaskUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableSummary ¶
func (_u *TaskUpdateOne) SetNillableSummary(v *string) *TaskUpdateOne
SetNillableSummary sets the "summary" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableUID ¶
func (_u *TaskUpdateOne) SetNillableUID(v *string) *TaskUpdateOne
SetNillableUID sets the "uid" field if the given value is not nil.
func (*TaskUpdateOne) SetParentUID ¶
func (_u *TaskUpdateOne) SetParentUID(v string) *TaskUpdateOne
SetParentUID sets the "parent_uid" field.
func (*TaskUpdateOne) SetPercentComplete ¶
func (_u *TaskUpdateOne) SetPercentComplete(v int) *TaskUpdateOne
SetPercentComplete sets the "percent_complete" field.
func (*TaskUpdateOne) SetPriority ¶
func (_u *TaskUpdateOne) SetPriority(v int) *TaskUpdateOne
SetPriority sets the "priority" field.
func (*TaskUpdateOne) SetRawIcs ¶
func (_u *TaskUpdateOne) SetRawIcs(v string) *TaskUpdateOne
SetRawIcs sets the "raw_ics" field.
func (*TaskUpdateOne) SetRecurrence ¶
func (_u *TaskUpdateOne) SetRecurrence(v map[string]interface{}) *TaskUpdateOne
SetRecurrence sets the "recurrence" field.
func (*TaskUpdateOne) SetReminders ¶
func (_u *TaskUpdateOne) SetReminders(v []map[string]interface{}) *TaskUpdateOne
SetReminders sets the "reminders" field.
func (*TaskUpdateOne) SetRemoteID ¶
func (_u *TaskUpdateOne) SetRemoteID(v string) *TaskUpdateOne
SetRemoteID sets the "remote_id" field.
func (*TaskUpdateOne) SetStart ¶
func (_u *TaskUpdateOne) SetStart(v time.Time) *TaskUpdateOne
SetStart sets the "start" field.
func (*TaskUpdateOne) SetStartTz ¶
func (_u *TaskUpdateOne) SetStartTz(v string) *TaskUpdateOne
SetStartTz sets the "start_tz" field.
func (*TaskUpdateOne) SetStatus ¶
func (_u *TaskUpdateOne) SetStatus(v task.Status) *TaskUpdateOne
SetStatus sets the "status" field.
func (*TaskUpdateOne) SetSummary ¶
func (_u *TaskUpdateOne) SetSummary(v string) *TaskUpdateOne
SetSummary sets the "summary" field.
func (*TaskUpdateOne) SetUID ¶
func (_u *TaskUpdateOne) SetUID(v string) *TaskUpdateOne
SetUID sets the "uid" field.
func (*TaskUpdateOne) SetUpdated ¶
func (_u *TaskUpdateOne) SetUpdated(v time.Time) *TaskUpdateOne
SetUpdated sets the "updated" field.
func (*TaskUpdateOne) Where ¶
func (_u *TaskUpdateOne) Where(ps ...predicate.Task) *TaskUpdateOne
Where appends a list predicates to the TaskUpdate builder.
type TaskUpsert ¶
TaskUpsert is the "OnConflict" setter.
func (*TaskUpsert) AddPercentComplete ¶
func (u *TaskUpsert) AddPercentComplete(v int) *TaskUpsert
AddPercentComplete adds v to the "percent_complete" field.
func (*TaskUpsert) AddPriority ¶
func (u *TaskUpsert) AddPriority(v int) *TaskUpsert
AddPriority adds v to the "priority" field.
func (*TaskUpsert) ClearCategories ¶
func (u *TaskUpsert) ClearCategories() *TaskUpsert
ClearCategories clears the value of the "categories" field.
func (*TaskUpsert) ClearCompleted ¶
func (u *TaskUpsert) ClearCompleted() *TaskUpsert
ClearCompleted clears the value of the "completed" field.
func (*TaskUpsert) ClearDescription ¶
func (u *TaskUpsert) ClearDescription() *TaskUpsert
ClearDescription clears the value of the "description" field.
func (*TaskUpsert) ClearDue ¶
func (u *TaskUpsert) ClearDue() *TaskUpsert
ClearDue clears the value of the "due" field.
func (*TaskUpsert) ClearDueTz ¶
func (u *TaskUpsert) ClearDueTz() *TaskUpsert
ClearDueTz clears the value of the "due_tz" field.
func (*TaskUpsert) ClearEtag ¶
func (u *TaskUpsert) ClearEtag() *TaskUpsert
ClearEtag clears the value of the "etag" field.
func (*TaskUpsert) ClearLocation ¶
func (u *TaskUpsert) ClearLocation() *TaskUpsert
ClearLocation clears the value of the "location" field.
func (*TaskUpsert) ClearParentUID ¶
func (u *TaskUpsert) ClearParentUID() *TaskUpsert
ClearParentUID clears the value of the "parent_uid" field.
func (*TaskUpsert) ClearRawIcs ¶
func (u *TaskUpsert) ClearRawIcs() *TaskUpsert
ClearRawIcs clears the value of the "raw_ics" field.
func (*TaskUpsert) ClearRecurrence ¶
func (u *TaskUpsert) ClearRecurrence() *TaskUpsert
ClearRecurrence clears the value of the "recurrence" field.
func (*TaskUpsert) ClearReminders ¶
func (u *TaskUpsert) ClearReminders() *TaskUpsert
ClearReminders clears the value of the "reminders" field.
func (*TaskUpsert) ClearRemoteID ¶
func (u *TaskUpsert) ClearRemoteID() *TaskUpsert
ClearRemoteID clears the value of the "remote_id" field.
func (*TaskUpsert) ClearStart ¶
func (u *TaskUpsert) ClearStart() *TaskUpsert
ClearStart clears the value of the "start" field.
func (*TaskUpsert) ClearStartTz ¶
func (u *TaskUpsert) ClearStartTz() *TaskUpsert
ClearStartTz clears the value of the "start_tz" field.
func (*TaskUpsert) SetAllDay ¶
func (u *TaskUpsert) SetAllDay(v bool) *TaskUpsert
SetAllDay sets the "all_day" field.
func (*TaskUpsert) SetCategories ¶
func (u *TaskUpsert) SetCategories(v []string) *TaskUpsert
SetCategories sets the "categories" field.
func (*TaskUpsert) SetCompleted ¶
func (u *TaskUpsert) SetCompleted(v time.Time) *TaskUpsert
SetCompleted sets the "completed" field.
func (*TaskUpsert) SetCreated ¶
func (u *TaskUpsert) SetCreated(v time.Time) *TaskUpsert
SetCreated sets the "created" field.
func (*TaskUpsert) SetDescription ¶
func (u *TaskUpsert) SetDescription(v string) *TaskUpsert
SetDescription sets the "description" field.
func (*TaskUpsert) SetDue ¶
func (u *TaskUpsert) SetDue(v time.Time) *TaskUpsert
SetDue sets the "due" field.
func (*TaskUpsert) SetDueTz ¶
func (u *TaskUpsert) SetDueTz(v string) *TaskUpsert
SetDueTz sets the "due_tz" field.
func (*TaskUpsert) SetEtag ¶
func (u *TaskUpsert) SetEtag(v string) *TaskUpsert
SetEtag sets the "etag" field.
func (*TaskUpsert) SetLocation ¶
func (u *TaskUpsert) SetLocation(v string) *TaskUpsert
SetLocation sets the "location" field.
func (*TaskUpsert) SetParentUID ¶
func (u *TaskUpsert) SetParentUID(v string) *TaskUpsert
SetParentUID sets the "parent_uid" field.
func (*TaskUpsert) SetPercentComplete ¶
func (u *TaskUpsert) SetPercentComplete(v int) *TaskUpsert
SetPercentComplete sets the "percent_complete" field.
func (*TaskUpsert) SetPriority ¶
func (u *TaskUpsert) SetPriority(v int) *TaskUpsert
SetPriority sets the "priority" field.
func (*TaskUpsert) SetRawIcs ¶
func (u *TaskUpsert) SetRawIcs(v string) *TaskUpsert
SetRawIcs sets the "raw_ics" field.
func (*TaskUpsert) SetRecurrence ¶
func (u *TaskUpsert) SetRecurrence(v map[string]interface{}) *TaskUpsert
SetRecurrence sets the "recurrence" field.
func (*TaskUpsert) SetReminders ¶
func (u *TaskUpsert) SetReminders(v []map[string]interface{}) *TaskUpsert
SetReminders sets the "reminders" field.
func (*TaskUpsert) SetRemoteID ¶
func (u *TaskUpsert) SetRemoteID(v string) *TaskUpsert
SetRemoteID sets the "remote_id" field.
func (*TaskUpsert) SetStart ¶
func (u *TaskUpsert) SetStart(v time.Time) *TaskUpsert
SetStart sets the "start" field.
func (*TaskUpsert) SetStartTz ¶
func (u *TaskUpsert) SetStartTz(v string) *TaskUpsert
SetStartTz sets the "start_tz" field.
func (*TaskUpsert) SetStatus ¶
func (u *TaskUpsert) SetStatus(v task.Status) *TaskUpsert
SetStatus sets the "status" field.
func (*TaskUpsert) SetSummary ¶
func (u *TaskUpsert) SetSummary(v string) *TaskUpsert
SetSummary sets the "summary" field.
func (*TaskUpsert) SetUID ¶
func (u *TaskUpsert) SetUID(v string) *TaskUpsert
SetUID sets the "uid" field.
func (*TaskUpsert) SetUpdated ¶
func (u *TaskUpsert) SetUpdated(v time.Time) *TaskUpsert
SetUpdated sets the "updated" field.
func (*TaskUpsert) UpdateAllDay ¶
func (u *TaskUpsert) UpdateAllDay() *TaskUpsert
UpdateAllDay sets the "all_day" field to the value that was provided on create.
func (*TaskUpsert) UpdateCategories ¶
func (u *TaskUpsert) UpdateCategories() *TaskUpsert
UpdateCategories sets the "categories" field to the value that was provided on create.
func (*TaskUpsert) UpdateCompleted ¶
func (u *TaskUpsert) UpdateCompleted() *TaskUpsert
UpdateCompleted sets the "completed" field to the value that was provided on create.
func (*TaskUpsert) UpdateCreated ¶
func (u *TaskUpsert) UpdateCreated() *TaskUpsert
UpdateCreated sets the "created" field to the value that was provided on create.
func (*TaskUpsert) UpdateDescription ¶
func (u *TaskUpsert) UpdateDescription() *TaskUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*TaskUpsert) UpdateDue ¶
func (u *TaskUpsert) UpdateDue() *TaskUpsert
UpdateDue sets the "due" field to the value that was provided on create.
func (*TaskUpsert) UpdateDueTz ¶
func (u *TaskUpsert) UpdateDueTz() *TaskUpsert
UpdateDueTz sets the "due_tz" field to the value that was provided on create.
func (*TaskUpsert) UpdateEtag ¶
func (u *TaskUpsert) UpdateEtag() *TaskUpsert
UpdateEtag sets the "etag" field to the value that was provided on create.
func (*TaskUpsert) UpdateLocation ¶
func (u *TaskUpsert) UpdateLocation() *TaskUpsert
UpdateLocation sets the "location" field to the value that was provided on create.
func (*TaskUpsert) UpdateParentUID ¶
func (u *TaskUpsert) UpdateParentUID() *TaskUpsert
UpdateParentUID sets the "parent_uid" field to the value that was provided on create.
func (*TaskUpsert) UpdatePercentComplete ¶
func (u *TaskUpsert) UpdatePercentComplete() *TaskUpsert
UpdatePercentComplete sets the "percent_complete" field to the value that was provided on create.
func (*TaskUpsert) UpdatePriority ¶
func (u *TaskUpsert) UpdatePriority() *TaskUpsert
UpdatePriority sets the "priority" field to the value that was provided on create.
func (*TaskUpsert) UpdateRawIcs ¶
func (u *TaskUpsert) UpdateRawIcs() *TaskUpsert
UpdateRawIcs sets the "raw_ics" field to the value that was provided on create.
func (*TaskUpsert) UpdateRecurrence ¶
func (u *TaskUpsert) UpdateRecurrence() *TaskUpsert
UpdateRecurrence sets the "recurrence" field to the value that was provided on create.
func (*TaskUpsert) UpdateReminders ¶
func (u *TaskUpsert) UpdateReminders() *TaskUpsert
UpdateReminders sets the "reminders" field to the value that was provided on create.
func (*TaskUpsert) UpdateRemoteID ¶
func (u *TaskUpsert) UpdateRemoteID() *TaskUpsert
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*TaskUpsert) UpdateStart ¶
func (u *TaskUpsert) UpdateStart() *TaskUpsert
UpdateStart sets the "start" field to the value that was provided on create.
func (*TaskUpsert) UpdateStartTz ¶
func (u *TaskUpsert) UpdateStartTz() *TaskUpsert
UpdateStartTz sets the "start_tz" field to the value that was provided on create.
func (*TaskUpsert) UpdateStatus ¶
func (u *TaskUpsert) UpdateStatus() *TaskUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*TaskUpsert) UpdateSummary ¶
func (u *TaskUpsert) UpdateSummary() *TaskUpsert
UpdateSummary sets the "summary" field to the value that was provided on create.
func (*TaskUpsert) UpdateUID ¶
func (u *TaskUpsert) UpdateUID() *TaskUpsert
UpdateUID sets the "uid" field to the value that was provided on create.
func (*TaskUpsert) UpdateUpdated ¶
func (u *TaskUpsert) UpdateUpdated() *TaskUpsert
UpdateUpdated sets the "updated" field to the value that was provided on create.
type TaskUpsertBulk ¶
type TaskUpsertBulk struct {
// contains filtered or unexported fields
}
TaskUpsertBulk is the builder for "upsert"-ing a bulk of Task nodes.
func (*TaskUpsertBulk) AddPercentComplete ¶
func (u *TaskUpsertBulk) AddPercentComplete(v int) *TaskUpsertBulk
AddPercentComplete adds v to the "percent_complete" field.
func (*TaskUpsertBulk) AddPriority ¶
func (u *TaskUpsertBulk) AddPriority(v int) *TaskUpsertBulk
AddPriority adds v to the "priority" field.
func (*TaskUpsertBulk) ClearCategories ¶
func (u *TaskUpsertBulk) ClearCategories() *TaskUpsertBulk
ClearCategories clears the value of the "categories" field.
func (*TaskUpsertBulk) ClearCompleted ¶
func (u *TaskUpsertBulk) ClearCompleted() *TaskUpsertBulk
ClearCompleted clears the value of the "completed" field.
func (*TaskUpsertBulk) ClearDescription ¶
func (u *TaskUpsertBulk) ClearDescription() *TaskUpsertBulk
ClearDescription clears the value of the "description" field.
func (*TaskUpsertBulk) ClearDue ¶
func (u *TaskUpsertBulk) ClearDue() *TaskUpsertBulk
ClearDue clears the value of the "due" field.
func (*TaskUpsertBulk) ClearDueTz ¶
func (u *TaskUpsertBulk) ClearDueTz() *TaskUpsertBulk
ClearDueTz clears the value of the "due_tz" field.
func (*TaskUpsertBulk) ClearEtag ¶
func (u *TaskUpsertBulk) ClearEtag() *TaskUpsertBulk
ClearEtag clears the value of the "etag" field.
func (*TaskUpsertBulk) ClearLocation ¶
func (u *TaskUpsertBulk) ClearLocation() *TaskUpsertBulk
ClearLocation clears the value of the "location" field.
func (*TaskUpsertBulk) ClearParentUID ¶
func (u *TaskUpsertBulk) ClearParentUID() *TaskUpsertBulk
ClearParentUID clears the value of the "parent_uid" field.
func (*TaskUpsertBulk) ClearRawIcs ¶
func (u *TaskUpsertBulk) ClearRawIcs() *TaskUpsertBulk
ClearRawIcs clears the value of the "raw_ics" field.
func (*TaskUpsertBulk) ClearRecurrence ¶
func (u *TaskUpsertBulk) ClearRecurrence() *TaskUpsertBulk
ClearRecurrence clears the value of the "recurrence" field.
func (*TaskUpsertBulk) ClearReminders ¶
func (u *TaskUpsertBulk) ClearReminders() *TaskUpsertBulk
ClearReminders clears the value of the "reminders" field.
func (*TaskUpsertBulk) ClearRemoteID ¶
func (u *TaskUpsertBulk) ClearRemoteID() *TaskUpsertBulk
ClearRemoteID clears the value of the "remote_id" field.
func (*TaskUpsertBulk) ClearStart ¶
func (u *TaskUpsertBulk) ClearStart() *TaskUpsertBulk
ClearStart clears the value of the "start" field.
func (*TaskUpsertBulk) ClearStartTz ¶
func (u *TaskUpsertBulk) ClearStartTz() *TaskUpsertBulk
ClearStartTz clears the value of the "start_tz" field.
func (*TaskUpsertBulk) DoNothing ¶
func (u *TaskUpsertBulk) DoNothing() *TaskUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TaskUpsertBulk) Exec ¶
func (u *TaskUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskUpsertBulk) ExecX ¶
func (u *TaskUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpsertBulk) Ignore ¶
func (u *TaskUpsertBulk) Ignore() *TaskUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Task.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*TaskUpsertBulk) SetAllDay ¶
func (u *TaskUpsertBulk) SetAllDay(v bool) *TaskUpsertBulk
SetAllDay sets the "all_day" field.
func (*TaskUpsertBulk) SetCategories ¶
func (u *TaskUpsertBulk) SetCategories(v []string) *TaskUpsertBulk
SetCategories sets the "categories" field.
func (*TaskUpsertBulk) SetCompleted ¶
func (u *TaskUpsertBulk) SetCompleted(v time.Time) *TaskUpsertBulk
SetCompleted sets the "completed" field.
func (*TaskUpsertBulk) SetCreated ¶
func (u *TaskUpsertBulk) SetCreated(v time.Time) *TaskUpsertBulk
SetCreated sets the "created" field.
func (*TaskUpsertBulk) SetDescription ¶
func (u *TaskUpsertBulk) SetDescription(v string) *TaskUpsertBulk
SetDescription sets the "description" field.
func (*TaskUpsertBulk) SetDue ¶
func (u *TaskUpsertBulk) SetDue(v time.Time) *TaskUpsertBulk
SetDue sets the "due" field.
func (*TaskUpsertBulk) SetDueTz ¶
func (u *TaskUpsertBulk) SetDueTz(v string) *TaskUpsertBulk
SetDueTz sets the "due_tz" field.
func (*TaskUpsertBulk) SetEtag ¶
func (u *TaskUpsertBulk) SetEtag(v string) *TaskUpsertBulk
SetEtag sets the "etag" field.
func (*TaskUpsertBulk) SetLocation ¶
func (u *TaskUpsertBulk) SetLocation(v string) *TaskUpsertBulk
SetLocation sets the "location" field.
func (*TaskUpsertBulk) SetParentUID ¶
func (u *TaskUpsertBulk) SetParentUID(v string) *TaskUpsertBulk
SetParentUID sets the "parent_uid" field.
func (*TaskUpsertBulk) SetPercentComplete ¶
func (u *TaskUpsertBulk) SetPercentComplete(v int) *TaskUpsertBulk
SetPercentComplete sets the "percent_complete" field.
func (*TaskUpsertBulk) SetPriority ¶
func (u *TaskUpsertBulk) SetPriority(v int) *TaskUpsertBulk
SetPriority sets the "priority" field.
func (*TaskUpsertBulk) SetRawIcs ¶
func (u *TaskUpsertBulk) SetRawIcs(v string) *TaskUpsertBulk
SetRawIcs sets the "raw_ics" field.
func (*TaskUpsertBulk) SetRecurrence ¶
func (u *TaskUpsertBulk) SetRecurrence(v map[string]interface{}) *TaskUpsertBulk
SetRecurrence sets the "recurrence" field.
func (*TaskUpsertBulk) SetReminders ¶
func (u *TaskUpsertBulk) SetReminders(v []map[string]interface{}) *TaskUpsertBulk
SetReminders sets the "reminders" field.
func (*TaskUpsertBulk) SetRemoteID ¶
func (u *TaskUpsertBulk) SetRemoteID(v string) *TaskUpsertBulk
SetRemoteID sets the "remote_id" field.
func (*TaskUpsertBulk) SetStart ¶
func (u *TaskUpsertBulk) SetStart(v time.Time) *TaskUpsertBulk
SetStart sets the "start" field.
func (*TaskUpsertBulk) SetStartTz ¶
func (u *TaskUpsertBulk) SetStartTz(v string) *TaskUpsertBulk
SetStartTz sets the "start_tz" field.
func (*TaskUpsertBulk) SetStatus ¶
func (u *TaskUpsertBulk) SetStatus(v task.Status) *TaskUpsertBulk
SetStatus sets the "status" field.
func (*TaskUpsertBulk) SetSummary ¶
func (u *TaskUpsertBulk) SetSummary(v string) *TaskUpsertBulk
SetSummary sets the "summary" field.
func (*TaskUpsertBulk) SetUID ¶
func (u *TaskUpsertBulk) SetUID(v string) *TaskUpsertBulk
SetUID sets the "uid" field.
func (*TaskUpsertBulk) SetUpdated ¶
func (u *TaskUpsertBulk) SetUpdated(v time.Time) *TaskUpsertBulk
SetUpdated sets the "updated" field.
func (*TaskUpsertBulk) Update ¶
func (u *TaskUpsertBulk) Update(set func(*TaskUpsert)) *TaskUpsertBulk
Update allows overriding fields `UPDATE` values. See the TaskCreateBulk.OnConflict documentation for more info.
func (*TaskUpsertBulk) UpdateAllDay ¶
func (u *TaskUpsertBulk) UpdateAllDay() *TaskUpsertBulk
UpdateAllDay sets the "all_day" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateCategories ¶
func (u *TaskUpsertBulk) UpdateCategories() *TaskUpsertBulk
UpdateCategories sets the "categories" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateCompleted ¶
func (u *TaskUpsertBulk) UpdateCompleted() *TaskUpsertBulk
UpdateCompleted sets the "completed" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateCreated ¶
func (u *TaskUpsertBulk) UpdateCreated() *TaskUpsertBulk
UpdateCreated sets the "created" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateDescription ¶
func (u *TaskUpsertBulk) UpdateDescription() *TaskUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateDue ¶
func (u *TaskUpsertBulk) UpdateDue() *TaskUpsertBulk
UpdateDue sets the "due" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateDueTz ¶
func (u *TaskUpsertBulk) UpdateDueTz() *TaskUpsertBulk
UpdateDueTz sets the "due_tz" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateEtag ¶
func (u *TaskUpsertBulk) UpdateEtag() *TaskUpsertBulk
UpdateEtag sets the "etag" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateLocation ¶
func (u *TaskUpsertBulk) UpdateLocation() *TaskUpsertBulk
UpdateLocation sets the "location" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateNewValues ¶
func (u *TaskUpsertBulk) UpdateNewValues() *TaskUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Task.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(task.FieldID)
}),
).
Exec(ctx)
func (*TaskUpsertBulk) UpdateParentUID ¶
func (u *TaskUpsertBulk) UpdateParentUID() *TaskUpsertBulk
UpdateParentUID sets the "parent_uid" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdatePercentComplete ¶
func (u *TaskUpsertBulk) UpdatePercentComplete() *TaskUpsertBulk
UpdatePercentComplete sets the "percent_complete" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdatePriority ¶
func (u *TaskUpsertBulk) UpdatePriority() *TaskUpsertBulk
UpdatePriority sets the "priority" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateRawIcs ¶
func (u *TaskUpsertBulk) UpdateRawIcs() *TaskUpsertBulk
UpdateRawIcs sets the "raw_ics" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateRecurrence ¶
func (u *TaskUpsertBulk) UpdateRecurrence() *TaskUpsertBulk
UpdateRecurrence sets the "recurrence" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateReminders ¶
func (u *TaskUpsertBulk) UpdateReminders() *TaskUpsertBulk
UpdateReminders sets the "reminders" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateRemoteID ¶
func (u *TaskUpsertBulk) UpdateRemoteID() *TaskUpsertBulk
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateStart ¶
func (u *TaskUpsertBulk) UpdateStart() *TaskUpsertBulk
UpdateStart sets the "start" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateStartTz ¶
func (u *TaskUpsertBulk) UpdateStartTz() *TaskUpsertBulk
UpdateStartTz sets the "start_tz" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateStatus ¶
func (u *TaskUpsertBulk) UpdateStatus() *TaskUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateSummary ¶
func (u *TaskUpsertBulk) UpdateSummary() *TaskUpsertBulk
UpdateSummary sets the "summary" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateUID ¶
func (u *TaskUpsertBulk) UpdateUID() *TaskUpsertBulk
UpdateUID sets the "uid" field to the value that was provided on create.
func (*TaskUpsertBulk) UpdateUpdated ¶
func (u *TaskUpsertBulk) UpdateUpdated() *TaskUpsertBulk
UpdateUpdated sets the "updated" field to the value that was provided on create.
type TaskUpsertOne ¶
type TaskUpsertOne struct {
// contains filtered or unexported fields
}
TaskUpsertOne is the builder for "upsert"-ing
one Task node.
func (*TaskUpsertOne) AddPercentComplete ¶
func (u *TaskUpsertOne) AddPercentComplete(v int) *TaskUpsertOne
AddPercentComplete adds v to the "percent_complete" field.
func (*TaskUpsertOne) AddPriority ¶
func (u *TaskUpsertOne) AddPriority(v int) *TaskUpsertOne
AddPriority adds v to the "priority" field.
func (*TaskUpsertOne) ClearCategories ¶
func (u *TaskUpsertOne) ClearCategories() *TaskUpsertOne
ClearCategories clears the value of the "categories" field.
func (*TaskUpsertOne) ClearCompleted ¶
func (u *TaskUpsertOne) ClearCompleted() *TaskUpsertOne
ClearCompleted clears the value of the "completed" field.
func (*TaskUpsertOne) ClearDescription ¶
func (u *TaskUpsertOne) ClearDescription() *TaskUpsertOne
ClearDescription clears the value of the "description" field.
func (*TaskUpsertOne) ClearDue ¶
func (u *TaskUpsertOne) ClearDue() *TaskUpsertOne
ClearDue clears the value of the "due" field.
func (*TaskUpsertOne) ClearDueTz ¶
func (u *TaskUpsertOne) ClearDueTz() *TaskUpsertOne
ClearDueTz clears the value of the "due_tz" field.
func (*TaskUpsertOne) ClearEtag ¶
func (u *TaskUpsertOne) ClearEtag() *TaskUpsertOne
ClearEtag clears the value of the "etag" field.
func (*TaskUpsertOne) ClearLocation ¶
func (u *TaskUpsertOne) ClearLocation() *TaskUpsertOne
ClearLocation clears the value of the "location" field.
func (*TaskUpsertOne) ClearParentUID ¶
func (u *TaskUpsertOne) ClearParentUID() *TaskUpsertOne
ClearParentUID clears the value of the "parent_uid" field.
func (*TaskUpsertOne) ClearRawIcs ¶
func (u *TaskUpsertOne) ClearRawIcs() *TaskUpsertOne
ClearRawIcs clears the value of the "raw_ics" field.
func (*TaskUpsertOne) ClearRecurrence ¶
func (u *TaskUpsertOne) ClearRecurrence() *TaskUpsertOne
ClearRecurrence clears the value of the "recurrence" field.
func (*TaskUpsertOne) ClearReminders ¶
func (u *TaskUpsertOne) ClearReminders() *TaskUpsertOne
ClearReminders clears the value of the "reminders" field.
func (*TaskUpsertOne) ClearRemoteID ¶
func (u *TaskUpsertOne) ClearRemoteID() *TaskUpsertOne
ClearRemoteID clears the value of the "remote_id" field.
func (*TaskUpsertOne) ClearStart ¶
func (u *TaskUpsertOne) ClearStart() *TaskUpsertOne
ClearStart clears the value of the "start" field.
func (*TaskUpsertOne) ClearStartTz ¶
func (u *TaskUpsertOne) ClearStartTz() *TaskUpsertOne
ClearStartTz clears the value of the "start_tz" field.
func (*TaskUpsertOne) DoNothing ¶
func (u *TaskUpsertOne) DoNothing() *TaskUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TaskUpsertOne) Exec ¶
func (u *TaskUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskUpsertOne) ExecX ¶
func (u *TaskUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpsertOne) ID ¶
func (u *TaskUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*TaskUpsertOne) IDX ¶
func (u *TaskUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*TaskUpsertOne) Ignore ¶
func (u *TaskUpsertOne) Ignore() *TaskUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Task.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*TaskUpsertOne) SetAllDay ¶
func (u *TaskUpsertOne) SetAllDay(v bool) *TaskUpsertOne
SetAllDay sets the "all_day" field.
func (*TaskUpsertOne) SetCategories ¶
func (u *TaskUpsertOne) SetCategories(v []string) *TaskUpsertOne
SetCategories sets the "categories" field.
func (*TaskUpsertOne) SetCompleted ¶
func (u *TaskUpsertOne) SetCompleted(v time.Time) *TaskUpsertOne
SetCompleted sets the "completed" field.
func (*TaskUpsertOne) SetCreated ¶
func (u *TaskUpsertOne) SetCreated(v time.Time) *TaskUpsertOne
SetCreated sets the "created" field.
func (*TaskUpsertOne) SetDescription ¶
func (u *TaskUpsertOne) SetDescription(v string) *TaskUpsertOne
SetDescription sets the "description" field.
func (*TaskUpsertOne) SetDue ¶
func (u *TaskUpsertOne) SetDue(v time.Time) *TaskUpsertOne
SetDue sets the "due" field.
func (*TaskUpsertOne) SetDueTz ¶
func (u *TaskUpsertOne) SetDueTz(v string) *TaskUpsertOne
SetDueTz sets the "due_tz" field.
func (*TaskUpsertOne) SetEtag ¶
func (u *TaskUpsertOne) SetEtag(v string) *TaskUpsertOne
SetEtag sets the "etag" field.
func (*TaskUpsertOne) SetLocation ¶
func (u *TaskUpsertOne) SetLocation(v string) *TaskUpsertOne
SetLocation sets the "location" field.
func (*TaskUpsertOne) SetParentUID ¶
func (u *TaskUpsertOne) SetParentUID(v string) *TaskUpsertOne
SetParentUID sets the "parent_uid" field.
func (*TaskUpsertOne) SetPercentComplete ¶
func (u *TaskUpsertOne) SetPercentComplete(v int) *TaskUpsertOne
SetPercentComplete sets the "percent_complete" field.
func (*TaskUpsertOne) SetPriority ¶
func (u *TaskUpsertOne) SetPriority(v int) *TaskUpsertOne
SetPriority sets the "priority" field.
func (*TaskUpsertOne) SetRawIcs ¶
func (u *TaskUpsertOne) SetRawIcs(v string) *TaskUpsertOne
SetRawIcs sets the "raw_ics" field.
func (*TaskUpsertOne) SetRecurrence ¶
func (u *TaskUpsertOne) SetRecurrence(v map[string]interface{}) *TaskUpsertOne
SetRecurrence sets the "recurrence" field.
func (*TaskUpsertOne) SetReminders ¶
func (u *TaskUpsertOne) SetReminders(v []map[string]interface{}) *TaskUpsertOne
SetReminders sets the "reminders" field.
func (*TaskUpsertOne) SetRemoteID ¶
func (u *TaskUpsertOne) SetRemoteID(v string) *TaskUpsertOne
SetRemoteID sets the "remote_id" field.
func (*TaskUpsertOne) SetStart ¶
func (u *TaskUpsertOne) SetStart(v time.Time) *TaskUpsertOne
SetStart sets the "start" field.
func (*TaskUpsertOne) SetStartTz ¶
func (u *TaskUpsertOne) SetStartTz(v string) *TaskUpsertOne
SetStartTz sets the "start_tz" field.
func (*TaskUpsertOne) SetStatus ¶
func (u *TaskUpsertOne) SetStatus(v task.Status) *TaskUpsertOne
SetStatus sets the "status" field.
func (*TaskUpsertOne) SetSummary ¶
func (u *TaskUpsertOne) SetSummary(v string) *TaskUpsertOne
SetSummary sets the "summary" field.
func (*TaskUpsertOne) SetUID ¶
func (u *TaskUpsertOne) SetUID(v string) *TaskUpsertOne
SetUID sets the "uid" field.
func (*TaskUpsertOne) SetUpdated ¶
func (u *TaskUpsertOne) SetUpdated(v time.Time) *TaskUpsertOne
SetUpdated sets the "updated" field.
func (*TaskUpsertOne) Update ¶
func (u *TaskUpsertOne) Update(set func(*TaskUpsert)) *TaskUpsertOne
Update allows overriding fields `UPDATE` values. See the TaskCreate.OnConflict documentation for more info.
func (*TaskUpsertOne) UpdateAllDay ¶
func (u *TaskUpsertOne) UpdateAllDay() *TaskUpsertOne
UpdateAllDay sets the "all_day" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateCategories ¶
func (u *TaskUpsertOne) UpdateCategories() *TaskUpsertOne
UpdateCategories sets the "categories" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateCompleted ¶
func (u *TaskUpsertOne) UpdateCompleted() *TaskUpsertOne
UpdateCompleted sets the "completed" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateCreated ¶
func (u *TaskUpsertOne) UpdateCreated() *TaskUpsertOne
UpdateCreated sets the "created" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateDescription ¶
func (u *TaskUpsertOne) UpdateDescription() *TaskUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateDue ¶
func (u *TaskUpsertOne) UpdateDue() *TaskUpsertOne
UpdateDue sets the "due" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateDueTz ¶
func (u *TaskUpsertOne) UpdateDueTz() *TaskUpsertOne
UpdateDueTz sets the "due_tz" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateEtag ¶
func (u *TaskUpsertOne) UpdateEtag() *TaskUpsertOne
UpdateEtag sets the "etag" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateLocation ¶
func (u *TaskUpsertOne) UpdateLocation() *TaskUpsertOne
UpdateLocation sets the "location" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateNewValues ¶
func (u *TaskUpsertOne) UpdateNewValues() *TaskUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Task.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(task.FieldID)
}),
).
Exec(ctx)
func (*TaskUpsertOne) UpdateParentUID ¶
func (u *TaskUpsertOne) UpdateParentUID() *TaskUpsertOne
UpdateParentUID sets the "parent_uid" field to the value that was provided on create.
func (*TaskUpsertOne) UpdatePercentComplete ¶
func (u *TaskUpsertOne) UpdatePercentComplete() *TaskUpsertOne
UpdatePercentComplete sets the "percent_complete" field to the value that was provided on create.
func (*TaskUpsertOne) UpdatePriority ¶
func (u *TaskUpsertOne) UpdatePriority() *TaskUpsertOne
UpdatePriority sets the "priority" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateRawIcs ¶
func (u *TaskUpsertOne) UpdateRawIcs() *TaskUpsertOne
UpdateRawIcs sets the "raw_ics" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateRecurrence ¶
func (u *TaskUpsertOne) UpdateRecurrence() *TaskUpsertOne
UpdateRecurrence sets the "recurrence" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateReminders ¶
func (u *TaskUpsertOne) UpdateReminders() *TaskUpsertOne
UpdateReminders sets the "reminders" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateRemoteID ¶
func (u *TaskUpsertOne) UpdateRemoteID() *TaskUpsertOne
UpdateRemoteID sets the "remote_id" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateStart ¶
func (u *TaskUpsertOne) UpdateStart() *TaskUpsertOne
UpdateStart sets the "start" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateStartTz ¶
func (u *TaskUpsertOne) UpdateStartTz() *TaskUpsertOne
UpdateStartTz sets the "start_tz" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateStatus ¶
func (u *TaskUpsertOne) UpdateStatus() *TaskUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateSummary ¶
func (u *TaskUpsertOne) UpdateSummary() *TaskUpsertOne
UpdateSummary sets the "summary" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateUID ¶
func (u *TaskUpsertOne) UpdateUID() *TaskUpsertOne
UpdateUID sets the "uid" field to the value that was provided on create.
func (*TaskUpsertOne) UpdateUpdated ¶
func (u *TaskUpsertOne) UpdateUpdated() *TaskUpsertOne
UpdateUpdated sets the "updated" field to the value that was provided on create.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// Account is the client for interacting with the Account builders.
Account *AccountClient
// Calendar is the client for interacting with the Calendar builders.
Calendar *CalendarClient
// Event is the client for interacting with the Event builders.
Event *EventClient
// InvitationState is the client for interacting with the InvitationState builders.
InvitationState *InvitationStateClient
// ReminderState is the client for interacting with the ReminderState builders.
ReminderState *ReminderStateClient
// Secret is the client for interacting with the Secret builders.
Secret *SecretClient
// Task is the client for interacting with the Task builders.
Task *TaskClient
// 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) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
func (*Tx) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
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
¶
- account.go
- account_create.go
- account_delete.go
- account_query.go
- account_update.go
- calendar.go
- calendar_create.go
- calendar_delete.go
- calendar_query.go
- calendar_update.go
- client.go
- ent.go
- event.go
- event_create.go
- event_delete.go
- event_query.go
- event_update.go
- generate.go
- invitationstate.go
- invitationstate_create.go
- invitationstate_delete.go
- invitationstate_query.go
- invitationstate_update.go
- mutation.go
- reminderstate.go
- reminderstate_create.go
- reminderstate_delete.go
- reminderstate_query.go
- reminderstate_update.go
- runtime.go
- secret.go
- secret_create.go
- secret_delete.go
- secret_query.go
- secret_update.go
- task.go
- task_create.go
- task_delete.go
- task_query.go
- task_update.go
- tx.go