Versions in this module Expand all Collapse all v0 v0.0.1 Oct 24, 2024 Changes in this version + func Any(name string) *jsonBuilder + func Bool(name string) *boolBuilder + func Bytes(name string) *bytesBuilder + func Enum(name string) *enumBuilder + func Float(name string) *float64Builder + func Float32(name string) *float32Builder + func Floats(name string) *sliceBuilder[float64] + func Int(name string) *intBuilder + func Int16(name string) *int16Builder + func Int32(name string) *int32Builder + func Int64(name string) *int64Builder + func Int8(name string) *int8Builder + func Ints(name string) *sliceBuilder[int] + func JSON(name string, typ any) *jsonBuilder + func Other(name string, typ driver.Valuer) *otherBuilder + func String(name string) *stringBuilder + func Strings(name string) *sliceBuilder[string] + func Text(name string) *stringBuilder + func Time(name string) *timeBuilder + func UUID(name string, typ driver.Valuer) *uuidBuilder + func Uint(name string) *uintBuilder + func Uint16(name string) *uint16Builder + func Uint32(name string) *uint32Builder + func Uint64(name string) *uint64Builder + func Uint8(name string) *uint8Builder + type Annotation struct + ID []string + StructTag map[string]string + func ID(first, second string, fields ...string) *Annotation + func (Annotation) Name() string + func (a Annotation) Merge(other schema.Annotation) schema.Annotation + type BinaryValueScanner struct + func (BinaryValueScanner[T]) FromValue(v driver.Value) (tv T, err error) + func (BinaryValueScanner[T]) ScanValue() ValueScanner + func (BinaryValueScanner[T]) Value(v T) (driver.Value, error) + type Descriptor struct + Annotations []schema.Annotation + Comment string + Default any + Enums []struct{ ... } + Err error + Immutable bool + Info *TypeInfo + Name string + Nillable bool + Optional bool + SchemaType map[string]string + Sensitive bool + Size int + StorageKey string + Tag string + Unique bool + UpdateDefault any + Validators []any + ValueScanner any + type EnumValues interface + Values func() []string + type RType struct + Ident string + Kind reflect.Kind + Methods map[string]struct{ ... } + Name string + PkgPath string + func (r *RType) Implements(typ reflect.Type) bool + func (r *RType) IsPtr() bool + func (r *RType) String() string + func (r *RType) TypeEqual(t reflect.Type) bool + type TextValueScanner struct + func (TextValueScanner[T]) FromValue(v driver.Value) (tv T, err error) + func (TextValueScanner[T]) ScanValue() ValueScanner + func (TextValueScanner[T]) Value(v T) (driver.Value, error) + type Type uint8 + const TypeBool + const TypeBytes + const TypeEnum + const TypeFloat32 + const TypeFloat64 + const TypeInt + const TypeInt16 + const TypeInt32 + const TypeInt64 + const TypeInt8 + const TypeInvalid + const TypeJSON + const TypeOther + const TypeString + const TypeTime + const TypeUUID + const TypeUint + const TypeUint16 + const TypeUint32 + const TypeUint64 + const TypeUint8 + func (t Type) ConstName() string + func (t Type) Float() bool + func (t Type) Integer() bool + func (t Type) Numeric() bool + func (t Type) String() string + func (t Type) Valid() bool + type TypeInfo struct + Ident string + Nillable bool + PkgName string + PkgPath string + RType *RType + Type Type + func (t TypeInfo) Comparable() bool + func (t TypeInfo) ConstName() string + func (t TypeInfo) Numeric() bool + func (t TypeInfo) String() string + func (t TypeInfo) Stringer() bool + func (t TypeInfo) Valid() bool + func (t TypeInfo) Validator() bool + func (t TypeInfo) ValueScanner() bool + func (t TypeInfo) Valuer() bool + type TypeValueScanner interface + FromValue func(driver.Value) (T, error) + ScanValue func() ValueScanner + Value func(T) (driver.Value, error) + type Validator interface + Validate func() error + type ValueScanner interface + type ValueScannerFunc struct + S func(S) (T, error) + V func(T) (driver.Value, error) + func (f ValueScannerFunc[T, S]) FromValue(v driver.Value) (tv T, err error) + func (f ValueScannerFunc[T, S]) ScanValue() ValueScanner + func (f ValueScannerFunc[T, S]) Value(t T) (driver.Value, error)