Documentation ¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) 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 OASTypes
- type OASTypesClient
- func (c *OASTypesClient) Create() *OASTypesCreate
- func (c *OASTypesClient) CreateBulk(builders ...*OASTypesCreate) *OASTypesCreateBulk
- func (c *OASTypesClient) Delete() *OASTypesDelete
- func (c *OASTypesClient) DeleteOne(ot *OASTypes) *OASTypesDeleteOne
- func (c *OASTypesClient) DeleteOneID(id int) *OASTypesDeleteOne
- func (c *OASTypesClient) Get(ctx context.Context, id int) (*OASTypes, error)
- func (c *OASTypesClient) GetX(ctx context.Context, id int) *OASTypes
- func (c *OASTypesClient) Hooks() []Hook
- func (c *OASTypesClient) Intercept(interceptors ...Interceptor)
- func (c *OASTypesClient) Interceptors() []Interceptor
- func (c *OASTypesClient) MapCreateBulk(slice any, setFunc func(*OASTypesCreate, int)) *OASTypesCreateBulk
- func (c *OASTypesClient) Query() *OASTypesQuery
- func (c *OASTypesClient) Update() *OASTypesUpdate
- func (c *OASTypesClient) UpdateOne(ot *OASTypes) *OASTypesUpdateOne
- func (c *OASTypesClient) UpdateOneID(id int) *OASTypesUpdateOne
- func (c *OASTypesClient) Use(hooks ...Hook)
- type OASTypesCreate
- func (otc *OASTypesCreate) Exec(ctx context.Context) error
- func (otc *OASTypesCreate) ExecX(ctx context.Context)
- func (otc *OASTypesCreate) Mutation() *OASTypesMutation
- func (otc *OASTypesCreate) Save(ctx context.Context) (*OASTypes, error)
- func (otc *OASTypesCreate) SaveX(ctx context.Context) *OASTypes
- func (otc *OASTypesCreate) SetBool(b bool) *OASTypesCreate
- func (otc *OASTypesCreate) SetBytes(b []byte) *OASTypesCreate
- func (otc *OASTypesCreate) SetFloat32(f float32) *OASTypesCreate
- func (otc *OASTypesCreate) SetFloat64(f float64) *OASTypesCreate
- func (otc *OASTypesCreate) SetFloats(f []float64) *OASTypesCreate
- func (otc *OASTypesCreate) SetInt(i int) *OASTypesCreate
- func (otc *OASTypesCreate) SetInt16(i int16) *OASTypesCreate
- func (otc *OASTypesCreate) SetInt32(i int32) *OASTypesCreate
- func (otc *OASTypesCreate) SetInt64(i int64) *OASTypesCreate
- func (otc *OASTypesCreate) SetInt8(i int8) *OASTypesCreate
- func (otc *OASTypesCreate) SetInts(i []int) *OASTypesCreate
- func (otc *OASTypesCreate) SetJSONObj(u url.URL) *OASTypesCreate
- func (otc *OASTypesCreate) SetJSONSlice(h []http.Dir) *OASTypesCreate
- func (otc *OASTypesCreate) SetNicknames(s []string) *OASTypesCreate
- func (otc *OASTypesCreate) SetNillable(i int) *OASTypesCreate
- func (otc *OASTypesCreate) SetNillableOptional(i *int) *OASTypesCreate
- func (otc *OASTypesCreate) SetNillableOptionalAndNillable(i *int) *OASTypesCreate
- func (otc *OASTypesCreate) SetNillableUUID(u *uuid.UUID) *OASTypesCreate
- func (otc *OASTypesCreate) SetOptional(i int) *OASTypesCreate
- func (otc *OASTypesCreate) SetOptionalAndNillable(i int) *OASTypesCreate
- func (otc *OASTypesCreate) SetOther(s *schema.Link) *OASTypesCreate
- func (otc *OASTypesCreate) SetState(o oastypes.State) *OASTypesCreate
- func (otc *OASTypesCreate) SetStringField(s string) *OASTypesCreate
- func (otc *OASTypesCreate) SetStrings(s []string) *OASTypesCreate
- func (otc *OASTypesCreate) SetText(s string) *OASTypesCreate
- func (otc *OASTypesCreate) SetTime(t time.Time) *OASTypesCreate
- func (otc *OASTypesCreate) SetUUID(u uuid.UUID) *OASTypesCreate
- func (otc *OASTypesCreate) SetUint(u uint) *OASTypesCreate
- func (otc *OASTypesCreate) SetUint16(u uint16) *OASTypesCreate
- func (otc *OASTypesCreate) SetUint32(u uint32) *OASTypesCreate
- func (otc *OASTypesCreate) SetUint64(u uint64) *OASTypesCreate
- func (otc *OASTypesCreate) SetUint8(u uint8) *OASTypesCreate
- type OASTypesCreateBulk
- type OASTypesDelete
- type OASTypesDeleteOne
- type OASTypesGroupBy
- func (otgb *OASTypesGroupBy) Aggregate(fns ...AggregateFunc) *OASTypesGroupBy
- func (s *OASTypesGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OASTypesGroupBy) BoolX(ctx context.Context) bool
- func (s *OASTypesGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OASTypesGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OASTypesGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OASTypesGroupBy) Float64X(ctx context.Context) float64
- func (s *OASTypesGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OASTypesGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OASTypesGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OASTypesGroupBy) IntX(ctx context.Context) int
- func (s *OASTypesGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OASTypesGroupBy) IntsX(ctx context.Context) []int
- func (otgb *OASTypesGroupBy) Scan(ctx context.Context, v any) error
- func (s *OASTypesGroupBy) ScanX(ctx context.Context, v any)
- func (s *OASTypesGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OASTypesGroupBy) StringX(ctx context.Context) string
- func (s *OASTypesGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OASTypesGroupBy) StringsX(ctx context.Context) []string
- type OASTypesMutation
- func (m *OASTypesMutation) AddField(name string, value ent.Value) error
- func (m *OASTypesMutation) AddFloat32(f float32)
- func (m *OASTypesMutation) AddFloat64(f float64)
- func (m *OASTypesMutation) AddInt(i int)
- func (m *OASTypesMutation) AddInt16(i int16)
- func (m *OASTypesMutation) AddInt32(i int32)
- func (m *OASTypesMutation) AddInt64(i int64)
- func (m *OASTypesMutation) AddInt8(i int8)
- func (m *OASTypesMutation) AddNillable(i int)
- func (m *OASTypesMutation) AddOptional(i int)
- func (m *OASTypesMutation) AddOptionalAndNillable(i int)
- func (m *OASTypesMutation) AddUint(u int)
- func (m *OASTypesMutation) AddUint16(u int16)
- func (m *OASTypesMutation) AddUint32(u int32)
- func (m *OASTypesMutation) AddUint64(u int64)
- func (m *OASTypesMutation) AddUint8(u int8)
- func (m *OASTypesMutation) AddedEdges() []string
- func (m *OASTypesMutation) AddedField(name string) (ent.Value, bool)
- func (m *OASTypesMutation) AddedFields() []string
- func (m *OASTypesMutation) AddedFloat32() (r float32, exists bool)
- func (m *OASTypesMutation) AddedFloat64() (r float64, exists bool)
- func (m *OASTypesMutation) AddedIDs(name string) []ent.Value
- func (m *OASTypesMutation) AddedInt() (r int, exists bool)
- func (m *OASTypesMutation) AddedInt16() (r int16, exists bool)
- func (m *OASTypesMutation) AddedInt32() (r int32, exists bool)
- func (m *OASTypesMutation) AddedInt64() (r int64, exists bool)
- func (m *OASTypesMutation) AddedInt8() (r int8, exists bool)
- func (m *OASTypesMutation) AddedNillable() (r int, exists bool)
- func (m *OASTypesMutation) AddedOptional() (r int, exists bool)
- func (m *OASTypesMutation) AddedOptionalAndNillable() (r int, exists bool)
- func (m *OASTypesMutation) AddedUint() (r int, exists bool)
- func (m *OASTypesMutation) AddedUint16() (r int16, exists bool)
- func (m *OASTypesMutation) AddedUint32() (r int32, exists bool)
- func (m *OASTypesMutation) AddedUint64() (r int64, exists bool)
- func (m *OASTypesMutation) AddedUint8() (r int8, exists bool)
- func (m *OASTypesMutation) AppendFloats(f []float64)
- func (m *OASTypesMutation) AppendInts(i []int)
- func (m *OASTypesMutation) AppendJSONSlice(h []http.Dir)
- func (m *OASTypesMutation) AppendNicknames(s []string)
- func (m *OASTypesMutation) AppendStrings(s []string)
- func (m *OASTypesMutation) AppendedFloats() ([]float64, bool)
- func (m *OASTypesMutation) AppendedInts() ([]int, bool)
- func (m *OASTypesMutation) AppendedJSONSlice() ([]http.Dir, bool)
- func (m *OASTypesMutation) AppendedNicknames() ([]string, bool)
- func (m *OASTypesMutation) AppendedStrings() ([]string, bool)
- func (m *OASTypesMutation) Bool() (r bool, exists bool)
- func (m *OASTypesMutation) Bytes() (r []byte, exists bool)
- func (m *OASTypesMutation) ClearEdge(name string) error
- func (m *OASTypesMutation) ClearField(name string) error
- func (m *OASTypesMutation) ClearOptional()
- func (m *OASTypesMutation) ClearOptionalAndNillable()
- func (m *OASTypesMutation) ClearedEdges() []string
- func (m *OASTypesMutation) ClearedFields() []string
- func (m OASTypesMutation) Client() *Client
- func (m *OASTypesMutation) EdgeCleared(name string) bool
- func (m *OASTypesMutation) Field(name string) (ent.Value, bool)
- func (m *OASTypesMutation) FieldCleared(name string) bool
- func (m *OASTypesMutation) Fields() []string
- func (m *OASTypesMutation) Float32() (r float32, exists bool)
- func (m *OASTypesMutation) Float64() (r float64, exists bool)
- func (m *OASTypesMutation) Floats() (r []float64, exists bool)
- func (m *OASTypesMutation) ID() (id int, exists bool)
- func (m *OASTypesMutation) IDs(ctx context.Context) ([]int, error)
- func (m *OASTypesMutation) Int() (r int, exists bool)
- func (m *OASTypesMutation) Int16() (r int16, exists bool)
- func (m *OASTypesMutation) Int32() (r int32, exists bool)
- func (m *OASTypesMutation) Int64() (r int64, exists bool)
- func (m *OASTypesMutation) Int8() (r int8, exists bool)
- func (m *OASTypesMutation) Ints() (r []int, exists bool)
- func (m *OASTypesMutation) JSONObj() (r url.URL, exists bool)
- func (m *OASTypesMutation) JSONSlice() (r []http.Dir, exists bool)
- func (m *OASTypesMutation) Nicknames() (r []string, exists bool)
- func (m *OASTypesMutation) Nillable() (r int, exists bool)
- func (m *OASTypesMutation) OldBool(ctx context.Context) (v bool, err error)
- func (m *OASTypesMutation) OldBytes(ctx context.Context) (v []byte, err error)
- func (m *OASTypesMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OASTypesMutation) OldFloat32(ctx context.Context) (v float32, err error)
- func (m *OASTypesMutation) OldFloat64(ctx context.Context) (v float64, err error)
- func (m *OASTypesMutation) OldFloats(ctx context.Context) (v []float64, err error)
- func (m *OASTypesMutation) OldInt(ctx context.Context) (v int, err error)
- func (m *OASTypesMutation) OldInt16(ctx context.Context) (v int16, err error)
- func (m *OASTypesMutation) OldInt32(ctx context.Context) (v int32, err error)
- func (m *OASTypesMutation) OldInt64(ctx context.Context) (v int64, err error)
- func (m *OASTypesMutation) OldInt8(ctx context.Context) (v int8, err error)
- func (m *OASTypesMutation) OldInts(ctx context.Context) (v []int, err error)
- func (m *OASTypesMutation) OldJSONObj(ctx context.Context) (v url.URL, err error)
- func (m *OASTypesMutation) OldJSONSlice(ctx context.Context) (v []http.Dir, err error)
- func (m *OASTypesMutation) OldNicknames(ctx context.Context) (v []string, err error)
- func (m *OASTypesMutation) OldNillable(ctx context.Context) (v *int, err error)
- func (m *OASTypesMutation) OldOptional(ctx context.Context) (v int, err error)
- func (m *OASTypesMutation) OldOptionalAndNillable(ctx context.Context) (v *int, err error)
- func (m *OASTypesMutation) OldOther(ctx context.Context) (v *schema.Link, err error)
- func (m *OASTypesMutation) OldState(ctx context.Context) (v oastypes.State, err error)
- func (m *OASTypesMutation) OldStringField(ctx context.Context) (v string, err error)
- func (m *OASTypesMutation) OldStrings(ctx context.Context) (v []string, err error)
- func (m *OASTypesMutation) OldText(ctx context.Context) (v string, err error)
- func (m *OASTypesMutation) OldTime(ctx context.Context) (v time.Time, err error)
- func (m *OASTypesMutation) OldUUID(ctx context.Context) (v uuid.UUID, err error)
- func (m *OASTypesMutation) OldUint(ctx context.Context) (v uint, err error)
- func (m *OASTypesMutation) OldUint16(ctx context.Context) (v uint16, err error)
- func (m *OASTypesMutation) OldUint32(ctx context.Context) (v uint32, err error)
- func (m *OASTypesMutation) OldUint64(ctx context.Context) (v uint64, err error)
- func (m *OASTypesMutation) OldUint8(ctx context.Context) (v uint8, err error)
- func (m *OASTypesMutation) Op() Op
- func (m *OASTypesMutation) Optional() (r int, exists bool)
- func (m *OASTypesMutation) OptionalAndNillable() (r int, exists bool)
- func (m *OASTypesMutation) OptionalAndNillableCleared() bool
- func (m *OASTypesMutation) OptionalCleared() bool
- func (m *OASTypesMutation) Other() (r *schema.Link, exists bool)
- func (m *OASTypesMutation) RemovedEdges() []string
- func (m *OASTypesMutation) RemovedIDs(name string) []ent.Value
- func (m *OASTypesMutation) ResetBool()
- func (m *OASTypesMutation) ResetBytes()
- func (m *OASTypesMutation) ResetEdge(name string) error
- func (m *OASTypesMutation) ResetField(name string) error
- func (m *OASTypesMutation) ResetFloat32()
- func (m *OASTypesMutation) ResetFloat64()
- func (m *OASTypesMutation) ResetFloats()
- func (m *OASTypesMutation) ResetInt()
- func (m *OASTypesMutation) ResetInt16()
- func (m *OASTypesMutation) ResetInt32()
- func (m *OASTypesMutation) ResetInt64()
- func (m *OASTypesMutation) ResetInt8()
- func (m *OASTypesMutation) ResetInts()
- func (m *OASTypesMutation) ResetJSONObj()
- func (m *OASTypesMutation) ResetJSONSlice()
- func (m *OASTypesMutation) ResetNicknames()
- func (m *OASTypesMutation) ResetNillable()
- func (m *OASTypesMutation) ResetOptional()
- func (m *OASTypesMutation) ResetOptionalAndNillable()
- func (m *OASTypesMutation) ResetOther()
- func (m *OASTypesMutation) ResetState()
- func (m *OASTypesMutation) ResetStringField()
- func (m *OASTypesMutation) ResetStrings()
- func (m *OASTypesMutation) ResetText()
- func (m *OASTypesMutation) ResetTime()
- func (m *OASTypesMutation) ResetUUID()
- func (m *OASTypesMutation) ResetUint()
- func (m *OASTypesMutation) ResetUint16()
- func (m *OASTypesMutation) ResetUint32()
- func (m *OASTypesMutation) ResetUint64()
- func (m *OASTypesMutation) ResetUint8()
- func (m *OASTypesMutation) SetBool(b bool)
- func (m *OASTypesMutation) SetBytes(b []byte)
- func (m *OASTypesMutation) SetField(name string, value ent.Value) error
- func (m *OASTypesMutation) SetFloat32(f float32)
- func (m *OASTypesMutation) SetFloat64(f float64)
- func (m *OASTypesMutation) SetFloats(f []float64)
- func (m *OASTypesMutation) SetInt(i int)
- func (m *OASTypesMutation) SetInt16(i int16)
- func (m *OASTypesMutation) SetInt32(i int32)
- func (m *OASTypesMutation) SetInt64(i int64)
- func (m *OASTypesMutation) SetInt8(i int8)
- func (m *OASTypesMutation) SetInts(i []int)
- func (m *OASTypesMutation) SetJSONObj(u url.URL)
- func (m *OASTypesMutation) SetJSONSlice(h []http.Dir)
- func (m *OASTypesMutation) SetNicknames(s []string)
- func (m *OASTypesMutation) SetNillable(i int)
- func (m *OASTypesMutation) SetOp(op Op)
- func (m *OASTypesMutation) SetOptional(i int)
- func (m *OASTypesMutation) SetOptionalAndNillable(i int)
- func (m *OASTypesMutation) SetOther(s *schema.Link)
- func (m *OASTypesMutation) SetState(o oastypes.State)
- func (m *OASTypesMutation) SetStringField(s string)
- func (m *OASTypesMutation) SetStrings(s []string)
- func (m *OASTypesMutation) SetText(s string)
- func (m *OASTypesMutation) SetTime(t time.Time)
- func (m *OASTypesMutation) SetUUID(u uuid.UUID)
- func (m *OASTypesMutation) SetUint(u uint)
- func (m *OASTypesMutation) SetUint16(u uint16)
- func (m *OASTypesMutation) SetUint32(u uint32)
- func (m *OASTypesMutation) SetUint64(u uint64)
- func (m *OASTypesMutation) SetUint8(u uint8)
- func (m *OASTypesMutation) State() (r oastypes.State, exists bool)
- func (m *OASTypesMutation) StringField() (r string, exists bool)
- func (m *OASTypesMutation) Strings() (r []string, exists bool)
- func (m *OASTypesMutation) Text() (r string, exists bool)
- func (m *OASTypesMutation) Time() (r time.Time, exists bool)
- func (m OASTypesMutation) Tx() (*Tx, error)
- func (m *OASTypesMutation) Type() string
- func (m *OASTypesMutation) UUID() (r uuid.UUID, exists bool)
- func (m *OASTypesMutation) Uint() (r uint, exists bool)
- func (m *OASTypesMutation) Uint16() (r uint16, exists bool)
- func (m *OASTypesMutation) Uint32() (r uint32, exists bool)
- func (m *OASTypesMutation) Uint64() (r uint64, exists bool)
- func (m *OASTypesMutation) Uint8() (r uint8, exists bool)
- func (m *OASTypesMutation) Where(ps ...predicate.OASTypes)
- func (m *OASTypesMutation) WhereP(ps ...func(*sql.Selector))
- type OASTypesQuery
- func (otq *OASTypesQuery) Aggregate(fns ...AggregateFunc) *OASTypesSelect
- func (otq *OASTypesQuery) All(ctx context.Context) ([]*OASTypes, error)
- func (otq *OASTypesQuery) AllX(ctx context.Context) []*OASTypes
- func (otq *OASTypesQuery) Clone() *OASTypesQuery
- func (otq *OASTypesQuery) Count(ctx context.Context) (int, error)
- func (otq *OASTypesQuery) CountX(ctx context.Context) int
- func (otq *OASTypesQuery) Exist(ctx context.Context) (bool, error)
- func (otq *OASTypesQuery) ExistX(ctx context.Context) bool
- func (otq *OASTypesQuery) First(ctx context.Context) (*OASTypes, error)
- func (otq *OASTypesQuery) FirstID(ctx context.Context) (id int, err error)
- func (otq *OASTypesQuery) FirstIDX(ctx context.Context) int
- func (otq *OASTypesQuery) FirstX(ctx context.Context) *OASTypes
- func (otq *OASTypesQuery) GroupBy(field string, fields ...string) *OASTypesGroupBy
- func (otq *OASTypesQuery) IDs(ctx context.Context) (ids []int, err error)
- func (otq *OASTypesQuery) IDsX(ctx context.Context) []int
- func (otq *OASTypesQuery) Limit(limit int) *OASTypesQuery
- func (otq *OASTypesQuery) Offset(offset int) *OASTypesQuery
- func (otq *OASTypesQuery) Only(ctx context.Context) (*OASTypes, error)
- func (otq *OASTypesQuery) OnlyID(ctx context.Context) (id int, err error)
- func (otq *OASTypesQuery) OnlyIDX(ctx context.Context) int
- func (otq *OASTypesQuery) OnlyX(ctx context.Context) *OASTypes
- func (otq *OASTypesQuery) Order(o ...oastypes.OrderOption) *OASTypesQuery
- func (otq *OASTypesQuery) Select(fields ...string) *OASTypesSelect
- func (otq *OASTypesQuery) Unique(unique bool) *OASTypesQuery
- func (otq *OASTypesQuery) Where(ps ...predicate.OASTypes) *OASTypesQuery
- type OASTypesSelect
- func (ots *OASTypesSelect) Aggregate(fns ...AggregateFunc) *OASTypesSelect
- func (s *OASTypesSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OASTypesSelect) BoolX(ctx context.Context) bool
- func (s *OASTypesSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OASTypesSelect) BoolsX(ctx context.Context) []bool
- func (s *OASTypesSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OASTypesSelect) Float64X(ctx context.Context) float64
- func (s *OASTypesSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OASTypesSelect) Float64sX(ctx context.Context) []float64
- func (s *OASTypesSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OASTypesSelect) IntX(ctx context.Context) int
- func (s *OASTypesSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OASTypesSelect) IntsX(ctx context.Context) []int
- func (ots *OASTypesSelect) Scan(ctx context.Context, v any) error
- func (s *OASTypesSelect) ScanX(ctx context.Context, v any)
- func (s *OASTypesSelect) String(ctx context.Context) (_ string, err error)
- func (s *OASTypesSelect) StringX(ctx context.Context) string
- func (s *OASTypesSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OASTypesSelect) StringsX(ctx context.Context) []string
- type OASTypesSlice
- type OASTypesUpdate
- func (otu *OASTypesUpdate) AddFloat32(f float32) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddFloat64(f float64) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddInt(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddInt16(i int16) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddInt32(i int32) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddInt64(i int64) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddInt8(i int8) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddNillable(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddOptional(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddOptionalAndNillable(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddUint(u int) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddUint16(u int16) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddUint32(u int32) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddUint64(u int64) *OASTypesUpdate
- func (otu *OASTypesUpdate) AddUint8(u int8) *OASTypesUpdate
- func (otu *OASTypesUpdate) AppendFloats(f []float64) *OASTypesUpdate
- func (otu *OASTypesUpdate) AppendInts(i []int) *OASTypesUpdate
- func (otu *OASTypesUpdate) AppendJSONSlice(h []http.Dir) *OASTypesUpdate
- func (otu *OASTypesUpdate) AppendNicknames(s []string) *OASTypesUpdate
- func (otu *OASTypesUpdate) AppendStrings(s []string) *OASTypesUpdate
- func (otu *OASTypesUpdate) ClearOptional() *OASTypesUpdate
- func (otu *OASTypesUpdate) ClearOptionalAndNillable() *OASTypesUpdate
- func (otu *OASTypesUpdate) Exec(ctx context.Context) error
- func (otu *OASTypesUpdate) ExecX(ctx context.Context)
- func (otu *OASTypesUpdate) Mutation() *OASTypesMutation
- func (otu *OASTypesUpdate) Save(ctx context.Context) (int, error)
- func (otu *OASTypesUpdate) SaveX(ctx context.Context) int
- func (otu *OASTypesUpdate) SetBool(b bool) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetBytes(b []byte) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetFloat32(f float32) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetFloat64(f float64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetFloats(f []float64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetInt(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetInt16(i int16) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetInt32(i int32) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetInt64(i int64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetInt8(i int8) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetInts(i []int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetJSONObj(u url.URL) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetJSONSlice(h []http.Dir) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNicknames(s []string) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillable(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableBool(b *bool) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableFloat32(f *float32) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableFloat64(f *float64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableInt(i *int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableInt16(i *int16) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableInt32(i *int32) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableInt64(i *int64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableInt8(i *int8) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableJSONObj(u *url.URL) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableNillable(i *int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableOptional(i *int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableOptionalAndNillable(i *int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableState(o *oastypes.State) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableStringField(s *string) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableText(s *string) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableTime(t *time.Time) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableUUID(u *uuid.UUID) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableUint(u *uint) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableUint16(u *uint16) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableUint32(u *uint32) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableUint64(u *uint64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetNillableUint8(u *uint8) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetOptional(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetOptionalAndNillable(i int) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetOther(s *schema.Link) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetState(o oastypes.State) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetStringField(s string) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetStrings(s []string) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetText(s string) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetTime(t time.Time) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetUUID(u uuid.UUID) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetUint(u uint) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetUint16(u uint16) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetUint32(u uint32) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetUint64(u uint64) *OASTypesUpdate
- func (otu *OASTypesUpdate) SetUint8(u uint8) *OASTypesUpdate
- func (otu *OASTypesUpdate) Where(ps ...predicate.OASTypes) *OASTypesUpdate
- type OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddFloat32(f float32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddFloat64(f float64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddInt(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddInt16(i int16) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddInt32(i int32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddInt64(i int64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddInt8(i int8) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddNillable(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddOptional(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddOptionalAndNillable(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddUint(u int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddUint16(u int16) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddUint32(u int32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddUint64(u int64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AddUint8(u int8) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AppendFloats(f []float64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AppendInts(i []int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AppendJSONSlice(h []http.Dir) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AppendNicknames(s []string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) AppendStrings(s []string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) ClearOptional() *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) ClearOptionalAndNillable() *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) Exec(ctx context.Context) error
- func (otuo *OASTypesUpdateOne) ExecX(ctx context.Context)
- func (otuo *OASTypesUpdateOne) Mutation() *OASTypesMutation
- func (otuo *OASTypesUpdateOne) Save(ctx context.Context) (*OASTypes, error)
- func (otuo *OASTypesUpdateOne) SaveX(ctx context.Context) *OASTypes
- func (otuo *OASTypesUpdateOne) Select(field string, fields ...string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetBool(b bool) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetBytes(b []byte) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetFloat32(f float32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetFloat64(f float64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetFloats(f []float64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetInt(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetInt16(i int16) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetInt32(i int32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetInt64(i int64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetInt8(i int8) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetInts(i []int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetJSONObj(u url.URL) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetJSONSlice(h []http.Dir) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNicknames(s []string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillable(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableBool(b *bool) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableFloat32(f *float32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableFloat64(f *float64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableInt(i *int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableInt16(i *int16) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableInt32(i *int32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableInt64(i *int64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableInt8(i *int8) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableJSONObj(u *url.URL) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableNillable(i *int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableOptional(i *int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableOptionalAndNillable(i *int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableState(o *oastypes.State) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableStringField(s *string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableText(s *string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableTime(t *time.Time) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableUUID(u *uuid.UUID) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableUint(u *uint) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableUint16(u *uint16) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableUint32(u *uint32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableUint64(u *uint64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetNillableUint8(u *uint8) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetOptional(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetOptionalAndNillable(i int) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetOther(s *schema.Link) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetState(o oastypes.State) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetStringField(s string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetStrings(s []string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetText(s string) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetTime(t time.Time) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetUUID(u uuid.UUID) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetUint(u uint) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetUint16(u uint16) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetUint32(u uint32) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetUint64(u uint64) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) SetUint8(u uint8) *OASTypesUpdateOne
- func (otuo *OASTypesUpdateOne) Where(ps ...predicate.OASTypes) *OASTypesUpdateOne
- 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 ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeOASTypes = "OASTypes" )
Variables ¶
var ErrTxStarted = errors.New("oastypes: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type 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(oastypes.As(oastypes.Sum(field1), "sum_field1"), (oastypes.As(oastypes.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // OASTypes is the client for interacting with the OASTypes builders. OASTypes *OASTypesClient // 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(). OASTypes. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
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 OASTypes ¶
type OASTypes struct { // ID of the ent. ID int `json:"id,omitempty"` // Int holds the value of the "int" field. Int int `json:"int,omitempty"` // Int8 holds the value of the "int8" field. Int8 int8 `json:"int8,omitempty"` // Int16 holds the value of the "int16" field. Int16 int16 `json:"int16,omitempty"` // Int32 holds the value of the "int32" field. Int32 int32 `json:"int32,omitempty"` // Int64 holds the value of the "int64" field. Int64 int64 `json:"int64,omitempty"` // Uint holds the value of the "uint" field. Uint uint `json:"uint,omitempty"` // Uint8 holds the value of the "uint8" field. Uint8 uint8 `json:"uint8,omitempty"` // Uint16 holds the value of the "uint16" field. Uint16 uint16 `json:"uint16,omitempty"` // Uint32 holds the value of the "uint32" field. Uint32 uint32 `json:"uint32,omitempty"` // Uint64 holds the value of the "uint64" field. Uint64 uint64 `json:"uint64,omitempty"` // Float32 holds the value of the "float32" field. Float32 float32 `json:"float32,omitempty"` // Float64 holds the value of the "float64" field. Float64 float64 `json:"float64,omitempty"` // StringField holds the value of the "string_field" field. StringField string `json:"string_field,omitempty"` // Bool holds the value of the "bool" field. Bool bool `json:"bool,omitempty"` // UUID holds the value of the "uuid" field. UUID uuid.UUID `json:"uuid,omitempty"` // Time holds the value of the "time" field. Time time.Time `json:"time,omitempty"` // Text holds the value of the "text" field. Text string `json:"text,omitempty"` // State holds the value of the "state" field. State oastypes.State `json:"state,omitempty"` // Strings holds the value of the "strings" field. Strings []string `json:"strings,omitempty"` // Ints holds the value of the "ints" field. Ints []int `json:"ints,omitempty"` // Floats holds the value of the "floats" field. Floats []float64 `json:"floats,omitempty"` // Bytes holds the value of the "bytes" field. Bytes []byte `json:"bytes,omitempty"` // Nicknames holds the value of the "nicknames" field. Nicknames []string `json:"nicknames,omitempty"` // JSONSlice holds the value of the "json_slice" field. JSONSlice []http.Dir `json:"json_slice,omitempty"` // JSONObj holds the value of the "json_obj" field. JSONObj url.URL `json:"json_obj,omitempty"` // Other holds the value of the "other" field. Other *schema.Link `json:"other,omitempty"` // Optional holds the value of the "optional" field. Optional int `json:"optional,omitempty"` // Nillable holds the value of the "nillable" field. Nillable *int `json:"nillable,omitempty"` // OptionalAndNillable holds the value of the "optional_and_nillable" field. OptionalAndNillable *int `json:"optional_and_nillable,omitempty"` // contains filtered or unexported fields }
OASTypes is the model entity for the OASTypes schema.
func (*OASTypes) Unwrap ¶
Unwrap unwraps the OASTypes 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 (*OASTypes) Update ¶
func (ot *OASTypes) Update() *OASTypesUpdateOne
Update returns a builder for updating this OASTypes. Note that you need to call OASTypes.Unwrap() before calling this method if this OASTypes was returned from a transaction, and the transaction was committed or rolled back.
type OASTypesClient ¶
type OASTypesClient struct {
// contains filtered or unexported fields
}
OASTypesClient is a client for the OASTypes schema.
func NewOASTypesClient ¶
func NewOASTypesClient(c config) *OASTypesClient
NewOASTypesClient returns a client for the OASTypes from the given config.
func (*OASTypesClient) Create ¶
func (c *OASTypesClient) Create() *OASTypesCreate
Create returns a builder for creating a OASTypes entity.
func (*OASTypesClient) CreateBulk ¶
func (c *OASTypesClient) CreateBulk(builders ...*OASTypesCreate) *OASTypesCreateBulk
CreateBulk returns a builder for creating a bulk of OASTypes entities.
func (*OASTypesClient) Delete ¶
func (c *OASTypesClient) Delete() *OASTypesDelete
Delete returns a delete builder for OASTypes.
func (*OASTypesClient) DeleteOne ¶
func (c *OASTypesClient) DeleteOne(ot *OASTypes) *OASTypesDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OASTypesClient) DeleteOneID ¶
func (c *OASTypesClient) DeleteOneID(id int) *OASTypesDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OASTypesClient) GetX ¶
func (c *OASTypesClient) GetX(ctx context.Context, id int) *OASTypes
GetX is like Get, but panics if an error occurs.
func (*OASTypesClient) Hooks ¶
func (c *OASTypesClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OASTypesClient) Intercept ¶
func (c *OASTypesClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `oastypes.Intercept(f(g(h())))`.
func (*OASTypesClient) Interceptors ¶
func (c *OASTypesClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OASTypesClient) MapCreateBulk ¶
func (c *OASTypesClient) MapCreateBulk(slice any, setFunc func(*OASTypesCreate, int)) *OASTypesCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OASTypesClient) Query ¶
func (c *OASTypesClient) Query() *OASTypesQuery
Query returns a query builder for OASTypes.
func (*OASTypesClient) Update ¶
func (c *OASTypesClient) Update() *OASTypesUpdate
Update returns an update builder for OASTypes.
func (*OASTypesClient) UpdateOne ¶
func (c *OASTypesClient) UpdateOne(ot *OASTypes) *OASTypesUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OASTypesClient) UpdateOneID ¶
func (c *OASTypesClient) UpdateOneID(id int) *OASTypesUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OASTypesClient) Use ¶
func (c *OASTypesClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `oastypes.Hooks(f(g(h())))`.
type OASTypesCreate ¶
type OASTypesCreate struct {
// contains filtered or unexported fields
}
OASTypesCreate is the builder for creating a OASTypes entity.
func (*OASTypesCreate) Exec ¶
func (otc *OASTypesCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OASTypesCreate) ExecX ¶
func (otc *OASTypesCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OASTypesCreate) Mutation ¶
func (otc *OASTypesCreate) Mutation() *OASTypesMutation
Mutation returns the OASTypesMutation object of the builder.
func (*OASTypesCreate) Save ¶
func (otc *OASTypesCreate) Save(ctx context.Context) (*OASTypes, error)
Save creates the OASTypes in the database.
func (*OASTypesCreate) SaveX ¶
func (otc *OASTypesCreate) SaveX(ctx context.Context) *OASTypes
SaveX calls Save and panics if Save returns an error.
func (*OASTypesCreate) SetBool ¶
func (otc *OASTypesCreate) SetBool(b bool) *OASTypesCreate
SetBool sets the "bool" field.
func (*OASTypesCreate) SetBytes ¶
func (otc *OASTypesCreate) SetBytes(b []byte) *OASTypesCreate
SetBytes sets the "bytes" field.
func (*OASTypesCreate) SetFloat32 ¶
func (otc *OASTypesCreate) SetFloat32(f float32) *OASTypesCreate
SetFloat32 sets the "float32" field.
func (*OASTypesCreate) SetFloat64 ¶
func (otc *OASTypesCreate) SetFloat64(f float64) *OASTypesCreate
SetFloat64 sets the "float64" field.
func (*OASTypesCreate) SetFloats ¶
func (otc *OASTypesCreate) SetFloats(f []float64) *OASTypesCreate
SetFloats sets the "floats" field.
func (*OASTypesCreate) SetInt ¶
func (otc *OASTypesCreate) SetInt(i int) *OASTypesCreate
SetInt sets the "int" field.
func (*OASTypesCreate) SetInt16 ¶
func (otc *OASTypesCreate) SetInt16(i int16) *OASTypesCreate
SetInt16 sets the "int16" field.
func (*OASTypesCreate) SetInt32 ¶
func (otc *OASTypesCreate) SetInt32(i int32) *OASTypesCreate
SetInt32 sets the "int32" field.
func (*OASTypesCreate) SetInt64 ¶
func (otc *OASTypesCreate) SetInt64(i int64) *OASTypesCreate
SetInt64 sets the "int64" field.
func (*OASTypesCreate) SetInt8 ¶
func (otc *OASTypesCreate) SetInt8(i int8) *OASTypesCreate
SetInt8 sets the "int8" field.
func (*OASTypesCreate) SetInts ¶
func (otc *OASTypesCreate) SetInts(i []int) *OASTypesCreate
SetInts sets the "ints" field.
func (*OASTypesCreate) SetJSONObj ¶
func (otc *OASTypesCreate) SetJSONObj(u url.URL) *OASTypesCreate
SetJSONObj sets the "json_obj" field.
func (*OASTypesCreate) SetJSONSlice ¶
func (otc *OASTypesCreate) SetJSONSlice(h []http.Dir) *OASTypesCreate
SetJSONSlice sets the "json_slice" field.
func (*OASTypesCreate) SetNicknames ¶
func (otc *OASTypesCreate) SetNicknames(s []string) *OASTypesCreate
SetNicknames sets the "nicknames" field.
func (*OASTypesCreate) SetNillable ¶
func (otc *OASTypesCreate) SetNillable(i int) *OASTypesCreate
SetNillable sets the "nillable" field.
func (*OASTypesCreate) SetNillableOptional ¶
func (otc *OASTypesCreate) SetNillableOptional(i *int) *OASTypesCreate
SetNillableOptional sets the "optional" field if the given value is not nil.
func (*OASTypesCreate) SetNillableOptionalAndNillable ¶
func (otc *OASTypesCreate) SetNillableOptionalAndNillable(i *int) *OASTypesCreate
SetNillableOptionalAndNillable sets the "optional_and_nillable" field if the given value is not nil.
func (*OASTypesCreate) SetNillableUUID ¶
func (otc *OASTypesCreate) SetNillableUUID(u *uuid.UUID) *OASTypesCreate
SetNillableUUID sets the "uuid" field if the given value is not nil.
func (*OASTypesCreate) SetOptional ¶
func (otc *OASTypesCreate) SetOptional(i int) *OASTypesCreate
SetOptional sets the "optional" field.
func (*OASTypesCreate) SetOptionalAndNillable ¶
func (otc *OASTypesCreate) SetOptionalAndNillable(i int) *OASTypesCreate
SetOptionalAndNillable sets the "optional_and_nillable" field.
func (*OASTypesCreate) SetOther ¶
func (otc *OASTypesCreate) SetOther(s *schema.Link) *OASTypesCreate
SetOther sets the "other" field.
func (*OASTypesCreate) SetState ¶
func (otc *OASTypesCreate) SetState(o oastypes.State) *OASTypesCreate
SetState sets the "state" field.
func (*OASTypesCreate) SetStringField ¶
func (otc *OASTypesCreate) SetStringField(s string) *OASTypesCreate
SetStringField sets the "string_field" field.
func (*OASTypesCreate) SetStrings ¶
func (otc *OASTypesCreate) SetStrings(s []string) *OASTypesCreate
SetStrings sets the "strings" field.
func (*OASTypesCreate) SetText ¶
func (otc *OASTypesCreate) SetText(s string) *OASTypesCreate
SetText sets the "text" field.
func (*OASTypesCreate) SetTime ¶
func (otc *OASTypesCreate) SetTime(t time.Time) *OASTypesCreate
SetTime sets the "time" field.
func (*OASTypesCreate) SetUUID ¶
func (otc *OASTypesCreate) SetUUID(u uuid.UUID) *OASTypesCreate
SetUUID sets the "uuid" field.
func (*OASTypesCreate) SetUint ¶
func (otc *OASTypesCreate) SetUint(u uint) *OASTypesCreate
SetUint sets the "uint" field.
func (*OASTypesCreate) SetUint16 ¶
func (otc *OASTypesCreate) SetUint16(u uint16) *OASTypesCreate
SetUint16 sets the "uint16" field.
func (*OASTypesCreate) SetUint32 ¶
func (otc *OASTypesCreate) SetUint32(u uint32) *OASTypesCreate
SetUint32 sets the "uint32" field.
func (*OASTypesCreate) SetUint64 ¶
func (otc *OASTypesCreate) SetUint64(u uint64) *OASTypesCreate
SetUint64 sets the "uint64" field.
func (*OASTypesCreate) SetUint8 ¶
func (otc *OASTypesCreate) SetUint8(u uint8) *OASTypesCreate
SetUint8 sets the "uint8" field.
type OASTypesCreateBulk ¶
type OASTypesCreateBulk struct {
// contains filtered or unexported fields
}
OASTypesCreateBulk is the builder for creating many OASTypes entities in bulk.
func (*OASTypesCreateBulk) Exec ¶
func (otcb *OASTypesCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OASTypesCreateBulk) ExecX ¶
func (otcb *OASTypesCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type OASTypesDelete ¶
type OASTypesDelete struct {
// contains filtered or unexported fields
}
OASTypesDelete is the builder for deleting a OASTypes entity.
func (*OASTypesDelete) Exec ¶
func (otd *OASTypesDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OASTypesDelete) ExecX ¶
func (otd *OASTypesDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OASTypesDelete) Where ¶
func (otd *OASTypesDelete) Where(ps ...predicate.OASTypes) *OASTypesDelete
Where appends a list predicates to the OASTypesDelete builder.
type OASTypesDeleteOne ¶
type OASTypesDeleteOne struct {
// contains filtered or unexported fields
}
OASTypesDeleteOne is the builder for deleting a single OASTypes entity.
func (*OASTypesDeleteOne) Exec ¶
func (otdo *OASTypesDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OASTypesDeleteOne) ExecX ¶
func (otdo *OASTypesDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OASTypesDeleteOne) Where ¶
func (otdo *OASTypesDeleteOne) Where(ps ...predicate.OASTypes) *OASTypesDeleteOne
Where appends a list predicates to the OASTypesDelete builder.
type OASTypesGroupBy ¶
type OASTypesGroupBy struct {
// contains filtered or unexported fields
}
OASTypesGroupBy is the group-by builder for OASTypes entities.
func (*OASTypesGroupBy) Aggregate ¶
func (otgb *OASTypesGroupBy) Aggregate(fns ...AggregateFunc) *OASTypesGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OASTypesGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OASTypesGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OASTypesGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OASTypesGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OASTypesGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OASTypesGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OASTypesGroupBy) Scan ¶
func (otgb *OASTypesGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OASTypesGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OASTypesMutation ¶
type OASTypesMutation struct {
// contains filtered or unexported fields
}
OASTypesMutation represents an operation that mutates the OASTypes nodes in the graph.
func (*OASTypesMutation) AddField ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) AddFloat32 ¶
func (m *OASTypesMutation) AddFloat32(f float32)
AddFloat32 adds f to the "float32" field.
func (*OASTypesMutation) AddFloat64 ¶
func (m *OASTypesMutation) AddFloat64(f float64)
AddFloat64 adds f to the "float64" field.
func (*OASTypesMutation) AddInt ¶
func (m *OASTypesMutation) AddInt(i int)
AddInt adds i to the "int" field.
func (*OASTypesMutation) AddInt16 ¶
func (m *OASTypesMutation) AddInt16(i int16)
AddInt16 adds i to the "int16" field.
func (*OASTypesMutation) AddInt32 ¶
func (m *OASTypesMutation) AddInt32(i int32)
AddInt32 adds i to the "int32" field.
func (*OASTypesMutation) AddInt64 ¶
func (m *OASTypesMutation) AddInt64(i int64)
AddInt64 adds i to the "int64" field.
func (*OASTypesMutation) AddInt8 ¶
func (m *OASTypesMutation) AddInt8(i int8)
AddInt8 adds i to the "int8" field.
func (*OASTypesMutation) AddNillable ¶
func (m *OASTypesMutation) AddNillable(i int)
AddNillable adds i to the "nillable" field.
func (*OASTypesMutation) AddOptional ¶
func (m *OASTypesMutation) AddOptional(i int)
AddOptional adds i to the "optional" field.
func (*OASTypesMutation) AddOptionalAndNillable ¶
func (m *OASTypesMutation) AddOptionalAndNillable(i int)
AddOptionalAndNillable adds i to the "optional_and_nillable" field.
func (*OASTypesMutation) AddUint ¶
func (m *OASTypesMutation) AddUint(u int)
AddUint adds u to the "uint" field.
func (*OASTypesMutation) AddUint16 ¶
func (m *OASTypesMutation) AddUint16(u int16)
AddUint16 adds u to the "uint16" field.
func (*OASTypesMutation) AddUint32 ¶
func (m *OASTypesMutation) AddUint32(u int32)
AddUint32 adds u to the "uint32" field.
func (*OASTypesMutation) AddUint64 ¶
func (m *OASTypesMutation) AddUint64(u int64)
AddUint64 adds u to the "uint64" field.
func (*OASTypesMutation) AddUint8 ¶
func (m *OASTypesMutation) AddUint8(u int8)
AddUint8 adds u to the "uint8" field.
func (*OASTypesMutation) AddedEdges ¶
func (m *OASTypesMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OASTypesMutation) AddedField ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) AddedFields ¶
func (m *OASTypesMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OASTypesMutation) AddedFloat32 ¶
func (m *OASTypesMutation) AddedFloat32() (r float32, exists bool)
AddedFloat32 returns the value that was added to the "float32" field in this mutation.
func (*OASTypesMutation) AddedFloat64 ¶
func (m *OASTypesMutation) AddedFloat64() (r float64, exists bool)
AddedFloat64 returns the value that was added to the "float64" field in this mutation.
func (*OASTypesMutation) AddedIDs ¶
func (m *OASTypesMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OASTypesMutation) AddedInt ¶
func (m *OASTypesMutation) AddedInt() (r int, exists bool)
AddedInt returns the value that was added to the "int" field in this mutation.
func (*OASTypesMutation) AddedInt16 ¶
func (m *OASTypesMutation) AddedInt16() (r int16, exists bool)
AddedInt16 returns the value that was added to the "int16" field in this mutation.
func (*OASTypesMutation) AddedInt32 ¶
func (m *OASTypesMutation) AddedInt32() (r int32, exists bool)
AddedInt32 returns the value that was added to the "int32" field in this mutation.
func (*OASTypesMutation) AddedInt64 ¶
func (m *OASTypesMutation) AddedInt64() (r int64, exists bool)
AddedInt64 returns the value that was added to the "int64" field in this mutation.
func (*OASTypesMutation) AddedInt8 ¶
func (m *OASTypesMutation) AddedInt8() (r int8, exists bool)
AddedInt8 returns the value that was added to the "int8" field in this mutation.
func (*OASTypesMutation) AddedNillable ¶
func (m *OASTypesMutation) AddedNillable() (r int, exists bool)
AddedNillable returns the value that was added to the "nillable" field in this mutation.
func (*OASTypesMutation) AddedOptional ¶
func (m *OASTypesMutation) AddedOptional() (r int, exists bool)
AddedOptional returns the value that was added to the "optional" field in this mutation.
func (*OASTypesMutation) AddedOptionalAndNillable ¶
func (m *OASTypesMutation) AddedOptionalAndNillable() (r int, exists bool)
AddedOptionalAndNillable returns the value that was added to the "optional_and_nillable" field in this mutation.
func (*OASTypesMutation) AddedUint ¶
func (m *OASTypesMutation) AddedUint() (r int, exists bool)
AddedUint returns the value that was added to the "uint" field in this mutation.
func (*OASTypesMutation) AddedUint16 ¶
func (m *OASTypesMutation) AddedUint16() (r int16, exists bool)
AddedUint16 returns the value that was added to the "uint16" field in this mutation.
func (*OASTypesMutation) AddedUint32 ¶
func (m *OASTypesMutation) AddedUint32() (r int32, exists bool)
AddedUint32 returns the value that was added to the "uint32" field in this mutation.
func (*OASTypesMutation) AddedUint64 ¶
func (m *OASTypesMutation) AddedUint64() (r int64, exists bool)
AddedUint64 returns the value that was added to the "uint64" field in this mutation.
func (*OASTypesMutation) AddedUint8 ¶
func (m *OASTypesMutation) AddedUint8() (r int8, exists bool)
AddedUint8 returns the value that was added to the "uint8" field in this mutation.
func (*OASTypesMutation) AppendFloats ¶
func (m *OASTypesMutation) AppendFloats(f []float64)
AppendFloats adds f to the "floats" field.
func (*OASTypesMutation) AppendInts ¶
func (m *OASTypesMutation) AppendInts(i []int)
AppendInts adds i to the "ints" field.
func (*OASTypesMutation) AppendJSONSlice ¶
func (m *OASTypesMutation) AppendJSONSlice(h []http.Dir)
AppendJSONSlice adds h to the "json_slice" field.
func (*OASTypesMutation) AppendNicknames ¶
func (m *OASTypesMutation) AppendNicknames(s []string)
AppendNicknames adds s to the "nicknames" field.
func (*OASTypesMutation) AppendStrings ¶
func (m *OASTypesMutation) AppendStrings(s []string)
AppendStrings adds s to the "strings" field.
func (*OASTypesMutation) AppendedFloats ¶
func (m *OASTypesMutation) AppendedFloats() ([]float64, bool)
AppendedFloats returns the list of values that were appended to the "floats" field in this mutation.
func (*OASTypesMutation) AppendedInts ¶
func (m *OASTypesMutation) AppendedInts() ([]int, bool)
AppendedInts returns the list of values that were appended to the "ints" field in this mutation.
func (*OASTypesMutation) AppendedJSONSlice ¶
func (m *OASTypesMutation) AppendedJSONSlice() ([]http.Dir, bool)
AppendedJSONSlice returns the list of values that were appended to the "json_slice" field in this mutation.
func (*OASTypesMutation) AppendedNicknames ¶
func (m *OASTypesMutation) AppendedNicknames() ([]string, bool)
AppendedNicknames returns the list of values that were appended to the "nicknames" field in this mutation.
func (*OASTypesMutation) AppendedStrings ¶
func (m *OASTypesMutation) AppendedStrings() ([]string, bool)
AppendedStrings returns the list of values that were appended to the "strings" field in this mutation.
func (*OASTypesMutation) Bool ¶
func (m *OASTypesMutation) Bool() (r bool, exists bool)
Bool returns the value of the "bool" field in the mutation.
func (*OASTypesMutation) Bytes ¶
func (m *OASTypesMutation) Bytes() (r []byte, exists bool)
Bytes returns the value of the "bytes" field in the mutation.
func (*OASTypesMutation) ClearEdge ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) ClearField ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) ClearOptional ¶
func (m *OASTypesMutation) ClearOptional()
ClearOptional clears the value of the "optional" field.
func (*OASTypesMutation) ClearOptionalAndNillable ¶
func (m *OASTypesMutation) ClearOptionalAndNillable()
ClearOptionalAndNillable clears the value of the "optional_and_nillable" field.
func (*OASTypesMutation) ClearedEdges ¶
func (m *OASTypesMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OASTypesMutation) ClearedFields ¶
func (m *OASTypesMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OASTypesMutation) Client ¶
func (m OASTypesMutation) 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 (*OASTypesMutation) EdgeCleared ¶
func (m *OASTypesMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OASTypesMutation) Field ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) FieldCleared ¶
func (m *OASTypesMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OASTypesMutation) Fields ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) Float32 ¶
func (m *OASTypesMutation) Float32() (r float32, exists bool)
Float32 returns the value of the "float32" field in the mutation.
func (*OASTypesMutation) Float64 ¶
func (m *OASTypesMutation) Float64() (r float64, exists bool)
Float64 returns the value of the "float64" field in the mutation.
func (*OASTypesMutation) Floats ¶
func (m *OASTypesMutation) Floats() (r []float64, exists bool)
Floats returns the value of the "floats" field in the mutation.
func (*OASTypesMutation) ID ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) IDs ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) Int ¶
func (m *OASTypesMutation) Int() (r int, exists bool)
Int returns the value of the "int" field in the mutation.
func (*OASTypesMutation) Int16 ¶
func (m *OASTypesMutation) Int16() (r int16, exists bool)
Int16 returns the value of the "int16" field in the mutation.
func (*OASTypesMutation) Int32 ¶
func (m *OASTypesMutation) Int32() (r int32, exists bool)
Int32 returns the value of the "int32" field in the mutation.
func (*OASTypesMutation) Int64 ¶
func (m *OASTypesMutation) Int64() (r int64, exists bool)
Int64 returns the value of the "int64" field in the mutation.
func (*OASTypesMutation) Int8 ¶
func (m *OASTypesMutation) Int8() (r int8, exists bool)
Int8 returns the value of the "int8" field in the mutation.
func (*OASTypesMutation) Ints ¶
func (m *OASTypesMutation) Ints() (r []int, exists bool)
Ints returns the value of the "ints" field in the mutation.
func (*OASTypesMutation) JSONObj ¶
func (m *OASTypesMutation) JSONObj() (r url.URL, exists bool)
JSONObj returns the value of the "json_obj" field in the mutation.
func (*OASTypesMutation) JSONSlice ¶
func (m *OASTypesMutation) JSONSlice() (r []http.Dir, exists bool)
JSONSlice returns the value of the "json_slice" field in the mutation.
func (*OASTypesMutation) Nicknames ¶
func (m *OASTypesMutation) Nicknames() (r []string, exists bool)
Nicknames returns the value of the "nicknames" field in the mutation.
func (*OASTypesMutation) Nillable ¶
func (m *OASTypesMutation) Nillable() (r int, exists bool)
Nillable returns the value of the "nillable" field in the mutation.
func (*OASTypesMutation) OldBool ¶
func (m *OASTypesMutation) OldBool(ctx context.Context) (v bool, err error)
OldBool returns the old "bool" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldBytes ¶
func (m *OASTypesMutation) OldBytes(ctx context.Context) (v []byte, err error)
OldBytes returns the old "bytes" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) 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 (*OASTypesMutation) OldFloat32 ¶
func (m *OASTypesMutation) OldFloat32(ctx context.Context) (v float32, err error)
OldFloat32 returns the old "float32" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldFloat64 ¶
func (m *OASTypesMutation) OldFloat64(ctx context.Context) (v float64, err error)
OldFloat64 returns the old "float64" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldFloats ¶
func (m *OASTypesMutation) OldFloats(ctx context.Context) (v []float64, err error)
OldFloats returns the old "floats" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldInt ¶
func (m *OASTypesMutation) OldInt(ctx context.Context) (v int, err error)
OldInt returns the old "int" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldInt16 ¶
func (m *OASTypesMutation) OldInt16(ctx context.Context) (v int16, err error)
OldInt16 returns the old "int16" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldInt32 ¶
func (m *OASTypesMutation) OldInt32(ctx context.Context) (v int32, err error)
OldInt32 returns the old "int32" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldInt64 ¶
func (m *OASTypesMutation) OldInt64(ctx context.Context) (v int64, err error)
OldInt64 returns the old "int64" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldInt8 ¶
func (m *OASTypesMutation) OldInt8(ctx context.Context) (v int8, err error)
OldInt8 returns the old "int8" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldInts ¶
func (m *OASTypesMutation) OldInts(ctx context.Context) (v []int, err error)
OldInts returns the old "ints" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldJSONObj ¶
OldJSONObj returns the old "json_obj" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldJSONSlice ¶
OldJSONSlice returns the old "json_slice" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldNicknames ¶
func (m *OASTypesMutation) OldNicknames(ctx context.Context) (v []string, err error)
OldNicknames returns the old "nicknames" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldNillable ¶
func (m *OASTypesMutation) OldNillable(ctx context.Context) (v *int, err error)
OldNillable returns the old "nillable" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldOptional ¶
func (m *OASTypesMutation) OldOptional(ctx context.Context) (v int, err error)
OldOptional returns the old "optional" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldOptionalAndNillable ¶
func (m *OASTypesMutation) OldOptionalAndNillable(ctx context.Context) (v *int, err error)
OldOptionalAndNillable returns the old "optional_and_nillable" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldOther ¶
OldOther returns the old "other" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldState ¶
OldState returns the old "state" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldStringField ¶
func (m *OASTypesMutation) OldStringField(ctx context.Context) (v string, err error)
OldStringField returns the old "string_field" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldStrings ¶
func (m *OASTypesMutation) OldStrings(ctx context.Context) (v []string, err error)
OldStrings returns the old "strings" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldText ¶
func (m *OASTypesMutation) OldText(ctx context.Context) (v string, err error)
OldText returns the old "text" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldTime ¶
OldTime returns the old "time" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldUUID ¶
OldUUID returns the old "uuid" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldUint ¶
func (m *OASTypesMutation) OldUint(ctx context.Context) (v uint, err error)
OldUint returns the old "uint" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldUint16 ¶
func (m *OASTypesMutation) OldUint16(ctx context.Context) (v uint16, err error)
OldUint16 returns the old "uint16" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldUint32 ¶
func (m *OASTypesMutation) OldUint32(ctx context.Context) (v uint32, err error)
OldUint32 returns the old "uint32" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldUint64 ¶
func (m *OASTypesMutation) OldUint64(ctx context.Context) (v uint64, err error)
OldUint64 returns the old "uint64" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) OldUint8 ¶
func (m *OASTypesMutation) OldUint8(ctx context.Context) (v uint8, err error)
OldUint8 returns the old "uint8" field's value of the OASTypes entity. If the OASTypes object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OASTypesMutation) Optional ¶
func (m *OASTypesMutation) Optional() (r int, exists bool)
Optional returns the value of the "optional" field in the mutation.
func (*OASTypesMutation) OptionalAndNillable ¶
func (m *OASTypesMutation) OptionalAndNillable() (r int, exists bool)
OptionalAndNillable returns the value of the "optional_and_nillable" field in the mutation.
func (*OASTypesMutation) OptionalAndNillableCleared ¶
func (m *OASTypesMutation) OptionalAndNillableCleared() bool
OptionalAndNillableCleared returns if the "optional_and_nillable" field was cleared in this mutation.
func (*OASTypesMutation) OptionalCleared ¶
func (m *OASTypesMutation) OptionalCleared() bool
OptionalCleared returns if the "optional" field was cleared in this mutation.
func (*OASTypesMutation) Other ¶
func (m *OASTypesMutation) Other() (r *schema.Link, exists bool)
Other returns the value of the "other" field in the mutation.
func (*OASTypesMutation) RemovedEdges ¶
func (m *OASTypesMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OASTypesMutation) RemovedIDs ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) ResetBool ¶
func (m *OASTypesMutation) ResetBool()
ResetBool resets all changes to the "bool" field.
func (*OASTypesMutation) ResetBytes ¶
func (m *OASTypesMutation) ResetBytes()
ResetBytes resets all changes to the "bytes" field.
func (*OASTypesMutation) ResetEdge ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) ResetField ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) ResetFloat32 ¶
func (m *OASTypesMutation) ResetFloat32()
ResetFloat32 resets all changes to the "float32" field.
func (*OASTypesMutation) ResetFloat64 ¶
func (m *OASTypesMutation) ResetFloat64()
ResetFloat64 resets all changes to the "float64" field.
func (*OASTypesMutation) ResetFloats ¶
func (m *OASTypesMutation) ResetFloats()
ResetFloats resets all changes to the "floats" field.
func (*OASTypesMutation) ResetInt ¶
func (m *OASTypesMutation) ResetInt()
ResetInt resets all changes to the "int" field.
func (*OASTypesMutation) ResetInt16 ¶
func (m *OASTypesMutation) ResetInt16()
ResetInt16 resets all changes to the "int16" field.
func (*OASTypesMutation) ResetInt32 ¶
func (m *OASTypesMutation) ResetInt32()
ResetInt32 resets all changes to the "int32" field.
func (*OASTypesMutation) ResetInt64 ¶
func (m *OASTypesMutation) ResetInt64()
ResetInt64 resets all changes to the "int64" field.
func (*OASTypesMutation) ResetInt8 ¶
func (m *OASTypesMutation) ResetInt8()
ResetInt8 resets all changes to the "int8" field.
func (*OASTypesMutation) ResetInts ¶
func (m *OASTypesMutation) ResetInts()
ResetInts resets all changes to the "ints" field.
func (*OASTypesMutation) ResetJSONObj ¶
func (m *OASTypesMutation) ResetJSONObj()
ResetJSONObj resets all changes to the "json_obj" field.
func (*OASTypesMutation) ResetJSONSlice ¶
func (m *OASTypesMutation) ResetJSONSlice()
ResetJSONSlice resets all changes to the "json_slice" field.
func (*OASTypesMutation) ResetNicknames ¶
func (m *OASTypesMutation) ResetNicknames()
ResetNicknames resets all changes to the "nicknames" field.
func (*OASTypesMutation) ResetNillable ¶
func (m *OASTypesMutation) ResetNillable()
ResetNillable resets all changes to the "nillable" field.
func (*OASTypesMutation) ResetOptional ¶
func (m *OASTypesMutation) ResetOptional()
ResetOptional resets all changes to the "optional" field.
func (*OASTypesMutation) ResetOptionalAndNillable ¶
func (m *OASTypesMutation) ResetOptionalAndNillable()
ResetOptionalAndNillable resets all changes to the "optional_and_nillable" field.
func (*OASTypesMutation) ResetOther ¶
func (m *OASTypesMutation) ResetOther()
ResetOther resets all changes to the "other" field.
func (*OASTypesMutation) ResetState ¶
func (m *OASTypesMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*OASTypesMutation) ResetStringField ¶
func (m *OASTypesMutation) ResetStringField()
ResetStringField resets all changes to the "string_field" field.
func (*OASTypesMutation) ResetStrings ¶
func (m *OASTypesMutation) ResetStrings()
ResetStrings resets all changes to the "strings" field.
func (*OASTypesMutation) ResetText ¶
func (m *OASTypesMutation) ResetText()
ResetText resets all changes to the "text" field.
func (*OASTypesMutation) ResetTime ¶
func (m *OASTypesMutation) ResetTime()
ResetTime resets all changes to the "time" field.
func (*OASTypesMutation) ResetUUID ¶
func (m *OASTypesMutation) ResetUUID()
ResetUUID resets all changes to the "uuid" field.
func (*OASTypesMutation) ResetUint ¶
func (m *OASTypesMutation) ResetUint()
ResetUint resets all changes to the "uint" field.
func (*OASTypesMutation) ResetUint16 ¶
func (m *OASTypesMutation) ResetUint16()
ResetUint16 resets all changes to the "uint16" field.
func (*OASTypesMutation) ResetUint32 ¶
func (m *OASTypesMutation) ResetUint32()
ResetUint32 resets all changes to the "uint32" field.
func (*OASTypesMutation) ResetUint64 ¶
func (m *OASTypesMutation) ResetUint64()
ResetUint64 resets all changes to the "uint64" field.
func (*OASTypesMutation) ResetUint8 ¶
func (m *OASTypesMutation) ResetUint8()
ResetUint8 resets all changes to the "uint8" field.
func (*OASTypesMutation) SetBool ¶
func (m *OASTypesMutation) SetBool(b bool)
SetBool sets the "bool" field.
func (*OASTypesMutation) SetBytes ¶
func (m *OASTypesMutation) SetBytes(b []byte)
SetBytes sets the "bytes" field.
func (*OASTypesMutation) SetField ¶
func (m *OASTypesMutation) 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 (*OASTypesMutation) SetFloat32 ¶
func (m *OASTypesMutation) SetFloat32(f float32)
SetFloat32 sets the "float32" field.
func (*OASTypesMutation) SetFloat64 ¶
func (m *OASTypesMutation) SetFloat64(f float64)
SetFloat64 sets the "float64" field.
func (*OASTypesMutation) SetFloats ¶
func (m *OASTypesMutation) SetFloats(f []float64)
SetFloats sets the "floats" field.
func (*OASTypesMutation) SetInt ¶
func (m *OASTypesMutation) SetInt(i int)
SetInt sets the "int" field.
func (*OASTypesMutation) SetInt16 ¶
func (m *OASTypesMutation) SetInt16(i int16)
SetInt16 sets the "int16" field.
func (*OASTypesMutation) SetInt32 ¶
func (m *OASTypesMutation) SetInt32(i int32)
SetInt32 sets the "int32" field.
func (*OASTypesMutation) SetInt64 ¶
func (m *OASTypesMutation) SetInt64(i int64)
SetInt64 sets the "int64" field.
func (*OASTypesMutation) SetInt8 ¶
func (m *OASTypesMutation) SetInt8(i int8)
SetInt8 sets the "int8" field.
func (*OASTypesMutation) SetInts ¶
func (m *OASTypesMutation) SetInts(i []int)
SetInts sets the "ints" field.
func (*OASTypesMutation) SetJSONObj ¶
func (m *OASTypesMutation) SetJSONObj(u url.URL)
SetJSONObj sets the "json_obj" field.
func (*OASTypesMutation) SetJSONSlice ¶
func (m *OASTypesMutation) SetJSONSlice(h []http.Dir)
SetJSONSlice sets the "json_slice" field.
func (*OASTypesMutation) SetNicknames ¶
func (m *OASTypesMutation) SetNicknames(s []string)
SetNicknames sets the "nicknames" field.
func (*OASTypesMutation) SetNillable ¶
func (m *OASTypesMutation) SetNillable(i int)
SetNillable sets the "nillable" field.
func (*OASTypesMutation) SetOp ¶
func (m *OASTypesMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OASTypesMutation) SetOptional ¶
func (m *OASTypesMutation) SetOptional(i int)
SetOptional sets the "optional" field.
func (*OASTypesMutation) SetOptionalAndNillable ¶
func (m *OASTypesMutation) SetOptionalAndNillable(i int)
SetOptionalAndNillable sets the "optional_and_nillable" field.
func (*OASTypesMutation) SetOther ¶
func (m *OASTypesMutation) SetOther(s *schema.Link)
SetOther sets the "other" field.
func (*OASTypesMutation) SetState ¶
func (m *OASTypesMutation) SetState(o oastypes.State)
SetState sets the "state" field.
func (*OASTypesMutation) SetStringField ¶
func (m *OASTypesMutation) SetStringField(s string)
SetStringField sets the "string_field" field.
func (*OASTypesMutation) SetStrings ¶
func (m *OASTypesMutation) SetStrings(s []string)
SetStrings sets the "strings" field.
func (*OASTypesMutation) SetText ¶
func (m *OASTypesMutation) SetText(s string)
SetText sets the "text" field.
func (*OASTypesMutation) SetTime ¶
func (m *OASTypesMutation) SetTime(t time.Time)
SetTime sets the "time" field.
func (*OASTypesMutation) SetUUID ¶
func (m *OASTypesMutation) SetUUID(u uuid.UUID)
SetUUID sets the "uuid" field.
func (*OASTypesMutation) SetUint ¶
func (m *OASTypesMutation) SetUint(u uint)
SetUint sets the "uint" field.
func (*OASTypesMutation) SetUint16 ¶
func (m *OASTypesMutation) SetUint16(u uint16)
SetUint16 sets the "uint16" field.
func (*OASTypesMutation) SetUint32 ¶
func (m *OASTypesMutation) SetUint32(u uint32)
SetUint32 sets the "uint32" field.
func (*OASTypesMutation) SetUint64 ¶
func (m *OASTypesMutation) SetUint64(u uint64)
SetUint64 sets the "uint64" field.
func (*OASTypesMutation) SetUint8 ¶
func (m *OASTypesMutation) SetUint8(u uint8)
SetUint8 sets the "uint8" field.
func (*OASTypesMutation) State ¶
func (m *OASTypesMutation) State() (r oastypes.State, exists bool)
State returns the value of the "state" field in the mutation.
func (*OASTypesMutation) StringField ¶
func (m *OASTypesMutation) StringField() (r string, exists bool)
StringField returns the value of the "string_field" field in the mutation.
func (*OASTypesMutation) Strings ¶
func (m *OASTypesMutation) Strings() (r []string, exists bool)
Strings returns the value of the "strings" field in the mutation.
func (*OASTypesMutation) Text ¶
func (m *OASTypesMutation) Text() (r string, exists bool)
Text returns the value of the "text" field in the mutation.
func (*OASTypesMutation) Time ¶
func (m *OASTypesMutation) Time() (r time.Time, exists bool)
Time returns the value of the "time" field in the mutation.
func (OASTypesMutation) Tx ¶
func (m OASTypesMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OASTypesMutation) Type ¶
func (m *OASTypesMutation) Type() string
Type returns the node type of this mutation (OASTypes).
func (*OASTypesMutation) UUID ¶
func (m *OASTypesMutation) UUID() (r uuid.UUID, exists bool)
UUID returns the value of the "uuid" field in the mutation.
func (*OASTypesMutation) Uint ¶
func (m *OASTypesMutation) Uint() (r uint, exists bool)
Uint returns the value of the "uint" field in the mutation.
func (*OASTypesMutation) Uint16 ¶
func (m *OASTypesMutation) Uint16() (r uint16, exists bool)
Uint16 returns the value of the "uint16" field in the mutation.
func (*OASTypesMutation) Uint32 ¶
func (m *OASTypesMutation) Uint32() (r uint32, exists bool)
Uint32 returns the value of the "uint32" field in the mutation.
func (*OASTypesMutation) Uint64 ¶
func (m *OASTypesMutation) Uint64() (r uint64, exists bool)
Uint64 returns the value of the "uint64" field in the mutation.
func (*OASTypesMutation) Uint8 ¶
func (m *OASTypesMutation) Uint8() (r uint8, exists bool)
Uint8 returns the value of the "uint8" field in the mutation.
func (*OASTypesMutation) Where ¶
func (m *OASTypesMutation) Where(ps ...predicate.OASTypes)
Where appends a list predicates to the OASTypesMutation builder.
func (*OASTypesMutation) WhereP ¶
func (m *OASTypesMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OASTypesMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OASTypesQuery ¶
type OASTypesQuery struct {
// contains filtered or unexported fields
}
OASTypesQuery is the builder for querying OASTypes entities.
func (*OASTypesQuery) Aggregate ¶
func (otq *OASTypesQuery) Aggregate(fns ...AggregateFunc) *OASTypesSelect
Aggregate returns a OASTypesSelect configured with the given aggregations.
func (*OASTypesQuery) All ¶
func (otq *OASTypesQuery) All(ctx context.Context) ([]*OASTypes, error)
All executes the query and returns a list of OASTypesSlice.
func (*OASTypesQuery) AllX ¶
func (otq *OASTypesQuery) AllX(ctx context.Context) []*OASTypes
AllX is like All, but panics if an error occurs.
func (*OASTypesQuery) Clone ¶
func (otq *OASTypesQuery) Clone() *OASTypesQuery
Clone returns a duplicate of the OASTypesQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OASTypesQuery) Count ¶
func (otq *OASTypesQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OASTypesQuery) CountX ¶
func (otq *OASTypesQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OASTypesQuery) Exist ¶
func (otq *OASTypesQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OASTypesQuery) ExistX ¶
func (otq *OASTypesQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OASTypesQuery) First ¶
func (otq *OASTypesQuery) First(ctx context.Context) (*OASTypes, error)
First returns the first OASTypes entity from the query. Returns a *NotFoundError when no OASTypes was found.
func (*OASTypesQuery) FirstID ¶
func (otq *OASTypesQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first OASTypes ID from the query. Returns a *NotFoundError when no OASTypes ID was found.
func (*OASTypesQuery) FirstIDX ¶
func (otq *OASTypesQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*OASTypesQuery) FirstX ¶
func (otq *OASTypesQuery) FirstX(ctx context.Context) *OASTypes
FirstX is like First, but panics if an error occurs.
func (*OASTypesQuery) GroupBy ¶
func (otq *OASTypesQuery) GroupBy(field string, fields ...string) *OASTypesGroupBy
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 { Int int `json:"int,omitempty"` Count int `json:"count,omitempty"` } client.OASTypes.Query(). GroupBy(oastypes.FieldInt). Aggregate(oastypes.Count()). Scan(ctx, &v)
func (*OASTypesQuery) IDs ¶
func (otq *OASTypesQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of OASTypes IDs.
func (*OASTypesQuery) IDsX ¶
func (otq *OASTypesQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*OASTypesQuery) Limit ¶
func (otq *OASTypesQuery) Limit(limit int) *OASTypesQuery
Limit the number of records to be returned by this query.
func (*OASTypesQuery) Offset ¶
func (otq *OASTypesQuery) Offset(offset int) *OASTypesQuery
Offset to start from.
func (*OASTypesQuery) Only ¶
func (otq *OASTypesQuery) Only(ctx context.Context) (*OASTypes, error)
Only returns a single OASTypes entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OASTypes entity is found. Returns a *NotFoundError when no OASTypes entities are found.
func (*OASTypesQuery) OnlyID ¶
func (otq *OASTypesQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only OASTypes ID in the query. Returns a *NotSingularError when more than one OASTypes ID is found. Returns a *NotFoundError when no entities are found.
func (*OASTypesQuery) OnlyIDX ¶
func (otq *OASTypesQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OASTypesQuery) OnlyX ¶
func (otq *OASTypesQuery) OnlyX(ctx context.Context) *OASTypes
OnlyX is like Only, but panics if an error occurs.
func (*OASTypesQuery) Order ¶
func (otq *OASTypesQuery) Order(o ...oastypes.OrderOption) *OASTypesQuery
Order specifies how the records should be ordered.
func (*OASTypesQuery) Select ¶
func (otq *OASTypesQuery) Select(fields ...string) *OASTypesSelect
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 { Int int `json:"int,omitempty"` } client.OASTypes.Query(). Select(oastypes.FieldInt). Scan(ctx, &v)
func (*OASTypesQuery) Unique ¶
func (otq *OASTypesQuery) Unique(unique bool) *OASTypesQuery
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 (*OASTypesQuery) Where ¶
func (otq *OASTypesQuery) Where(ps ...predicate.OASTypes) *OASTypesQuery
Where adds a new predicate for the OASTypesQuery builder.
type OASTypesSelect ¶
type OASTypesSelect struct { *OASTypesQuery // contains filtered or unexported fields }
OASTypesSelect is the builder for selecting fields of OASTypes entities.
func (*OASTypesSelect) Aggregate ¶
func (ots *OASTypesSelect) Aggregate(fns ...AggregateFunc) *OASTypesSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OASTypesSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OASTypesSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OASTypesSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OASTypesSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OASTypesSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OASTypesSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OASTypesSelect) Scan ¶
func (ots *OASTypesSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OASTypesSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OASTypesUpdate ¶
type OASTypesUpdate struct {
// contains filtered or unexported fields
}
OASTypesUpdate is the builder for updating OASTypes entities.
func (*OASTypesUpdate) AddFloat32 ¶
func (otu *OASTypesUpdate) AddFloat32(f float32) *OASTypesUpdate
AddFloat32 adds f to the "float32" field.
func (*OASTypesUpdate) AddFloat64 ¶
func (otu *OASTypesUpdate) AddFloat64(f float64) *OASTypesUpdate
AddFloat64 adds f to the "float64" field.
func (*OASTypesUpdate) AddInt ¶
func (otu *OASTypesUpdate) AddInt(i int) *OASTypesUpdate
AddInt adds i to the "int" field.
func (*OASTypesUpdate) AddInt16 ¶
func (otu *OASTypesUpdate) AddInt16(i int16) *OASTypesUpdate
AddInt16 adds i to the "int16" field.
func (*OASTypesUpdate) AddInt32 ¶
func (otu *OASTypesUpdate) AddInt32(i int32) *OASTypesUpdate
AddInt32 adds i to the "int32" field.
func (*OASTypesUpdate) AddInt64 ¶
func (otu *OASTypesUpdate) AddInt64(i int64) *OASTypesUpdate
AddInt64 adds i to the "int64" field.
func (*OASTypesUpdate) AddInt8 ¶
func (otu *OASTypesUpdate) AddInt8(i int8) *OASTypesUpdate
AddInt8 adds i to the "int8" field.
func (*OASTypesUpdate) AddNillable ¶
func (otu *OASTypesUpdate) AddNillable(i int) *OASTypesUpdate
AddNillable adds i to the "nillable" field.
func (*OASTypesUpdate) AddOptional ¶
func (otu *OASTypesUpdate) AddOptional(i int) *OASTypesUpdate
AddOptional adds i to the "optional" field.
func (*OASTypesUpdate) AddOptionalAndNillable ¶
func (otu *OASTypesUpdate) AddOptionalAndNillable(i int) *OASTypesUpdate
AddOptionalAndNillable adds i to the "optional_and_nillable" field.
func (*OASTypesUpdate) AddUint ¶
func (otu *OASTypesUpdate) AddUint(u int) *OASTypesUpdate
AddUint adds u to the "uint" field.
func (*OASTypesUpdate) AddUint16 ¶
func (otu *OASTypesUpdate) AddUint16(u int16) *OASTypesUpdate
AddUint16 adds u to the "uint16" field.
func (*OASTypesUpdate) AddUint32 ¶
func (otu *OASTypesUpdate) AddUint32(u int32) *OASTypesUpdate
AddUint32 adds u to the "uint32" field.
func (*OASTypesUpdate) AddUint64 ¶
func (otu *OASTypesUpdate) AddUint64(u int64) *OASTypesUpdate
AddUint64 adds u to the "uint64" field.
func (*OASTypesUpdate) AddUint8 ¶
func (otu *OASTypesUpdate) AddUint8(u int8) *OASTypesUpdate
AddUint8 adds u to the "uint8" field.
func (*OASTypesUpdate) AppendFloats ¶
func (otu *OASTypesUpdate) AppendFloats(f []float64) *OASTypesUpdate
AppendFloats appends f to the "floats" field.
func (*OASTypesUpdate) AppendInts ¶
func (otu *OASTypesUpdate) AppendInts(i []int) *OASTypesUpdate
AppendInts appends i to the "ints" field.
func (*OASTypesUpdate) AppendJSONSlice ¶
func (otu *OASTypesUpdate) AppendJSONSlice(h []http.Dir) *OASTypesUpdate
AppendJSONSlice appends h to the "json_slice" field.
func (*OASTypesUpdate) AppendNicknames ¶
func (otu *OASTypesUpdate) AppendNicknames(s []string) *OASTypesUpdate
AppendNicknames appends s to the "nicknames" field.
func (*OASTypesUpdate) AppendStrings ¶
func (otu *OASTypesUpdate) AppendStrings(s []string) *OASTypesUpdate
AppendStrings appends s to the "strings" field.
func (*OASTypesUpdate) ClearOptional ¶
func (otu *OASTypesUpdate) ClearOptional() *OASTypesUpdate
ClearOptional clears the value of the "optional" field.
func (*OASTypesUpdate) ClearOptionalAndNillable ¶
func (otu *OASTypesUpdate) ClearOptionalAndNillable() *OASTypesUpdate
ClearOptionalAndNillable clears the value of the "optional_and_nillable" field.
func (*OASTypesUpdate) Exec ¶
func (otu *OASTypesUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OASTypesUpdate) ExecX ¶
func (otu *OASTypesUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OASTypesUpdate) Mutation ¶
func (otu *OASTypesUpdate) Mutation() *OASTypesMutation
Mutation returns the OASTypesMutation object of the builder.
func (*OASTypesUpdate) Save ¶
func (otu *OASTypesUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OASTypesUpdate) SaveX ¶
func (otu *OASTypesUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OASTypesUpdate) SetBool ¶
func (otu *OASTypesUpdate) SetBool(b bool) *OASTypesUpdate
SetBool sets the "bool" field.
func (*OASTypesUpdate) SetBytes ¶
func (otu *OASTypesUpdate) SetBytes(b []byte) *OASTypesUpdate
SetBytes sets the "bytes" field.
func (*OASTypesUpdate) SetFloat32 ¶
func (otu *OASTypesUpdate) SetFloat32(f float32) *OASTypesUpdate
SetFloat32 sets the "float32" field.
func (*OASTypesUpdate) SetFloat64 ¶
func (otu *OASTypesUpdate) SetFloat64(f float64) *OASTypesUpdate
SetFloat64 sets the "float64" field.
func (*OASTypesUpdate) SetFloats ¶
func (otu *OASTypesUpdate) SetFloats(f []float64) *OASTypesUpdate
SetFloats sets the "floats" field.
func (*OASTypesUpdate) SetInt ¶
func (otu *OASTypesUpdate) SetInt(i int) *OASTypesUpdate
SetInt sets the "int" field.
func (*OASTypesUpdate) SetInt16 ¶
func (otu *OASTypesUpdate) SetInt16(i int16) *OASTypesUpdate
SetInt16 sets the "int16" field.
func (*OASTypesUpdate) SetInt32 ¶
func (otu *OASTypesUpdate) SetInt32(i int32) *OASTypesUpdate
SetInt32 sets the "int32" field.
func (*OASTypesUpdate) SetInt64 ¶
func (otu *OASTypesUpdate) SetInt64(i int64) *OASTypesUpdate
SetInt64 sets the "int64" field.
func (*OASTypesUpdate) SetInt8 ¶
func (otu *OASTypesUpdate) SetInt8(i int8) *OASTypesUpdate
SetInt8 sets the "int8" field.
func (*OASTypesUpdate) SetInts ¶
func (otu *OASTypesUpdate) SetInts(i []int) *OASTypesUpdate
SetInts sets the "ints" field.
func (*OASTypesUpdate) SetJSONObj ¶
func (otu *OASTypesUpdate) SetJSONObj(u url.URL) *OASTypesUpdate
SetJSONObj sets the "json_obj" field.
func (*OASTypesUpdate) SetJSONSlice ¶
func (otu *OASTypesUpdate) SetJSONSlice(h []http.Dir) *OASTypesUpdate
SetJSONSlice sets the "json_slice" field.
func (*OASTypesUpdate) SetNicknames ¶
func (otu *OASTypesUpdate) SetNicknames(s []string) *OASTypesUpdate
SetNicknames sets the "nicknames" field.
func (*OASTypesUpdate) SetNillable ¶
func (otu *OASTypesUpdate) SetNillable(i int) *OASTypesUpdate
SetNillable sets the "nillable" field.
func (*OASTypesUpdate) SetNillableBool ¶
func (otu *OASTypesUpdate) SetNillableBool(b *bool) *OASTypesUpdate
SetNillableBool sets the "bool" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableFloat32 ¶
func (otu *OASTypesUpdate) SetNillableFloat32(f *float32) *OASTypesUpdate
SetNillableFloat32 sets the "float32" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableFloat64 ¶
func (otu *OASTypesUpdate) SetNillableFloat64(f *float64) *OASTypesUpdate
SetNillableFloat64 sets the "float64" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableInt ¶
func (otu *OASTypesUpdate) SetNillableInt(i *int) *OASTypesUpdate
SetNillableInt sets the "int" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableInt16 ¶
func (otu *OASTypesUpdate) SetNillableInt16(i *int16) *OASTypesUpdate
SetNillableInt16 sets the "int16" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableInt32 ¶
func (otu *OASTypesUpdate) SetNillableInt32(i *int32) *OASTypesUpdate
SetNillableInt32 sets the "int32" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableInt64 ¶
func (otu *OASTypesUpdate) SetNillableInt64(i *int64) *OASTypesUpdate
SetNillableInt64 sets the "int64" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableInt8 ¶
func (otu *OASTypesUpdate) SetNillableInt8(i *int8) *OASTypesUpdate
SetNillableInt8 sets the "int8" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableJSONObj ¶
func (otu *OASTypesUpdate) SetNillableJSONObj(u *url.URL) *OASTypesUpdate
SetNillableJSONObj sets the "json_obj" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableNillable ¶
func (otu *OASTypesUpdate) SetNillableNillable(i *int) *OASTypesUpdate
SetNillableNillable sets the "nillable" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableOptional ¶
func (otu *OASTypesUpdate) SetNillableOptional(i *int) *OASTypesUpdate
SetNillableOptional sets the "optional" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableOptionalAndNillable ¶
func (otu *OASTypesUpdate) SetNillableOptionalAndNillable(i *int) *OASTypesUpdate
SetNillableOptionalAndNillable sets the "optional_and_nillable" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableState ¶
func (otu *OASTypesUpdate) SetNillableState(o *oastypes.State) *OASTypesUpdate
SetNillableState sets the "state" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableStringField ¶
func (otu *OASTypesUpdate) SetNillableStringField(s *string) *OASTypesUpdate
SetNillableStringField sets the "string_field" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableText ¶
func (otu *OASTypesUpdate) SetNillableText(s *string) *OASTypesUpdate
SetNillableText sets the "text" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableTime ¶
func (otu *OASTypesUpdate) SetNillableTime(t *time.Time) *OASTypesUpdate
SetNillableTime sets the "time" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableUUID ¶
func (otu *OASTypesUpdate) SetNillableUUID(u *uuid.UUID) *OASTypesUpdate
SetNillableUUID sets the "uuid" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableUint ¶
func (otu *OASTypesUpdate) SetNillableUint(u *uint) *OASTypesUpdate
SetNillableUint sets the "uint" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableUint16 ¶
func (otu *OASTypesUpdate) SetNillableUint16(u *uint16) *OASTypesUpdate
SetNillableUint16 sets the "uint16" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableUint32 ¶
func (otu *OASTypesUpdate) SetNillableUint32(u *uint32) *OASTypesUpdate
SetNillableUint32 sets the "uint32" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableUint64 ¶
func (otu *OASTypesUpdate) SetNillableUint64(u *uint64) *OASTypesUpdate
SetNillableUint64 sets the "uint64" field if the given value is not nil.
func (*OASTypesUpdate) SetNillableUint8 ¶
func (otu *OASTypesUpdate) SetNillableUint8(u *uint8) *OASTypesUpdate
SetNillableUint8 sets the "uint8" field if the given value is not nil.
func (*OASTypesUpdate) SetOptional ¶
func (otu *OASTypesUpdate) SetOptional(i int) *OASTypesUpdate
SetOptional sets the "optional" field.
func (*OASTypesUpdate) SetOptionalAndNillable ¶
func (otu *OASTypesUpdate) SetOptionalAndNillable(i int) *OASTypesUpdate
SetOptionalAndNillable sets the "optional_and_nillable" field.
func (*OASTypesUpdate) SetOther ¶
func (otu *OASTypesUpdate) SetOther(s *schema.Link) *OASTypesUpdate
SetOther sets the "other" field.
func (*OASTypesUpdate) SetState ¶
func (otu *OASTypesUpdate) SetState(o oastypes.State) *OASTypesUpdate
SetState sets the "state" field.
func (*OASTypesUpdate) SetStringField ¶
func (otu *OASTypesUpdate) SetStringField(s string) *OASTypesUpdate
SetStringField sets the "string_field" field.
func (*OASTypesUpdate) SetStrings ¶
func (otu *OASTypesUpdate) SetStrings(s []string) *OASTypesUpdate
SetStrings sets the "strings" field.
func (*OASTypesUpdate) SetText ¶
func (otu *OASTypesUpdate) SetText(s string) *OASTypesUpdate
SetText sets the "text" field.
func (*OASTypesUpdate) SetTime ¶
func (otu *OASTypesUpdate) SetTime(t time.Time) *OASTypesUpdate
SetTime sets the "time" field.
func (*OASTypesUpdate) SetUUID ¶
func (otu *OASTypesUpdate) SetUUID(u uuid.UUID) *OASTypesUpdate
SetUUID sets the "uuid" field.
func (*OASTypesUpdate) SetUint ¶
func (otu *OASTypesUpdate) SetUint(u uint) *OASTypesUpdate
SetUint sets the "uint" field.
func (*OASTypesUpdate) SetUint16 ¶
func (otu *OASTypesUpdate) SetUint16(u uint16) *OASTypesUpdate
SetUint16 sets the "uint16" field.
func (*OASTypesUpdate) SetUint32 ¶
func (otu *OASTypesUpdate) SetUint32(u uint32) *OASTypesUpdate
SetUint32 sets the "uint32" field.
func (*OASTypesUpdate) SetUint64 ¶
func (otu *OASTypesUpdate) SetUint64(u uint64) *OASTypesUpdate
SetUint64 sets the "uint64" field.
func (*OASTypesUpdate) SetUint8 ¶
func (otu *OASTypesUpdate) SetUint8(u uint8) *OASTypesUpdate
SetUint8 sets the "uint8" field.
func (*OASTypesUpdate) Where ¶
func (otu *OASTypesUpdate) Where(ps ...predicate.OASTypes) *OASTypesUpdate
Where appends a list predicates to the OASTypesUpdate builder.
type OASTypesUpdateOne ¶
type OASTypesUpdateOne struct {
// contains filtered or unexported fields
}
OASTypesUpdateOne is the builder for updating a single OASTypes entity.
func (*OASTypesUpdateOne) AddFloat32 ¶
func (otuo *OASTypesUpdateOne) AddFloat32(f float32) *OASTypesUpdateOne
AddFloat32 adds f to the "float32" field.
func (*OASTypesUpdateOne) AddFloat64 ¶
func (otuo *OASTypesUpdateOne) AddFloat64(f float64) *OASTypesUpdateOne
AddFloat64 adds f to the "float64" field.
func (*OASTypesUpdateOne) AddInt ¶
func (otuo *OASTypesUpdateOne) AddInt(i int) *OASTypesUpdateOne
AddInt adds i to the "int" field.
func (*OASTypesUpdateOne) AddInt16 ¶
func (otuo *OASTypesUpdateOne) AddInt16(i int16) *OASTypesUpdateOne
AddInt16 adds i to the "int16" field.
func (*OASTypesUpdateOne) AddInt32 ¶
func (otuo *OASTypesUpdateOne) AddInt32(i int32) *OASTypesUpdateOne
AddInt32 adds i to the "int32" field.
func (*OASTypesUpdateOne) AddInt64 ¶
func (otuo *OASTypesUpdateOne) AddInt64(i int64) *OASTypesUpdateOne
AddInt64 adds i to the "int64" field.
func (*OASTypesUpdateOne) AddInt8 ¶
func (otuo *OASTypesUpdateOne) AddInt8(i int8) *OASTypesUpdateOne
AddInt8 adds i to the "int8" field.
func (*OASTypesUpdateOne) AddNillable ¶
func (otuo *OASTypesUpdateOne) AddNillable(i int) *OASTypesUpdateOne
AddNillable adds i to the "nillable" field.
func (*OASTypesUpdateOne) AddOptional ¶
func (otuo *OASTypesUpdateOne) AddOptional(i int) *OASTypesUpdateOne
AddOptional adds i to the "optional" field.
func (*OASTypesUpdateOne) AddOptionalAndNillable ¶
func (otuo *OASTypesUpdateOne) AddOptionalAndNillable(i int) *OASTypesUpdateOne
AddOptionalAndNillable adds i to the "optional_and_nillable" field.
func (*OASTypesUpdateOne) AddUint ¶
func (otuo *OASTypesUpdateOne) AddUint(u int) *OASTypesUpdateOne
AddUint adds u to the "uint" field.
func (*OASTypesUpdateOne) AddUint16 ¶
func (otuo *OASTypesUpdateOne) AddUint16(u int16) *OASTypesUpdateOne
AddUint16 adds u to the "uint16" field.
func (*OASTypesUpdateOne) AddUint32 ¶
func (otuo *OASTypesUpdateOne) AddUint32(u int32) *OASTypesUpdateOne
AddUint32 adds u to the "uint32" field.
func (*OASTypesUpdateOne) AddUint64 ¶
func (otuo *OASTypesUpdateOne) AddUint64(u int64) *OASTypesUpdateOne
AddUint64 adds u to the "uint64" field.
func (*OASTypesUpdateOne) AddUint8 ¶
func (otuo *OASTypesUpdateOne) AddUint8(u int8) *OASTypesUpdateOne
AddUint8 adds u to the "uint8" field.
func (*OASTypesUpdateOne) AppendFloats ¶
func (otuo *OASTypesUpdateOne) AppendFloats(f []float64) *OASTypesUpdateOne
AppendFloats appends f to the "floats" field.
func (*OASTypesUpdateOne) AppendInts ¶
func (otuo *OASTypesUpdateOne) AppendInts(i []int) *OASTypesUpdateOne
AppendInts appends i to the "ints" field.
func (*OASTypesUpdateOne) AppendJSONSlice ¶
func (otuo *OASTypesUpdateOne) AppendJSONSlice(h []http.Dir) *OASTypesUpdateOne
AppendJSONSlice appends h to the "json_slice" field.
func (*OASTypesUpdateOne) AppendNicknames ¶
func (otuo *OASTypesUpdateOne) AppendNicknames(s []string) *OASTypesUpdateOne
AppendNicknames appends s to the "nicknames" field.
func (*OASTypesUpdateOne) AppendStrings ¶
func (otuo *OASTypesUpdateOne) AppendStrings(s []string) *OASTypesUpdateOne
AppendStrings appends s to the "strings" field.
func (*OASTypesUpdateOne) ClearOptional ¶
func (otuo *OASTypesUpdateOne) ClearOptional() *OASTypesUpdateOne
ClearOptional clears the value of the "optional" field.
func (*OASTypesUpdateOne) ClearOptionalAndNillable ¶
func (otuo *OASTypesUpdateOne) ClearOptionalAndNillable() *OASTypesUpdateOne
ClearOptionalAndNillable clears the value of the "optional_and_nillable" field.
func (*OASTypesUpdateOne) Exec ¶
func (otuo *OASTypesUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OASTypesUpdateOne) ExecX ¶
func (otuo *OASTypesUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OASTypesUpdateOne) Mutation ¶
func (otuo *OASTypesUpdateOne) Mutation() *OASTypesMutation
Mutation returns the OASTypesMutation object of the builder.
func (*OASTypesUpdateOne) Save ¶
func (otuo *OASTypesUpdateOne) Save(ctx context.Context) (*OASTypes, error)
Save executes the query and returns the updated OASTypes entity.
func (*OASTypesUpdateOne) SaveX ¶
func (otuo *OASTypesUpdateOne) SaveX(ctx context.Context) *OASTypes
SaveX is like Save, but panics if an error occurs.
func (*OASTypesUpdateOne) Select ¶
func (otuo *OASTypesUpdateOne) Select(field string, fields ...string) *OASTypesUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OASTypesUpdateOne) SetBool ¶
func (otuo *OASTypesUpdateOne) SetBool(b bool) *OASTypesUpdateOne
SetBool sets the "bool" field.
func (*OASTypesUpdateOne) SetBytes ¶
func (otuo *OASTypesUpdateOne) SetBytes(b []byte) *OASTypesUpdateOne
SetBytes sets the "bytes" field.
func (*OASTypesUpdateOne) SetFloat32 ¶
func (otuo *OASTypesUpdateOne) SetFloat32(f float32) *OASTypesUpdateOne
SetFloat32 sets the "float32" field.
func (*OASTypesUpdateOne) SetFloat64 ¶
func (otuo *OASTypesUpdateOne) SetFloat64(f float64) *OASTypesUpdateOne
SetFloat64 sets the "float64" field.
func (*OASTypesUpdateOne) SetFloats ¶
func (otuo *OASTypesUpdateOne) SetFloats(f []float64) *OASTypesUpdateOne
SetFloats sets the "floats" field.
func (*OASTypesUpdateOne) SetInt ¶
func (otuo *OASTypesUpdateOne) SetInt(i int) *OASTypesUpdateOne
SetInt sets the "int" field.
func (*OASTypesUpdateOne) SetInt16 ¶
func (otuo *OASTypesUpdateOne) SetInt16(i int16) *OASTypesUpdateOne
SetInt16 sets the "int16" field.
func (*OASTypesUpdateOne) SetInt32 ¶
func (otuo *OASTypesUpdateOne) SetInt32(i int32) *OASTypesUpdateOne
SetInt32 sets the "int32" field.
func (*OASTypesUpdateOne) SetInt64 ¶
func (otuo *OASTypesUpdateOne) SetInt64(i int64) *OASTypesUpdateOne
SetInt64 sets the "int64" field.
func (*OASTypesUpdateOne) SetInt8 ¶
func (otuo *OASTypesUpdateOne) SetInt8(i int8) *OASTypesUpdateOne
SetInt8 sets the "int8" field.
func (*OASTypesUpdateOne) SetInts ¶
func (otuo *OASTypesUpdateOne) SetInts(i []int) *OASTypesUpdateOne
SetInts sets the "ints" field.
func (*OASTypesUpdateOne) SetJSONObj ¶
func (otuo *OASTypesUpdateOne) SetJSONObj(u url.URL) *OASTypesUpdateOne
SetJSONObj sets the "json_obj" field.
func (*OASTypesUpdateOne) SetJSONSlice ¶
func (otuo *OASTypesUpdateOne) SetJSONSlice(h []http.Dir) *OASTypesUpdateOne
SetJSONSlice sets the "json_slice" field.
func (*OASTypesUpdateOne) SetNicknames ¶
func (otuo *OASTypesUpdateOne) SetNicknames(s []string) *OASTypesUpdateOne
SetNicknames sets the "nicknames" field.
func (*OASTypesUpdateOne) SetNillable ¶
func (otuo *OASTypesUpdateOne) SetNillable(i int) *OASTypesUpdateOne
SetNillable sets the "nillable" field.
func (*OASTypesUpdateOne) SetNillableBool ¶
func (otuo *OASTypesUpdateOne) SetNillableBool(b *bool) *OASTypesUpdateOne
SetNillableBool sets the "bool" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableFloat32 ¶
func (otuo *OASTypesUpdateOne) SetNillableFloat32(f *float32) *OASTypesUpdateOne
SetNillableFloat32 sets the "float32" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableFloat64 ¶
func (otuo *OASTypesUpdateOne) SetNillableFloat64(f *float64) *OASTypesUpdateOne
SetNillableFloat64 sets the "float64" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableInt ¶
func (otuo *OASTypesUpdateOne) SetNillableInt(i *int) *OASTypesUpdateOne
SetNillableInt sets the "int" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableInt16 ¶
func (otuo *OASTypesUpdateOne) SetNillableInt16(i *int16) *OASTypesUpdateOne
SetNillableInt16 sets the "int16" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableInt32 ¶
func (otuo *OASTypesUpdateOne) SetNillableInt32(i *int32) *OASTypesUpdateOne
SetNillableInt32 sets the "int32" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableInt64 ¶
func (otuo *OASTypesUpdateOne) SetNillableInt64(i *int64) *OASTypesUpdateOne
SetNillableInt64 sets the "int64" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableInt8 ¶
func (otuo *OASTypesUpdateOne) SetNillableInt8(i *int8) *OASTypesUpdateOne
SetNillableInt8 sets the "int8" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableJSONObj ¶
func (otuo *OASTypesUpdateOne) SetNillableJSONObj(u *url.URL) *OASTypesUpdateOne
SetNillableJSONObj sets the "json_obj" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableNillable ¶
func (otuo *OASTypesUpdateOne) SetNillableNillable(i *int) *OASTypesUpdateOne
SetNillableNillable sets the "nillable" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableOptional ¶
func (otuo *OASTypesUpdateOne) SetNillableOptional(i *int) *OASTypesUpdateOne
SetNillableOptional sets the "optional" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableOptionalAndNillable ¶
func (otuo *OASTypesUpdateOne) SetNillableOptionalAndNillable(i *int) *OASTypesUpdateOne
SetNillableOptionalAndNillable sets the "optional_and_nillable" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableState ¶
func (otuo *OASTypesUpdateOne) SetNillableState(o *oastypes.State) *OASTypesUpdateOne
SetNillableState sets the "state" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableStringField ¶
func (otuo *OASTypesUpdateOne) SetNillableStringField(s *string) *OASTypesUpdateOne
SetNillableStringField sets the "string_field" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableText ¶
func (otuo *OASTypesUpdateOne) SetNillableText(s *string) *OASTypesUpdateOne
SetNillableText sets the "text" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableTime ¶
func (otuo *OASTypesUpdateOne) SetNillableTime(t *time.Time) *OASTypesUpdateOne
SetNillableTime sets the "time" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableUUID ¶
func (otuo *OASTypesUpdateOne) SetNillableUUID(u *uuid.UUID) *OASTypesUpdateOne
SetNillableUUID sets the "uuid" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableUint ¶
func (otuo *OASTypesUpdateOne) SetNillableUint(u *uint) *OASTypesUpdateOne
SetNillableUint sets the "uint" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableUint16 ¶
func (otuo *OASTypesUpdateOne) SetNillableUint16(u *uint16) *OASTypesUpdateOne
SetNillableUint16 sets the "uint16" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableUint32 ¶
func (otuo *OASTypesUpdateOne) SetNillableUint32(u *uint32) *OASTypesUpdateOne
SetNillableUint32 sets the "uint32" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableUint64 ¶
func (otuo *OASTypesUpdateOne) SetNillableUint64(u *uint64) *OASTypesUpdateOne
SetNillableUint64 sets the "uint64" field if the given value is not nil.
func (*OASTypesUpdateOne) SetNillableUint8 ¶
func (otuo *OASTypesUpdateOne) SetNillableUint8(u *uint8) *OASTypesUpdateOne
SetNillableUint8 sets the "uint8" field if the given value is not nil.
func (*OASTypesUpdateOne) SetOptional ¶
func (otuo *OASTypesUpdateOne) SetOptional(i int) *OASTypesUpdateOne
SetOptional sets the "optional" field.
func (*OASTypesUpdateOne) SetOptionalAndNillable ¶
func (otuo *OASTypesUpdateOne) SetOptionalAndNillable(i int) *OASTypesUpdateOne
SetOptionalAndNillable sets the "optional_and_nillable" field.
func (*OASTypesUpdateOne) SetOther ¶
func (otuo *OASTypesUpdateOne) SetOther(s *schema.Link) *OASTypesUpdateOne
SetOther sets the "other" field.
func (*OASTypesUpdateOne) SetState ¶
func (otuo *OASTypesUpdateOne) SetState(o oastypes.State) *OASTypesUpdateOne
SetState sets the "state" field.
func (*OASTypesUpdateOne) SetStringField ¶
func (otuo *OASTypesUpdateOne) SetStringField(s string) *OASTypesUpdateOne
SetStringField sets the "string_field" field.
func (*OASTypesUpdateOne) SetStrings ¶
func (otuo *OASTypesUpdateOne) SetStrings(s []string) *OASTypesUpdateOne
SetStrings sets the "strings" field.
func (*OASTypesUpdateOne) SetText ¶
func (otuo *OASTypesUpdateOne) SetText(s string) *OASTypesUpdateOne
SetText sets the "text" field.
func (*OASTypesUpdateOne) SetTime ¶
func (otuo *OASTypesUpdateOne) SetTime(t time.Time) *OASTypesUpdateOne
SetTime sets the "time" field.
func (*OASTypesUpdateOne) SetUUID ¶
func (otuo *OASTypesUpdateOne) SetUUID(u uuid.UUID) *OASTypesUpdateOne
SetUUID sets the "uuid" field.
func (*OASTypesUpdateOne) SetUint ¶
func (otuo *OASTypesUpdateOne) SetUint(u uint) *OASTypesUpdateOne
SetUint sets the "uint" field.
func (*OASTypesUpdateOne) SetUint16 ¶
func (otuo *OASTypesUpdateOne) SetUint16(u uint16) *OASTypesUpdateOne
SetUint16 sets the "uint16" field.
func (*OASTypesUpdateOne) SetUint32 ¶
func (otuo *OASTypesUpdateOne) SetUint32(u uint32) *OASTypesUpdateOne
SetUint32 sets the "uint32" field.
func (*OASTypesUpdateOne) SetUint64 ¶
func (otuo *OASTypesUpdateOne) SetUint64(u uint64) *OASTypesUpdateOne
SetUint64 sets the "uint64" field.
func (*OASTypesUpdateOne) SetUint8 ¶
func (otuo *OASTypesUpdateOne) SetUint8(u uint8) *OASTypesUpdateOne
SetUint8 sets the "uint8" field.
func (*OASTypesUpdateOne) Where ¶
func (otuo *OASTypesUpdateOne) Where(ps ...predicate.OASTypes) *OASTypesUpdateOne
Where appends a list predicates to the OASTypesUpdate builder.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // OASTypes is the client for interacting with the OASTypes builders. OASTypes *OASTypesClient // 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 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.