Versions in this module Expand all Collapse all v1 v1.2.6 Nov 14, 2024 Changes in this version + func Column(col string) columnExpression + type BinUUID uuid.UUID + func BinUUIDFromString(uuidStr string) BinUUID + func NewBinUUIDv1() BinUUID + func NewBinUUIDv4() BinUUID + func NewNilBinUUID() BinUUID + func (BinUUID) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (BinUUID) GormDataType() string + func (u *BinUUID) IsEmptyPtr() bool + func (u *BinUUID) IsNilPtr() bool + func (u *BinUUID) Scan(value interface{}) error + func (u BinUUID) Bytes() []byte + func (u BinUUID) Equals(other BinUUID) bool + func (u BinUUID) IsEmpty() bool + func (u BinUUID) IsNil() bool + func (u BinUUID) Length() int + func (u BinUUID) LengthBytes() int + func (u BinUUID) String() string + func (u BinUUID) Value() (driver.Value, error) + type Date time.Time + func (date *Date) GobDecode(b []byte) error + func (date *Date) Scan(value interface{}) (err error) + func (date *Date) UnmarshalJSON(b []byte) error + func (date Date) GobEncode() ([]byte, error) + func (date Date) GormDataType() string + func (date Date) MarshalJSON() ([]byte, error) + func (date Date) Value() (driver.Value, error) + type JSON json.RawMessage + func (JSON) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (JSON) GormDataType() string + func (j *JSON) Scan(value interface{}) error + func (j *JSON) UnmarshalJSON(b []byte) error + func (j JSON) MarshalJSON() ([]byte, error) + func (j JSON) String() string + func (j JSON) Value() (driver.Value, error) + func (js JSON) GormValue(ctx context.Context, db *gorm.DB) clause.Expr + type JSONArrayExpression struct + func JSONArrayQuery(column string) *JSONArrayExpression + func (json *JSONArrayExpression) Build(builder clause.Builder) + func (json *JSONArrayExpression) Contains(value interface{}, keys ...string) *JSONArrayExpression + func (json *JSONArrayExpression) In(value interface{}, keys ...string) *JSONArrayExpression + type JSONMap map[string]interface + func (JSONMap) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (jm JSONMap) GormValue(ctx context.Context, db *gorm.DB) clause.Expr + func (m *JSONMap) Scan(val interface{}) error + func (m *JSONMap) UnmarshalJSON(b []byte) error + func (m JSONMap) GormDataType() string + func (m JSONMap) MarshalJSON() ([]byte, error) + func (m JSONMap) Value() (driver.Value, error) + type JSONOverlapsExpression struct + func JSONOverlaps(column clause.Expression, value string) *JSONOverlapsExpression + func (json *JSONOverlapsExpression) Build(builder clause.Builder) + type JSONQueryExpression struct + func JSONQuery(column string) *JSONQueryExpression + func (jsonQuery *JSONQueryExpression) Build(builder clause.Builder) + func (jsonQuery *JSONQueryExpression) Equals(value interface{}, keys ...string) *JSONQueryExpression + func (jsonQuery *JSONQueryExpression) Extract(path string) *JSONQueryExpression + func (jsonQuery *JSONQueryExpression) HasKey(keys ...string) *JSONQueryExpression + func (jsonQuery *JSONQueryExpression) Likes(value interface{}, keys ...string) *JSONQueryExpression + type JSONSetExpression struct + func JSONSet(column string) *JSONSetExpression + func (jsonSet *JSONSetExpression) Build(builder clause.Builder) + func (jsonSet *JSONSetExpression) Set(path string, value interface{}) *JSONSetExpression + type JSONSlice []T + func NewJSONSlice[T any](s []T) JSONSlice[T] + func (JSONSlice[T]) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (JSONSlice[T]) GormDataType() string + func (j *JSONSlice[T]) Scan(value interface{}) error + func (j JSONSlice[T]) GormValue(ctx context.Context, db *gorm.DB) clause.Expr + func (j JSONSlice[T]) Value() (driver.Value, error) + type JSONType struct + func NewJSONType[T any](data T) JSONType[T] + func (JSONType[T]) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (JSONType[T]) GormDataType() string + func (j *JSONType[T]) Scan(value interface{}) error + func (j *JSONType[T]) UnmarshalJSON(b []byte) error + func (j JSONType[T]) Data() T + func (j JSONType[T]) MarshalJSON() ([]byte, error) + func (j JSONType[T]) Value() (driver.Value, error) + func (js JSONType[T]) GormValue(ctx context.Context, db *gorm.DB) clause.Expr + type Null struct + V T + Valid bool + func NewNull[T any](v T) Null[T] + func (n *Null[T]) Scan(value any) error + func (n Null[T]) Value() (driver.Value, error) + type NullBool = Null[bool] + type NullByte = Null[byte] + type NullFloat64 = Null[float64] + type NullInt16 = Null[int16] + type NullInt32 = Null[int32] + type NullInt64 = Null[int64] + type NullString = Null[string] + type NullTime = Null[time.Time] + type Time time.Duration + func NewTime(hour, min, sec, nsec int) Time + func (Time) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (Time) GormDataType() string + func (t *Time) Scan(src interface{}) error + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) String() string + func (t Time) Value() (driver.Value, error) + type URL url.URL + func (URL) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (URL) GormDataType() string + func (u *URL) Scan(value interface{}) error + func (u *URL) String() string + func (u *URL) UnmarshalJSON(data []byte) error + func (u URL) MarshalJSON() ([]byte, error) + func (u URL) Value() (driver.Value, error) + type UUID uuid.UUID + func NewUUIDv1() UUID + func NewUUIDv4() UUID + func (UUID) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (UUID) GormDataType() string + func (u *UUID) IsEmptyPtr() bool + func (u *UUID) IsNilPtr() bool + func (u *UUID) Scan(value interface{}) error + func (u UUID) Equals(other UUID) bool + func (u UUID) IsEmpty() bool + func (u UUID) IsNil() bool + func (u UUID) Length() int + func (u UUID) String() string + func (u UUID) Value() (driver.Value, error)