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 AggregateFunc
- type AuroraHealthCheck
- func (c *AuroraHealthCheck) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *AuroraHealthCheck) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahc *AuroraHealthCheck) String() string
- func (ahc *AuroraHealthCheck) Unwrap() *AuroraHealthCheck
- func (ahc *AuroraHealthCheck) Update() *AuroraHealthCheckUpdateOne
- type AuroraHealthCheckClient
- func (c *AuroraHealthCheckClient) Create() *AuroraHealthCheckCreate
- func (c *AuroraHealthCheckClient) CreateBulk(builders ...*AuroraHealthCheckCreate) *AuroraHealthCheckCreateBulk
- func (c *AuroraHealthCheckClient) Delete() *AuroraHealthCheckDelete
- func (c *AuroraHealthCheckClient) DeleteOne(ahc *AuroraHealthCheck) *AuroraHealthCheckDeleteOne
- func (c *AuroraHealthCheckClient) DeleteOneID(id int) *AuroraHealthCheckDeleteOne
- func (c *AuroraHealthCheckClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *AuroraHealthCheckClient) Get(ctx context.Context, id int) (*AuroraHealthCheck, error)
- func (c *AuroraHealthCheckClient) GetX(ctx context.Context, id int) *AuroraHealthCheck
- func (c *AuroraHealthCheckClient) Hooks() []Hook
- func (c *AuroraHealthCheckClient) Intercept(interceptors ...Interceptor)
- func (c *AuroraHealthCheckClient) Interceptors() []Interceptor
- func (c *AuroraHealthCheckClient) Query() *AuroraHealthCheckQuery
- func (c *AuroraHealthCheckClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *AuroraHealthCheckClient) Update() *AuroraHealthCheckUpdate
- func (c *AuroraHealthCheckClient) UpdateOne(ahc *AuroraHealthCheck) *AuroraHealthCheckUpdateOne
- func (c *AuroraHealthCheckClient) UpdateOneID(id int) *AuroraHealthCheckUpdateOne
- func (c *AuroraHealthCheckClient) Use(hooks ...Hook)
- type AuroraHealthCheckCreate
- func (ahcc *AuroraHealthCheckCreate) Exec(ctx context.Context) error
- func (c *AuroraHealthCheckCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ahcc *AuroraHealthCheckCreate) ExecX(ctx context.Context)
- func (ahcc *AuroraHealthCheckCreate) Mutation() *AuroraHealthCheckMutation
- func (c *AuroraHealthCheckCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahcc *AuroraHealthCheckCreate) Save(ctx context.Context) (*AuroraHealthCheck, error)
- func (ahcc *AuroraHealthCheckCreate) SaveX(ctx context.Context) *AuroraHealthCheck
- func (ahcc *AuroraHealthCheckCreate) SetID(i int) *AuroraHealthCheckCreate
- func (ahcc *AuroraHealthCheckCreate) SetNillableTs(t *time.Time) *AuroraHealthCheckCreate
- func (ahcc *AuroraHealthCheckCreate) SetTs(t time.Time) *AuroraHealthCheckCreate
- type AuroraHealthCheckCreateBulk
- func (ahccb *AuroraHealthCheckCreateBulk) Exec(ctx context.Context) error
- func (c *AuroraHealthCheckCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ahccb *AuroraHealthCheckCreateBulk) ExecX(ctx context.Context)
- func (c *AuroraHealthCheckCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahccb *AuroraHealthCheckCreateBulk) Save(ctx context.Context) ([]*AuroraHealthCheck, error)
- func (ahccb *AuroraHealthCheckCreateBulk) SaveX(ctx context.Context) []*AuroraHealthCheck
- type AuroraHealthCheckDelete
- func (ahcd *AuroraHealthCheckDelete) Exec(ctx context.Context) (int, error)
- func (c *AuroraHealthCheckDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ahcd *AuroraHealthCheckDelete) ExecX(ctx context.Context) int
- func (c *AuroraHealthCheckDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahcd *AuroraHealthCheckDelete) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckDelete
- type AuroraHealthCheckDeleteOne
- type AuroraHealthCheckGroupBy
- func (ahcgb *AuroraHealthCheckGroupBy) Aggregate(fns ...AggregateFunc) *AuroraHealthCheckGroupBy
- func (s *AuroraHealthCheckGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AuroraHealthCheckGroupBy) BoolX(ctx context.Context) bool
- func (s *AuroraHealthCheckGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AuroraHealthCheckGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AuroraHealthCheckGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AuroraHealthCheckGroupBy) Float64X(ctx context.Context) float64
- func (s *AuroraHealthCheckGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AuroraHealthCheckGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AuroraHealthCheckGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AuroraHealthCheckGroupBy) IntX(ctx context.Context) int
- func (s *AuroraHealthCheckGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AuroraHealthCheckGroupBy) IntsX(ctx context.Context) []int
- func (ahcgb *AuroraHealthCheckGroupBy) Scan(ctx context.Context, v any) error
- func (s *AuroraHealthCheckGroupBy) ScanX(ctx context.Context, v any)
- func (s *AuroraHealthCheckGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AuroraHealthCheckGroupBy) StringX(ctx context.Context) string
- func (s *AuroraHealthCheckGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AuroraHealthCheckGroupBy) StringsX(ctx context.Context) []string
- type AuroraHealthCheckMutation
- func (m *AuroraHealthCheckMutation) AddField(name string, value ent.Value) error
- func (m *AuroraHealthCheckMutation) AddedEdges() []string
- func (m *AuroraHealthCheckMutation) AddedField(name string) (ent.Value, bool)
- func (m *AuroraHealthCheckMutation) AddedFields() []string
- func (m *AuroraHealthCheckMutation) AddedIDs(name string) []ent.Value
- func (m *AuroraHealthCheckMutation) ClearEdge(name string) error
- func (m *AuroraHealthCheckMutation) ClearField(name string) error
- func (m *AuroraHealthCheckMutation) ClearedEdges() []string
- func (m *AuroraHealthCheckMutation) ClearedFields() []string
- func (m AuroraHealthCheckMutation) Client() *Client
- func (m *AuroraHealthCheckMutation) EdgeCleared(name string) bool
- func (c *AuroraHealthCheckMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *AuroraHealthCheckMutation) Field(name string) (ent.Value, bool)
- func (m *AuroraHealthCheckMutation) FieldCleared(name string) bool
- func (m *AuroraHealthCheckMutation) Fields() []string
- func (m *AuroraHealthCheckMutation) ID() (id int, exists bool)
- func (m *AuroraHealthCheckMutation) IDs(ctx context.Context) ([]int, error)
- func (m *AuroraHealthCheckMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AuroraHealthCheckMutation) OldTs(ctx context.Context) (v time.Time, err error)
- func (m *AuroraHealthCheckMutation) Op() Op
- func (c *AuroraHealthCheckMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *AuroraHealthCheckMutation) RemovedEdges() []string
- func (m *AuroraHealthCheckMutation) RemovedIDs(name string) []ent.Value
- func (m *AuroraHealthCheckMutation) ResetEdge(name string) error
- func (m *AuroraHealthCheckMutation) ResetField(name string) error
- func (m *AuroraHealthCheckMutation) ResetTs()
- func (m *AuroraHealthCheckMutation) SetField(name string, value ent.Value) error
- func (m *AuroraHealthCheckMutation) SetID(id int)
- func (m *AuroraHealthCheckMutation) SetOp(op Op)
- func (m *AuroraHealthCheckMutation) SetTs(t time.Time)
- func (m *AuroraHealthCheckMutation) Ts() (r time.Time, exists bool)
- func (m AuroraHealthCheckMutation) Tx() (*Tx, error)
- func (m *AuroraHealthCheckMutation) Type() string
- func (m *AuroraHealthCheckMutation) Where(ps ...predicate.AuroraHealthCheck)
- func (m *AuroraHealthCheckMutation) WhereP(ps ...func(*sql.Selector))
- type AuroraHealthCheckQuery
- func (ahcq *AuroraHealthCheckQuery) Aggregate(fns ...AggregateFunc) *AuroraHealthCheckSelect
- func (ahcq *AuroraHealthCheckQuery) All(ctx context.Context) ([]*AuroraHealthCheck, error)
- func (ahcq *AuroraHealthCheckQuery) AllX(ctx context.Context) []*AuroraHealthCheck
- func (ahcq *AuroraHealthCheckQuery) Clone() *AuroraHealthCheckQuery
- func (ahcq *AuroraHealthCheckQuery) Count(ctx context.Context) (int, error)
- func (ahcq *AuroraHealthCheckQuery) CountX(ctx context.Context) int
- func (c *AuroraHealthCheckQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ahcq *AuroraHealthCheckQuery) Exist(ctx context.Context) (bool, error)
- func (ahcq *AuroraHealthCheckQuery) ExistX(ctx context.Context) bool
- func (ahcq *AuroraHealthCheckQuery) First(ctx context.Context) (*AuroraHealthCheck, error)
- func (ahcq *AuroraHealthCheckQuery) FirstID(ctx context.Context) (id int, err error)
- func (ahcq *AuroraHealthCheckQuery) FirstIDX(ctx context.Context) int
- func (ahcq *AuroraHealthCheckQuery) FirstX(ctx context.Context) *AuroraHealthCheck
- func (ahcq *AuroraHealthCheckQuery) GroupBy(field string, fields ...string) *AuroraHealthCheckGroupBy
- func (ahcq *AuroraHealthCheckQuery) IDs(ctx context.Context) (ids []int, err error)
- func (ahcq *AuroraHealthCheckQuery) IDsX(ctx context.Context) []int
- func (ahcq *AuroraHealthCheckQuery) Limit(limit int) *AuroraHealthCheckQuery
- func (ahcq *AuroraHealthCheckQuery) Offset(offset int) *AuroraHealthCheckQuery
- func (ahcq *AuroraHealthCheckQuery) Only(ctx context.Context) (*AuroraHealthCheck, error)
- func (ahcq *AuroraHealthCheckQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ahcq *AuroraHealthCheckQuery) OnlyIDX(ctx context.Context) int
- func (ahcq *AuroraHealthCheckQuery) OnlyX(ctx context.Context) *AuroraHealthCheck
- func (ahcq *AuroraHealthCheckQuery) Order(o ...OrderFunc) *AuroraHealthCheckQuery
- func (c *AuroraHealthCheckQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahcq *AuroraHealthCheckQuery) Select(fields ...string) *AuroraHealthCheckSelect
- func (ahcq *AuroraHealthCheckQuery) Unique(unique bool) *AuroraHealthCheckQuery
- func (ahcq *AuroraHealthCheckQuery) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckQuery
- type AuroraHealthCheckSelect
- func (ahcs *AuroraHealthCheckSelect) Aggregate(fns ...AggregateFunc) *AuroraHealthCheckSelect
- func (s *AuroraHealthCheckSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AuroraHealthCheckSelect) BoolX(ctx context.Context) bool
- func (s *AuroraHealthCheckSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AuroraHealthCheckSelect) BoolsX(ctx context.Context) []bool
- func (c AuroraHealthCheckSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *AuroraHealthCheckSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AuroraHealthCheckSelect) Float64X(ctx context.Context) float64
- func (s *AuroraHealthCheckSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AuroraHealthCheckSelect) Float64sX(ctx context.Context) []float64
- func (s *AuroraHealthCheckSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AuroraHealthCheckSelect) IntX(ctx context.Context) int
- func (s *AuroraHealthCheckSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AuroraHealthCheckSelect) IntsX(ctx context.Context) []int
- func (c AuroraHealthCheckSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahcs *AuroraHealthCheckSelect) Scan(ctx context.Context, v any) error
- func (s *AuroraHealthCheckSelect) ScanX(ctx context.Context, v any)
- func (s *AuroraHealthCheckSelect) String(ctx context.Context) (_ string, err error)
- func (s *AuroraHealthCheckSelect) StringX(ctx context.Context) string
- func (s *AuroraHealthCheckSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AuroraHealthCheckSelect) StringsX(ctx context.Context) []string
- type AuroraHealthCheckUpdate
- func (ahcu *AuroraHealthCheckUpdate) Exec(ctx context.Context) error
- func (c *AuroraHealthCheckUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ahcu *AuroraHealthCheckUpdate) ExecX(ctx context.Context)
- func (ahcu *AuroraHealthCheckUpdate) Mutation() *AuroraHealthCheckMutation
- func (c *AuroraHealthCheckUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahcu *AuroraHealthCheckUpdate) Save(ctx context.Context) (int, error)
- func (ahcu *AuroraHealthCheckUpdate) SaveX(ctx context.Context) int
- func (ahcu *AuroraHealthCheckUpdate) SetNillableTs(t *time.Time) *AuroraHealthCheckUpdate
- func (ahcu *AuroraHealthCheckUpdate) SetTs(t time.Time) *AuroraHealthCheckUpdate
- func (ahcu *AuroraHealthCheckUpdate) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckUpdate
- type AuroraHealthCheckUpdateOne
- func (ahcuo *AuroraHealthCheckUpdateOne) Exec(ctx context.Context) error
- func (c *AuroraHealthCheckUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ahcuo *AuroraHealthCheckUpdateOne) ExecX(ctx context.Context)
- func (ahcuo *AuroraHealthCheckUpdateOne) Mutation() *AuroraHealthCheckMutation
- func (c *AuroraHealthCheckUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ahcuo *AuroraHealthCheckUpdateOne) Save(ctx context.Context) (*AuroraHealthCheck, error)
- func (ahcuo *AuroraHealthCheckUpdateOne) SaveX(ctx context.Context) *AuroraHealthCheck
- func (ahcuo *AuroraHealthCheckUpdateOne) Select(field string, fields ...string) *AuroraHealthCheckUpdateOne
- func (ahcuo *AuroraHealthCheckUpdateOne) SetNillableTs(t *time.Time) *AuroraHealthCheckUpdateOne
- func (ahcuo *AuroraHealthCheckUpdateOne) SetTs(t time.Time) *AuroraHealthCheckUpdateOne
- func (ahcuo *AuroraHealthCheckUpdateOne) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckUpdateOne
- type AuroraHealthChecks
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type 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
- func (tx *Tx) Client() *Client
- func (tx *Tx) Commit() error
- func (c *Tx) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (tx *Tx) OnCommit(f CommitHook)
- func (tx *Tx) OnRollback(f RollbackHook)
- func (c *Tx) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (tx *Tx) Rollback() error
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeAuroraHealthCheck = "AuroraHealthCheck" )
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 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 AuroraHealthCheck ¶
type AuroraHealthCheck struct { // ID of the ent. ID int `json:"id,omitempty"` // Ts holds the value of the "ts" field. Ts time.Time `json:"ts,omitempty"` // contains filtered or unexported fields }
AuroraHealthCheck is the model entity for the AuroraHealthCheck schema.
func (*AuroraHealthCheck) ExecContext ¶
func (c *AuroraHealthCheck) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheck) QueryContext ¶
func (c *AuroraHealthCheck) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheck) String ¶
func (ahc *AuroraHealthCheck) String() string
String implements the fmt.Stringer.
func (*AuroraHealthCheck) Unwrap ¶
func (ahc *AuroraHealthCheck) Unwrap() *AuroraHealthCheck
Unwrap unwraps the AuroraHealthCheck 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 (*AuroraHealthCheck) Update ¶
func (ahc *AuroraHealthCheck) Update() *AuroraHealthCheckUpdateOne
Update returns a builder for updating this AuroraHealthCheck. Note that you need to call AuroraHealthCheck.Unwrap() before calling this method if this AuroraHealthCheck was returned from a transaction, and the transaction was committed or rolled back.
type AuroraHealthCheckClient ¶
type AuroraHealthCheckClient struct {
// contains filtered or unexported fields
}
AuroraHealthCheckClient is a client for the AuroraHealthCheck schema.
func NewAuroraHealthCheckClient ¶
func NewAuroraHealthCheckClient(c config) *AuroraHealthCheckClient
NewAuroraHealthCheckClient returns a client for the AuroraHealthCheck from the given config.
func (*AuroraHealthCheckClient) Create ¶
func (c *AuroraHealthCheckClient) Create() *AuroraHealthCheckCreate
Create returns a builder for creating a AuroraHealthCheck entity.
func (*AuroraHealthCheckClient) CreateBulk ¶
func (c *AuroraHealthCheckClient) CreateBulk(builders ...*AuroraHealthCheckCreate) *AuroraHealthCheckCreateBulk
CreateBulk returns a builder for creating a bulk of AuroraHealthCheck entities.
func (*AuroraHealthCheckClient) Delete ¶
func (c *AuroraHealthCheckClient) Delete() *AuroraHealthCheckDelete
Delete returns a delete builder for AuroraHealthCheck.
func (*AuroraHealthCheckClient) DeleteOne ¶
func (c *AuroraHealthCheckClient) DeleteOne(ahc *AuroraHealthCheck) *AuroraHealthCheckDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AuroraHealthCheckClient) DeleteOneID ¶
func (c *AuroraHealthCheckClient) DeleteOneID(id int) *AuroraHealthCheckDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AuroraHealthCheckClient) ExecContext ¶
func (c *AuroraHealthCheckClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckClient) Get ¶
func (c *AuroraHealthCheckClient) Get(ctx context.Context, id int) (*AuroraHealthCheck, error)
Get returns a AuroraHealthCheck entity by its id.
func (*AuroraHealthCheckClient) GetX ¶
func (c *AuroraHealthCheckClient) GetX(ctx context.Context, id int) *AuroraHealthCheck
GetX is like Get, but panics if an error occurs.
func (*AuroraHealthCheckClient) Hooks ¶
func (c *AuroraHealthCheckClient) Hooks() []Hook
Hooks returns the client hooks.
func (*AuroraHealthCheckClient) Intercept ¶
func (c *AuroraHealthCheckClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `aurorahealthcheck.Intercept(f(g(h())))`.
func (*AuroraHealthCheckClient) Interceptors ¶
func (c *AuroraHealthCheckClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AuroraHealthCheckClient) Query ¶
func (c *AuroraHealthCheckClient) Query() *AuroraHealthCheckQuery
Query returns a query builder for AuroraHealthCheck.
func (*AuroraHealthCheckClient) QueryContext ¶
func (c *AuroraHealthCheckClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckClient) Update ¶
func (c *AuroraHealthCheckClient) Update() *AuroraHealthCheckUpdate
Update returns an update builder for AuroraHealthCheck.
func (*AuroraHealthCheckClient) UpdateOne ¶
func (c *AuroraHealthCheckClient) UpdateOne(ahc *AuroraHealthCheck) *AuroraHealthCheckUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AuroraHealthCheckClient) UpdateOneID ¶
func (c *AuroraHealthCheckClient) UpdateOneID(id int) *AuroraHealthCheckUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AuroraHealthCheckClient) Use ¶
func (c *AuroraHealthCheckClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `aurorahealthcheck.Hooks(f(g(h())))`.
type AuroraHealthCheckCreate ¶
type AuroraHealthCheckCreate struct {
// contains filtered or unexported fields
}
AuroraHealthCheckCreate is the builder for creating a AuroraHealthCheck entity.
func (*AuroraHealthCheckCreate) Exec ¶
func (ahcc *AuroraHealthCheckCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AuroraHealthCheckCreate) ExecContext ¶
func (c *AuroraHealthCheckCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckCreate) ExecX ¶
func (ahcc *AuroraHealthCheckCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuroraHealthCheckCreate) Mutation ¶
func (ahcc *AuroraHealthCheckCreate) Mutation() *AuroraHealthCheckMutation
Mutation returns the AuroraHealthCheckMutation object of the builder.
func (*AuroraHealthCheckCreate) QueryContext ¶
func (c *AuroraHealthCheckCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckCreate) Save ¶
func (ahcc *AuroraHealthCheckCreate) Save(ctx context.Context) (*AuroraHealthCheck, error)
Save creates the AuroraHealthCheck in the database.
func (*AuroraHealthCheckCreate) SaveX ¶
func (ahcc *AuroraHealthCheckCreate) SaveX(ctx context.Context) *AuroraHealthCheck
SaveX calls Save and panics if Save returns an error.
func (*AuroraHealthCheckCreate) SetID ¶
func (ahcc *AuroraHealthCheckCreate) SetID(i int) *AuroraHealthCheckCreate
SetID sets the "id" field.
func (*AuroraHealthCheckCreate) SetNillableTs ¶
func (ahcc *AuroraHealthCheckCreate) SetNillableTs(t *time.Time) *AuroraHealthCheckCreate
SetNillableTs sets the "ts" field if the given value is not nil.
func (*AuroraHealthCheckCreate) SetTs ¶
func (ahcc *AuroraHealthCheckCreate) SetTs(t time.Time) *AuroraHealthCheckCreate
SetTs sets the "ts" field.
type AuroraHealthCheckCreateBulk ¶
type AuroraHealthCheckCreateBulk struct {
// contains filtered or unexported fields
}
AuroraHealthCheckCreateBulk is the builder for creating many AuroraHealthCheck entities in bulk.
func (*AuroraHealthCheckCreateBulk) Exec ¶
func (ahccb *AuroraHealthCheckCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AuroraHealthCheckCreateBulk) ExecContext ¶
func (c *AuroraHealthCheckCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckCreateBulk) ExecX ¶
func (ahccb *AuroraHealthCheckCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuroraHealthCheckCreateBulk) QueryContext ¶
func (c *AuroraHealthCheckCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckCreateBulk) Save ¶
func (ahccb *AuroraHealthCheckCreateBulk) Save(ctx context.Context) ([]*AuroraHealthCheck, error)
Save creates the AuroraHealthCheck entities in the database.
func (*AuroraHealthCheckCreateBulk) SaveX ¶
func (ahccb *AuroraHealthCheckCreateBulk) SaveX(ctx context.Context) []*AuroraHealthCheck
SaveX is like Save, but panics if an error occurs.
type AuroraHealthCheckDelete ¶
type AuroraHealthCheckDelete struct {
// contains filtered or unexported fields
}
AuroraHealthCheckDelete is the builder for deleting a AuroraHealthCheck entity.
func (*AuroraHealthCheckDelete) Exec ¶
func (ahcd *AuroraHealthCheckDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AuroraHealthCheckDelete) ExecContext ¶
func (c *AuroraHealthCheckDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckDelete) ExecX ¶
func (ahcd *AuroraHealthCheckDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AuroraHealthCheckDelete) QueryContext ¶
func (c *AuroraHealthCheckDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckDelete) Where ¶
func (ahcd *AuroraHealthCheckDelete) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckDelete
Where appends a list predicates to the AuroraHealthCheckDelete builder.
type AuroraHealthCheckDeleteOne ¶
type AuroraHealthCheckDeleteOne struct {
// contains filtered or unexported fields
}
AuroraHealthCheckDeleteOne is the builder for deleting a single AuroraHealthCheck entity.
func (*AuroraHealthCheckDeleteOne) Exec ¶
func (ahcdo *AuroraHealthCheckDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AuroraHealthCheckDeleteOne) ExecX ¶
func (ahcdo *AuroraHealthCheckDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuroraHealthCheckDeleteOne) Where ¶
func (ahcdo *AuroraHealthCheckDeleteOne) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckDeleteOne
Where appends a list predicates to the AuroraHealthCheckDelete builder.
type AuroraHealthCheckGroupBy ¶
type AuroraHealthCheckGroupBy struct {
// contains filtered or unexported fields
}
AuroraHealthCheckGroupBy is the group-by builder for AuroraHealthCheck entities.
func (*AuroraHealthCheckGroupBy) Aggregate ¶
func (ahcgb *AuroraHealthCheckGroupBy) Aggregate(fns ...AggregateFunc) *AuroraHealthCheckGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AuroraHealthCheckGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*AuroraHealthCheckGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*AuroraHealthCheckGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckGroupBy) Scan ¶
func (ahcgb *AuroraHealthCheckGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AuroraHealthCheckGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AuroraHealthCheckMutation ¶
type AuroraHealthCheckMutation struct {
// contains filtered or unexported fields
}
AuroraHealthCheckMutation represents an operation that mutates the AuroraHealthCheck nodes in the graph.
func (*AuroraHealthCheckMutation) AddField ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) AddedEdges ¶
func (m *AuroraHealthCheckMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AuroraHealthCheckMutation) AddedField ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) AddedFields ¶
func (m *AuroraHealthCheckMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AuroraHealthCheckMutation) AddedIDs ¶
func (m *AuroraHealthCheckMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AuroraHealthCheckMutation) ClearEdge ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) ClearField ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) ClearedEdges ¶
func (m *AuroraHealthCheckMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AuroraHealthCheckMutation) ClearedFields ¶
func (m *AuroraHealthCheckMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AuroraHealthCheckMutation) Client ¶
func (m AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) EdgeCleared ¶
func (m *AuroraHealthCheckMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AuroraHealthCheckMutation) ExecContext ¶
func (c *AuroraHealthCheckMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckMutation) Field ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) FieldCleared ¶
func (m *AuroraHealthCheckMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AuroraHealthCheckMutation) Fields ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) ID ¶
func (m *AuroraHealthCheckMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*AuroraHealthCheckMutation) IDs ¶
func (m *AuroraHealthCheckMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) OldTs ¶
OldTs returns the old "ts" field's value of the AuroraHealthCheck entity. If the AuroraHealthCheck object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AuroraHealthCheckMutation) Op ¶
func (m *AuroraHealthCheckMutation) Op() Op
Op returns the operation name.
func (*AuroraHealthCheckMutation) QueryContext ¶
func (c *AuroraHealthCheckMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckMutation) RemovedEdges ¶
func (m *AuroraHealthCheckMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AuroraHealthCheckMutation) RemovedIDs ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) ResetEdge ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) ResetField ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) ResetTs ¶
func (m *AuroraHealthCheckMutation) ResetTs()
ResetTs resets all changes to the "ts" field.
func (*AuroraHealthCheckMutation) SetField ¶
func (m *AuroraHealthCheckMutation) 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 (*AuroraHealthCheckMutation) SetID ¶
func (m *AuroraHealthCheckMutation) SetID(id int)
SetID sets the value of the id field. Note that this operation is only accepted on creation of AuroraHealthCheck entities.
func (*AuroraHealthCheckMutation) SetOp ¶
func (m *AuroraHealthCheckMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AuroraHealthCheckMutation) SetTs ¶
func (m *AuroraHealthCheckMutation) SetTs(t time.Time)
SetTs sets the "ts" field.
func (*AuroraHealthCheckMutation) Ts ¶
func (m *AuroraHealthCheckMutation) Ts() (r time.Time, exists bool)
Ts returns the value of the "ts" field in the mutation.
func (AuroraHealthCheckMutation) Tx ¶
func (m AuroraHealthCheckMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AuroraHealthCheckMutation) Type ¶
func (m *AuroraHealthCheckMutation) Type() string
Type returns the node type of this mutation (AuroraHealthCheck).
func (*AuroraHealthCheckMutation) Where ¶
func (m *AuroraHealthCheckMutation) Where(ps ...predicate.AuroraHealthCheck)
Where appends a list predicates to the AuroraHealthCheckMutation builder.
func (*AuroraHealthCheckMutation) WhereP ¶
func (m *AuroraHealthCheckMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AuroraHealthCheckMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type AuroraHealthCheckQuery ¶
type AuroraHealthCheckQuery struct {
// contains filtered or unexported fields
}
AuroraHealthCheckQuery is the builder for querying AuroraHealthCheck entities.
func (*AuroraHealthCheckQuery) Aggregate ¶
func (ahcq *AuroraHealthCheckQuery) Aggregate(fns ...AggregateFunc) *AuroraHealthCheckSelect
Aggregate returns a AuroraHealthCheckSelect configured with the given aggregations.
func (*AuroraHealthCheckQuery) All ¶
func (ahcq *AuroraHealthCheckQuery) All(ctx context.Context) ([]*AuroraHealthCheck, error)
All executes the query and returns a list of AuroraHealthChecks.
func (*AuroraHealthCheckQuery) AllX ¶
func (ahcq *AuroraHealthCheckQuery) AllX(ctx context.Context) []*AuroraHealthCheck
AllX is like All, but panics if an error occurs.
func (*AuroraHealthCheckQuery) Clone ¶
func (ahcq *AuroraHealthCheckQuery) Clone() *AuroraHealthCheckQuery
Clone returns a duplicate of the AuroraHealthCheckQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AuroraHealthCheckQuery) Count ¶
func (ahcq *AuroraHealthCheckQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AuroraHealthCheckQuery) CountX ¶
func (ahcq *AuroraHealthCheckQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AuroraHealthCheckQuery) ExecContext ¶
func (c *AuroraHealthCheckQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckQuery) Exist ¶
func (ahcq *AuroraHealthCheckQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AuroraHealthCheckQuery) ExistX ¶
func (ahcq *AuroraHealthCheckQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AuroraHealthCheckQuery) First ¶
func (ahcq *AuroraHealthCheckQuery) First(ctx context.Context) (*AuroraHealthCheck, error)
First returns the first AuroraHealthCheck entity from the query. Returns a *NotFoundError when no AuroraHealthCheck was found.
func (*AuroraHealthCheckQuery) FirstID ¶
func (ahcq *AuroraHealthCheckQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first AuroraHealthCheck ID from the query. Returns a *NotFoundError when no AuroraHealthCheck ID was found.
func (*AuroraHealthCheckQuery) FirstIDX ¶
func (ahcq *AuroraHealthCheckQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*AuroraHealthCheckQuery) FirstX ¶
func (ahcq *AuroraHealthCheckQuery) FirstX(ctx context.Context) *AuroraHealthCheck
FirstX is like First, but panics if an error occurs.
func (*AuroraHealthCheckQuery) GroupBy ¶
func (ahcq *AuroraHealthCheckQuery) GroupBy(field string, fields ...string) *AuroraHealthCheckGroupBy
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 { Ts time.Time `json:"ts,omitempty"` Count int `json:"count,omitempty"` } client.AuroraHealthCheck.Query(). GroupBy(aurorahealthcheck.FieldTs). Aggregate(ent.Count()). Scan(ctx, &v)
func (*AuroraHealthCheckQuery) IDs ¶
func (ahcq *AuroraHealthCheckQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of AuroraHealthCheck IDs.
func (*AuroraHealthCheckQuery) IDsX ¶
func (ahcq *AuroraHealthCheckQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*AuroraHealthCheckQuery) Limit ¶
func (ahcq *AuroraHealthCheckQuery) Limit(limit int) *AuroraHealthCheckQuery
Limit the number of records to be returned by this query.
func (*AuroraHealthCheckQuery) Offset ¶
func (ahcq *AuroraHealthCheckQuery) Offset(offset int) *AuroraHealthCheckQuery
Offset to start from.
func (*AuroraHealthCheckQuery) Only ¶
func (ahcq *AuroraHealthCheckQuery) Only(ctx context.Context) (*AuroraHealthCheck, error)
Only returns a single AuroraHealthCheck entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one AuroraHealthCheck entity is found. Returns a *NotFoundError when no AuroraHealthCheck entities are found.
func (*AuroraHealthCheckQuery) OnlyID ¶
func (ahcq *AuroraHealthCheckQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only AuroraHealthCheck ID in the query. Returns a *NotSingularError when more than one AuroraHealthCheck ID is found. Returns a *NotFoundError when no entities are found.
func (*AuroraHealthCheckQuery) OnlyIDX ¶
func (ahcq *AuroraHealthCheckQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AuroraHealthCheckQuery) OnlyX ¶
func (ahcq *AuroraHealthCheckQuery) OnlyX(ctx context.Context) *AuroraHealthCheck
OnlyX is like Only, but panics if an error occurs.
func (*AuroraHealthCheckQuery) Order ¶
func (ahcq *AuroraHealthCheckQuery) Order(o ...OrderFunc) *AuroraHealthCheckQuery
Order specifies how the records should be ordered.
func (*AuroraHealthCheckQuery) QueryContext ¶
func (c *AuroraHealthCheckQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckQuery) Select ¶
func (ahcq *AuroraHealthCheckQuery) Select(fields ...string) *AuroraHealthCheckSelect
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 { Ts time.Time `json:"ts,omitempty"` } client.AuroraHealthCheck.Query(). Select(aurorahealthcheck.FieldTs). Scan(ctx, &v)
func (*AuroraHealthCheckQuery) Unique ¶
func (ahcq *AuroraHealthCheckQuery) Unique(unique bool) *AuroraHealthCheckQuery
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 (*AuroraHealthCheckQuery) Where ¶
func (ahcq *AuroraHealthCheckQuery) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckQuery
Where adds a new predicate for the AuroraHealthCheckQuery builder.
type AuroraHealthCheckSelect ¶
type AuroraHealthCheckSelect struct { *AuroraHealthCheckQuery // contains filtered or unexported fields }
AuroraHealthCheckSelect is the builder for selecting fields of AuroraHealthCheck entities.
func (*AuroraHealthCheckSelect) Aggregate ¶
func (ahcs *AuroraHealthCheckSelect) Aggregate(fns ...AggregateFunc) *AuroraHealthCheckSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AuroraHealthCheckSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (AuroraHealthCheckSelect) ExecContext ¶
func (c AuroraHealthCheckSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*AuroraHealthCheckSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AuroraHealthCheckSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (AuroraHealthCheckSelect) QueryContext ¶
func (c AuroraHealthCheckSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckSelect) Scan ¶
func (ahcs *AuroraHealthCheckSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AuroraHealthCheckSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AuroraHealthCheckUpdate ¶
type AuroraHealthCheckUpdate struct {
// contains filtered or unexported fields
}
AuroraHealthCheckUpdate is the builder for updating AuroraHealthCheck entities.
func (*AuroraHealthCheckUpdate) Exec ¶
func (ahcu *AuroraHealthCheckUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AuroraHealthCheckUpdate) ExecContext ¶
func (c *AuroraHealthCheckUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckUpdate) ExecX ¶
func (ahcu *AuroraHealthCheckUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuroraHealthCheckUpdate) Mutation ¶
func (ahcu *AuroraHealthCheckUpdate) Mutation() *AuroraHealthCheckMutation
Mutation returns the AuroraHealthCheckMutation object of the builder.
func (*AuroraHealthCheckUpdate) QueryContext ¶
func (c *AuroraHealthCheckUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckUpdate) Save ¶
func (ahcu *AuroraHealthCheckUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*AuroraHealthCheckUpdate) SaveX ¶
func (ahcu *AuroraHealthCheckUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AuroraHealthCheckUpdate) SetNillableTs ¶
func (ahcu *AuroraHealthCheckUpdate) SetNillableTs(t *time.Time) *AuroraHealthCheckUpdate
SetNillableTs sets the "ts" field if the given value is not nil.
func (*AuroraHealthCheckUpdate) SetTs ¶
func (ahcu *AuroraHealthCheckUpdate) SetTs(t time.Time) *AuroraHealthCheckUpdate
SetTs sets the "ts" field.
func (*AuroraHealthCheckUpdate) Where ¶
func (ahcu *AuroraHealthCheckUpdate) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckUpdate
Where appends a list predicates to the AuroraHealthCheckUpdate builder.
type AuroraHealthCheckUpdateOne ¶
type AuroraHealthCheckUpdateOne struct {
// contains filtered or unexported fields
}
AuroraHealthCheckUpdateOne is the builder for updating a single AuroraHealthCheck entity.
func (*AuroraHealthCheckUpdateOne) Exec ¶
func (ahcuo *AuroraHealthCheckUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AuroraHealthCheckUpdateOne) ExecContext ¶
func (c *AuroraHealthCheckUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*AuroraHealthCheckUpdateOne) ExecX ¶
func (ahcuo *AuroraHealthCheckUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AuroraHealthCheckUpdateOne) Mutation ¶
func (ahcuo *AuroraHealthCheckUpdateOne) Mutation() *AuroraHealthCheckMutation
Mutation returns the AuroraHealthCheckMutation object of the builder.
func (*AuroraHealthCheckUpdateOne) QueryContext ¶
func (c *AuroraHealthCheckUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*AuroraHealthCheckUpdateOne) Save ¶
func (ahcuo *AuroraHealthCheckUpdateOne) Save(ctx context.Context) (*AuroraHealthCheck, error)
Save executes the query and returns the updated AuroraHealthCheck entity.
func (*AuroraHealthCheckUpdateOne) SaveX ¶
func (ahcuo *AuroraHealthCheckUpdateOne) SaveX(ctx context.Context) *AuroraHealthCheck
SaveX is like Save, but panics if an error occurs.
func (*AuroraHealthCheckUpdateOne) Select ¶
func (ahcuo *AuroraHealthCheckUpdateOne) Select(field string, fields ...string) *AuroraHealthCheckUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AuroraHealthCheckUpdateOne) SetNillableTs ¶
func (ahcuo *AuroraHealthCheckUpdateOne) SetNillableTs(t *time.Time) *AuroraHealthCheckUpdateOne
SetNillableTs sets the "ts" field if the given value is not nil.
func (*AuroraHealthCheckUpdateOne) SetTs ¶
func (ahcuo *AuroraHealthCheckUpdateOne) SetTs(t time.Time) *AuroraHealthCheckUpdateOne
SetTs sets the "ts" field.
func (*AuroraHealthCheckUpdateOne) Where ¶
func (ahcuo *AuroraHealthCheckUpdateOne) Where(ps ...predicate.AuroraHealthCheck) *AuroraHealthCheckUpdateOne
Where appends a list predicates to the AuroraHealthCheckUpdate builder.
type AuroraHealthChecks ¶
type AuroraHealthChecks []*AuroraHealthCheck
AuroraHealthChecks is a parsable slice of AuroraHealthCheck.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // AuroraHealthCheck is the client for interacting with the AuroraHealthCheck builders. AuroraHealthCheck *AuroraHealthCheckClient // 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(). AuroraHealthCheck. Query(). Count(ctx)
func (*Client) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
func (*Client) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type 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 ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // AuroraHealthCheck is the client for interacting with the AuroraHealthCheck builders. AuroraHealthCheck *AuroraHealthCheckClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
func (*Tx) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.