Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array[T any] []T
Array represents a PostgreSQL array for T. It implements the ArrayGetter and ArraySetter interfaces. It preserves PostgreSQL dimensions and custom lower bounds. Use FlatArray if these are not needed. only support number
type FloatArray ¶
type FloatArray[T constraints.Float] []T
func (*FloatArray[T]) Scan ¶
func (d *FloatArray[T]) Scan(value any) error
type JsonArray ¶
func (*JsonArray) GormDataType ¶
type JsonB ¶
type JsonB []byte
func (*JsonB) GormDataType ¶
type JsonStr ¶
type JsonStr string
func (*JsonStr) GormDataType ¶
type JsonT ¶
type JsonT[T any] struct { Data *T }
func (*JsonT[T]) GormDataType ¶
type JsonTArray ¶
type JsonTArray[T any] []T
func (*JsonTArray[T]) GormDataType ¶
func (*JsonTArray[T]) GormDataType() string
func (*JsonTArray[T]) Scan ¶
func (j *JsonTArray[T]) Scan(value interface{}) error
实现 sql.Scanner 接口,Scan 将 value 扫描至 Json
type StringArray ¶
type StringArray []string
func (*StringArray) Scan ¶
func (d *StringArray) Scan(value any) error
Click to show internal directories.
Click to hide internal directories.