Documentation ¶
Index ¶
- Constants
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type Account
- type AccountClient
- func (c *AccountClient) Create() *AccountCreate
- func (c *AccountClient) CreateBulk(builders ...*AccountCreate) *AccountCreateBulk
- func (c *AccountClient) Delete() *AccountDelete
- func (c *AccountClient) DeleteOne(a *Account) *AccountDeleteOne
- func (c *AccountClient) DeleteOneID(id model.InternalID) *AccountDeleteOne
- func (c *AccountClient) Get(ctx context.Context, id model.InternalID) (*Account, error)
- func (c *AccountClient) GetX(ctx context.Context, id model.InternalID) *Account
- func (c *AccountClient) Hooks() []Hook
- func (c *AccountClient) Intercept(interceptors ...Interceptor)
- func (c *AccountClient) Interceptors() []Interceptor
- func (c *AccountClient) Query() *AccountQuery
- func (c *AccountClient) QueryUser(a *Account) *UserQuery
- func (c *AccountClient) Update() *AccountUpdate
- func (c *AccountClient) UpdateOne(a *Account) *AccountUpdateOne
- func (c *AccountClient) UpdateOneID(id model.InternalID) *AccountUpdateOne
- func (c *AccountClient) Use(hooks ...Hook)
- type AccountCreate
- func (ac *AccountCreate) Exec(ctx context.Context) error
- func (ac *AccountCreate) ExecX(ctx context.Context)
- func (ac *AccountCreate) Mutation() *AccountMutation
- func (ac *AccountCreate) OnConflict(opts ...sql.ConflictOption) *AccountUpsertOne
- func (ac *AccountCreate) OnConflictColumns(columns ...string) *AccountUpsertOne
- func (ac *AccountCreate) Save(ctx context.Context) (*Account, error)
- func (ac *AccountCreate) SaveX(ctx context.Context) *Account
- func (ac *AccountCreate) SetAvatarURL(s string) *AccountCreate
- func (ac *AccountCreate) SetCreatedAt(t time.Time) *AccountCreate
- func (ac *AccountCreate) SetID(mi model.InternalID) *AccountCreate
- func (ac *AccountCreate) SetName(s string) *AccountCreate
- func (ac *AccountCreate) SetNillableCreatedAt(t *time.Time) *AccountCreate
- func (ac *AccountCreate) SetNillableUpdatedAt(t *time.Time) *AccountCreate
- func (ac *AccountCreate) SetNillableUserID(id *model.InternalID) *AccountCreate
- func (ac *AccountCreate) SetPlatform(a account.Platform) *AccountCreate
- func (ac *AccountCreate) SetPlatformAccountID(s string) *AccountCreate
- func (ac *AccountCreate) SetProfileURL(s string) *AccountCreate
- func (ac *AccountCreate) SetUpdatedAt(t time.Time) *AccountCreate
- func (ac *AccountCreate) SetUser(u *User) *AccountCreate
- func (ac *AccountCreate) SetUserID(id model.InternalID) *AccountCreate
- type AccountCreateBulk
- func (acb *AccountCreateBulk) Exec(ctx context.Context) error
- func (acb *AccountCreateBulk) ExecX(ctx context.Context)
- func (acb *AccountCreateBulk) OnConflict(opts ...sql.ConflictOption) *AccountUpsertBulk
- func (acb *AccountCreateBulk) OnConflictColumns(columns ...string) *AccountUpsertBulk
- func (acb *AccountCreateBulk) Save(ctx context.Context) ([]*Account, error)
- func (acb *AccountCreateBulk) SaveX(ctx context.Context) []*Account
- type AccountDelete
- type AccountDeleteOne
- type AccountEdges
- type AccountGroupBy
- func (agb *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 (agb *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) AddField(name string, value ent.Value) error
- 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) AvatarURL() (r string, exists bool)
- func (m *AccountMutation) ClearEdge(name string) error
- func (m *AccountMutation) ClearField(name string) error
- func (m *AccountMutation) ClearUser()
- 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) EdgeCleared(name string) bool
- 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 model.InternalID, exists bool)
- func (m *AccountMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *AccountMutation) Name() (r string, exists bool)
- func (m *AccountMutation) OldAvatarURL(ctx context.Context) (v string, err error)
- func (m *AccountMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AccountMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AccountMutation) OldName(ctx context.Context) (v string, err error)
- func (m *AccountMutation) OldPlatform(ctx context.Context) (v account.Platform, err error)
- func (m *AccountMutation) OldPlatformAccountID(ctx context.Context) (v string, err error)
- func (m *AccountMutation) OldProfileURL(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 (m *AccountMutation) Platform() (r account.Platform, exists bool)
- func (m *AccountMutation) PlatformAccountID() (r string, exists bool)
- func (m *AccountMutation) ProfileURL() (r string, exists bool)
- func (m *AccountMutation) RemovedEdges() []string
- func (m *AccountMutation) RemovedIDs(name string) []ent.Value
- func (m *AccountMutation) ResetAvatarURL()
- func (m *AccountMutation) ResetCreatedAt()
- func (m *AccountMutation) ResetEdge(name string) error
- func (m *AccountMutation) ResetField(name string) error
- func (m *AccountMutation) ResetName()
- func (m *AccountMutation) ResetPlatform()
- func (m *AccountMutation) ResetPlatformAccountID()
- func (m *AccountMutation) ResetProfileURL()
- func (m *AccountMutation) ResetUpdatedAt()
- func (m *AccountMutation) ResetUser()
- func (m *AccountMutation) SetAvatarURL(s string)
- func (m *AccountMutation) SetCreatedAt(t time.Time)
- func (m *AccountMutation) SetField(name string, value ent.Value) error
- func (m *AccountMutation) SetID(id model.InternalID)
- func (m *AccountMutation) SetName(s string)
- func (m *AccountMutation) SetOp(op Op)
- func (m *AccountMutation) SetPlatform(a account.Platform)
- func (m *AccountMutation) SetPlatformAccountID(s string)
- func (m *AccountMutation) SetProfileURL(s string)
- func (m *AccountMutation) SetUpdatedAt(t time.Time)
- func (m *AccountMutation) SetUserID(id model.InternalID)
- func (m AccountMutation) Tx() (*Tx, error)
- func (m *AccountMutation) Type() string
- func (m *AccountMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *AccountMutation) UserCleared() bool
- func (m *AccountMutation) UserID() (id model.InternalID, exists bool)
- func (m *AccountMutation) UserIDs() (ids []model.InternalID)
- func (m *AccountMutation) Where(ps ...predicate.Account)
- func (m *AccountMutation) WhereP(ps ...func(*sql.Selector))
- type AccountQuery
- func (aq *AccountQuery) Aggregate(fns ...AggregateFunc) *AccountSelect
- func (aq *AccountQuery) All(ctx context.Context) ([]*Account, error)
- func (aq *AccountQuery) AllX(ctx context.Context) []*Account
- func (aq *AccountQuery) Clone() *AccountQuery
- func (aq *AccountQuery) Count(ctx context.Context) (int, error)
- func (aq *AccountQuery) CountX(ctx context.Context) int
- func (aq *AccountQuery) Exist(ctx context.Context) (bool, error)
- func (aq *AccountQuery) ExistX(ctx context.Context) bool
- func (aq *AccountQuery) First(ctx context.Context) (*Account, error)
- func (aq *AccountQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (aq *AccountQuery) FirstIDX(ctx context.Context) model.InternalID
- func (aq *AccountQuery) FirstX(ctx context.Context) *Account
- func (aq *AccountQuery) GroupBy(field string, fields ...string) *AccountGroupBy
- func (aq *AccountQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (aq *AccountQuery) IDsX(ctx context.Context) []model.InternalID
- func (aq *AccountQuery) Limit(limit int) *AccountQuery
- func (aq *AccountQuery) Offset(offset int) *AccountQuery
- func (aq *AccountQuery) Only(ctx context.Context) (*Account, error)
- func (aq *AccountQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (aq *AccountQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (aq *AccountQuery) OnlyX(ctx context.Context) *Account
- func (aq *AccountQuery) Order(o ...OrderFunc) *AccountQuery
- func (aq *AccountQuery) QueryUser() *UserQuery
- func (aq *AccountQuery) Select(fields ...string) *AccountSelect
- func (aq *AccountQuery) Unique(unique bool) *AccountQuery
- func (aq *AccountQuery) Where(ps ...predicate.Account) *AccountQuery
- func (aq *AccountQuery) WithUser(opts ...func(*UserQuery)) *AccountQuery
- type AccountSelect
- func (as *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 (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 (as *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 (au *AccountUpdate) ClearUser() *AccountUpdate
- func (au *AccountUpdate) Exec(ctx context.Context) error
- func (au *AccountUpdate) ExecX(ctx context.Context)
- func (au *AccountUpdate) Mutation() *AccountMutation
- func (au *AccountUpdate) Save(ctx context.Context) (int, error)
- func (au *AccountUpdate) SaveX(ctx context.Context) int
- func (au *AccountUpdate) SetAvatarURL(s string) *AccountUpdate
- func (au *AccountUpdate) SetCreatedAt(t time.Time) *AccountUpdate
- func (au *AccountUpdate) SetName(s string) *AccountUpdate
- func (au *AccountUpdate) SetNillableCreatedAt(t *time.Time) *AccountUpdate
- func (au *AccountUpdate) SetNillableUserID(id *model.InternalID) *AccountUpdate
- func (au *AccountUpdate) SetPlatform(a account.Platform) *AccountUpdate
- func (au *AccountUpdate) SetPlatformAccountID(s string) *AccountUpdate
- func (au *AccountUpdate) SetProfileURL(s string) *AccountUpdate
- func (au *AccountUpdate) SetUpdatedAt(t time.Time) *AccountUpdate
- func (au *AccountUpdate) SetUser(u *User) *AccountUpdate
- func (au *AccountUpdate) SetUserID(id model.InternalID) *AccountUpdate
- func (au *AccountUpdate) Where(ps ...predicate.Account) *AccountUpdate
- type AccountUpdateOne
- func (auo *AccountUpdateOne) ClearUser() *AccountUpdateOne
- func (auo *AccountUpdateOne) Exec(ctx context.Context) error
- func (auo *AccountUpdateOne) ExecX(ctx context.Context)
- func (auo *AccountUpdateOne) Mutation() *AccountMutation
- func (auo *AccountUpdateOne) Save(ctx context.Context) (*Account, error)
- func (auo *AccountUpdateOne) SaveX(ctx context.Context) *Account
- func (auo *AccountUpdateOne) Select(field string, fields ...string) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetAvatarURL(s string) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetCreatedAt(t time.Time) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetName(s string) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetNillableCreatedAt(t *time.Time) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetNillableUserID(id *model.InternalID) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetPlatform(a account.Platform) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetPlatformAccountID(s string) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetProfileURL(s string) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetUpdatedAt(t time.Time) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetUser(u *User) *AccountUpdateOne
- func (auo *AccountUpdateOne) SetUserID(id model.InternalID) *AccountUpdateOne
- func (auo *AccountUpdateOne) Where(ps ...predicate.Account) *AccountUpdateOne
- type AccountUpsert
- func (u *AccountUpsert) SetAvatarURL(v string) *AccountUpsert
- func (u *AccountUpsert) SetCreatedAt(v time.Time) *AccountUpsert
- func (u *AccountUpsert) SetName(v string) *AccountUpsert
- func (u *AccountUpsert) SetPlatform(v account.Platform) *AccountUpsert
- func (u *AccountUpsert) SetPlatformAccountID(v string) *AccountUpsert
- func (u *AccountUpsert) SetProfileURL(v string) *AccountUpsert
- func (u *AccountUpsert) SetUpdatedAt(v time.Time) *AccountUpsert
- func (u *AccountUpsert) UpdateAvatarURL() *AccountUpsert
- func (u *AccountUpsert) UpdateCreatedAt() *AccountUpsert
- func (u *AccountUpsert) UpdateName() *AccountUpsert
- func (u *AccountUpsert) UpdatePlatform() *AccountUpsert
- func (u *AccountUpsert) UpdatePlatformAccountID() *AccountUpsert
- func (u *AccountUpsert) UpdateProfileURL() *AccountUpsert
- func (u *AccountUpsert) UpdateUpdatedAt() *AccountUpsert
- type 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) SetAvatarURL(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetCreatedAt(v time.Time) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetName(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetPlatform(v account.Platform) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetPlatformAccountID(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetProfileURL(v string) *AccountUpsertBulk
- func (u *AccountUpsertBulk) SetUpdatedAt(v time.Time) *AccountUpsertBulk
- func (u *AccountUpsertBulk) Update(set func(*AccountUpsert)) *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateAvatarURL() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateCreatedAt() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateName() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateNewValues() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdatePlatform() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdatePlatformAccountID() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateProfileURL() *AccountUpsertBulk
- func (u *AccountUpsertBulk) UpdateUpdatedAt() *AccountUpsertBulk
- type 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 model.InternalID, err error)
- func (u *AccountUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *AccountUpsertOne) Ignore() *AccountUpsertOne
- func (u *AccountUpsertOne) SetAvatarURL(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetCreatedAt(v time.Time) *AccountUpsertOne
- func (u *AccountUpsertOne) SetName(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetPlatform(v account.Platform) *AccountUpsertOne
- func (u *AccountUpsertOne) SetPlatformAccountID(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetProfileURL(v string) *AccountUpsertOne
- func (u *AccountUpsertOne) SetUpdatedAt(v time.Time) *AccountUpsertOne
- func (u *AccountUpsertOne) Update(set func(*AccountUpsert)) *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateAvatarURL() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateCreatedAt() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateName() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateNewValues() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdatePlatform() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdatePlatformAccountID() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateProfileURL() *AccountUpsertOne
- func (u *AccountUpsertOne) UpdateUpdatedAt() *AccountUpsertOne
- type Accounts
- type AggregateFunc
- type App
- type AppClient
- func (c *AppClient) Create() *AppCreate
- func (c *AppClient) CreateBulk(builders ...*AppCreate) *AppCreateBulk
- func (c *AppClient) Delete() *AppDelete
- func (c *AppClient) DeleteOne(a *App) *AppDeleteOne
- func (c *AppClient) DeleteOneID(id model.InternalID) *AppDeleteOne
- func (c *AppClient) Get(ctx context.Context, id model.InternalID) (*App, error)
- func (c *AppClient) GetX(ctx context.Context, id model.InternalID) *App
- func (c *AppClient) Hooks() []Hook
- func (c *AppClient) Intercept(interceptors ...Interceptor)
- func (c *AppClient) Interceptors() []Interceptor
- func (c *AppClient) Query() *AppQuery
- func (c *AppClient) QueryAppPackage(a *App) *AppPackageQuery
- func (c *AppClient) QueryUser(a *App) *UserQuery
- func (c *AppClient) Update() *AppUpdate
- func (c *AppClient) UpdateOne(a *App) *AppUpdateOne
- func (c *AppClient) UpdateOneID(id model.InternalID) *AppUpdateOne
- func (c *AppClient) Use(hooks ...Hook)
- type AppCreate
- func (ac *AppCreate) AddAppPackage(a ...*AppPackage) *AppCreate
- func (ac *AppCreate) AddAppPackageIDs(ids ...model.InternalID) *AppCreate
- func (ac *AppCreate) AddUser(u ...*User) *AppCreate
- func (ac *AppCreate) AddUserIDs(ids ...model.InternalID) *AppCreate
- func (ac *AppCreate) Exec(ctx context.Context) error
- func (ac *AppCreate) ExecX(ctx context.Context)
- func (ac *AppCreate) Mutation() *AppMutation
- func (ac *AppCreate) OnConflict(opts ...sql.ConflictOption) *AppUpsertOne
- func (ac *AppCreate) OnConflictColumns(columns ...string) *AppUpsertOne
- func (ac *AppCreate) Save(ctx context.Context) (*App, error)
- func (ac *AppCreate) SaveX(ctx context.Context) *App
- func (ac *AppCreate) SetCreatedAt(t time.Time) *AppCreate
- func (ac *AppCreate) SetDescription(s string) *AppCreate
- func (ac *AppCreate) SetDeveloper(s string) *AppCreate
- func (ac *AppCreate) SetID(mi model.InternalID) *AppCreate
- func (ac *AppCreate) SetImageURL(s string) *AppCreate
- func (ac *AppCreate) SetName(s string) *AppCreate
- func (ac *AppCreate) SetNillableCreatedAt(t *time.Time) *AppCreate
- func (ac *AppCreate) SetNillableUpdatedAt(t *time.Time) *AppCreate
- func (ac *AppCreate) SetPublisher(s string) *AppCreate
- func (ac *AppCreate) SetReleaseDate(s string) *AppCreate
- func (ac *AppCreate) SetShortDescription(s string) *AppCreate
- func (ac *AppCreate) SetSource(a app.Source) *AppCreate
- func (ac *AppCreate) SetSourceAppID(s string) *AppCreate
- func (ac *AppCreate) SetSourceURL(s string) *AppCreate
- func (ac *AppCreate) SetType(a app.Type) *AppCreate
- func (ac *AppCreate) SetUpdatedAt(t time.Time) *AppCreate
- func (ac *AppCreate) SetVersion(s string) *AppCreate
- type AppCreateBulk
- func (acb *AppCreateBulk) Exec(ctx context.Context) error
- func (acb *AppCreateBulk) ExecX(ctx context.Context)
- func (acb *AppCreateBulk) OnConflict(opts ...sql.ConflictOption) *AppUpsertBulk
- func (acb *AppCreateBulk) OnConflictColumns(columns ...string) *AppUpsertBulk
- func (acb *AppCreateBulk) Save(ctx context.Context) ([]*App, error)
- func (acb *AppCreateBulk) SaveX(ctx context.Context) []*App
- type AppDelete
- type AppDeleteOne
- type AppEdges
- type AppGroupBy
- func (agb *AppGroupBy) Aggregate(fns ...AggregateFunc) *AppGroupBy
- func (s *AppGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AppGroupBy) BoolX(ctx context.Context) bool
- func (s *AppGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AppGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AppGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AppGroupBy) Float64X(ctx context.Context) float64
- func (s *AppGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AppGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AppGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AppGroupBy) IntX(ctx context.Context) int
- func (s *AppGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AppGroupBy) IntsX(ctx context.Context) []int
- func (agb *AppGroupBy) Scan(ctx context.Context, v any) error
- func (s *AppGroupBy) ScanX(ctx context.Context, v any)
- func (s *AppGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AppGroupBy) StringX(ctx context.Context) string
- func (s *AppGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AppGroupBy) StringsX(ctx context.Context) []string
- type AppMutation
- func (m *AppMutation) AddAppPackageIDs(ids ...model.InternalID)
- func (m *AppMutation) AddField(name string, value ent.Value) error
- func (m *AppMutation) AddUserIDs(ids ...model.InternalID)
- func (m *AppMutation) AddedEdges() []string
- func (m *AppMutation) AddedField(name string) (ent.Value, bool)
- func (m *AppMutation) AddedFields() []string
- func (m *AppMutation) AddedIDs(name string) []ent.Value
- func (m *AppMutation) AppPackageCleared() bool
- func (m *AppMutation) AppPackageIDs() (ids []model.InternalID)
- func (m *AppMutation) ClearAppPackage()
- func (m *AppMutation) ClearEdge(name string) error
- func (m *AppMutation) ClearField(name string) error
- func (m *AppMutation) ClearUser()
- func (m *AppMutation) ClearedEdges() []string
- func (m *AppMutation) ClearedFields() []string
- func (m AppMutation) Client() *Client
- func (m *AppMutation) CreatedAt() (r time.Time, exists bool)
- func (m *AppMutation) Description() (r string, exists bool)
- func (m *AppMutation) Developer() (r string, exists bool)
- func (m *AppMutation) EdgeCleared(name string) bool
- func (m *AppMutation) Field(name string) (ent.Value, bool)
- func (m *AppMutation) FieldCleared(name string) bool
- func (m *AppMutation) Fields() []string
- func (m *AppMutation) GetType() (r app.Type, exists bool)
- func (m *AppMutation) ID() (id model.InternalID, exists bool)
- func (m *AppMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *AppMutation) ImageURL() (r string, exists bool)
- func (m *AppMutation) Name() (r string, exists bool)
- func (m *AppMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AppMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldDeveloper(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AppMutation) OldImageURL(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldName(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldPublisher(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldReleaseDate(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldShortDescription(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldSource(ctx context.Context) (v app.Source, err error)
- func (m *AppMutation) OldSourceAppID(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldSourceURL(ctx context.Context) (v string, err error)
- func (m *AppMutation) OldType(ctx context.Context) (v app.Type, err error)
- func (m *AppMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AppMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *AppMutation) Op() Op
- func (m *AppMutation) Publisher() (r string, exists bool)
- func (m *AppMutation) ReleaseDate() (r string, exists bool)
- func (m *AppMutation) RemoveAppPackageIDs(ids ...model.InternalID)
- func (m *AppMutation) RemoveUserIDs(ids ...model.InternalID)
- func (m *AppMutation) RemovedAppPackageIDs() (ids []model.InternalID)
- func (m *AppMutation) RemovedEdges() []string
- func (m *AppMutation) RemovedIDs(name string) []ent.Value
- func (m *AppMutation) RemovedUserIDs() (ids []model.InternalID)
- func (m *AppMutation) ResetAppPackage()
- func (m *AppMutation) ResetCreatedAt()
- func (m *AppMutation) ResetDescription()
- func (m *AppMutation) ResetDeveloper()
- func (m *AppMutation) ResetEdge(name string) error
- func (m *AppMutation) ResetField(name string) error
- func (m *AppMutation) ResetImageURL()
- func (m *AppMutation) ResetName()
- func (m *AppMutation) ResetPublisher()
- func (m *AppMutation) ResetReleaseDate()
- func (m *AppMutation) ResetShortDescription()
- func (m *AppMutation) ResetSource()
- func (m *AppMutation) ResetSourceAppID()
- func (m *AppMutation) ResetSourceURL()
- func (m *AppMutation) ResetType()
- func (m *AppMutation) ResetUpdatedAt()
- func (m *AppMutation) ResetUser()
- func (m *AppMutation) ResetVersion()
- func (m *AppMutation) SetCreatedAt(t time.Time)
- func (m *AppMutation) SetDescription(s string)
- func (m *AppMutation) SetDeveloper(s string)
- func (m *AppMutation) SetField(name string, value ent.Value) error
- func (m *AppMutation) SetID(id model.InternalID)
- func (m *AppMutation) SetImageURL(s string)
- func (m *AppMutation) SetName(s string)
- func (m *AppMutation) SetOp(op Op)
- func (m *AppMutation) SetPublisher(s string)
- func (m *AppMutation) SetReleaseDate(s string)
- func (m *AppMutation) SetShortDescription(s string)
- func (m *AppMutation) SetSource(a app.Source)
- func (m *AppMutation) SetSourceAppID(s string)
- func (m *AppMutation) SetSourceURL(s string)
- func (m *AppMutation) SetType(a app.Type)
- func (m *AppMutation) SetUpdatedAt(t time.Time)
- func (m *AppMutation) SetVersion(s string)
- func (m *AppMutation) ShortDescription() (r string, exists bool)
- func (m *AppMutation) Source() (r app.Source, exists bool)
- func (m *AppMutation) SourceAppID() (r string, exists bool)
- func (m *AppMutation) SourceURL() (r string, exists bool)
- func (m AppMutation) Tx() (*Tx, error)
- func (m *AppMutation) Type() string
- func (m *AppMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *AppMutation) UserCleared() bool
- func (m *AppMutation) UserIDs() (ids []model.InternalID)
- func (m *AppMutation) Version() (r string, exists bool)
- func (m *AppMutation) Where(ps ...predicate.App)
- func (m *AppMutation) WhereP(ps ...func(*sql.Selector))
- type AppPackage
- type AppPackageClient
- func (c *AppPackageClient) Create() *AppPackageCreate
- func (c *AppPackageClient) CreateBulk(builders ...*AppPackageCreate) *AppPackageCreateBulk
- func (c *AppPackageClient) Delete() *AppPackageDelete
- func (c *AppPackageClient) DeleteOne(ap *AppPackage) *AppPackageDeleteOne
- func (c *AppPackageClient) DeleteOneID(id model.InternalID) *AppPackageDeleteOne
- func (c *AppPackageClient) Get(ctx context.Context, id model.InternalID) (*AppPackage, error)
- func (c *AppPackageClient) GetX(ctx context.Context, id model.InternalID) *AppPackage
- func (c *AppPackageClient) Hooks() []Hook
- func (c *AppPackageClient) Intercept(interceptors ...Interceptor)
- func (c *AppPackageClient) Interceptors() []Interceptor
- func (c *AppPackageClient) Query() *AppPackageQuery
- func (c *AppPackageClient) QueryApp(ap *AppPackage) *AppQuery
- func (c *AppPackageClient) Update() *AppPackageUpdate
- func (c *AppPackageClient) UpdateOne(ap *AppPackage) *AppPackageUpdateOne
- func (c *AppPackageClient) UpdateOneID(id model.InternalID) *AppPackageUpdateOne
- func (c *AppPackageClient) Use(hooks ...Hook)
- type AppPackageCreate
- func (apc *AppPackageCreate) Exec(ctx context.Context) error
- func (apc *AppPackageCreate) ExecX(ctx context.Context)
- func (apc *AppPackageCreate) Mutation() *AppPackageMutation
- func (apc *AppPackageCreate) OnConflict(opts ...sql.ConflictOption) *AppPackageUpsertOne
- func (apc *AppPackageCreate) OnConflictColumns(columns ...string) *AppPackageUpsertOne
- func (apc *AppPackageCreate) Save(ctx context.Context) (*AppPackage, error)
- func (apc *AppPackageCreate) SaveX(ctx context.Context) *AppPackage
- func (apc *AppPackageCreate) SetApp(a *App) *AppPackageCreate
- func (apc *AppPackageCreate) SetAppID(id model.InternalID) *AppPackageCreate
- func (apc *AppPackageCreate) SetBinaryName(s string) *AppPackageCreate
- func (apc *AppPackageCreate) SetBinaryPublicURL(s string) *AppPackageCreate
- func (apc *AppPackageCreate) SetBinarySize(i int64) *AppPackageCreate
- func (apc *AppPackageCreate) SetCreatedAt(t time.Time) *AppPackageCreate
- func (apc *AppPackageCreate) SetDescription(s string) *AppPackageCreate
- func (apc *AppPackageCreate) SetID(mi model.InternalID) *AppPackageCreate
- func (apc *AppPackageCreate) SetName(s string) *AppPackageCreate
- func (apc *AppPackageCreate) SetNillableAppID(id *model.InternalID) *AppPackageCreate
- func (apc *AppPackageCreate) SetNillableCreatedAt(t *time.Time) *AppPackageCreate
- func (apc *AppPackageCreate) SetNillableUpdatedAt(t *time.Time) *AppPackageCreate
- func (apc *AppPackageCreate) SetSource(a apppackage.Source) *AppPackageCreate
- func (apc *AppPackageCreate) SetSourceID(mi model.InternalID) *AppPackageCreate
- func (apc *AppPackageCreate) SetSourcePackageID(s string) *AppPackageCreate
- func (apc *AppPackageCreate) SetUpdatedAt(t time.Time) *AppPackageCreate
- type AppPackageCreateBulk
- func (apcb *AppPackageCreateBulk) Exec(ctx context.Context) error
- func (apcb *AppPackageCreateBulk) ExecX(ctx context.Context)
- func (apcb *AppPackageCreateBulk) OnConflict(opts ...sql.ConflictOption) *AppPackageUpsertBulk
- func (apcb *AppPackageCreateBulk) OnConflictColumns(columns ...string) *AppPackageUpsertBulk
- func (apcb *AppPackageCreateBulk) Save(ctx context.Context) ([]*AppPackage, error)
- func (apcb *AppPackageCreateBulk) SaveX(ctx context.Context) []*AppPackage
- type AppPackageDelete
- type AppPackageDeleteOne
- type AppPackageEdges
- type AppPackageGroupBy
- func (apgb *AppPackageGroupBy) Aggregate(fns ...AggregateFunc) *AppPackageGroupBy
- func (s *AppPackageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AppPackageGroupBy) BoolX(ctx context.Context) bool
- func (s *AppPackageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AppPackageGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AppPackageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AppPackageGroupBy) Float64X(ctx context.Context) float64
- func (s *AppPackageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AppPackageGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AppPackageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AppPackageGroupBy) IntX(ctx context.Context) int
- func (s *AppPackageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AppPackageGroupBy) IntsX(ctx context.Context) []int
- func (apgb *AppPackageGroupBy) Scan(ctx context.Context, v any) error
- func (s *AppPackageGroupBy) ScanX(ctx context.Context, v any)
- func (s *AppPackageGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AppPackageGroupBy) StringX(ctx context.Context) string
- func (s *AppPackageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AppPackageGroupBy) StringsX(ctx context.Context) []string
- type AppPackageMutation
- func (m *AppPackageMutation) AddBinarySize(i int64)
- func (m *AppPackageMutation) AddField(name string, value ent.Value) error
- func (m *AppPackageMutation) AddSourceID(mi model.InternalID)
- func (m *AppPackageMutation) AddedBinarySize() (r int64, exists bool)
- func (m *AppPackageMutation) AddedEdges() []string
- func (m *AppPackageMutation) AddedField(name string) (ent.Value, bool)
- func (m *AppPackageMutation) AddedFields() []string
- func (m *AppPackageMutation) AddedIDs(name string) []ent.Value
- func (m *AppPackageMutation) AddedSourceID() (r model.InternalID, exists bool)
- func (m *AppPackageMutation) AppCleared() bool
- func (m *AppPackageMutation) AppID() (id model.InternalID, exists bool)
- func (m *AppPackageMutation) AppIDs() (ids []model.InternalID)
- func (m *AppPackageMutation) BinaryName() (r string, exists bool)
- func (m *AppPackageMutation) BinaryPublicURL() (r string, exists bool)
- func (m *AppPackageMutation) BinarySize() (r int64, exists bool)
- func (m *AppPackageMutation) ClearApp()
- func (m *AppPackageMutation) ClearEdge(name string) error
- func (m *AppPackageMutation) ClearField(name string) error
- func (m *AppPackageMutation) ClearedEdges() []string
- func (m *AppPackageMutation) ClearedFields() []string
- func (m AppPackageMutation) Client() *Client
- func (m *AppPackageMutation) CreatedAt() (r time.Time, exists bool)
- func (m *AppPackageMutation) Description() (r string, exists bool)
- func (m *AppPackageMutation) EdgeCleared(name string) bool
- func (m *AppPackageMutation) Field(name string) (ent.Value, bool)
- func (m *AppPackageMutation) FieldCleared(name string) bool
- func (m *AppPackageMutation) Fields() []string
- func (m *AppPackageMutation) ID() (id model.InternalID, exists bool)
- func (m *AppPackageMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *AppPackageMutation) Name() (r string, exists bool)
- func (m *AppPackageMutation) OldBinaryName(ctx context.Context) (v string, err error)
- func (m *AppPackageMutation) OldBinaryPublicURL(ctx context.Context) (v string, err error)
- func (m *AppPackageMutation) OldBinarySize(ctx context.Context) (v int64, err error)
- func (m *AppPackageMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AppPackageMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *AppPackageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AppPackageMutation) OldName(ctx context.Context) (v string, err error)
- func (m *AppPackageMutation) OldSource(ctx context.Context) (v apppackage.Source, err error)
- func (m *AppPackageMutation) OldSourceID(ctx context.Context) (v model.InternalID, err error)
- func (m *AppPackageMutation) OldSourcePackageID(ctx context.Context) (v string, err error)
- func (m *AppPackageMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AppPackageMutation) Op() Op
- func (m *AppPackageMutation) RemovedEdges() []string
- func (m *AppPackageMutation) RemovedIDs(name string) []ent.Value
- func (m *AppPackageMutation) ResetApp()
- func (m *AppPackageMutation) ResetBinaryName()
- func (m *AppPackageMutation) ResetBinaryPublicURL()
- func (m *AppPackageMutation) ResetBinarySize()
- func (m *AppPackageMutation) ResetCreatedAt()
- func (m *AppPackageMutation) ResetDescription()
- func (m *AppPackageMutation) ResetEdge(name string) error
- func (m *AppPackageMutation) ResetField(name string) error
- func (m *AppPackageMutation) ResetName()
- func (m *AppPackageMutation) ResetSource()
- func (m *AppPackageMutation) ResetSourceID()
- func (m *AppPackageMutation) ResetSourcePackageID()
- func (m *AppPackageMutation) ResetUpdatedAt()
- func (m *AppPackageMutation) SetAppID(id model.InternalID)
- func (m *AppPackageMutation) SetBinaryName(s string)
- func (m *AppPackageMutation) SetBinaryPublicURL(s string)
- func (m *AppPackageMutation) SetBinarySize(i int64)
- func (m *AppPackageMutation) SetCreatedAt(t time.Time)
- func (m *AppPackageMutation) SetDescription(s string)
- func (m *AppPackageMutation) SetField(name string, value ent.Value) error
- func (m *AppPackageMutation) SetID(id model.InternalID)
- func (m *AppPackageMutation) SetName(s string)
- func (m *AppPackageMutation) SetOp(op Op)
- func (m *AppPackageMutation) SetSource(a apppackage.Source)
- func (m *AppPackageMutation) SetSourceID(mi model.InternalID)
- func (m *AppPackageMutation) SetSourcePackageID(s string)
- func (m *AppPackageMutation) SetUpdatedAt(t time.Time)
- func (m *AppPackageMutation) Source() (r apppackage.Source, exists bool)
- func (m *AppPackageMutation) SourceID() (r model.InternalID, exists bool)
- func (m *AppPackageMutation) SourcePackageID() (r string, exists bool)
- func (m AppPackageMutation) Tx() (*Tx, error)
- func (m *AppPackageMutation) Type() string
- func (m *AppPackageMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *AppPackageMutation) Where(ps ...predicate.AppPackage)
- func (m *AppPackageMutation) WhereP(ps ...func(*sql.Selector))
- type AppPackageQuery
- func (apq *AppPackageQuery) Aggregate(fns ...AggregateFunc) *AppPackageSelect
- func (apq *AppPackageQuery) All(ctx context.Context) ([]*AppPackage, error)
- func (apq *AppPackageQuery) AllX(ctx context.Context) []*AppPackage
- func (apq *AppPackageQuery) Clone() *AppPackageQuery
- func (apq *AppPackageQuery) Count(ctx context.Context) (int, error)
- func (apq *AppPackageQuery) CountX(ctx context.Context) int
- func (apq *AppPackageQuery) Exist(ctx context.Context) (bool, error)
- func (apq *AppPackageQuery) ExistX(ctx context.Context) bool
- func (apq *AppPackageQuery) First(ctx context.Context) (*AppPackage, error)
- func (apq *AppPackageQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (apq *AppPackageQuery) FirstIDX(ctx context.Context) model.InternalID
- func (apq *AppPackageQuery) FirstX(ctx context.Context) *AppPackage
- func (apq *AppPackageQuery) GroupBy(field string, fields ...string) *AppPackageGroupBy
- func (apq *AppPackageQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (apq *AppPackageQuery) IDsX(ctx context.Context) []model.InternalID
- func (apq *AppPackageQuery) Limit(limit int) *AppPackageQuery
- func (apq *AppPackageQuery) Offset(offset int) *AppPackageQuery
- func (apq *AppPackageQuery) Only(ctx context.Context) (*AppPackage, error)
- func (apq *AppPackageQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (apq *AppPackageQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (apq *AppPackageQuery) OnlyX(ctx context.Context) *AppPackage
- func (apq *AppPackageQuery) Order(o ...OrderFunc) *AppPackageQuery
- func (apq *AppPackageQuery) QueryApp() *AppQuery
- func (apq *AppPackageQuery) Select(fields ...string) *AppPackageSelect
- func (apq *AppPackageQuery) Unique(unique bool) *AppPackageQuery
- func (apq *AppPackageQuery) Where(ps ...predicate.AppPackage) *AppPackageQuery
- func (apq *AppPackageQuery) WithApp(opts ...func(*AppQuery)) *AppPackageQuery
- type AppPackageSelect
- func (aps *AppPackageSelect) Aggregate(fns ...AggregateFunc) *AppPackageSelect
- func (s *AppPackageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AppPackageSelect) BoolX(ctx context.Context) bool
- func (s *AppPackageSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AppPackageSelect) BoolsX(ctx context.Context) []bool
- func (s *AppPackageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AppPackageSelect) Float64X(ctx context.Context) float64
- func (s *AppPackageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AppPackageSelect) Float64sX(ctx context.Context) []float64
- func (s *AppPackageSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AppPackageSelect) IntX(ctx context.Context) int
- func (s *AppPackageSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AppPackageSelect) IntsX(ctx context.Context) []int
- func (aps *AppPackageSelect) Scan(ctx context.Context, v any) error
- func (s *AppPackageSelect) ScanX(ctx context.Context, v any)
- func (s *AppPackageSelect) String(ctx context.Context) (_ string, err error)
- func (s *AppPackageSelect) StringX(ctx context.Context) string
- func (s *AppPackageSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AppPackageSelect) StringsX(ctx context.Context) []string
- type AppPackageUpdate
- func (apu *AppPackageUpdate) AddBinarySize(i int64) *AppPackageUpdate
- func (apu *AppPackageUpdate) AddSourceID(mi model.InternalID) *AppPackageUpdate
- func (apu *AppPackageUpdate) ClearApp() *AppPackageUpdate
- func (apu *AppPackageUpdate) Exec(ctx context.Context) error
- func (apu *AppPackageUpdate) ExecX(ctx context.Context)
- func (apu *AppPackageUpdate) Mutation() *AppPackageMutation
- func (apu *AppPackageUpdate) Save(ctx context.Context) (int, error)
- func (apu *AppPackageUpdate) SaveX(ctx context.Context) int
- func (apu *AppPackageUpdate) SetApp(a *App) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetAppID(id model.InternalID) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetBinaryName(s string) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetBinaryPublicURL(s string) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetBinarySize(i int64) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetCreatedAt(t time.Time) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetDescription(s string) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetName(s string) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetNillableAppID(id *model.InternalID) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetNillableCreatedAt(t *time.Time) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetSource(a apppackage.Source) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetSourceID(mi model.InternalID) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetSourcePackageID(s string) *AppPackageUpdate
- func (apu *AppPackageUpdate) SetUpdatedAt(t time.Time) *AppPackageUpdate
- func (apu *AppPackageUpdate) Where(ps ...predicate.AppPackage) *AppPackageUpdate
- type AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) AddBinarySize(i int64) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) AddSourceID(mi model.InternalID) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) ClearApp() *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) Exec(ctx context.Context) error
- func (apuo *AppPackageUpdateOne) ExecX(ctx context.Context)
- func (apuo *AppPackageUpdateOne) Mutation() *AppPackageMutation
- func (apuo *AppPackageUpdateOne) Save(ctx context.Context) (*AppPackage, error)
- func (apuo *AppPackageUpdateOne) SaveX(ctx context.Context) *AppPackage
- func (apuo *AppPackageUpdateOne) Select(field string, fields ...string) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetApp(a *App) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetAppID(id model.InternalID) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetBinaryName(s string) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetBinaryPublicURL(s string) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetBinarySize(i int64) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetCreatedAt(t time.Time) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetDescription(s string) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetName(s string) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetNillableAppID(id *model.InternalID) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetNillableCreatedAt(t *time.Time) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetSource(a apppackage.Source) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetSourceID(mi model.InternalID) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetSourcePackageID(s string) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) SetUpdatedAt(t time.Time) *AppPackageUpdateOne
- func (apuo *AppPackageUpdateOne) Where(ps ...predicate.AppPackage) *AppPackageUpdateOne
- type AppPackageUpsert
- func (u *AppPackageUpsert) AddBinarySize(v int64) *AppPackageUpsert
- func (u *AppPackageUpsert) AddSourceID(v model.InternalID) *AppPackageUpsert
- func (u *AppPackageUpsert) SetBinaryName(v string) *AppPackageUpsert
- func (u *AppPackageUpsert) SetBinaryPublicURL(v string) *AppPackageUpsert
- func (u *AppPackageUpsert) SetBinarySize(v int64) *AppPackageUpsert
- func (u *AppPackageUpsert) SetCreatedAt(v time.Time) *AppPackageUpsert
- func (u *AppPackageUpsert) SetDescription(v string) *AppPackageUpsert
- func (u *AppPackageUpsert) SetName(v string) *AppPackageUpsert
- func (u *AppPackageUpsert) SetSource(v apppackage.Source) *AppPackageUpsert
- func (u *AppPackageUpsert) SetSourceID(v model.InternalID) *AppPackageUpsert
- func (u *AppPackageUpsert) SetSourcePackageID(v string) *AppPackageUpsert
- func (u *AppPackageUpsert) SetUpdatedAt(v time.Time) *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateBinaryName() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateBinaryPublicURL() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateBinarySize() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateCreatedAt() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateDescription() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateName() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateSource() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateSourceID() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateSourcePackageID() *AppPackageUpsert
- func (u *AppPackageUpsert) UpdateUpdatedAt() *AppPackageUpsert
- type AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) AddBinarySize(v int64) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) AddSourceID(v model.InternalID) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) DoNothing() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) Exec(ctx context.Context) error
- func (u *AppPackageUpsertBulk) ExecX(ctx context.Context)
- func (u *AppPackageUpsertBulk) Ignore() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetBinaryName(v string) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetBinaryPublicURL(v string) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetBinarySize(v int64) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetCreatedAt(v time.Time) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetDescription(v string) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetName(v string) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetSource(v apppackage.Source) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetSourceID(v model.InternalID) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetSourcePackageID(v string) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) SetUpdatedAt(v time.Time) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) Update(set func(*AppPackageUpsert)) *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateBinaryName() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateBinaryPublicURL() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateBinarySize() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateCreatedAt() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateDescription() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateName() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateNewValues() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateSource() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateSourceID() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateSourcePackageID() *AppPackageUpsertBulk
- func (u *AppPackageUpsertBulk) UpdateUpdatedAt() *AppPackageUpsertBulk
- type AppPackageUpsertOne
- func (u *AppPackageUpsertOne) AddBinarySize(v int64) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) AddSourceID(v model.InternalID) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) DoNothing() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) Exec(ctx context.Context) error
- func (u *AppPackageUpsertOne) ExecX(ctx context.Context)
- func (u *AppPackageUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
- func (u *AppPackageUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *AppPackageUpsertOne) Ignore() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetBinaryName(v string) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetBinaryPublicURL(v string) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetBinarySize(v int64) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetCreatedAt(v time.Time) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetDescription(v string) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetName(v string) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetSource(v apppackage.Source) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetSourceID(v model.InternalID) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetSourcePackageID(v string) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) SetUpdatedAt(v time.Time) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) Update(set func(*AppPackageUpsert)) *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateBinaryName() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateBinaryPublicURL() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateBinarySize() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateCreatedAt() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateDescription() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateName() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateNewValues() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateSource() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateSourceID() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateSourcePackageID() *AppPackageUpsertOne
- func (u *AppPackageUpsertOne) UpdateUpdatedAt() *AppPackageUpsertOne
- type AppPackages
- type AppQuery
- func (aq *AppQuery) Aggregate(fns ...AggregateFunc) *AppSelect
- func (aq *AppQuery) All(ctx context.Context) ([]*App, error)
- func (aq *AppQuery) AllX(ctx context.Context) []*App
- func (aq *AppQuery) Clone() *AppQuery
- func (aq *AppQuery) Count(ctx context.Context) (int, error)
- func (aq *AppQuery) CountX(ctx context.Context) int
- func (aq *AppQuery) Exist(ctx context.Context) (bool, error)
- func (aq *AppQuery) ExistX(ctx context.Context) bool
- func (aq *AppQuery) First(ctx context.Context) (*App, error)
- func (aq *AppQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (aq *AppQuery) FirstIDX(ctx context.Context) model.InternalID
- func (aq *AppQuery) FirstX(ctx context.Context) *App
- func (aq *AppQuery) GroupBy(field string, fields ...string) *AppGroupBy
- func (aq *AppQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (aq *AppQuery) IDsX(ctx context.Context) []model.InternalID
- func (aq *AppQuery) Limit(limit int) *AppQuery
- func (aq *AppQuery) Offset(offset int) *AppQuery
- func (aq *AppQuery) Only(ctx context.Context) (*App, error)
- func (aq *AppQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (aq *AppQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (aq *AppQuery) OnlyX(ctx context.Context) *App
- func (aq *AppQuery) Order(o ...OrderFunc) *AppQuery
- func (aq *AppQuery) QueryAppPackage() *AppPackageQuery
- func (aq *AppQuery) QueryUser() *UserQuery
- func (aq *AppQuery) Select(fields ...string) *AppSelect
- func (aq *AppQuery) Unique(unique bool) *AppQuery
- func (aq *AppQuery) Where(ps ...predicate.App) *AppQuery
- func (aq *AppQuery) WithAppPackage(opts ...func(*AppPackageQuery)) *AppQuery
- func (aq *AppQuery) WithUser(opts ...func(*UserQuery)) *AppQuery
- type AppSelect
- func (as *AppSelect) Aggregate(fns ...AggregateFunc) *AppSelect
- func (s *AppSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AppSelect) BoolX(ctx context.Context) bool
- func (s *AppSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AppSelect) BoolsX(ctx context.Context) []bool
- func (s *AppSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AppSelect) Float64X(ctx context.Context) float64
- func (s *AppSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AppSelect) Float64sX(ctx context.Context) []float64
- func (s *AppSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AppSelect) IntX(ctx context.Context) int
- func (s *AppSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AppSelect) IntsX(ctx context.Context) []int
- func (as *AppSelect) Scan(ctx context.Context, v any) error
- func (s *AppSelect) ScanX(ctx context.Context, v any)
- func (s *AppSelect) String(ctx context.Context) (_ string, err error)
- func (s *AppSelect) StringX(ctx context.Context) string
- func (s *AppSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AppSelect) StringsX(ctx context.Context) []string
- type AppUpdate
- func (au *AppUpdate) AddAppPackage(a ...*AppPackage) *AppUpdate
- func (au *AppUpdate) AddAppPackageIDs(ids ...model.InternalID) *AppUpdate
- func (au *AppUpdate) AddUser(u ...*User) *AppUpdate
- func (au *AppUpdate) AddUserIDs(ids ...model.InternalID) *AppUpdate
- func (au *AppUpdate) ClearAppPackage() *AppUpdate
- func (au *AppUpdate) ClearUser() *AppUpdate
- func (au *AppUpdate) Exec(ctx context.Context) error
- func (au *AppUpdate) ExecX(ctx context.Context)
- func (au *AppUpdate) Mutation() *AppMutation
- func (au *AppUpdate) RemoveAppPackage(a ...*AppPackage) *AppUpdate
- func (au *AppUpdate) RemoveAppPackageIDs(ids ...model.InternalID) *AppUpdate
- func (au *AppUpdate) RemoveUser(u ...*User) *AppUpdate
- func (au *AppUpdate) RemoveUserIDs(ids ...model.InternalID) *AppUpdate
- func (au *AppUpdate) Save(ctx context.Context) (int, error)
- func (au *AppUpdate) SaveX(ctx context.Context) int
- func (au *AppUpdate) SetCreatedAt(t time.Time) *AppUpdate
- func (au *AppUpdate) SetDescription(s string) *AppUpdate
- func (au *AppUpdate) SetDeveloper(s string) *AppUpdate
- func (au *AppUpdate) SetImageURL(s string) *AppUpdate
- func (au *AppUpdate) SetName(s string) *AppUpdate
- func (au *AppUpdate) SetNillableCreatedAt(t *time.Time) *AppUpdate
- func (au *AppUpdate) SetPublisher(s string) *AppUpdate
- func (au *AppUpdate) SetReleaseDate(s string) *AppUpdate
- func (au *AppUpdate) SetShortDescription(s string) *AppUpdate
- func (au *AppUpdate) SetSource(a app.Source) *AppUpdate
- func (au *AppUpdate) SetSourceAppID(s string) *AppUpdate
- func (au *AppUpdate) SetSourceURL(s string) *AppUpdate
- func (au *AppUpdate) SetType(a app.Type) *AppUpdate
- func (au *AppUpdate) SetUpdatedAt(t time.Time) *AppUpdate
- func (au *AppUpdate) SetVersion(s string) *AppUpdate
- func (au *AppUpdate) Where(ps ...predicate.App) *AppUpdate
- type AppUpdateOne
- func (auo *AppUpdateOne) AddAppPackage(a ...*AppPackage) *AppUpdateOne
- func (auo *AppUpdateOne) AddAppPackageIDs(ids ...model.InternalID) *AppUpdateOne
- func (auo *AppUpdateOne) AddUser(u ...*User) *AppUpdateOne
- func (auo *AppUpdateOne) AddUserIDs(ids ...model.InternalID) *AppUpdateOne
- func (auo *AppUpdateOne) ClearAppPackage() *AppUpdateOne
- func (auo *AppUpdateOne) ClearUser() *AppUpdateOne
- func (auo *AppUpdateOne) Exec(ctx context.Context) error
- func (auo *AppUpdateOne) ExecX(ctx context.Context)
- func (auo *AppUpdateOne) Mutation() *AppMutation
- func (auo *AppUpdateOne) RemoveAppPackage(a ...*AppPackage) *AppUpdateOne
- func (auo *AppUpdateOne) RemoveAppPackageIDs(ids ...model.InternalID) *AppUpdateOne
- func (auo *AppUpdateOne) RemoveUser(u ...*User) *AppUpdateOne
- func (auo *AppUpdateOne) RemoveUserIDs(ids ...model.InternalID) *AppUpdateOne
- func (auo *AppUpdateOne) Save(ctx context.Context) (*App, error)
- func (auo *AppUpdateOne) SaveX(ctx context.Context) *App
- func (auo *AppUpdateOne) Select(field string, fields ...string) *AppUpdateOne
- func (auo *AppUpdateOne) SetCreatedAt(t time.Time) *AppUpdateOne
- func (auo *AppUpdateOne) SetDescription(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetDeveloper(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetImageURL(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetName(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetNillableCreatedAt(t *time.Time) *AppUpdateOne
- func (auo *AppUpdateOne) SetPublisher(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetReleaseDate(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetShortDescription(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetSource(a app.Source) *AppUpdateOne
- func (auo *AppUpdateOne) SetSourceAppID(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetSourceURL(s string) *AppUpdateOne
- func (auo *AppUpdateOne) SetType(a app.Type) *AppUpdateOne
- func (auo *AppUpdateOne) SetUpdatedAt(t time.Time) *AppUpdateOne
- func (auo *AppUpdateOne) SetVersion(s string) *AppUpdateOne
- func (auo *AppUpdateOne) Where(ps ...predicate.App) *AppUpdateOne
- type AppUpsert
- func (u *AppUpsert) SetCreatedAt(v time.Time) *AppUpsert
- func (u *AppUpsert) SetDescription(v string) *AppUpsert
- func (u *AppUpsert) SetDeveloper(v string) *AppUpsert
- func (u *AppUpsert) SetImageURL(v string) *AppUpsert
- func (u *AppUpsert) SetName(v string) *AppUpsert
- func (u *AppUpsert) SetPublisher(v string) *AppUpsert
- func (u *AppUpsert) SetReleaseDate(v string) *AppUpsert
- func (u *AppUpsert) SetShortDescription(v string) *AppUpsert
- func (u *AppUpsert) SetSource(v app.Source) *AppUpsert
- func (u *AppUpsert) SetSourceAppID(v string) *AppUpsert
- func (u *AppUpsert) SetSourceURL(v string) *AppUpsert
- func (u *AppUpsert) SetType(v app.Type) *AppUpsert
- func (u *AppUpsert) SetUpdatedAt(v time.Time) *AppUpsert
- func (u *AppUpsert) SetVersion(v string) *AppUpsert
- func (u *AppUpsert) UpdateCreatedAt() *AppUpsert
- func (u *AppUpsert) UpdateDescription() *AppUpsert
- func (u *AppUpsert) UpdateDeveloper() *AppUpsert
- func (u *AppUpsert) UpdateImageURL() *AppUpsert
- func (u *AppUpsert) UpdateName() *AppUpsert
- func (u *AppUpsert) UpdatePublisher() *AppUpsert
- func (u *AppUpsert) UpdateReleaseDate() *AppUpsert
- func (u *AppUpsert) UpdateShortDescription() *AppUpsert
- func (u *AppUpsert) UpdateSource() *AppUpsert
- func (u *AppUpsert) UpdateSourceAppID() *AppUpsert
- func (u *AppUpsert) UpdateSourceURL() *AppUpsert
- func (u *AppUpsert) UpdateType() *AppUpsert
- func (u *AppUpsert) UpdateUpdatedAt() *AppUpsert
- func (u *AppUpsert) UpdateVersion() *AppUpsert
- type AppUpsertBulk
- func (u *AppUpsertBulk) DoNothing() *AppUpsertBulk
- func (u *AppUpsertBulk) Exec(ctx context.Context) error
- func (u *AppUpsertBulk) ExecX(ctx context.Context)
- func (u *AppUpsertBulk) Ignore() *AppUpsertBulk
- func (u *AppUpsertBulk) SetCreatedAt(v time.Time) *AppUpsertBulk
- func (u *AppUpsertBulk) SetDescription(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetDeveloper(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetImageURL(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetName(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetPublisher(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetReleaseDate(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetShortDescription(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetSource(v app.Source) *AppUpsertBulk
- func (u *AppUpsertBulk) SetSourceAppID(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetSourceURL(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) SetType(v app.Type) *AppUpsertBulk
- func (u *AppUpsertBulk) SetUpdatedAt(v time.Time) *AppUpsertBulk
- func (u *AppUpsertBulk) SetVersion(v string) *AppUpsertBulk
- func (u *AppUpsertBulk) Update(set func(*AppUpsert)) *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateCreatedAt() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateDescription() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateDeveloper() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateImageURL() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateName() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateNewValues() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdatePublisher() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateReleaseDate() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateShortDescription() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateSource() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateSourceAppID() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateSourceURL() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateType() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateUpdatedAt() *AppUpsertBulk
- func (u *AppUpsertBulk) UpdateVersion() *AppUpsertBulk
- type AppUpsertOne
- func (u *AppUpsertOne) DoNothing() *AppUpsertOne
- func (u *AppUpsertOne) Exec(ctx context.Context) error
- func (u *AppUpsertOne) ExecX(ctx context.Context)
- func (u *AppUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
- func (u *AppUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *AppUpsertOne) Ignore() *AppUpsertOne
- func (u *AppUpsertOne) SetCreatedAt(v time.Time) *AppUpsertOne
- func (u *AppUpsertOne) SetDescription(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetDeveloper(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetImageURL(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetName(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetPublisher(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetReleaseDate(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetShortDescription(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetSource(v app.Source) *AppUpsertOne
- func (u *AppUpsertOne) SetSourceAppID(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetSourceURL(v string) *AppUpsertOne
- func (u *AppUpsertOne) SetType(v app.Type) *AppUpsertOne
- func (u *AppUpsertOne) SetUpdatedAt(v time.Time) *AppUpsertOne
- func (u *AppUpsertOne) SetVersion(v string) *AppUpsertOne
- func (u *AppUpsertOne) Update(set func(*AppUpsert)) *AppUpsertOne
- func (u *AppUpsertOne) UpdateCreatedAt() *AppUpsertOne
- func (u *AppUpsertOne) UpdateDescription() *AppUpsertOne
- func (u *AppUpsertOne) UpdateDeveloper() *AppUpsertOne
- func (u *AppUpsertOne) UpdateImageURL() *AppUpsertOne
- func (u *AppUpsertOne) UpdateName() *AppUpsertOne
- func (u *AppUpsertOne) UpdateNewValues() *AppUpsertOne
- func (u *AppUpsertOne) UpdatePublisher() *AppUpsertOne
- func (u *AppUpsertOne) UpdateReleaseDate() *AppUpsertOne
- func (u *AppUpsertOne) UpdateShortDescription() *AppUpsertOne
- func (u *AppUpsertOne) UpdateSource() *AppUpsertOne
- func (u *AppUpsertOne) UpdateSourceAppID() *AppUpsertOne
- func (u *AppUpsertOne) UpdateSourceURL() *AppUpsertOne
- func (u *AppUpsertOne) UpdateType() *AppUpsertOne
- func (u *AppUpsertOne) UpdateUpdatedAt() *AppUpsertOne
- func (u *AppUpsertOne) UpdateVersion() *AppUpsertOne
- type Apps
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Feed
- type FeedClient
- func (c *FeedClient) Create() *FeedCreate
- func (c *FeedClient) CreateBulk(builders ...*FeedCreate) *FeedCreateBulk
- func (c *FeedClient) Delete() *FeedDelete
- func (c *FeedClient) DeleteOne(f *Feed) *FeedDeleteOne
- func (c *FeedClient) DeleteOneID(id model.InternalID) *FeedDeleteOne
- func (c *FeedClient) Get(ctx context.Context, id model.InternalID) (*Feed, error)
- func (c *FeedClient) GetX(ctx context.Context, id model.InternalID) *Feed
- func (c *FeedClient) Hooks() []Hook
- func (c *FeedClient) Intercept(interceptors ...Interceptor)
- func (c *FeedClient) Interceptors() []Interceptor
- func (c *FeedClient) Query() *FeedQuery
- func (c *FeedClient) QueryConfig(f *Feed) *FeedConfigQuery
- func (c *FeedClient) QueryItem(f *Feed) *FeedItemQuery
- func (c *FeedClient) Update() *FeedUpdate
- func (c *FeedClient) UpdateOne(f *Feed) *FeedUpdateOne
- func (c *FeedClient) UpdateOneID(id model.InternalID) *FeedUpdateOne
- func (c *FeedClient) Use(hooks ...Hook)
- type FeedConfig
- type FeedConfigClient
- func (c *FeedConfigClient) Create() *FeedConfigCreate
- func (c *FeedConfigClient) CreateBulk(builders ...*FeedConfigCreate) *FeedConfigCreateBulk
- func (c *FeedConfigClient) Delete() *FeedConfigDelete
- func (c *FeedConfigClient) DeleteOne(fc *FeedConfig) *FeedConfigDeleteOne
- func (c *FeedConfigClient) DeleteOneID(id model.InternalID) *FeedConfigDeleteOne
- func (c *FeedConfigClient) Get(ctx context.Context, id model.InternalID) (*FeedConfig, error)
- func (c *FeedConfigClient) GetX(ctx context.Context, id model.InternalID) *FeedConfig
- func (c *FeedConfigClient) Hooks() []Hook
- func (c *FeedConfigClient) Intercept(interceptors ...Interceptor)
- func (c *FeedConfigClient) Interceptors() []Interceptor
- func (c *FeedConfigClient) Query() *FeedConfigQuery
- func (c *FeedConfigClient) QueryFeed(fc *FeedConfig) *FeedQuery
- func (c *FeedConfigClient) QueryUser(fc *FeedConfig) *UserQuery
- func (c *FeedConfigClient) Update() *FeedConfigUpdate
- func (c *FeedConfigClient) UpdateOne(fc *FeedConfig) *FeedConfigUpdateOne
- func (c *FeedConfigClient) UpdateOneID(id model.InternalID) *FeedConfigUpdateOne
- func (c *FeedConfigClient) Use(hooks ...Hook)
- type FeedConfigCreate
- func (fcc *FeedConfigCreate) Exec(ctx context.Context) error
- func (fcc *FeedConfigCreate) ExecX(ctx context.Context)
- func (fcc *FeedConfigCreate) Mutation() *FeedConfigMutation
- func (fcc *FeedConfigCreate) OnConflict(opts ...sql.ConflictOption) *FeedConfigUpsertOne
- func (fcc *FeedConfigCreate) OnConflictColumns(columns ...string) *FeedConfigUpsertOne
- func (fcc *FeedConfigCreate) Save(ctx context.Context) (*FeedConfig, error)
- func (fcc *FeedConfigCreate) SaveX(ctx context.Context) *FeedConfig
- func (fcc *FeedConfigCreate) SetAuthorAccount(mi model.InternalID) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetCreatedAt(t time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetFeed(f *Feed) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetFeedID(id model.InternalID) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetFeedURL(s string) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetID(mi model.InternalID) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetLatestPullAt(t time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetNextPullBeginAt(t time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetNillableCreatedAt(t *time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetNillableFeedID(id *model.InternalID) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetNillableLatestPullAt(t *time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetNillableNextPullBeginAt(t *time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetNillableUpdatedAt(t *time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetPullInterval(t time.Duration) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetSource(f feedconfig.Source) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetStatus(f feedconfig.Status) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetUpdatedAt(t time.Time) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetUser(u *User) *FeedConfigCreate
- func (fcc *FeedConfigCreate) SetUserID(id model.InternalID) *FeedConfigCreate
- type FeedConfigCreateBulk
- func (fccb *FeedConfigCreateBulk) Exec(ctx context.Context) error
- func (fccb *FeedConfigCreateBulk) ExecX(ctx context.Context)
- func (fccb *FeedConfigCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeedConfigUpsertBulk
- func (fccb *FeedConfigCreateBulk) OnConflictColumns(columns ...string) *FeedConfigUpsertBulk
- func (fccb *FeedConfigCreateBulk) Save(ctx context.Context) ([]*FeedConfig, error)
- func (fccb *FeedConfigCreateBulk) SaveX(ctx context.Context) []*FeedConfig
- type FeedConfigDelete
- type FeedConfigDeleteOne
- type FeedConfigEdges
- type FeedConfigGroupBy
- func (fcgb *FeedConfigGroupBy) Aggregate(fns ...AggregateFunc) *FeedConfigGroupBy
- func (s *FeedConfigGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeedConfigGroupBy) BoolX(ctx context.Context) bool
- func (s *FeedConfigGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FeedConfigGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FeedConfigGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeedConfigGroupBy) Float64X(ctx context.Context) float64
- func (s *FeedConfigGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeedConfigGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FeedConfigGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FeedConfigGroupBy) IntX(ctx context.Context) int
- func (s *FeedConfigGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FeedConfigGroupBy) IntsX(ctx context.Context) []int
- func (fcgb *FeedConfigGroupBy) Scan(ctx context.Context, v any) error
- func (s *FeedConfigGroupBy) ScanX(ctx context.Context, v any)
- func (s *FeedConfigGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FeedConfigGroupBy) StringX(ctx context.Context) string
- func (s *FeedConfigGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FeedConfigGroupBy) StringsX(ctx context.Context) []string
- type FeedConfigMutation
- func (m *FeedConfigMutation) AddAuthorAccount(mi model.InternalID)
- func (m *FeedConfigMutation) AddField(name string, value ent.Value) error
- func (m *FeedConfigMutation) AddPullInterval(t time.Duration)
- func (m *FeedConfigMutation) AddedAuthorAccount() (r model.InternalID, exists bool)
- func (m *FeedConfigMutation) AddedEdges() []string
- func (m *FeedConfigMutation) AddedField(name string) (ent.Value, bool)
- func (m *FeedConfigMutation) AddedFields() []string
- func (m *FeedConfigMutation) AddedIDs(name string) []ent.Value
- func (m *FeedConfigMutation) AddedPullInterval() (r time.Duration, exists bool)
- func (m *FeedConfigMutation) AuthorAccount() (r model.InternalID, exists bool)
- func (m *FeedConfigMutation) ClearEdge(name string) error
- func (m *FeedConfigMutation) ClearFeed()
- func (m *FeedConfigMutation) ClearField(name string) error
- func (m *FeedConfigMutation) ClearUser()
- func (m *FeedConfigMutation) ClearedEdges() []string
- func (m *FeedConfigMutation) ClearedFields() []string
- func (m FeedConfigMutation) Client() *Client
- func (m *FeedConfigMutation) CreatedAt() (r time.Time, exists bool)
- func (m *FeedConfigMutation) EdgeCleared(name string) bool
- func (m *FeedConfigMutation) FeedCleared() bool
- func (m *FeedConfigMutation) FeedID() (id model.InternalID, exists bool)
- func (m *FeedConfigMutation) FeedIDs() (ids []model.InternalID)
- func (m *FeedConfigMutation) FeedURL() (r string, exists bool)
- func (m *FeedConfigMutation) Field(name string) (ent.Value, bool)
- func (m *FeedConfigMutation) FieldCleared(name string) bool
- func (m *FeedConfigMutation) Fields() []string
- func (m *FeedConfigMutation) ID() (id model.InternalID, exists bool)
- func (m *FeedConfigMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *FeedConfigMutation) LatestPullAt() (r time.Time, exists bool)
- func (m *FeedConfigMutation) NextPullBeginAt() (r time.Time, exists bool)
- func (m *FeedConfigMutation) OldAuthorAccount(ctx context.Context) (v model.InternalID, err error)
- func (m *FeedConfigMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedConfigMutation) OldFeedURL(ctx context.Context) (v string, err error)
- func (m *FeedConfigMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FeedConfigMutation) OldLatestPullAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedConfigMutation) OldNextPullBeginAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedConfigMutation) OldPullInterval(ctx context.Context) (v time.Duration, err error)
- func (m *FeedConfigMutation) OldSource(ctx context.Context) (v feedconfig.Source, err error)
- func (m *FeedConfigMutation) OldStatus(ctx context.Context) (v feedconfig.Status, err error)
- func (m *FeedConfigMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedConfigMutation) Op() Op
- func (m *FeedConfigMutation) PullInterval() (r time.Duration, exists bool)
- func (m *FeedConfigMutation) RemovedEdges() []string
- func (m *FeedConfigMutation) RemovedIDs(name string) []ent.Value
- func (m *FeedConfigMutation) ResetAuthorAccount()
- func (m *FeedConfigMutation) ResetCreatedAt()
- func (m *FeedConfigMutation) ResetEdge(name string) error
- func (m *FeedConfigMutation) ResetFeed()
- func (m *FeedConfigMutation) ResetFeedURL()
- func (m *FeedConfigMutation) ResetField(name string) error
- func (m *FeedConfigMutation) ResetLatestPullAt()
- func (m *FeedConfigMutation) ResetNextPullBeginAt()
- func (m *FeedConfigMutation) ResetPullInterval()
- func (m *FeedConfigMutation) ResetSource()
- func (m *FeedConfigMutation) ResetStatus()
- func (m *FeedConfigMutation) ResetUpdatedAt()
- func (m *FeedConfigMutation) ResetUser()
- func (m *FeedConfigMutation) SetAuthorAccount(mi model.InternalID)
- func (m *FeedConfigMutation) SetCreatedAt(t time.Time)
- func (m *FeedConfigMutation) SetFeedID(id model.InternalID)
- func (m *FeedConfigMutation) SetFeedURL(s string)
- func (m *FeedConfigMutation) SetField(name string, value ent.Value) error
- func (m *FeedConfigMutation) SetID(id model.InternalID)
- func (m *FeedConfigMutation) SetLatestPullAt(t time.Time)
- func (m *FeedConfigMutation) SetNextPullBeginAt(t time.Time)
- func (m *FeedConfigMutation) SetOp(op Op)
- func (m *FeedConfigMutation) SetPullInterval(t time.Duration)
- func (m *FeedConfigMutation) SetSource(f feedconfig.Source)
- func (m *FeedConfigMutation) SetStatus(f feedconfig.Status)
- func (m *FeedConfigMutation) SetUpdatedAt(t time.Time)
- func (m *FeedConfigMutation) SetUserID(id model.InternalID)
- func (m *FeedConfigMutation) Source() (r feedconfig.Source, exists bool)
- func (m *FeedConfigMutation) Status() (r feedconfig.Status, exists bool)
- func (m FeedConfigMutation) Tx() (*Tx, error)
- func (m *FeedConfigMutation) Type() string
- func (m *FeedConfigMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *FeedConfigMutation) UserCleared() bool
- func (m *FeedConfigMutation) UserID() (id model.InternalID, exists bool)
- func (m *FeedConfigMutation) UserIDs() (ids []model.InternalID)
- func (m *FeedConfigMutation) Where(ps ...predicate.FeedConfig)
- func (m *FeedConfigMutation) WhereP(ps ...func(*sql.Selector))
- type FeedConfigQuery
- func (fcq *FeedConfigQuery) Aggregate(fns ...AggregateFunc) *FeedConfigSelect
- func (fcq *FeedConfigQuery) All(ctx context.Context) ([]*FeedConfig, error)
- func (fcq *FeedConfigQuery) AllX(ctx context.Context) []*FeedConfig
- func (fcq *FeedConfigQuery) Clone() *FeedConfigQuery
- func (fcq *FeedConfigQuery) Count(ctx context.Context) (int, error)
- func (fcq *FeedConfigQuery) CountX(ctx context.Context) int
- func (fcq *FeedConfigQuery) Exist(ctx context.Context) (bool, error)
- func (fcq *FeedConfigQuery) ExistX(ctx context.Context) bool
- func (fcq *FeedConfigQuery) First(ctx context.Context) (*FeedConfig, error)
- func (fcq *FeedConfigQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (fcq *FeedConfigQuery) FirstIDX(ctx context.Context) model.InternalID
- func (fcq *FeedConfigQuery) FirstX(ctx context.Context) *FeedConfig
- func (fcq *FeedConfigQuery) GroupBy(field string, fields ...string) *FeedConfigGroupBy
- func (fcq *FeedConfigQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (fcq *FeedConfigQuery) IDsX(ctx context.Context) []model.InternalID
- func (fcq *FeedConfigQuery) Limit(limit int) *FeedConfigQuery
- func (fcq *FeedConfigQuery) Offset(offset int) *FeedConfigQuery
- func (fcq *FeedConfigQuery) Only(ctx context.Context) (*FeedConfig, error)
- func (fcq *FeedConfigQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (fcq *FeedConfigQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (fcq *FeedConfigQuery) OnlyX(ctx context.Context) *FeedConfig
- func (fcq *FeedConfigQuery) Order(o ...OrderFunc) *FeedConfigQuery
- func (fcq *FeedConfigQuery) QueryFeed() *FeedQuery
- func (fcq *FeedConfigQuery) QueryUser() *UserQuery
- func (fcq *FeedConfigQuery) Select(fields ...string) *FeedConfigSelect
- func (fcq *FeedConfigQuery) Unique(unique bool) *FeedConfigQuery
- func (fcq *FeedConfigQuery) Where(ps ...predicate.FeedConfig) *FeedConfigQuery
- func (fcq *FeedConfigQuery) WithFeed(opts ...func(*FeedQuery)) *FeedConfigQuery
- func (fcq *FeedConfigQuery) WithUser(opts ...func(*UserQuery)) *FeedConfigQuery
- type FeedConfigSelect
- func (fcs *FeedConfigSelect) Aggregate(fns ...AggregateFunc) *FeedConfigSelect
- func (s *FeedConfigSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeedConfigSelect) BoolX(ctx context.Context) bool
- func (s *FeedConfigSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FeedConfigSelect) BoolsX(ctx context.Context) []bool
- func (s *FeedConfigSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeedConfigSelect) Float64X(ctx context.Context) float64
- func (s *FeedConfigSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeedConfigSelect) Float64sX(ctx context.Context) []float64
- func (s *FeedConfigSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FeedConfigSelect) IntX(ctx context.Context) int
- func (s *FeedConfigSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FeedConfigSelect) IntsX(ctx context.Context) []int
- func (fcs *FeedConfigSelect) Scan(ctx context.Context, v any) error
- func (s *FeedConfigSelect) ScanX(ctx context.Context, v any)
- func (s *FeedConfigSelect) String(ctx context.Context) (_ string, err error)
- func (s *FeedConfigSelect) StringX(ctx context.Context) string
- func (s *FeedConfigSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FeedConfigSelect) StringsX(ctx context.Context) []string
- type FeedConfigUpdate
- func (fcu *FeedConfigUpdate) AddAuthorAccount(mi model.InternalID) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) AddPullInterval(t time.Duration) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) ClearFeed() *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) ClearUser() *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) Exec(ctx context.Context) error
- func (fcu *FeedConfigUpdate) ExecX(ctx context.Context)
- func (fcu *FeedConfigUpdate) Mutation() *FeedConfigMutation
- func (fcu *FeedConfigUpdate) Save(ctx context.Context) (int, error)
- func (fcu *FeedConfigUpdate) SaveX(ctx context.Context) int
- func (fcu *FeedConfigUpdate) SetAuthorAccount(mi model.InternalID) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetCreatedAt(t time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetFeed(f *Feed) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetFeedID(id model.InternalID) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetFeedURL(s string) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetLatestPullAt(t time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetNextPullBeginAt(t time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetNillableCreatedAt(t *time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetNillableFeedID(id *model.InternalID) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetNillableLatestPullAt(t *time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetNillableNextPullBeginAt(t *time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetPullInterval(t time.Duration) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetSource(f feedconfig.Source) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetStatus(f feedconfig.Status) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetUpdatedAt(t time.Time) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetUser(u *User) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) SetUserID(id model.InternalID) *FeedConfigUpdate
- func (fcu *FeedConfigUpdate) Where(ps ...predicate.FeedConfig) *FeedConfigUpdate
- type FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) AddAuthorAccount(mi model.InternalID) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) AddPullInterval(t time.Duration) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) ClearFeed() *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) ClearUser() *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) Exec(ctx context.Context) error
- func (fcuo *FeedConfigUpdateOne) ExecX(ctx context.Context)
- func (fcuo *FeedConfigUpdateOne) Mutation() *FeedConfigMutation
- func (fcuo *FeedConfigUpdateOne) Save(ctx context.Context) (*FeedConfig, error)
- func (fcuo *FeedConfigUpdateOne) SaveX(ctx context.Context) *FeedConfig
- func (fcuo *FeedConfigUpdateOne) Select(field string, fields ...string) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetAuthorAccount(mi model.InternalID) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetCreatedAt(t time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetFeed(f *Feed) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetFeedID(id model.InternalID) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetFeedURL(s string) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetLatestPullAt(t time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetNextPullBeginAt(t time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetNillableCreatedAt(t *time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetNillableFeedID(id *model.InternalID) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetNillableLatestPullAt(t *time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetNillableNextPullBeginAt(t *time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetPullInterval(t time.Duration) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetSource(f feedconfig.Source) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetStatus(f feedconfig.Status) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetUpdatedAt(t time.Time) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetUser(u *User) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) SetUserID(id model.InternalID) *FeedConfigUpdateOne
- func (fcuo *FeedConfigUpdateOne) Where(ps ...predicate.FeedConfig) *FeedConfigUpdateOne
- type FeedConfigUpsert
- func (u *FeedConfigUpsert) AddAuthorAccount(v model.InternalID) *FeedConfigUpsert
- func (u *FeedConfigUpsert) AddPullInterval(v time.Duration) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetAuthorAccount(v model.InternalID) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetCreatedAt(v time.Time) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetFeedURL(v string) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetLatestPullAt(v time.Time) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetNextPullBeginAt(v time.Time) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetPullInterval(v time.Duration) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetSource(v feedconfig.Source) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetStatus(v feedconfig.Status) *FeedConfigUpsert
- func (u *FeedConfigUpsert) SetUpdatedAt(v time.Time) *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateAuthorAccount() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateCreatedAt() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateFeedURL() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateLatestPullAt() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateNextPullBeginAt() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdatePullInterval() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateSource() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateStatus() *FeedConfigUpsert
- func (u *FeedConfigUpsert) UpdateUpdatedAt() *FeedConfigUpsert
- type FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) AddAuthorAccount(v model.InternalID) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) AddPullInterval(v time.Duration) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) DoNothing() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) Exec(ctx context.Context) error
- func (u *FeedConfigUpsertBulk) ExecX(ctx context.Context)
- func (u *FeedConfigUpsertBulk) Ignore() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetAuthorAccount(v model.InternalID) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetCreatedAt(v time.Time) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetFeedURL(v string) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetLatestPullAt(v time.Time) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetNextPullBeginAt(v time.Time) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetPullInterval(v time.Duration) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetSource(v feedconfig.Source) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetStatus(v feedconfig.Status) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) SetUpdatedAt(v time.Time) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) Update(set func(*FeedConfigUpsert)) *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateAuthorAccount() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateCreatedAt() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateFeedURL() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateLatestPullAt() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateNewValues() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateNextPullBeginAt() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdatePullInterval() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateSource() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateStatus() *FeedConfigUpsertBulk
- func (u *FeedConfigUpsertBulk) UpdateUpdatedAt() *FeedConfigUpsertBulk
- type FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) AddAuthorAccount(v model.InternalID) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) AddPullInterval(v time.Duration) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) DoNothing() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) Exec(ctx context.Context) error
- func (u *FeedConfigUpsertOne) ExecX(ctx context.Context)
- func (u *FeedConfigUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
- func (u *FeedConfigUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *FeedConfigUpsertOne) Ignore() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetAuthorAccount(v model.InternalID) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetCreatedAt(v time.Time) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetFeedURL(v string) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetLatestPullAt(v time.Time) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetNextPullBeginAt(v time.Time) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetPullInterval(v time.Duration) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetSource(v feedconfig.Source) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetStatus(v feedconfig.Status) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) SetUpdatedAt(v time.Time) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) Update(set func(*FeedConfigUpsert)) *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateAuthorAccount() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateCreatedAt() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateFeedURL() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateLatestPullAt() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateNewValues() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateNextPullBeginAt() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdatePullInterval() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateSource() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateStatus() *FeedConfigUpsertOne
- func (u *FeedConfigUpsertOne) UpdateUpdatedAt() *FeedConfigUpsertOne
- type FeedConfigs
- type FeedCreate
- func (fc *FeedCreate) AddItem(f ...*FeedItem) *FeedCreate
- func (fc *FeedCreate) AddItemIDs(ids ...model.InternalID) *FeedCreate
- func (fc *FeedCreate) Exec(ctx context.Context) error
- func (fc *FeedCreate) ExecX(ctx context.Context)
- func (fc *FeedCreate) Mutation() *FeedMutation
- func (fc *FeedCreate) OnConflict(opts ...sql.ConflictOption) *FeedUpsertOne
- func (fc *FeedCreate) OnConflictColumns(columns ...string) *FeedUpsertOne
- func (fc *FeedCreate) Save(ctx context.Context) (*Feed, error)
- func (fc *FeedCreate) SaveX(ctx context.Context) *Feed
- func (fc *FeedCreate) SetAuthors(m []*modelfeed.Person) *FeedCreate
- func (fc *FeedCreate) SetConfig(f *FeedConfig) *FeedCreate
- func (fc *FeedCreate) SetConfigID(id model.InternalID) *FeedCreate
- func (fc *FeedCreate) SetCreatedAt(t time.Time) *FeedCreate
- func (fc *FeedCreate) SetDescription(s string) *FeedCreate
- func (fc *FeedCreate) SetID(mi model.InternalID) *FeedCreate
- func (fc *FeedCreate) SetImage(m *modelfeed.Image) *FeedCreate
- func (fc *FeedCreate) SetLanguage(s string) *FeedCreate
- func (fc *FeedCreate) SetLink(s string) *FeedCreate
- func (fc *FeedCreate) SetNillableCreatedAt(t *time.Time) *FeedCreate
- func (fc *FeedCreate) SetNillableDescription(s *string) *FeedCreate
- func (fc *FeedCreate) SetNillableLanguage(s *string) *FeedCreate
- func (fc *FeedCreate) SetNillableLink(s *string) *FeedCreate
- func (fc *FeedCreate) SetNillableTitle(s *string) *FeedCreate
- func (fc *FeedCreate) SetNillableUpdatedAt(t *time.Time) *FeedCreate
- func (fc *FeedCreate) SetTitle(s string) *FeedCreate
- func (fc *FeedCreate) SetUpdatedAt(t time.Time) *FeedCreate
- type FeedCreateBulk
- func (fcb *FeedCreateBulk) Exec(ctx context.Context) error
- func (fcb *FeedCreateBulk) ExecX(ctx context.Context)
- func (fcb *FeedCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeedUpsertBulk
- func (fcb *FeedCreateBulk) OnConflictColumns(columns ...string) *FeedUpsertBulk
- func (fcb *FeedCreateBulk) Save(ctx context.Context) ([]*Feed, error)
- func (fcb *FeedCreateBulk) SaveX(ctx context.Context) []*Feed
- type FeedDelete
- type FeedDeleteOne
- type FeedEdges
- type FeedGroupBy
- func (fgb *FeedGroupBy) Aggregate(fns ...AggregateFunc) *FeedGroupBy
- func (s *FeedGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeedGroupBy) BoolX(ctx context.Context) bool
- func (s *FeedGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FeedGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FeedGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeedGroupBy) Float64X(ctx context.Context) float64
- func (s *FeedGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeedGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FeedGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FeedGroupBy) IntX(ctx context.Context) int
- func (s *FeedGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FeedGroupBy) IntsX(ctx context.Context) []int
- func (fgb *FeedGroupBy) Scan(ctx context.Context, v any) error
- func (s *FeedGroupBy) ScanX(ctx context.Context, v any)
- func (s *FeedGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FeedGroupBy) StringX(ctx context.Context) string
- func (s *FeedGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FeedGroupBy) StringsX(ctx context.Context) []string
- type FeedItem
- type FeedItemClient
- func (c *FeedItemClient) Create() *FeedItemCreate
- func (c *FeedItemClient) CreateBulk(builders ...*FeedItemCreate) *FeedItemCreateBulk
- func (c *FeedItemClient) Delete() *FeedItemDelete
- func (c *FeedItemClient) DeleteOne(fi *FeedItem) *FeedItemDeleteOne
- func (c *FeedItemClient) DeleteOneID(id model.InternalID) *FeedItemDeleteOne
- func (c *FeedItemClient) Get(ctx context.Context, id model.InternalID) (*FeedItem, error)
- func (c *FeedItemClient) GetX(ctx context.Context, id model.InternalID) *FeedItem
- func (c *FeedItemClient) Hooks() []Hook
- func (c *FeedItemClient) Intercept(interceptors ...Interceptor)
- func (c *FeedItemClient) Interceptors() []Interceptor
- func (c *FeedItemClient) Query() *FeedItemQuery
- func (c *FeedItemClient) QueryFeed(fi *FeedItem) *FeedQuery
- func (c *FeedItemClient) Update() *FeedItemUpdate
- func (c *FeedItemClient) UpdateOne(fi *FeedItem) *FeedItemUpdateOne
- func (c *FeedItemClient) UpdateOneID(id model.InternalID) *FeedItemUpdateOne
- func (c *FeedItemClient) Use(hooks ...Hook)
- type FeedItemCreate
- func (fic *FeedItemCreate) Exec(ctx context.Context) error
- func (fic *FeedItemCreate) ExecX(ctx context.Context)
- func (fic *FeedItemCreate) Mutation() *FeedItemMutation
- func (fic *FeedItemCreate) OnConflict(opts ...sql.ConflictOption) *FeedItemUpsertOne
- func (fic *FeedItemCreate) OnConflictColumns(columns ...string) *FeedItemUpsertOne
- func (fic *FeedItemCreate) Save(ctx context.Context) (*FeedItem, error)
- func (fic *FeedItemCreate) SaveX(ctx context.Context) *FeedItem
- func (fic *FeedItemCreate) SetAuthors(m []*modelfeed.Person) *FeedItemCreate
- func (fic *FeedItemCreate) SetContent(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetCreatedAt(t time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetDescription(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetEnclosures(m []*modelfeed.Enclosure) *FeedItemCreate
- func (fic *FeedItemCreate) SetFeed(f *Feed) *FeedItemCreate
- func (fic *FeedItemCreate) SetFeedID(mi model.InternalID) *FeedItemCreate
- func (fic *FeedItemCreate) SetGUID(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetID(mi model.InternalID) *FeedItemCreate
- func (fic *FeedItemCreate) SetImage(m *modelfeed.Image) *FeedItemCreate
- func (fic *FeedItemCreate) SetLink(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableContent(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableCreatedAt(t *time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableDescription(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableLink(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillablePublishPlatform(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillablePublished(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillablePublishedParsed(t *time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableTitle(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableUpdated(s *string) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableUpdatedAt(t *time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetNillableUpdatedParsed(t *time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetPublishPlatform(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetPublished(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetPublishedParsed(t time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetTitle(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetUpdated(s string) *FeedItemCreate
- func (fic *FeedItemCreate) SetUpdatedAt(t time.Time) *FeedItemCreate
- func (fic *FeedItemCreate) SetUpdatedParsed(t time.Time) *FeedItemCreate
- type FeedItemCreateBulk
- func (ficb *FeedItemCreateBulk) Exec(ctx context.Context) error
- func (ficb *FeedItemCreateBulk) ExecX(ctx context.Context)
- func (ficb *FeedItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeedItemUpsertBulk
- func (ficb *FeedItemCreateBulk) OnConflictColumns(columns ...string) *FeedItemUpsertBulk
- func (ficb *FeedItemCreateBulk) Save(ctx context.Context) ([]*FeedItem, error)
- func (ficb *FeedItemCreateBulk) SaveX(ctx context.Context) []*FeedItem
- type FeedItemDelete
- type FeedItemDeleteOne
- type FeedItemEdges
- type FeedItemGroupBy
- func (figb *FeedItemGroupBy) Aggregate(fns ...AggregateFunc) *FeedItemGroupBy
- func (s *FeedItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeedItemGroupBy) BoolX(ctx context.Context) bool
- func (s *FeedItemGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FeedItemGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FeedItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeedItemGroupBy) Float64X(ctx context.Context) float64
- func (s *FeedItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeedItemGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FeedItemGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FeedItemGroupBy) IntX(ctx context.Context) int
- func (s *FeedItemGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FeedItemGroupBy) IntsX(ctx context.Context) []int
- func (figb *FeedItemGroupBy) Scan(ctx context.Context, v any) error
- func (s *FeedItemGroupBy) ScanX(ctx context.Context, v any)
- func (s *FeedItemGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FeedItemGroupBy) StringX(ctx context.Context) string
- func (s *FeedItemGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FeedItemGroupBy) StringsX(ctx context.Context) []string
- type FeedItemMutation
- func (m *FeedItemMutation) AddField(name string, value ent.Value) error
- func (m *FeedItemMutation) AddedEdges() []string
- func (m *FeedItemMutation) AddedField(name string) (ent.Value, bool)
- func (m *FeedItemMutation) AddedFields() []string
- func (m *FeedItemMutation) AddedIDs(name string) []ent.Value
- func (m *FeedItemMutation) AppendAuthors(value []*modelfeed.Person)
- func (m *FeedItemMutation) AppendEnclosures(value []*modelfeed.Enclosure)
- func (m *FeedItemMutation) AppendedAuthors() ([]*modelfeed.Person, bool)
- func (m *FeedItemMutation) AppendedEnclosures() ([]*modelfeed.Enclosure, bool)
- func (m *FeedItemMutation) Authors() (r []*modelfeed.Person, exists bool)
- func (m *FeedItemMutation) AuthorsCleared() bool
- func (m *FeedItemMutation) ClearAuthors()
- func (m *FeedItemMutation) ClearContent()
- func (m *FeedItemMutation) ClearDescription()
- func (m *FeedItemMutation) ClearEdge(name string) error
- func (m *FeedItemMutation) ClearEnclosures()
- func (m *FeedItemMutation) ClearFeed()
- func (m *FeedItemMutation) ClearField(name string) error
- func (m *FeedItemMutation) ClearImage()
- func (m *FeedItemMutation) ClearLink()
- func (m *FeedItemMutation) ClearPublishPlatform()
- func (m *FeedItemMutation) ClearPublished()
- func (m *FeedItemMutation) ClearPublishedParsed()
- func (m *FeedItemMutation) ClearTitle()
- func (m *FeedItemMutation) ClearUpdated()
- func (m *FeedItemMutation) ClearUpdatedParsed()
- func (m *FeedItemMutation) ClearedEdges() []string
- func (m *FeedItemMutation) ClearedFields() []string
- func (m FeedItemMutation) Client() *Client
- func (m *FeedItemMutation) Content() (r string, exists bool)
- func (m *FeedItemMutation) ContentCleared() bool
- func (m *FeedItemMutation) CreatedAt() (r time.Time, exists bool)
- func (m *FeedItemMutation) Description() (r string, exists bool)
- func (m *FeedItemMutation) DescriptionCleared() bool
- func (m *FeedItemMutation) EdgeCleared(name string) bool
- func (m *FeedItemMutation) Enclosures() (r []*modelfeed.Enclosure, exists bool)
- func (m *FeedItemMutation) EnclosuresCleared() bool
- func (m *FeedItemMutation) FeedCleared() bool
- func (m *FeedItemMutation) FeedID() (r model.InternalID, exists bool)
- func (m *FeedItemMutation) FeedIDs() (ids []model.InternalID)
- func (m *FeedItemMutation) Field(name string) (ent.Value, bool)
- func (m *FeedItemMutation) FieldCleared(name string) bool
- func (m *FeedItemMutation) Fields() []string
- func (m *FeedItemMutation) GUID() (r string, exists bool)
- func (m *FeedItemMutation) ID() (id model.InternalID, exists bool)
- func (m *FeedItemMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *FeedItemMutation) Image() (r *modelfeed.Image, exists bool)
- func (m *FeedItemMutation) ImageCleared() bool
- func (m *FeedItemMutation) Link() (r string, exists bool)
- func (m *FeedItemMutation) LinkCleared() bool
- func (m *FeedItemMutation) OldAuthors(ctx context.Context) (v []*modelfeed.Person, err error)
- func (m *FeedItemMutation) OldContent(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedItemMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldEnclosures(ctx context.Context) (v []*modelfeed.Enclosure, err error)
- func (m *FeedItemMutation) OldFeedID(ctx context.Context) (v model.InternalID, err error)
- func (m *FeedItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FeedItemMutation) OldGUID(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldImage(ctx context.Context) (v *modelfeed.Image, err error)
- func (m *FeedItemMutation) OldLink(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldPublishPlatform(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldPublished(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldPublishedParsed(ctx context.Context) (v *time.Time, err error)
- func (m *FeedItemMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldUpdated(ctx context.Context) (v string, err error)
- func (m *FeedItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedItemMutation) OldUpdatedParsed(ctx context.Context) (v *time.Time, err error)
- func (m *FeedItemMutation) Op() Op
- func (m *FeedItemMutation) PublishPlatform() (r string, exists bool)
- func (m *FeedItemMutation) PublishPlatformCleared() bool
- func (m *FeedItemMutation) Published() (r string, exists bool)
- func (m *FeedItemMutation) PublishedCleared() bool
- func (m *FeedItemMutation) PublishedParsed() (r time.Time, exists bool)
- func (m *FeedItemMutation) PublishedParsedCleared() bool
- func (m *FeedItemMutation) RemovedEdges() []string
- func (m *FeedItemMutation) RemovedIDs(name string) []ent.Value
- func (m *FeedItemMutation) ResetAuthors()
- func (m *FeedItemMutation) ResetContent()
- func (m *FeedItemMutation) ResetCreatedAt()
- func (m *FeedItemMutation) ResetDescription()
- func (m *FeedItemMutation) ResetEdge(name string) error
- func (m *FeedItemMutation) ResetEnclosures()
- func (m *FeedItemMutation) ResetFeed()
- func (m *FeedItemMutation) ResetFeedID()
- func (m *FeedItemMutation) ResetField(name string) error
- func (m *FeedItemMutation) ResetGUID()
- func (m *FeedItemMutation) ResetImage()
- func (m *FeedItemMutation) ResetLink()
- func (m *FeedItemMutation) ResetPublishPlatform()
- func (m *FeedItemMutation) ResetPublished()
- func (m *FeedItemMutation) ResetPublishedParsed()
- func (m *FeedItemMutation) ResetTitle()
- func (m *FeedItemMutation) ResetUpdated()
- func (m *FeedItemMutation) ResetUpdatedAt()
- func (m *FeedItemMutation) ResetUpdatedParsed()
- func (m *FeedItemMutation) SetAuthors(value []*modelfeed.Person)
- func (m *FeedItemMutation) SetContent(s string)
- func (m *FeedItemMutation) SetCreatedAt(t time.Time)
- func (m *FeedItemMutation) SetDescription(s string)
- func (m *FeedItemMutation) SetEnclosures(value []*modelfeed.Enclosure)
- func (m *FeedItemMutation) SetFeedID(mi model.InternalID)
- func (m *FeedItemMutation) SetField(name string, value ent.Value) error
- func (m *FeedItemMutation) SetGUID(s string)
- func (m *FeedItemMutation) SetID(id model.InternalID)
- func (m *FeedItemMutation) SetImage(value *modelfeed.Image)
- func (m *FeedItemMutation) SetLink(s string)
- func (m *FeedItemMutation) SetOp(op Op)
- func (m *FeedItemMutation) SetPublishPlatform(s string)
- func (m *FeedItemMutation) SetPublished(s string)
- func (m *FeedItemMutation) SetPublishedParsed(t time.Time)
- func (m *FeedItemMutation) SetTitle(s string)
- func (m *FeedItemMutation) SetUpdated(s string)
- func (m *FeedItemMutation) SetUpdatedAt(t time.Time)
- func (m *FeedItemMutation) SetUpdatedParsed(t time.Time)
- func (m *FeedItemMutation) Title() (r string, exists bool)
- func (m *FeedItemMutation) TitleCleared() bool
- func (m FeedItemMutation) Tx() (*Tx, error)
- func (m *FeedItemMutation) Type() string
- func (m *FeedItemMutation) Updated() (r string, exists bool)
- func (m *FeedItemMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *FeedItemMutation) UpdatedCleared() bool
- func (m *FeedItemMutation) UpdatedParsed() (r time.Time, exists bool)
- func (m *FeedItemMutation) UpdatedParsedCleared() bool
- func (m *FeedItemMutation) Where(ps ...predicate.FeedItem)
- func (m *FeedItemMutation) WhereP(ps ...func(*sql.Selector))
- type FeedItemQuery
- func (fiq *FeedItemQuery) Aggregate(fns ...AggregateFunc) *FeedItemSelect
- func (fiq *FeedItemQuery) All(ctx context.Context) ([]*FeedItem, error)
- func (fiq *FeedItemQuery) AllX(ctx context.Context) []*FeedItem
- func (fiq *FeedItemQuery) Clone() *FeedItemQuery
- func (fiq *FeedItemQuery) Count(ctx context.Context) (int, error)
- func (fiq *FeedItemQuery) CountX(ctx context.Context) int
- func (fiq *FeedItemQuery) Exist(ctx context.Context) (bool, error)
- func (fiq *FeedItemQuery) ExistX(ctx context.Context) bool
- func (fiq *FeedItemQuery) First(ctx context.Context) (*FeedItem, error)
- func (fiq *FeedItemQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (fiq *FeedItemQuery) FirstIDX(ctx context.Context) model.InternalID
- func (fiq *FeedItemQuery) FirstX(ctx context.Context) *FeedItem
- func (fiq *FeedItemQuery) GroupBy(field string, fields ...string) *FeedItemGroupBy
- func (fiq *FeedItemQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (fiq *FeedItemQuery) IDsX(ctx context.Context) []model.InternalID
- func (fiq *FeedItemQuery) Limit(limit int) *FeedItemQuery
- func (fiq *FeedItemQuery) Offset(offset int) *FeedItemQuery
- func (fiq *FeedItemQuery) Only(ctx context.Context) (*FeedItem, error)
- func (fiq *FeedItemQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (fiq *FeedItemQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (fiq *FeedItemQuery) OnlyX(ctx context.Context) *FeedItem
- func (fiq *FeedItemQuery) Order(o ...OrderFunc) *FeedItemQuery
- func (fiq *FeedItemQuery) QueryFeed() *FeedQuery
- func (fiq *FeedItemQuery) Select(fields ...string) *FeedItemSelect
- func (fiq *FeedItemQuery) Unique(unique bool) *FeedItemQuery
- func (fiq *FeedItemQuery) Where(ps ...predicate.FeedItem) *FeedItemQuery
- func (fiq *FeedItemQuery) WithFeed(opts ...func(*FeedQuery)) *FeedItemQuery
- type FeedItemSelect
- func (fis *FeedItemSelect) Aggregate(fns ...AggregateFunc) *FeedItemSelect
- func (s *FeedItemSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeedItemSelect) BoolX(ctx context.Context) bool
- func (s *FeedItemSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FeedItemSelect) BoolsX(ctx context.Context) []bool
- func (s *FeedItemSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeedItemSelect) Float64X(ctx context.Context) float64
- func (s *FeedItemSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeedItemSelect) Float64sX(ctx context.Context) []float64
- func (s *FeedItemSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FeedItemSelect) IntX(ctx context.Context) int
- func (s *FeedItemSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FeedItemSelect) IntsX(ctx context.Context) []int
- func (fis *FeedItemSelect) Scan(ctx context.Context, v any) error
- func (s *FeedItemSelect) ScanX(ctx context.Context, v any)
- func (s *FeedItemSelect) String(ctx context.Context) (_ string, err error)
- func (s *FeedItemSelect) StringX(ctx context.Context) string
- func (s *FeedItemSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FeedItemSelect) StringsX(ctx context.Context) []string
- type FeedItemUpdate
- func (fiu *FeedItemUpdate) AppendAuthors(m []*modelfeed.Person) *FeedItemUpdate
- func (fiu *FeedItemUpdate) AppendEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearAuthors() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearContent() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearDescription() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearEnclosures() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearImage() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearLink() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearPublishPlatform() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearPublished() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearPublishedParsed() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearTitle() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearUpdated() *FeedItemUpdate
- func (fiu *FeedItemUpdate) ClearUpdatedParsed() *FeedItemUpdate
- func (fiu *FeedItemUpdate) Exec(ctx context.Context) error
- func (fiu *FeedItemUpdate) ExecX(ctx context.Context)
- func (fiu *FeedItemUpdate) Mutation() *FeedItemMutation
- func (fiu *FeedItemUpdate) Save(ctx context.Context) (int, error)
- func (fiu *FeedItemUpdate) SaveX(ctx context.Context) int
- func (fiu *FeedItemUpdate) SetAuthors(m []*modelfeed.Person) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetContent(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetCreatedAt(t time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetDescription(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetImage(m *modelfeed.Image) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetLink(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableContent(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableCreatedAt(t *time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableDescription(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableLink(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillablePublishPlatform(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillablePublished(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillablePublishedParsed(t *time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableTitle(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableUpdated(s *string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetNillableUpdatedParsed(t *time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetPublishPlatform(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetPublished(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetPublishedParsed(t time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetTitle(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetUpdated(s string) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetUpdatedAt(t time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) SetUpdatedParsed(t time.Time) *FeedItemUpdate
- func (fiu *FeedItemUpdate) Where(ps ...predicate.FeedItem) *FeedItemUpdate
- type FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) AppendAuthors(m []*modelfeed.Person) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) AppendEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearAuthors() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearContent() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearDescription() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearEnclosures() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearImage() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearLink() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearPublishPlatform() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearPublished() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearPublishedParsed() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearTitle() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearUpdated() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) ClearUpdatedParsed() *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) Exec(ctx context.Context) error
- func (fiuo *FeedItemUpdateOne) ExecX(ctx context.Context)
- func (fiuo *FeedItemUpdateOne) Mutation() *FeedItemMutation
- func (fiuo *FeedItemUpdateOne) Save(ctx context.Context) (*FeedItem, error)
- func (fiuo *FeedItemUpdateOne) SaveX(ctx context.Context) *FeedItem
- func (fiuo *FeedItemUpdateOne) Select(field string, fields ...string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetAuthors(m []*modelfeed.Person) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetContent(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetCreatedAt(t time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetDescription(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetImage(m *modelfeed.Image) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetLink(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableContent(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableCreatedAt(t *time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableDescription(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableLink(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillablePublishPlatform(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillablePublished(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillablePublishedParsed(t *time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableTitle(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableUpdated(s *string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetNillableUpdatedParsed(t *time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetPublishPlatform(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetPublished(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetPublishedParsed(t time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetTitle(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetUpdated(s string) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetUpdatedAt(t time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) SetUpdatedParsed(t time.Time) *FeedItemUpdateOne
- func (fiuo *FeedItemUpdateOne) Where(ps ...predicate.FeedItem) *FeedItemUpdateOne
- type FeedItemUpsert
- func (u *FeedItemUpsert) ClearAuthors() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearContent() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearDescription() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearEnclosures() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearImage() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearLink() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearPublishPlatform() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearPublished() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearPublishedParsed() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearTitle() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearUpdated() *FeedItemUpsert
- func (u *FeedItemUpsert) ClearUpdatedParsed() *FeedItemUpsert
- func (u *FeedItemUpsert) SetAuthors(v []*modelfeed.Person) *FeedItemUpsert
- func (u *FeedItemUpsert) SetContent(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetCreatedAt(v time.Time) *FeedItemUpsert
- func (u *FeedItemUpsert) SetDescription(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetEnclosures(v []*modelfeed.Enclosure) *FeedItemUpsert
- func (u *FeedItemUpsert) SetImage(v *modelfeed.Image) *FeedItemUpsert
- func (u *FeedItemUpsert) SetLink(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetPublishPlatform(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetPublished(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetPublishedParsed(v time.Time) *FeedItemUpsert
- func (u *FeedItemUpsert) SetTitle(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetUpdated(v string) *FeedItemUpsert
- func (u *FeedItemUpsert) SetUpdatedAt(v time.Time) *FeedItemUpsert
- func (u *FeedItemUpsert) SetUpdatedParsed(v time.Time) *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateAuthors() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateContent() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateCreatedAt() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateDescription() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateEnclosures() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateImage() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateLink() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdatePublishPlatform() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdatePublished() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdatePublishedParsed() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateTitle() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateUpdated() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateUpdatedAt() *FeedItemUpsert
- func (u *FeedItemUpsert) UpdateUpdatedParsed() *FeedItemUpsert
- type FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearAuthors() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearContent() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearDescription() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearEnclosures() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearImage() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearLink() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearPublishPlatform() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearPublished() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearPublishedParsed() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearTitle() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearUpdated() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) ClearUpdatedParsed() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) DoNothing() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) Exec(ctx context.Context) error
- func (u *FeedItemUpsertBulk) ExecX(ctx context.Context)
- func (u *FeedItemUpsertBulk) Ignore() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetAuthors(v []*modelfeed.Person) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetContent(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetCreatedAt(v time.Time) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetDescription(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetEnclosures(v []*modelfeed.Enclosure) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetImage(v *modelfeed.Image) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetLink(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetPublishPlatform(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetPublished(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetPublishedParsed(v time.Time) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetTitle(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetUpdated(v string) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetUpdatedAt(v time.Time) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) SetUpdatedParsed(v time.Time) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) Update(set func(*FeedItemUpsert)) *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateAuthors() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateContent() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateCreatedAt() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateDescription() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateEnclosures() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateImage() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateLink() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateNewValues() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdatePublishPlatform() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdatePublished() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdatePublishedParsed() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateTitle() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateUpdated() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateUpdatedAt() *FeedItemUpsertBulk
- func (u *FeedItemUpsertBulk) UpdateUpdatedParsed() *FeedItemUpsertBulk
- type FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearAuthors() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearContent() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearDescription() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearEnclosures() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearImage() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearLink() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearPublishPlatform() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearPublished() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearPublishedParsed() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearTitle() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearUpdated() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) ClearUpdatedParsed() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) DoNothing() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) Exec(ctx context.Context) error
- func (u *FeedItemUpsertOne) ExecX(ctx context.Context)
- func (u *FeedItemUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
- func (u *FeedItemUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *FeedItemUpsertOne) Ignore() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetAuthors(v []*modelfeed.Person) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetContent(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetCreatedAt(v time.Time) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetDescription(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetEnclosures(v []*modelfeed.Enclosure) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetImage(v *modelfeed.Image) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetLink(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetPublishPlatform(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetPublished(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetPublishedParsed(v time.Time) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetTitle(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetUpdated(v string) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetUpdatedAt(v time.Time) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) SetUpdatedParsed(v time.Time) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) Update(set func(*FeedItemUpsert)) *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateAuthors() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateContent() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateCreatedAt() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateDescription() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateEnclosures() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateImage() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateLink() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateNewValues() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdatePublishPlatform() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdatePublished() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdatePublishedParsed() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateTitle() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateUpdated() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateUpdatedAt() *FeedItemUpsertOne
- func (u *FeedItemUpsertOne) UpdateUpdatedParsed() *FeedItemUpsertOne
- type FeedItems
- type FeedMutation
- func (m *FeedMutation) AddField(name string, value ent.Value) error
- func (m *FeedMutation) AddItemIDs(ids ...model.InternalID)
- func (m *FeedMutation) AddedEdges() []string
- func (m *FeedMutation) AddedField(name string) (ent.Value, bool)
- func (m *FeedMutation) AddedFields() []string
- func (m *FeedMutation) AddedIDs(name string) []ent.Value
- func (m *FeedMutation) AppendAuthors(value []*modelfeed.Person)
- func (m *FeedMutation) AppendedAuthors() ([]*modelfeed.Person, bool)
- func (m *FeedMutation) Authors() (r []*modelfeed.Person, exists bool)
- func (m *FeedMutation) AuthorsCleared() bool
- func (m *FeedMutation) ClearAuthors()
- func (m *FeedMutation) ClearConfig()
- func (m *FeedMutation) ClearDescription()
- func (m *FeedMutation) ClearEdge(name string) error
- func (m *FeedMutation) ClearField(name string) error
- func (m *FeedMutation) ClearImage()
- func (m *FeedMutation) ClearItem()
- func (m *FeedMutation) ClearLanguage()
- func (m *FeedMutation) ClearLink()
- func (m *FeedMutation) ClearTitle()
- func (m *FeedMutation) ClearedEdges() []string
- func (m *FeedMutation) ClearedFields() []string
- func (m FeedMutation) Client() *Client
- func (m *FeedMutation) ConfigCleared() bool
- func (m *FeedMutation) ConfigID() (id model.InternalID, exists bool)
- func (m *FeedMutation) ConfigIDs() (ids []model.InternalID)
- func (m *FeedMutation) CreatedAt() (r time.Time, exists bool)
- func (m *FeedMutation) Description() (r string, exists bool)
- func (m *FeedMutation) DescriptionCleared() bool
- func (m *FeedMutation) EdgeCleared(name string) bool
- func (m *FeedMutation) Field(name string) (ent.Value, bool)
- func (m *FeedMutation) FieldCleared(name string) bool
- func (m *FeedMutation) Fields() []string
- func (m *FeedMutation) ID() (id model.InternalID, exists bool)
- func (m *FeedMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *FeedMutation) Image() (r *modelfeed.Image, exists bool)
- func (m *FeedMutation) ImageCleared() bool
- func (m *FeedMutation) ItemCleared() bool
- func (m *FeedMutation) ItemIDs() (ids []model.InternalID)
- func (m *FeedMutation) Language() (r string, exists bool)
- func (m *FeedMutation) LanguageCleared() bool
- func (m *FeedMutation) Link() (r string, exists bool)
- func (m *FeedMutation) LinkCleared() bool
- func (m *FeedMutation) OldAuthors(ctx context.Context) (v []*modelfeed.Person, err error)
- func (m *FeedMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *FeedMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FeedMutation) OldImage(ctx context.Context) (v *modelfeed.Image, err error)
- func (m *FeedMutation) OldLanguage(ctx context.Context) (v string, err error)
- func (m *FeedMutation) OldLink(ctx context.Context) (v string, err error)
- func (m *FeedMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *FeedMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeedMutation) Op() Op
- func (m *FeedMutation) RemoveItemIDs(ids ...model.InternalID)
- func (m *FeedMutation) RemovedEdges() []string
- func (m *FeedMutation) RemovedIDs(name string) []ent.Value
- func (m *FeedMutation) RemovedItemIDs() (ids []model.InternalID)
- func (m *FeedMutation) ResetAuthors()
- func (m *FeedMutation) ResetConfig()
- func (m *FeedMutation) ResetCreatedAt()
- func (m *FeedMutation) ResetDescription()
- func (m *FeedMutation) ResetEdge(name string) error
- func (m *FeedMutation) ResetField(name string) error
- func (m *FeedMutation) ResetImage()
- func (m *FeedMutation) ResetItem()
- func (m *FeedMutation) ResetLanguage()
- func (m *FeedMutation) ResetLink()
- func (m *FeedMutation) ResetTitle()
- func (m *FeedMutation) ResetUpdatedAt()
- func (m *FeedMutation) SetAuthors(value []*modelfeed.Person)
- func (m *FeedMutation) SetConfigID(id model.InternalID)
- func (m *FeedMutation) SetCreatedAt(t time.Time)
- func (m *FeedMutation) SetDescription(s string)
- func (m *FeedMutation) SetField(name string, value ent.Value) error
- func (m *FeedMutation) SetID(id model.InternalID)
- func (m *FeedMutation) SetImage(value *modelfeed.Image)
- func (m *FeedMutation) SetLanguage(s string)
- func (m *FeedMutation) SetLink(s string)
- func (m *FeedMutation) SetOp(op Op)
- func (m *FeedMutation) SetTitle(s string)
- func (m *FeedMutation) SetUpdatedAt(t time.Time)
- func (m *FeedMutation) Title() (r string, exists bool)
- func (m *FeedMutation) TitleCleared() bool
- func (m FeedMutation) Tx() (*Tx, error)
- func (m *FeedMutation) Type() string
- func (m *FeedMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *FeedMutation) Where(ps ...predicate.Feed)
- func (m *FeedMutation) WhereP(ps ...func(*sql.Selector))
- type FeedQuery
- func (fq *FeedQuery) Aggregate(fns ...AggregateFunc) *FeedSelect
- func (fq *FeedQuery) All(ctx context.Context) ([]*Feed, error)
- func (fq *FeedQuery) AllX(ctx context.Context) []*Feed
- func (fq *FeedQuery) Clone() *FeedQuery
- func (fq *FeedQuery) Count(ctx context.Context) (int, error)
- func (fq *FeedQuery) CountX(ctx context.Context) int
- func (fq *FeedQuery) Exist(ctx context.Context) (bool, error)
- func (fq *FeedQuery) ExistX(ctx context.Context) bool
- func (fq *FeedQuery) First(ctx context.Context) (*Feed, error)
- func (fq *FeedQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (fq *FeedQuery) FirstIDX(ctx context.Context) model.InternalID
- func (fq *FeedQuery) FirstX(ctx context.Context) *Feed
- func (fq *FeedQuery) GroupBy(field string, fields ...string) *FeedGroupBy
- func (fq *FeedQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (fq *FeedQuery) IDsX(ctx context.Context) []model.InternalID
- func (fq *FeedQuery) Limit(limit int) *FeedQuery
- func (fq *FeedQuery) Offset(offset int) *FeedQuery
- func (fq *FeedQuery) Only(ctx context.Context) (*Feed, error)
- func (fq *FeedQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (fq *FeedQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (fq *FeedQuery) OnlyX(ctx context.Context) *Feed
- func (fq *FeedQuery) Order(o ...OrderFunc) *FeedQuery
- func (fq *FeedQuery) QueryConfig() *FeedConfigQuery
- func (fq *FeedQuery) QueryItem() *FeedItemQuery
- func (fq *FeedQuery) Select(fields ...string) *FeedSelect
- func (fq *FeedQuery) Unique(unique bool) *FeedQuery
- func (fq *FeedQuery) Where(ps ...predicate.Feed) *FeedQuery
- func (fq *FeedQuery) WithConfig(opts ...func(*FeedConfigQuery)) *FeedQuery
- func (fq *FeedQuery) WithItem(opts ...func(*FeedItemQuery)) *FeedQuery
- type FeedSelect
- func (fs *FeedSelect) Aggregate(fns ...AggregateFunc) *FeedSelect
- func (s *FeedSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeedSelect) BoolX(ctx context.Context) bool
- func (s *FeedSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FeedSelect) BoolsX(ctx context.Context) []bool
- func (s *FeedSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeedSelect) Float64X(ctx context.Context) float64
- func (s *FeedSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeedSelect) Float64sX(ctx context.Context) []float64
- func (s *FeedSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FeedSelect) IntX(ctx context.Context) int
- func (s *FeedSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FeedSelect) IntsX(ctx context.Context) []int
- func (fs *FeedSelect) Scan(ctx context.Context, v any) error
- func (s *FeedSelect) ScanX(ctx context.Context, v any)
- func (s *FeedSelect) String(ctx context.Context) (_ string, err error)
- func (s *FeedSelect) StringX(ctx context.Context) string
- func (s *FeedSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FeedSelect) StringsX(ctx context.Context) []string
- type FeedUpdate
- func (fu *FeedUpdate) AddItem(f ...*FeedItem) *FeedUpdate
- func (fu *FeedUpdate) AddItemIDs(ids ...model.InternalID) *FeedUpdate
- func (fu *FeedUpdate) AppendAuthors(m []*modelfeed.Person) *FeedUpdate
- func (fu *FeedUpdate) ClearAuthors() *FeedUpdate
- func (fu *FeedUpdate) ClearConfig() *FeedUpdate
- func (fu *FeedUpdate) ClearDescription() *FeedUpdate
- func (fu *FeedUpdate) ClearImage() *FeedUpdate
- func (fu *FeedUpdate) ClearItem() *FeedUpdate
- func (fu *FeedUpdate) ClearLanguage() *FeedUpdate
- func (fu *FeedUpdate) ClearLink() *FeedUpdate
- func (fu *FeedUpdate) ClearTitle() *FeedUpdate
- func (fu *FeedUpdate) Exec(ctx context.Context) error
- func (fu *FeedUpdate) ExecX(ctx context.Context)
- func (fu *FeedUpdate) Mutation() *FeedMutation
- func (fu *FeedUpdate) RemoveItem(f ...*FeedItem) *FeedUpdate
- func (fu *FeedUpdate) RemoveItemIDs(ids ...model.InternalID) *FeedUpdate
- func (fu *FeedUpdate) Save(ctx context.Context) (int, error)
- func (fu *FeedUpdate) SaveX(ctx context.Context) int
- func (fu *FeedUpdate) SetAuthors(m []*modelfeed.Person) *FeedUpdate
- func (fu *FeedUpdate) SetConfig(f *FeedConfig) *FeedUpdate
- func (fu *FeedUpdate) SetConfigID(id model.InternalID) *FeedUpdate
- func (fu *FeedUpdate) SetCreatedAt(t time.Time) *FeedUpdate
- func (fu *FeedUpdate) SetDescription(s string) *FeedUpdate
- func (fu *FeedUpdate) SetImage(m *modelfeed.Image) *FeedUpdate
- func (fu *FeedUpdate) SetLanguage(s string) *FeedUpdate
- func (fu *FeedUpdate) SetLink(s string) *FeedUpdate
- func (fu *FeedUpdate) SetNillableCreatedAt(t *time.Time) *FeedUpdate
- func (fu *FeedUpdate) SetNillableDescription(s *string) *FeedUpdate
- func (fu *FeedUpdate) SetNillableLanguage(s *string) *FeedUpdate
- func (fu *FeedUpdate) SetNillableLink(s *string) *FeedUpdate
- func (fu *FeedUpdate) SetNillableTitle(s *string) *FeedUpdate
- func (fu *FeedUpdate) SetTitle(s string) *FeedUpdate
- func (fu *FeedUpdate) SetUpdatedAt(t time.Time) *FeedUpdate
- func (fu *FeedUpdate) Where(ps ...predicate.Feed) *FeedUpdate
- type FeedUpdateOne
- func (fuo *FeedUpdateOne) AddItem(f ...*FeedItem) *FeedUpdateOne
- func (fuo *FeedUpdateOne) AddItemIDs(ids ...model.InternalID) *FeedUpdateOne
- func (fuo *FeedUpdateOne) AppendAuthors(m []*modelfeed.Person) *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearAuthors() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearConfig() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearDescription() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearImage() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearItem() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearLanguage() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearLink() *FeedUpdateOne
- func (fuo *FeedUpdateOne) ClearTitle() *FeedUpdateOne
- func (fuo *FeedUpdateOne) Exec(ctx context.Context) error
- func (fuo *FeedUpdateOne) ExecX(ctx context.Context)
- func (fuo *FeedUpdateOne) Mutation() *FeedMutation
- func (fuo *FeedUpdateOne) RemoveItem(f ...*FeedItem) *FeedUpdateOne
- func (fuo *FeedUpdateOne) RemoveItemIDs(ids ...model.InternalID) *FeedUpdateOne
- func (fuo *FeedUpdateOne) Save(ctx context.Context) (*Feed, error)
- func (fuo *FeedUpdateOne) SaveX(ctx context.Context) *Feed
- func (fuo *FeedUpdateOne) Select(field string, fields ...string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetAuthors(m []*modelfeed.Person) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetConfig(f *FeedConfig) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetConfigID(id model.InternalID) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetCreatedAt(t time.Time) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetDescription(s string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetImage(m *modelfeed.Image) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetLanguage(s string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetLink(s string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetNillableCreatedAt(t *time.Time) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetNillableDescription(s *string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetNillableLanguage(s *string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetNillableLink(s *string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetNillableTitle(s *string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetTitle(s string) *FeedUpdateOne
- func (fuo *FeedUpdateOne) SetUpdatedAt(t time.Time) *FeedUpdateOne
- func (fuo *FeedUpdateOne) Where(ps ...predicate.Feed) *FeedUpdateOne
- type FeedUpsert
- func (u *FeedUpsert) ClearAuthors() *FeedUpsert
- func (u *FeedUpsert) ClearDescription() *FeedUpsert
- func (u *FeedUpsert) ClearImage() *FeedUpsert
- func (u *FeedUpsert) ClearLanguage() *FeedUpsert
- func (u *FeedUpsert) ClearLink() *FeedUpsert
- func (u *FeedUpsert) ClearTitle() *FeedUpsert
- func (u *FeedUpsert) SetAuthors(v []*modelfeed.Person) *FeedUpsert
- func (u *FeedUpsert) SetCreatedAt(v time.Time) *FeedUpsert
- func (u *FeedUpsert) SetDescription(v string) *FeedUpsert
- func (u *FeedUpsert) SetImage(v *modelfeed.Image) *FeedUpsert
- func (u *FeedUpsert) SetLanguage(v string) *FeedUpsert
- func (u *FeedUpsert) SetLink(v string) *FeedUpsert
- func (u *FeedUpsert) SetTitle(v string) *FeedUpsert
- func (u *FeedUpsert) SetUpdatedAt(v time.Time) *FeedUpsert
- func (u *FeedUpsert) UpdateAuthors() *FeedUpsert
- func (u *FeedUpsert) UpdateCreatedAt() *FeedUpsert
- func (u *FeedUpsert) UpdateDescription() *FeedUpsert
- func (u *FeedUpsert) UpdateImage() *FeedUpsert
- func (u *FeedUpsert) UpdateLanguage() *FeedUpsert
- func (u *FeedUpsert) UpdateLink() *FeedUpsert
- func (u *FeedUpsert) UpdateTitle() *FeedUpsert
- func (u *FeedUpsert) UpdateUpdatedAt() *FeedUpsert
- type FeedUpsertBulk
- func (u *FeedUpsertBulk) ClearAuthors() *FeedUpsertBulk
- func (u *FeedUpsertBulk) ClearDescription() *FeedUpsertBulk
- func (u *FeedUpsertBulk) ClearImage() *FeedUpsertBulk
- func (u *FeedUpsertBulk) ClearLanguage() *FeedUpsertBulk
- func (u *FeedUpsertBulk) ClearLink() *FeedUpsertBulk
- func (u *FeedUpsertBulk) ClearTitle() *FeedUpsertBulk
- func (u *FeedUpsertBulk) DoNothing() *FeedUpsertBulk
- func (u *FeedUpsertBulk) Exec(ctx context.Context) error
- func (u *FeedUpsertBulk) ExecX(ctx context.Context)
- func (u *FeedUpsertBulk) Ignore() *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetAuthors(v []*modelfeed.Person) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetCreatedAt(v time.Time) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetDescription(v string) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetImage(v *modelfeed.Image) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetLanguage(v string) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetLink(v string) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetTitle(v string) *FeedUpsertBulk
- func (u *FeedUpsertBulk) SetUpdatedAt(v time.Time) *FeedUpsertBulk
- func (u *FeedUpsertBulk) Update(set func(*FeedUpsert)) *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateAuthors() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateCreatedAt() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateDescription() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateImage() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateLanguage() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateLink() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateNewValues() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateTitle() *FeedUpsertBulk
- func (u *FeedUpsertBulk) UpdateUpdatedAt() *FeedUpsertBulk
- type FeedUpsertOne
- func (u *FeedUpsertOne) ClearAuthors() *FeedUpsertOne
- func (u *FeedUpsertOne) ClearDescription() *FeedUpsertOne
- func (u *FeedUpsertOne) ClearImage() *FeedUpsertOne
- func (u *FeedUpsertOne) ClearLanguage() *FeedUpsertOne
- func (u *FeedUpsertOne) ClearLink() *FeedUpsertOne
- func (u *FeedUpsertOne) ClearTitle() *FeedUpsertOne
- func (u *FeedUpsertOne) DoNothing() *FeedUpsertOne
- func (u *FeedUpsertOne) Exec(ctx context.Context) error
- func (u *FeedUpsertOne) ExecX(ctx context.Context)
- func (u *FeedUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
- func (u *FeedUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *FeedUpsertOne) Ignore() *FeedUpsertOne
- func (u *FeedUpsertOne) SetAuthors(v []*modelfeed.Person) *FeedUpsertOne
- func (u *FeedUpsertOne) SetCreatedAt(v time.Time) *FeedUpsertOne
- func (u *FeedUpsertOne) SetDescription(v string) *FeedUpsertOne
- func (u *FeedUpsertOne) SetImage(v *modelfeed.Image) *FeedUpsertOne
- func (u *FeedUpsertOne) SetLanguage(v string) *FeedUpsertOne
- func (u *FeedUpsertOne) SetLink(v string) *FeedUpsertOne
- func (u *FeedUpsertOne) SetTitle(v string) *FeedUpsertOne
- func (u *FeedUpsertOne) SetUpdatedAt(v time.Time) *FeedUpsertOne
- func (u *FeedUpsertOne) Update(set func(*FeedUpsert)) *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateAuthors() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateCreatedAt() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateDescription() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateImage() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateLanguage() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateLink() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateNewValues() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateTitle() *FeedUpsertOne
- func (u *FeedUpsertOne) UpdateUpdatedAt() *FeedUpsertOne
- type Feeds
- type Hook
- type InterceptFunc
- type Interceptor
- 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 RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type User
- func (u *User) QueryAccount() *AccountQuery
- func (u *User) QueryApp() *AppQuery
- func (u *User) QueryCreate() *UserQuery
- func (u *User) QueryCreator() *UserQuery
- func (u *User) QueryFeedConfig() *FeedConfigQuery
- func (u *User) String() string
- func (u *User) Unwrap() *User
- func (u *User) Update() *UserUpdateOne
- type UserClient
- func (c *UserClient) Create() *UserCreate
- func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
- func (c *UserClient) Delete() *UserDelete
- func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
- func (c *UserClient) DeleteOneID(id model.InternalID) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id model.InternalID) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id model.InternalID) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryAccount(u *User) *AccountQuery
- func (c *UserClient) QueryApp(u *User) *AppQuery
- func (c *UserClient) QueryCreate(u *User) *UserQuery
- func (c *UserClient) QueryCreator(u *User) *UserQuery
- func (c *UserClient) QueryFeedConfig(u *User) *FeedConfigQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id model.InternalID) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserCreate
- func (uc *UserCreate) AddAccount(a ...*Account) *UserCreate
- func (uc *UserCreate) AddAccountIDs(ids ...model.InternalID) *UserCreate
- func (uc *UserCreate) AddApp(a ...*App) *UserCreate
- func (uc *UserCreate) AddAppIDs(ids ...model.InternalID) *UserCreate
- func (uc *UserCreate) AddCreate(u ...*User) *UserCreate
- func (uc *UserCreate) AddCreateIDs(ids ...model.InternalID) *UserCreate
- func (uc *UserCreate) AddFeedConfig(f ...*FeedConfig) *UserCreate
- func (uc *UserCreate) AddFeedConfigIDs(ids ...model.InternalID) *UserCreate
- func (uc *UserCreate) Exec(ctx context.Context) error
- func (uc *UserCreate) ExecX(ctx context.Context)
- func (uc *UserCreate) Mutation() *UserMutation
- func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne
- func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne
- func (uc *UserCreate) Save(ctx context.Context) (*User, error)
- func (uc *UserCreate) SaveX(ctx context.Context) *User
- func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetCreator(u *User) *UserCreate
- func (uc *UserCreate) SetCreatorID(id model.InternalID) *UserCreate
- func (uc *UserCreate) SetID(mi model.InternalID) *UserCreate
- func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetPassword(s string) *UserCreate
- func (uc *UserCreate) SetStatus(u user.Status) *UserCreate
- func (uc *UserCreate) SetType(u user.Type) *UserCreate
- func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetUsername(s string) *UserCreate
- type UserCreateBulk
- func (ucb *UserCreateBulk) Exec(ctx context.Context) error
- func (ucb *UserCreateBulk) ExecX(ctx context.Context)
- func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk
- func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk
- func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)
- func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User
- type UserDelete
- type UserDeleteOne
- type UserEdges
- type UserGroupBy
- func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserGroupBy) BoolX(ctx context.Context) bool
- func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserGroupBy) Float64X(ctx context.Context) float64
- func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserGroupBy) IntX(ctx context.Context) int
- func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserGroupBy) IntsX(ctx context.Context) []int
- func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserGroupBy) StringX(ctx context.Context) string
- func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserGroupBy) StringsX(ctx context.Context) []string
- type UserMutation
- func (m *UserMutation) AccountCleared() bool
- func (m *UserMutation) AccountIDs() (ids []model.InternalID)
- func (m *UserMutation) AddAccountIDs(ids ...model.InternalID)
- func (m *UserMutation) AddAppIDs(ids ...model.InternalID)
- func (m *UserMutation) AddCreateIDs(ids ...model.InternalID)
- func (m *UserMutation) AddFeedConfigIDs(ids ...model.InternalID)
- func (m *UserMutation) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddedEdges() []string
- func (m *UserMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserMutation) AddedFields() []string
- func (m *UserMutation) AddedIDs(name string) []ent.Value
- func (m *UserMutation) AppCleared() bool
- func (m *UserMutation) AppIDs() (ids []model.InternalID)
- func (m *UserMutation) ClearAccount()
- func (m *UserMutation) ClearApp()
- func (m *UserMutation) ClearCreate()
- func (m *UserMutation) ClearCreator()
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearFeedConfig()
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearedEdges() []string
- func (m *UserMutation) ClearedFields() []string
- func (m UserMutation) Client() *Client
- func (m *UserMutation) CreateCleared() bool
- func (m *UserMutation) CreateIDs() (ids []model.InternalID)
- func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UserMutation) CreatorCleared() bool
- func (m *UserMutation) CreatorID() (id model.InternalID, exists bool)
- func (m *UserMutation) CreatorIDs() (ids []model.InternalID)
- func (m *UserMutation) EdgeCleared(name string) bool
- func (m *UserMutation) FeedConfigCleared() bool
- func (m *UserMutation) FeedConfigIDs() (ids []model.InternalID)
- func (m *UserMutation) Field(name string) (ent.Value, bool)
- func (m *UserMutation) FieldCleared(name string) bool
- func (m *UserMutation) Fields() []string
- func (m *UserMutation) GetType() (r user.Type, exists bool)
- func (m *UserMutation) ID() (id model.InternalID, exists bool)
- func (m *UserMutation) IDs(ctx context.Context) ([]model.InternalID, error)
- func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldStatus(ctx context.Context) (v user.Status, err error)
- func (m *UserMutation) OldType(ctx context.Context) (v user.Type, err error)
- func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) Password() (r string, exists bool)
- func (m *UserMutation) RemoveAccountIDs(ids ...model.InternalID)
- func (m *UserMutation) RemoveAppIDs(ids ...model.InternalID)
- func (m *UserMutation) RemoveCreateIDs(ids ...model.InternalID)
- func (m *UserMutation) RemoveFeedConfigIDs(ids ...model.InternalID)
- func (m *UserMutation) RemovedAccountIDs() (ids []model.InternalID)
- func (m *UserMutation) RemovedAppIDs() (ids []model.InternalID)
- func (m *UserMutation) RemovedCreateIDs() (ids []model.InternalID)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedFeedConfigIDs() (ids []model.InternalID)
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) ResetAccount()
- func (m *UserMutation) ResetApp()
- func (m *UserMutation) ResetCreate()
- func (m *UserMutation) ResetCreatedAt()
- func (m *UserMutation) ResetCreator()
- func (m *UserMutation) ResetEdge(name string) error
- func (m *UserMutation) ResetFeedConfig()
- func (m *UserMutation) ResetField(name string) error
- func (m *UserMutation) ResetPassword()
- func (m *UserMutation) ResetStatus()
- func (m *UserMutation) ResetType()
- func (m *UserMutation) ResetUpdatedAt()
- func (m *UserMutation) ResetUsername()
- func (m *UserMutation) SetCreatedAt(t time.Time)
- func (m *UserMutation) SetCreatorID(id model.InternalID)
- func (m *UserMutation) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetID(id model.InternalID)
- func (m *UserMutation) SetOp(op Op)
- func (m *UserMutation) SetPassword(s string)
- func (m *UserMutation) SetStatus(u user.Status)
- func (m *UserMutation) SetType(u user.Type)
- func (m *UserMutation) SetUpdatedAt(t time.Time)
- func (m *UserMutation) SetUsername(s string)
- func (m *UserMutation) Status() (r user.Status, exists bool)
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *UserMutation) Username() (r string, exists bool)
- func (m *UserMutation) Where(ps ...predicate.User)
- func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
- type UserQuery
- func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
- func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
- func (uq *UserQuery) AllX(ctx context.Context) []*User
- func (uq *UserQuery) Clone() *UserQuery
- func (uq *UserQuery) Count(ctx context.Context) (int, error)
- func (uq *UserQuery) CountX(ctx context.Context) int
- func (uq *UserQuery) Exist(ctx context.Context) (bool, error)
- func (uq *UserQuery) ExistX(ctx context.Context) bool
- func (uq *UserQuery) First(ctx context.Context) (*User, error)
- func (uq *UserQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
- func (uq *UserQuery) FirstIDX(ctx context.Context) model.InternalID
- func (uq *UserQuery) FirstX(ctx context.Context) *User
- func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (uq *UserQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
- func (uq *UserQuery) IDsX(ctx context.Context) []model.InternalID
- func (uq *UserQuery) Limit(limit int) *UserQuery
- func (uq *UserQuery) Offset(offset int) *UserQuery
- func (uq *UserQuery) Only(ctx context.Context) (*User, error)
- func (uq *UserQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) model.InternalID
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery
- func (uq *UserQuery) QueryAccount() *AccountQuery
- func (uq *UserQuery) QueryApp() *AppQuery
- func (uq *UserQuery) QueryCreate() *UserQuery
- func (uq *UserQuery) QueryCreator() *UserQuery
- func (uq *UserQuery) QueryFeedConfig() *FeedConfigQuery
- func (uq *UserQuery) Select(fields ...string) *UserSelect
- func (uq *UserQuery) Unique(unique bool) *UserQuery
- func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
- func (uq *UserQuery) WithAccount(opts ...func(*AccountQuery)) *UserQuery
- func (uq *UserQuery) WithApp(opts ...func(*AppQuery)) *UserQuery
- func (uq *UserQuery) WithCreate(opts ...func(*UserQuery)) *UserQuery
- func (uq *UserQuery) WithCreator(opts ...func(*UserQuery)) *UserQuery
- func (uq *UserQuery) WithFeedConfig(opts ...func(*FeedConfigQuery)) *UserQuery
- type UserSelect
- func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
- func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSelect) BoolX(ctx context.Context) bool
- func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSelect) BoolsX(ctx context.Context) []bool
- func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSelect) Float64X(ctx context.Context) float64
- func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSelect) Float64sX(ctx context.Context) []float64
- func (s *UserSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserSelect) IntX(ctx context.Context) int
- func (s *UserSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserSelect) IntsX(ctx context.Context) []int
- func (us *UserSelect) Scan(ctx context.Context, v any) error
- func (s *UserSelect) ScanX(ctx context.Context, v any)
- func (s *UserSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserSelect) StringX(ctx context.Context) string
- func (s *UserSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserSelect) StringsX(ctx context.Context) []string
- type UserUpdate
- func (uu *UserUpdate) AddAccount(a ...*Account) *UserUpdate
- func (uu *UserUpdate) AddAccountIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) AddApp(a ...*App) *UserUpdate
- func (uu *UserUpdate) AddAppIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) AddCreate(u ...*User) *UserUpdate
- func (uu *UserUpdate) AddCreateIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) AddFeedConfig(f ...*FeedConfig) *UserUpdate
- func (uu *UserUpdate) AddFeedConfigIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) ClearAccount() *UserUpdate
- func (uu *UserUpdate) ClearApp() *UserUpdate
- func (uu *UserUpdate) ClearCreate() *UserUpdate
- func (uu *UserUpdate) ClearCreator() *UserUpdate
- func (uu *UserUpdate) ClearFeedConfig() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveAccount(a ...*Account) *UserUpdate
- func (uu *UserUpdate) RemoveAccountIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) RemoveApp(a ...*App) *UserUpdate
- func (uu *UserUpdate) RemoveAppIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) RemoveCreate(u ...*User) *UserUpdate
- func (uu *UserUpdate) RemoveCreateIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) RemoveFeedConfig(f ...*FeedConfig) *UserUpdate
- func (uu *UserUpdate) RemoveFeedConfigIDs(ids ...model.InternalID) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetCreatedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetCreator(u *User) *UserUpdate
- func (uu *UserUpdate) SetCreatorID(id model.InternalID) *UserUpdate
- func (uu *UserUpdate) SetNillableCreatedAt(t *time.Time) *UserUpdate
- func (uu *UserUpdate) SetPassword(s string) *UserUpdate
- func (uu *UserUpdate) SetStatus(u user.Status) *UserUpdate
- func (uu *UserUpdate) SetType(u user.Type) *UserUpdate
- func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) SetUsername(s string) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddAccount(a ...*Account) *UserUpdateOne
- func (uuo *UserUpdateOne) AddAccountIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddApp(a ...*App) *UserUpdateOne
- func (uuo *UserUpdateOne) AddAppIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddCreate(u ...*User) *UserUpdateOne
- func (uuo *UserUpdateOne) AddCreateIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) AddFeedConfig(f ...*FeedConfig) *UserUpdateOne
- func (uuo *UserUpdateOne) AddFeedConfigIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearAccount() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearApp() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearCreate() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearCreator() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearFeedConfig() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveAccount(a ...*Account) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveAccountIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveApp(a ...*App) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveAppIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveCreate(u ...*User) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveCreateIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveFeedConfig(f ...*FeedConfig) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveFeedConfigIDs(ids ...model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
- func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetCreatedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetCreator(u *User) *UserUpdateOne
- func (uuo *UserUpdateOne) SetCreatorID(id model.InternalID) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableCreatedAt(t *time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetStatus(u user.Status) *UserUpdateOne
- func (uuo *UserUpdateOne) SetType(u user.Type) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
- type UserUpsert
- func (u *UserUpsert) SetCreatedAt(v time.Time) *UserUpsert
- func (u *UserUpsert) SetPassword(v string) *UserUpsert
- func (u *UserUpsert) SetStatus(v user.Status) *UserUpsert
- func (u *UserUpsert) SetType(v user.Type) *UserUpsert
- func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert
- func (u *UserUpsert) SetUsername(v string) *UserUpsert
- func (u *UserUpsert) UpdateCreatedAt() *UserUpsert
- func (u *UserUpsert) UpdatePassword() *UserUpsert
- func (u *UserUpsert) UpdateStatus() *UserUpsert
- func (u *UserUpsert) UpdateType() *UserUpsert
- func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert
- func (u *UserUpsert) UpdateUsername() *UserUpsert
- type UserUpsertBulk
- func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk
- func (u *UserUpsertBulk) Exec(ctx context.Context) error
- func (u *UserUpsertBulk) ExecX(ctx context.Context)
- func (u *UserUpsertBulk) Ignore() *UserUpsertBulk
- func (u *UserUpsertBulk) SetCreatedAt(v time.Time) *UserUpsertBulk
- func (u *UserUpsertBulk) SetPassword(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetStatus(v user.Status) *UserUpsertBulk
- func (u *UserUpsertBulk) SetType(v user.Type) *UserUpsertBulk
- func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk
- func (u *UserUpsertBulk) SetUsername(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateCreatedAt() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdatePassword() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateStatus() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateType() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateUsername() *UserUpsertBulk
- type UserUpsertOne
- func (u *UserUpsertOne) DoNothing() *UserUpsertOne
- func (u *UserUpsertOne) Exec(ctx context.Context) error
- func (u *UserUpsertOne) ExecX(ctx context.Context)
- func (u *UserUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
- func (u *UserUpsertOne) IDX(ctx context.Context) model.InternalID
- func (u *UserUpsertOne) Ignore() *UserUpsertOne
- func (u *UserUpsertOne) SetCreatedAt(v time.Time) *UserUpsertOne
- func (u *UserUpsertOne) SetPassword(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetStatus(v user.Status) *UserUpsertOne
- func (u *UserUpsertOne) SetType(v user.Type) *UserUpsertOne
- func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne
- func (u *UserUpsertOne) SetUsername(v string) *UserUpsertOne
- func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne
- func (u *UserUpsertOne) UpdateCreatedAt() *UserUpsertOne
- func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne
- func (u *UserUpsertOne) UpdatePassword() *UserUpsertOne
- func (u *UserUpsertOne) UpdateStatus() *UserUpsertOne
- func (u *UserUpsertOne) UpdateType() *UserUpsertOne
- func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne
- func (u *UserUpsertOne) UpdateUsername() *UserUpsertOne
- type Users
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeAccount = "Account" TypeApp = "App" TypeAppPackage = "AppPackage" TypeFeed = "Feed" TypeFeedConfig = "FeedConfig" TypeFeedItem = "FeedItem" TypeUser = "User" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type Account ¶ added in v0.0.2
type Account struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // Platform holds the value of the "platform" field. Platform account.Platform `json:"platform,omitempty"` // PlatformAccountID holds the value of the "platform_account_id" field. PlatformAccountID string `json:"platform_account_id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // ProfileURL holds the value of the "profile_url" field. ProfileURL string `json:"profile_url,omitempty"` // AvatarURL holds the value of the "avatar_url" field. AvatarURL string `json:"avatar_url,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the 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) QueryUser ¶ added in v0.0.6
QueryUser queries the "user" edge of the Account entity.
func (*Account) Unwrap ¶ added in v0.0.2
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 ¶ added in v0.0.2
func (a *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 ¶ added in v0.0.2
type AccountClient struct {
// contains filtered or unexported fields
}
AccountClient is a client for the Account schema.
func NewAccountClient ¶ added in v0.0.2
func NewAccountClient(c config) *AccountClient
NewAccountClient returns a client for the Account from the given config.
func (*AccountClient) Create ¶ added in v0.0.2
func (c *AccountClient) Create() *AccountCreate
Create returns a builder for creating a Account entity.
func (*AccountClient) CreateBulk ¶ added in v0.0.2
func (c *AccountClient) CreateBulk(builders ...*AccountCreate) *AccountCreateBulk
CreateBulk returns a builder for creating a bulk of Account entities.
func (*AccountClient) Delete ¶ added in v0.0.2
func (c *AccountClient) Delete() *AccountDelete
Delete returns a delete builder for Account.
func (*AccountClient) DeleteOne ¶ added in v0.0.2
func (c *AccountClient) DeleteOne(a *Account) *AccountDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AccountClient) DeleteOneID ¶ added in v0.0.2
func (c *AccountClient) DeleteOneID(id model.InternalID) *AccountDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AccountClient) Get ¶ added in v0.0.2
func (c *AccountClient) Get(ctx context.Context, id model.InternalID) (*Account, error)
Get returns a Account entity by its id.
func (*AccountClient) GetX ¶ added in v0.0.2
func (c *AccountClient) GetX(ctx context.Context, id model.InternalID) *Account
GetX is like Get, but panics if an error occurs.
func (*AccountClient) Hooks ¶ added in v0.0.2
func (c *AccountClient) Hooks() []Hook
Hooks returns the client hooks.
func (*AccountClient) Intercept ¶ added in v0.0.4
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 ¶ added in v0.0.4
func (c *AccountClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AccountClient) Query ¶ added in v0.0.2
func (c *AccountClient) Query() *AccountQuery
Query returns a query builder for Account.
func (*AccountClient) QueryUser ¶ added in v0.0.6
func (c *AccountClient) QueryUser(a *Account) *UserQuery
QueryUser queries the user edge of a Account.
func (*AccountClient) Update ¶ added in v0.0.2
func (c *AccountClient) Update() *AccountUpdate
Update returns an update builder for Account.
func (*AccountClient) UpdateOne ¶ added in v0.0.2
func (c *AccountClient) UpdateOne(a *Account) *AccountUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AccountClient) UpdateOneID ¶ added in v0.0.2
func (c *AccountClient) UpdateOneID(id model.InternalID) *AccountUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AccountClient) Use ¶ added in v0.0.2
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 ¶ added in v0.0.2
type AccountCreate struct {
// contains filtered or unexported fields
}
AccountCreate is the builder for creating a Account entity.
func (*AccountCreate) Exec ¶ added in v0.0.2
func (ac *AccountCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountCreate) ExecX ¶ added in v0.0.2
func (ac *AccountCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountCreate) Mutation ¶ added in v0.0.2
func (ac *AccountCreate) Mutation() *AccountMutation
Mutation returns the AccountMutation object of the builder.
func (*AccountCreate) OnConflict ¶ added in v0.0.2
func (ac *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(). SetPlatform(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) { SetPlatform(v+v). }). Exec(ctx)
func (*AccountCreate) OnConflictColumns ¶ added in v0.0.2
func (ac *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) Save ¶ added in v0.0.2
func (ac *AccountCreate) Save(ctx context.Context) (*Account, error)
Save creates the Account in the database.
func (*AccountCreate) SaveX ¶ added in v0.0.2
func (ac *AccountCreate) SaveX(ctx context.Context) *Account
SaveX calls Save and panics if Save returns an error.
func (*AccountCreate) SetAvatarURL ¶ added in v0.0.2
func (ac *AccountCreate) SetAvatarURL(s string) *AccountCreate
SetAvatarURL sets the "avatar_url" field.
func (*AccountCreate) SetCreatedAt ¶ added in v0.0.2
func (ac *AccountCreate) SetCreatedAt(t time.Time) *AccountCreate
SetCreatedAt sets the "created_at" field.
func (*AccountCreate) SetID ¶ added in v0.0.6
func (ac *AccountCreate) SetID(mi model.InternalID) *AccountCreate
SetID sets the "id" field.
func (*AccountCreate) SetName ¶ added in v0.0.2
func (ac *AccountCreate) SetName(s string) *AccountCreate
SetName sets the "name" field.
func (*AccountCreate) SetNillableCreatedAt ¶ added in v0.0.2
func (ac *AccountCreate) SetNillableCreatedAt(t *time.Time) *AccountCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AccountCreate) SetNillableUpdatedAt ¶ added in v0.0.5
func (ac *AccountCreate) SetNillableUpdatedAt(t *time.Time) *AccountCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AccountCreate) SetNillableUserID ¶ added in v0.0.6
func (ac *AccountCreate) SetNillableUserID(id *model.InternalID) *AccountCreate
SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
func (*AccountCreate) SetPlatform ¶ added in v0.0.2
func (ac *AccountCreate) SetPlatform(a account.Platform) *AccountCreate
SetPlatform sets the "platform" field.
func (*AccountCreate) SetPlatformAccountID ¶ added in v0.0.2
func (ac *AccountCreate) SetPlatformAccountID(s string) *AccountCreate
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountCreate) SetProfileURL ¶ added in v0.0.2
func (ac *AccountCreate) SetProfileURL(s string) *AccountCreate
SetProfileURL sets the "profile_url" field.
func (*AccountCreate) SetUpdatedAt ¶ added in v0.0.5
func (ac *AccountCreate) SetUpdatedAt(t time.Time) *AccountCreate
SetUpdatedAt sets the "updated_at" field.
func (*AccountCreate) SetUser ¶ added in v0.0.6
func (ac *AccountCreate) SetUser(u *User) *AccountCreate
SetUser sets the "user" edge to the User entity.
func (*AccountCreate) SetUserID ¶ added in v0.0.6
func (ac *AccountCreate) SetUserID(id model.InternalID) *AccountCreate
SetUserID sets the "user" edge to the User entity by ID.
type AccountCreateBulk ¶ added in v0.0.2
type AccountCreateBulk struct {
// contains filtered or unexported fields
}
AccountCreateBulk is the builder for creating many Account entities in bulk.
func (*AccountCreateBulk) Exec ¶ added in v0.0.2
func (acb *AccountCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountCreateBulk) ExecX ¶ added in v0.0.2
func (acb *AccountCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountCreateBulk) OnConflict ¶ added in v0.0.2
func (acb *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) { SetPlatform(v+v). }). Exec(ctx)
func (*AccountCreateBulk) OnConflictColumns ¶ added in v0.0.2
func (acb *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)
type AccountDelete ¶ added in v0.0.2
type AccountDelete struct {
// contains filtered or unexported fields
}
AccountDelete is the builder for deleting a Account entity.
func (*AccountDelete) Exec ¶ added in v0.0.2
func (ad *AccountDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AccountDelete) ExecX ¶ added in v0.0.2
func (ad *AccountDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AccountDelete) Where ¶ added in v0.0.2
func (ad *AccountDelete) Where(ps ...predicate.Account) *AccountDelete
Where appends a list predicates to the AccountDelete builder.
type AccountDeleteOne ¶ added in v0.0.2
type AccountDeleteOne struct {
// contains filtered or unexported fields
}
AccountDeleteOne is the builder for deleting a single Account entity.
func (*AccountDeleteOne) Exec ¶ added in v0.0.2
func (ado *AccountDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AccountDeleteOne) ExecX ¶ added in v0.0.2
func (ado *AccountDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountDeleteOne) Where ¶ added in v0.0.4
func (ado *AccountDeleteOne) Where(ps ...predicate.Account) *AccountDeleteOne
Where appends a list predicates to the AccountDelete builder.
type AccountEdges ¶ added in v0.0.6
type AccountEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // contains filtered or unexported fields }
AccountEdges holds the relations/edges for other nodes in the graph.
func (AccountEdges) UserOrErr ¶ added in v0.0.6
func (e AccountEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type AccountGroupBy ¶ added in v0.0.2
type AccountGroupBy struct {
// contains filtered or unexported fields
}
AccountGroupBy is the group-by builder for Account entities.
func (*AccountGroupBy) Aggregate ¶ added in v0.0.2
func (agb *AccountGroupBy) Aggregate(fns ...AggregateFunc) *AccountGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AccountGroupBy) Bool ¶ added in v0.0.2
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Bools ¶ added in v0.0.2
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) BoolsX ¶ added in v0.0.2
BoolsX is like Bools, but panics if an error occurs.
func (*AccountGroupBy) Float64 ¶ added in v0.0.2
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Float64X ¶ added in v0.0.2
Float64X is like Float64, but panics if an error occurs.
func (*AccountGroupBy) Float64s ¶ added in v0.0.2
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Float64sX ¶ added in v0.0.2
Float64sX is like Float64s, but panics if an error occurs.
func (*AccountGroupBy) Int ¶ added in v0.0.2
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Ints ¶ added in v0.0.2
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) Scan ¶ added in v0.0.2
func (agb *AccountGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AccountGroupBy) String ¶ added in v0.0.2
String returns a single string from a selector. It is only allowed when selecting one field.
func (*AccountGroupBy) StringX ¶ added in v0.0.2
StringX is like String, but panics if an error occurs.
type AccountMutation ¶ added in v0.0.2
type AccountMutation struct {
// contains filtered or unexported fields
}
AccountMutation represents an operation that mutates the Account nodes in the graph.
func (*AccountMutation) AddField ¶ added in v0.0.2
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) AddedEdges ¶ added in v0.0.2
func (m *AccountMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AccountMutation) AddedField ¶ added in v0.0.2
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 ¶ added in v0.0.2
func (m *AccountMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AccountMutation) AddedIDs ¶ added in v0.0.2
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) AvatarURL ¶ added in v0.0.2
func (m *AccountMutation) AvatarURL() (r string, exists bool)
AvatarURL returns the value of the "avatar_url" field in the mutation.
func (*AccountMutation) ClearEdge ¶ added in v0.0.2
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 ¶ added in v0.0.2
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) ClearUser ¶ added in v0.0.6
func (m *AccountMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*AccountMutation) ClearedEdges ¶ added in v0.0.2
func (m *AccountMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AccountMutation) ClearedFields ¶ added in v0.0.2
func (m *AccountMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AccountMutation) Client ¶ added in v0.0.2
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 ¶ added in v0.0.2
func (m *AccountMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*AccountMutation) EdgeCleared ¶ added in v0.0.2
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) Field ¶ added in v0.0.2
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 ¶ added in v0.0.2
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 ¶ added in v0.0.2
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 ¶ added in v0.0.2
func (m *AccountMutation) ID() (id model.InternalID, 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 ¶ added in v0.0.2
func (m *AccountMutation) IDs(ctx context.Context) ([]model.InternalID, 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) Name ¶ added in v0.0.2
func (m *AccountMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*AccountMutation) OldAvatarURL ¶ added in v0.0.2
func (m *AccountMutation) OldAvatarURL(ctx context.Context) (v string, err error)
OldAvatarURL returns the old "avatar_url" 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 ¶ added in v0.0.2
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) OldField ¶ added in v0.0.2
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) OldName ¶ added in v0.0.2
func (m *AccountMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "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) OldPlatform ¶ added in v0.0.2
OldPlatform returns the old "platform" 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) OldPlatformAccountID ¶ added in v0.0.2
func (m *AccountMutation) OldPlatformAccountID(ctx context.Context) (v string, err error)
OldPlatformAccountID returns the old "platform_account_id" 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) OldProfileURL ¶ added in v0.0.2
func (m *AccountMutation) OldProfileURL(ctx context.Context) (v string, err error)
OldProfileURL returns the old "profile_url" 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 ¶ added in v0.0.5
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) Op ¶ added in v0.0.2
func (m *AccountMutation) Op() Op
Op returns the operation name.
func (*AccountMutation) Platform ¶ added in v0.0.2
func (m *AccountMutation) Platform() (r account.Platform, exists bool)
Platform returns the value of the "platform" field in the mutation.
func (*AccountMutation) PlatformAccountID ¶ added in v0.0.2
func (m *AccountMutation) PlatformAccountID() (r string, exists bool)
PlatformAccountID returns the value of the "platform_account_id" field in the mutation.
func (*AccountMutation) ProfileURL ¶ added in v0.0.2
func (m *AccountMutation) ProfileURL() (r string, exists bool)
ProfileURL returns the value of the "profile_url" field in the mutation.
func (*AccountMutation) RemovedEdges ¶ added in v0.0.2
func (m *AccountMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AccountMutation) RemovedIDs ¶ added in v0.0.2
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) ResetAvatarURL ¶ added in v0.0.2
func (m *AccountMutation) ResetAvatarURL()
ResetAvatarURL resets all changes to the "avatar_url" field.
func (*AccountMutation) ResetCreatedAt ¶ added in v0.0.2
func (m *AccountMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*AccountMutation) ResetEdge ¶ added in v0.0.2
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 ¶ added in v0.0.2
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) ResetName ¶ added in v0.0.2
func (m *AccountMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*AccountMutation) ResetPlatform ¶ added in v0.0.2
func (m *AccountMutation) ResetPlatform()
ResetPlatform resets all changes to the "platform" field.
func (*AccountMutation) ResetPlatformAccountID ¶ added in v0.0.2
func (m *AccountMutation) ResetPlatformAccountID()
ResetPlatformAccountID resets all changes to the "platform_account_id" field.
func (*AccountMutation) ResetProfileURL ¶ added in v0.0.2
func (m *AccountMutation) ResetProfileURL()
ResetProfileURL resets all changes to the "profile_url" field.
func (*AccountMutation) ResetUpdatedAt ¶ added in v0.0.5
func (m *AccountMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*AccountMutation) ResetUser ¶ added in v0.0.6
func (m *AccountMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*AccountMutation) SetAvatarURL ¶ added in v0.0.2
func (m *AccountMutation) SetAvatarURL(s string)
SetAvatarURL sets the "avatar_url" field.
func (*AccountMutation) SetCreatedAt ¶ added in v0.0.2
func (m *AccountMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*AccountMutation) SetField ¶ added in v0.0.2
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 ¶ added in v0.0.6
func (m *AccountMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Account entities.
func (*AccountMutation) SetName ¶ added in v0.0.2
func (m *AccountMutation) SetName(s string)
SetName sets the "name" field.
func (*AccountMutation) SetOp ¶ added in v0.0.4
func (m *AccountMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AccountMutation) SetPlatform ¶ added in v0.0.2
func (m *AccountMutation) SetPlatform(a account.Platform)
SetPlatform sets the "platform" field.
func (*AccountMutation) SetPlatformAccountID ¶ added in v0.0.2
func (m *AccountMutation) SetPlatformAccountID(s string)
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountMutation) SetProfileURL ¶ added in v0.0.2
func (m *AccountMutation) SetProfileURL(s string)
SetProfileURL sets the "profile_url" field.
func (*AccountMutation) SetUpdatedAt ¶ added in v0.0.5
func (m *AccountMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*AccountMutation) SetUserID ¶ added in v0.0.6
func (m *AccountMutation) SetUserID(id model.InternalID)
SetUserID sets the "user" edge to the User entity by id.
func (AccountMutation) Tx ¶ added in v0.0.2
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 ¶ added in v0.0.2
func (m *AccountMutation) Type() string
Type returns the node type of this mutation (Account).
func (*AccountMutation) UpdatedAt ¶ added in v0.0.5
func (m *AccountMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*AccountMutation) UserCleared ¶ added in v0.0.6
func (m *AccountMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*AccountMutation) UserID ¶ added in v0.0.6
func (m *AccountMutation) UserID() (id model.InternalID, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*AccountMutation) UserIDs ¶ added in v0.0.6
func (m *AccountMutation) UserIDs() (ids []model.InternalID)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*AccountMutation) Where ¶ added in v0.0.2
func (m *AccountMutation) Where(ps ...predicate.Account)
Where appends a list predicates to the AccountMutation builder.
func (*AccountMutation) WhereP ¶ added in v0.0.4
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 ¶ added in v0.0.2
type AccountQuery struct {
// contains filtered or unexported fields
}
AccountQuery is the builder for querying Account entities.
func (*AccountQuery) Aggregate ¶ added in v0.0.3
func (aq *AccountQuery) Aggregate(fns ...AggregateFunc) *AccountSelect
Aggregate returns a AccountSelect configured with the given aggregations.
func (*AccountQuery) All ¶ added in v0.0.2
func (aq *AccountQuery) All(ctx context.Context) ([]*Account, error)
All executes the query and returns a list of Accounts.
func (*AccountQuery) AllX ¶ added in v0.0.2
func (aq *AccountQuery) AllX(ctx context.Context) []*Account
AllX is like All, but panics if an error occurs.
func (*AccountQuery) Clone ¶ added in v0.0.2
func (aq *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 ¶ added in v0.0.2
func (aq *AccountQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AccountQuery) CountX ¶ added in v0.0.2
func (aq *AccountQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AccountQuery) Exist ¶ added in v0.0.2
func (aq *AccountQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AccountQuery) ExistX ¶ added in v0.0.2
func (aq *AccountQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AccountQuery) First ¶ added in v0.0.2
func (aq *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 ¶ added in v0.0.2
func (aq *AccountQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
FirstID returns the first Account ID from the query. Returns a *NotFoundError when no Account ID was found.
func (*AccountQuery) FirstIDX ¶ added in v0.0.2
func (aq *AccountQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*AccountQuery) FirstX ¶ added in v0.0.2
func (aq *AccountQuery) FirstX(ctx context.Context) *Account
FirstX is like First, but panics if an error occurs.
func (*AccountQuery) GroupBy ¶ added in v0.0.2
func (aq *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 { Platform account.Platform `json:"platform,omitempty"` Count int `json:"count,omitempty"` } client.Account.Query(). GroupBy(account.FieldPlatform). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AccountQuery) IDs ¶ added in v0.0.2
func (aq *AccountQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
IDs executes the query and returns a list of Account IDs.
func (*AccountQuery) IDsX ¶ added in v0.0.2
func (aq *AccountQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*AccountQuery) Limit ¶ added in v0.0.2
func (aq *AccountQuery) Limit(limit int) *AccountQuery
Limit the number of records to be returned by this query.
func (*AccountQuery) Offset ¶ added in v0.0.2
func (aq *AccountQuery) Offset(offset int) *AccountQuery
Offset to start from.
func (*AccountQuery) Only ¶ added in v0.0.2
func (aq *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 ¶ added in v0.0.2
func (aq *AccountQuery) OnlyID(ctx context.Context) (id model.InternalID, 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 ¶ added in v0.0.2
func (aq *AccountQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AccountQuery) OnlyX ¶ added in v0.0.2
func (aq *AccountQuery) OnlyX(ctx context.Context) *Account
OnlyX is like Only, but panics if an error occurs.
func (*AccountQuery) Order ¶ added in v0.0.2
func (aq *AccountQuery) Order(o ...OrderFunc) *AccountQuery
Order specifies how the records should be ordered.
func (*AccountQuery) QueryUser ¶ added in v0.0.6
func (aq *AccountQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*AccountQuery) Select ¶ added in v0.0.2
func (aq *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 { Platform account.Platform `json:"platform,omitempty"` } client.Account.Query(). Select(account.FieldPlatform). Scan(ctx, &v)
func (*AccountQuery) Unique ¶ added in v0.0.2
func (aq *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 ¶ added in v0.0.2
func (aq *AccountQuery) Where(ps ...predicate.Account) *AccountQuery
Where adds a new predicate for the AccountQuery builder.
func (*AccountQuery) WithUser ¶ added in v0.0.6
func (aq *AccountQuery) WithUser(opts ...func(*UserQuery)) *AccountQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type AccountSelect ¶ added in v0.0.2
type AccountSelect struct { *AccountQuery // contains filtered or unexported fields }
AccountSelect is the builder for selecting fields of Account entities.
func (*AccountSelect) Aggregate ¶ added in v0.0.3
func (as *AccountSelect) Aggregate(fns ...AggregateFunc) *AccountSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AccountSelect) Bool ¶ added in v0.0.2
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Bools ¶ added in v0.0.2
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Float64 ¶ added in v0.0.2
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Float64X ¶ added in v0.0.2
Float64X is like Float64, but panics if an error occurs.
func (*AccountSelect) Float64s ¶ added in v0.0.2
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Float64sX ¶ added in v0.0.2
Float64sX is like Float64s, but panics if an error occurs.
func (*AccountSelect) Int ¶ added in v0.0.2
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Ints ¶ added in v0.0.2
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AccountSelect) Scan ¶ added in v0.0.2
func (as *AccountSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AccountSelect) String ¶ added in v0.0.2
String returns a single string from a selector. It is only allowed when selecting one field.
func (*AccountSelect) StringX ¶ added in v0.0.2
StringX is like String, but panics if an error occurs.
type AccountUpdate ¶ added in v0.0.2
type AccountUpdate struct {
// contains filtered or unexported fields
}
AccountUpdate is the builder for updating Account entities.
func (*AccountUpdate) ClearUser ¶ added in v0.0.6
func (au *AccountUpdate) ClearUser() *AccountUpdate
ClearUser clears the "user" edge to the User entity.
func (*AccountUpdate) Exec ¶ added in v0.0.2
func (au *AccountUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountUpdate) ExecX ¶ added in v0.0.2
func (au *AccountUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpdate) Mutation ¶ added in v0.0.2
func (au *AccountUpdate) Mutation() *AccountMutation
Mutation returns the AccountMutation object of the builder.
func (*AccountUpdate) Save ¶ added in v0.0.2
func (au *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 ¶ added in v0.0.2
func (au *AccountUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AccountUpdate) SetAvatarURL ¶ added in v0.0.2
func (au *AccountUpdate) SetAvatarURL(s string) *AccountUpdate
SetAvatarURL sets the "avatar_url" field.
func (*AccountUpdate) SetCreatedAt ¶ added in v0.0.2
func (au *AccountUpdate) SetCreatedAt(t time.Time) *AccountUpdate
SetCreatedAt sets the "created_at" field.
func (*AccountUpdate) SetName ¶ added in v0.0.2
func (au *AccountUpdate) SetName(s string) *AccountUpdate
SetName sets the "name" field.
func (*AccountUpdate) SetNillableCreatedAt ¶ added in v0.0.2
func (au *AccountUpdate) SetNillableCreatedAt(t *time.Time) *AccountUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AccountUpdate) SetNillableUserID ¶ added in v0.0.6
func (au *AccountUpdate) SetNillableUserID(id *model.InternalID) *AccountUpdate
SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
func (*AccountUpdate) SetPlatform ¶ added in v0.0.2
func (au *AccountUpdate) SetPlatform(a account.Platform) *AccountUpdate
SetPlatform sets the "platform" field.
func (*AccountUpdate) SetPlatformAccountID ¶ added in v0.0.2
func (au *AccountUpdate) SetPlatformAccountID(s string) *AccountUpdate
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountUpdate) SetProfileURL ¶ added in v0.0.2
func (au *AccountUpdate) SetProfileURL(s string) *AccountUpdate
SetProfileURL sets the "profile_url" field.
func (*AccountUpdate) SetUpdatedAt ¶ added in v0.0.5
func (au *AccountUpdate) SetUpdatedAt(t time.Time) *AccountUpdate
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpdate) SetUser ¶ added in v0.0.6
func (au *AccountUpdate) SetUser(u *User) *AccountUpdate
SetUser sets the "user" edge to the User entity.
func (*AccountUpdate) SetUserID ¶ added in v0.0.6
func (au *AccountUpdate) SetUserID(id model.InternalID) *AccountUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*AccountUpdate) Where ¶ added in v0.0.2
func (au *AccountUpdate) Where(ps ...predicate.Account) *AccountUpdate
Where appends a list predicates to the AccountUpdate builder.
type AccountUpdateOne ¶ added in v0.0.2
type AccountUpdateOne struct {
// contains filtered or unexported fields
}
AccountUpdateOne is the builder for updating a single Account entity.
func (*AccountUpdateOne) ClearUser ¶ added in v0.0.6
func (auo *AccountUpdateOne) ClearUser() *AccountUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*AccountUpdateOne) Exec ¶ added in v0.0.2
func (auo *AccountUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AccountUpdateOne) ExecX ¶ added in v0.0.2
func (auo *AccountUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpdateOne) Mutation ¶ added in v0.0.2
func (auo *AccountUpdateOne) Mutation() *AccountMutation
Mutation returns the AccountMutation object of the builder.
func (*AccountUpdateOne) Save ¶ added in v0.0.2
func (auo *AccountUpdateOne) Save(ctx context.Context) (*Account, error)
Save executes the query and returns the updated Account entity.
func (*AccountUpdateOne) SaveX ¶ added in v0.0.2
func (auo *AccountUpdateOne) SaveX(ctx context.Context) *Account
SaveX is like Save, but panics if an error occurs.
func (*AccountUpdateOne) Select ¶ added in v0.0.2
func (auo *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) SetAvatarURL ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetAvatarURL(s string) *AccountUpdateOne
SetAvatarURL sets the "avatar_url" field.
func (*AccountUpdateOne) SetCreatedAt ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetCreatedAt(t time.Time) *AccountUpdateOne
SetCreatedAt sets the "created_at" field.
func (*AccountUpdateOne) SetName ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetName(s string) *AccountUpdateOne
SetName sets the "name" field.
func (*AccountUpdateOne) SetNillableCreatedAt ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetNillableCreatedAt(t *time.Time) *AccountUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AccountUpdateOne) SetNillableUserID ¶ added in v0.0.6
func (auo *AccountUpdateOne) SetNillableUserID(id *model.InternalID) *AccountUpdateOne
SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.
func (*AccountUpdateOne) SetPlatform ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetPlatform(a account.Platform) *AccountUpdateOne
SetPlatform sets the "platform" field.
func (*AccountUpdateOne) SetPlatformAccountID ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetPlatformAccountID(s string) *AccountUpdateOne
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountUpdateOne) SetProfileURL ¶ added in v0.0.2
func (auo *AccountUpdateOne) SetProfileURL(s string) *AccountUpdateOne
SetProfileURL sets the "profile_url" field.
func (*AccountUpdateOne) SetUpdatedAt ¶ added in v0.0.5
func (auo *AccountUpdateOne) SetUpdatedAt(t time.Time) *AccountUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpdateOne) SetUser ¶ added in v0.0.6
func (auo *AccountUpdateOne) SetUser(u *User) *AccountUpdateOne
SetUser sets the "user" edge to the User entity.
func (*AccountUpdateOne) SetUserID ¶ added in v0.0.6
func (auo *AccountUpdateOne) SetUserID(id model.InternalID) *AccountUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*AccountUpdateOne) Where ¶ added in v0.0.5
func (auo *AccountUpdateOne) Where(ps ...predicate.Account) *AccountUpdateOne
Where appends a list predicates to the AccountUpdate builder.
type AccountUpsert ¶ added in v0.0.2
AccountUpsert is the "OnConflict" setter.
func (*AccountUpsert) SetAvatarURL ¶ added in v0.0.2
func (u *AccountUpsert) SetAvatarURL(v string) *AccountUpsert
SetAvatarURL sets the "avatar_url" field.
func (*AccountUpsert) SetCreatedAt ¶ added in v0.0.2
func (u *AccountUpsert) SetCreatedAt(v time.Time) *AccountUpsert
SetCreatedAt sets the "created_at" field.
func (*AccountUpsert) SetName ¶ added in v0.0.2
func (u *AccountUpsert) SetName(v string) *AccountUpsert
SetName sets the "name" field.
func (*AccountUpsert) SetPlatform ¶ added in v0.0.2
func (u *AccountUpsert) SetPlatform(v account.Platform) *AccountUpsert
SetPlatform sets the "platform" field.
func (*AccountUpsert) SetPlatformAccountID ¶ added in v0.0.2
func (u *AccountUpsert) SetPlatformAccountID(v string) *AccountUpsert
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountUpsert) SetProfileURL ¶ added in v0.0.2
func (u *AccountUpsert) SetProfileURL(v string) *AccountUpsert
SetProfileURL sets the "profile_url" field.
func (*AccountUpsert) SetUpdatedAt ¶ added in v0.0.5
func (u *AccountUpsert) SetUpdatedAt(v time.Time) *AccountUpsert
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpsert) UpdateAvatarURL ¶ added in v0.0.2
func (u *AccountUpsert) UpdateAvatarURL() *AccountUpsert
UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.
func (*AccountUpsert) UpdateCreatedAt ¶ added in v0.0.2
func (u *AccountUpsert) UpdateCreatedAt() *AccountUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AccountUpsert) UpdateName ¶ added in v0.0.2
func (u *AccountUpsert) UpdateName() *AccountUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*AccountUpsert) UpdatePlatform ¶ added in v0.0.2
func (u *AccountUpsert) UpdatePlatform() *AccountUpsert
UpdatePlatform sets the "platform" field to the value that was provided on create.
func (*AccountUpsert) UpdatePlatformAccountID ¶ added in v0.0.2
func (u *AccountUpsert) UpdatePlatformAccountID() *AccountUpsert
UpdatePlatformAccountID sets the "platform_account_id" field to the value that was provided on create.
func (*AccountUpsert) UpdateProfileURL ¶ added in v0.0.2
func (u *AccountUpsert) UpdateProfileURL() *AccountUpsert
UpdateProfileURL sets the "profile_url" field to the value that was provided on create.
func (*AccountUpsert) UpdateUpdatedAt ¶ added in v0.0.5
func (u *AccountUpsert) UpdateUpdatedAt() *AccountUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AccountUpsertBulk ¶ added in v0.0.2
type AccountUpsertBulk struct {
// contains filtered or unexported fields
}
AccountUpsertBulk is the builder for "upsert"-ing a bulk of Account nodes.
func (*AccountUpsertBulk) DoNothing ¶ added in v0.0.2
func (u *AccountUpsertBulk) DoNothing() *AccountUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AccountUpsertBulk) Exec ¶ added in v0.0.2
func (u *AccountUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountUpsertBulk) ExecX ¶ added in v0.0.2
func (u *AccountUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpsertBulk) Ignore ¶ added in v0.0.2
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) SetAvatarURL ¶ added in v0.0.2
func (u *AccountUpsertBulk) SetAvatarURL(v string) *AccountUpsertBulk
SetAvatarURL sets the "avatar_url" field.
func (*AccountUpsertBulk) SetCreatedAt ¶ added in v0.0.2
func (u *AccountUpsertBulk) SetCreatedAt(v time.Time) *AccountUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*AccountUpsertBulk) SetName ¶ added in v0.0.2
func (u *AccountUpsertBulk) SetName(v string) *AccountUpsertBulk
SetName sets the "name" field.
func (*AccountUpsertBulk) SetPlatform ¶ added in v0.0.2
func (u *AccountUpsertBulk) SetPlatform(v account.Platform) *AccountUpsertBulk
SetPlatform sets the "platform" field.
func (*AccountUpsertBulk) SetPlatformAccountID ¶ added in v0.0.2
func (u *AccountUpsertBulk) SetPlatformAccountID(v string) *AccountUpsertBulk
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountUpsertBulk) SetProfileURL ¶ added in v0.0.2
func (u *AccountUpsertBulk) SetProfileURL(v string) *AccountUpsertBulk
SetProfileURL sets the "profile_url" field.
func (*AccountUpsertBulk) SetUpdatedAt ¶ added in v0.0.5
func (u *AccountUpsertBulk) SetUpdatedAt(v time.Time) *AccountUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpsertBulk) Update ¶ added in v0.0.2
func (u *AccountUpsertBulk) Update(set func(*AccountUpsert)) *AccountUpsertBulk
Update allows overriding fields `UPDATE` values. See the AccountCreateBulk.OnConflict documentation for more info.
func (*AccountUpsertBulk) UpdateAvatarURL ¶ added in v0.0.2
func (u *AccountUpsertBulk) UpdateAvatarURL() *AccountUpsertBulk
UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateCreatedAt ¶ added in v0.0.2
func (u *AccountUpsertBulk) UpdateCreatedAt() *AccountUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateName ¶ added in v0.0.2
func (u *AccountUpsertBulk) UpdateName() *AccountUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateNewValues ¶ added in v0.0.2
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) UpdatePlatform ¶ added in v0.0.2
func (u *AccountUpsertBulk) UpdatePlatform() *AccountUpsertBulk
UpdatePlatform sets the "platform" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdatePlatformAccountID ¶ added in v0.0.2
func (u *AccountUpsertBulk) UpdatePlatformAccountID() *AccountUpsertBulk
UpdatePlatformAccountID sets the "platform_account_id" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateProfileURL ¶ added in v0.0.2
func (u *AccountUpsertBulk) UpdateProfileURL() *AccountUpsertBulk
UpdateProfileURL sets the "profile_url" field to the value that was provided on create.
func (*AccountUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.5
func (u *AccountUpsertBulk) UpdateUpdatedAt() *AccountUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AccountUpsertOne ¶ added in v0.0.2
type AccountUpsertOne struct {
// contains filtered or unexported fields
}
AccountUpsertOne is the builder for "upsert"-ing
one Account node.
func (*AccountUpsertOne) DoNothing ¶ added in v0.0.2
func (u *AccountUpsertOne) DoNothing() *AccountUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AccountUpsertOne) Exec ¶ added in v0.0.2
func (u *AccountUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*AccountUpsertOne) ExecX ¶ added in v0.0.2
func (u *AccountUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AccountUpsertOne) ID ¶ added in v0.0.2
func (u *AccountUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*AccountUpsertOne) IDX ¶ added in v0.0.2
func (u *AccountUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*AccountUpsertOne) Ignore ¶ added in v0.0.2
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) SetAvatarURL ¶ added in v0.0.2
func (u *AccountUpsertOne) SetAvatarURL(v string) *AccountUpsertOne
SetAvatarURL sets the "avatar_url" field.
func (*AccountUpsertOne) SetCreatedAt ¶ added in v0.0.2
func (u *AccountUpsertOne) SetCreatedAt(v time.Time) *AccountUpsertOne
SetCreatedAt sets the "created_at" field.
func (*AccountUpsertOne) SetName ¶ added in v0.0.2
func (u *AccountUpsertOne) SetName(v string) *AccountUpsertOne
SetName sets the "name" field.
func (*AccountUpsertOne) SetPlatform ¶ added in v0.0.2
func (u *AccountUpsertOne) SetPlatform(v account.Platform) *AccountUpsertOne
SetPlatform sets the "platform" field.
func (*AccountUpsertOne) SetPlatformAccountID ¶ added in v0.0.2
func (u *AccountUpsertOne) SetPlatformAccountID(v string) *AccountUpsertOne
SetPlatformAccountID sets the "platform_account_id" field.
func (*AccountUpsertOne) SetProfileURL ¶ added in v0.0.2
func (u *AccountUpsertOne) SetProfileURL(v string) *AccountUpsertOne
SetProfileURL sets the "profile_url" field.
func (*AccountUpsertOne) SetUpdatedAt ¶ added in v0.0.5
func (u *AccountUpsertOne) SetUpdatedAt(v time.Time) *AccountUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*AccountUpsertOne) Update ¶ added in v0.0.2
func (u *AccountUpsertOne) Update(set func(*AccountUpsert)) *AccountUpsertOne
Update allows overriding fields `UPDATE` values. See the AccountCreate.OnConflict documentation for more info.
func (*AccountUpsertOne) UpdateAvatarURL ¶ added in v0.0.2
func (u *AccountUpsertOne) UpdateAvatarURL() *AccountUpsertOne
UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateCreatedAt ¶ added in v0.0.2
func (u *AccountUpsertOne) UpdateCreatedAt() *AccountUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateName ¶ added in v0.0.2
func (u *AccountUpsertOne) UpdateName() *AccountUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateNewValues ¶ added in v0.0.2
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) UpdatePlatform ¶ added in v0.0.2
func (u *AccountUpsertOne) UpdatePlatform() *AccountUpsertOne
UpdatePlatform sets the "platform" field to the value that was provided on create.
func (*AccountUpsertOne) UpdatePlatformAccountID ¶ added in v0.0.2
func (u *AccountUpsertOne) UpdatePlatformAccountID() *AccountUpsertOne
UpdatePlatformAccountID sets the "platform_account_id" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateProfileURL ¶ added in v0.0.2
func (u *AccountUpsertOne) UpdateProfileURL() *AccountUpsertOne
UpdateProfileURL sets the "profile_url" field to the value that was provided on create.
func (*AccountUpsertOne) UpdateUpdatedAt ¶ added in v0.0.5
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 App ¶
type App struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // Source holds the value of the "source" field. Source app.Source `json:"source,omitempty"` // SourceAppID holds the value of the "source_app_id" field. SourceAppID string `json:"source_app_id,omitempty"` // SourceURL holds the value of the "source_url" field. SourceURL string `json:"source_url,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Type holds the value of the "type" field. Type app.Type `json:"type,omitempty"` // ShortDescription holds the value of the "short_description" field. ShortDescription string `json:"short_description,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // ImageURL holds the value of the "image_url" field. ImageURL string `json:"image_url,omitempty"` // ReleaseDate holds the value of the "release_date" field. ReleaseDate string `json:"release_date,omitempty"` // Developer holds the value of the "developer" field. Developer string `json:"developer,omitempty"` // Publisher holds the value of the "publisher" field. Publisher string `json:"publisher,omitempty"` // Version holds the value of the "version" field. Version string `json:"version,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the AppQuery when eager-loading is set. Edges AppEdges `json:"edges"` // contains filtered or unexported fields }
App is the model entity for the App schema.
func (*App) QueryAppPackage ¶ added in v0.0.6
func (a *App) QueryAppPackage() *AppPackageQuery
QueryAppPackage queries the "app_package" edge of the App entity.
func (*App) Unwrap ¶
Unwrap unwraps the App 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 (*App) Update ¶
func (a *App) Update() *AppUpdateOne
Update returns a builder for updating this App. Note that you need to call App.Unwrap() before calling this method if this App was returned from a transaction, and the transaction was committed or rolled back.
type AppClient ¶
type AppClient struct {
// contains filtered or unexported fields
}
AppClient is a client for the App schema.
func NewAppClient ¶
func NewAppClient(c config) *AppClient
NewAppClient returns a client for the App from the given config.
func (*AppClient) CreateBulk ¶
func (c *AppClient) CreateBulk(builders ...*AppCreate) *AppCreateBulk
CreateBulk returns a builder for creating a bulk of App entities.
func (*AppClient) DeleteOne ¶
func (c *AppClient) DeleteOne(a *App) *AppDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AppClient) DeleteOneID ¶
func (c *AppClient) DeleteOneID(id model.InternalID) *AppDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AppClient) Intercept ¶ added in v0.0.4
func (c *AppClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `app.Intercept(f(g(h())))`.
func (*AppClient) Interceptors ¶ added in v0.0.4
func (c *AppClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AppClient) QueryAppPackage ¶ added in v0.0.6
func (c *AppClient) QueryAppPackage(a *App) *AppPackageQuery
QueryAppPackage queries the app_package edge of a App.
func (*AppClient) UpdateOne ¶
func (c *AppClient) UpdateOne(a *App) *AppUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AppClient) UpdateOneID ¶
func (c *AppClient) UpdateOneID(id model.InternalID) *AppUpdateOne
UpdateOneID returns an update builder for the given id.
type AppCreate ¶
type AppCreate struct {
// contains filtered or unexported fields
}
AppCreate is the builder for creating a App entity.
func (*AppCreate) AddAppPackage ¶ added in v0.0.6
func (ac *AppCreate) AddAppPackage(a ...*AppPackage) *AppCreate
AddAppPackage adds the "app_package" edges to the AppPackage entity.
func (*AppCreate) AddAppPackageIDs ¶ added in v0.0.6
func (ac *AppCreate) AddAppPackageIDs(ids ...model.InternalID) *AppCreate
AddAppPackageIDs adds the "app_package" edge to the AppPackage entity by IDs.
func (*AppCreate) AddUserIDs ¶ added in v0.0.6
func (ac *AppCreate) AddUserIDs(ids ...model.InternalID) *AppCreate
AddUserIDs adds the "user" edge to the User entity by IDs.
func (*AppCreate) Mutation ¶
func (ac *AppCreate) Mutation() *AppMutation
Mutation returns the AppMutation object of the builder.
func (*AppCreate) OnConflict ¶ added in v0.0.2
func (ac *AppCreate) OnConflict(opts ...sql.ConflictOption) *AppUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.App.Create(). SetSource(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.AppUpsert) { SetSource(v+v). }). Exec(ctx)
func (*AppCreate) OnConflictColumns ¶ added in v0.0.2
func (ac *AppCreate) OnConflictColumns(columns ...string) *AppUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.App.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*AppCreate) SetCreatedAt ¶
SetCreatedAt sets the "created_at" field.
func (*AppCreate) SetDescription ¶
SetDescription sets the "description" field.
func (*AppCreate) SetDeveloper ¶
SetDeveloper sets the "developer" field.
func (*AppCreate) SetID ¶ added in v0.0.6
func (ac *AppCreate) SetID(mi model.InternalID) *AppCreate
SetID sets the "id" field.
func (*AppCreate) SetImageURL ¶
SetImageURL sets the "image_url" field.
func (*AppCreate) SetNillableCreatedAt ¶
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AppCreate) SetNillableUpdatedAt ¶ added in v0.0.5
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AppCreate) SetPublisher ¶
SetPublisher sets the "publisher" field.
func (*AppCreate) SetReleaseDate ¶
SetReleaseDate sets the "release_date" field.
func (*AppCreate) SetShortDescription ¶
SetShortDescription sets the "short_description" field.
func (*AppCreate) SetSourceAppID ¶
SetSourceAppID sets the "source_app_id" field.
func (*AppCreate) SetSourceURL ¶
SetSourceURL sets the "source_url" field.
func (*AppCreate) SetUpdatedAt ¶ added in v0.0.5
SetUpdatedAt sets the "updated_at" field.
func (*AppCreate) SetVersion ¶ added in v0.0.5
SetVersion sets the "version" field.
type AppCreateBulk ¶
type AppCreateBulk struct {
// contains filtered or unexported fields
}
AppCreateBulk is the builder for creating many App entities in bulk.
func (*AppCreateBulk) Exec ¶
func (acb *AppCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AppCreateBulk) ExecX ¶
func (acb *AppCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppCreateBulk) OnConflict ¶ added in v0.0.2
func (acb *AppCreateBulk) OnConflict(opts ...sql.ConflictOption) *AppUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.App.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.AppUpsert) { SetSource(v+v). }). Exec(ctx)
func (*AppCreateBulk) OnConflictColumns ¶ added in v0.0.2
func (acb *AppCreateBulk) OnConflictColumns(columns ...string) *AppUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.App.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type AppDelete ¶
type AppDelete struct {
// contains filtered or unexported fields
}
AppDelete is the builder for deleting a App entity.
func (*AppDelete) Exec ¶
Exec executes the deletion query and returns how many vertices were deleted.
type AppDeleteOne ¶
type AppDeleteOne struct {
// contains filtered or unexported fields
}
AppDeleteOne is the builder for deleting a single App entity.
func (*AppDeleteOne) Exec ¶
func (ado *AppDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AppDeleteOne) ExecX ¶
func (ado *AppDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppDeleteOne) Where ¶ added in v0.0.4
func (ado *AppDeleteOne) Where(ps ...predicate.App) *AppDeleteOne
Where appends a list predicates to the AppDelete builder.
type AppEdges ¶ added in v0.0.6
type AppEdges struct { // User holds the value of the user edge. User []*User `json:"user,omitempty"` // AppPackage holds the value of the app_package edge. AppPackage []*AppPackage `json:"app_package,omitempty"` // contains filtered or unexported fields }
AppEdges holds the relations/edges for other nodes in the graph.
func (AppEdges) AppPackageOrErr ¶ added in v0.0.6
func (e AppEdges) AppPackageOrErr() ([]*AppPackage, error)
AppPackageOrErr returns the AppPackage value or an error if the edge was not loaded in eager-loading.
type AppGroupBy ¶
type AppGroupBy struct {
// contains filtered or unexported fields
}
AppGroupBy is the group-by builder for App entities.
func (*AppGroupBy) Aggregate ¶
func (agb *AppGroupBy) Aggregate(fns ...AggregateFunc) *AppGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AppGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AppGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AppGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AppGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AppGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AppGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AppGroupBy) Scan ¶
func (agb *AppGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AppGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AppMutation ¶
type AppMutation struct {
// contains filtered or unexported fields
}
AppMutation represents an operation that mutates the App nodes in the graph.
func (*AppMutation) AddAppPackageIDs ¶ added in v0.0.6
func (m *AppMutation) AddAppPackageIDs(ids ...model.InternalID)
AddAppPackageIDs adds the "app_package" edge to the AppPackage entity by ids.
func (*AppMutation) AddField ¶
func (m *AppMutation) 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 (*AppMutation) AddUserIDs ¶ added in v0.0.6
func (m *AppMutation) AddUserIDs(ids ...model.InternalID)
AddUserIDs adds the "user" edge to the User entity by ids.
func (*AppMutation) AddedEdges ¶
func (m *AppMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AppMutation) AddedField ¶
func (m *AppMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was 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 (*AppMutation) AddedFields ¶
func (m *AppMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AppMutation) AddedIDs ¶
func (m *AppMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AppMutation) AppPackageCleared ¶ added in v0.0.6
func (m *AppMutation) AppPackageCleared() bool
AppPackageCleared reports if the "app_package" edge to the AppPackage entity was cleared.
func (*AppMutation) AppPackageIDs ¶ added in v0.0.6
func (m *AppMutation) AppPackageIDs() (ids []model.InternalID)
AppPackageIDs returns the "app_package" edge IDs in the mutation.
func (*AppMutation) ClearAppPackage ¶ added in v0.0.6
func (m *AppMutation) ClearAppPackage()
ClearAppPackage clears the "app_package" edge to the AppPackage entity.
func (*AppMutation) ClearEdge ¶
func (m *AppMutation) 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 (*AppMutation) ClearField ¶
func (m *AppMutation) 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 (*AppMutation) ClearUser ¶ added in v0.0.6
func (m *AppMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*AppMutation) ClearedEdges ¶
func (m *AppMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AppMutation) ClearedFields ¶
func (m *AppMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AppMutation) Client ¶
func (m AppMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*AppMutation) CreatedAt ¶
func (m *AppMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*AppMutation) Description ¶
func (m *AppMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*AppMutation) Developer ¶
func (m *AppMutation) Developer() (r string, exists bool)
Developer returns the value of the "developer" field in the mutation.
func (*AppMutation) EdgeCleared ¶
func (m *AppMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AppMutation) Field ¶
func (m *AppMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AppMutation) FieldCleared ¶
func (m *AppMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AppMutation) Fields ¶
func (m *AppMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*AppMutation) GetType ¶
func (m *AppMutation) GetType() (r app.Type, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*AppMutation) ID ¶
func (m *AppMutation) ID() (id model.InternalID, 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 (*AppMutation) IDs ¶
func (m *AppMutation) IDs(ctx context.Context) ([]model.InternalID, 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 (*AppMutation) ImageURL ¶
func (m *AppMutation) ImageURL() (r string, exists bool)
ImageURL returns the value of the "image_url" field in the mutation.
func (*AppMutation) Name ¶
func (m *AppMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*AppMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldDescription ¶
func (m *AppMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldDeveloper ¶
func (m *AppMutation) OldDeveloper(ctx context.Context) (v string, err error)
OldDeveloper returns the old "developer" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*AppMutation) OldImageURL ¶
func (m *AppMutation) OldImageURL(ctx context.Context) (v string, err error)
OldImageURL returns the old "image_url" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldName ¶
func (m *AppMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldPublisher ¶
func (m *AppMutation) OldPublisher(ctx context.Context) (v string, err error)
OldPublisher returns the old "publisher" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldReleaseDate ¶
func (m *AppMutation) OldReleaseDate(ctx context.Context) (v string, err error)
OldReleaseDate returns the old "release_date" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldShortDescription ¶
func (m *AppMutation) OldShortDescription(ctx context.Context) (v string, err error)
OldShortDescription returns the old "short_description" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldSource ¶
OldSource returns the old "source" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldSourceAppID ¶
func (m *AppMutation) OldSourceAppID(ctx context.Context) (v string, err error)
OldSourceAppID returns the old "source_app_id" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldSourceURL ¶
func (m *AppMutation) OldSourceURL(ctx context.Context) (v string, err error)
OldSourceURL returns the old "source_url" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldType ¶
OldType returns the old "type" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldUpdatedAt ¶ added in v0.0.5
OldUpdatedAt returns the old "updated_at" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) OldVersion ¶ added in v0.0.5
func (m *AppMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old "version" field's value of the App entity. If the App object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppMutation) Publisher ¶
func (m *AppMutation) Publisher() (r string, exists bool)
Publisher returns the value of the "publisher" field in the mutation.
func (*AppMutation) ReleaseDate ¶
func (m *AppMutation) ReleaseDate() (r string, exists bool)
ReleaseDate returns the value of the "release_date" field in the mutation.
func (*AppMutation) RemoveAppPackageIDs ¶ added in v0.0.6
func (m *AppMutation) RemoveAppPackageIDs(ids ...model.InternalID)
RemoveAppPackageIDs removes the "app_package" edge to the AppPackage entity by IDs.
func (*AppMutation) RemoveUserIDs ¶ added in v0.0.6
func (m *AppMutation) RemoveUserIDs(ids ...model.InternalID)
RemoveUserIDs removes the "user" edge to the User entity by IDs.
func (*AppMutation) RemovedAppPackageIDs ¶ added in v0.0.6
func (m *AppMutation) RemovedAppPackageIDs() (ids []model.InternalID)
RemovedAppPackage returns the removed IDs of the "app_package" edge to the AppPackage entity.
func (*AppMutation) RemovedEdges ¶
func (m *AppMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AppMutation) RemovedIDs ¶
func (m *AppMutation) 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 (*AppMutation) RemovedUserIDs ¶ added in v0.0.6
func (m *AppMutation) RemovedUserIDs() (ids []model.InternalID)
RemovedUser returns the removed IDs of the "user" edge to the User entity.
func (*AppMutation) ResetAppPackage ¶ added in v0.0.6
func (m *AppMutation) ResetAppPackage()
ResetAppPackage resets all changes to the "app_package" edge.
func (*AppMutation) ResetCreatedAt ¶
func (m *AppMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*AppMutation) ResetDescription ¶
func (m *AppMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*AppMutation) ResetDeveloper ¶
func (m *AppMutation) ResetDeveloper()
ResetDeveloper resets all changes to the "developer" field.
func (*AppMutation) ResetEdge ¶
func (m *AppMutation) 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 (*AppMutation) ResetField ¶
func (m *AppMutation) 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 (*AppMutation) ResetImageURL ¶
func (m *AppMutation) ResetImageURL()
ResetImageURL resets all changes to the "image_url" field.
func (*AppMutation) ResetName ¶
func (m *AppMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*AppMutation) ResetPublisher ¶
func (m *AppMutation) ResetPublisher()
ResetPublisher resets all changes to the "publisher" field.
func (*AppMutation) ResetReleaseDate ¶
func (m *AppMutation) ResetReleaseDate()
ResetReleaseDate resets all changes to the "release_date" field.
func (*AppMutation) ResetShortDescription ¶
func (m *AppMutation) ResetShortDescription()
ResetShortDescription resets all changes to the "short_description" field.
func (*AppMutation) ResetSource ¶
func (m *AppMutation) ResetSource()
ResetSource resets all changes to the "source" field.
func (*AppMutation) ResetSourceAppID ¶
func (m *AppMutation) ResetSourceAppID()
ResetSourceAppID resets all changes to the "source_app_id" field.
func (*AppMutation) ResetSourceURL ¶
func (m *AppMutation) ResetSourceURL()
ResetSourceURL resets all changes to the "source_url" field.
func (*AppMutation) ResetType ¶
func (m *AppMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*AppMutation) ResetUpdatedAt ¶ added in v0.0.5
func (m *AppMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*AppMutation) ResetUser ¶ added in v0.0.6
func (m *AppMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*AppMutation) ResetVersion ¶ added in v0.0.5
func (m *AppMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*AppMutation) SetCreatedAt ¶
func (m *AppMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*AppMutation) SetDescription ¶
func (m *AppMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*AppMutation) SetDeveloper ¶
func (m *AppMutation) SetDeveloper(s string)
SetDeveloper sets the "developer" field.
func (*AppMutation) SetField ¶
func (m *AppMutation) 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 (*AppMutation) SetID ¶ added in v0.0.6
func (m *AppMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of App entities.
func (*AppMutation) SetImageURL ¶
func (m *AppMutation) SetImageURL(s string)
SetImageURL sets the "image_url" field.
func (*AppMutation) SetName ¶
func (m *AppMutation) SetName(s string)
SetName sets the "name" field.
func (*AppMutation) SetOp ¶ added in v0.0.4
func (m *AppMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AppMutation) SetPublisher ¶
func (m *AppMutation) SetPublisher(s string)
SetPublisher sets the "publisher" field.
func (*AppMutation) SetReleaseDate ¶
func (m *AppMutation) SetReleaseDate(s string)
SetReleaseDate sets the "release_date" field.
func (*AppMutation) SetShortDescription ¶
func (m *AppMutation) SetShortDescription(s string)
SetShortDescription sets the "short_description" field.
func (*AppMutation) SetSource ¶
func (m *AppMutation) SetSource(a app.Source)
SetSource sets the "source" field.
func (*AppMutation) SetSourceAppID ¶
func (m *AppMutation) SetSourceAppID(s string)
SetSourceAppID sets the "source_app_id" field.
func (*AppMutation) SetSourceURL ¶
func (m *AppMutation) SetSourceURL(s string)
SetSourceURL sets the "source_url" field.
func (*AppMutation) SetType ¶
func (m *AppMutation) SetType(a app.Type)
SetType sets the "type" field.
func (*AppMutation) SetUpdatedAt ¶ added in v0.0.5
func (m *AppMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*AppMutation) SetVersion ¶ added in v0.0.5
func (m *AppMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*AppMutation) ShortDescription ¶
func (m *AppMutation) ShortDescription() (r string, exists bool)
ShortDescription returns the value of the "short_description" field in the mutation.
func (*AppMutation) Source ¶
func (m *AppMutation) Source() (r app.Source, exists bool)
Source returns the value of the "source" field in the mutation.
func (*AppMutation) SourceAppID ¶
func (m *AppMutation) SourceAppID() (r string, exists bool)
SourceAppID returns the value of the "source_app_id" field in the mutation.
func (*AppMutation) SourceURL ¶
func (m *AppMutation) SourceURL() (r string, exists bool)
SourceURL returns the value of the "source_url" field in the mutation.
func (AppMutation) Tx ¶
func (m AppMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AppMutation) Type ¶
func (m *AppMutation) Type() string
Type returns the node type of this mutation (App).
func (*AppMutation) UpdatedAt ¶ added in v0.0.5
func (m *AppMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*AppMutation) UserCleared ¶ added in v0.0.6
func (m *AppMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*AppMutation) UserIDs ¶ added in v0.0.6
func (m *AppMutation) UserIDs() (ids []model.InternalID)
UserIDs returns the "user" edge IDs in the mutation.
func (*AppMutation) Version ¶ added in v0.0.5
func (m *AppMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
func (*AppMutation) Where ¶
func (m *AppMutation) Where(ps ...predicate.App)
Where appends a list predicates to the AppMutation builder.
func (*AppMutation) WhereP ¶ added in v0.0.4
func (m *AppMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AppMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type AppPackage ¶ added in v0.0.4
type AppPackage struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // Source holds the value of the "source" field. Source apppackage.Source `json:"source,omitempty"` // SourceID holds the value of the "source_id" field. SourceID model.InternalID `json:"source_id,omitempty"` // SourcePackageID holds the value of the "source_package_id" field. SourcePackageID string `json:"source_package_id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // BinaryName holds the value of the "binary_name" field. BinaryName string `json:"binary_name,omitempty"` // BinarySize holds the value of the "binary_size" field. BinarySize int64 `json:"binary_size,omitempty"` // BinaryPublicURL holds the value of the "binary_public_url" field. BinaryPublicURL string `json:"binary_public_url,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the AppPackageQuery when eager-loading is set. Edges AppPackageEdges `json:"edges"` // contains filtered or unexported fields }
AppPackage is the model entity for the AppPackage schema.
func (*AppPackage) QueryApp ¶ added in v0.0.6
func (ap *AppPackage) QueryApp() *AppQuery
QueryApp queries the "app" edge of the AppPackage entity.
func (*AppPackage) String ¶ added in v0.0.4
func (ap *AppPackage) String() string
String implements the fmt.Stringer.
func (*AppPackage) Unwrap ¶ added in v0.0.4
func (ap *AppPackage) Unwrap() *AppPackage
Unwrap unwraps the AppPackage 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 (*AppPackage) Update ¶ added in v0.0.4
func (ap *AppPackage) Update() *AppPackageUpdateOne
Update returns a builder for updating this AppPackage. Note that you need to call AppPackage.Unwrap() before calling this method if this AppPackage was returned from a transaction, and the transaction was committed or rolled back.
type AppPackageClient ¶ added in v0.0.4
type AppPackageClient struct {
// contains filtered or unexported fields
}
AppPackageClient is a client for the AppPackage schema.
func NewAppPackageClient ¶ added in v0.0.4
func NewAppPackageClient(c config) *AppPackageClient
NewAppPackageClient returns a client for the AppPackage from the given config.
func (*AppPackageClient) Create ¶ added in v0.0.4
func (c *AppPackageClient) Create() *AppPackageCreate
Create returns a builder for creating a AppPackage entity.
func (*AppPackageClient) CreateBulk ¶ added in v0.0.4
func (c *AppPackageClient) CreateBulk(builders ...*AppPackageCreate) *AppPackageCreateBulk
CreateBulk returns a builder for creating a bulk of AppPackage entities.
func (*AppPackageClient) Delete ¶ added in v0.0.4
func (c *AppPackageClient) Delete() *AppPackageDelete
Delete returns a delete builder for AppPackage.
func (*AppPackageClient) DeleteOne ¶ added in v0.0.4
func (c *AppPackageClient) DeleteOne(ap *AppPackage) *AppPackageDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AppPackageClient) DeleteOneID ¶ added in v0.0.4
func (c *AppPackageClient) DeleteOneID(id model.InternalID) *AppPackageDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AppPackageClient) Get ¶ added in v0.0.4
func (c *AppPackageClient) Get(ctx context.Context, id model.InternalID) (*AppPackage, error)
Get returns a AppPackage entity by its id.
func (*AppPackageClient) GetX ¶ added in v0.0.4
func (c *AppPackageClient) GetX(ctx context.Context, id model.InternalID) *AppPackage
GetX is like Get, but panics if an error occurs.
func (*AppPackageClient) Hooks ¶ added in v0.0.4
func (c *AppPackageClient) Hooks() []Hook
Hooks returns the client hooks.
func (*AppPackageClient) Intercept ¶ added in v0.0.4
func (c *AppPackageClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `apppackage.Intercept(f(g(h())))`.
func (*AppPackageClient) Interceptors ¶ added in v0.0.4
func (c *AppPackageClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AppPackageClient) Query ¶ added in v0.0.4
func (c *AppPackageClient) Query() *AppPackageQuery
Query returns a query builder for AppPackage.
func (*AppPackageClient) QueryApp ¶ added in v0.0.6
func (c *AppPackageClient) QueryApp(ap *AppPackage) *AppQuery
QueryApp queries the app edge of a AppPackage.
func (*AppPackageClient) Update ¶ added in v0.0.4
func (c *AppPackageClient) Update() *AppPackageUpdate
Update returns an update builder for AppPackage.
func (*AppPackageClient) UpdateOne ¶ added in v0.0.4
func (c *AppPackageClient) UpdateOne(ap *AppPackage) *AppPackageUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AppPackageClient) UpdateOneID ¶ added in v0.0.4
func (c *AppPackageClient) UpdateOneID(id model.InternalID) *AppPackageUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AppPackageClient) Use ¶ added in v0.0.4
func (c *AppPackageClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `apppackage.Hooks(f(g(h())))`.
type AppPackageCreate ¶ added in v0.0.4
type AppPackageCreate struct {
// contains filtered or unexported fields
}
AppPackageCreate is the builder for creating a AppPackage entity.
func (*AppPackageCreate) Exec ¶ added in v0.0.4
func (apc *AppPackageCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AppPackageCreate) ExecX ¶ added in v0.0.4
func (apc *AppPackageCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageCreate) Mutation ¶ added in v0.0.4
func (apc *AppPackageCreate) Mutation() *AppPackageMutation
Mutation returns the AppPackageMutation object of the builder.
func (*AppPackageCreate) OnConflict ¶ added in v0.0.4
func (apc *AppPackageCreate) OnConflict(opts ...sql.ConflictOption) *AppPackageUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.AppPackage.Create(). SetSource(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.AppPackageUpsert) { SetSource(v+v). }). Exec(ctx)
func (*AppPackageCreate) OnConflictColumns ¶ added in v0.0.4
func (apc *AppPackageCreate) OnConflictColumns(columns ...string) *AppPackageUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.AppPackage.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*AppPackageCreate) Save ¶ added in v0.0.4
func (apc *AppPackageCreate) Save(ctx context.Context) (*AppPackage, error)
Save creates the AppPackage in the database.
func (*AppPackageCreate) SaveX ¶ added in v0.0.4
func (apc *AppPackageCreate) SaveX(ctx context.Context) *AppPackage
SaveX calls Save and panics if Save returns an error.
func (*AppPackageCreate) SetApp ¶ added in v0.0.6
func (apc *AppPackageCreate) SetApp(a *App) *AppPackageCreate
SetApp sets the "app" edge to the App entity.
func (*AppPackageCreate) SetAppID ¶ added in v0.0.6
func (apc *AppPackageCreate) SetAppID(id model.InternalID) *AppPackageCreate
SetAppID sets the "app" edge to the App entity by ID.
func (*AppPackageCreate) SetBinaryName ¶ added in v0.0.4
func (apc *AppPackageCreate) SetBinaryName(s string) *AppPackageCreate
SetBinaryName sets the "binary_name" field.
func (*AppPackageCreate) SetBinaryPublicURL ¶ added in v0.0.5
func (apc *AppPackageCreate) SetBinaryPublicURL(s string) *AppPackageCreate
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageCreate) SetBinarySize ¶ added in v0.0.4
func (apc *AppPackageCreate) SetBinarySize(i int64) *AppPackageCreate
SetBinarySize sets the "binary_size" field.
func (*AppPackageCreate) SetCreatedAt ¶ added in v0.0.4
func (apc *AppPackageCreate) SetCreatedAt(t time.Time) *AppPackageCreate
SetCreatedAt sets the "created_at" field.
func (*AppPackageCreate) SetDescription ¶ added in v0.0.4
func (apc *AppPackageCreate) SetDescription(s string) *AppPackageCreate
SetDescription sets the "description" field.
func (*AppPackageCreate) SetID ¶ added in v0.0.6
func (apc *AppPackageCreate) SetID(mi model.InternalID) *AppPackageCreate
SetID sets the "id" field.
func (*AppPackageCreate) SetName ¶ added in v0.0.4
func (apc *AppPackageCreate) SetName(s string) *AppPackageCreate
SetName sets the "name" field.
func (*AppPackageCreate) SetNillableAppID ¶ added in v0.0.6
func (apc *AppPackageCreate) SetNillableAppID(id *model.InternalID) *AppPackageCreate
SetNillableAppID sets the "app" edge to the App entity by ID if the given value is not nil.
func (*AppPackageCreate) SetNillableCreatedAt ¶ added in v0.0.4
func (apc *AppPackageCreate) SetNillableCreatedAt(t *time.Time) *AppPackageCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AppPackageCreate) SetNillableUpdatedAt ¶ added in v0.0.5
func (apc *AppPackageCreate) SetNillableUpdatedAt(t *time.Time) *AppPackageCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AppPackageCreate) SetSource ¶ added in v0.0.4
func (apc *AppPackageCreate) SetSource(a apppackage.Source) *AppPackageCreate
SetSource sets the "source" field.
func (*AppPackageCreate) SetSourceID ¶ added in v0.0.4
func (apc *AppPackageCreate) SetSourceID(mi model.InternalID) *AppPackageCreate
SetSourceID sets the "source_id" field.
func (*AppPackageCreate) SetSourcePackageID ¶ added in v0.0.4
func (apc *AppPackageCreate) SetSourcePackageID(s string) *AppPackageCreate
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageCreate) SetUpdatedAt ¶ added in v0.0.4
func (apc *AppPackageCreate) SetUpdatedAt(t time.Time) *AppPackageCreate
SetUpdatedAt sets the "updated_at" field.
type AppPackageCreateBulk ¶ added in v0.0.4
type AppPackageCreateBulk struct {
// contains filtered or unexported fields
}
AppPackageCreateBulk is the builder for creating many AppPackage entities in bulk.
func (*AppPackageCreateBulk) Exec ¶ added in v0.0.4
func (apcb *AppPackageCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AppPackageCreateBulk) ExecX ¶ added in v0.0.4
func (apcb *AppPackageCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageCreateBulk) OnConflict ¶ added in v0.0.4
func (apcb *AppPackageCreateBulk) OnConflict(opts ...sql.ConflictOption) *AppPackageUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.AppPackage.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.AppPackageUpsert) { SetSource(v+v). }). Exec(ctx)
func (*AppPackageCreateBulk) OnConflictColumns ¶ added in v0.0.4
func (apcb *AppPackageCreateBulk) OnConflictColumns(columns ...string) *AppPackageUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.AppPackage.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*AppPackageCreateBulk) Save ¶ added in v0.0.4
func (apcb *AppPackageCreateBulk) Save(ctx context.Context) ([]*AppPackage, error)
Save creates the AppPackage entities in the database.
func (*AppPackageCreateBulk) SaveX ¶ added in v0.0.4
func (apcb *AppPackageCreateBulk) SaveX(ctx context.Context) []*AppPackage
SaveX is like Save, but panics if an error occurs.
type AppPackageDelete ¶ added in v0.0.4
type AppPackageDelete struct {
// contains filtered or unexported fields
}
AppPackageDelete is the builder for deleting a AppPackage entity.
func (*AppPackageDelete) Exec ¶ added in v0.0.4
func (apd *AppPackageDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AppPackageDelete) ExecX ¶ added in v0.0.4
func (apd *AppPackageDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageDelete) Where ¶ added in v0.0.4
func (apd *AppPackageDelete) Where(ps ...predicate.AppPackage) *AppPackageDelete
Where appends a list predicates to the AppPackageDelete builder.
type AppPackageDeleteOne ¶ added in v0.0.4
type AppPackageDeleteOne struct {
// contains filtered or unexported fields
}
AppPackageDeleteOne is the builder for deleting a single AppPackage entity.
func (*AppPackageDeleteOne) Exec ¶ added in v0.0.4
func (apdo *AppPackageDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AppPackageDeleteOne) ExecX ¶ added in v0.0.4
func (apdo *AppPackageDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageDeleteOne) Where ¶ added in v0.0.4
func (apdo *AppPackageDeleteOne) Where(ps ...predicate.AppPackage) *AppPackageDeleteOne
Where appends a list predicates to the AppPackageDelete builder.
type AppPackageEdges ¶ added in v0.0.6
type AppPackageEdges struct { // App holds the value of the app edge. App *App `json:"app,omitempty"` // contains filtered or unexported fields }
AppPackageEdges holds the relations/edges for other nodes in the graph.
func (AppPackageEdges) AppOrErr ¶ added in v0.0.6
func (e AppPackageEdges) AppOrErr() (*App, error)
AppOrErr returns the App value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type AppPackageGroupBy ¶ added in v0.0.4
type AppPackageGroupBy struct {
// contains filtered or unexported fields
}
AppPackageGroupBy is the group-by builder for AppPackage entities.
func (*AppPackageGroupBy) Aggregate ¶ added in v0.0.4
func (apgb *AppPackageGroupBy) Aggregate(fns ...AggregateFunc) *AppPackageGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AppPackageGroupBy) Bool ¶ added in v0.0.4
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) BoolX ¶ added in v0.0.4
BoolX is like Bool, but panics if an error occurs.
func (*AppPackageGroupBy) Bools ¶ added in v0.0.4
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) BoolsX ¶ added in v0.0.4
BoolsX is like Bools, but panics if an error occurs.
func (*AppPackageGroupBy) Float64 ¶ added in v0.0.4
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) Float64X ¶ added in v0.0.4
Float64X is like Float64, but panics if an error occurs.
func (*AppPackageGroupBy) Float64s ¶ added in v0.0.4
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) Float64sX ¶ added in v0.0.4
Float64sX is like Float64s, but panics if an error occurs.
func (*AppPackageGroupBy) Int ¶ added in v0.0.4
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) Ints ¶ added in v0.0.4
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) IntsX ¶ added in v0.0.4
IntsX is like Ints, but panics if an error occurs.
func (*AppPackageGroupBy) Scan ¶ added in v0.0.4
func (apgb *AppPackageGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AppPackageGroupBy) ScanX ¶ added in v0.0.4
ScanX is like Scan, but panics if an error occurs.
func (*AppPackageGroupBy) String ¶ added in v0.0.4
String returns a single string from a selector. It is only allowed when selecting one field.
func (*AppPackageGroupBy) StringX ¶ added in v0.0.4
StringX is like String, but panics if an error occurs.
type AppPackageMutation ¶ added in v0.0.4
type AppPackageMutation struct {
// contains filtered or unexported fields
}
AppPackageMutation represents an operation that mutates the AppPackage nodes in the graph.
func (*AppPackageMutation) AddBinarySize ¶ added in v0.0.5
func (m *AppPackageMutation) AddBinarySize(i int64)
AddBinarySize adds i to the "binary_size" field.
func (*AppPackageMutation) AddField ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) AddSourceID ¶ added in v0.0.4
func (m *AppPackageMutation) AddSourceID(mi model.InternalID)
AddSourceID adds mi to the "source_id" field.
func (*AppPackageMutation) AddedBinarySize ¶ added in v0.0.5
func (m *AppPackageMutation) AddedBinarySize() (r int64, exists bool)
AddedBinarySize returns the value that was added to the "binary_size" field in this mutation.
func (*AppPackageMutation) AddedEdges ¶ added in v0.0.4
func (m *AppPackageMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AppPackageMutation) AddedField ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) AddedFields ¶ added in v0.0.4
func (m *AppPackageMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AppPackageMutation) AddedIDs ¶ added in v0.0.4
func (m *AppPackageMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AppPackageMutation) AddedSourceID ¶ added in v0.0.4
func (m *AppPackageMutation) AddedSourceID() (r model.InternalID, exists bool)
AddedSourceID returns the value that was added to the "source_id" field in this mutation.
func (*AppPackageMutation) AppCleared ¶ added in v0.0.6
func (m *AppPackageMutation) AppCleared() bool
AppCleared reports if the "app" edge to the App entity was cleared.
func (*AppPackageMutation) AppID ¶ added in v0.0.6
func (m *AppPackageMutation) AppID() (id model.InternalID, exists bool)
AppID returns the "app" edge ID in the mutation.
func (*AppPackageMutation) AppIDs ¶ added in v0.0.6
func (m *AppPackageMutation) AppIDs() (ids []model.InternalID)
AppIDs returns the "app" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AppID instead. It exists only for internal usage by the builders.
func (*AppPackageMutation) BinaryName ¶ added in v0.0.4
func (m *AppPackageMutation) BinaryName() (r string, exists bool)
BinaryName returns the value of the "binary_name" field in the mutation.
func (*AppPackageMutation) BinaryPublicURL ¶ added in v0.0.5
func (m *AppPackageMutation) BinaryPublicURL() (r string, exists bool)
BinaryPublicURL returns the value of the "binary_public_url" field in the mutation.
func (*AppPackageMutation) BinarySize ¶ added in v0.0.4
func (m *AppPackageMutation) BinarySize() (r int64, exists bool)
BinarySize returns the value of the "binary_size" field in the mutation.
func (*AppPackageMutation) ClearApp ¶ added in v0.0.6
func (m *AppPackageMutation) ClearApp()
ClearApp clears the "app" edge to the App entity.
func (*AppPackageMutation) ClearEdge ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) ClearField ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) ClearedEdges ¶ added in v0.0.4
func (m *AppPackageMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AppPackageMutation) ClearedFields ¶ added in v0.0.4
func (m *AppPackageMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AppPackageMutation) Client ¶ added in v0.0.4
func (m AppPackageMutation) 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 (*AppPackageMutation) CreatedAt ¶ added in v0.0.4
func (m *AppPackageMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*AppPackageMutation) Description ¶ added in v0.0.4
func (m *AppPackageMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*AppPackageMutation) EdgeCleared ¶ added in v0.0.4
func (m *AppPackageMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AppPackageMutation) Field ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) FieldCleared ¶ added in v0.0.4
func (m *AppPackageMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AppPackageMutation) Fields ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) ID ¶ added in v0.0.4
func (m *AppPackageMutation) ID() (id model.InternalID, 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 (*AppPackageMutation) IDs ¶ added in v0.0.4
func (m *AppPackageMutation) IDs(ctx context.Context) ([]model.InternalID, 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 (*AppPackageMutation) Name ¶ added in v0.0.4
func (m *AppPackageMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*AppPackageMutation) OldBinaryName ¶ added in v0.0.4
func (m *AppPackageMutation) OldBinaryName(ctx context.Context) (v string, err error)
OldBinaryName returns the old "binary_name" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldBinaryPublicURL ¶ added in v0.0.5
func (m *AppPackageMutation) OldBinaryPublicURL(ctx context.Context) (v string, err error)
OldBinaryPublicURL returns the old "binary_public_url" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldBinarySize ¶ added in v0.0.4
func (m *AppPackageMutation) OldBinarySize(ctx context.Context) (v int64, err error)
OldBinarySize returns the old "binary_size" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldCreatedAt ¶ added in v0.0.4
OldCreatedAt returns the old "created_at" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldDescription ¶ added in v0.0.4
func (m *AppPackageMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldField ¶ added in v0.0.4
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 (*AppPackageMutation) OldName ¶ added in v0.0.4
func (m *AppPackageMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldSource ¶ added in v0.0.4
func (m *AppPackageMutation) OldSource(ctx context.Context) (v apppackage.Source, err error)
OldSource returns the old "source" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldSourceID ¶ added in v0.0.4
func (m *AppPackageMutation) OldSourceID(ctx context.Context) (v model.InternalID, err error)
OldSourceID returns the old "source_id" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldSourcePackageID ¶ added in v0.0.4
func (m *AppPackageMutation) OldSourcePackageID(ctx context.Context) (v string, err error)
OldSourcePackageID returns the old "source_package_id" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) OldUpdatedAt ¶ added in v0.0.4
OldUpdatedAt returns the old "updated_at" field's value of the AppPackage entity. If the AppPackage object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AppPackageMutation) Op ¶ added in v0.0.4
func (m *AppPackageMutation) Op() Op
Op returns the operation name.
func (*AppPackageMutation) RemovedEdges ¶ added in v0.0.4
func (m *AppPackageMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AppPackageMutation) RemovedIDs ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) ResetApp ¶ added in v0.0.6
func (m *AppPackageMutation) ResetApp()
ResetApp resets all changes to the "app" edge.
func (*AppPackageMutation) ResetBinaryName ¶ added in v0.0.4
func (m *AppPackageMutation) ResetBinaryName()
ResetBinaryName resets all changes to the "binary_name" field.
func (*AppPackageMutation) ResetBinaryPublicURL ¶ added in v0.0.5
func (m *AppPackageMutation) ResetBinaryPublicURL()
ResetBinaryPublicURL resets all changes to the "binary_public_url" field.
func (*AppPackageMutation) ResetBinarySize ¶ added in v0.0.4
func (m *AppPackageMutation) ResetBinarySize()
ResetBinarySize resets all changes to the "binary_size" field.
func (*AppPackageMutation) ResetCreatedAt ¶ added in v0.0.4
func (m *AppPackageMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*AppPackageMutation) ResetDescription ¶ added in v0.0.4
func (m *AppPackageMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*AppPackageMutation) ResetEdge ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) ResetField ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) ResetName ¶ added in v0.0.4
func (m *AppPackageMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*AppPackageMutation) ResetSource ¶ added in v0.0.4
func (m *AppPackageMutation) ResetSource()
ResetSource resets all changes to the "source" field.
func (*AppPackageMutation) ResetSourceID ¶ added in v0.0.4
func (m *AppPackageMutation) ResetSourceID()
ResetSourceID resets all changes to the "source_id" field.
func (*AppPackageMutation) ResetSourcePackageID ¶ added in v0.0.4
func (m *AppPackageMutation) ResetSourcePackageID()
ResetSourcePackageID resets all changes to the "source_package_id" field.
func (*AppPackageMutation) ResetUpdatedAt ¶ added in v0.0.4
func (m *AppPackageMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*AppPackageMutation) SetAppID ¶ added in v0.0.6
func (m *AppPackageMutation) SetAppID(id model.InternalID)
SetAppID sets the "app" edge to the App entity by id.
func (*AppPackageMutation) SetBinaryName ¶ added in v0.0.4
func (m *AppPackageMutation) SetBinaryName(s string)
SetBinaryName sets the "binary_name" field.
func (*AppPackageMutation) SetBinaryPublicURL ¶ added in v0.0.5
func (m *AppPackageMutation) SetBinaryPublicURL(s string)
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageMutation) SetBinarySize ¶ added in v0.0.4
func (m *AppPackageMutation) SetBinarySize(i int64)
SetBinarySize sets the "binary_size" field.
func (*AppPackageMutation) SetCreatedAt ¶ added in v0.0.4
func (m *AppPackageMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*AppPackageMutation) SetDescription ¶ added in v0.0.4
func (m *AppPackageMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*AppPackageMutation) SetField ¶ added in v0.0.4
func (m *AppPackageMutation) 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 (*AppPackageMutation) SetID ¶ added in v0.0.6
func (m *AppPackageMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of AppPackage entities.
func (*AppPackageMutation) SetName ¶ added in v0.0.4
func (m *AppPackageMutation) SetName(s string)
SetName sets the "name" field.
func (*AppPackageMutation) SetOp ¶ added in v0.0.4
func (m *AppPackageMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AppPackageMutation) SetSource ¶ added in v0.0.4
func (m *AppPackageMutation) SetSource(a apppackage.Source)
SetSource sets the "source" field.
func (*AppPackageMutation) SetSourceID ¶ added in v0.0.4
func (m *AppPackageMutation) SetSourceID(mi model.InternalID)
SetSourceID sets the "source_id" field.
func (*AppPackageMutation) SetSourcePackageID ¶ added in v0.0.4
func (m *AppPackageMutation) SetSourcePackageID(s string)
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageMutation) SetUpdatedAt ¶ added in v0.0.4
func (m *AppPackageMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*AppPackageMutation) Source ¶ added in v0.0.4
func (m *AppPackageMutation) Source() (r apppackage.Source, exists bool)
Source returns the value of the "source" field in the mutation.
func (*AppPackageMutation) SourceID ¶ added in v0.0.4
func (m *AppPackageMutation) SourceID() (r model.InternalID, exists bool)
SourceID returns the value of the "source_id" field in the mutation.
func (*AppPackageMutation) SourcePackageID ¶ added in v0.0.4
func (m *AppPackageMutation) SourcePackageID() (r string, exists bool)
SourcePackageID returns the value of the "source_package_id" field in the mutation.
func (AppPackageMutation) Tx ¶ added in v0.0.4
func (m AppPackageMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AppPackageMutation) Type ¶ added in v0.0.4
func (m *AppPackageMutation) Type() string
Type returns the node type of this mutation (AppPackage).
func (*AppPackageMutation) UpdatedAt ¶ added in v0.0.4
func (m *AppPackageMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*AppPackageMutation) Where ¶ added in v0.0.4
func (m *AppPackageMutation) Where(ps ...predicate.AppPackage)
Where appends a list predicates to the AppPackageMutation builder.
func (*AppPackageMutation) WhereP ¶ added in v0.0.4
func (m *AppPackageMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AppPackageMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type AppPackageQuery ¶ added in v0.0.4
type AppPackageQuery struct {
// contains filtered or unexported fields
}
AppPackageQuery is the builder for querying AppPackage entities.
func (*AppPackageQuery) Aggregate ¶ added in v0.0.4
func (apq *AppPackageQuery) Aggregate(fns ...AggregateFunc) *AppPackageSelect
Aggregate returns a AppPackageSelect configured with the given aggregations.
func (*AppPackageQuery) All ¶ added in v0.0.4
func (apq *AppPackageQuery) All(ctx context.Context) ([]*AppPackage, error)
All executes the query and returns a list of AppPackages.
func (*AppPackageQuery) AllX ¶ added in v0.0.4
func (apq *AppPackageQuery) AllX(ctx context.Context) []*AppPackage
AllX is like All, but panics if an error occurs.
func (*AppPackageQuery) Clone ¶ added in v0.0.4
func (apq *AppPackageQuery) Clone() *AppPackageQuery
Clone returns a duplicate of the AppPackageQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AppPackageQuery) Count ¶ added in v0.0.4
func (apq *AppPackageQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AppPackageQuery) CountX ¶ added in v0.0.4
func (apq *AppPackageQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AppPackageQuery) Exist ¶ added in v0.0.4
func (apq *AppPackageQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AppPackageQuery) ExistX ¶ added in v0.0.4
func (apq *AppPackageQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AppPackageQuery) First ¶ added in v0.0.4
func (apq *AppPackageQuery) First(ctx context.Context) (*AppPackage, error)
First returns the first AppPackage entity from the query. Returns a *NotFoundError when no AppPackage was found.
func (*AppPackageQuery) FirstID ¶ added in v0.0.4
func (apq *AppPackageQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
FirstID returns the first AppPackage ID from the query. Returns a *NotFoundError when no AppPackage ID was found.
func (*AppPackageQuery) FirstIDX ¶ added in v0.0.4
func (apq *AppPackageQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*AppPackageQuery) FirstX ¶ added in v0.0.4
func (apq *AppPackageQuery) FirstX(ctx context.Context) *AppPackage
FirstX is like First, but panics if an error occurs.
func (*AppPackageQuery) GroupBy ¶ added in v0.0.4
func (apq *AppPackageQuery) GroupBy(field string, fields ...string) *AppPackageGroupBy
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 { Source apppackage.Source `json:"source,omitempty"` Count int `json:"count,omitempty"` } client.AppPackage.Query(). GroupBy(apppackage.FieldSource). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AppPackageQuery) IDs ¶ added in v0.0.4
func (apq *AppPackageQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
IDs executes the query and returns a list of AppPackage IDs.
func (*AppPackageQuery) IDsX ¶ added in v0.0.4
func (apq *AppPackageQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*AppPackageQuery) Limit ¶ added in v0.0.4
func (apq *AppPackageQuery) Limit(limit int) *AppPackageQuery
Limit the number of records to be returned by this query.
func (*AppPackageQuery) Offset ¶ added in v0.0.4
func (apq *AppPackageQuery) Offset(offset int) *AppPackageQuery
Offset to start from.
func (*AppPackageQuery) Only ¶ added in v0.0.4
func (apq *AppPackageQuery) Only(ctx context.Context) (*AppPackage, error)
Only returns a single AppPackage entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one AppPackage entity is found. Returns a *NotFoundError when no AppPackage entities are found.
func (*AppPackageQuery) OnlyID ¶ added in v0.0.4
func (apq *AppPackageQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
OnlyID is like Only, but returns the only AppPackage ID in the query. Returns a *NotSingularError when more than one AppPackage ID is found. Returns a *NotFoundError when no entities are found.
func (*AppPackageQuery) OnlyIDX ¶ added in v0.0.4
func (apq *AppPackageQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AppPackageQuery) OnlyX ¶ added in v0.0.4
func (apq *AppPackageQuery) OnlyX(ctx context.Context) *AppPackage
OnlyX is like Only, but panics if an error occurs.
func (*AppPackageQuery) Order ¶ added in v0.0.4
func (apq *AppPackageQuery) Order(o ...OrderFunc) *AppPackageQuery
Order specifies how the records should be ordered.
func (*AppPackageQuery) QueryApp ¶ added in v0.0.6
func (apq *AppPackageQuery) QueryApp() *AppQuery
QueryApp chains the current query on the "app" edge.
func (*AppPackageQuery) Select ¶ added in v0.0.4
func (apq *AppPackageQuery) Select(fields ...string) *AppPackageSelect
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 { Source apppackage.Source `json:"source,omitempty"` } client.AppPackage.Query(). Select(apppackage.FieldSource). Scan(ctx, &v)
func (*AppPackageQuery) Unique ¶ added in v0.0.4
func (apq *AppPackageQuery) Unique(unique bool) *AppPackageQuery
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 (*AppPackageQuery) Where ¶ added in v0.0.4
func (apq *AppPackageQuery) Where(ps ...predicate.AppPackage) *AppPackageQuery
Where adds a new predicate for the AppPackageQuery builder.
func (*AppPackageQuery) WithApp ¶ added in v0.0.6
func (apq *AppPackageQuery) WithApp(opts ...func(*AppQuery)) *AppPackageQuery
WithApp tells the query-builder to eager-load the nodes that are connected to the "app" edge. The optional arguments are used to configure the query builder of the edge.
type AppPackageSelect ¶ added in v0.0.4
type AppPackageSelect struct { *AppPackageQuery // contains filtered or unexported fields }
AppPackageSelect is the builder for selecting fields of AppPackage entities.
func (*AppPackageSelect) Aggregate ¶ added in v0.0.4
func (aps *AppPackageSelect) Aggregate(fns ...AggregateFunc) *AppPackageSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AppPackageSelect) Bool ¶ added in v0.0.4
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) Bools ¶ added in v0.0.4
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) BoolsX ¶ added in v0.0.4
BoolsX is like Bools, but panics if an error occurs.
func (*AppPackageSelect) Float64 ¶ added in v0.0.4
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) Float64X ¶ added in v0.0.4
Float64X is like Float64, but panics if an error occurs.
func (*AppPackageSelect) Float64s ¶ added in v0.0.4
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) Float64sX ¶ added in v0.0.4
Float64sX is like Float64s, but panics if an error occurs.
func (*AppPackageSelect) Int ¶ added in v0.0.4
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) Ints ¶ added in v0.0.4
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) Scan ¶ added in v0.0.4
func (aps *AppPackageSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AppPackageSelect) String ¶ added in v0.0.4
String returns a single string from a selector. It is only allowed when selecting one field.
func (*AppPackageSelect) StringX ¶ added in v0.0.4
StringX is like String, but panics if an error occurs.
type AppPackageUpdate ¶ added in v0.0.4
type AppPackageUpdate struct {
// contains filtered or unexported fields
}
AppPackageUpdate is the builder for updating AppPackage entities.
func (*AppPackageUpdate) AddBinarySize ¶ added in v0.0.5
func (apu *AppPackageUpdate) AddBinarySize(i int64) *AppPackageUpdate
AddBinarySize adds i to the "binary_size" field.
func (*AppPackageUpdate) AddSourceID ¶ added in v0.0.4
func (apu *AppPackageUpdate) AddSourceID(mi model.InternalID) *AppPackageUpdate
AddSourceID adds mi to the "source_id" field.
func (*AppPackageUpdate) ClearApp ¶ added in v0.0.6
func (apu *AppPackageUpdate) ClearApp() *AppPackageUpdate
ClearApp clears the "app" edge to the App entity.
func (*AppPackageUpdate) Exec ¶ added in v0.0.4
func (apu *AppPackageUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AppPackageUpdate) ExecX ¶ added in v0.0.4
func (apu *AppPackageUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageUpdate) Mutation ¶ added in v0.0.4
func (apu *AppPackageUpdate) Mutation() *AppPackageMutation
Mutation returns the AppPackageMutation object of the builder.
func (*AppPackageUpdate) Save ¶ added in v0.0.4
func (apu *AppPackageUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*AppPackageUpdate) SaveX ¶ added in v0.0.4
func (apu *AppPackageUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AppPackageUpdate) SetApp ¶ added in v0.0.6
func (apu *AppPackageUpdate) SetApp(a *App) *AppPackageUpdate
SetApp sets the "app" edge to the App entity.
func (*AppPackageUpdate) SetAppID ¶ added in v0.0.6
func (apu *AppPackageUpdate) SetAppID(id model.InternalID) *AppPackageUpdate
SetAppID sets the "app" edge to the App entity by ID.
func (*AppPackageUpdate) SetBinaryName ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetBinaryName(s string) *AppPackageUpdate
SetBinaryName sets the "binary_name" field.
func (*AppPackageUpdate) SetBinaryPublicURL ¶ added in v0.0.5
func (apu *AppPackageUpdate) SetBinaryPublicURL(s string) *AppPackageUpdate
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageUpdate) SetBinarySize ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetBinarySize(i int64) *AppPackageUpdate
SetBinarySize sets the "binary_size" field.
func (*AppPackageUpdate) SetCreatedAt ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetCreatedAt(t time.Time) *AppPackageUpdate
SetCreatedAt sets the "created_at" field.
func (*AppPackageUpdate) SetDescription ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetDescription(s string) *AppPackageUpdate
SetDescription sets the "description" field.
func (*AppPackageUpdate) SetName ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetName(s string) *AppPackageUpdate
SetName sets the "name" field.
func (*AppPackageUpdate) SetNillableAppID ¶ added in v0.0.6
func (apu *AppPackageUpdate) SetNillableAppID(id *model.InternalID) *AppPackageUpdate
SetNillableAppID sets the "app" edge to the App entity by ID if the given value is not nil.
func (*AppPackageUpdate) SetNillableCreatedAt ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetNillableCreatedAt(t *time.Time) *AppPackageUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AppPackageUpdate) SetSource ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetSource(a apppackage.Source) *AppPackageUpdate
SetSource sets the "source" field.
func (*AppPackageUpdate) SetSourceID ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetSourceID(mi model.InternalID) *AppPackageUpdate
SetSourceID sets the "source_id" field.
func (*AppPackageUpdate) SetSourcePackageID ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetSourcePackageID(s string) *AppPackageUpdate
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageUpdate) SetUpdatedAt ¶ added in v0.0.4
func (apu *AppPackageUpdate) SetUpdatedAt(t time.Time) *AppPackageUpdate
SetUpdatedAt sets the "updated_at" field.
func (*AppPackageUpdate) Where ¶ added in v0.0.4
func (apu *AppPackageUpdate) Where(ps ...predicate.AppPackage) *AppPackageUpdate
Where appends a list predicates to the AppPackageUpdate builder.
type AppPackageUpdateOne ¶ added in v0.0.4
type AppPackageUpdateOne struct {
// contains filtered or unexported fields
}
AppPackageUpdateOne is the builder for updating a single AppPackage entity.
func (*AppPackageUpdateOne) AddBinarySize ¶ added in v0.0.5
func (apuo *AppPackageUpdateOne) AddBinarySize(i int64) *AppPackageUpdateOne
AddBinarySize adds i to the "binary_size" field.
func (*AppPackageUpdateOne) AddSourceID ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) AddSourceID(mi model.InternalID) *AppPackageUpdateOne
AddSourceID adds mi to the "source_id" field.
func (*AppPackageUpdateOne) ClearApp ¶ added in v0.0.6
func (apuo *AppPackageUpdateOne) ClearApp() *AppPackageUpdateOne
ClearApp clears the "app" edge to the App entity.
func (*AppPackageUpdateOne) Exec ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AppPackageUpdateOne) ExecX ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageUpdateOne) Mutation ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) Mutation() *AppPackageMutation
Mutation returns the AppPackageMutation object of the builder.
func (*AppPackageUpdateOne) Save ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) Save(ctx context.Context) (*AppPackage, error)
Save executes the query and returns the updated AppPackage entity.
func (*AppPackageUpdateOne) SaveX ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SaveX(ctx context.Context) *AppPackage
SaveX is like Save, but panics if an error occurs.
func (*AppPackageUpdateOne) Select ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) Select(field string, fields ...string) *AppPackageUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AppPackageUpdateOne) SetApp ¶ added in v0.0.6
func (apuo *AppPackageUpdateOne) SetApp(a *App) *AppPackageUpdateOne
SetApp sets the "app" edge to the App entity.
func (*AppPackageUpdateOne) SetAppID ¶ added in v0.0.6
func (apuo *AppPackageUpdateOne) SetAppID(id model.InternalID) *AppPackageUpdateOne
SetAppID sets the "app" edge to the App entity by ID.
func (*AppPackageUpdateOne) SetBinaryName ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetBinaryName(s string) *AppPackageUpdateOne
SetBinaryName sets the "binary_name" field.
func (*AppPackageUpdateOne) SetBinaryPublicURL ¶ added in v0.0.5
func (apuo *AppPackageUpdateOne) SetBinaryPublicURL(s string) *AppPackageUpdateOne
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageUpdateOne) SetBinarySize ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetBinarySize(i int64) *AppPackageUpdateOne
SetBinarySize sets the "binary_size" field.
func (*AppPackageUpdateOne) SetCreatedAt ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetCreatedAt(t time.Time) *AppPackageUpdateOne
SetCreatedAt sets the "created_at" field.
func (*AppPackageUpdateOne) SetDescription ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetDescription(s string) *AppPackageUpdateOne
SetDescription sets the "description" field.
func (*AppPackageUpdateOne) SetName ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetName(s string) *AppPackageUpdateOne
SetName sets the "name" field.
func (*AppPackageUpdateOne) SetNillableAppID ¶ added in v0.0.6
func (apuo *AppPackageUpdateOne) SetNillableAppID(id *model.InternalID) *AppPackageUpdateOne
SetNillableAppID sets the "app" edge to the App entity by ID if the given value is not nil.
func (*AppPackageUpdateOne) SetNillableCreatedAt ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetNillableCreatedAt(t *time.Time) *AppPackageUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AppPackageUpdateOne) SetSource ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetSource(a apppackage.Source) *AppPackageUpdateOne
SetSource sets the "source" field.
func (*AppPackageUpdateOne) SetSourceID ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetSourceID(mi model.InternalID) *AppPackageUpdateOne
SetSourceID sets the "source_id" field.
func (*AppPackageUpdateOne) SetSourcePackageID ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetSourcePackageID(s string) *AppPackageUpdateOne
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageUpdateOne) SetUpdatedAt ¶ added in v0.0.4
func (apuo *AppPackageUpdateOne) SetUpdatedAt(t time.Time) *AppPackageUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*AppPackageUpdateOne) Where ¶ added in v0.0.5
func (apuo *AppPackageUpdateOne) Where(ps ...predicate.AppPackage) *AppPackageUpdateOne
Where appends a list predicates to the AppPackageUpdate builder.
type AppPackageUpsert ¶ added in v0.0.4
AppPackageUpsert is the "OnConflict" setter.
func (*AppPackageUpsert) AddBinarySize ¶ added in v0.0.5
func (u *AppPackageUpsert) AddBinarySize(v int64) *AppPackageUpsert
AddBinarySize adds v to the "binary_size" field.
func (*AppPackageUpsert) AddSourceID ¶ added in v0.0.4
func (u *AppPackageUpsert) AddSourceID(v model.InternalID) *AppPackageUpsert
AddSourceID adds v to the "source_id" field.
func (*AppPackageUpsert) SetBinaryName ¶ added in v0.0.4
func (u *AppPackageUpsert) SetBinaryName(v string) *AppPackageUpsert
SetBinaryName sets the "binary_name" field.
func (*AppPackageUpsert) SetBinaryPublicURL ¶ added in v0.0.5
func (u *AppPackageUpsert) SetBinaryPublicURL(v string) *AppPackageUpsert
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageUpsert) SetBinarySize ¶ added in v0.0.4
func (u *AppPackageUpsert) SetBinarySize(v int64) *AppPackageUpsert
SetBinarySize sets the "binary_size" field.
func (*AppPackageUpsert) SetCreatedAt ¶ added in v0.0.4
func (u *AppPackageUpsert) SetCreatedAt(v time.Time) *AppPackageUpsert
SetCreatedAt sets the "created_at" field.
func (*AppPackageUpsert) SetDescription ¶ added in v0.0.4
func (u *AppPackageUpsert) SetDescription(v string) *AppPackageUpsert
SetDescription sets the "description" field.
func (*AppPackageUpsert) SetName ¶ added in v0.0.4
func (u *AppPackageUpsert) SetName(v string) *AppPackageUpsert
SetName sets the "name" field.
func (*AppPackageUpsert) SetSource ¶ added in v0.0.4
func (u *AppPackageUpsert) SetSource(v apppackage.Source) *AppPackageUpsert
SetSource sets the "source" field.
func (*AppPackageUpsert) SetSourceID ¶ added in v0.0.4
func (u *AppPackageUpsert) SetSourceID(v model.InternalID) *AppPackageUpsert
SetSourceID sets the "source_id" field.
func (*AppPackageUpsert) SetSourcePackageID ¶ added in v0.0.4
func (u *AppPackageUpsert) SetSourcePackageID(v string) *AppPackageUpsert
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageUpsert) SetUpdatedAt ¶ added in v0.0.4
func (u *AppPackageUpsert) SetUpdatedAt(v time.Time) *AppPackageUpsert
SetUpdatedAt sets the "updated_at" field.
func (*AppPackageUpsert) UpdateBinaryName ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateBinaryName() *AppPackageUpsert
UpdateBinaryName sets the "binary_name" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateBinaryPublicURL ¶ added in v0.0.5
func (u *AppPackageUpsert) UpdateBinaryPublicURL() *AppPackageUpsert
UpdateBinaryPublicURL sets the "binary_public_url" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateBinarySize ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateBinarySize() *AppPackageUpsert
UpdateBinarySize sets the "binary_size" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateCreatedAt ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateCreatedAt() *AppPackageUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateDescription ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateDescription() *AppPackageUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateName ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateName() *AppPackageUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateSource ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateSource() *AppPackageUpsert
UpdateSource sets the "source" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateSourceID ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateSourceID() *AppPackageUpsert
UpdateSourceID sets the "source_id" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateSourcePackageID ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateSourcePackageID() *AppPackageUpsert
UpdateSourcePackageID sets the "source_package_id" field to the value that was provided on create.
func (*AppPackageUpsert) UpdateUpdatedAt ¶ added in v0.0.4
func (u *AppPackageUpsert) UpdateUpdatedAt() *AppPackageUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AppPackageUpsertBulk ¶ added in v0.0.4
type AppPackageUpsertBulk struct {
// contains filtered or unexported fields
}
AppPackageUpsertBulk is the builder for "upsert"-ing a bulk of AppPackage nodes.
func (*AppPackageUpsertBulk) AddBinarySize ¶ added in v0.0.5
func (u *AppPackageUpsertBulk) AddBinarySize(v int64) *AppPackageUpsertBulk
AddBinarySize adds v to the "binary_size" field.
func (*AppPackageUpsertBulk) AddSourceID ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) AddSourceID(v model.InternalID) *AppPackageUpsertBulk
AddSourceID adds v to the "source_id" field.
func (*AppPackageUpsertBulk) DoNothing ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) DoNothing() *AppPackageUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AppPackageUpsertBulk) Exec ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AppPackageUpsertBulk) ExecX ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageUpsertBulk) Ignore ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) Ignore() *AppPackageUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.AppPackage.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*AppPackageUpsertBulk) SetBinaryName ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetBinaryName(v string) *AppPackageUpsertBulk
SetBinaryName sets the "binary_name" field.
func (*AppPackageUpsertBulk) SetBinaryPublicURL ¶ added in v0.0.5
func (u *AppPackageUpsertBulk) SetBinaryPublicURL(v string) *AppPackageUpsertBulk
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageUpsertBulk) SetBinarySize ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetBinarySize(v int64) *AppPackageUpsertBulk
SetBinarySize sets the "binary_size" field.
func (*AppPackageUpsertBulk) SetCreatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetCreatedAt(v time.Time) *AppPackageUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*AppPackageUpsertBulk) SetDescription ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetDescription(v string) *AppPackageUpsertBulk
SetDescription sets the "description" field.
func (*AppPackageUpsertBulk) SetName ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetName(v string) *AppPackageUpsertBulk
SetName sets the "name" field.
func (*AppPackageUpsertBulk) SetSource ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetSource(v apppackage.Source) *AppPackageUpsertBulk
SetSource sets the "source" field.
func (*AppPackageUpsertBulk) SetSourceID ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetSourceID(v model.InternalID) *AppPackageUpsertBulk
SetSourceID sets the "source_id" field.
func (*AppPackageUpsertBulk) SetSourcePackageID ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetSourcePackageID(v string) *AppPackageUpsertBulk
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageUpsertBulk) SetUpdatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) SetUpdatedAt(v time.Time) *AppPackageUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*AppPackageUpsertBulk) Update ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) Update(set func(*AppPackageUpsert)) *AppPackageUpsertBulk
Update allows overriding fields `UPDATE` values. See the AppPackageCreateBulk.OnConflict documentation for more info.
func (*AppPackageUpsertBulk) UpdateBinaryName ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateBinaryName() *AppPackageUpsertBulk
UpdateBinaryName sets the "binary_name" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateBinaryPublicURL ¶ added in v0.0.5
func (u *AppPackageUpsertBulk) UpdateBinaryPublicURL() *AppPackageUpsertBulk
UpdateBinaryPublicURL sets the "binary_public_url" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateBinarySize ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateBinarySize() *AppPackageUpsertBulk
UpdateBinarySize sets the "binary_size" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateCreatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateCreatedAt() *AppPackageUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateDescription ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateDescription() *AppPackageUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateName ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateName() *AppPackageUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateNewValues ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateNewValues() *AppPackageUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.AppPackage.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(apppackage.FieldID) }), ). Exec(ctx)
func (*AppPackageUpsertBulk) UpdateSource ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateSource() *AppPackageUpsertBulk
UpdateSource sets the "source" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateSourceID ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateSourceID() *AppPackageUpsertBulk
UpdateSourceID sets the "source_id" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateSourcePackageID ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateSourcePackageID() *AppPackageUpsertBulk
UpdateSourcePackageID sets the "source_package_id" field to the value that was provided on create.
func (*AppPackageUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertBulk) UpdateUpdatedAt() *AppPackageUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AppPackageUpsertOne ¶ added in v0.0.4
type AppPackageUpsertOne struct {
// contains filtered or unexported fields
}
AppPackageUpsertOne is the builder for "upsert"-ing
one AppPackage node.
func (*AppPackageUpsertOne) AddBinarySize ¶ added in v0.0.5
func (u *AppPackageUpsertOne) AddBinarySize(v int64) *AppPackageUpsertOne
AddBinarySize adds v to the "binary_size" field.
func (*AppPackageUpsertOne) AddSourceID ¶ added in v0.0.4
func (u *AppPackageUpsertOne) AddSourceID(v model.InternalID) *AppPackageUpsertOne
AddSourceID adds v to the "source_id" field.
func (*AppPackageUpsertOne) DoNothing ¶ added in v0.0.4
func (u *AppPackageUpsertOne) DoNothing() *AppPackageUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AppPackageUpsertOne) Exec ¶ added in v0.0.4
func (u *AppPackageUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*AppPackageUpsertOne) ExecX ¶ added in v0.0.4
func (u *AppPackageUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppPackageUpsertOne) ID ¶ added in v0.0.4
func (u *AppPackageUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*AppPackageUpsertOne) IDX ¶ added in v0.0.4
func (u *AppPackageUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*AppPackageUpsertOne) Ignore ¶ added in v0.0.4
func (u *AppPackageUpsertOne) Ignore() *AppPackageUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.AppPackage.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*AppPackageUpsertOne) SetBinaryName ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetBinaryName(v string) *AppPackageUpsertOne
SetBinaryName sets the "binary_name" field.
func (*AppPackageUpsertOne) SetBinaryPublicURL ¶ added in v0.0.5
func (u *AppPackageUpsertOne) SetBinaryPublicURL(v string) *AppPackageUpsertOne
SetBinaryPublicURL sets the "binary_public_url" field.
func (*AppPackageUpsertOne) SetBinarySize ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetBinarySize(v int64) *AppPackageUpsertOne
SetBinarySize sets the "binary_size" field.
func (*AppPackageUpsertOne) SetCreatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetCreatedAt(v time.Time) *AppPackageUpsertOne
SetCreatedAt sets the "created_at" field.
func (*AppPackageUpsertOne) SetDescription ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetDescription(v string) *AppPackageUpsertOne
SetDescription sets the "description" field.
func (*AppPackageUpsertOne) SetName ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetName(v string) *AppPackageUpsertOne
SetName sets the "name" field.
func (*AppPackageUpsertOne) SetSource ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetSource(v apppackage.Source) *AppPackageUpsertOne
SetSource sets the "source" field.
func (*AppPackageUpsertOne) SetSourceID ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetSourceID(v model.InternalID) *AppPackageUpsertOne
SetSourceID sets the "source_id" field.
func (*AppPackageUpsertOne) SetSourcePackageID ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetSourcePackageID(v string) *AppPackageUpsertOne
SetSourcePackageID sets the "source_package_id" field.
func (*AppPackageUpsertOne) SetUpdatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertOne) SetUpdatedAt(v time.Time) *AppPackageUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*AppPackageUpsertOne) Update ¶ added in v0.0.4
func (u *AppPackageUpsertOne) Update(set func(*AppPackageUpsert)) *AppPackageUpsertOne
Update allows overriding fields `UPDATE` values. See the AppPackageCreate.OnConflict documentation for more info.
func (*AppPackageUpsertOne) UpdateBinaryName ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateBinaryName() *AppPackageUpsertOne
UpdateBinaryName sets the "binary_name" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateBinaryPublicURL ¶ added in v0.0.5
func (u *AppPackageUpsertOne) UpdateBinaryPublicURL() *AppPackageUpsertOne
UpdateBinaryPublicURL sets the "binary_public_url" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateBinarySize ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateBinarySize() *AppPackageUpsertOne
UpdateBinarySize sets the "binary_size" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateCreatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateCreatedAt() *AppPackageUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateDescription ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateDescription() *AppPackageUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateName ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateName() *AppPackageUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateNewValues ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateNewValues() *AppPackageUpsertOne
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.AppPackage.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(apppackage.FieldID) }), ). Exec(ctx)
func (*AppPackageUpsertOne) UpdateSource ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateSource() *AppPackageUpsertOne
UpdateSource sets the "source" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateSourceID ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateSourceID() *AppPackageUpsertOne
UpdateSourceID sets the "source_id" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateSourcePackageID ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateSourcePackageID() *AppPackageUpsertOne
UpdateSourcePackageID sets the "source_package_id" field to the value that was provided on create.
func (*AppPackageUpsertOne) UpdateUpdatedAt ¶ added in v0.0.4
func (u *AppPackageUpsertOne) UpdateUpdatedAt() *AppPackageUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type AppPackages ¶ added in v0.0.4
type AppPackages []*AppPackage
AppPackages is a parsable slice of AppPackage.
type AppQuery ¶
type AppQuery struct {
// contains filtered or unexported fields
}
AppQuery is the builder for querying App entities.
func (*AppQuery) Aggregate ¶ added in v0.0.3
func (aq *AppQuery) Aggregate(fns ...AggregateFunc) *AppSelect
Aggregate returns a AppSelect configured with the given aggregations.
func (*AppQuery) Clone ¶
Clone returns a duplicate of the AppQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AppQuery) First ¶
First returns the first App entity from the query. Returns a *NotFoundError when no App was found.
func (*AppQuery) FirstID ¶
FirstID returns the first App ID from the query. Returns a *NotFoundError when no App ID was found.
func (*AppQuery) FirstIDX ¶
func (aq *AppQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*AppQuery) GroupBy ¶
func (aq *AppQuery) GroupBy(field string, fields ...string) *AppGroupBy
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 { Source app.Source `json:"source,omitempty"` Count int `json:"count,omitempty"` } client.App.Query(). GroupBy(app.FieldSource). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AppQuery) IDsX ¶
func (aq *AppQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*AppQuery) Only ¶
Only returns a single App entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one App entity is found. Returns a *NotFoundError when no App entities are found.
func (*AppQuery) OnlyID ¶
OnlyID is like Only, but returns the only App ID in the query. Returns a *NotSingularError when more than one App ID is found. Returns a *NotFoundError when no entities are found.
func (*AppQuery) OnlyIDX ¶
func (aq *AppQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AppQuery) QueryAppPackage ¶ added in v0.0.6
func (aq *AppQuery) QueryAppPackage() *AppPackageQuery
QueryAppPackage chains the current query on the "app_package" edge.
func (*AppQuery) Select ¶
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Source app.Source `json:"source,omitempty"` } client.App.Query(). Select(app.FieldSource). Scan(ctx, &v)
func (*AppQuery) 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 (*AppQuery) WithAppPackage ¶ added in v0.0.6
func (aq *AppQuery) WithAppPackage(opts ...func(*AppPackageQuery)) *AppQuery
WithAppPackage tells the query-builder to eager-load the nodes that are connected to the "app_package" edge. The optional arguments are used to configure the query builder of the edge.
type AppSelect ¶
type AppSelect struct { *AppQuery // contains filtered or unexported fields }
AppSelect is the builder for selecting fields of App entities.
func (*AppSelect) Aggregate ¶ added in v0.0.3
func (as *AppSelect) Aggregate(fns ...AggregateFunc) *AppSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AppSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AppSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AppSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AppSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AppSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AppSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AppSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AppUpdate ¶
type AppUpdate struct {
// contains filtered or unexported fields
}
AppUpdate is the builder for updating App entities.
func (*AppUpdate) AddAppPackage ¶ added in v0.0.6
func (au *AppUpdate) AddAppPackage(a ...*AppPackage) *AppUpdate
AddAppPackage adds the "app_package" edges to the AppPackage entity.
func (*AppUpdate) AddAppPackageIDs ¶ added in v0.0.6
func (au *AppUpdate) AddAppPackageIDs(ids ...model.InternalID) *AppUpdate
AddAppPackageIDs adds the "app_package" edge to the AppPackage entity by IDs.
func (*AppUpdate) AddUserIDs ¶ added in v0.0.6
func (au *AppUpdate) AddUserIDs(ids ...model.InternalID) *AppUpdate
AddUserIDs adds the "user" edge to the User entity by IDs.
func (*AppUpdate) ClearAppPackage ¶ added in v0.0.6
ClearAppPackage clears all "app_package" edges to the AppPackage entity.
func (*AppUpdate) Mutation ¶
func (au *AppUpdate) Mutation() *AppMutation
Mutation returns the AppMutation object of the builder.
func (*AppUpdate) RemoveAppPackage ¶ added in v0.0.6
func (au *AppUpdate) RemoveAppPackage(a ...*AppPackage) *AppUpdate
RemoveAppPackage removes "app_package" edges to AppPackage entities.
func (*AppUpdate) RemoveAppPackageIDs ¶ added in v0.0.6
func (au *AppUpdate) RemoveAppPackageIDs(ids ...model.InternalID) *AppUpdate
RemoveAppPackageIDs removes the "app_package" edge to AppPackage entities by IDs.
func (*AppUpdate) RemoveUser ¶ added in v0.0.6
RemoveUser removes "user" edges to User entities.
func (*AppUpdate) RemoveUserIDs ¶ added in v0.0.6
func (au *AppUpdate) RemoveUserIDs(ids ...model.InternalID) *AppUpdate
RemoveUserIDs removes the "user" edge to User entities by IDs.
func (*AppUpdate) Save ¶
Save executes the query and returns the number of nodes affected by the update operation.
func (*AppUpdate) SetCreatedAt ¶
SetCreatedAt sets the "created_at" field.
func (*AppUpdate) SetDescription ¶
SetDescription sets the "description" field.
func (*AppUpdate) SetDeveloper ¶
SetDeveloper sets the "developer" field.
func (*AppUpdate) SetImageURL ¶
SetImageURL sets the "image_url" field.
func (*AppUpdate) SetNillableCreatedAt ¶
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AppUpdate) SetPublisher ¶
SetPublisher sets the "publisher" field.
func (*AppUpdate) SetReleaseDate ¶
SetReleaseDate sets the "release_date" field.
func (*AppUpdate) SetShortDescription ¶
SetShortDescription sets the "short_description" field.
func (*AppUpdate) SetSourceAppID ¶
SetSourceAppID sets the "source_app_id" field.
func (*AppUpdate) SetSourceURL ¶
SetSourceURL sets the "source_url" field.
func (*AppUpdate) SetUpdatedAt ¶ added in v0.0.5
SetUpdatedAt sets the "updated_at" field.
func (*AppUpdate) SetVersion ¶ added in v0.0.5
SetVersion sets the "version" field.
type AppUpdateOne ¶
type AppUpdateOne struct {
// contains filtered or unexported fields
}
AppUpdateOne is the builder for updating a single App entity.
func (*AppUpdateOne) AddAppPackage ¶ added in v0.0.6
func (auo *AppUpdateOne) AddAppPackage(a ...*AppPackage) *AppUpdateOne
AddAppPackage adds the "app_package" edges to the AppPackage entity.
func (*AppUpdateOne) AddAppPackageIDs ¶ added in v0.0.6
func (auo *AppUpdateOne) AddAppPackageIDs(ids ...model.InternalID) *AppUpdateOne
AddAppPackageIDs adds the "app_package" edge to the AppPackage entity by IDs.
func (*AppUpdateOne) AddUser ¶ added in v0.0.6
func (auo *AppUpdateOne) AddUser(u ...*User) *AppUpdateOne
AddUser adds the "user" edges to the User entity.
func (*AppUpdateOne) AddUserIDs ¶ added in v0.0.6
func (auo *AppUpdateOne) AddUserIDs(ids ...model.InternalID) *AppUpdateOne
AddUserIDs adds the "user" edge to the User entity by IDs.
func (*AppUpdateOne) ClearAppPackage ¶ added in v0.0.6
func (auo *AppUpdateOne) ClearAppPackage() *AppUpdateOne
ClearAppPackage clears all "app_package" edges to the AppPackage entity.
func (*AppUpdateOne) ClearUser ¶ added in v0.0.6
func (auo *AppUpdateOne) ClearUser() *AppUpdateOne
ClearUser clears all "user" edges to the User entity.
func (*AppUpdateOne) Exec ¶
func (auo *AppUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AppUpdateOne) ExecX ¶
func (auo *AppUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppUpdateOne) Mutation ¶
func (auo *AppUpdateOne) Mutation() *AppMutation
Mutation returns the AppMutation object of the builder.
func (*AppUpdateOne) RemoveAppPackage ¶ added in v0.0.6
func (auo *AppUpdateOne) RemoveAppPackage(a ...*AppPackage) *AppUpdateOne
RemoveAppPackage removes "app_package" edges to AppPackage entities.
func (*AppUpdateOne) RemoveAppPackageIDs ¶ added in v0.0.6
func (auo *AppUpdateOne) RemoveAppPackageIDs(ids ...model.InternalID) *AppUpdateOne
RemoveAppPackageIDs removes the "app_package" edge to AppPackage entities by IDs.
func (*AppUpdateOne) RemoveUser ¶ added in v0.0.6
func (auo *AppUpdateOne) RemoveUser(u ...*User) *AppUpdateOne
RemoveUser removes "user" edges to User entities.
func (*AppUpdateOne) RemoveUserIDs ¶ added in v0.0.6
func (auo *AppUpdateOne) RemoveUserIDs(ids ...model.InternalID) *AppUpdateOne
RemoveUserIDs removes the "user" edge to User entities by IDs.
func (*AppUpdateOne) Save ¶
func (auo *AppUpdateOne) Save(ctx context.Context) (*App, error)
Save executes the query and returns the updated App entity.
func (*AppUpdateOne) SaveX ¶
func (auo *AppUpdateOne) SaveX(ctx context.Context) *App
SaveX is like Save, but panics if an error occurs.
func (*AppUpdateOne) Select ¶
func (auo *AppUpdateOne) Select(field string, fields ...string) *AppUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AppUpdateOne) SetCreatedAt ¶
func (auo *AppUpdateOne) SetCreatedAt(t time.Time) *AppUpdateOne
SetCreatedAt sets the "created_at" field.
func (*AppUpdateOne) SetDescription ¶
func (auo *AppUpdateOne) SetDescription(s string) *AppUpdateOne
SetDescription sets the "description" field.
func (*AppUpdateOne) SetDeveloper ¶
func (auo *AppUpdateOne) SetDeveloper(s string) *AppUpdateOne
SetDeveloper sets the "developer" field.
func (*AppUpdateOne) SetImageURL ¶
func (auo *AppUpdateOne) SetImageURL(s string) *AppUpdateOne
SetImageURL sets the "image_url" field.
func (*AppUpdateOne) SetName ¶
func (auo *AppUpdateOne) SetName(s string) *AppUpdateOne
SetName sets the "name" field.
func (*AppUpdateOne) SetNillableCreatedAt ¶
func (auo *AppUpdateOne) SetNillableCreatedAt(t *time.Time) *AppUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AppUpdateOne) SetPublisher ¶
func (auo *AppUpdateOne) SetPublisher(s string) *AppUpdateOne
SetPublisher sets the "publisher" field.
func (*AppUpdateOne) SetReleaseDate ¶
func (auo *AppUpdateOne) SetReleaseDate(s string) *AppUpdateOne
SetReleaseDate sets the "release_date" field.
func (*AppUpdateOne) SetShortDescription ¶
func (auo *AppUpdateOne) SetShortDescription(s string) *AppUpdateOne
SetShortDescription sets the "short_description" field.
func (*AppUpdateOne) SetSource ¶
func (auo *AppUpdateOne) SetSource(a app.Source) *AppUpdateOne
SetSource sets the "source" field.
func (*AppUpdateOne) SetSourceAppID ¶
func (auo *AppUpdateOne) SetSourceAppID(s string) *AppUpdateOne
SetSourceAppID sets the "source_app_id" field.
func (*AppUpdateOne) SetSourceURL ¶
func (auo *AppUpdateOne) SetSourceURL(s string) *AppUpdateOne
SetSourceURL sets the "source_url" field.
func (*AppUpdateOne) SetType ¶
func (auo *AppUpdateOne) SetType(a app.Type) *AppUpdateOne
SetType sets the "type" field.
func (*AppUpdateOne) SetUpdatedAt ¶ added in v0.0.5
func (auo *AppUpdateOne) SetUpdatedAt(t time.Time) *AppUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*AppUpdateOne) SetVersion ¶ added in v0.0.5
func (auo *AppUpdateOne) SetVersion(s string) *AppUpdateOne
SetVersion sets the "version" field.
func (*AppUpdateOne) Where ¶ added in v0.0.5
func (auo *AppUpdateOne) Where(ps ...predicate.App) *AppUpdateOne
Where appends a list predicates to the AppUpdate builder.
type AppUpsert ¶ added in v0.0.2
AppUpsert is the "OnConflict" setter.
func (*AppUpsert) SetCreatedAt ¶ added in v0.0.2
SetCreatedAt sets the "created_at" field.
func (*AppUpsert) SetDescription ¶ added in v0.0.2
SetDescription sets the "description" field.
func (*AppUpsert) SetDeveloper ¶ added in v0.0.2
SetDeveloper sets the "developer" field.
func (*AppUpsert) SetImageURL ¶ added in v0.0.2
SetImageURL sets the "image_url" field.
func (*AppUpsert) SetPublisher ¶ added in v0.0.2
SetPublisher sets the "publisher" field.
func (*AppUpsert) SetReleaseDate ¶ added in v0.0.2
SetReleaseDate sets the "release_date" field.
func (*AppUpsert) SetShortDescription ¶ added in v0.0.2
SetShortDescription sets the "short_description" field.
func (*AppUpsert) SetSourceAppID ¶ added in v0.0.2
SetSourceAppID sets the "source_app_id" field.
func (*AppUpsert) SetSourceURL ¶ added in v0.0.2
SetSourceURL sets the "source_url" field.
func (*AppUpsert) SetUpdatedAt ¶ added in v0.0.5
SetUpdatedAt sets the "updated_at" field.
func (*AppUpsert) SetVersion ¶ added in v0.0.5
SetVersion sets the "version" field.
func (*AppUpsert) UpdateCreatedAt ¶ added in v0.0.2
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AppUpsert) UpdateDescription ¶ added in v0.0.2
UpdateDescription sets the "description" field to the value that was provided on create.
func (*AppUpsert) UpdateDeveloper ¶ added in v0.0.2
UpdateDeveloper sets the "developer" field to the value that was provided on create.
func (*AppUpsert) UpdateImageURL ¶ added in v0.0.2
UpdateImageURL sets the "image_url" field to the value that was provided on create.
func (*AppUpsert) UpdateName ¶ added in v0.0.2
UpdateName sets the "name" field to the value that was provided on create.
func (*AppUpsert) UpdatePublisher ¶ added in v0.0.2
UpdatePublisher sets the "publisher" field to the value that was provided on create.
func (*AppUpsert) UpdateReleaseDate ¶ added in v0.0.2
UpdateReleaseDate sets the "release_date" field to the value that was provided on create.
func (*AppUpsert) UpdateShortDescription ¶ added in v0.0.2
UpdateShortDescription sets the "short_description" field to the value that was provided on create.
func (*AppUpsert) UpdateSource ¶ added in v0.0.2
UpdateSource sets the "source" field to the value that was provided on create.
func (*AppUpsert) UpdateSourceAppID ¶ added in v0.0.2
UpdateSourceAppID sets the "source_app_id" field to the value that was provided on create.
func (*AppUpsert) UpdateSourceURL ¶ added in v0.0.2
UpdateSourceURL sets the "source_url" field to the value that was provided on create.
func (*AppUpsert) UpdateType ¶ added in v0.0.2
UpdateType sets the "type" field to the value that was provided on create.
func (*AppUpsert) UpdateUpdatedAt ¶ added in v0.0.5
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*AppUpsert) UpdateVersion ¶ added in v0.0.5
UpdateVersion sets the "version" field to the value that was provided on create.
type AppUpsertBulk ¶ added in v0.0.2
type AppUpsertBulk struct {
// contains filtered or unexported fields
}
AppUpsertBulk is the builder for "upsert"-ing a bulk of App nodes.
func (*AppUpsertBulk) DoNothing ¶ added in v0.0.2
func (u *AppUpsertBulk) DoNothing() *AppUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AppUpsertBulk) Exec ¶ added in v0.0.2
func (u *AppUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AppUpsertBulk) ExecX ¶ added in v0.0.2
func (u *AppUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppUpsertBulk) Ignore ¶ added in v0.0.2
func (u *AppUpsertBulk) Ignore() *AppUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.App.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*AppUpsertBulk) SetCreatedAt ¶ added in v0.0.2
func (u *AppUpsertBulk) SetCreatedAt(v time.Time) *AppUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*AppUpsertBulk) SetDescription ¶ added in v0.0.2
func (u *AppUpsertBulk) SetDescription(v string) *AppUpsertBulk
SetDescription sets the "description" field.
func (*AppUpsertBulk) SetDeveloper ¶ added in v0.0.2
func (u *AppUpsertBulk) SetDeveloper(v string) *AppUpsertBulk
SetDeveloper sets the "developer" field.
func (*AppUpsertBulk) SetImageURL ¶ added in v0.0.2
func (u *AppUpsertBulk) SetImageURL(v string) *AppUpsertBulk
SetImageURL sets the "image_url" field.
func (*AppUpsertBulk) SetName ¶ added in v0.0.2
func (u *AppUpsertBulk) SetName(v string) *AppUpsertBulk
SetName sets the "name" field.
func (*AppUpsertBulk) SetPublisher ¶ added in v0.0.2
func (u *AppUpsertBulk) SetPublisher(v string) *AppUpsertBulk
SetPublisher sets the "publisher" field.
func (*AppUpsertBulk) SetReleaseDate ¶ added in v0.0.2
func (u *AppUpsertBulk) SetReleaseDate(v string) *AppUpsertBulk
SetReleaseDate sets the "release_date" field.
func (*AppUpsertBulk) SetShortDescription ¶ added in v0.0.2
func (u *AppUpsertBulk) SetShortDescription(v string) *AppUpsertBulk
SetShortDescription sets the "short_description" field.
func (*AppUpsertBulk) SetSource ¶ added in v0.0.2
func (u *AppUpsertBulk) SetSource(v app.Source) *AppUpsertBulk
SetSource sets the "source" field.
func (*AppUpsertBulk) SetSourceAppID ¶ added in v0.0.2
func (u *AppUpsertBulk) SetSourceAppID(v string) *AppUpsertBulk
SetSourceAppID sets the "source_app_id" field.
func (*AppUpsertBulk) SetSourceURL ¶ added in v0.0.2
func (u *AppUpsertBulk) SetSourceURL(v string) *AppUpsertBulk
SetSourceURL sets the "source_url" field.
func (*AppUpsertBulk) SetType ¶ added in v0.0.2
func (u *AppUpsertBulk) SetType(v app.Type) *AppUpsertBulk
SetType sets the "type" field.
func (*AppUpsertBulk) SetUpdatedAt ¶ added in v0.0.5
func (u *AppUpsertBulk) SetUpdatedAt(v time.Time) *AppUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*AppUpsertBulk) SetVersion ¶ added in v0.0.5
func (u *AppUpsertBulk) SetVersion(v string) *AppUpsertBulk
SetVersion sets the "version" field.
func (*AppUpsertBulk) Update ¶ added in v0.0.2
func (u *AppUpsertBulk) Update(set func(*AppUpsert)) *AppUpsertBulk
Update allows overriding fields `UPDATE` values. See the AppCreateBulk.OnConflict documentation for more info.
func (*AppUpsertBulk) UpdateCreatedAt ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateCreatedAt() *AppUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateDescription ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateDescription() *AppUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateDeveloper ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateDeveloper() *AppUpsertBulk
UpdateDeveloper sets the "developer" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateImageURL ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateImageURL() *AppUpsertBulk
UpdateImageURL sets the "image_url" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateName ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateName() *AppUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateNewValues ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateNewValues() *AppUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.App.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(app.FieldID) }), ). Exec(ctx)
func (*AppUpsertBulk) UpdatePublisher ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdatePublisher() *AppUpsertBulk
UpdatePublisher sets the "publisher" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateReleaseDate ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateReleaseDate() *AppUpsertBulk
UpdateReleaseDate sets the "release_date" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateShortDescription ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateShortDescription() *AppUpsertBulk
UpdateShortDescription sets the "short_description" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateSource ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateSource() *AppUpsertBulk
UpdateSource sets the "source" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateSourceAppID ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateSourceAppID() *AppUpsertBulk
UpdateSourceAppID sets the "source_app_id" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateSourceURL ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateSourceURL() *AppUpsertBulk
UpdateSourceURL sets the "source_url" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateType ¶ added in v0.0.2
func (u *AppUpsertBulk) UpdateType() *AppUpsertBulk
UpdateType sets the "type" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.5
func (u *AppUpsertBulk) UpdateUpdatedAt() *AppUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*AppUpsertBulk) UpdateVersion ¶ added in v0.0.5
func (u *AppUpsertBulk) UpdateVersion() *AppUpsertBulk
UpdateVersion sets the "version" field to the value that was provided on create.
type AppUpsertOne ¶ added in v0.0.2
type AppUpsertOne struct {
// contains filtered or unexported fields
}
AppUpsertOne is the builder for "upsert"-ing
one App node.
func (*AppUpsertOne) DoNothing ¶ added in v0.0.2
func (u *AppUpsertOne) DoNothing() *AppUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*AppUpsertOne) Exec ¶ added in v0.0.2
func (u *AppUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*AppUpsertOne) ExecX ¶ added in v0.0.2
func (u *AppUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AppUpsertOne) ID ¶ added in v0.0.2
func (u *AppUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*AppUpsertOne) IDX ¶ added in v0.0.2
func (u *AppUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*AppUpsertOne) Ignore ¶ added in v0.0.2
func (u *AppUpsertOne) Ignore() *AppUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.App.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*AppUpsertOne) SetCreatedAt ¶ added in v0.0.2
func (u *AppUpsertOne) SetCreatedAt(v time.Time) *AppUpsertOne
SetCreatedAt sets the "created_at" field.
func (*AppUpsertOne) SetDescription ¶ added in v0.0.2
func (u *AppUpsertOne) SetDescription(v string) *AppUpsertOne
SetDescription sets the "description" field.
func (*AppUpsertOne) SetDeveloper ¶ added in v0.0.2
func (u *AppUpsertOne) SetDeveloper(v string) *AppUpsertOne
SetDeveloper sets the "developer" field.
func (*AppUpsertOne) SetImageURL ¶ added in v0.0.2
func (u *AppUpsertOne) SetImageURL(v string) *AppUpsertOne
SetImageURL sets the "image_url" field.
func (*AppUpsertOne) SetName ¶ added in v0.0.2
func (u *AppUpsertOne) SetName(v string) *AppUpsertOne
SetName sets the "name" field.
func (*AppUpsertOne) SetPublisher ¶ added in v0.0.2
func (u *AppUpsertOne) SetPublisher(v string) *AppUpsertOne
SetPublisher sets the "publisher" field.
func (*AppUpsertOne) SetReleaseDate ¶ added in v0.0.2
func (u *AppUpsertOne) SetReleaseDate(v string) *AppUpsertOne
SetReleaseDate sets the "release_date" field.
func (*AppUpsertOne) SetShortDescription ¶ added in v0.0.2
func (u *AppUpsertOne) SetShortDescription(v string) *AppUpsertOne
SetShortDescription sets the "short_description" field.
func (*AppUpsertOne) SetSource ¶ added in v0.0.2
func (u *AppUpsertOne) SetSource(v app.Source) *AppUpsertOne
SetSource sets the "source" field.
func (*AppUpsertOne) SetSourceAppID ¶ added in v0.0.2
func (u *AppUpsertOne) SetSourceAppID(v string) *AppUpsertOne
SetSourceAppID sets the "source_app_id" field.
func (*AppUpsertOne) SetSourceURL ¶ added in v0.0.2
func (u *AppUpsertOne) SetSourceURL(v string) *AppUpsertOne
SetSourceURL sets the "source_url" field.
func (*AppUpsertOne) SetType ¶ added in v0.0.2
func (u *AppUpsertOne) SetType(v app.Type) *AppUpsertOne
SetType sets the "type" field.
func (*AppUpsertOne) SetUpdatedAt ¶ added in v0.0.5
func (u *AppUpsertOne) SetUpdatedAt(v time.Time) *AppUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*AppUpsertOne) SetVersion ¶ added in v0.0.5
func (u *AppUpsertOne) SetVersion(v string) *AppUpsertOne
SetVersion sets the "version" field.
func (*AppUpsertOne) Update ¶ added in v0.0.2
func (u *AppUpsertOne) Update(set func(*AppUpsert)) *AppUpsertOne
Update allows overriding fields `UPDATE` values. See the AppCreate.OnConflict documentation for more info.
func (*AppUpsertOne) UpdateCreatedAt ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateCreatedAt() *AppUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*AppUpsertOne) UpdateDescription ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateDescription() *AppUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*AppUpsertOne) UpdateDeveloper ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateDeveloper() *AppUpsertOne
UpdateDeveloper sets the "developer" field to the value that was provided on create.
func (*AppUpsertOne) UpdateImageURL ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateImageURL() *AppUpsertOne
UpdateImageURL sets the "image_url" field to the value that was provided on create.
func (*AppUpsertOne) UpdateName ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateName() *AppUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*AppUpsertOne) UpdateNewValues ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateNewValues() *AppUpsertOne
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.App.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(app.FieldID) }), ). Exec(ctx)
func (*AppUpsertOne) UpdatePublisher ¶ added in v0.0.2
func (u *AppUpsertOne) UpdatePublisher() *AppUpsertOne
UpdatePublisher sets the "publisher" field to the value that was provided on create.
func (*AppUpsertOne) UpdateReleaseDate ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateReleaseDate() *AppUpsertOne
UpdateReleaseDate sets the "release_date" field to the value that was provided on create.
func (*AppUpsertOne) UpdateShortDescription ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateShortDescription() *AppUpsertOne
UpdateShortDescription sets the "short_description" field to the value that was provided on create.
func (*AppUpsertOne) UpdateSource ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateSource() *AppUpsertOne
UpdateSource sets the "source" field to the value that was provided on create.
func (*AppUpsertOne) UpdateSourceAppID ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateSourceAppID() *AppUpsertOne
UpdateSourceAppID sets the "source_app_id" field to the value that was provided on create.
func (*AppUpsertOne) UpdateSourceURL ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateSourceURL() *AppUpsertOne
UpdateSourceURL sets the "source_url" field to the value that was provided on create.
func (*AppUpsertOne) UpdateType ¶ added in v0.0.2
func (u *AppUpsertOne) UpdateType() *AppUpsertOne
UpdateType sets the "type" field to the value that was provided on create.
func (*AppUpsertOne) UpdateUpdatedAt ¶ added in v0.0.5
func (u *AppUpsertOne) UpdateUpdatedAt() *AppUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*AppUpsertOne) UpdateVersion ¶ added in v0.0.5
func (u *AppUpsertOne) UpdateVersion() *AppUpsertOne
UpdateVersion sets the "version" 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 // App is the client for interacting with the App builders. App *AppClient // AppPackage is the client for interacting with the AppPackage builders. AppPackage *AppPackageClient // Feed is the client for interacting with the Feed builders. Feed *FeedClient // FeedConfig is the client for interacting with the FeedConfig builders. FeedConfig *FeedConfigClient // FeedItem is the client for interacting with the FeedItem builders. FeedItem *FeedItemClient // User is the client for interacting with the User builders. User *UserClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Account. Query(). Count(ctx)
func (*Client) Intercept ¶ added in v0.0.4
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Feed ¶ added in v0.0.5
type Feed struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // Link holds the value of the "link" field. Link string `json:"link,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // Language holds the value of the "language" field. Language string `json:"language,omitempty"` // Authors holds the value of the "authors" field. Authors []*modelfeed.Person `json:"authors,omitempty"` // Image holds the value of the "image" field. Image *modelfeed.Image `json:"image,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FeedQuery when eager-loading is set. Edges FeedEdges `json:"edges"` // contains filtered or unexported fields }
Feed is the model entity for the Feed schema.
func (*Feed) QueryConfig ¶ added in v0.0.5
func (f *Feed) QueryConfig() *FeedConfigQuery
QueryConfig queries the "config" edge of the Feed entity.
func (*Feed) QueryItem ¶ added in v0.0.6
func (f *Feed) QueryItem() *FeedItemQuery
QueryItem queries the "item" edge of the Feed entity.
func (*Feed) Unwrap ¶ added in v0.0.5
Unwrap unwraps the Feed 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 (*Feed) Update ¶ added in v0.0.5
func (f *Feed) Update() *FeedUpdateOne
Update returns a builder for updating this Feed. Note that you need to call Feed.Unwrap() before calling this method if this Feed was returned from a transaction, and the transaction was committed or rolled back.
type FeedClient ¶ added in v0.0.5
type FeedClient struct {
// contains filtered or unexported fields
}
FeedClient is a client for the Feed schema.
func NewFeedClient ¶ added in v0.0.5
func NewFeedClient(c config) *FeedClient
NewFeedClient returns a client for the Feed from the given config.
func (*FeedClient) Create ¶ added in v0.0.5
func (c *FeedClient) Create() *FeedCreate
Create returns a builder for creating a Feed entity.
func (*FeedClient) CreateBulk ¶ added in v0.0.5
func (c *FeedClient) CreateBulk(builders ...*FeedCreate) *FeedCreateBulk
CreateBulk returns a builder for creating a bulk of Feed entities.
func (*FeedClient) Delete ¶ added in v0.0.5
func (c *FeedClient) Delete() *FeedDelete
Delete returns a delete builder for Feed.
func (*FeedClient) DeleteOne ¶ added in v0.0.5
func (c *FeedClient) DeleteOne(f *Feed) *FeedDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FeedClient) DeleteOneID ¶ added in v0.0.5
func (c *FeedClient) DeleteOneID(id model.InternalID) *FeedDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FeedClient) Get ¶ added in v0.0.5
func (c *FeedClient) Get(ctx context.Context, id model.InternalID) (*Feed, error)
Get returns a Feed entity by its id.
func (*FeedClient) GetX ¶ added in v0.0.5
func (c *FeedClient) GetX(ctx context.Context, id model.InternalID) *Feed
GetX is like Get, but panics if an error occurs.
func (*FeedClient) Hooks ¶ added in v0.0.5
func (c *FeedClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FeedClient) Intercept ¶ added in v0.0.5
func (c *FeedClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `feed.Intercept(f(g(h())))`.
func (*FeedClient) Interceptors ¶ added in v0.0.5
func (c *FeedClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FeedClient) Query ¶ added in v0.0.5
func (c *FeedClient) Query() *FeedQuery
Query returns a query builder for Feed.
func (*FeedClient) QueryConfig ¶ added in v0.0.5
func (c *FeedClient) QueryConfig(f *Feed) *FeedConfigQuery
QueryConfig queries the config edge of a Feed.
func (*FeedClient) QueryItem ¶ added in v0.0.6
func (c *FeedClient) QueryItem(f *Feed) *FeedItemQuery
QueryItem queries the item edge of a Feed.
func (*FeedClient) Update ¶ added in v0.0.5
func (c *FeedClient) Update() *FeedUpdate
Update returns an update builder for Feed.
func (*FeedClient) UpdateOne ¶ added in v0.0.5
func (c *FeedClient) UpdateOne(f *Feed) *FeedUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FeedClient) UpdateOneID ¶ added in v0.0.5
func (c *FeedClient) UpdateOneID(id model.InternalID) *FeedUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FeedClient) Use ¶ added in v0.0.5
func (c *FeedClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `feed.Hooks(f(g(h())))`.
type FeedConfig ¶ added in v0.0.5
type FeedConfig struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // FeedURL holds the value of the "feed_url" field. FeedURL string `json:"feed_url,omitempty"` // AuthorAccount holds the value of the "author_account" field. AuthorAccount model.InternalID `json:"author_account,omitempty"` // Source holds the value of the "source" field. Source feedconfig.Source `json:"source,omitempty"` // Status holds the value of the "status" field. Status feedconfig.Status `json:"status,omitempty"` // PullInterval holds the value of the "pull_interval" field. PullInterval time.Duration `json:"pull_interval,omitempty"` // LatestPullAt holds the value of the "latest_pull_at" field. LatestPullAt time.Time `json:"latest_pull_at,omitempty"` // NextPullBeginAt holds the value of the "next_pull_begin_at" field. NextPullBeginAt time.Time `json:"next_pull_begin_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FeedConfigQuery when eager-loading is set. Edges FeedConfigEdges `json:"edges"` // contains filtered or unexported fields }
FeedConfig is the model entity for the FeedConfig schema.
func (*FeedConfig) QueryFeed ¶ added in v0.0.5
func (fc *FeedConfig) QueryFeed() *FeedQuery
QueryFeed queries the "feed" edge of the FeedConfig entity.
func (*FeedConfig) QueryUser ¶ added in v0.0.6
func (fc *FeedConfig) QueryUser() *UserQuery
QueryUser queries the "user" edge of the FeedConfig entity.
func (*FeedConfig) String ¶ added in v0.0.5
func (fc *FeedConfig) String() string
String implements the fmt.Stringer.
func (*FeedConfig) Unwrap ¶ added in v0.0.5
func (fc *FeedConfig) Unwrap() *FeedConfig
Unwrap unwraps the FeedConfig 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 (*FeedConfig) Update ¶ added in v0.0.5
func (fc *FeedConfig) Update() *FeedConfigUpdateOne
Update returns a builder for updating this FeedConfig. Note that you need to call FeedConfig.Unwrap() before calling this method if this FeedConfig was returned from a transaction, and the transaction was committed or rolled back.
type FeedConfigClient ¶ added in v0.0.5
type FeedConfigClient struct {
// contains filtered or unexported fields
}
FeedConfigClient is a client for the FeedConfig schema.
func NewFeedConfigClient ¶ added in v0.0.5
func NewFeedConfigClient(c config) *FeedConfigClient
NewFeedConfigClient returns a client for the FeedConfig from the given config.
func (*FeedConfigClient) Create ¶ added in v0.0.5
func (c *FeedConfigClient) Create() *FeedConfigCreate
Create returns a builder for creating a FeedConfig entity.
func (*FeedConfigClient) CreateBulk ¶ added in v0.0.5
func (c *FeedConfigClient) CreateBulk(builders ...*FeedConfigCreate) *FeedConfigCreateBulk
CreateBulk returns a builder for creating a bulk of FeedConfig entities.
func (*FeedConfigClient) Delete ¶ added in v0.0.5
func (c *FeedConfigClient) Delete() *FeedConfigDelete
Delete returns a delete builder for FeedConfig.
func (*FeedConfigClient) DeleteOne ¶ added in v0.0.5
func (c *FeedConfigClient) DeleteOne(fc *FeedConfig) *FeedConfigDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FeedConfigClient) DeleteOneID ¶ added in v0.0.5
func (c *FeedConfigClient) DeleteOneID(id model.InternalID) *FeedConfigDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FeedConfigClient) Get ¶ added in v0.0.5
func (c *FeedConfigClient) Get(ctx context.Context, id model.InternalID) (*FeedConfig, error)
Get returns a FeedConfig entity by its id.
func (*FeedConfigClient) GetX ¶ added in v0.0.5
func (c *FeedConfigClient) GetX(ctx context.Context, id model.InternalID) *FeedConfig
GetX is like Get, but panics if an error occurs.
func (*FeedConfigClient) Hooks ¶ added in v0.0.5
func (c *FeedConfigClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FeedConfigClient) Intercept ¶ added in v0.0.5
func (c *FeedConfigClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `feedconfig.Intercept(f(g(h())))`.
func (*FeedConfigClient) Interceptors ¶ added in v0.0.5
func (c *FeedConfigClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FeedConfigClient) Query ¶ added in v0.0.5
func (c *FeedConfigClient) Query() *FeedConfigQuery
Query returns a query builder for FeedConfig.
func (*FeedConfigClient) QueryFeed ¶ added in v0.0.5
func (c *FeedConfigClient) QueryFeed(fc *FeedConfig) *FeedQuery
QueryFeed queries the feed edge of a FeedConfig.
func (*FeedConfigClient) QueryUser ¶ added in v0.0.6
func (c *FeedConfigClient) QueryUser(fc *FeedConfig) *UserQuery
QueryUser queries the user edge of a FeedConfig.
func (*FeedConfigClient) Update ¶ added in v0.0.5
func (c *FeedConfigClient) Update() *FeedConfigUpdate
Update returns an update builder for FeedConfig.
func (*FeedConfigClient) UpdateOne ¶ added in v0.0.5
func (c *FeedConfigClient) UpdateOne(fc *FeedConfig) *FeedConfigUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FeedConfigClient) UpdateOneID ¶ added in v0.0.5
func (c *FeedConfigClient) UpdateOneID(id model.InternalID) *FeedConfigUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FeedConfigClient) Use ¶ added in v0.0.5
func (c *FeedConfigClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `feedconfig.Hooks(f(g(h())))`.
type FeedConfigCreate ¶ added in v0.0.5
type FeedConfigCreate struct {
// contains filtered or unexported fields
}
FeedConfigCreate is the builder for creating a FeedConfig entity.
func (*FeedConfigCreate) Exec ¶ added in v0.0.5
func (fcc *FeedConfigCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedConfigCreate) ExecX ¶ added in v0.0.5
func (fcc *FeedConfigCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigCreate) Mutation ¶ added in v0.0.5
func (fcc *FeedConfigCreate) Mutation() *FeedConfigMutation
Mutation returns the FeedConfigMutation object of the builder.
func (*FeedConfigCreate) OnConflict ¶ added in v0.0.5
func (fcc *FeedConfigCreate) OnConflict(opts ...sql.ConflictOption) *FeedConfigUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FeedConfig.Create(). SetFeedURL(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.FeedConfigUpsert) { SetFeedURL(v+v). }). Exec(ctx)
func (*FeedConfigCreate) OnConflictColumns ¶ added in v0.0.5
func (fcc *FeedConfigCreate) OnConflictColumns(columns ...string) *FeedConfigUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FeedConfig.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FeedConfigCreate) Save ¶ added in v0.0.5
func (fcc *FeedConfigCreate) Save(ctx context.Context) (*FeedConfig, error)
Save creates the FeedConfig in the database.
func (*FeedConfigCreate) SaveX ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SaveX(ctx context.Context) *FeedConfig
SaveX calls Save and panics if Save returns an error.
func (*FeedConfigCreate) SetAuthorAccount ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetAuthorAccount(mi model.InternalID) *FeedConfigCreate
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigCreate) SetCreatedAt ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetCreatedAt(t time.Time) *FeedConfigCreate
SetCreatedAt sets the "created_at" field.
func (*FeedConfigCreate) SetFeed ¶ added in v0.0.6
func (fcc *FeedConfigCreate) SetFeed(f *Feed) *FeedConfigCreate
SetFeed sets the "feed" edge to the Feed entity.
func (*FeedConfigCreate) SetFeedID ¶ added in v0.0.6
func (fcc *FeedConfigCreate) SetFeedID(id model.InternalID) *FeedConfigCreate
SetFeedID sets the "feed" edge to the Feed entity by ID.
func (*FeedConfigCreate) SetFeedURL ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetFeedURL(s string) *FeedConfigCreate
SetFeedURL sets the "feed_url" field.
func (*FeedConfigCreate) SetID ¶ added in v0.0.6
func (fcc *FeedConfigCreate) SetID(mi model.InternalID) *FeedConfigCreate
SetID sets the "id" field.
func (*FeedConfigCreate) SetLatestPullAt ¶ added in v0.0.8
func (fcc *FeedConfigCreate) SetLatestPullAt(t time.Time) *FeedConfigCreate
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigCreate) SetNextPullBeginAt ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetNextPullBeginAt(t time.Time) *FeedConfigCreate
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigCreate) SetNillableCreatedAt ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetNillableCreatedAt(t *time.Time) *FeedConfigCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedConfigCreate) SetNillableFeedID ¶ added in v0.0.6
func (fcc *FeedConfigCreate) SetNillableFeedID(id *model.InternalID) *FeedConfigCreate
SetNillableFeedID sets the "feed" edge to the Feed entity by ID if the given value is not nil.
func (*FeedConfigCreate) SetNillableLatestPullAt ¶ added in v0.0.8
func (fcc *FeedConfigCreate) SetNillableLatestPullAt(t *time.Time) *FeedConfigCreate
SetNillableLatestPullAt sets the "latest_pull_at" field if the given value is not nil.
func (*FeedConfigCreate) SetNillableNextPullBeginAt ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetNillableNextPullBeginAt(t *time.Time) *FeedConfigCreate
SetNillableNextPullBeginAt sets the "next_pull_begin_at" field if the given value is not nil.
func (*FeedConfigCreate) SetNillableUpdatedAt ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetNillableUpdatedAt(t *time.Time) *FeedConfigCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FeedConfigCreate) SetPullInterval ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetPullInterval(t time.Duration) *FeedConfigCreate
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigCreate) SetSource ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetSource(f feedconfig.Source) *FeedConfigCreate
SetSource sets the "source" field.
func (*FeedConfigCreate) SetStatus ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetStatus(f feedconfig.Status) *FeedConfigCreate
SetStatus sets the "status" field.
func (*FeedConfigCreate) SetUpdatedAt ¶ added in v0.0.5
func (fcc *FeedConfigCreate) SetUpdatedAt(t time.Time) *FeedConfigCreate
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigCreate) SetUser ¶ added in v0.0.6
func (fcc *FeedConfigCreate) SetUser(u *User) *FeedConfigCreate
SetUser sets the "user" edge to the User entity.
func (*FeedConfigCreate) SetUserID ¶ added in v0.0.6
func (fcc *FeedConfigCreate) SetUserID(id model.InternalID) *FeedConfigCreate
SetUserID sets the "user" edge to the User entity by ID.
type FeedConfigCreateBulk ¶ added in v0.0.5
type FeedConfigCreateBulk struct {
// contains filtered or unexported fields
}
FeedConfigCreateBulk is the builder for creating many FeedConfig entities in bulk.
func (*FeedConfigCreateBulk) Exec ¶ added in v0.0.5
func (fccb *FeedConfigCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedConfigCreateBulk) ExecX ¶ added in v0.0.5
func (fccb *FeedConfigCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigCreateBulk) OnConflict ¶ added in v0.0.5
func (fccb *FeedConfigCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeedConfigUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FeedConfig.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.FeedConfigUpsert) { SetFeedURL(v+v). }). Exec(ctx)
func (*FeedConfigCreateBulk) OnConflictColumns ¶ added in v0.0.5
func (fccb *FeedConfigCreateBulk) OnConflictColumns(columns ...string) *FeedConfigUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FeedConfig.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FeedConfigCreateBulk) Save ¶ added in v0.0.5
func (fccb *FeedConfigCreateBulk) Save(ctx context.Context) ([]*FeedConfig, error)
Save creates the FeedConfig entities in the database.
func (*FeedConfigCreateBulk) SaveX ¶ added in v0.0.5
func (fccb *FeedConfigCreateBulk) SaveX(ctx context.Context) []*FeedConfig
SaveX is like Save, but panics if an error occurs.
type FeedConfigDelete ¶ added in v0.0.5
type FeedConfigDelete struct {
// contains filtered or unexported fields
}
FeedConfigDelete is the builder for deleting a FeedConfig entity.
func (*FeedConfigDelete) Exec ¶ added in v0.0.5
func (fcd *FeedConfigDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FeedConfigDelete) ExecX ¶ added in v0.0.5
func (fcd *FeedConfigDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigDelete) Where ¶ added in v0.0.5
func (fcd *FeedConfigDelete) Where(ps ...predicate.FeedConfig) *FeedConfigDelete
Where appends a list predicates to the FeedConfigDelete builder.
type FeedConfigDeleteOne ¶ added in v0.0.5
type FeedConfigDeleteOne struct {
// contains filtered or unexported fields
}
FeedConfigDeleteOne is the builder for deleting a single FeedConfig entity.
func (*FeedConfigDeleteOne) Exec ¶ added in v0.0.5
func (fcdo *FeedConfigDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FeedConfigDeleteOne) ExecX ¶ added in v0.0.5
func (fcdo *FeedConfigDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigDeleteOne) Where ¶ added in v0.0.5
func (fcdo *FeedConfigDeleteOne) Where(ps ...predicate.FeedConfig) *FeedConfigDeleteOne
Where appends a list predicates to the FeedConfigDelete builder.
type FeedConfigEdges ¶ added in v0.0.5
type FeedConfigEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // Feed holds the value of the feed edge. Feed *Feed `json:"feed,omitempty"` // contains filtered or unexported fields }
FeedConfigEdges holds the relations/edges for other nodes in the graph.
func (FeedConfigEdges) FeedOrErr ¶ added in v0.0.5
func (e FeedConfigEdges) FeedOrErr() (*Feed, error)
FeedOrErr returns the Feed value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (FeedConfigEdges) UserOrErr ¶ added in v0.0.6
func (e FeedConfigEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type FeedConfigGroupBy ¶ added in v0.0.5
type FeedConfigGroupBy struct {
// contains filtered or unexported fields
}
FeedConfigGroupBy is the group-by builder for FeedConfig entities.
func (*FeedConfigGroupBy) Aggregate ¶ added in v0.0.5
func (fcgb *FeedConfigGroupBy) Aggregate(fns ...AggregateFunc) *FeedConfigGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FeedConfigGroupBy) Bool ¶ added in v0.0.5
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) BoolX ¶ added in v0.0.5
BoolX is like Bool, but panics if an error occurs.
func (*FeedConfigGroupBy) Bools ¶ added in v0.0.5
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) BoolsX ¶ added in v0.0.5
BoolsX is like Bools, but panics if an error occurs.
func (*FeedConfigGroupBy) Float64 ¶ added in v0.0.5
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) Float64X ¶ added in v0.0.5
Float64X is like Float64, but panics if an error occurs.
func (*FeedConfigGroupBy) Float64s ¶ added in v0.0.5
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) Float64sX ¶ added in v0.0.5
Float64sX is like Float64s, but panics if an error occurs.
func (*FeedConfigGroupBy) Int ¶ added in v0.0.5
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) Ints ¶ added in v0.0.5
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) IntsX ¶ added in v0.0.5
IntsX is like Ints, but panics if an error occurs.
func (*FeedConfigGroupBy) Scan ¶ added in v0.0.5
func (fcgb *FeedConfigGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeedConfigGroupBy) ScanX ¶ added in v0.0.5
ScanX is like Scan, but panics if an error occurs.
func (*FeedConfigGroupBy) String ¶ added in v0.0.5
String returns a single string from a selector. It is only allowed when selecting one field.
func (*FeedConfigGroupBy) StringX ¶ added in v0.0.5
StringX is like String, but panics if an error occurs.
type FeedConfigMutation ¶ added in v0.0.5
type FeedConfigMutation struct {
// contains filtered or unexported fields
}
FeedConfigMutation represents an operation that mutates the FeedConfig nodes in the graph.
func (*FeedConfigMutation) AddAuthorAccount ¶ added in v0.0.5
func (m *FeedConfigMutation) AddAuthorAccount(mi model.InternalID)
AddAuthorAccount adds mi to the "author_account" field.
func (*FeedConfigMutation) AddField ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) AddPullInterval ¶ added in v0.0.5
func (m *FeedConfigMutation) AddPullInterval(t time.Duration)
AddPullInterval adds t to the "pull_interval" field.
func (*FeedConfigMutation) AddedAuthorAccount ¶ added in v0.0.5
func (m *FeedConfigMutation) AddedAuthorAccount() (r model.InternalID, exists bool)
AddedAuthorAccount returns the value that was added to the "author_account" field in this mutation.
func (*FeedConfigMutation) AddedEdges ¶ added in v0.0.5
func (m *FeedConfigMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FeedConfigMutation) AddedField ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) AddedFields ¶ added in v0.0.5
func (m *FeedConfigMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FeedConfigMutation) AddedIDs ¶ added in v0.0.5
func (m *FeedConfigMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FeedConfigMutation) AddedPullInterval ¶ added in v0.0.5
func (m *FeedConfigMutation) AddedPullInterval() (r time.Duration, exists bool)
AddedPullInterval returns the value that was added to the "pull_interval" field in this mutation.
func (*FeedConfigMutation) AuthorAccount ¶ added in v0.0.5
func (m *FeedConfigMutation) AuthorAccount() (r model.InternalID, exists bool)
AuthorAccount returns the value of the "author_account" field in the mutation.
func (*FeedConfigMutation) ClearEdge ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) ClearFeed ¶ added in v0.0.5
func (m *FeedConfigMutation) ClearFeed()
ClearFeed clears the "feed" edge to the Feed entity.
func (*FeedConfigMutation) ClearField ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) ClearUser ¶ added in v0.0.6
func (m *FeedConfigMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*FeedConfigMutation) ClearedEdges ¶ added in v0.0.5
func (m *FeedConfigMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FeedConfigMutation) ClearedFields ¶ added in v0.0.5
func (m *FeedConfigMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FeedConfigMutation) Client ¶ added in v0.0.5
func (m FeedConfigMutation) 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 (*FeedConfigMutation) CreatedAt ¶ added in v0.0.5
func (m *FeedConfigMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FeedConfigMutation) EdgeCleared ¶ added in v0.0.5
func (m *FeedConfigMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FeedConfigMutation) FeedCleared ¶ added in v0.0.5
func (m *FeedConfigMutation) FeedCleared() bool
FeedCleared reports if the "feed" edge to the Feed entity was cleared.
func (*FeedConfigMutation) FeedID ¶ added in v0.0.6
func (m *FeedConfigMutation) FeedID() (id model.InternalID, exists bool)
FeedID returns the "feed" edge ID in the mutation.
func (*FeedConfigMutation) FeedIDs ¶ added in v0.0.5
func (m *FeedConfigMutation) FeedIDs() (ids []model.InternalID)
FeedIDs returns the "feed" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FeedID instead. It exists only for internal usage by the builders.
func (*FeedConfigMutation) FeedURL ¶ added in v0.0.5
func (m *FeedConfigMutation) FeedURL() (r string, exists bool)
FeedURL returns the value of the "feed_url" field in the mutation.
func (*FeedConfigMutation) Field ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) FieldCleared ¶ added in v0.0.5
func (m *FeedConfigMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FeedConfigMutation) Fields ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) ID ¶ added in v0.0.5
func (m *FeedConfigMutation) ID() (id model.InternalID, 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 (*FeedConfigMutation) IDs ¶ added in v0.0.5
func (m *FeedConfigMutation) IDs(ctx context.Context) ([]model.InternalID, 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 (*FeedConfigMutation) LatestPullAt ¶ added in v0.0.8
func (m *FeedConfigMutation) LatestPullAt() (r time.Time, exists bool)
LatestPullAt returns the value of the "latest_pull_at" field in the mutation.
func (*FeedConfigMutation) NextPullBeginAt ¶ added in v0.0.5
func (m *FeedConfigMutation) NextPullBeginAt() (r time.Time, exists bool)
NextPullBeginAt returns the value of the "next_pull_begin_at" field in the mutation.
func (*FeedConfigMutation) OldAuthorAccount ¶ added in v0.0.5
func (m *FeedConfigMutation) OldAuthorAccount(ctx context.Context) (v model.InternalID, err error)
OldAuthorAccount returns the old "author_account" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldCreatedAt ¶ added in v0.0.5
OldCreatedAt returns the old "created_at" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldFeedURL ¶ added in v0.0.5
func (m *FeedConfigMutation) OldFeedURL(ctx context.Context) (v string, err error)
OldFeedURL returns the old "feed_url" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldField ¶ added in v0.0.5
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 (*FeedConfigMutation) OldLatestPullAt ¶ added in v0.0.8
OldLatestPullAt returns the old "latest_pull_at" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldNextPullBeginAt ¶ added in v0.0.5
OldNextPullBeginAt returns the old "next_pull_begin_at" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldPullInterval ¶ added in v0.0.5
OldPullInterval returns the old "pull_interval" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldSource ¶ added in v0.0.5
func (m *FeedConfigMutation) OldSource(ctx context.Context) (v feedconfig.Source, err error)
OldSource returns the old "source" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldStatus ¶ added in v0.0.5
func (m *FeedConfigMutation) OldStatus(ctx context.Context) (v feedconfig.Status, err error)
OldStatus returns the old "status" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) OldUpdatedAt ¶ added in v0.0.5
OldUpdatedAt returns the old "updated_at" field's value of the FeedConfig entity. If the FeedConfig object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedConfigMutation) Op ¶ added in v0.0.5
func (m *FeedConfigMutation) Op() Op
Op returns the operation name.
func (*FeedConfigMutation) PullInterval ¶ added in v0.0.5
func (m *FeedConfigMutation) PullInterval() (r time.Duration, exists bool)
PullInterval returns the value of the "pull_interval" field in the mutation.
func (*FeedConfigMutation) RemovedEdges ¶ added in v0.0.5
func (m *FeedConfigMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FeedConfigMutation) RemovedIDs ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) ResetAuthorAccount ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetAuthorAccount()
ResetAuthorAccount resets all changes to the "author_account" field.
func (*FeedConfigMutation) ResetCreatedAt ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FeedConfigMutation) ResetEdge ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) ResetFeed ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetFeed()
ResetFeed resets all changes to the "feed" edge.
func (*FeedConfigMutation) ResetFeedURL ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetFeedURL()
ResetFeedURL resets all changes to the "feed_url" field.
func (*FeedConfigMutation) ResetField ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) ResetLatestPullAt ¶ added in v0.0.8
func (m *FeedConfigMutation) ResetLatestPullAt()
ResetLatestPullAt resets all changes to the "latest_pull_at" field.
func (*FeedConfigMutation) ResetNextPullBeginAt ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetNextPullBeginAt()
ResetNextPullBeginAt resets all changes to the "next_pull_begin_at" field.
func (*FeedConfigMutation) ResetPullInterval ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetPullInterval()
ResetPullInterval resets all changes to the "pull_interval" field.
func (*FeedConfigMutation) ResetSource ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetSource()
ResetSource resets all changes to the "source" field.
func (*FeedConfigMutation) ResetStatus ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FeedConfigMutation) ResetUpdatedAt ¶ added in v0.0.5
func (m *FeedConfigMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FeedConfigMutation) ResetUser ¶ added in v0.0.6
func (m *FeedConfigMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*FeedConfigMutation) SetAuthorAccount ¶ added in v0.0.5
func (m *FeedConfigMutation) SetAuthorAccount(mi model.InternalID)
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigMutation) SetCreatedAt ¶ added in v0.0.5
func (m *FeedConfigMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*FeedConfigMutation) SetFeedID ¶ added in v0.0.6
func (m *FeedConfigMutation) SetFeedID(id model.InternalID)
SetFeedID sets the "feed" edge to the Feed entity by id.
func (*FeedConfigMutation) SetFeedURL ¶ added in v0.0.5
func (m *FeedConfigMutation) SetFeedURL(s string)
SetFeedURL sets the "feed_url" field.
func (*FeedConfigMutation) SetField ¶ added in v0.0.5
func (m *FeedConfigMutation) 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 (*FeedConfigMutation) SetID ¶ added in v0.0.6
func (m *FeedConfigMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FeedConfig entities.
func (*FeedConfigMutation) SetLatestPullAt ¶ added in v0.0.8
func (m *FeedConfigMutation) SetLatestPullAt(t time.Time)
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigMutation) SetNextPullBeginAt ¶ added in v0.0.5
func (m *FeedConfigMutation) SetNextPullBeginAt(t time.Time)
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigMutation) SetOp ¶ added in v0.0.5
func (m *FeedConfigMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*FeedConfigMutation) SetPullInterval ¶ added in v0.0.5
func (m *FeedConfigMutation) SetPullInterval(t time.Duration)
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigMutation) SetSource ¶ added in v0.0.5
func (m *FeedConfigMutation) SetSource(f feedconfig.Source)
SetSource sets the "source" field.
func (*FeedConfigMutation) SetStatus ¶ added in v0.0.5
func (m *FeedConfigMutation) SetStatus(f feedconfig.Status)
SetStatus sets the "status" field.
func (*FeedConfigMutation) SetUpdatedAt ¶ added in v0.0.5
func (m *FeedConfigMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigMutation) SetUserID ¶ added in v0.0.6
func (m *FeedConfigMutation) SetUserID(id model.InternalID)
SetUserID sets the "user" edge to the User entity by id.
func (*FeedConfigMutation) Source ¶ added in v0.0.5
func (m *FeedConfigMutation) Source() (r feedconfig.Source, exists bool)
Source returns the value of the "source" field in the mutation.
func (*FeedConfigMutation) Status ¶ added in v0.0.5
func (m *FeedConfigMutation) Status() (r feedconfig.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (FeedConfigMutation) Tx ¶ added in v0.0.5
func (m FeedConfigMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FeedConfigMutation) Type ¶ added in v0.0.5
func (m *FeedConfigMutation) Type() string
Type returns the node type of this mutation (FeedConfig).
func (*FeedConfigMutation) UpdatedAt ¶ added in v0.0.5
func (m *FeedConfigMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FeedConfigMutation) UserCleared ¶ added in v0.0.6
func (m *FeedConfigMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*FeedConfigMutation) UserID ¶ added in v0.0.6
func (m *FeedConfigMutation) UserID() (id model.InternalID, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*FeedConfigMutation) UserIDs ¶ added in v0.0.6
func (m *FeedConfigMutation) UserIDs() (ids []model.InternalID)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*FeedConfigMutation) Where ¶ added in v0.0.5
func (m *FeedConfigMutation) Where(ps ...predicate.FeedConfig)
Where appends a list predicates to the FeedConfigMutation builder.
func (*FeedConfigMutation) WhereP ¶ added in v0.0.5
func (m *FeedConfigMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FeedConfigMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FeedConfigQuery ¶ added in v0.0.5
type FeedConfigQuery struct {
// contains filtered or unexported fields
}
FeedConfigQuery is the builder for querying FeedConfig entities.
func (*FeedConfigQuery) Aggregate ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Aggregate(fns ...AggregateFunc) *FeedConfigSelect
Aggregate returns a FeedConfigSelect configured with the given aggregations.
func (*FeedConfigQuery) All ¶ added in v0.0.5
func (fcq *FeedConfigQuery) All(ctx context.Context) ([]*FeedConfig, error)
All executes the query and returns a list of FeedConfigs.
func (*FeedConfigQuery) AllX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) AllX(ctx context.Context) []*FeedConfig
AllX is like All, but panics if an error occurs.
func (*FeedConfigQuery) Clone ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Clone() *FeedConfigQuery
Clone returns a duplicate of the FeedConfigQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FeedConfigQuery) Count ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FeedConfigQuery) CountX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FeedConfigQuery) Exist ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FeedConfigQuery) ExistX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FeedConfigQuery) First ¶ added in v0.0.5
func (fcq *FeedConfigQuery) First(ctx context.Context) (*FeedConfig, error)
First returns the first FeedConfig entity from the query. Returns a *NotFoundError when no FeedConfig was found.
func (*FeedConfigQuery) FirstID ¶ added in v0.0.5
func (fcq *FeedConfigQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
FirstID returns the first FeedConfig ID from the query. Returns a *NotFoundError when no FeedConfig ID was found.
func (*FeedConfigQuery) FirstIDX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*FeedConfigQuery) FirstX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) FirstX(ctx context.Context) *FeedConfig
FirstX is like First, but panics if an error occurs.
func (*FeedConfigQuery) GroupBy ¶ added in v0.0.5
func (fcq *FeedConfigQuery) GroupBy(field string, fields ...string) *FeedConfigGroupBy
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 { FeedURL string `json:"feed_url,omitempty"` Count int `json:"count,omitempty"` } client.FeedConfig.Query(). GroupBy(feedconfig.FieldFeedURL). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FeedConfigQuery) IDs ¶ added in v0.0.5
func (fcq *FeedConfigQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
IDs executes the query and returns a list of FeedConfig IDs.
func (*FeedConfigQuery) IDsX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*FeedConfigQuery) Limit ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Limit(limit int) *FeedConfigQuery
Limit the number of records to be returned by this query.
func (*FeedConfigQuery) Offset ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Offset(offset int) *FeedConfigQuery
Offset to start from.
func (*FeedConfigQuery) Only ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Only(ctx context.Context) (*FeedConfig, error)
Only returns a single FeedConfig entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FeedConfig entity is found. Returns a *NotFoundError when no FeedConfig entities are found.
func (*FeedConfigQuery) OnlyID ¶ added in v0.0.5
func (fcq *FeedConfigQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
OnlyID is like Only, but returns the only FeedConfig ID in the query. Returns a *NotSingularError when more than one FeedConfig ID is found. Returns a *NotFoundError when no entities are found.
func (*FeedConfigQuery) OnlyIDX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FeedConfigQuery) OnlyX ¶ added in v0.0.5
func (fcq *FeedConfigQuery) OnlyX(ctx context.Context) *FeedConfig
OnlyX is like Only, but panics if an error occurs.
func (*FeedConfigQuery) Order ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Order(o ...OrderFunc) *FeedConfigQuery
Order specifies how the records should be ordered.
func (*FeedConfigQuery) QueryFeed ¶ added in v0.0.5
func (fcq *FeedConfigQuery) QueryFeed() *FeedQuery
QueryFeed chains the current query on the "feed" edge.
func (*FeedConfigQuery) QueryUser ¶ added in v0.0.6
func (fcq *FeedConfigQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*FeedConfigQuery) Select ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Select(fields ...string) *FeedConfigSelect
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 { FeedURL string `json:"feed_url,omitempty"` } client.FeedConfig.Query(). Select(feedconfig.FieldFeedURL). Scan(ctx, &v)
func (*FeedConfigQuery) Unique ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Unique(unique bool) *FeedConfigQuery
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 (*FeedConfigQuery) Where ¶ added in v0.0.5
func (fcq *FeedConfigQuery) Where(ps ...predicate.FeedConfig) *FeedConfigQuery
Where adds a new predicate for the FeedConfigQuery builder.
func (*FeedConfigQuery) WithFeed ¶ added in v0.0.5
func (fcq *FeedConfigQuery) WithFeed(opts ...func(*FeedQuery)) *FeedConfigQuery
WithFeed tells the query-builder to eager-load the nodes that are connected to the "feed" edge. The optional arguments are used to configure the query builder of the edge.
func (*FeedConfigQuery) WithUser ¶ added in v0.0.6
func (fcq *FeedConfigQuery) WithUser(opts ...func(*UserQuery)) *FeedConfigQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type FeedConfigSelect ¶ added in v0.0.5
type FeedConfigSelect struct { *FeedConfigQuery // contains filtered or unexported fields }
FeedConfigSelect is the builder for selecting fields of FeedConfig entities.
func (*FeedConfigSelect) Aggregate ¶ added in v0.0.5
func (fcs *FeedConfigSelect) Aggregate(fns ...AggregateFunc) *FeedConfigSelect
Aggregate adds the given aggregation functions to the selector query.
func (*FeedConfigSelect) Bool ¶ added in v0.0.5
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) Bools ¶ added in v0.0.5
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) BoolsX ¶ added in v0.0.5
BoolsX is like Bools, but panics if an error occurs.
func (*FeedConfigSelect) Float64 ¶ added in v0.0.5
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) Float64X ¶ added in v0.0.5
Float64X is like Float64, but panics if an error occurs.
func (*FeedConfigSelect) Float64s ¶ added in v0.0.5
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) Float64sX ¶ added in v0.0.5
Float64sX is like Float64s, but panics if an error occurs.
func (*FeedConfigSelect) Int ¶ added in v0.0.5
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) Ints ¶ added in v0.0.5
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) Scan ¶ added in v0.0.5
func (fcs *FeedConfigSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeedConfigSelect) String ¶ added in v0.0.5
String returns a single string from a selector. It is only allowed when selecting one field.
func (*FeedConfigSelect) StringX ¶ added in v0.0.5
StringX is like String, but panics if an error occurs.
type FeedConfigUpdate ¶ added in v0.0.5
type FeedConfigUpdate struct {
// contains filtered or unexported fields
}
FeedConfigUpdate is the builder for updating FeedConfig entities.
func (*FeedConfigUpdate) AddAuthorAccount ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) AddAuthorAccount(mi model.InternalID) *FeedConfigUpdate
AddAuthorAccount adds mi to the "author_account" field.
func (*FeedConfigUpdate) AddPullInterval ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) AddPullInterval(t time.Duration) *FeedConfigUpdate
AddPullInterval adds t to the "pull_interval" field.
func (*FeedConfigUpdate) ClearFeed ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) ClearFeed() *FeedConfigUpdate
ClearFeed clears the "feed" edge to the Feed entity.
func (*FeedConfigUpdate) ClearUser ¶ added in v0.0.6
func (fcu *FeedConfigUpdate) ClearUser() *FeedConfigUpdate
ClearUser clears the "user" edge to the User entity.
func (*FeedConfigUpdate) Exec ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedConfigUpdate) ExecX ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigUpdate) Mutation ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) Mutation() *FeedConfigMutation
Mutation returns the FeedConfigMutation object of the builder.
func (*FeedConfigUpdate) Save ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FeedConfigUpdate) SaveX ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FeedConfigUpdate) SetAuthorAccount ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetAuthorAccount(mi model.InternalID) *FeedConfigUpdate
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigUpdate) SetCreatedAt ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetCreatedAt(t time.Time) *FeedConfigUpdate
SetCreatedAt sets the "created_at" field.
func (*FeedConfigUpdate) SetFeed ¶ added in v0.0.6
func (fcu *FeedConfigUpdate) SetFeed(f *Feed) *FeedConfigUpdate
SetFeed sets the "feed" edge to the Feed entity.
func (*FeedConfigUpdate) SetFeedID ¶ added in v0.0.6
func (fcu *FeedConfigUpdate) SetFeedID(id model.InternalID) *FeedConfigUpdate
SetFeedID sets the "feed" edge to the Feed entity by ID.
func (*FeedConfigUpdate) SetFeedURL ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetFeedURL(s string) *FeedConfigUpdate
SetFeedURL sets the "feed_url" field.
func (*FeedConfigUpdate) SetLatestPullAt ¶ added in v0.0.8
func (fcu *FeedConfigUpdate) SetLatestPullAt(t time.Time) *FeedConfigUpdate
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigUpdate) SetNextPullBeginAt ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetNextPullBeginAt(t time.Time) *FeedConfigUpdate
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigUpdate) SetNillableCreatedAt ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetNillableCreatedAt(t *time.Time) *FeedConfigUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedConfigUpdate) SetNillableFeedID ¶ added in v0.0.6
func (fcu *FeedConfigUpdate) SetNillableFeedID(id *model.InternalID) *FeedConfigUpdate
SetNillableFeedID sets the "feed" edge to the Feed entity by ID if the given value is not nil.
func (*FeedConfigUpdate) SetNillableLatestPullAt ¶ added in v0.0.8
func (fcu *FeedConfigUpdate) SetNillableLatestPullAt(t *time.Time) *FeedConfigUpdate
SetNillableLatestPullAt sets the "latest_pull_at" field if the given value is not nil.
func (*FeedConfigUpdate) SetNillableNextPullBeginAt ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetNillableNextPullBeginAt(t *time.Time) *FeedConfigUpdate
SetNillableNextPullBeginAt sets the "next_pull_begin_at" field if the given value is not nil.
func (*FeedConfigUpdate) SetPullInterval ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetPullInterval(t time.Duration) *FeedConfigUpdate
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigUpdate) SetSource ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetSource(f feedconfig.Source) *FeedConfigUpdate
SetSource sets the "source" field.
func (*FeedConfigUpdate) SetStatus ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetStatus(f feedconfig.Status) *FeedConfigUpdate
SetStatus sets the "status" field.
func (*FeedConfigUpdate) SetUpdatedAt ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) SetUpdatedAt(t time.Time) *FeedConfigUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigUpdate) SetUser ¶ added in v0.0.6
func (fcu *FeedConfigUpdate) SetUser(u *User) *FeedConfigUpdate
SetUser sets the "user" edge to the User entity.
func (*FeedConfigUpdate) SetUserID ¶ added in v0.0.6
func (fcu *FeedConfigUpdate) SetUserID(id model.InternalID) *FeedConfigUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*FeedConfigUpdate) Where ¶ added in v0.0.5
func (fcu *FeedConfigUpdate) Where(ps ...predicate.FeedConfig) *FeedConfigUpdate
Where appends a list predicates to the FeedConfigUpdate builder.
type FeedConfigUpdateOne ¶ added in v0.0.5
type FeedConfigUpdateOne struct {
// contains filtered or unexported fields
}
FeedConfigUpdateOne is the builder for updating a single FeedConfig entity.
func (*FeedConfigUpdateOne) AddAuthorAccount ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) AddAuthorAccount(mi model.InternalID) *FeedConfigUpdateOne
AddAuthorAccount adds mi to the "author_account" field.
func (*FeedConfigUpdateOne) AddPullInterval ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) AddPullInterval(t time.Duration) *FeedConfigUpdateOne
AddPullInterval adds t to the "pull_interval" field.
func (*FeedConfigUpdateOne) ClearFeed ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) ClearFeed() *FeedConfigUpdateOne
ClearFeed clears the "feed" edge to the Feed entity.
func (*FeedConfigUpdateOne) ClearUser ¶ added in v0.0.6
func (fcuo *FeedConfigUpdateOne) ClearUser() *FeedConfigUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*FeedConfigUpdateOne) Exec ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FeedConfigUpdateOne) ExecX ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigUpdateOne) Mutation ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) Mutation() *FeedConfigMutation
Mutation returns the FeedConfigMutation object of the builder.
func (*FeedConfigUpdateOne) Save ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) Save(ctx context.Context) (*FeedConfig, error)
Save executes the query and returns the updated FeedConfig entity.
func (*FeedConfigUpdateOne) SaveX ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SaveX(ctx context.Context) *FeedConfig
SaveX is like Save, but panics if an error occurs.
func (*FeedConfigUpdateOne) Select ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) Select(field string, fields ...string) *FeedConfigUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FeedConfigUpdateOne) SetAuthorAccount ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetAuthorAccount(mi model.InternalID) *FeedConfigUpdateOne
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigUpdateOne) SetCreatedAt ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetCreatedAt(t time.Time) *FeedConfigUpdateOne
SetCreatedAt sets the "created_at" field.
func (*FeedConfigUpdateOne) SetFeed ¶ added in v0.0.6
func (fcuo *FeedConfigUpdateOne) SetFeed(f *Feed) *FeedConfigUpdateOne
SetFeed sets the "feed" edge to the Feed entity.
func (*FeedConfigUpdateOne) SetFeedID ¶ added in v0.0.6
func (fcuo *FeedConfigUpdateOne) SetFeedID(id model.InternalID) *FeedConfigUpdateOne
SetFeedID sets the "feed" edge to the Feed entity by ID.
func (*FeedConfigUpdateOne) SetFeedURL ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetFeedURL(s string) *FeedConfigUpdateOne
SetFeedURL sets the "feed_url" field.
func (*FeedConfigUpdateOne) SetLatestPullAt ¶ added in v0.0.8
func (fcuo *FeedConfigUpdateOne) SetLatestPullAt(t time.Time) *FeedConfigUpdateOne
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigUpdateOne) SetNextPullBeginAt ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetNextPullBeginAt(t time.Time) *FeedConfigUpdateOne
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigUpdateOne) SetNillableCreatedAt ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetNillableCreatedAt(t *time.Time) *FeedConfigUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedConfigUpdateOne) SetNillableFeedID ¶ added in v0.0.6
func (fcuo *FeedConfigUpdateOne) SetNillableFeedID(id *model.InternalID) *FeedConfigUpdateOne
SetNillableFeedID sets the "feed" edge to the Feed entity by ID if the given value is not nil.
func (*FeedConfigUpdateOne) SetNillableLatestPullAt ¶ added in v0.0.8
func (fcuo *FeedConfigUpdateOne) SetNillableLatestPullAt(t *time.Time) *FeedConfigUpdateOne
SetNillableLatestPullAt sets the "latest_pull_at" field if the given value is not nil.
func (*FeedConfigUpdateOne) SetNillableNextPullBeginAt ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetNillableNextPullBeginAt(t *time.Time) *FeedConfigUpdateOne
SetNillableNextPullBeginAt sets the "next_pull_begin_at" field if the given value is not nil.
func (*FeedConfigUpdateOne) SetPullInterval ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetPullInterval(t time.Duration) *FeedConfigUpdateOne
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigUpdateOne) SetSource ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetSource(f feedconfig.Source) *FeedConfigUpdateOne
SetSource sets the "source" field.
func (*FeedConfigUpdateOne) SetStatus ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetStatus(f feedconfig.Status) *FeedConfigUpdateOne
SetStatus sets the "status" field.
func (*FeedConfigUpdateOne) SetUpdatedAt ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) SetUpdatedAt(t time.Time) *FeedConfigUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigUpdateOne) SetUser ¶ added in v0.0.6
func (fcuo *FeedConfigUpdateOne) SetUser(u *User) *FeedConfigUpdateOne
SetUser sets the "user" edge to the User entity.
func (*FeedConfigUpdateOne) SetUserID ¶ added in v0.0.6
func (fcuo *FeedConfigUpdateOne) SetUserID(id model.InternalID) *FeedConfigUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*FeedConfigUpdateOne) Where ¶ added in v0.0.5
func (fcuo *FeedConfigUpdateOne) Where(ps ...predicate.FeedConfig) *FeedConfigUpdateOne
Where appends a list predicates to the FeedConfigUpdate builder.
type FeedConfigUpsert ¶ added in v0.0.5
FeedConfigUpsert is the "OnConflict" setter.
func (*FeedConfigUpsert) AddAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsert) AddAuthorAccount(v model.InternalID) *FeedConfigUpsert
AddAuthorAccount adds v to the "author_account" field.
func (*FeedConfigUpsert) AddPullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsert) AddPullInterval(v time.Duration) *FeedConfigUpsert
AddPullInterval adds v to the "pull_interval" field.
func (*FeedConfigUpsert) SetAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetAuthorAccount(v model.InternalID) *FeedConfigUpsert
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigUpsert) SetCreatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetCreatedAt(v time.Time) *FeedConfigUpsert
SetCreatedAt sets the "created_at" field.
func (*FeedConfigUpsert) SetFeedURL ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetFeedURL(v string) *FeedConfigUpsert
SetFeedURL sets the "feed_url" field.
func (*FeedConfigUpsert) SetLatestPullAt ¶ added in v0.0.8
func (u *FeedConfigUpsert) SetLatestPullAt(v time.Time) *FeedConfigUpsert
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigUpsert) SetNextPullBeginAt ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetNextPullBeginAt(v time.Time) *FeedConfigUpsert
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigUpsert) SetPullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetPullInterval(v time.Duration) *FeedConfigUpsert
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigUpsert) SetSource ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetSource(v feedconfig.Source) *FeedConfigUpsert
SetSource sets the "source" field.
func (*FeedConfigUpsert) SetStatus ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetStatus(v feedconfig.Status) *FeedConfigUpsert
SetStatus sets the "status" field.
func (*FeedConfigUpsert) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsert) SetUpdatedAt(v time.Time) *FeedConfigUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigUpsert) UpdateAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateAuthorAccount() *FeedConfigUpsert
UpdateAuthorAccount sets the "author_account" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateCreatedAt() *FeedConfigUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateFeedURL ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateFeedURL() *FeedConfigUpsert
UpdateFeedURL sets the "feed_url" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateLatestPullAt ¶ added in v0.0.8
func (u *FeedConfigUpsert) UpdateLatestPullAt() *FeedConfigUpsert
UpdateLatestPullAt sets the "latest_pull_at" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateNextPullBeginAt ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateNextPullBeginAt() *FeedConfigUpsert
UpdateNextPullBeginAt sets the "next_pull_begin_at" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdatePullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdatePullInterval() *FeedConfigUpsert
UpdatePullInterval sets the "pull_interval" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateSource ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateSource() *FeedConfigUpsert
UpdateSource sets the "source" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateStatus ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateStatus() *FeedConfigUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FeedConfigUpsert) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsert) UpdateUpdatedAt() *FeedConfigUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeedConfigUpsertBulk ¶ added in v0.0.5
type FeedConfigUpsertBulk struct {
// contains filtered or unexported fields
}
FeedConfigUpsertBulk is the builder for "upsert"-ing a bulk of FeedConfig nodes.
func (*FeedConfigUpsertBulk) AddAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) AddAuthorAccount(v model.InternalID) *FeedConfigUpsertBulk
AddAuthorAccount adds v to the "author_account" field.
func (*FeedConfigUpsertBulk) AddPullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) AddPullInterval(v time.Duration) *FeedConfigUpsertBulk
AddPullInterval adds v to the "pull_interval" field.
func (*FeedConfigUpsertBulk) DoNothing ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) DoNothing() *FeedConfigUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeedConfigUpsertBulk) Exec ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedConfigUpsertBulk) ExecX ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigUpsertBulk) Ignore ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) Ignore() *FeedConfigUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FeedConfig.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeedConfigUpsertBulk) SetAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetAuthorAccount(v model.InternalID) *FeedConfigUpsertBulk
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigUpsertBulk) SetCreatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetCreatedAt(v time.Time) *FeedConfigUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FeedConfigUpsertBulk) SetFeedURL ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetFeedURL(v string) *FeedConfigUpsertBulk
SetFeedURL sets the "feed_url" field.
func (*FeedConfigUpsertBulk) SetLatestPullAt ¶ added in v0.0.8
func (u *FeedConfigUpsertBulk) SetLatestPullAt(v time.Time) *FeedConfigUpsertBulk
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigUpsertBulk) SetNextPullBeginAt ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetNextPullBeginAt(v time.Time) *FeedConfigUpsertBulk
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigUpsertBulk) SetPullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetPullInterval(v time.Duration) *FeedConfigUpsertBulk
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigUpsertBulk) SetSource ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetSource(v feedconfig.Source) *FeedConfigUpsertBulk
SetSource sets the "source" field.
func (*FeedConfigUpsertBulk) SetStatus ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetStatus(v feedconfig.Status) *FeedConfigUpsertBulk
SetStatus sets the "status" field.
func (*FeedConfigUpsertBulk) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) SetUpdatedAt(v time.Time) *FeedConfigUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigUpsertBulk) Update ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) Update(set func(*FeedConfigUpsert)) *FeedConfigUpsertBulk
Update allows overriding fields `UPDATE` values. See the FeedConfigCreateBulk.OnConflict documentation for more info.
func (*FeedConfigUpsertBulk) UpdateAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateAuthorAccount() *FeedConfigUpsertBulk
UpdateAuthorAccount sets the "author_account" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateCreatedAt() *FeedConfigUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateFeedURL ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateFeedURL() *FeedConfigUpsertBulk
UpdateFeedURL sets the "feed_url" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateLatestPullAt ¶ added in v0.0.8
func (u *FeedConfigUpsertBulk) UpdateLatestPullAt() *FeedConfigUpsertBulk
UpdateLatestPullAt sets the "latest_pull_at" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateNewValues ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateNewValues() *FeedConfigUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FeedConfig.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(feedconfig.FieldID) }), ). Exec(ctx)
func (*FeedConfigUpsertBulk) UpdateNextPullBeginAt ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateNextPullBeginAt() *FeedConfigUpsertBulk
UpdateNextPullBeginAt sets the "next_pull_begin_at" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdatePullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdatePullInterval() *FeedConfigUpsertBulk
UpdatePullInterval sets the "pull_interval" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateSource ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateSource() *FeedConfigUpsertBulk
UpdateSource sets the "source" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateStatus ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateStatus() *FeedConfigUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FeedConfigUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertBulk) UpdateUpdatedAt() *FeedConfigUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeedConfigUpsertOne ¶ added in v0.0.5
type FeedConfigUpsertOne struct {
// contains filtered or unexported fields
}
FeedConfigUpsertOne is the builder for "upsert"-ing
one FeedConfig node.
func (*FeedConfigUpsertOne) AddAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) AddAuthorAccount(v model.InternalID) *FeedConfigUpsertOne
AddAuthorAccount adds v to the "author_account" field.
func (*FeedConfigUpsertOne) AddPullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) AddPullInterval(v time.Duration) *FeedConfigUpsertOne
AddPullInterval adds v to the "pull_interval" field.
func (*FeedConfigUpsertOne) DoNothing ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) DoNothing() *FeedConfigUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeedConfigUpsertOne) Exec ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedConfigUpsertOne) ExecX ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedConfigUpsertOne) ID ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FeedConfigUpsertOne) IDX ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*FeedConfigUpsertOne) Ignore ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) Ignore() *FeedConfigUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FeedConfig.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeedConfigUpsertOne) SetAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetAuthorAccount(v model.InternalID) *FeedConfigUpsertOne
SetAuthorAccount sets the "author_account" field.
func (*FeedConfigUpsertOne) SetCreatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetCreatedAt(v time.Time) *FeedConfigUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FeedConfigUpsertOne) SetFeedURL ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetFeedURL(v string) *FeedConfigUpsertOne
SetFeedURL sets the "feed_url" field.
func (*FeedConfigUpsertOne) SetLatestPullAt ¶ added in v0.0.8
func (u *FeedConfigUpsertOne) SetLatestPullAt(v time.Time) *FeedConfigUpsertOne
SetLatestPullAt sets the "latest_pull_at" field.
func (*FeedConfigUpsertOne) SetNextPullBeginAt ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetNextPullBeginAt(v time.Time) *FeedConfigUpsertOne
SetNextPullBeginAt sets the "next_pull_begin_at" field.
func (*FeedConfigUpsertOne) SetPullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetPullInterval(v time.Duration) *FeedConfigUpsertOne
SetPullInterval sets the "pull_interval" field.
func (*FeedConfigUpsertOne) SetSource ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetSource(v feedconfig.Source) *FeedConfigUpsertOne
SetSource sets the "source" field.
func (*FeedConfigUpsertOne) SetStatus ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetStatus(v feedconfig.Status) *FeedConfigUpsertOne
SetStatus sets the "status" field.
func (*FeedConfigUpsertOne) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) SetUpdatedAt(v time.Time) *FeedConfigUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FeedConfigUpsertOne) Update ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) Update(set func(*FeedConfigUpsert)) *FeedConfigUpsertOne
Update allows overriding fields `UPDATE` values. See the FeedConfigCreate.OnConflict documentation for more info.
func (*FeedConfigUpsertOne) UpdateAuthorAccount ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateAuthorAccount() *FeedConfigUpsertOne
UpdateAuthorAccount sets the "author_account" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateCreatedAt() *FeedConfigUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateFeedURL ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateFeedURL() *FeedConfigUpsertOne
UpdateFeedURL sets the "feed_url" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateLatestPullAt ¶ added in v0.0.8
func (u *FeedConfigUpsertOne) UpdateLatestPullAt() *FeedConfigUpsertOne
UpdateLatestPullAt sets the "latest_pull_at" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateNewValues ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateNewValues() *FeedConfigUpsertOne
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.FeedConfig.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(feedconfig.FieldID) }), ). Exec(ctx)
func (*FeedConfigUpsertOne) UpdateNextPullBeginAt ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateNextPullBeginAt() *FeedConfigUpsertOne
UpdateNextPullBeginAt sets the "next_pull_begin_at" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdatePullInterval ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdatePullInterval() *FeedConfigUpsertOne
UpdatePullInterval sets the "pull_interval" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateSource ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateSource() *FeedConfigUpsertOne
UpdateSource sets the "source" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateStatus ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateStatus() *FeedConfigUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FeedConfigUpsertOne) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedConfigUpsertOne) UpdateUpdatedAt() *FeedConfigUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeedConfigs ¶ added in v0.0.5
type FeedConfigs []*FeedConfig
FeedConfigs is a parsable slice of FeedConfig.
type FeedCreate ¶ added in v0.0.5
type FeedCreate struct {
// contains filtered or unexported fields
}
FeedCreate is the builder for creating a Feed entity.
func (*FeedCreate) AddItem ¶ added in v0.0.6
func (fc *FeedCreate) AddItem(f ...*FeedItem) *FeedCreate
AddItem adds the "item" edges to the FeedItem entity.
func (*FeedCreate) AddItemIDs ¶ added in v0.0.6
func (fc *FeedCreate) AddItemIDs(ids ...model.InternalID) *FeedCreate
AddItemIDs adds the "item" edge to the FeedItem entity by IDs.
func (*FeedCreate) Exec ¶ added in v0.0.5
func (fc *FeedCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedCreate) ExecX ¶ added in v0.0.5
func (fc *FeedCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedCreate) Mutation ¶ added in v0.0.5
func (fc *FeedCreate) Mutation() *FeedMutation
Mutation returns the FeedMutation object of the builder.
func (*FeedCreate) OnConflict ¶ added in v0.0.5
func (fc *FeedCreate) OnConflict(opts ...sql.ConflictOption) *FeedUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Feed.Create(). SetTitle(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.FeedUpsert) { SetTitle(v+v). }). Exec(ctx)
func (*FeedCreate) OnConflictColumns ¶ added in v0.0.5
func (fc *FeedCreate) OnConflictColumns(columns ...string) *FeedUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Feed.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FeedCreate) Save ¶ added in v0.0.5
func (fc *FeedCreate) Save(ctx context.Context) (*Feed, error)
Save creates the Feed in the database.
func (*FeedCreate) SaveX ¶ added in v0.0.5
func (fc *FeedCreate) SaveX(ctx context.Context) *Feed
SaveX calls Save and panics if Save returns an error.
func (*FeedCreate) SetAuthors ¶ added in v0.0.5
func (fc *FeedCreate) SetAuthors(m []*modelfeed.Person) *FeedCreate
SetAuthors sets the "authors" field.
func (*FeedCreate) SetConfig ¶ added in v0.0.5
func (fc *FeedCreate) SetConfig(f *FeedConfig) *FeedCreate
SetConfig sets the "config" edge to the FeedConfig entity.
func (*FeedCreate) SetConfigID ¶ added in v0.0.5
func (fc *FeedCreate) SetConfigID(id model.InternalID) *FeedCreate
SetConfigID sets the "config" edge to the FeedConfig entity by ID.
func (*FeedCreate) SetCreatedAt ¶ added in v0.0.5
func (fc *FeedCreate) SetCreatedAt(t time.Time) *FeedCreate
SetCreatedAt sets the "created_at" field.
func (*FeedCreate) SetDescription ¶ added in v0.0.5
func (fc *FeedCreate) SetDescription(s string) *FeedCreate
SetDescription sets the "description" field.
func (*FeedCreate) SetID ¶ added in v0.0.6
func (fc *FeedCreate) SetID(mi model.InternalID) *FeedCreate
SetID sets the "id" field.
func (*FeedCreate) SetImage ¶ added in v0.0.5
func (fc *FeedCreate) SetImage(m *modelfeed.Image) *FeedCreate
SetImage sets the "image" field.
func (*FeedCreate) SetLanguage ¶ added in v0.0.5
func (fc *FeedCreate) SetLanguage(s string) *FeedCreate
SetLanguage sets the "language" field.
func (*FeedCreate) SetLink ¶ added in v0.0.5
func (fc *FeedCreate) SetLink(s string) *FeedCreate
SetLink sets the "link" field.
func (*FeedCreate) SetNillableCreatedAt ¶ added in v0.0.5
func (fc *FeedCreate) SetNillableCreatedAt(t *time.Time) *FeedCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedCreate) SetNillableDescription ¶ added in v0.0.8
func (fc *FeedCreate) SetNillableDescription(s *string) *FeedCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*FeedCreate) SetNillableLanguage ¶ added in v0.0.8
func (fc *FeedCreate) SetNillableLanguage(s *string) *FeedCreate
SetNillableLanguage sets the "language" field if the given value is not nil.
func (*FeedCreate) SetNillableLink ¶ added in v0.0.8
func (fc *FeedCreate) SetNillableLink(s *string) *FeedCreate
SetNillableLink sets the "link" field if the given value is not nil.
func (*FeedCreate) SetNillableTitle ¶ added in v0.0.8
func (fc *FeedCreate) SetNillableTitle(s *string) *FeedCreate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*FeedCreate) SetNillableUpdatedAt ¶ added in v0.0.5
func (fc *FeedCreate) SetNillableUpdatedAt(t *time.Time) *FeedCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FeedCreate) SetTitle ¶ added in v0.0.5
func (fc *FeedCreate) SetTitle(s string) *FeedCreate
SetTitle sets the "title" field.
func (*FeedCreate) SetUpdatedAt ¶ added in v0.0.5
func (fc *FeedCreate) SetUpdatedAt(t time.Time) *FeedCreate
SetUpdatedAt sets the "updated_at" field.
type FeedCreateBulk ¶ added in v0.0.5
type FeedCreateBulk struct {
// contains filtered or unexported fields
}
FeedCreateBulk is the builder for creating many Feed entities in bulk.
func (*FeedCreateBulk) Exec ¶ added in v0.0.5
func (fcb *FeedCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedCreateBulk) ExecX ¶ added in v0.0.5
func (fcb *FeedCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedCreateBulk) OnConflict ¶ added in v0.0.5
func (fcb *FeedCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeedUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Feed.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.FeedUpsert) { SetTitle(v+v). }). Exec(ctx)
func (*FeedCreateBulk) OnConflictColumns ¶ added in v0.0.5
func (fcb *FeedCreateBulk) OnConflictColumns(columns ...string) *FeedUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Feed.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type FeedDelete ¶ added in v0.0.5
type FeedDelete struct {
// contains filtered or unexported fields
}
FeedDelete is the builder for deleting a Feed entity.
func (*FeedDelete) Exec ¶ added in v0.0.5
func (fd *FeedDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FeedDelete) ExecX ¶ added in v0.0.5
func (fd *FeedDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FeedDelete) Where ¶ added in v0.0.5
func (fd *FeedDelete) Where(ps ...predicate.Feed) *FeedDelete
Where appends a list predicates to the FeedDelete builder.
type FeedDeleteOne ¶ added in v0.0.5
type FeedDeleteOne struct {
// contains filtered or unexported fields
}
FeedDeleteOne is the builder for deleting a single Feed entity.
func (*FeedDeleteOne) Exec ¶ added in v0.0.5
func (fdo *FeedDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FeedDeleteOne) ExecX ¶ added in v0.0.5
func (fdo *FeedDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedDeleteOne) Where ¶ added in v0.0.5
func (fdo *FeedDeleteOne) Where(ps ...predicate.Feed) *FeedDeleteOne
Where appends a list predicates to the FeedDelete builder.
type FeedEdges ¶ added in v0.0.5
type FeedEdges struct { // Item holds the value of the item edge. Item []*FeedItem `json:"item,omitempty"` // Config holds the value of the config edge. Config *FeedConfig `json:"config,omitempty"` // contains filtered or unexported fields }
FeedEdges holds the relations/edges for other nodes in the graph.
func (FeedEdges) ConfigOrErr ¶ added in v0.0.5
func (e FeedEdges) ConfigOrErr() (*FeedConfig, error)
ConfigOrErr returns the Config value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type FeedGroupBy ¶ added in v0.0.5
type FeedGroupBy struct {
// contains filtered or unexported fields
}
FeedGroupBy is the group-by builder for Feed entities.
func (*FeedGroupBy) Aggregate ¶ added in v0.0.5
func (fgb *FeedGroupBy) Aggregate(fns ...AggregateFunc) *FeedGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FeedGroupBy) Bool ¶ added in v0.0.5
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) Bools ¶ added in v0.0.5
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) Float64 ¶ added in v0.0.5
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) Float64X ¶ added in v0.0.5
Float64X is like Float64, but panics if an error occurs.
func (*FeedGroupBy) Float64s ¶ added in v0.0.5
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) Float64sX ¶ added in v0.0.5
Float64sX is like Float64s, but panics if an error occurs.
func (*FeedGroupBy) Int ¶ added in v0.0.5
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) Ints ¶ added in v0.0.5
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) Scan ¶ added in v0.0.5
func (fgb *FeedGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeedGroupBy) String ¶ added in v0.0.5
String returns a single string from a selector. It is only allowed when selecting one field.
func (*FeedGroupBy) StringX ¶ added in v0.0.5
StringX is like String, but panics if an error occurs.
type FeedItem ¶ added in v0.0.5
type FeedItem struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // FeedID holds the value of the "feed_id" field. FeedID model.InternalID `json:"feed_id,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // Authors holds the value of the "authors" field. Authors []*modelfeed.Person `json:"authors,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // Content holds the value of the "content" field. Content string `json:"content,omitempty"` // GUID holds the value of the "guid" field. GUID string `json:"guid,omitempty"` // Link holds the value of the "link" field. Link string `json:"link,omitempty"` // Image holds the value of the "image" field. Image *modelfeed.Image `json:"image,omitempty"` // Published holds the value of the "published" field. Published string `json:"published,omitempty"` // PublishedParsed holds the value of the "published_parsed" field. PublishedParsed *time.Time `json:"published_parsed,omitempty"` // Updated holds the value of the "updated" field. Updated string `json:"updated,omitempty"` // UpdatedParsed holds the value of the "updated_parsed" field. UpdatedParsed *time.Time `json:"updated_parsed,omitempty"` // Enclosures holds the value of the "enclosures" field. Enclosures []*modelfeed.Enclosure `json:"enclosures,omitempty"` // PublishPlatform holds the value of the "publish_platform" field. PublishPlatform string `json:"publish_platform,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FeedItemQuery when eager-loading is set. Edges FeedItemEdges `json:"edges"` // contains filtered or unexported fields }
FeedItem is the model entity for the FeedItem schema.
func (*FeedItem) QueryFeed ¶ added in v0.0.6
QueryFeed queries the "feed" edge of the FeedItem entity.
func (*FeedItem) Unwrap ¶ added in v0.0.5
Unwrap unwraps the FeedItem 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 (*FeedItem) Update ¶ added in v0.0.5
func (fi *FeedItem) Update() *FeedItemUpdateOne
Update returns a builder for updating this FeedItem. Note that you need to call FeedItem.Unwrap() before calling this method if this FeedItem was returned from a transaction, and the transaction was committed or rolled back.
type FeedItemClient ¶ added in v0.0.5
type FeedItemClient struct {
// contains filtered or unexported fields
}
FeedItemClient is a client for the FeedItem schema.
func NewFeedItemClient ¶ added in v0.0.5
func NewFeedItemClient(c config) *FeedItemClient
NewFeedItemClient returns a client for the FeedItem from the given config.
func (*FeedItemClient) Create ¶ added in v0.0.5
func (c *FeedItemClient) Create() *FeedItemCreate
Create returns a builder for creating a FeedItem entity.
func (*FeedItemClient) CreateBulk ¶ added in v0.0.5
func (c *FeedItemClient) CreateBulk(builders ...*FeedItemCreate) *FeedItemCreateBulk
CreateBulk returns a builder for creating a bulk of FeedItem entities.
func (*FeedItemClient) Delete ¶ added in v0.0.5
func (c *FeedItemClient) Delete() *FeedItemDelete
Delete returns a delete builder for FeedItem.
func (*FeedItemClient) DeleteOne ¶ added in v0.0.5
func (c *FeedItemClient) DeleteOne(fi *FeedItem) *FeedItemDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FeedItemClient) DeleteOneID ¶ added in v0.0.5
func (c *FeedItemClient) DeleteOneID(id model.InternalID) *FeedItemDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FeedItemClient) Get ¶ added in v0.0.5
func (c *FeedItemClient) Get(ctx context.Context, id model.InternalID) (*FeedItem, error)
Get returns a FeedItem entity by its id.
func (*FeedItemClient) GetX ¶ added in v0.0.5
func (c *FeedItemClient) GetX(ctx context.Context, id model.InternalID) *FeedItem
GetX is like Get, but panics if an error occurs.
func (*FeedItemClient) Hooks ¶ added in v0.0.5
func (c *FeedItemClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FeedItemClient) Intercept ¶ added in v0.0.5
func (c *FeedItemClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `feeditem.Intercept(f(g(h())))`.
func (*FeedItemClient) Interceptors ¶ added in v0.0.5
func (c *FeedItemClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FeedItemClient) Query ¶ added in v0.0.5
func (c *FeedItemClient) Query() *FeedItemQuery
Query returns a query builder for FeedItem.
func (*FeedItemClient) QueryFeed ¶ added in v0.0.6
func (c *FeedItemClient) QueryFeed(fi *FeedItem) *FeedQuery
QueryFeed queries the feed edge of a FeedItem.
func (*FeedItemClient) Update ¶ added in v0.0.5
func (c *FeedItemClient) Update() *FeedItemUpdate
Update returns an update builder for FeedItem.
func (*FeedItemClient) UpdateOne ¶ added in v0.0.5
func (c *FeedItemClient) UpdateOne(fi *FeedItem) *FeedItemUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FeedItemClient) UpdateOneID ¶ added in v0.0.5
func (c *FeedItemClient) UpdateOneID(id model.InternalID) *FeedItemUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FeedItemClient) Use ¶ added in v0.0.5
func (c *FeedItemClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `feeditem.Hooks(f(g(h())))`.
type FeedItemCreate ¶ added in v0.0.5
type FeedItemCreate struct {
// contains filtered or unexported fields
}
FeedItemCreate is the builder for creating a FeedItem entity.
func (*FeedItemCreate) Exec ¶ added in v0.0.5
func (fic *FeedItemCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedItemCreate) ExecX ¶ added in v0.0.5
func (fic *FeedItemCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemCreate) Mutation ¶ added in v0.0.5
func (fic *FeedItemCreate) Mutation() *FeedItemMutation
Mutation returns the FeedItemMutation object of the builder.
func (*FeedItemCreate) OnConflict ¶ added in v0.0.5
func (fic *FeedItemCreate) OnConflict(opts ...sql.ConflictOption) *FeedItemUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FeedItem.Create(). SetFeedID(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.FeedItemUpsert) { SetFeedID(v+v). }). Exec(ctx)
func (*FeedItemCreate) OnConflictColumns ¶ added in v0.0.5
func (fic *FeedItemCreate) OnConflictColumns(columns ...string) *FeedItemUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FeedItem.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FeedItemCreate) Save ¶ added in v0.0.5
func (fic *FeedItemCreate) Save(ctx context.Context) (*FeedItem, error)
Save creates the FeedItem in the database.
func (*FeedItemCreate) SaveX ¶ added in v0.0.5
func (fic *FeedItemCreate) SaveX(ctx context.Context) *FeedItem
SaveX calls Save and panics if Save returns an error.
func (*FeedItemCreate) SetAuthors ¶ added in v0.0.5
func (fic *FeedItemCreate) SetAuthors(m []*modelfeed.Person) *FeedItemCreate
SetAuthors sets the "authors" field.
func (*FeedItemCreate) SetContent ¶ added in v0.0.5
func (fic *FeedItemCreate) SetContent(s string) *FeedItemCreate
SetContent sets the "content" field.
func (*FeedItemCreate) SetCreatedAt ¶ added in v0.0.5
func (fic *FeedItemCreate) SetCreatedAt(t time.Time) *FeedItemCreate
SetCreatedAt sets the "created_at" field.
func (*FeedItemCreate) SetDescription ¶ added in v0.0.5
func (fic *FeedItemCreate) SetDescription(s string) *FeedItemCreate
SetDescription sets the "description" field.
func (*FeedItemCreate) SetEnclosures ¶ added in v0.0.8
func (fic *FeedItemCreate) SetEnclosures(m []*modelfeed.Enclosure) *FeedItemCreate
SetEnclosures sets the "enclosures" field.
func (*FeedItemCreate) SetFeed ¶ added in v0.0.6
func (fic *FeedItemCreate) SetFeed(f *Feed) *FeedItemCreate
SetFeed sets the "feed" edge to the Feed entity.
func (*FeedItemCreate) SetFeedID ¶ added in v0.0.6
func (fic *FeedItemCreate) SetFeedID(mi model.InternalID) *FeedItemCreate
SetFeedID sets the "feed_id" field.
func (*FeedItemCreate) SetGUID ¶ added in v0.0.5
func (fic *FeedItemCreate) SetGUID(s string) *FeedItemCreate
SetGUID sets the "guid" field.
func (*FeedItemCreate) SetID ¶ added in v0.0.6
func (fic *FeedItemCreate) SetID(mi model.InternalID) *FeedItemCreate
SetID sets the "id" field.
func (*FeedItemCreate) SetImage ¶ added in v0.0.5
func (fic *FeedItemCreate) SetImage(m *modelfeed.Image) *FeedItemCreate
SetImage sets the "image" field.
func (*FeedItemCreate) SetLink ¶ added in v0.0.5
func (fic *FeedItemCreate) SetLink(s string) *FeedItemCreate
SetLink sets the "link" field.
func (*FeedItemCreate) SetNillableContent ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillableContent(s *string) *FeedItemCreate
SetNillableContent sets the "content" field if the given value is not nil.
func (*FeedItemCreate) SetNillableCreatedAt ¶ added in v0.0.5
func (fic *FeedItemCreate) SetNillableCreatedAt(t *time.Time) *FeedItemCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedItemCreate) SetNillableDescription ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillableDescription(s *string) *FeedItemCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*FeedItemCreate) SetNillableLink ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillableLink(s *string) *FeedItemCreate
SetNillableLink sets the "link" field if the given value is not nil.
func (*FeedItemCreate) SetNillablePublishPlatform ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillablePublishPlatform(s *string) *FeedItemCreate
SetNillablePublishPlatform sets the "publish_platform" field if the given value is not nil.
func (*FeedItemCreate) SetNillablePublished ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillablePublished(s *string) *FeedItemCreate
SetNillablePublished sets the "published" field if the given value is not nil.
func (*FeedItemCreate) SetNillablePublishedParsed ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillablePublishedParsed(t *time.Time) *FeedItemCreate
SetNillablePublishedParsed sets the "published_parsed" field if the given value is not nil.
func (*FeedItemCreate) SetNillableTitle ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillableTitle(s *string) *FeedItemCreate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*FeedItemCreate) SetNillableUpdated ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillableUpdated(s *string) *FeedItemCreate
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*FeedItemCreate) SetNillableUpdatedAt ¶ added in v0.0.5
func (fic *FeedItemCreate) SetNillableUpdatedAt(t *time.Time) *FeedItemCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FeedItemCreate) SetNillableUpdatedParsed ¶ added in v0.0.8
func (fic *FeedItemCreate) SetNillableUpdatedParsed(t *time.Time) *FeedItemCreate
SetNillableUpdatedParsed sets the "updated_parsed" field if the given value is not nil.
func (*FeedItemCreate) SetPublishPlatform ¶ added in v0.0.8
func (fic *FeedItemCreate) SetPublishPlatform(s string) *FeedItemCreate
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemCreate) SetPublished ¶ added in v0.0.5
func (fic *FeedItemCreate) SetPublished(s string) *FeedItemCreate
SetPublished sets the "published" field.
func (*FeedItemCreate) SetPublishedParsed ¶ added in v0.0.5
func (fic *FeedItemCreate) SetPublishedParsed(t time.Time) *FeedItemCreate
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemCreate) SetTitle ¶ added in v0.0.5
func (fic *FeedItemCreate) SetTitle(s string) *FeedItemCreate
SetTitle sets the "title" field.
func (*FeedItemCreate) SetUpdated ¶ added in v0.0.5
func (fic *FeedItemCreate) SetUpdated(s string) *FeedItemCreate
SetUpdated sets the "updated" field.
func (*FeedItemCreate) SetUpdatedAt ¶ added in v0.0.5
func (fic *FeedItemCreate) SetUpdatedAt(t time.Time) *FeedItemCreate
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemCreate) SetUpdatedParsed ¶ added in v0.0.5
func (fic *FeedItemCreate) SetUpdatedParsed(t time.Time) *FeedItemCreate
SetUpdatedParsed sets the "updated_parsed" field.
type FeedItemCreateBulk ¶ added in v0.0.5
type FeedItemCreateBulk struct {
// contains filtered or unexported fields
}
FeedItemCreateBulk is the builder for creating many FeedItem entities in bulk.
func (*FeedItemCreateBulk) Exec ¶ added in v0.0.5
func (ficb *FeedItemCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedItemCreateBulk) ExecX ¶ added in v0.0.5
func (ficb *FeedItemCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemCreateBulk) OnConflict ¶ added in v0.0.5
func (ficb *FeedItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeedItemUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FeedItem.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.FeedItemUpsert) { SetFeedID(v+v). }). Exec(ctx)
func (*FeedItemCreateBulk) OnConflictColumns ¶ added in v0.0.5
func (ficb *FeedItemCreateBulk) OnConflictColumns(columns ...string) *FeedItemUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FeedItem.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type FeedItemDelete ¶ added in v0.0.5
type FeedItemDelete struct {
// contains filtered or unexported fields
}
FeedItemDelete is the builder for deleting a FeedItem entity.
func (*FeedItemDelete) Exec ¶ added in v0.0.5
func (fid *FeedItemDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FeedItemDelete) ExecX ¶ added in v0.0.5
func (fid *FeedItemDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemDelete) Where ¶ added in v0.0.5
func (fid *FeedItemDelete) Where(ps ...predicate.FeedItem) *FeedItemDelete
Where appends a list predicates to the FeedItemDelete builder.
type FeedItemDeleteOne ¶ added in v0.0.5
type FeedItemDeleteOne struct {
// contains filtered or unexported fields
}
FeedItemDeleteOne is the builder for deleting a single FeedItem entity.
func (*FeedItemDeleteOne) Exec ¶ added in v0.0.5
func (fido *FeedItemDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FeedItemDeleteOne) ExecX ¶ added in v0.0.5
func (fido *FeedItemDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemDeleteOne) Where ¶ added in v0.0.5
func (fido *FeedItemDeleteOne) Where(ps ...predicate.FeedItem) *FeedItemDeleteOne
Where appends a list predicates to the FeedItemDelete builder.
type FeedItemEdges ¶ added in v0.0.6
type FeedItemEdges struct { // Feed holds the value of the feed edge. Feed *Feed `json:"feed,omitempty"` // contains filtered or unexported fields }
FeedItemEdges holds the relations/edges for other nodes in the graph.
func (FeedItemEdges) FeedOrErr ¶ added in v0.0.6
func (e FeedItemEdges) FeedOrErr() (*Feed, error)
FeedOrErr returns the Feed value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type FeedItemGroupBy ¶ added in v0.0.5
type FeedItemGroupBy struct {
// contains filtered or unexported fields
}
FeedItemGroupBy is the group-by builder for FeedItem entities.
func (*FeedItemGroupBy) Aggregate ¶ added in v0.0.5
func (figb *FeedItemGroupBy) Aggregate(fns ...AggregateFunc) *FeedItemGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FeedItemGroupBy) Bool ¶ added in v0.0.5
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) Bools ¶ added in v0.0.5
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) BoolsX ¶ added in v0.0.5
BoolsX is like Bools, but panics if an error occurs.
func (*FeedItemGroupBy) Float64 ¶ added in v0.0.5
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) Float64X ¶ added in v0.0.5
Float64X is like Float64, but panics if an error occurs.
func (*FeedItemGroupBy) Float64s ¶ added in v0.0.5
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) Float64sX ¶ added in v0.0.5
Float64sX is like Float64s, but panics if an error occurs.
func (*FeedItemGroupBy) Int ¶ added in v0.0.5
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) Ints ¶ added in v0.0.5
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) Scan ¶ added in v0.0.5
func (figb *FeedItemGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeedItemGroupBy) String ¶ added in v0.0.5
String returns a single string from a selector. It is only allowed when selecting one field.
func (*FeedItemGroupBy) StringX ¶ added in v0.0.5
StringX is like String, but panics if an error occurs.
type FeedItemMutation ¶ added in v0.0.5
type FeedItemMutation struct {
// contains filtered or unexported fields
}
FeedItemMutation represents an operation that mutates the FeedItem nodes in the graph.
func (*FeedItemMutation) AddField ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) AddedEdges ¶ added in v0.0.5
func (m *FeedItemMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FeedItemMutation) AddedField ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) AddedFields ¶ added in v0.0.5
func (m *FeedItemMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FeedItemMutation) AddedIDs ¶ added in v0.0.5
func (m *FeedItemMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FeedItemMutation) AppendAuthors ¶ added in v0.0.5
func (m *FeedItemMutation) AppendAuthors(value []*modelfeed.Person)
AppendAuthors adds value to the "authors" field.
func (*FeedItemMutation) AppendEnclosures ¶ added in v0.0.8
func (m *FeedItemMutation) AppendEnclosures(value []*modelfeed.Enclosure)
AppendEnclosures adds value to the "enclosures" field.
func (*FeedItemMutation) AppendedAuthors ¶ added in v0.0.5
func (m *FeedItemMutation) AppendedAuthors() ([]*modelfeed.Person, bool)
AppendedAuthors returns the list of values that were appended to the "authors" field in this mutation.
func (*FeedItemMutation) AppendedEnclosures ¶ added in v0.0.8
func (m *FeedItemMutation) AppendedEnclosures() ([]*modelfeed.Enclosure, bool)
AppendedEnclosures returns the list of values that were appended to the "enclosures" field in this mutation.
func (*FeedItemMutation) Authors ¶ added in v0.0.5
func (m *FeedItemMutation) Authors() (r []*modelfeed.Person, exists bool)
Authors returns the value of the "authors" field in the mutation.
func (*FeedItemMutation) AuthorsCleared ¶ added in v0.0.8
func (m *FeedItemMutation) AuthorsCleared() bool
AuthorsCleared returns if the "authors" field was cleared in this mutation.
func (*FeedItemMutation) ClearAuthors ¶ added in v0.0.8
func (m *FeedItemMutation) ClearAuthors()
ClearAuthors clears the value of the "authors" field.
func (*FeedItemMutation) ClearContent ¶ added in v0.0.8
func (m *FeedItemMutation) ClearContent()
ClearContent clears the value of the "content" field.
func (*FeedItemMutation) ClearDescription ¶ added in v0.0.8
func (m *FeedItemMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*FeedItemMutation) ClearEdge ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) ClearEnclosures ¶ added in v0.0.8
func (m *FeedItemMutation) ClearEnclosures()
ClearEnclosures clears the value of the "enclosures" field.
func (*FeedItemMutation) ClearFeed ¶ added in v0.0.6
func (m *FeedItemMutation) ClearFeed()
ClearFeed clears the "feed" edge to the Feed entity.
func (*FeedItemMutation) ClearField ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) ClearImage ¶ added in v0.0.8
func (m *FeedItemMutation) ClearImage()
ClearImage clears the value of the "image" field.
func (*FeedItemMutation) ClearLink ¶ added in v0.0.8
func (m *FeedItemMutation) ClearLink()
ClearLink clears the value of the "link" field.
func (*FeedItemMutation) ClearPublishPlatform ¶ added in v0.0.8
func (m *FeedItemMutation) ClearPublishPlatform()
ClearPublishPlatform clears the value of the "publish_platform" field.
func (*FeedItemMutation) ClearPublished ¶ added in v0.0.8
func (m *FeedItemMutation) ClearPublished()
ClearPublished clears the value of the "published" field.
func (*FeedItemMutation) ClearPublishedParsed ¶ added in v0.0.8
func (m *FeedItemMutation) ClearPublishedParsed()
ClearPublishedParsed clears the value of the "published_parsed" field.
func (*FeedItemMutation) ClearTitle ¶ added in v0.0.8
func (m *FeedItemMutation) ClearTitle()
ClearTitle clears the value of the "title" field.
func (*FeedItemMutation) ClearUpdated ¶ added in v0.0.8
func (m *FeedItemMutation) ClearUpdated()
ClearUpdated clears the value of the "updated" field.
func (*FeedItemMutation) ClearUpdatedParsed ¶ added in v0.0.8
func (m *FeedItemMutation) ClearUpdatedParsed()
ClearUpdatedParsed clears the value of the "updated_parsed" field.
func (*FeedItemMutation) ClearedEdges ¶ added in v0.0.5
func (m *FeedItemMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FeedItemMutation) ClearedFields ¶ added in v0.0.5
func (m *FeedItemMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FeedItemMutation) Client ¶ added in v0.0.5
func (m FeedItemMutation) 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 (*FeedItemMutation) Content ¶ added in v0.0.5
func (m *FeedItemMutation) Content() (r string, exists bool)
Content returns the value of the "content" field in the mutation.
func (*FeedItemMutation) ContentCleared ¶ added in v0.0.8
func (m *FeedItemMutation) ContentCleared() bool
ContentCleared returns if the "content" field was cleared in this mutation.
func (*FeedItemMutation) CreatedAt ¶ added in v0.0.5
func (m *FeedItemMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FeedItemMutation) Description ¶ added in v0.0.5
func (m *FeedItemMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*FeedItemMutation) DescriptionCleared ¶ added in v0.0.8
func (m *FeedItemMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*FeedItemMutation) EdgeCleared ¶ added in v0.0.5
func (m *FeedItemMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FeedItemMutation) Enclosures ¶ added in v0.0.8
func (m *FeedItemMutation) Enclosures() (r []*modelfeed.Enclosure, exists bool)
Enclosures returns the value of the "enclosures" field in the mutation.
func (*FeedItemMutation) EnclosuresCleared ¶ added in v0.0.8
func (m *FeedItemMutation) EnclosuresCleared() bool
EnclosuresCleared returns if the "enclosures" field was cleared in this mutation.
func (*FeedItemMutation) FeedCleared ¶ added in v0.0.6
func (m *FeedItemMutation) FeedCleared() bool
FeedCleared reports if the "feed" edge to the Feed entity was cleared.
func (*FeedItemMutation) FeedID ¶ added in v0.0.6
func (m *FeedItemMutation) FeedID() (r model.InternalID, exists bool)
FeedID returns the value of the "feed_id" field in the mutation.
func (*FeedItemMutation) FeedIDs ¶ added in v0.0.6
func (m *FeedItemMutation) FeedIDs() (ids []model.InternalID)
FeedIDs returns the "feed" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FeedID instead. It exists only for internal usage by the builders.
func (*FeedItemMutation) Field ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) FieldCleared ¶ added in v0.0.5
func (m *FeedItemMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FeedItemMutation) Fields ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) GUID ¶ added in v0.0.5
func (m *FeedItemMutation) GUID() (r string, exists bool)
GUID returns the value of the "guid" field in the mutation.
func (*FeedItemMutation) ID ¶ added in v0.0.5
func (m *FeedItemMutation) ID() (id model.InternalID, 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 (*FeedItemMutation) IDs ¶ added in v0.0.5
func (m *FeedItemMutation) IDs(ctx context.Context) ([]model.InternalID, 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 (*FeedItemMutation) Image ¶ added in v0.0.5
func (m *FeedItemMutation) Image() (r *modelfeed.Image, exists bool)
Image returns the value of the "image" field in the mutation.
func (*FeedItemMutation) ImageCleared ¶ added in v0.0.8
func (m *FeedItemMutation) ImageCleared() bool
ImageCleared returns if the "image" field was cleared in this mutation.
func (*FeedItemMutation) Link ¶ added in v0.0.5
func (m *FeedItemMutation) Link() (r string, exists bool)
Link returns the value of the "link" field in the mutation.
func (*FeedItemMutation) LinkCleared ¶ added in v0.0.8
func (m *FeedItemMutation) LinkCleared() bool
LinkCleared returns if the "link" field was cleared in this mutation.
func (*FeedItemMutation) OldAuthors ¶ added in v0.0.5
OldAuthors returns the old "authors" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldContent ¶ added in v0.0.5
func (m *FeedItemMutation) OldContent(ctx context.Context) (v string, err error)
OldContent returns the old "content" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldCreatedAt ¶ added in v0.0.5
OldCreatedAt returns the old "created_at" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldDescription ¶ added in v0.0.5
func (m *FeedItemMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldEnclosures ¶ added in v0.0.8
OldEnclosures returns the old "enclosures" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldFeedID ¶ added in v0.0.8
func (m *FeedItemMutation) OldFeedID(ctx context.Context) (v model.InternalID, err error)
OldFeedID returns the old "feed_id" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldField ¶ added in v0.0.5
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 (*FeedItemMutation) OldGUID ¶ added in v0.0.5
func (m *FeedItemMutation) OldGUID(ctx context.Context) (v string, err error)
OldGUID returns the old "guid" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldImage ¶ added in v0.0.5
OldImage returns the old "image" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldLink ¶ added in v0.0.5
func (m *FeedItemMutation) OldLink(ctx context.Context) (v string, err error)
OldLink returns the old "link" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldPublishPlatform ¶ added in v0.0.8
func (m *FeedItemMutation) OldPublishPlatform(ctx context.Context) (v string, err error)
OldPublishPlatform returns the old "publish_platform" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldPublished ¶ added in v0.0.5
func (m *FeedItemMutation) OldPublished(ctx context.Context) (v string, err error)
OldPublished returns the old "published" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldPublishedParsed ¶ added in v0.0.5
OldPublishedParsed returns the old "published_parsed" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldTitle ¶ added in v0.0.5
func (m *FeedItemMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldUpdated ¶ added in v0.0.5
func (m *FeedItemMutation) OldUpdated(ctx context.Context) (v string, err error)
OldUpdated returns the old "updated" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldUpdatedAt ¶ added in v0.0.5
OldUpdatedAt returns the old "updated_at" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) OldUpdatedParsed ¶ added in v0.0.5
OldUpdatedParsed returns the old "updated_parsed" field's value of the FeedItem entity. If the FeedItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedItemMutation) Op ¶ added in v0.0.5
func (m *FeedItemMutation) Op() Op
Op returns the operation name.
func (*FeedItemMutation) PublishPlatform ¶ added in v0.0.8
func (m *FeedItemMutation) PublishPlatform() (r string, exists bool)
PublishPlatform returns the value of the "publish_platform" field in the mutation.
func (*FeedItemMutation) PublishPlatformCleared ¶ added in v0.0.8
func (m *FeedItemMutation) PublishPlatformCleared() bool
PublishPlatformCleared returns if the "publish_platform" field was cleared in this mutation.
func (*FeedItemMutation) Published ¶ added in v0.0.5
func (m *FeedItemMutation) Published() (r string, exists bool)
Published returns the value of the "published" field in the mutation.
func (*FeedItemMutation) PublishedCleared ¶ added in v0.0.8
func (m *FeedItemMutation) PublishedCleared() bool
PublishedCleared returns if the "published" field was cleared in this mutation.
func (*FeedItemMutation) PublishedParsed ¶ added in v0.0.5
func (m *FeedItemMutation) PublishedParsed() (r time.Time, exists bool)
PublishedParsed returns the value of the "published_parsed" field in the mutation.
func (*FeedItemMutation) PublishedParsedCleared ¶ added in v0.0.8
func (m *FeedItemMutation) PublishedParsedCleared() bool
PublishedParsedCleared returns if the "published_parsed" field was cleared in this mutation.
func (*FeedItemMutation) RemovedEdges ¶ added in v0.0.5
func (m *FeedItemMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FeedItemMutation) RemovedIDs ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) ResetAuthors ¶ added in v0.0.5
func (m *FeedItemMutation) ResetAuthors()
ResetAuthors resets all changes to the "authors" field.
func (*FeedItemMutation) ResetContent ¶ added in v0.0.5
func (m *FeedItemMutation) ResetContent()
ResetContent resets all changes to the "content" field.
func (*FeedItemMutation) ResetCreatedAt ¶ added in v0.0.5
func (m *FeedItemMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FeedItemMutation) ResetDescription ¶ added in v0.0.5
func (m *FeedItemMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*FeedItemMutation) ResetEdge ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) ResetEnclosures ¶ added in v0.0.8
func (m *FeedItemMutation) ResetEnclosures()
ResetEnclosures resets all changes to the "enclosures" field.
func (*FeedItemMutation) ResetFeed ¶ added in v0.0.6
func (m *FeedItemMutation) ResetFeed()
ResetFeed resets all changes to the "feed" edge.
func (*FeedItemMutation) ResetFeedID ¶ added in v0.0.8
func (m *FeedItemMutation) ResetFeedID()
ResetFeedID resets all changes to the "feed_id" field.
func (*FeedItemMutation) ResetField ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) ResetGUID ¶ added in v0.0.5
func (m *FeedItemMutation) ResetGUID()
ResetGUID resets all changes to the "guid" field.
func (*FeedItemMutation) ResetImage ¶ added in v0.0.5
func (m *FeedItemMutation) ResetImage()
ResetImage resets all changes to the "image" field.
func (*FeedItemMutation) ResetLink ¶ added in v0.0.5
func (m *FeedItemMutation) ResetLink()
ResetLink resets all changes to the "link" field.
func (*FeedItemMutation) ResetPublishPlatform ¶ added in v0.0.8
func (m *FeedItemMutation) ResetPublishPlatform()
ResetPublishPlatform resets all changes to the "publish_platform" field.
func (*FeedItemMutation) ResetPublished ¶ added in v0.0.5
func (m *FeedItemMutation) ResetPublished()
ResetPublished resets all changes to the "published" field.
func (*FeedItemMutation) ResetPublishedParsed ¶ added in v0.0.5
func (m *FeedItemMutation) ResetPublishedParsed()
ResetPublishedParsed resets all changes to the "published_parsed" field.
func (*FeedItemMutation) ResetTitle ¶ added in v0.0.5
func (m *FeedItemMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*FeedItemMutation) ResetUpdated ¶ added in v0.0.5
func (m *FeedItemMutation) ResetUpdated()
ResetUpdated resets all changes to the "updated" field.
func (*FeedItemMutation) ResetUpdatedAt ¶ added in v0.0.5
func (m *FeedItemMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FeedItemMutation) ResetUpdatedParsed ¶ added in v0.0.5
func (m *FeedItemMutation) ResetUpdatedParsed()
ResetUpdatedParsed resets all changes to the "updated_parsed" field.
func (*FeedItemMutation) SetAuthors ¶ added in v0.0.5
func (m *FeedItemMutation) SetAuthors(value []*modelfeed.Person)
SetAuthors sets the "authors" field.
func (*FeedItemMutation) SetContent ¶ added in v0.0.5
func (m *FeedItemMutation) SetContent(s string)
SetContent sets the "content" field.
func (*FeedItemMutation) SetCreatedAt ¶ added in v0.0.5
func (m *FeedItemMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*FeedItemMutation) SetDescription ¶ added in v0.0.5
func (m *FeedItemMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*FeedItemMutation) SetEnclosures ¶ added in v0.0.8
func (m *FeedItemMutation) SetEnclosures(value []*modelfeed.Enclosure)
SetEnclosures sets the "enclosures" field.
func (*FeedItemMutation) SetFeedID ¶ added in v0.0.6
func (m *FeedItemMutation) SetFeedID(mi model.InternalID)
SetFeedID sets the "feed_id" field.
func (*FeedItemMutation) SetField ¶ added in v0.0.5
func (m *FeedItemMutation) 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 (*FeedItemMutation) SetGUID ¶ added in v0.0.5
func (m *FeedItemMutation) SetGUID(s string)
SetGUID sets the "guid" field.
func (*FeedItemMutation) SetID ¶ added in v0.0.6
func (m *FeedItemMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of FeedItem entities.
func (*FeedItemMutation) SetImage ¶ added in v0.0.5
func (m *FeedItemMutation) SetImage(value *modelfeed.Image)
SetImage sets the "image" field.
func (*FeedItemMutation) SetLink ¶ added in v0.0.5
func (m *FeedItemMutation) SetLink(s string)
SetLink sets the "link" field.
func (*FeedItemMutation) SetOp ¶ added in v0.0.5
func (m *FeedItemMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*FeedItemMutation) SetPublishPlatform ¶ added in v0.0.8
func (m *FeedItemMutation) SetPublishPlatform(s string)
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemMutation) SetPublished ¶ added in v0.0.5
func (m *FeedItemMutation) SetPublished(s string)
SetPublished sets the "published" field.
func (*FeedItemMutation) SetPublishedParsed ¶ added in v0.0.5
func (m *FeedItemMutation) SetPublishedParsed(t time.Time)
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemMutation) SetTitle ¶ added in v0.0.5
func (m *FeedItemMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*FeedItemMutation) SetUpdated ¶ added in v0.0.5
func (m *FeedItemMutation) SetUpdated(s string)
SetUpdated sets the "updated" field.
func (*FeedItemMutation) SetUpdatedAt ¶ added in v0.0.5
func (m *FeedItemMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemMutation) SetUpdatedParsed ¶ added in v0.0.5
func (m *FeedItemMutation) SetUpdatedParsed(t time.Time)
SetUpdatedParsed sets the "updated_parsed" field.
func (*FeedItemMutation) Title ¶ added in v0.0.5
func (m *FeedItemMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (*FeedItemMutation) TitleCleared ¶ added in v0.0.8
func (m *FeedItemMutation) TitleCleared() bool
TitleCleared returns if the "title" field was cleared in this mutation.
func (FeedItemMutation) Tx ¶ added in v0.0.5
func (m FeedItemMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FeedItemMutation) Type ¶ added in v0.0.5
func (m *FeedItemMutation) Type() string
Type returns the node type of this mutation (FeedItem).
func (*FeedItemMutation) Updated ¶ added in v0.0.5
func (m *FeedItemMutation) Updated() (r string, exists bool)
Updated returns the value of the "updated" field in the mutation.
func (*FeedItemMutation) UpdatedAt ¶ added in v0.0.5
func (m *FeedItemMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FeedItemMutation) UpdatedCleared ¶ added in v0.0.8
func (m *FeedItemMutation) UpdatedCleared() bool
UpdatedCleared returns if the "updated" field was cleared in this mutation.
func (*FeedItemMutation) UpdatedParsed ¶ added in v0.0.5
func (m *FeedItemMutation) UpdatedParsed() (r time.Time, exists bool)
UpdatedParsed returns the value of the "updated_parsed" field in the mutation.
func (*FeedItemMutation) UpdatedParsedCleared ¶ added in v0.0.8
func (m *FeedItemMutation) UpdatedParsedCleared() bool
UpdatedParsedCleared returns if the "updated_parsed" field was cleared in this mutation.
func (*FeedItemMutation) Where ¶ added in v0.0.5
func (m *FeedItemMutation) Where(ps ...predicate.FeedItem)
Where appends a list predicates to the FeedItemMutation builder.
func (*FeedItemMutation) WhereP ¶ added in v0.0.5
func (m *FeedItemMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FeedItemMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FeedItemQuery ¶ added in v0.0.5
type FeedItemQuery struct {
// contains filtered or unexported fields
}
FeedItemQuery is the builder for querying FeedItem entities.
func (*FeedItemQuery) Aggregate ¶ added in v0.0.5
func (fiq *FeedItemQuery) Aggregate(fns ...AggregateFunc) *FeedItemSelect
Aggregate returns a FeedItemSelect configured with the given aggregations.
func (*FeedItemQuery) All ¶ added in v0.0.5
func (fiq *FeedItemQuery) All(ctx context.Context) ([]*FeedItem, error)
All executes the query and returns a list of FeedItems.
func (*FeedItemQuery) AllX ¶ added in v0.0.5
func (fiq *FeedItemQuery) AllX(ctx context.Context) []*FeedItem
AllX is like All, but panics if an error occurs.
func (*FeedItemQuery) Clone ¶ added in v0.0.5
func (fiq *FeedItemQuery) Clone() *FeedItemQuery
Clone returns a duplicate of the FeedItemQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FeedItemQuery) Count ¶ added in v0.0.5
func (fiq *FeedItemQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FeedItemQuery) CountX ¶ added in v0.0.5
func (fiq *FeedItemQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FeedItemQuery) Exist ¶ added in v0.0.5
func (fiq *FeedItemQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FeedItemQuery) ExistX ¶ added in v0.0.5
func (fiq *FeedItemQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FeedItemQuery) First ¶ added in v0.0.5
func (fiq *FeedItemQuery) First(ctx context.Context) (*FeedItem, error)
First returns the first FeedItem entity from the query. Returns a *NotFoundError when no FeedItem was found.
func (*FeedItemQuery) FirstID ¶ added in v0.0.5
func (fiq *FeedItemQuery) FirstID(ctx context.Context) (id model.InternalID, err error)
FirstID returns the first FeedItem ID from the query. Returns a *NotFoundError when no FeedItem ID was found.
func (*FeedItemQuery) FirstIDX ¶ added in v0.0.5
func (fiq *FeedItemQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*FeedItemQuery) FirstX ¶ added in v0.0.5
func (fiq *FeedItemQuery) FirstX(ctx context.Context) *FeedItem
FirstX is like First, but panics if an error occurs.
func (*FeedItemQuery) GroupBy ¶ added in v0.0.5
func (fiq *FeedItemQuery) GroupBy(field string, fields ...string) *FeedItemGroupBy
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 { FeedID model.InternalID `json:"feed_id,omitempty"` Count int `json:"count,omitempty"` } client.FeedItem.Query(). GroupBy(feeditem.FieldFeedID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FeedItemQuery) IDs ¶ added in v0.0.5
func (fiq *FeedItemQuery) IDs(ctx context.Context) (ids []model.InternalID, err error)
IDs executes the query and returns a list of FeedItem IDs.
func (*FeedItemQuery) IDsX ¶ added in v0.0.5
func (fiq *FeedItemQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*FeedItemQuery) Limit ¶ added in v0.0.5
func (fiq *FeedItemQuery) Limit(limit int) *FeedItemQuery
Limit the number of records to be returned by this query.
func (*FeedItemQuery) Offset ¶ added in v0.0.5
func (fiq *FeedItemQuery) Offset(offset int) *FeedItemQuery
Offset to start from.
func (*FeedItemQuery) Only ¶ added in v0.0.5
func (fiq *FeedItemQuery) Only(ctx context.Context) (*FeedItem, error)
Only returns a single FeedItem entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FeedItem entity is found. Returns a *NotFoundError when no FeedItem entities are found.
func (*FeedItemQuery) OnlyID ¶ added in v0.0.5
func (fiq *FeedItemQuery) OnlyID(ctx context.Context) (id model.InternalID, err error)
OnlyID is like Only, but returns the only FeedItem ID in the query. Returns a *NotSingularError when more than one FeedItem ID is found. Returns a *NotFoundError when no entities are found.
func (*FeedItemQuery) OnlyIDX ¶ added in v0.0.5
func (fiq *FeedItemQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FeedItemQuery) OnlyX ¶ added in v0.0.5
func (fiq *FeedItemQuery) OnlyX(ctx context.Context) *FeedItem
OnlyX is like Only, but panics if an error occurs.
func (*FeedItemQuery) Order ¶ added in v0.0.5
func (fiq *FeedItemQuery) Order(o ...OrderFunc) *FeedItemQuery
Order specifies how the records should be ordered.
func (*FeedItemQuery) QueryFeed ¶ added in v0.0.6
func (fiq *FeedItemQuery) QueryFeed() *FeedQuery
QueryFeed chains the current query on the "feed" edge.
func (*FeedItemQuery) Select ¶ added in v0.0.5
func (fiq *FeedItemQuery) Select(fields ...string) *FeedItemSelect
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 { FeedID model.InternalID `json:"feed_id,omitempty"` } client.FeedItem.Query(). Select(feeditem.FieldFeedID). Scan(ctx, &v)
func (*FeedItemQuery) Unique ¶ added in v0.0.5
func (fiq *FeedItemQuery) Unique(unique bool) *FeedItemQuery
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 (*FeedItemQuery) Where ¶ added in v0.0.5
func (fiq *FeedItemQuery) Where(ps ...predicate.FeedItem) *FeedItemQuery
Where adds a new predicate for the FeedItemQuery builder.
func (*FeedItemQuery) WithFeed ¶ added in v0.0.6
func (fiq *FeedItemQuery) WithFeed(opts ...func(*FeedQuery)) *FeedItemQuery
WithFeed tells the query-builder to eager-load the nodes that are connected to the "feed" edge. The optional arguments are used to configure the query builder of the edge.
type FeedItemSelect ¶ added in v0.0.5
type FeedItemSelect struct { *FeedItemQuery // contains filtered or unexported fields }
FeedItemSelect is the builder for selecting fields of FeedItem entities.
func (*FeedItemSelect) Aggregate ¶ added in v0.0.5
func (fis *FeedItemSelect) Aggregate(fns ...AggregateFunc) *FeedItemSelect
Aggregate adds the given aggregation functions to the selector query.
func (*FeedItemSelect) Bool ¶ added in v0.0.5
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) Bools ¶ added in v0.0.5
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) BoolsX ¶ added in v0.0.5
BoolsX is like Bools, but panics if an error occurs.
func (*FeedItemSelect) Float64 ¶ added in v0.0.5
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) Float64X ¶ added in v0.0.5
Float64X is like Float64, but panics if an error occurs.
func (*FeedItemSelect) Float64s ¶ added in v0.0.5
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) Float64sX ¶ added in v0.0.5
Float64sX is like Float64s, but panics if an error occurs.
func (*FeedItemSelect) Int ¶ added in v0.0.5
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) Ints ¶ added in v0.0.5
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) Scan ¶ added in v0.0.5
func (fis *FeedItemSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeedItemSelect) String ¶ added in v0.0.5
String returns a single string from a selector. It is only allowed when selecting one field.
func (*FeedItemSelect) StringX ¶ added in v0.0.5
StringX is like String, but panics if an error occurs.
type FeedItemUpdate ¶ added in v0.0.5
type FeedItemUpdate struct {
// contains filtered or unexported fields
}
FeedItemUpdate is the builder for updating FeedItem entities.
func (*FeedItemUpdate) AppendAuthors ¶ added in v0.0.5
func (fiu *FeedItemUpdate) AppendAuthors(m []*modelfeed.Person) *FeedItemUpdate
AppendAuthors appends m to the "authors" field.
func (*FeedItemUpdate) AppendEnclosures ¶ added in v0.0.8
func (fiu *FeedItemUpdate) AppendEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdate
AppendEnclosures appends m to the "enclosures" field.
func (*FeedItemUpdate) ClearAuthors ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearAuthors() *FeedItemUpdate
ClearAuthors clears the value of the "authors" field.
func (*FeedItemUpdate) ClearContent ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearContent() *FeedItemUpdate
ClearContent clears the value of the "content" field.
func (*FeedItemUpdate) ClearDescription ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearDescription() *FeedItemUpdate
ClearDescription clears the value of the "description" field.
func (*FeedItemUpdate) ClearEnclosures ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearEnclosures() *FeedItemUpdate
ClearEnclosures clears the value of the "enclosures" field.
func (*FeedItemUpdate) ClearImage ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearImage() *FeedItemUpdate
ClearImage clears the value of the "image" field.
func (*FeedItemUpdate) ClearLink ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearLink() *FeedItemUpdate
ClearLink clears the value of the "link" field.
func (*FeedItemUpdate) ClearPublishPlatform ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearPublishPlatform() *FeedItemUpdate
ClearPublishPlatform clears the value of the "publish_platform" field.
func (*FeedItemUpdate) ClearPublished ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearPublished() *FeedItemUpdate
ClearPublished clears the value of the "published" field.
func (*FeedItemUpdate) ClearPublishedParsed ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearPublishedParsed() *FeedItemUpdate
ClearPublishedParsed clears the value of the "published_parsed" field.
func (*FeedItemUpdate) ClearTitle ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearTitle() *FeedItemUpdate
ClearTitle clears the value of the "title" field.
func (*FeedItemUpdate) ClearUpdated ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearUpdated() *FeedItemUpdate
ClearUpdated clears the value of the "updated" field.
func (*FeedItemUpdate) ClearUpdatedParsed ¶ added in v0.0.8
func (fiu *FeedItemUpdate) ClearUpdatedParsed() *FeedItemUpdate
ClearUpdatedParsed clears the value of the "updated_parsed" field.
func (*FeedItemUpdate) Exec ¶ added in v0.0.5
func (fiu *FeedItemUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedItemUpdate) ExecX ¶ added in v0.0.5
func (fiu *FeedItemUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemUpdate) Mutation ¶ added in v0.0.5
func (fiu *FeedItemUpdate) Mutation() *FeedItemMutation
Mutation returns the FeedItemMutation object of the builder.
func (*FeedItemUpdate) Save ¶ added in v0.0.5
func (fiu *FeedItemUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FeedItemUpdate) SaveX ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FeedItemUpdate) SetAuthors ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetAuthors(m []*modelfeed.Person) *FeedItemUpdate
SetAuthors sets the "authors" field.
func (*FeedItemUpdate) SetContent ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetContent(s string) *FeedItemUpdate
SetContent sets the "content" field.
func (*FeedItemUpdate) SetCreatedAt ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetCreatedAt(t time.Time) *FeedItemUpdate
SetCreatedAt sets the "created_at" field.
func (*FeedItemUpdate) SetDescription ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetDescription(s string) *FeedItemUpdate
SetDescription sets the "description" field.
func (*FeedItemUpdate) SetEnclosures ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdate
SetEnclosures sets the "enclosures" field.
func (*FeedItemUpdate) SetImage ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetImage(m *modelfeed.Image) *FeedItemUpdate
SetImage sets the "image" field.
func (*FeedItemUpdate) SetLink ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetLink(s string) *FeedItemUpdate
SetLink sets the "link" field.
func (*FeedItemUpdate) SetNillableContent ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillableContent(s *string) *FeedItemUpdate
SetNillableContent sets the "content" field if the given value is not nil.
func (*FeedItemUpdate) SetNillableCreatedAt ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetNillableCreatedAt(t *time.Time) *FeedItemUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedItemUpdate) SetNillableDescription ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillableDescription(s *string) *FeedItemUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*FeedItemUpdate) SetNillableLink ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillableLink(s *string) *FeedItemUpdate
SetNillableLink sets the "link" field if the given value is not nil.
func (*FeedItemUpdate) SetNillablePublishPlatform ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillablePublishPlatform(s *string) *FeedItemUpdate
SetNillablePublishPlatform sets the "publish_platform" field if the given value is not nil.
func (*FeedItemUpdate) SetNillablePublished ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillablePublished(s *string) *FeedItemUpdate
SetNillablePublished sets the "published" field if the given value is not nil.
func (*FeedItemUpdate) SetNillablePublishedParsed ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillablePublishedParsed(t *time.Time) *FeedItemUpdate
SetNillablePublishedParsed sets the "published_parsed" field if the given value is not nil.
func (*FeedItemUpdate) SetNillableTitle ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillableTitle(s *string) *FeedItemUpdate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*FeedItemUpdate) SetNillableUpdated ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillableUpdated(s *string) *FeedItemUpdate
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*FeedItemUpdate) SetNillableUpdatedParsed ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetNillableUpdatedParsed(t *time.Time) *FeedItemUpdate
SetNillableUpdatedParsed sets the "updated_parsed" field if the given value is not nil.
func (*FeedItemUpdate) SetPublishPlatform ¶ added in v0.0.8
func (fiu *FeedItemUpdate) SetPublishPlatform(s string) *FeedItemUpdate
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemUpdate) SetPublished ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetPublished(s string) *FeedItemUpdate
SetPublished sets the "published" field.
func (*FeedItemUpdate) SetPublishedParsed ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetPublishedParsed(t time.Time) *FeedItemUpdate
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemUpdate) SetTitle ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetTitle(s string) *FeedItemUpdate
SetTitle sets the "title" field.
func (*FeedItemUpdate) SetUpdated ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetUpdated(s string) *FeedItemUpdate
SetUpdated sets the "updated" field.
func (*FeedItemUpdate) SetUpdatedAt ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetUpdatedAt(t time.Time) *FeedItemUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemUpdate) SetUpdatedParsed ¶ added in v0.0.5
func (fiu *FeedItemUpdate) SetUpdatedParsed(t time.Time) *FeedItemUpdate
SetUpdatedParsed sets the "updated_parsed" field.
func (*FeedItemUpdate) Where ¶ added in v0.0.5
func (fiu *FeedItemUpdate) Where(ps ...predicate.FeedItem) *FeedItemUpdate
Where appends a list predicates to the FeedItemUpdate builder.
type FeedItemUpdateOne ¶ added in v0.0.5
type FeedItemUpdateOne struct {
// contains filtered or unexported fields
}
FeedItemUpdateOne is the builder for updating a single FeedItem entity.
func (*FeedItemUpdateOne) AppendAuthors ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) AppendAuthors(m []*modelfeed.Person) *FeedItemUpdateOne
AppendAuthors appends m to the "authors" field.
func (*FeedItemUpdateOne) AppendEnclosures ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) AppendEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdateOne
AppendEnclosures appends m to the "enclosures" field.
func (*FeedItemUpdateOne) ClearAuthors ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearAuthors() *FeedItemUpdateOne
ClearAuthors clears the value of the "authors" field.
func (*FeedItemUpdateOne) ClearContent ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearContent() *FeedItemUpdateOne
ClearContent clears the value of the "content" field.
func (*FeedItemUpdateOne) ClearDescription ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearDescription() *FeedItemUpdateOne
ClearDescription clears the value of the "description" field.
func (*FeedItemUpdateOne) ClearEnclosures ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearEnclosures() *FeedItemUpdateOne
ClearEnclosures clears the value of the "enclosures" field.
func (*FeedItemUpdateOne) ClearImage ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearImage() *FeedItemUpdateOne
ClearImage clears the value of the "image" field.
func (*FeedItemUpdateOne) ClearLink ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearLink() *FeedItemUpdateOne
ClearLink clears the value of the "link" field.
func (*FeedItemUpdateOne) ClearPublishPlatform ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearPublishPlatform() *FeedItemUpdateOne
ClearPublishPlatform clears the value of the "publish_platform" field.
func (*FeedItemUpdateOne) ClearPublished ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearPublished() *FeedItemUpdateOne
ClearPublished clears the value of the "published" field.
func (*FeedItemUpdateOne) ClearPublishedParsed ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearPublishedParsed() *FeedItemUpdateOne
ClearPublishedParsed clears the value of the "published_parsed" field.
func (*FeedItemUpdateOne) ClearTitle ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearTitle() *FeedItemUpdateOne
ClearTitle clears the value of the "title" field.
func (*FeedItemUpdateOne) ClearUpdated ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearUpdated() *FeedItemUpdateOne
ClearUpdated clears the value of the "updated" field.
func (*FeedItemUpdateOne) ClearUpdatedParsed ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) ClearUpdatedParsed() *FeedItemUpdateOne
ClearUpdatedParsed clears the value of the "updated_parsed" field.
func (*FeedItemUpdateOne) Exec ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FeedItemUpdateOne) ExecX ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemUpdateOne) Mutation ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) Mutation() *FeedItemMutation
Mutation returns the FeedItemMutation object of the builder.
func (*FeedItemUpdateOne) Save ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) Save(ctx context.Context) (*FeedItem, error)
Save executes the query and returns the updated FeedItem entity.
func (*FeedItemUpdateOne) SaveX ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SaveX(ctx context.Context) *FeedItem
SaveX is like Save, but panics if an error occurs.
func (*FeedItemUpdateOne) Select ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) Select(field string, fields ...string) *FeedItemUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FeedItemUpdateOne) SetAuthors ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetAuthors(m []*modelfeed.Person) *FeedItemUpdateOne
SetAuthors sets the "authors" field.
func (*FeedItemUpdateOne) SetContent ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetContent(s string) *FeedItemUpdateOne
SetContent sets the "content" field.
func (*FeedItemUpdateOne) SetCreatedAt ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetCreatedAt(t time.Time) *FeedItemUpdateOne
SetCreatedAt sets the "created_at" field.
func (*FeedItemUpdateOne) SetDescription ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetDescription(s string) *FeedItemUpdateOne
SetDescription sets the "description" field.
func (*FeedItemUpdateOne) SetEnclosures ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetEnclosures(m []*modelfeed.Enclosure) *FeedItemUpdateOne
SetEnclosures sets the "enclosures" field.
func (*FeedItemUpdateOne) SetImage ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetImage(m *modelfeed.Image) *FeedItemUpdateOne
SetImage sets the "image" field.
func (*FeedItemUpdateOne) SetLink ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetLink(s string) *FeedItemUpdateOne
SetLink sets the "link" field.
func (*FeedItemUpdateOne) SetNillableContent ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillableContent(s *string) *FeedItemUpdateOne
SetNillableContent sets the "content" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillableCreatedAt ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetNillableCreatedAt(t *time.Time) *FeedItemUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillableDescription ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillableDescription(s *string) *FeedItemUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillableLink ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillableLink(s *string) *FeedItemUpdateOne
SetNillableLink sets the "link" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillablePublishPlatform ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillablePublishPlatform(s *string) *FeedItemUpdateOne
SetNillablePublishPlatform sets the "publish_platform" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillablePublished ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillablePublished(s *string) *FeedItemUpdateOne
SetNillablePublished sets the "published" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillablePublishedParsed ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillablePublishedParsed(t *time.Time) *FeedItemUpdateOne
SetNillablePublishedParsed sets the "published_parsed" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillableTitle ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillableTitle(s *string) *FeedItemUpdateOne
SetNillableTitle sets the "title" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillableUpdated ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillableUpdated(s *string) *FeedItemUpdateOne
SetNillableUpdated sets the "updated" field if the given value is not nil.
func (*FeedItemUpdateOne) SetNillableUpdatedParsed ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetNillableUpdatedParsed(t *time.Time) *FeedItemUpdateOne
SetNillableUpdatedParsed sets the "updated_parsed" field if the given value is not nil.
func (*FeedItemUpdateOne) SetPublishPlatform ¶ added in v0.0.8
func (fiuo *FeedItemUpdateOne) SetPublishPlatform(s string) *FeedItemUpdateOne
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemUpdateOne) SetPublished ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetPublished(s string) *FeedItemUpdateOne
SetPublished sets the "published" field.
func (*FeedItemUpdateOne) SetPublishedParsed ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetPublishedParsed(t time.Time) *FeedItemUpdateOne
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemUpdateOne) SetTitle ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetTitle(s string) *FeedItemUpdateOne
SetTitle sets the "title" field.
func (*FeedItemUpdateOne) SetUpdated ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetUpdated(s string) *FeedItemUpdateOne
SetUpdated sets the "updated" field.
func (*FeedItemUpdateOne) SetUpdatedAt ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetUpdatedAt(t time.Time) *FeedItemUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemUpdateOne) SetUpdatedParsed ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) SetUpdatedParsed(t time.Time) *FeedItemUpdateOne
SetUpdatedParsed sets the "updated_parsed" field.
func (*FeedItemUpdateOne) Where ¶ added in v0.0.5
func (fiuo *FeedItemUpdateOne) Where(ps ...predicate.FeedItem) *FeedItemUpdateOne
Where appends a list predicates to the FeedItemUpdate builder.
type FeedItemUpsert ¶ added in v0.0.5
FeedItemUpsert is the "OnConflict" setter.
func (*FeedItemUpsert) ClearAuthors ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearAuthors() *FeedItemUpsert
ClearAuthors clears the value of the "authors" field.
func (*FeedItemUpsert) ClearContent ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearContent() *FeedItemUpsert
ClearContent clears the value of the "content" field.
func (*FeedItemUpsert) ClearDescription ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearDescription() *FeedItemUpsert
ClearDescription clears the value of the "description" field.
func (*FeedItemUpsert) ClearEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearEnclosures() *FeedItemUpsert
ClearEnclosures clears the value of the "enclosures" field.
func (*FeedItemUpsert) ClearImage ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearImage() *FeedItemUpsert
ClearImage clears the value of the "image" field.
func (*FeedItemUpsert) ClearLink ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearLink() *FeedItemUpsert
ClearLink clears the value of the "link" field.
func (*FeedItemUpsert) ClearPublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearPublishPlatform() *FeedItemUpsert
ClearPublishPlatform clears the value of the "publish_platform" field.
func (*FeedItemUpsert) ClearPublished ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearPublished() *FeedItemUpsert
ClearPublished clears the value of the "published" field.
func (*FeedItemUpsert) ClearPublishedParsed ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearPublishedParsed() *FeedItemUpsert
ClearPublishedParsed clears the value of the "published_parsed" field.
func (*FeedItemUpsert) ClearTitle ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearTitle() *FeedItemUpsert
ClearTitle clears the value of the "title" field.
func (*FeedItemUpsert) ClearUpdated ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearUpdated() *FeedItemUpsert
ClearUpdated clears the value of the "updated" field.
func (*FeedItemUpsert) ClearUpdatedParsed ¶ added in v0.0.8
func (u *FeedItemUpsert) ClearUpdatedParsed() *FeedItemUpsert
ClearUpdatedParsed clears the value of the "updated_parsed" field.
func (*FeedItemUpsert) SetAuthors ¶ added in v0.0.5
func (u *FeedItemUpsert) SetAuthors(v []*modelfeed.Person) *FeedItemUpsert
SetAuthors sets the "authors" field.
func (*FeedItemUpsert) SetContent ¶ added in v0.0.5
func (u *FeedItemUpsert) SetContent(v string) *FeedItemUpsert
SetContent sets the "content" field.
func (*FeedItemUpsert) SetCreatedAt ¶ added in v0.0.5
func (u *FeedItemUpsert) SetCreatedAt(v time.Time) *FeedItemUpsert
SetCreatedAt sets the "created_at" field.
func (*FeedItemUpsert) SetDescription ¶ added in v0.0.5
func (u *FeedItemUpsert) SetDescription(v string) *FeedItemUpsert
SetDescription sets the "description" field.
func (*FeedItemUpsert) SetEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsert) SetEnclosures(v []*modelfeed.Enclosure) *FeedItemUpsert
SetEnclosures sets the "enclosures" field.
func (*FeedItemUpsert) SetImage ¶ added in v0.0.5
func (u *FeedItemUpsert) SetImage(v *modelfeed.Image) *FeedItemUpsert
SetImage sets the "image" field.
func (*FeedItemUpsert) SetLink ¶ added in v0.0.5
func (u *FeedItemUpsert) SetLink(v string) *FeedItemUpsert
SetLink sets the "link" field.
func (*FeedItemUpsert) SetPublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsert) SetPublishPlatform(v string) *FeedItemUpsert
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemUpsert) SetPublished ¶ added in v0.0.5
func (u *FeedItemUpsert) SetPublished(v string) *FeedItemUpsert
SetPublished sets the "published" field.
func (*FeedItemUpsert) SetPublishedParsed ¶ added in v0.0.5
func (u *FeedItemUpsert) SetPublishedParsed(v time.Time) *FeedItemUpsert
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemUpsert) SetTitle ¶ added in v0.0.5
func (u *FeedItemUpsert) SetTitle(v string) *FeedItemUpsert
SetTitle sets the "title" field.
func (*FeedItemUpsert) SetUpdated ¶ added in v0.0.5
func (u *FeedItemUpsert) SetUpdated(v string) *FeedItemUpsert
SetUpdated sets the "updated" field.
func (*FeedItemUpsert) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedItemUpsert) SetUpdatedAt(v time.Time) *FeedItemUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemUpsert) SetUpdatedParsed ¶ added in v0.0.5
func (u *FeedItemUpsert) SetUpdatedParsed(v time.Time) *FeedItemUpsert
SetUpdatedParsed sets the "updated_parsed" field.
func (*FeedItemUpsert) UpdateAuthors ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateAuthors() *FeedItemUpsert
UpdateAuthors sets the "authors" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateContent ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateContent() *FeedItemUpsert
UpdateContent sets the "content" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateCreatedAt() *FeedItemUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateDescription ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateDescription() *FeedItemUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsert) UpdateEnclosures() *FeedItemUpsert
UpdateEnclosures sets the "enclosures" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateImage ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateImage() *FeedItemUpsert
UpdateImage sets the "image" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateLink ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateLink() *FeedItemUpsert
UpdateLink sets the "link" field to the value that was provided on create.
func (*FeedItemUpsert) UpdatePublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsert) UpdatePublishPlatform() *FeedItemUpsert
UpdatePublishPlatform sets the "publish_platform" field to the value that was provided on create.
func (*FeedItemUpsert) UpdatePublished ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdatePublished() *FeedItemUpsert
UpdatePublished sets the "published" field to the value that was provided on create.
func (*FeedItemUpsert) UpdatePublishedParsed ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdatePublishedParsed() *FeedItemUpsert
UpdatePublishedParsed sets the "published_parsed" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateTitle ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateTitle() *FeedItemUpsert
UpdateTitle sets the "title" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateUpdated ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateUpdated() *FeedItemUpsert
UpdateUpdated sets the "updated" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateUpdatedAt() *FeedItemUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*FeedItemUpsert) UpdateUpdatedParsed ¶ added in v0.0.5
func (u *FeedItemUpsert) UpdateUpdatedParsed() *FeedItemUpsert
UpdateUpdatedParsed sets the "updated_parsed" field to the value that was provided on create.
type FeedItemUpsertBulk ¶ added in v0.0.5
type FeedItemUpsertBulk struct {
// contains filtered or unexported fields
}
FeedItemUpsertBulk is the builder for "upsert"-ing a bulk of FeedItem nodes.
func (*FeedItemUpsertBulk) ClearAuthors ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearAuthors() *FeedItemUpsertBulk
ClearAuthors clears the value of the "authors" field.
func (*FeedItemUpsertBulk) ClearContent ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearContent() *FeedItemUpsertBulk
ClearContent clears the value of the "content" field.
func (*FeedItemUpsertBulk) ClearDescription ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearDescription() *FeedItemUpsertBulk
ClearDescription clears the value of the "description" field.
func (*FeedItemUpsertBulk) ClearEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearEnclosures() *FeedItemUpsertBulk
ClearEnclosures clears the value of the "enclosures" field.
func (*FeedItemUpsertBulk) ClearImage ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearImage() *FeedItemUpsertBulk
ClearImage clears the value of the "image" field.
func (*FeedItemUpsertBulk) ClearLink ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearLink() *FeedItemUpsertBulk
ClearLink clears the value of the "link" field.
func (*FeedItemUpsertBulk) ClearPublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearPublishPlatform() *FeedItemUpsertBulk
ClearPublishPlatform clears the value of the "publish_platform" field.
func (*FeedItemUpsertBulk) ClearPublished ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearPublished() *FeedItemUpsertBulk
ClearPublished clears the value of the "published" field.
func (*FeedItemUpsertBulk) ClearPublishedParsed ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearPublishedParsed() *FeedItemUpsertBulk
ClearPublishedParsed clears the value of the "published_parsed" field.
func (*FeedItemUpsertBulk) ClearTitle ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearTitle() *FeedItemUpsertBulk
ClearTitle clears the value of the "title" field.
func (*FeedItemUpsertBulk) ClearUpdated ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearUpdated() *FeedItemUpsertBulk
ClearUpdated clears the value of the "updated" field.
func (*FeedItemUpsertBulk) ClearUpdatedParsed ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) ClearUpdatedParsed() *FeedItemUpsertBulk
ClearUpdatedParsed clears the value of the "updated_parsed" field.
func (*FeedItemUpsertBulk) DoNothing ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) DoNothing() *FeedItemUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeedItemUpsertBulk) Exec ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedItemUpsertBulk) ExecX ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemUpsertBulk) Ignore ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) Ignore() *FeedItemUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FeedItem.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeedItemUpsertBulk) SetAuthors ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetAuthors(v []*modelfeed.Person) *FeedItemUpsertBulk
SetAuthors sets the "authors" field.
func (*FeedItemUpsertBulk) SetContent ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetContent(v string) *FeedItemUpsertBulk
SetContent sets the "content" field.
func (*FeedItemUpsertBulk) SetCreatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetCreatedAt(v time.Time) *FeedItemUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FeedItemUpsertBulk) SetDescription ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetDescription(v string) *FeedItemUpsertBulk
SetDescription sets the "description" field.
func (*FeedItemUpsertBulk) SetEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) SetEnclosures(v []*modelfeed.Enclosure) *FeedItemUpsertBulk
SetEnclosures sets the "enclosures" field.
func (*FeedItemUpsertBulk) SetImage ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetImage(v *modelfeed.Image) *FeedItemUpsertBulk
SetImage sets the "image" field.
func (*FeedItemUpsertBulk) SetLink ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetLink(v string) *FeedItemUpsertBulk
SetLink sets the "link" field.
func (*FeedItemUpsertBulk) SetPublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) SetPublishPlatform(v string) *FeedItemUpsertBulk
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemUpsertBulk) SetPublished ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetPublished(v string) *FeedItemUpsertBulk
SetPublished sets the "published" field.
func (*FeedItemUpsertBulk) SetPublishedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetPublishedParsed(v time.Time) *FeedItemUpsertBulk
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemUpsertBulk) SetTitle ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetTitle(v string) *FeedItemUpsertBulk
SetTitle sets the "title" field.
func (*FeedItemUpsertBulk) SetUpdated ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetUpdated(v string) *FeedItemUpsertBulk
SetUpdated sets the "updated" field.
func (*FeedItemUpsertBulk) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetUpdatedAt(v time.Time) *FeedItemUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemUpsertBulk) SetUpdatedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) SetUpdatedParsed(v time.Time) *FeedItemUpsertBulk
SetUpdatedParsed sets the "updated_parsed" field.
func (*FeedItemUpsertBulk) Update ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) Update(set func(*FeedItemUpsert)) *FeedItemUpsertBulk
Update allows overriding fields `UPDATE` values. See the FeedItemCreateBulk.OnConflict documentation for more info.
func (*FeedItemUpsertBulk) UpdateAuthors ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateAuthors() *FeedItemUpsertBulk
UpdateAuthors sets the "authors" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateContent ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateContent() *FeedItemUpsertBulk
UpdateContent sets the "content" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateCreatedAt() *FeedItemUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateDescription ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateDescription() *FeedItemUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) UpdateEnclosures() *FeedItemUpsertBulk
UpdateEnclosures sets the "enclosures" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateImage ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateImage() *FeedItemUpsertBulk
UpdateImage sets the "image" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateLink ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateLink() *FeedItemUpsertBulk
UpdateLink sets the "link" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateNewValues ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateNewValues() *FeedItemUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FeedItem.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(feeditem.FieldID) }), ). Exec(ctx)
func (*FeedItemUpsertBulk) UpdatePublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsertBulk) UpdatePublishPlatform() *FeedItemUpsertBulk
UpdatePublishPlatform sets the "publish_platform" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdatePublished ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdatePublished() *FeedItemUpsertBulk
UpdatePublished sets the "published" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdatePublishedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdatePublishedParsed() *FeedItemUpsertBulk
UpdatePublishedParsed sets the "published_parsed" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateTitle ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateTitle() *FeedItemUpsertBulk
UpdateTitle sets the "title" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateUpdated ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateUpdated() *FeedItemUpsertBulk
UpdateUpdated sets the "updated" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateUpdatedAt() *FeedItemUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*FeedItemUpsertBulk) UpdateUpdatedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertBulk) UpdateUpdatedParsed() *FeedItemUpsertBulk
UpdateUpdatedParsed sets the "updated_parsed" field to the value that was provided on create.
type FeedItemUpsertOne ¶ added in v0.0.5
type FeedItemUpsertOne struct {
// contains filtered or unexported fields
}
FeedItemUpsertOne is the builder for "upsert"-ing
one FeedItem node.
func (*FeedItemUpsertOne) ClearAuthors ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearAuthors() *FeedItemUpsertOne
ClearAuthors clears the value of the "authors" field.
func (*FeedItemUpsertOne) ClearContent ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearContent() *FeedItemUpsertOne
ClearContent clears the value of the "content" field.
func (*FeedItemUpsertOne) ClearDescription ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearDescription() *FeedItemUpsertOne
ClearDescription clears the value of the "description" field.
func (*FeedItemUpsertOne) ClearEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearEnclosures() *FeedItemUpsertOne
ClearEnclosures clears the value of the "enclosures" field.
func (*FeedItemUpsertOne) ClearImage ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearImage() *FeedItemUpsertOne
ClearImage clears the value of the "image" field.
func (*FeedItemUpsertOne) ClearLink ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearLink() *FeedItemUpsertOne
ClearLink clears the value of the "link" field.
func (*FeedItemUpsertOne) ClearPublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearPublishPlatform() *FeedItemUpsertOne
ClearPublishPlatform clears the value of the "publish_platform" field.
func (*FeedItemUpsertOne) ClearPublished ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearPublished() *FeedItemUpsertOne
ClearPublished clears the value of the "published" field.
func (*FeedItemUpsertOne) ClearPublishedParsed ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearPublishedParsed() *FeedItemUpsertOne
ClearPublishedParsed clears the value of the "published_parsed" field.
func (*FeedItemUpsertOne) ClearTitle ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearTitle() *FeedItemUpsertOne
ClearTitle clears the value of the "title" field.
func (*FeedItemUpsertOne) ClearUpdated ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearUpdated() *FeedItemUpsertOne
ClearUpdated clears the value of the "updated" field.
func (*FeedItemUpsertOne) ClearUpdatedParsed ¶ added in v0.0.8
func (u *FeedItemUpsertOne) ClearUpdatedParsed() *FeedItemUpsertOne
ClearUpdatedParsed clears the value of the "updated_parsed" field.
func (*FeedItemUpsertOne) DoNothing ¶ added in v0.0.5
func (u *FeedItemUpsertOne) DoNothing() *FeedItemUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeedItemUpsertOne) Exec ¶ added in v0.0.5
func (u *FeedItemUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedItemUpsertOne) ExecX ¶ added in v0.0.5
func (u *FeedItemUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedItemUpsertOne) ID ¶ added in v0.0.5
func (u *FeedItemUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FeedItemUpsertOne) IDX ¶ added in v0.0.5
func (u *FeedItemUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*FeedItemUpsertOne) Ignore ¶ added in v0.0.5
func (u *FeedItemUpsertOne) Ignore() *FeedItemUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FeedItem.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeedItemUpsertOne) SetAuthors ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetAuthors(v []*modelfeed.Person) *FeedItemUpsertOne
SetAuthors sets the "authors" field.
func (*FeedItemUpsertOne) SetContent ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetContent(v string) *FeedItemUpsertOne
SetContent sets the "content" field.
func (*FeedItemUpsertOne) SetCreatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetCreatedAt(v time.Time) *FeedItemUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FeedItemUpsertOne) SetDescription ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetDescription(v string) *FeedItemUpsertOne
SetDescription sets the "description" field.
func (*FeedItemUpsertOne) SetEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsertOne) SetEnclosures(v []*modelfeed.Enclosure) *FeedItemUpsertOne
SetEnclosures sets the "enclosures" field.
func (*FeedItemUpsertOne) SetImage ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetImage(v *modelfeed.Image) *FeedItemUpsertOne
SetImage sets the "image" field.
func (*FeedItemUpsertOne) SetLink ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetLink(v string) *FeedItemUpsertOne
SetLink sets the "link" field.
func (*FeedItemUpsertOne) SetPublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsertOne) SetPublishPlatform(v string) *FeedItemUpsertOne
SetPublishPlatform sets the "publish_platform" field.
func (*FeedItemUpsertOne) SetPublished ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetPublished(v string) *FeedItemUpsertOne
SetPublished sets the "published" field.
func (*FeedItemUpsertOne) SetPublishedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetPublishedParsed(v time.Time) *FeedItemUpsertOne
SetPublishedParsed sets the "published_parsed" field.
func (*FeedItemUpsertOne) SetTitle ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetTitle(v string) *FeedItemUpsertOne
SetTitle sets the "title" field.
func (*FeedItemUpsertOne) SetUpdated ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetUpdated(v string) *FeedItemUpsertOne
SetUpdated sets the "updated" field.
func (*FeedItemUpsertOne) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetUpdatedAt(v time.Time) *FeedItemUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FeedItemUpsertOne) SetUpdatedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertOne) SetUpdatedParsed(v time.Time) *FeedItemUpsertOne
SetUpdatedParsed sets the "updated_parsed" field.
func (*FeedItemUpsertOne) Update ¶ added in v0.0.5
func (u *FeedItemUpsertOne) Update(set func(*FeedItemUpsert)) *FeedItemUpsertOne
Update allows overriding fields `UPDATE` values. See the FeedItemCreate.OnConflict documentation for more info.
func (*FeedItemUpsertOne) UpdateAuthors ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateAuthors() *FeedItemUpsertOne
UpdateAuthors sets the "authors" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateContent ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateContent() *FeedItemUpsertOne
UpdateContent sets the "content" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateCreatedAt() *FeedItemUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateDescription ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateDescription() *FeedItemUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateEnclosures ¶ added in v0.0.8
func (u *FeedItemUpsertOne) UpdateEnclosures() *FeedItemUpsertOne
UpdateEnclosures sets the "enclosures" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateImage ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateImage() *FeedItemUpsertOne
UpdateImage sets the "image" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateLink ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateLink() *FeedItemUpsertOne
UpdateLink sets the "link" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateNewValues ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateNewValues() *FeedItemUpsertOne
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.FeedItem.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(feeditem.FieldID) }), ). Exec(ctx)
func (*FeedItemUpsertOne) UpdatePublishPlatform ¶ added in v0.0.8
func (u *FeedItemUpsertOne) UpdatePublishPlatform() *FeedItemUpsertOne
UpdatePublishPlatform sets the "publish_platform" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdatePublished ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdatePublished() *FeedItemUpsertOne
UpdatePublished sets the "published" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdatePublishedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdatePublishedParsed() *FeedItemUpsertOne
UpdatePublishedParsed sets the "published_parsed" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateTitle ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateTitle() *FeedItemUpsertOne
UpdateTitle sets the "title" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateUpdated ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateUpdated() *FeedItemUpsertOne
UpdateUpdated sets the "updated" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateUpdatedAt() *FeedItemUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*FeedItemUpsertOne) UpdateUpdatedParsed ¶ added in v0.0.5
func (u *FeedItemUpsertOne) UpdateUpdatedParsed() *FeedItemUpsertOne
UpdateUpdatedParsed sets the "updated_parsed" field to the value that was provided on create.
type FeedItems ¶ added in v0.0.5
type FeedItems []*FeedItem
FeedItems is a parsable slice of FeedItem.
type FeedMutation ¶ added in v0.0.5
type FeedMutation struct {
// contains filtered or unexported fields
}
FeedMutation represents an operation that mutates the Feed nodes in the graph.
func (*FeedMutation) AddField ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) AddItemIDs ¶ added in v0.0.6
func (m *FeedMutation) AddItemIDs(ids ...model.InternalID)
AddItemIDs adds the "item" edge to the FeedItem entity by ids.
func (*FeedMutation) AddedEdges ¶ added in v0.0.5
func (m *FeedMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FeedMutation) AddedField ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) AddedFields ¶ added in v0.0.5
func (m *FeedMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FeedMutation) AddedIDs ¶ added in v0.0.5
func (m *FeedMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FeedMutation) AppendAuthors ¶ added in v0.0.5
func (m *FeedMutation) AppendAuthors(value []*modelfeed.Person)
AppendAuthors adds value to the "authors" field.
func (*FeedMutation) AppendedAuthors ¶ added in v0.0.5
func (m *FeedMutation) AppendedAuthors() ([]*modelfeed.Person, bool)
AppendedAuthors returns the list of values that were appended to the "authors" field in this mutation.
func (*FeedMutation) Authors ¶ added in v0.0.5
func (m *FeedMutation) Authors() (r []*modelfeed.Person, exists bool)
Authors returns the value of the "authors" field in the mutation.
func (*FeedMutation) AuthorsCleared ¶ added in v0.0.8
func (m *FeedMutation) AuthorsCleared() bool
AuthorsCleared returns if the "authors" field was cleared in this mutation.
func (*FeedMutation) ClearAuthors ¶ added in v0.0.8
func (m *FeedMutation) ClearAuthors()
ClearAuthors clears the value of the "authors" field.
func (*FeedMutation) ClearConfig ¶ added in v0.0.5
func (m *FeedMutation) ClearConfig()
ClearConfig clears the "config" edge to the FeedConfig entity.
func (*FeedMutation) ClearDescription ¶ added in v0.0.8
func (m *FeedMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*FeedMutation) ClearEdge ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) ClearField ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) ClearImage ¶ added in v0.0.8
func (m *FeedMutation) ClearImage()
ClearImage clears the value of the "image" field.
func (*FeedMutation) ClearItem ¶ added in v0.0.6
func (m *FeedMutation) ClearItem()
ClearItem clears the "item" edge to the FeedItem entity.
func (*FeedMutation) ClearLanguage ¶ added in v0.0.8
func (m *FeedMutation) ClearLanguage()
ClearLanguage clears the value of the "language" field.
func (*FeedMutation) ClearLink ¶ added in v0.0.8
func (m *FeedMutation) ClearLink()
ClearLink clears the value of the "link" field.
func (*FeedMutation) ClearTitle ¶ added in v0.0.8
func (m *FeedMutation) ClearTitle()
ClearTitle clears the value of the "title" field.
func (*FeedMutation) ClearedEdges ¶ added in v0.0.5
func (m *FeedMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FeedMutation) ClearedFields ¶ added in v0.0.5
func (m *FeedMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FeedMutation) Client ¶ added in v0.0.5
func (m FeedMutation) 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 (*FeedMutation) ConfigCleared ¶ added in v0.0.5
func (m *FeedMutation) ConfigCleared() bool
ConfigCleared reports if the "config" edge to the FeedConfig entity was cleared.
func (*FeedMutation) ConfigID ¶ added in v0.0.5
func (m *FeedMutation) ConfigID() (id model.InternalID, exists bool)
ConfigID returns the "config" edge ID in the mutation.
func (*FeedMutation) ConfigIDs ¶ added in v0.0.5
func (m *FeedMutation) ConfigIDs() (ids []model.InternalID)
ConfigIDs returns the "config" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ConfigID instead. It exists only for internal usage by the builders.
func (*FeedMutation) CreatedAt ¶ added in v0.0.5
func (m *FeedMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FeedMutation) Description ¶ added in v0.0.5
func (m *FeedMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*FeedMutation) DescriptionCleared ¶ added in v0.0.8
func (m *FeedMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*FeedMutation) EdgeCleared ¶ added in v0.0.5
func (m *FeedMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FeedMutation) Field ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) FieldCleared ¶ added in v0.0.5
func (m *FeedMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FeedMutation) Fields ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) ID ¶ added in v0.0.5
func (m *FeedMutation) ID() (id model.InternalID, 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 (*FeedMutation) IDs ¶ added in v0.0.5
func (m *FeedMutation) IDs(ctx context.Context) ([]model.InternalID, 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 (*FeedMutation) Image ¶ added in v0.0.5
func (m *FeedMutation) Image() (r *modelfeed.Image, exists bool)
Image returns the value of the "image" field in the mutation.
func (*FeedMutation) ImageCleared ¶ added in v0.0.8
func (m *FeedMutation) ImageCleared() bool
ImageCleared returns if the "image" field was cleared in this mutation.
func (*FeedMutation) ItemCleared ¶ added in v0.0.6
func (m *FeedMutation) ItemCleared() bool
ItemCleared reports if the "item" edge to the FeedItem entity was cleared.
func (*FeedMutation) ItemIDs ¶ added in v0.0.6
func (m *FeedMutation) ItemIDs() (ids []model.InternalID)
ItemIDs returns the "item" edge IDs in the mutation.
func (*FeedMutation) Language ¶ added in v0.0.5
func (m *FeedMutation) Language() (r string, exists bool)
Language returns the value of the "language" field in the mutation.
func (*FeedMutation) LanguageCleared ¶ added in v0.0.8
func (m *FeedMutation) LanguageCleared() bool
LanguageCleared returns if the "language" field was cleared in this mutation.
func (*FeedMutation) Link ¶ added in v0.0.5
func (m *FeedMutation) Link() (r string, exists bool)
Link returns the value of the "link" field in the mutation.
func (*FeedMutation) LinkCleared ¶ added in v0.0.8
func (m *FeedMutation) LinkCleared() bool
LinkCleared returns if the "link" field was cleared in this mutation.
func (*FeedMutation) OldAuthors ¶ added in v0.0.5
OldAuthors returns the old "authors" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldCreatedAt ¶ added in v0.0.5
OldCreatedAt returns the old "created_at" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldDescription ¶ added in v0.0.5
func (m *FeedMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldField ¶ added in v0.0.5
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 (*FeedMutation) OldImage ¶ added in v0.0.5
OldImage returns the old "image" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldLanguage ¶ added in v0.0.5
func (m *FeedMutation) OldLanguage(ctx context.Context) (v string, err error)
OldLanguage returns the old "language" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldLink ¶ added in v0.0.5
func (m *FeedMutation) OldLink(ctx context.Context) (v string, err error)
OldLink returns the old "link" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldTitle ¶ added in v0.0.5
func (m *FeedMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) OldUpdatedAt ¶ added in v0.0.5
OldUpdatedAt returns the old "updated_at" field's value of the Feed entity. If the Feed object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FeedMutation) Op ¶ added in v0.0.5
func (m *FeedMutation) Op() Op
Op returns the operation name.
func (*FeedMutation) RemoveItemIDs ¶ added in v0.0.6
func (m *FeedMutation) RemoveItemIDs(ids ...model.InternalID)
RemoveItemIDs removes the "item" edge to the FeedItem entity by IDs.
func (*FeedMutation) RemovedEdges ¶ added in v0.0.5
func (m *FeedMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FeedMutation) RemovedIDs ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) RemovedItemIDs ¶ added in v0.0.6
func (m *FeedMutation) RemovedItemIDs() (ids []model.InternalID)
RemovedItem returns the removed IDs of the "item" edge to the FeedItem entity.
func (*FeedMutation) ResetAuthors ¶ added in v0.0.5
func (m *FeedMutation) ResetAuthors()
ResetAuthors resets all changes to the "authors" field.
func (*FeedMutation) ResetConfig ¶ added in v0.0.5
func (m *FeedMutation) ResetConfig()
ResetConfig resets all changes to the "config" edge.
func (*FeedMutation) ResetCreatedAt ¶ added in v0.0.5
func (m *FeedMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FeedMutation) ResetDescription ¶ added in v0.0.5
func (m *FeedMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*FeedMutation) ResetEdge ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) ResetField ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) ResetImage ¶ added in v0.0.5
func (m *FeedMutation) ResetImage()
ResetImage resets all changes to the "image" field.
func (*FeedMutation) ResetItem ¶ added in v0.0.6
func (m *FeedMutation) ResetItem()
ResetItem resets all changes to the "item" edge.
func (*FeedMutation) ResetLanguage ¶ added in v0.0.5
func (m *FeedMutation) ResetLanguage()
ResetLanguage resets all changes to the "language" field.
func (*FeedMutation) ResetLink ¶ added in v0.0.5
func (m *FeedMutation) ResetLink()
ResetLink resets all changes to the "link" field.
func (*FeedMutation) ResetTitle ¶ added in v0.0.5
func (m *FeedMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*FeedMutation) ResetUpdatedAt ¶ added in v0.0.5
func (m *FeedMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FeedMutation) SetAuthors ¶ added in v0.0.5
func (m *FeedMutation) SetAuthors(value []*modelfeed.Person)
SetAuthors sets the "authors" field.
func (*FeedMutation) SetConfigID ¶ added in v0.0.5
func (m *FeedMutation) SetConfigID(id model.InternalID)
SetConfigID sets the "config" edge to the FeedConfig entity by id.
func (*FeedMutation) SetCreatedAt ¶ added in v0.0.5
func (m *FeedMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*FeedMutation) SetDescription ¶ added in v0.0.5
func (m *FeedMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*FeedMutation) SetField ¶ added in v0.0.5
func (m *FeedMutation) 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 (*FeedMutation) SetID ¶ added in v0.0.6
func (m *FeedMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Feed entities.
func (*FeedMutation) SetImage ¶ added in v0.0.5
func (m *FeedMutation) SetImage(value *modelfeed.Image)
SetImage sets the "image" field.
func (*FeedMutation) SetLanguage ¶ added in v0.0.5
func (m *FeedMutation) SetLanguage(s string)
SetLanguage sets the "language" field.
func (*FeedMutation) SetLink ¶ added in v0.0.5
func (m *FeedMutation) SetLink(s string)
SetLink sets the "link" field.
func (*FeedMutation) SetOp ¶ added in v0.0.5
func (m *FeedMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*FeedMutation) SetTitle ¶ added in v0.0.5
func (m *FeedMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*FeedMutation) SetUpdatedAt ¶ added in v0.0.5
func (m *FeedMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*FeedMutation) Title ¶ added in v0.0.5
func (m *FeedMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (*FeedMutation) TitleCleared ¶ added in v0.0.8
func (m *FeedMutation) TitleCleared() bool
TitleCleared returns if the "title" field was cleared in this mutation.
func (FeedMutation) Tx ¶ added in v0.0.5
func (m FeedMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FeedMutation) Type ¶ added in v0.0.5
func (m *FeedMutation) Type() string
Type returns the node type of this mutation (Feed).
func (*FeedMutation) UpdatedAt ¶ added in v0.0.5
func (m *FeedMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FeedMutation) Where ¶ added in v0.0.5
func (m *FeedMutation) Where(ps ...predicate.Feed)
Where appends a list predicates to the FeedMutation builder.
func (*FeedMutation) WhereP ¶ added in v0.0.5
func (m *FeedMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FeedMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FeedQuery ¶ added in v0.0.5
type FeedQuery struct {
// contains filtered or unexported fields
}
FeedQuery is the builder for querying Feed entities.
func (*FeedQuery) Aggregate ¶ added in v0.0.5
func (fq *FeedQuery) Aggregate(fns ...AggregateFunc) *FeedSelect
Aggregate returns a FeedSelect configured with the given aggregations.
func (*FeedQuery) Clone ¶ added in v0.0.5
Clone returns a duplicate of the FeedQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FeedQuery) Exist ¶ added in v0.0.5
Exist returns true if the query has elements in the graph.
func (*FeedQuery) First ¶ added in v0.0.5
First returns the first Feed entity from the query. Returns a *NotFoundError when no Feed was found.
func (*FeedQuery) FirstID ¶ added in v0.0.5
FirstID returns the first Feed ID from the query. Returns a *NotFoundError when no Feed ID was found.
func (*FeedQuery) FirstIDX ¶ added in v0.0.5
func (fq *FeedQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*FeedQuery) GroupBy ¶ added in v0.0.5
func (fq *FeedQuery) GroupBy(field string, fields ...string) *FeedGroupBy
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 { Title string `json:"title,omitempty"` Count int `json:"count,omitempty"` } client.Feed.Query(). GroupBy(feed.FieldTitle). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FeedQuery) IDsX ¶ added in v0.0.5
func (fq *FeedQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*FeedQuery) Only ¶ added in v0.0.5
Only returns a single Feed entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Feed entity is found. Returns a *NotFoundError when no Feed entities are found.
func (*FeedQuery) OnlyID ¶ added in v0.0.5
OnlyID is like Only, but returns the only Feed ID in the query. Returns a *NotSingularError when more than one Feed ID is found. Returns a *NotFoundError when no entities are found.
func (*FeedQuery) OnlyIDX ¶ added in v0.0.5
func (fq *FeedQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FeedQuery) QueryConfig ¶ added in v0.0.5
func (fq *FeedQuery) QueryConfig() *FeedConfigQuery
QueryConfig chains the current query on the "config" edge.
func (*FeedQuery) QueryItem ¶ added in v0.0.6
func (fq *FeedQuery) QueryItem() *FeedItemQuery
QueryItem chains the current query on the "item" edge.
func (*FeedQuery) Select ¶ added in v0.0.5
func (fq *FeedQuery) Select(fields ...string) *FeedSelect
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 { Title string `json:"title,omitempty"` } client.Feed.Query(). Select(feed.FieldTitle). Scan(ctx, &v)
func (*FeedQuery) Unique ¶ added in v0.0.5
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 (*FeedQuery) WithConfig ¶ added in v0.0.5
func (fq *FeedQuery) WithConfig(opts ...func(*FeedConfigQuery)) *FeedQuery
WithConfig tells the query-builder to eager-load the nodes that are connected to the "config" edge. The optional arguments are used to configure the query builder of the edge.
func (*FeedQuery) WithItem ¶ added in v0.0.6
func (fq *FeedQuery) WithItem(opts ...func(*FeedItemQuery)) *FeedQuery
WithItem tells the query-builder to eager-load the nodes that are connected to the "item" edge. The optional arguments are used to configure the query builder of the edge.
type FeedSelect ¶ added in v0.0.5
type FeedSelect struct { *FeedQuery // contains filtered or unexported fields }
FeedSelect is the builder for selecting fields of Feed entities.
func (*FeedSelect) Aggregate ¶ added in v0.0.5
func (fs *FeedSelect) Aggregate(fns ...AggregateFunc) *FeedSelect
Aggregate adds the given aggregation functions to the selector query.
func (*FeedSelect) Bool ¶ added in v0.0.5
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeedSelect) Bools ¶ added in v0.0.5
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeedSelect) Float64 ¶ added in v0.0.5
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeedSelect) Float64X ¶ added in v0.0.5
Float64X is like Float64, but panics if an error occurs.
func (*FeedSelect) Float64s ¶ added in v0.0.5
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeedSelect) Float64sX ¶ added in v0.0.5
Float64sX is like Float64s, but panics if an error occurs.
func (*FeedSelect) Int ¶ added in v0.0.5
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeedSelect) Ints ¶ added in v0.0.5
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeedSelect) Scan ¶ added in v0.0.5
func (fs *FeedSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeedSelect) String ¶ added in v0.0.5
String returns a single string from a selector. It is only allowed when selecting one field.
type FeedUpdate ¶ added in v0.0.5
type FeedUpdate struct {
// contains filtered or unexported fields
}
FeedUpdate is the builder for updating Feed entities.
func (*FeedUpdate) AddItem ¶ added in v0.0.6
func (fu *FeedUpdate) AddItem(f ...*FeedItem) *FeedUpdate
AddItem adds the "item" edges to the FeedItem entity.
func (*FeedUpdate) AddItemIDs ¶ added in v0.0.6
func (fu *FeedUpdate) AddItemIDs(ids ...model.InternalID) *FeedUpdate
AddItemIDs adds the "item" edge to the FeedItem entity by IDs.
func (*FeedUpdate) AppendAuthors ¶ added in v0.0.5
func (fu *FeedUpdate) AppendAuthors(m []*modelfeed.Person) *FeedUpdate
AppendAuthors appends m to the "authors" field.
func (*FeedUpdate) ClearAuthors ¶ added in v0.0.8
func (fu *FeedUpdate) ClearAuthors() *FeedUpdate
ClearAuthors clears the value of the "authors" field.
func (*FeedUpdate) ClearConfig ¶ added in v0.0.5
func (fu *FeedUpdate) ClearConfig() *FeedUpdate
ClearConfig clears the "config" edge to the FeedConfig entity.
func (*FeedUpdate) ClearDescription ¶ added in v0.0.8
func (fu *FeedUpdate) ClearDescription() *FeedUpdate
ClearDescription clears the value of the "description" field.
func (*FeedUpdate) ClearImage ¶ added in v0.0.8
func (fu *FeedUpdate) ClearImage() *FeedUpdate
ClearImage clears the value of the "image" field.
func (*FeedUpdate) ClearItem ¶ added in v0.0.6
func (fu *FeedUpdate) ClearItem() *FeedUpdate
ClearItem clears all "item" edges to the FeedItem entity.
func (*FeedUpdate) ClearLanguage ¶ added in v0.0.8
func (fu *FeedUpdate) ClearLanguage() *FeedUpdate
ClearLanguage clears the value of the "language" field.
func (*FeedUpdate) ClearLink ¶ added in v0.0.8
func (fu *FeedUpdate) ClearLink() *FeedUpdate
ClearLink clears the value of the "link" field.
func (*FeedUpdate) ClearTitle ¶ added in v0.0.8
func (fu *FeedUpdate) ClearTitle() *FeedUpdate
ClearTitle clears the value of the "title" field.
func (*FeedUpdate) Exec ¶ added in v0.0.5
func (fu *FeedUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedUpdate) ExecX ¶ added in v0.0.5
func (fu *FeedUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedUpdate) Mutation ¶ added in v0.0.5
func (fu *FeedUpdate) Mutation() *FeedMutation
Mutation returns the FeedMutation object of the builder.
func (*FeedUpdate) RemoveItem ¶ added in v0.0.6
func (fu *FeedUpdate) RemoveItem(f ...*FeedItem) *FeedUpdate
RemoveItem removes "item" edges to FeedItem entities.
func (*FeedUpdate) RemoveItemIDs ¶ added in v0.0.6
func (fu *FeedUpdate) RemoveItemIDs(ids ...model.InternalID) *FeedUpdate
RemoveItemIDs removes the "item" edge to FeedItem entities by IDs.
func (*FeedUpdate) Save ¶ added in v0.0.5
func (fu *FeedUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FeedUpdate) SaveX ¶ added in v0.0.5
func (fu *FeedUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FeedUpdate) SetAuthors ¶ added in v0.0.5
func (fu *FeedUpdate) SetAuthors(m []*modelfeed.Person) *FeedUpdate
SetAuthors sets the "authors" field.
func (*FeedUpdate) SetConfig ¶ added in v0.0.5
func (fu *FeedUpdate) SetConfig(f *FeedConfig) *FeedUpdate
SetConfig sets the "config" edge to the FeedConfig entity.
func (*FeedUpdate) SetConfigID ¶ added in v0.0.5
func (fu *FeedUpdate) SetConfigID(id model.InternalID) *FeedUpdate
SetConfigID sets the "config" edge to the FeedConfig entity by ID.
func (*FeedUpdate) SetCreatedAt ¶ added in v0.0.5
func (fu *FeedUpdate) SetCreatedAt(t time.Time) *FeedUpdate
SetCreatedAt sets the "created_at" field.
func (*FeedUpdate) SetDescription ¶ added in v0.0.5
func (fu *FeedUpdate) SetDescription(s string) *FeedUpdate
SetDescription sets the "description" field.
func (*FeedUpdate) SetImage ¶ added in v0.0.5
func (fu *FeedUpdate) SetImage(m *modelfeed.Image) *FeedUpdate
SetImage sets the "image" field.
func (*FeedUpdate) SetLanguage ¶ added in v0.0.5
func (fu *FeedUpdate) SetLanguage(s string) *FeedUpdate
SetLanguage sets the "language" field.
func (*FeedUpdate) SetLink ¶ added in v0.0.5
func (fu *FeedUpdate) SetLink(s string) *FeedUpdate
SetLink sets the "link" field.
func (*FeedUpdate) SetNillableCreatedAt ¶ added in v0.0.5
func (fu *FeedUpdate) SetNillableCreatedAt(t *time.Time) *FeedUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedUpdate) SetNillableDescription ¶ added in v0.0.8
func (fu *FeedUpdate) SetNillableDescription(s *string) *FeedUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*FeedUpdate) SetNillableLanguage ¶ added in v0.0.8
func (fu *FeedUpdate) SetNillableLanguage(s *string) *FeedUpdate
SetNillableLanguage sets the "language" field if the given value is not nil.
func (*FeedUpdate) SetNillableLink ¶ added in v0.0.8
func (fu *FeedUpdate) SetNillableLink(s *string) *FeedUpdate
SetNillableLink sets the "link" field if the given value is not nil.
func (*FeedUpdate) SetNillableTitle ¶ added in v0.0.8
func (fu *FeedUpdate) SetNillableTitle(s *string) *FeedUpdate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*FeedUpdate) SetTitle ¶ added in v0.0.5
func (fu *FeedUpdate) SetTitle(s string) *FeedUpdate
SetTitle sets the "title" field.
func (*FeedUpdate) SetUpdatedAt ¶ added in v0.0.5
func (fu *FeedUpdate) SetUpdatedAt(t time.Time) *FeedUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FeedUpdate) Where ¶ added in v0.0.5
func (fu *FeedUpdate) Where(ps ...predicate.Feed) *FeedUpdate
Where appends a list predicates to the FeedUpdate builder.
type FeedUpdateOne ¶ added in v0.0.5
type FeedUpdateOne struct {
// contains filtered or unexported fields
}
FeedUpdateOne is the builder for updating a single Feed entity.
func (*FeedUpdateOne) AddItem ¶ added in v0.0.6
func (fuo *FeedUpdateOne) AddItem(f ...*FeedItem) *FeedUpdateOne
AddItem adds the "item" edges to the FeedItem entity.
func (*FeedUpdateOne) AddItemIDs ¶ added in v0.0.6
func (fuo *FeedUpdateOne) AddItemIDs(ids ...model.InternalID) *FeedUpdateOne
AddItemIDs adds the "item" edge to the FeedItem entity by IDs.
func (*FeedUpdateOne) AppendAuthors ¶ added in v0.0.5
func (fuo *FeedUpdateOne) AppendAuthors(m []*modelfeed.Person) *FeedUpdateOne
AppendAuthors appends m to the "authors" field.
func (*FeedUpdateOne) ClearAuthors ¶ added in v0.0.8
func (fuo *FeedUpdateOne) ClearAuthors() *FeedUpdateOne
ClearAuthors clears the value of the "authors" field.
func (*FeedUpdateOne) ClearConfig ¶ added in v0.0.5
func (fuo *FeedUpdateOne) ClearConfig() *FeedUpdateOne
ClearConfig clears the "config" edge to the FeedConfig entity.
func (*FeedUpdateOne) ClearDescription ¶ added in v0.0.8
func (fuo *FeedUpdateOne) ClearDescription() *FeedUpdateOne
ClearDescription clears the value of the "description" field.
func (*FeedUpdateOne) ClearImage ¶ added in v0.0.8
func (fuo *FeedUpdateOne) ClearImage() *FeedUpdateOne
ClearImage clears the value of the "image" field.
func (*FeedUpdateOne) ClearItem ¶ added in v0.0.6
func (fuo *FeedUpdateOne) ClearItem() *FeedUpdateOne
ClearItem clears all "item" edges to the FeedItem entity.
func (*FeedUpdateOne) ClearLanguage ¶ added in v0.0.8
func (fuo *FeedUpdateOne) ClearLanguage() *FeedUpdateOne
ClearLanguage clears the value of the "language" field.
func (*FeedUpdateOne) ClearLink ¶ added in v0.0.8
func (fuo *FeedUpdateOne) ClearLink() *FeedUpdateOne
ClearLink clears the value of the "link" field.
func (*FeedUpdateOne) ClearTitle ¶ added in v0.0.8
func (fuo *FeedUpdateOne) ClearTitle() *FeedUpdateOne
ClearTitle clears the value of the "title" field.
func (*FeedUpdateOne) Exec ¶ added in v0.0.5
func (fuo *FeedUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FeedUpdateOne) ExecX ¶ added in v0.0.5
func (fuo *FeedUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedUpdateOne) Mutation ¶ added in v0.0.5
func (fuo *FeedUpdateOne) Mutation() *FeedMutation
Mutation returns the FeedMutation object of the builder.
func (*FeedUpdateOne) RemoveItem ¶ added in v0.0.6
func (fuo *FeedUpdateOne) RemoveItem(f ...*FeedItem) *FeedUpdateOne
RemoveItem removes "item" edges to FeedItem entities.
func (*FeedUpdateOne) RemoveItemIDs ¶ added in v0.0.6
func (fuo *FeedUpdateOne) RemoveItemIDs(ids ...model.InternalID) *FeedUpdateOne
RemoveItemIDs removes the "item" edge to FeedItem entities by IDs.
func (*FeedUpdateOne) Save ¶ added in v0.0.5
func (fuo *FeedUpdateOne) Save(ctx context.Context) (*Feed, error)
Save executes the query and returns the updated Feed entity.
func (*FeedUpdateOne) SaveX ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SaveX(ctx context.Context) *Feed
SaveX is like Save, but panics if an error occurs.
func (*FeedUpdateOne) Select ¶ added in v0.0.5
func (fuo *FeedUpdateOne) Select(field string, fields ...string) *FeedUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FeedUpdateOne) SetAuthors ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetAuthors(m []*modelfeed.Person) *FeedUpdateOne
SetAuthors sets the "authors" field.
func (*FeedUpdateOne) SetConfig ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetConfig(f *FeedConfig) *FeedUpdateOne
SetConfig sets the "config" edge to the FeedConfig entity.
func (*FeedUpdateOne) SetConfigID ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetConfigID(id model.InternalID) *FeedUpdateOne
SetConfigID sets the "config" edge to the FeedConfig entity by ID.
func (*FeedUpdateOne) SetCreatedAt ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetCreatedAt(t time.Time) *FeedUpdateOne
SetCreatedAt sets the "created_at" field.
func (*FeedUpdateOne) SetDescription ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetDescription(s string) *FeedUpdateOne
SetDescription sets the "description" field.
func (*FeedUpdateOne) SetImage ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetImage(m *modelfeed.Image) *FeedUpdateOne
SetImage sets the "image" field.
func (*FeedUpdateOne) SetLanguage ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetLanguage(s string) *FeedUpdateOne
SetLanguage sets the "language" field.
func (*FeedUpdateOne) SetLink ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetLink(s string) *FeedUpdateOne
SetLink sets the "link" field.
func (*FeedUpdateOne) SetNillableCreatedAt ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetNillableCreatedAt(t *time.Time) *FeedUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeedUpdateOne) SetNillableDescription ¶ added in v0.0.8
func (fuo *FeedUpdateOne) SetNillableDescription(s *string) *FeedUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*FeedUpdateOne) SetNillableLanguage ¶ added in v0.0.8
func (fuo *FeedUpdateOne) SetNillableLanguage(s *string) *FeedUpdateOne
SetNillableLanguage sets the "language" field if the given value is not nil.
func (*FeedUpdateOne) SetNillableLink ¶ added in v0.0.8
func (fuo *FeedUpdateOne) SetNillableLink(s *string) *FeedUpdateOne
SetNillableLink sets the "link" field if the given value is not nil.
func (*FeedUpdateOne) SetNillableTitle ¶ added in v0.0.8
func (fuo *FeedUpdateOne) SetNillableTitle(s *string) *FeedUpdateOne
SetNillableTitle sets the "title" field if the given value is not nil.
func (*FeedUpdateOne) SetTitle ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetTitle(s string) *FeedUpdateOne
SetTitle sets the "title" field.
func (*FeedUpdateOne) SetUpdatedAt ¶ added in v0.0.5
func (fuo *FeedUpdateOne) SetUpdatedAt(t time.Time) *FeedUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*FeedUpdateOne) Where ¶ added in v0.0.5
func (fuo *FeedUpdateOne) Where(ps ...predicate.Feed) *FeedUpdateOne
Where appends a list predicates to the FeedUpdate builder.
type FeedUpsert ¶ added in v0.0.5
FeedUpsert is the "OnConflict" setter.
func (*FeedUpsert) ClearAuthors ¶ added in v0.0.8
func (u *FeedUpsert) ClearAuthors() *FeedUpsert
ClearAuthors clears the value of the "authors" field.
func (*FeedUpsert) ClearDescription ¶ added in v0.0.8
func (u *FeedUpsert) ClearDescription() *FeedUpsert
ClearDescription clears the value of the "description" field.
func (*FeedUpsert) ClearImage ¶ added in v0.0.8
func (u *FeedUpsert) ClearImage() *FeedUpsert
ClearImage clears the value of the "image" field.
func (*FeedUpsert) ClearLanguage ¶ added in v0.0.8
func (u *FeedUpsert) ClearLanguage() *FeedUpsert
ClearLanguage clears the value of the "language" field.
func (*FeedUpsert) ClearLink ¶ added in v0.0.8
func (u *FeedUpsert) ClearLink() *FeedUpsert
ClearLink clears the value of the "link" field.
func (*FeedUpsert) ClearTitle ¶ added in v0.0.8
func (u *FeedUpsert) ClearTitle() *FeedUpsert
ClearTitle clears the value of the "title" field.
func (*FeedUpsert) SetAuthors ¶ added in v0.0.5
func (u *FeedUpsert) SetAuthors(v []*modelfeed.Person) *FeedUpsert
SetAuthors sets the "authors" field.
func (*FeedUpsert) SetCreatedAt ¶ added in v0.0.5
func (u *FeedUpsert) SetCreatedAt(v time.Time) *FeedUpsert
SetCreatedAt sets the "created_at" field.
func (*FeedUpsert) SetDescription ¶ added in v0.0.5
func (u *FeedUpsert) SetDescription(v string) *FeedUpsert
SetDescription sets the "description" field.
func (*FeedUpsert) SetImage ¶ added in v0.0.5
func (u *FeedUpsert) SetImage(v *modelfeed.Image) *FeedUpsert
SetImage sets the "image" field.
func (*FeedUpsert) SetLanguage ¶ added in v0.0.5
func (u *FeedUpsert) SetLanguage(v string) *FeedUpsert
SetLanguage sets the "language" field.
func (*FeedUpsert) SetLink ¶ added in v0.0.5
func (u *FeedUpsert) SetLink(v string) *FeedUpsert
SetLink sets the "link" field.
func (*FeedUpsert) SetTitle ¶ added in v0.0.5
func (u *FeedUpsert) SetTitle(v string) *FeedUpsert
SetTitle sets the "title" field.
func (*FeedUpsert) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedUpsert) SetUpdatedAt(v time.Time) *FeedUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FeedUpsert) UpdateAuthors ¶ added in v0.0.5
func (u *FeedUpsert) UpdateAuthors() *FeedUpsert
UpdateAuthors sets the "authors" field to the value that was provided on create.
func (*FeedUpsert) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedUpsert) UpdateCreatedAt() *FeedUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedUpsert) UpdateDescription ¶ added in v0.0.5
func (u *FeedUpsert) UpdateDescription() *FeedUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*FeedUpsert) UpdateImage ¶ added in v0.0.5
func (u *FeedUpsert) UpdateImage() *FeedUpsert
UpdateImage sets the "image" field to the value that was provided on create.
func (*FeedUpsert) UpdateLanguage ¶ added in v0.0.5
func (u *FeedUpsert) UpdateLanguage() *FeedUpsert
UpdateLanguage sets the "language" field to the value that was provided on create.
func (*FeedUpsert) UpdateLink ¶ added in v0.0.5
func (u *FeedUpsert) UpdateLink() *FeedUpsert
UpdateLink sets the "link" field to the value that was provided on create.
func (*FeedUpsert) UpdateTitle ¶ added in v0.0.5
func (u *FeedUpsert) UpdateTitle() *FeedUpsert
UpdateTitle sets the "title" field to the value that was provided on create.
func (*FeedUpsert) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedUpsert) UpdateUpdatedAt() *FeedUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeedUpsertBulk ¶ added in v0.0.5
type FeedUpsertBulk struct {
// contains filtered or unexported fields
}
FeedUpsertBulk is the builder for "upsert"-ing a bulk of Feed nodes.
func (*FeedUpsertBulk) ClearAuthors ¶ added in v0.0.8
func (u *FeedUpsertBulk) ClearAuthors() *FeedUpsertBulk
ClearAuthors clears the value of the "authors" field.
func (*FeedUpsertBulk) ClearDescription ¶ added in v0.0.8
func (u *FeedUpsertBulk) ClearDescription() *FeedUpsertBulk
ClearDescription clears the value of the "description" field.
func (*FeedUpsertBulk) ClearImage ¶ added in v0.0.8
func (u *FeedUpsertBulk) ClearImage() *FeedUpsertBulk
ClearImage clears the value of the "image" field.
func (*FeedUpsertBulk) ClearLanguage ¶ added in v0.0.8
func (u *FeedUpsertBulk) ClearLanguage() *FeedUpsertBulk
ClearLanguage clears the value of the "language" field.
func (*FeedUpsertBulk) ClearLink ¶ added in v0.0.8
func (u *FeedUpsertBulk) ClearLink() *FeedUpsertBulk
ClearLink clears the value of the "link" field.
func (*FeedUpsertBulk) ClearTitle ¶ added in v0.0.8
func (u *FeedUpsertBulk) ClearTitle() *FeedUpsertBulk
ClearTitle clears the value of the "title" field.
func (*FeedUpsertBulk) DoNothing ¶ added in v0.0.5
func (u *FeedUpsertBulk) DoNothing() *FeedUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeedUpsertBulk) Exec ¶ added in v0.0.5
func (u *FeedUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedUpsertBulk) ExecX ¶ added in v0.0.5
func (u *FeedUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedUpsertBulk) Ignore ¶ added in v0.0.5
func (u *FeedUpsertBulk) Ignore() *FeedUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Feed.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeedUpsertBulk) SetAuthors ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetAuthors(v []*modelfeed.Person) *FeedUpsertBulk
SetAuthors sets the "authors" field.
func (*FeedUpsertBulk) SetCreatedAt ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetCreatedAt(v time.Time) *FeedUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*FeedUpsertBulk) SetDescription ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetDescription(v string) *FeedUpsertBulk
SetDescription sets the "description" field.
func (*FeedUpsertBulk) SetImage ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetImage(v *modelfeed.Image) *FeedUpsertBulk
SetImage sets the "image" field.
func (*FeedUpsertBulk) SetLanguage ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetLanguage(v string) *FeedUpsertBulk
SetLanguage sets the "language" field.
func (*FeedUpsertBulk) SetLink ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetLink(v string) *FeedUpsertBulk
SetLink sets the "link" field.
func (*FeedUpsertBulk) SetTitle ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetTitle(v string) *FeedUpsertBulk
SetTitle sets the "title" field.
func (*FeedUpsertBulk) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedUpsertBulk) SetUpdatedAt(v time.Time) *FeedUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FeedUpsertBulk) Update ¶ added in v0.0.5
func (u *FeedUpsertBulk) Update(set func(*FeedUpsert)) *FeedUpsertBulk
Update allows overriding fields `UPDATE` values. See the FeedCreateBulk.OnConflict documentation for more info.
func (*FeedUpsertBulk) UpdateAuthors ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateAuthors() *FeedUpsertBulk
UpdateAuthors sets the "authors" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateCreatedAt() *FeedUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateDescription ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateDescription() *FeedUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateImage ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateImage() *FeedUpsertBulk
UpdateImage sets the "image" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateLanguage ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateLanguage() *FeedUpsertBulk
UpdateLanguage sets the "language" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateLink ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateLink() *FeedUpsertBulk
UpdateLink sets the "link" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateNewValues ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateNewValues() *FeedUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Feed.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(feed.FieldID) }), ). Exec(ctx)
func (*FeedUpsertBulk) UpdateTitle ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateTitle() *FeedUpsertBulk
UpdateTitle sets the "title" field to the value that was provided on create.
func (*FeedUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedUpsertBulk) UpdateUpdatedAt() *FeedUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeedUpsertOne ¶ added in v0.0.5
type FeedUpsertOne struct {
// contains filtered or unexported fields
}
FeedUpsertOne is the builder for "upsert"-ing
one Feed node.
func (*FeedUpsertOne) ClearAuthors ¶ added in v0.0.8
func (u *FeedUpsertOne) ClearAuthors() *FeedUpsertOne
ClearAuthors clears the value of the "authors" field.
func (*FeedUpsertOne) ClearDescription ¶ added in v0.0.8
func (u *FeedUpsertOne) ClearDescription() *FeedUpsertOne
ClearDescription clears the value of the "description" field.
func (*FeedUpsertOne) ClearImage ¶ added in v0.0.8
func (u *FeedUpsertOne) ClearImage() *FeedUpsertOne
ClearImage clears the value of the "image" field.
func (*FeedUpsertOne) ClearLanguage ¶ added in v0.0.8
func (u *FeedUpsertOne) ClearLanguage() *FeedUpsertOne
ClearLanguage clears the value of the "language" field.
func (*FeedUpsertOne) ClearLink ¶ added in v0.0.8
func (u *FeedUpsertOne) ClearLink() *FeedUpsertOne
ClearLink clears the value of the "link" field.
func (*FeedUpsertOne) ClearTitle ¶ added in v0.0.8
func (u *FeedUpsertOne) ClearTitle() *FeedUpsertOne
ClearTitle clears the value of the "title" field.
func (*FeedUpsertOne) DoNothing ¶ added in v0.0.5
func (u *FeedUpsertOne) DoNothing() *FeedUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeedUpsertOne) Exec ¶ added in v0.0.5
func (u *FeedUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FeedUpsertOne) ExecX ¶ added in v0.0.5
func (u *FeedUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeedUpsertOne) ID ¶ added in v0.0.5
func (u *FeedUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FeedUpsertOne) IDX ¶ added in v0.0.5
func (u *FeedUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*FeedUpsertOne) Ignore ¶ added in v0.0.5
func (u *FeedUpsertOne) Ignore() *FeedUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Feed.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeedUpsertOne) SetAuthors ¶ added in v0.0.5
func (u *FeedUpsertOne) SetAuthors(v []*modelfeed.Person) *FeedUpsertOne
SetAuthors sets the "authors" field.
func (*FeedUpsertOne) SetCreatedAt ¶ added in v0.0.5
func (u *FeedUpsertOne) SetCreatedAt(v time.Time) *FeedUpsertOne
SetCreatedAt sets the "created_at" field.
func (*FeedUpsertOne) SetDescription ¶ added in v0.0.5
func (u *FeedUpsertOne) SetDescription(v string) *FeedUpsertOne
SetDescription sets the "description" field.
func (*FeedUpsertOne) SetImage ¶ added in v0.0.5
func (u *FeedUpsertOne) SetImage(v *modelfeed.Image) *FeedUpsertOne
SetImage sets the "image" field.
func (*FeedUpsertOne) SetLanguage ¶ added in v0.0.5
func (u *FeedUpsertOne) SetLanguage(v string) *FeedUpsertOne
SetLanguage sets the "language" field.
func (*FeedUpsertOne) SetLink ¶ added in v0.0.5
func (u *FeedUpsertOne) SetLink(v string) *FeedUpsertOne
SetLink sets the "link" field.
func (*FeedUpsertOne) SetTitle ¶ added in v0.0.5
func (u *FeedUpsertOne) SetTitle(v string) *FeedUpsertOne
SetTitle sets the "title" field.
func (*FeedUpsertOne) SetUpdatedAt ¶ added in v0.0.5
func (u *FeedUpsertOne) SetUpdatedAt(v time.Time) *FeedUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FeedUpsertOne) Update ¶ added in v0.0.5
func (u *FeedUpsertOne) Update(set func(*FeedUpsert)) *FeedUpsertOne
Update allows overriding fields `UPDATE` values. See the FeedCreate.OnConflict documentation for more info.
func (*FeedUpsertOne) UpdateAuthors ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateAuthors() *FeedUpsertOne
UpdateAuthors sets the "authors" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateCreatedAt ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateCreatedAt() *FeedUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateDescription ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateDescription() *FeedUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateImage ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateImage() *FeedUpsertOne
UpdateImage sets the "image" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateLanguage ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateLanguage() *FeedUpsertOne
UpdateLanguage sets the "language" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateLink ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateLink() *FeedUpsertOne
UpdateLink sets the "link" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateNewValues ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateNewValues() *FeedUpsertOne
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.Feed.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(feed.FieldID) }), ). Exec(ctx)
func (*FeedUpsertOne) UpdateTitle ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateTitle() *FeedUpsertOne
UpdateTitle sets the "title" field to the value that was provided on create.
func (*FeedUpsertOne) UpdateUpdatedAt ¶ added in v0.0.5
func (u *FeedUpsertOne) UpdateUpdatedAt() *FeedUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type InterceptFunc ¶ added in v0.0.4
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶ added in v0.0.4
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type 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 QuerierFunc ¶ added in v0.0.4
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶ added in v0.0.4
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶ added in v0.0.4
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 // App is the client for interacting with the App builders. App *AppClient // AppPackage is the client for interacting with the AppPackage builders. AppPackage *AppPackageClient // Feed is the client for interacting with the Feed builders. Feed *FeedClient // FeedConfig is the client for interacting with the FeedConfig builders. FeedConfig *FeedConfigClient // FeedItem is the client for interacting with the FeedItem builders. FeedItem *FeedItemClient // User is the client for interacting with the User builders. User *UserClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type User ¶
type User struct { // ID of the ent. ID model.InternalID `json:"id,omitempty"` // Username holds the value of the "username" field. Username string `json:"username,omitempty"` // Password holds the value of the "password" field. Password string `json:"password,omitempty"` // Status holds the value of the "status" field. Status user.Status `json:"status,omitempty"` // Type holds the value of the "type" field. Type user.Type `json:"type,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt time.Time `json:"updated_at,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserQuery when eager-loading is set. Edges UserEdges `json:"edges"` // contains filtered or unexported fields }
User is the model entity for the User schema.
func (*User) QueryAccount ¶ added in v0.0.6
func (u *User) QueryAccount() *AccountQuery
QueryAccount queries the "account" edge of the User entity.
func (*User) QueryCreate ¶ added in v0.0.6
QueryCreate queries the "create" edge of the User entity.
func (*User) QueryCreator ¶ added in v0.0.6
QueryCreator queries the "creator" edge of the User entity.
func (*User) QueryFeedConfig ¶ added in v0.0.6
func (u *User) QueryFeedConfig() *FeedConfigQuery
QueryFeedConfig queries the "feed_config" edge of the User entity.
func (*User) Unwrap ¶
Unwrap unwraps the User entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*User) Update ¶
func (u *User) Update() *UserUpdateOne
Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
UserClient is a client for the User schema.
func NewUserClient ¶
func NewUserClient(c config) *UserClient
NewUserClient returns a client for the User from the given config.
func (*UserClient) Create ¶
func (c *UserClient) Create() *UserCreate
Create returns a builder for creating a User entity.
func (*UserClient) CreateBulk ¶
func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
CreateBulk returns a builder for creating a bulk of User entities.
func (*UserClient) Delete ¶
func (c *UserClient) Delete() *UserDelete
Delete returns a delete builder for User.
func (*UserClient) DeleteOne ¶
func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserClient) DeleteOneID ¶
func (c *UserClient) DeleteOneID(id model.InternalID) *UserDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserClient) Get ¶
func (c *UserClient) Get(ctx context.Context, id model.InternalID) (*User, error)
Get returns a User entity by its id.
func (*UserClient) GetX ¶
func (c *UserClient) GetX(ctx context.Context, id model.InternalID) *User
GetX is like Get, but panics if an error occurs.
func (*UserClient) Intercept ¶ added in v0.0.4
func (c *UserClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (*UserClient) Interceptors ¶ added in v0.0.4
func (c *UserClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) QueryAccount ¶ added in v0.0.6
func (c *UserClient) QueryAccount(u *User) *AccountQuery
QueryAccount queries the account edge of a User.
func (*UserClient) QueryApp ¶ added in v0.0.6
func (c *UserClient) QueryApp(u *User) *AppQuery
QueryApp queries the app edge of a User.
func (*UserClient) QueryCreate ¶ added in v0.0.6
func (c *UserClient) QueryCreate(u *User) *UserQuery
QueryCreate queries the create edge of a User.
func (*UserClient) QueryCreator ¶ added in v0.0.6
func (c *UserClient) QueryCreator(u *User) *UserQuery
QueryCreator queries the creator edge of a User.
func (*UserClient) QueryFeedConfig ¶ added in v0.0.6
func (c *UserClient) QueryFeedConfig(u *User) *FeedConfigQuery
QueryFeedConfig queries the feed_config edge of a User.
func (*UserClient) Update ¶
func (c *UserClient) Update() *UserUpdate
Update returns an update builder for User.
func (*UserClient) UpdateOne ¶
func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserClient) UpdateOneID ¶
func (c *UserClient) UpdateOneID(id model.InternalID) *UserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserClient) Use ¶
func (c *UserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.
type UserCreate ¶
type UserCreate struct {
// contains filtered or unexported fields
}
UserCreate is the builder for creating a User entity.
func (*UserCreate) AddAccount ¶ added in v0.0.6
func (uc *UserCreate) AddAccount(a ...*Account) *UserCreate
AddAccount adds the "account" edges to the Account entity.
func (*UserCreate) AddAccountIDs ¶ added in v0.0.6
func (uc *UserCreate) AddAccountIDs(ids ...model.InternalID) *UserCreate
AddAccountIDs adds the "account" edge to the Account entity by IDs.
func (*UserCreate) AddApp ¶ added in v0.0.6
func (uc *UserCreate) AddApp(a ...*App) *UserCreate
AddApp adds the "app" edges to the App entity.
func (*UserCreate) AddAppIDs ¶ added in v0.0.6
func (uc *UserCreate) AddAppIDs(ids ...model.InternalID) *UserCreate
AddAppIDs adds the "app" edge to the App entity by IDs.
func (*UserCreate) AddCreate ¶ added in v0.0.6
func (uc *UserCreate) AddCreate(u ...*User) *UserCreate
AddCreate adds the "create" edges to the User entity.
func (*UserCreate) AddCreateIDs ¶ added in v0.0.6
func (uc *UserCreate) AddCreateIDs(ids ...model.InternalID) *UserCreate
AddCreateIDs adds the "create" edge to the User entity by IDs.
func (*UserCreate) AddFeedConfig ¶ added in v0.0.6
func (uc *UserCreate) AddFeedConfig(f ...*FeedConfig) *UserCreate
AddFeedConfig adds the "feed_config" edges to the FeedConfig entity.
func (*UserCreate) AddFeedConfigIDs ¶ added in v0.0.6
func (uc *UserCreate) AddFeedConfigIDs(ids ...model.InternalID) *UserCreate
AddFeedConfigIDs adds the "feed_config" edge to the FeedConfig entity by IDs.
func (*UserCreate) Exec ¶
func (uc *UserCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreate) ExecX ¶
func (uc *UserCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCreate) Mutation ¶
func (uc *UserCreate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserCreate) OnConflict ¶ added in v0.0.2
func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.User.Create(). SetUsername(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.UserUpsert) { SetUsername(v+v). }). Exec(ctx)
func (*UserCreate) OnConflictColumns ¶ added in v0.0.2
func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCreate) Save ¶
func (uc *UserCreate) Save(ctx context.Context) (*User, error)
Save creates the User in the database.
func (*UserCreate) SaveX ¶
func (uc *UserCreate) SaveX(ctx context.Context) *User
SaveX calls Save and panics if Save returns an error.
func (*UserCreate) SetCreatedAt ¶
func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
SetCreatedAt sets the "created_at" field.
func (*UserCreate) SetCreator ¶ added in v0.0.6
func (uc *UserCreate) SetCreator(u *User) *UserCreate
SetCreator sets the "creator" edge to the User entity.
func (*UserCreate) SetCreatorID ¶ added in v0.0.6
func (uc *UserCreate) SetCreatorID(id model.InternalID) *UserCreate
SetCreatorID sets the "creator" edge to the User entity by ID.
func (*UserCreate) SetID ¶ added in v0.0.6
func (uc *UserCreate) SetID(mi model.InternalID) *UserCreate
SetID sets the "id" field.
func (*UserCreate) SetNillableCreatedAt ¶
func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UserCreate) SetNillableUpdatedAt ¶ added in v0.0.5
func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*UserCreate) SetPassword ¶
func (uc *UserCreate) SetPassword(s string) *UserCreate
SetPassword sets the "password" field.
func (*UserCreate) SetStatus ¶
func (uc *UserCreate) SetStatus(u user.Status) *UserCreate
SetStatus sets the "status" field.
func (*UserCreate) SetType ¶
func (uc *UserCreate) SetType(u user.Type) *UserCreate
SetType sets the "type" field.
func (*UserCreate) SetUpdatedAt ¶ added in v0.0.5
func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
SetUpdatedAt sets the "updated_at" field.
func (*UserCreate) SetUsername ¶
func (uc *UserCreate) SetUsername(s string) *UserCreate
SetUsername sets the "username" field.
type UserCreateBulk ¶
type UserCreateBulk struct {
// contains filtered or unexported fields
}
UserCreateBulk is the builder for creating many User entities in bulk.
func (*UserCreateBulk) Exec ¶
func (ucb *UserCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreateBulk) ExecX ¶
func (ucb *UserCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCreateBulk) OnConflict ¶ added in v0.0.2
func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.User.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.UserUpsert) { SetUsername(v+v). }). Exec(ctx)
func (*UserCreateBulk) OnConflictColumns ¶ added in v0.0.2
func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
UserDelete is the builder for deleting a User entity.
func (*UserDelete) Exec ¶
func (ud *UserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserDelete) ExecX ¶
func (ud *UserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserDelete) Where ¶
func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete
Where appends a list predicates to the UserDelete builder.
type UserDeleteOne ¶
type UserDeleteOne struct {
// contains filtered or unexported fields
}
UserDeleteOne is the builder for deleting a single User entity.
func (*UserDeleteOne) Exec ¶
func (udo *UserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserDeleteOne) ExecX ¶
func (udo *UserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserDeleteOne) Where ¶ added in v0.0.4
func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne
Where appends a list predicates to the UserDelete builder.
type UserEdges ¶ added in v0.0.6
type UserEdges struct { // Account holds the value of the account edge. Account []*Account `json:"account,omitempty"` // App holds the value of the app edge. App []*App `json:"app,omitempty"` // FeedConfig holds the value of the feed_config edge. FeedConfig []*FeedConfig `json:"feed_config,omitempty"` // Creator holds the value of the creator edge. Creator *User `json:"creator,omitempty"` // Create holds the value of the create edge. Create []*User `json:"create,omitempty"` // contains filtered or unexported fields }
UserEdges holds the relations/edges for other nodes in the graph.
func (UserEdges) AccountOrErr ¶ added in v0.0.6
AccountOrErr returns the Account value or an error if the edge was not loaded in eager-loading.
func (UserEdges) AppOrErr ¶ added in v0.0.6
AppOrErr returns the App value or an error if the edge was not loaded in eager-loading.
func (UserEdges) CreateOrErr ¶ added in v0.0.6
CreateOrErr returns the Create value or an error if the edge was not loaded in eager-loading.
func (UserEdges) CreatorOrErr ¶ added in v0.0.6
CreatorOrErr returns the Creator value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (UserEdges) FeedConfigOrErr ¶ added in v0.0.6
func (e UserEdges) FeedConfigOrErr() ([]*FeedConfig, error)
FeedConfigOrErr returns the FeedConfig value or an error if the edge was not loaded in eager-loading.
type UserGroupBy ¶
type UserGroupBy struct {
// contains filtered or unexported fields
}
UserGroupBy is the group-by builder for User entities.
func (*UserGroupBy) Aggregate ¶
func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Scan ¶
func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserMutation ¶
type UserMutation struct {
// contains filtered or unexported fields
}
UserMutation represents an operation that mutates the User nodes in the graph.
func (*UserMutation) AccountCleared ¶ added in v0.0.6
func (m *UserMutation) AccountCleared() bool
AccountCleared reports if the "account" edge to the Account entity was cleared.
func (*UserMutation) AccountIDs ¶ added in v0.0.6
func (m *UserMutation) AccountIDs() (ids []model.InternalID)
AccountIDs returns the "account" edge IDs in the mutation.
func (*UserMutation) AddAccountIDs ¶ added in v0.0.6
func (m *UserMutation) AddAccountIDs(ids ...model.InternalID)
AddAccountIDs adds the "account" edge to the Account entity by ids.
func (*UserMutation) AddAppIDs ¶ added in v0.0.6
func (m *UserMutation) AddAppIDs(ids ...model.InternalID)
AddAppIDs adds the "app" edge to the App entity by ids.
func (*UserMutation) AddCreateIDs ¶ added in v0.0.6
func (m *UserMutation) AddCreateIDs(ids ...model.InternalID)
AddCreateIDs adds the "create" edge to the User entity by ids.
func (*UserMutation) AddFeedConfigIDs ¶ added in v0.0.6
func (m *UserMutation) AddFeedConfigIDs(ids ...model.InternalID)
AddFeedConfigIDs adds the "feed_config" edge to the FeedConfig entity by ids.
func (*UserMutation) AddField ¶
func (m *UserMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*UserMutation) AddedEdges ¶
func (m *UserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserMutation) AddedField ¶
func (m *UserMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*UserMutation) AddedFields ¶
func (m *UserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserMutation) AddedIDs ¶
func (m *UserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserMutation) AppCleared ¶ added in v0.0.6
func (m *UserMutation) AppCleared() bool
AppCleared reports if the "app" edge to the App entity was cleared.
func (*UserMutation) AppIDs ¶ added in v0.0.6
func (m *UserMutation) AppIDs() (ids []model.InternalID)
AppIDs returns the "app" edge IDs in the mutation.
func (*UserMutation) ClearAccount ¶ added in v0.0.6
func (m *UserMutation) ClearAccount()
ClearAccount clears the "account" edge to the Account entity.
func (*UserMutation) ClearApp ¶ added in v0.0.6
func (m *UserMutation) ClearApp()
ClearApp clears the "app" edge to the App entity.
func (*UserMutation) ClearCreate ¶ added in v0.0.6
func (m *UserMutation) ClearCreate()
ClearCreate clears the "create" edge to the User entity.
func (*UserMutation) ClearCreator ¶ added in v0.0.6
func (m *UserMutation) ClearCreator()
ClearCreator clears the "creator" edge to the User entity.
func (*UserMutation) ClearEdge ¶
func (m *UserMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*UserMutation) ClearFeedConfig ¶ added in v0.0.6
func (m *UserMutation) ClearFeedConfig()
ClearFeedConfig clears the "feed_config" edge to the FeedConfig entity.
func (*UserMutation) ClearField ¶
func (m *UserMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ClearedEdges ¶
func (m *UserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserMutation) ClearedFields ¶
func (m *UserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserMutation) Client ¶
func (m UserMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*UserMutation) CreateCleared ¶ added in v0.0.6
func (m *UserMutation) CreateCleared() bool
CreateCleared reports if the "create" edge to the User entity was cleared.
func (*UserMutation) CreateIDs ¶ added in v0.0.6
func (m *UserMutation) CreateIDs() (ids []model.InternalID)
CreateIDs returns the "create" edge IDs in the mutation.
func (*UserMutation) CreatedAt ¶
func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*UserMutation) CreatorCleared ¶ added in v0.0.6
func (m *UserMutation) CreatorCleared() bool
CreatorCleared reports if the "creator" edge to the User entity was cleared.
func (*UserMutation) CreatorID ¶ added in v0.0.6
func (m *UserMutation) CreatorID() (id model.InternalID, exists bool)
CreatorID returns the "creator" edge ID in the mutation.
func (*UserMutation) CreatorIDs ¶ added in v0.0.6
func (m *UserMutation) CreatorIDs() (ids []model.InternalID)
CreatorIDs returns the "creator" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CreatorID instead. It exists only for internal usage by the builders.
func (*UserMutation) EdgeCleared ¶
func (m *UserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserMutation) FeedConfigCleared ¶ added in v0.0.6
func (m *UserMutation) FeedConfigCleared() bool
FeedConfigCleared reports if the "feed_config" edge to the FeedConfig entity was cleared.
func (*UserMutation) FeedConfigIDs ¶ added in v0.0.6
func (m *UserMutation) FeedConfigIDs() (ids []model.InternalID)
FeedConfigIDs returns the "feed_config" edge IDs in the mutation.
func (*UserMutation) Field ¶
func (m *UserMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*UserMutation) FieldCleared ¶
func (m *UserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserMutation) Fields ¶
func (m *UserMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*UserMutation) GetType ¶
func (m *UserMutation) GetType() (r user.Type, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*UserMutation) ID ¶
func (m *UserMutation) ID() (id model.InternalID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserMutation) IDs ¶
func (m *UserMutation) IDs(ctx context.Context) ([]model.InternalID, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*UserMutation) OldPassword ¶
func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error)
OldPassword returns the old "password" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldStatus ¶
OldStatus returns the old "status" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldType ¶
OldType returns the old "type" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldUpdatedAt ¶ added in v0.0.5
OldUpdatedAt returns the old "updated_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldUsername ¶
func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old "username" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) Password ¶
func (m *UserMutation) Password() (r string, exists bool)
Password returns the value of the "password" field in the mutation.
func (*UserMutation) RemoveAccountIDs ¶ added in v0.0.6
func (m *UserMutation) RemoveAccountIDs(ids ...model.InternalID)
RemoveAccountIDs removes the "account" edge to the Account entity by IDs.
func (*UserMutation) RemoveAppIDs ¶ added in v0.0.6
func (m *UserMutation) RemoveAppIDs(ids ...model.InternalID)
RemoveAppIDs removes the "app" edge to the App entity by IDs.
func (*UserMutation) RemoveCreateIDs ¶ added in v0.0.6
func (m *UserMutation) RemoveCreateIDs(ids ...model.InternalID)
RemoveCreateIDs removes the "create" edge to the User entity by IDs.
func (*UserMutation) RemoveFeedConfigIDs ¶ added in v0.0.6
func (m *UserMutation) RemoveFeedConfigIDs(ids ...model.InternalID)
RemoveFeedConfigIDs removes the "feed_config" edge to the FeedConfig entity by IDs.
func (*UserMutation) RemovedAccountIDs ¶ added in v0.0.6
func (m *UserMutation) RemovedAccountIDs() (ids []model.InternalID)
RemovedAccount returns the removed IDs of the "account" edge to the Account entity.
func (*UserMutation) RemovedAppIDs ¶ added in v0.0.6
func (m *UserMutation) RemovedAppIDs() (ids []model.InternalID)
RemovedApp returns the removed IDs of the "app" edge to the App entity.
func (*UserMutation) RemovedCreateIDs ¶ added in v0.0.6
func (m *UserMutation) RemovedCreateIDs() (ids []model.InternalID)
RemovedCreate returns the removed IDs of the "create" edge to the User entity.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedFeedConfigIDs ¶ added in v0.0.6
func (m *UserMutation) RemovedFeedConfigIDs() (ids []model.InternalID)
RemovedFeedConfig returns the removed IDs of the "feed_config" edge to the FeedConfig entity.
func (*UserMutation) RemovedIDs ¶
func (m *UserMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*UserMutation) ResetAccount ¶ added in v0.0.6
func (m *UserMutation) ResetAccount()
ResetAccount resets all changes to the "account" edge.
func (*UserMutation) ResetApp ¶ added in v0.0.6
func (m *UserMutation) ResetApp()
ResetApp resets all changes to the "app" edge.
func (*UserMutation) ResetCreate ¶ added in v0.0.6
func (m *UserMutation) ResetCreate()
ResetCreate resets all changes to the "create" edge.
func (*UserMutation) ResetCreatedAt ¶
func (m *UserMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*UserMutation) ResetCreator ¶ added in v0.0.6
func (m *UserMutation) ResetCreator()
ResetCreator resets all changes to the "creator" edge.
func (*UserMutation) ResetEdge ¶
func (m *UserMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*UserMutation) ResetFeedConfig ¶ added in v0.0.6
func (m *UserMutation) ResetFeedConfig()
ResetFeedConfig resets all changes to the "feed_config" edge.
func (*UserMutation) ResetField ¶
func (m *UserMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*UserMutation) ResetPassword ¶
func (m *UserMutation) ResetPassword()
ResetPassword resets all changes to the "password" field.
func (*UserMutation) ResetStatus ¶
func (m *UserMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*UserMutation) ResetType ¶
func (m *UserMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*UserMutation) ResetUpdatedAt ¶ added in v0.0.5
func (m *UserMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*UserMutation) ResetUsername ¶
func (m *UserMutation) ResetUsername()
ResetUsername resets all changes to the "username" field.
func (*UserMutation) SetCreatedAt ¶
func (m *UserMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*UserMutation) SetCreatorID ¶ added in v0.0.6
func (m *UserMutation) SetCreatorID(id model.InternalID)
SetCreatorID sets the "creator" edge to the User entity by id.
func (*UserMutation) SetField ¶
func (m *UserMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*UserMutation) SetID ¶ added in v0.0.6
func (m *UserMutation) SetID(id model.InternalID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.
func (*UserMutation) SetOp ¶ added in v0.0.4
func (m *UserMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserMutation) SetPassword ¶
func (m *UserMutation) SetPassword(s string)
SetPassword sets the "password" field.
func (*UserMutation) SetStatus ¶
func (m *UserMutation) SetStatus(u user.Status)
SetStatus sets the "status" field.
func (*UserMutation) SetType ¶
func (m *UserMutation) SetType(u user.Type)
SetType sets the "type" field.
func (*UserMutation) SetUpdatedAt ¶ added in v0.0.5
func (m *UserMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*UserMutation) SetUsername ¶
func (m *UserMutation) SetUsername(s string)
SetUsername sets the "username" field.
func (*UserMutation) Status ¶
func (m *UserMutation) Status() (r user.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (UserMutation) Tx ¶
func (m UserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserMutation) Type ¶
func (m *UserMutation) Type() string
Type returns the node type of this mutation (User).
func (*UserMutation) UpdatedAt ¶ added in v0.0.5
func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*UserMutation) Username ¶
func (m *UserMutation) Username() (r string, exists bool)
Username returns the value of the "username" field in the mutation.
func (*UserMutation) Where ¶
func (m *UserMutation) Where(ps ...predicate.User)
Where appends a list predicates to the UserMutation builder.
func (*UserMutation) WhereP ¶ added in v0.0.4
func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
UserQuery is the builder for querying User entities.
func (*UserQuery) Aggregate ¶ added in v0.0.3
func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate returns a UserSelect configured with the given aggregations.
func (*UserQuery) Clone ¶
Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserQuery) First ¶
First returns the first User entity from the query. Returns a *NotFoundError when no User was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
func (*UserQuery) FirstIDX ¶
func (uq *UserQuery) FirstIDX(ctx context.Context) model.InternalID
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserQuery) GroupBy ¶
func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Username string `json:"username,omitempty"` Count int `json:"count,omitempty"` } client.User.Query(). GroupBy(user.FieldUsername). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserQuery) IDsX ¶
func (uq *UserQuery) IDsX(ctx context.Context) []model.InternalID
IDsX is like IDs, but panics if an error occurs.
func (*UserQuery) Only ¶
Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.
func (*UserQuery) OnlyID ¶
OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.
func (*UserQuery) OnlyIDX ¶
func (uq *UserQuery) OnlyIDX(ctx context.Context) model.InternalID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserQuery) QueryAccount ¶ added in v0.0.6
func (uq *UserQuery) QueryAccount() *AccountQuery
QueryAccount chains the current query on the "account" edge.
func (*UserQuery) QueryCreate ¶ added in v0.0.6
QueryCreate chains the current query on the "create" edge.
func (*UserQuery) QueryCreator ¶ added in v0.0.6
QueryCreator chains the current query on the "creator" edge.
func (*UserQuery) QueryFeedConfig ¶ added in v0.0.6
func (uq *UserQuery) QueryFeedConfig() *FeedConfigQuery
QueryFeedConfig chains the current query on the "feed_config" edge.
func (*UserQuery) Select ¶
func (uq *UserQuery) Select(fields ...string) *UserSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Username string `json:"username,omitempty"` } client.User.Query(). Select(user.FieldUsername). Scan(ctx, &v)
func (*UserQuery) Unique ¶
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*UserQuery) WithAccount ¶ added in v0.0.6
func (uq *UserQuery) WithAccount(opts ...func(*AccountQuery)) *UserQuery
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 (*UserQuery) WithApp ¶ added in v0.0.6
WithApp tells the query-builder to eager-load the nodes that are connected to the "app" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithCreate ¶ added in v0.0.6
WithCreate tells the query-builder to eager-load the nodes that are connected to the "create" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithCreator ¶ added in v0.0.6
WithCreator tells the query-builder to eager-load the nodes that are connected to the "creator" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithFeedConfig ¶ added in v0.0.6
func (uq *UserQuery) WithFeedConfig(opts ...func(*FeedConfigQuery)) *UserQuery
WithFeedConfig tells the query-builder to eager-load the nodes that are connected to the "feed_config" edge. The optional arguments are used to configure the query builder of the edge.
type UserSelect ¶
type UserSelect struct { *UserQuery // contains filtered or unexported fields }
UserSelect is the builder for selecting fields of User entities.
func (*UserSelect) Aggregate ¶ added in v0.0.3
func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSelect) Scan ¶
func (us *UserSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) AddAccount ¶ added in v0.0.6
func (uu *UserUpdate) AddAccount(a ...*Account) *UserUpdate
AddAccount adds the "account" edges to the Account entity.
func (*UserUpdate) AddAccountIDs ¶ added in v0.0.6
func (uu *UserUpdate) AddAccountIDs(ids ...model.InternalID) *UserUpdate
AddAccountIDs adds the "account" edge to the Account entity by IDs.
func (*UserUpdate) AddApp ¶ added in v0.0.6
func (uu *UserUpdate) AddApp(a ...*App) *UserUpdate
AddApp adds the "app" edges to the App entity.
func (*UserUpdate) AddAppIDs ¶ added in v0.0.6
func (uu *UserUpdate) AddAppIDs(ids ...model.InternalID) *UserUpdate
AddAppIDs adds the "app" edge to the App entity by IDs.
func (*UserUpdate) AddCreate ¶ added in v0.0.6
func (uu *UserUpdate) AddCreate(u ...*User) *UserUpdate
AddCreate adds the "create" edges to the User entity.
func (*UserUpdate) AddCreateIDs ¶ added in v0.0.6
func (uu *UserUpdate) AddCreateIDs(ids ...model.InternalID) *UserUpdate
AddCreateIDs adds the "create" edge to the User entity by IDs.
func (*UserUpdate) AddFeedConfig ¶ added in v0.0.6
func (uu *UserUpdate) AddFeedConfig(f ...*FeedConfig) *UserUpdate
AddFeedConfig adds the "feed_config" edges to the FeedConfig entity.
func (*UserUpdate) AddFeedConfigIDs ¶ added in v0.0.6
func (uu *UserUpdate) AddFeedConfigIDs(ids ...model.InternalID) *UserUpdate
AddFeedConfigIDs adds the "feed_config" edge to the FeedConfig entity by IDs.
func (*UserUpdate) ClearAccount ¶ added in v0.0.6
func (uu *UserUpdate) ClearAccount() *UserUpdate
ClearAccount clears all "account" edges to the Account entity.
func (*UserUpdate) ClearApp ¶ added in v0.0.6
func (uu *UserUpdate) ClearApp() *UserUpdate
ClearApp clears all "app" edges to the App entity.
func (*UserUpdate) ClearCreate ¶ added in v0.0.6
func (uu *UserUpdate) ClearCreate() *UserUpdate
ClearCreate clears all "create" edges to the User entity.
func (*UserUpdate) ClearCreator ¶ added in v0.0.6
func (uu *UserUpdate) ClearCreator() *UserUpdate
ClearCreator clears the "creator" edge to the User entity.
func (*UserUpdate) ClearFeedConfig ¶ added in v0.0.6
func (uu *UserUpdate) ClearFeedConfig() *UserUpdate
ClearFeedConfig clears all "feed_config" edges to the FeedConfig entity.
func (*UserUpdate) Exec ¶
func (uu *UserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpdate) ExecX ¶
func (uu *UserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdate) Mutation ¶
func (uu *UserUpdate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdate) RemoveAccount ¶ added in v0.0.6
func (uu *UserUpdate) RemoveAccount(a ...*Account) *UserUpdate
RemoveAccount removes "account" edges to Account entities.
func (*UserUpdate) RemoveAccountIDs ¶ added in v0.0.6
func (uu *UserUpdate) RemoveAccountIDs(ids ...model.InternalID) *UserUpdate
RemoveAccountIDs removes the "account" edge to Account entities by IDs.
func (*UserUpdate) RemoveApp ¶ added in v0.0.6
func (uu *UserUpdate) RemoveApp(a ...*App) *UserUpdate
RemoveApp removes "app" edges to App entities.
func (*UserUpdate) RemoveAppIDs ¶ added in v0.0.6
func (uu *UserUpdate) RemoveAppIDs(ids ...model.InternalID) *UserUpdate
RemoveAppIDs removes the "app" edge to App entities by IDs.
func (*UserUpdate) RemoveCreate ¶ added in v0.0.6
func (uu *UserUpdate) RemoveCreate(u ...*User) *UserUpdate
RemoveCreate removes "create" edges to User entities.
func (*UserUpdate) RemoveCreateIDs ¶ added in v0.0.6
func (uu *UserUpdate) RemoveCreateIDs(ids ...model.InternalID) *UserUpdate
RemoveCreateIDs removes the "create" edge to User entities by IDs.
func (*UserUpdate) RemoveFeedConfig ¶ added in v0.0.6
func (uu *UserUpdate) RemoveFeedConfig(f ...*FeedConfig) *UserUpdate
RemoveFeedConfig removes "feed_config" edges to FeedConfig entities.
func (*UserUpdate) RemoveFeedConfigIDs ¶ added in v0.0.6
func (uu *UserUpdate) RemoveFeedConfigIDs(ids ...model.InternalID) *UserUpdate
RemoveFeedConfigIDs removes the "feed_config" edge to FeedConfig entities by IDs.
func (*UserUpdate) Save ¶
func (uu *UserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserUpdate) SaveX ¶
func (uu *UserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserUpdate) SetCreatedAt ¶
func (uu *UserUpdate) SetCreatedAt(t time.Time) *UserUpdate
SetCreatedAt sets the "created_at" field.
func (*UserUpdate) SetCreator ¶ added in v0.0.6
func (uu *UserUpdate) SetCreator(u *User) *UserUpdate
SetCreator sets the "creator" edge to the User entity.
func (*UserUpdate) SetCreatorID ¶ added in v0.0.6
func (uu *UserUpdate) SetCreatorID(id model.InternalID) *UserUpdate
SetCreatorID sets the "creator" edge to the User entity by ID.
func (*UserUpdate) SetNillableCreatedAt ¶
func (uu *UserUpdate) SetNillableCreatedAt(t *time.Time) *UserUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UserUpdate) SetPassword ¶
func (uu *UserUpdate) SetPassword(s string) *UserUpdate
SetPassword sets the "password" field.
func (*UserUpdate) SetStatus ¶
func (uu *UserUpdate) SetStatus(u user.Status) *UserUpdate
SetStatus sets the "status" field.
func (*UserUpdate) SetType ¶
func (uu *UserUpdate) SetType(u user.Type) *UserUpdate
SetType sets the "type" field.
func (*UserUpdate) SetUpdatedAt ¶ added in v0.0.5
func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
SetUpdatedAt sets the "updated_at" field.
func (*UserUpdate) SetUsername ¶
func (uu *UserUpdate) SetUsername(s string) *UserUpdate
SetUsername sets the "username" field.
func (*UserUpdate) Where ¶
func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
Where appends a list predicates to the UserUpdate builder.
type UserUpdateOne ¶
type UserUpdateOne struct {
// contains filtered or unexported fields
}
UserUpdateOne is the builder for updating a single User entity.
func (*UserUpdateOne) AddAccount ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddAccount(a ...*Account) *UserUpdateOne
AddAccount adds the "account" edges to the Account entity.
func (*UserUpdateOne) AddAccountIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddAccountIDs(ids ...model.InternalID) *UserUpdateOne
AddAccountIDs adds the "account" edge to the Account entity by IDs.
func (*UserUpdateOne) AddApp ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddApp(a ...*App) *UserUpdateOne
AddApp adds the "app" edges to the App entity.
func (*UserUpdateOne) AddAppIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddAppIDs(ids ...model.InternalID) *UserUpdateOne
AddAppIDs adds the "app" edge to the App entity by IDs.
func (*UserUpdateOne) AddCreate ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddCreate(u ...*User) *UserUpdateOne
AddCreate adds the "create" edges to the User entity.
func (*UserUpdateOne) AddCreateIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddCreateIDs(ids ...model.InternalID) *UserUpdateOne
AddCreateIDs adds the "create" edge to the User entity by IDs.
func (*UserUpdateOne) AddFeedConfig ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddFeedConfig(f ...*FeedConfig) *UserUpdateOne
AddFeedConfig adds the "feed_config" edges to the FeedConfig entity.
func (*UserUpdateOne) AddFeedConfigIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) AddFeedConfigIDs(ids ...model.InternalID) *UserUpdateOne
AddFeedConfigIDs adds the "feed_config" edge to the FeedConfig entity by IDs.
func (*UserUpdateOne) ClearAccount ¶ added in v0.0.6
func (uuo *UserUpdateOne) ClearAccount() *UserUpdateOne
ClearAccount clears all "account" edges to the Account entity.
func (*UserUpdateOne) ClearApp ¶ added in v0.0.6
func (uuo *UserUpdateOne) ClearApp() *UserUpdateOne
ClearApp clears all "app" edges to the App entity.
func (*UserUpdateOne) ClearCreate ¶ added in v0.0.6
func (uuo *UserUpdateOne) ClearCreate() *UserUpdateOne
ClearCreate clears all "create" edges to the User entity.
func (*UserUpdateOne) ClearCreator ¶ added in v0.0.6
func (uuo *UserUpdateOne) ClearCreator() *UserUpdateOne
ClearCreator clears the "creator" edge to the User entity.
func (*UserUpdateOne) ClearFeedConfig ¶ added in v0.0.6
func (uuo *UserUpdateOne) ClearFeedConfig() *UserUpdateOne
ClearFeedConfig clears all "feed_config" edges to the FeedConfig entity.
func (*UserUpdateOne) Exec ¶
func (uuo *UserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserUpdateOne) ExecX ¶
func (uuo *UserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdateOne) Mutation ¶
func (uuo *UserUpdateOne) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdateOne) RemoveAccount ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveAccount(a ...*Account) *UserUpdateOne
RemoveAccount removes "account" edges to Account entities.
func (*UserUpdateOne) RemoveAccountIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveAccountIDs(ids ...model.InternalID) *UserUpdateOne
RemoveAccountIDs removes the "account" edge to Account entities by IDs.
func (*UserUpdateOne) RemoveApp ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveApp(a ...*App) *UserUpdateOne
RemoveApp removes "app" edges to App entities.
func (*UserUpdateOne) RemoveAppIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveAppIDs(ids ...model.InternalID) *UserUpdateOne
RemoveAppIDs removes the "app" edge to App entities by IDs.
func (*UserUpdateOne) RemoveCreate ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveCreate(u ...*User) *UserUpdateOne
RemoveCreate removes "create" edges to User entities.
func (*UserUpdateOne) RemoveCreateIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveCreateIDs(ids ...model.InternalID) *UserUpdateOne
RemoveCreateIDs removes the "create" edge to User entities by IDs.
func (*UserUpdateOne) RemoveFeedConfig ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveFeedConfig(f ...*FeedConfig) *UserUpdateOne
RemoveFeedConfig removes "feed_config" edges to FeedConfig entities.
func (*UserUpdateOne) RemoveFeedConfigIDs ¶ added in v0.0.6
func (uuo *UserUpdateOne) RemoveFeedConfigIDs(ids ...model.InternalID) *UserUpdateOne
RemoveFeedConfigIDs removes the "feed_config" edge to FeedConfig entities by IDs.
func (*UserUpdateOne) Save ¶
func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
Save executes the query and returns the updated User entity.
func (*UserUpdateOne) SaveX ¶
func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
SaveX is like Save, but panics if an error occurs.
func (*UserUpdateOne) Select ¶
func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserUpdateOne) SetCreatedAt ¶
func (uuo *UserUpdateOne) SetCreatedAt(t time.Time) *UserUpdateOne
SetCreatedAt sets the "created_at" field.
func (*UserUpdateOne) SetCreator ¶ added in v0.0.6
func (uuo *UserUpdateOne) SetCreator(u *User) *UserUpdateOne
SetCreator sets the "creator" edge to the User entity.
func (*UserUpdateOne) SetCreatorID ¶ added in v0.0.6
func (uuo *UserUpdateOne) SetCreatorID(id model.InternalID) *UserUpdateOne
SetCreatorID sets the "creator" edge to the User entity by ID.
func (*UserUpdateOne) SetNillableCreatedAt ¶
func (uuo *UserUpdateOne) SetNillableCreatedAt(t *time.Time) *UserUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UserUpdateOne) SetPassword ¶
func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne
SetPassword sets the "password" field.
func (*UserUpdateOne) SetStatus ¶
func (uuo *UserUpdateOne) SetStatus(u user.Status) *UserUpdateOne
SetStatus sets the "status" field.
func (*UserUpdateOne) SetType ¶
func (uuo *UserUpdateOne) SetType(u user.Type) *UserUpdateOne
SetType sets the "type" field.
func (*UserUpdateOne) SetUpdatedAt ¶ added in v0.0.5
func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*UserUpdateOne) SetUsername ¶
func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne
SetUsername sets the "username" field.
func (*UserUpdateOne) Where ¶ added in v0.0.5
func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
Where appends a list predicates to the UserUpdate builder.
type UserUpsert ¶ added in v0.0.2
UserUpsert is the "OnConflict" setter.
func (*UserUpsert) SetCreatedAt ¶ added in v0.0.2
func (u *UserUpsert) SetCreatedAt(v time.Time) *UserUpsert
SetCreatedAt sets the "created_at" field.
func (*UserUpsert) SetPassword ¶ added in v0.0.2
func (u *UserUpsert) SetPassword(v string) *UserUpsert
SetPassword sets the "password" field.
func (*UserUpsert) SetStatus ¶ added in v0.0.2
func (u *UserUpsert) SetStatus(v user.Status) *UserUpsert
SetStatus sets the "status" field.
func (*UserUpsert) SetType ¶ added in v0.0.2
func (u *UserUpsert) SetType(v user.Type) *UserUpsert
SetType sets the "type" field.
func (*UserUpsert) SetUpdatedAt ¶ added in v0.0.5
func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert
SetUpdatedAt sets the "updated_at" field.
func (*UserUpsert) SetUsername ¶ added in v0.0.2
func (u *UserUpsert) SetUsername(v string) *UserUpsert
SetUsername sets the "username" field.
func (*UserUpsert) UpdateCreatedAt ¶ added in v0.0.2
func (u *UserUpsert) UpdateCreatedAt() *UserUpsert
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*UserUpsert) UpdatePassword ¶ added in v0.0.2
func (u *UserUpsert) UpdatePassword() *UserUpsert
UpdatePassword sets the "password" field to the value that was provided on create.
func (*UserUpsert) UpdateStatus ¶ added in v0.0.2
func (u *UserUpsert) UpdateStatus() *UserUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*UserUpsert) UpdateType ¶ added in v0.0.2
func (u *UserUpsert) UpdateType() *UserUpsert
UpdateType sets the "type" field to the value that was provided on create.
func (*UserUpsert) UpdateUpdatedAt ¶ added in v0.0.5
func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*UserUpsert) UpdateUsername ¶ added in v0.0.2
func (u *UserUpsert) UpdateUsername() *UserUpsert
UpdateUsername sets the "username" field to the value that was provided on create.
type UserUpsertBulk ¶ added in v0.0.2
type UserUpsertBulk struct {
// contains filtered or unexported fields
}
UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.
func (*UserUpsertBulk) DoNothing ¶ added in v0.0.2
func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserUpsertBulk) Exec ¶ added in v0.0.2
func (u *UserUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpsertBulk) ExecX ¶ added in v0.0.2
func (u *UserUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpsertBulk) Ignore ¶ added in v0.0.2
func (u *UserUpsertBulk) Ignore() *UserUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserUpsertBulk) SetCreatedAt ¶ added in v0.0.2
func (u *UserUpsertBulk) SetCreatedAt(v time.Time) *UserUpsertBulk
SetCreatedAt sets the "created_at" field.
func (*UserUpsertBulk) SetPassword ¶ added in v0.0.2
func (u *UserUpsertBulk) SetPassword(v string) *UserUpsertBulk
SetPassword sets the "password" field.
func (*UserUpsertBulk) SetStatus ¶ added in v0.0.2
func (u *UserUpsertBulk) SetStatus(v user.Status) *UserUpsertBulk
SetStatus sets the "status" field.
func (*UserUpsertBulk) SetType ¶ added in v0.0.2
func (u *UserUpsertBulk) SetType(v user.Type) *UserUpsertBulk
SetType sets the "type" field.
func (*UserUpsertBulk) SetUpdatedAt ¶ added in v0.0.5
func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*UserUpsertBulk) SetUsername ¶ added in v0.0.2
func (u *UserUpsertBulk) SetUsername(v string) *UserUpsertBulk
SetUsername sets the "username" field.
func (*UserUpsertBulk) Update ¶ added in v0.0.2
func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.
func (*UserUpsertBulk) UpdateCreatedAt ¶ added in v0.0.2
func (u *UserUpsertBulk) UpdateCreatedAt() *UserUpsertBulk
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateNewValues ¶ added in v0.0.2
func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.User.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(user.FieldID) }), ). Exec(ctx)
func (*UserUpsertBulk) UpdatePassword ¶ added in v0.0.2
func (u *UserUpsertBulk) UpdatePassword() *UserUpsertBulk
UpdatePassword sets the "password" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateStatus ¶ added in v0.0.2
func (u *UserUpsertBulk) UpdateStatus() *UserUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateType ¶ added in v0.0.2
func (u *UserUpsertBulk) UpdateType() *UserUpsertBulk
UpdateType sets the "type" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.5
func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateUsername ¶ added in v0.0.2
func (u *UserUpsertBulk) UpdateUsername() *UserUpsertBulk
UpdateUsername sets the "username" field to the value that was provided on create.
type UserUpsertOne ¶ added in v0.0.2
type UserUpsertOne struct {
// contains filtered or unexported fields
}
UserUpsertOne is the builder for "upsert"-ing
one User node.
func (*UserUpsertOne) DoNothing ¶ added in v0.0.2
func (u *UserUpsertOne) DoNothing() *UserUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserUpsertOne) Exec ¶ added in v0.0.2
func (u *UserUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpsertOne) ExecX ¶ added in v0.0.2
func (u *UserUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpsertOne) ID ¶ added in v0.0.2
func (u *UserUpsertOne) ID(ctx context.Context) (id model.InternalID, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserUpsertOne) IDX ¶ added in v0.0.2
func (u *UserUpsertOne) IDX(ctx context.Context) model.InternalID
IDX is like ID, but panics if an error occurs.
func (*UserUpsertOne) Ignore ¶ added in v0.0.2
func (u *UserUpsertOne) Ignore() *UserUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserUpsertOne) SetCreatedAt ¶ added in v0.0.2
func (u *UserUpsertOne) SetCreatedAt(v time.Time) *UserUpsertOne
SetCreatedAt sets the "created_at" field.
func (*UserUpsertOne) SetPassword ¶ added in v0.0.2
func (u *UserUpsertOne) SetPassword(v string) *UserUpsertOne
SetPassword sets the "password" field.
func (*UserUpsertOne) SetStatus ¶ added in v0.0.2
func (u *UserUpsertOne) SetStatus(v user.Status) *UserUpsertOne
SetStatus sets the "status" field.
func (*UserUpsertOne) SetType ¶ added in v0.0.2
func (u *UserUpsertOne) SetType(v user.Type) *UserUpsertOne
SetType sets the "type" field.
func (*UserUpsertOne) SetUpdatedAt ¶ added in v0.0.5
func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*UserUpsertOne) SetUsername ¶ added in v0.0.2
func (u *UserUpsertOne) SetUsername(v string) *UserUpsertOne
SetUsername sets the "username" field.
func (*UserUpsertOne) Update ¶ added in v0.0.2
func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne
Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.
func (*UserUpsertOne) UpdateCreatedAt ¶ added in v0.0.2
func (u *UserUpsertOne) UpdateCreatedAt() *UserUpsertOne
UpdateCreatedAt sets the "created_at" field to the value that was provided on create.
func (*UserUpsertOne) UpdateNewValues ¶ added in v0.0.2
func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne
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.User.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(user.FieldID) }), ). Exec(ctx)
func (*UserUpsertOne) UpdatePassword ¶ added in v0.0.2
func (u *UserUpsertOne) UpdatePassword() *UserUpsertOne
UpdatePassword sets the "password" field to the value that was provided on create.
func (*UserUpsertOne) UpdateStatus ¶ added in v0.0.2
func (u *UserUpsertOne) UpdateStatus() *UserUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*UserUpsertOne) UpdateType ¶ added in v0.0.2
func (u *UserUpsertOne) UpdateType() *UserUpsertOne
UpdateType sets the "type" field to the value that was provided on create.
func (*UserUpsertOne) UpdateUpdatedAt ¶ added in v0.0.5
func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*UserUpsertOne) UpdateUsername ¶ added in v0.0.2
func (u *UserUpsertOne) UpdateUsername() *UserUpsertOne
UpdateUsername sets the "username" field to the value that was provided on create.
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
- app.go
- app_create.go
- app_delete.go
- app_query.go
- app_update.go
- apppackage.go
- apppackage_create.go
- apppackage_delete.go
- apppackage_query.go
- apppackage_update.go
- client.go
- config.go
- context.go
- ent.go
- feed.go
- feed_create.go
- feed_delete.go
- feed_query.go
- feed_update.go
- feedconfig.go
- feedconfig_create.go
- feedconfig_delete.go
- feedconfig_query.go
- feedconfig_update.go
- feeditem.go
- feeditem_create.go
- feeditem_delete.go
- feeditem_query.go
- feeditem_update.go
- generate.go
- mutation.go
- runtime.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go