Documentation ¶
Overview ¶
Copyright © Portalnesia <support@portalnesia.com>
Copyright © Portalnesia <support@portalnesia.com>
Copyright © Portalnesia <support@portalnesia.com>
Copyright © Portalnesia <support@portalnesia.com>
Copyright © Portalnesia <support@portalnesia.com>
Copyright © Portalnesia <support@portalnesia.com>
Index ¶
- type Bool
- func (Bool) FiberConverter(value string) reflect.Value
- func (i Bool) MarshalBSON() (byt []byte, err error)
- func (i Bool) MarshalJSON() ([]byte, error)
- func (d Bool) Null() null.Bool
- func (d Bool) Ptr() *bool
- func (d *Bool) Scan(value interface{}) error
- func (b *Bool) UnmarshalBSON(data []byte) error
- func (b *Bool) UnmarshalJSON(data []byte) error
- func (d Bool) Value() (driver.Value, error)
- type Float
- func (Float) FiberConverter(value string) reflect.Value
- func (i Float) MarshalBSON() (byt []byte, err error)
- func (i Float) MarshalJSON() ([]byte, error)
- func (d Float) Null() null.Float
- func (d Float) Ptr() *float64
- func (d *Float) Scan(value interface{}) error
- func (f *Float) UnmarshalBSON(data []byte) error
- func (f *Float) UnmarshalJSON(data []byte) error
- func (d Float) Value() (driver.Value, error)
- type GeomMultiPolygon
- type GeomPoint
- type GeomPolygon
- type Int
- func (Int) FiberConverter(value string) reflect.Value
- func (i Int) MarshalBSON() (byt []byte, err error)
- func (i Int) MarshalJSON() ([]byte, error)
- func (d Int) Null() null.Int
- func (d Int) Ptr() *int64
- func (d *Int) Scan(value interface{}) error
- func (i *Int) UnmarshalBSON(data []byte) error
- func (i *Int) UnmarshalJSON(data []byte) error
- func (d Int) Value() (driver.Value, error)
- type String
- func (String) FiberConverter(value string) reflect.Value
- func (s String) MarshalBSON() (byt []byte, err error)
- func (s String) MarshalJSON() ([]byte, error)
- func (s String) Null() null.String
- func (s String) Ptr() *string
- func (s *String) Scan(value interface{}) error
- func (s *String) UnmarshalBSON(data []byte) error
- func (s *String) UnmarshalJSON(data []byte) error
- func (s String) Value() (driver.Value, error)
- type StringArray
- func (StringArray) FiberConverter(value string) reflect.Value
- func (StringArray) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (StringArray) GormDataType() string
- func (d StringArray) MarshalBSON() (byt []byte, err error)
- func (d StringArray) MarshalJSON() ([]byte, error)
- func (d StringArray) Ptr() *pg.StringArray
- func (d *StringArray) Scan(value interface{}) error
- func (d *StringArray) UnmarshalBSON(data []byte) error
- func (d *StringArray) UnmarshalJSON(data []byte) error
- func (d StringArray) Value() (driver.Value, error)
- type Time
- func (d Time) Carbon() carbon.Carbon
- func (Time) FiberConverter(value string) reflect.Value
- func (d Time) MarshalBSON() (byt []byte, err error)
- func (d Time) MarshalJSON() ([]byte, error)
- func (d Time) Null() null.Time
- func (d Time) Ptr() *time.Time
- func (d *Time) Scan(value interface{}) error
- func (d *Time) UnmarshalBSON(data []byte) error
- func (d *Time) UnmarshalJSON(data []byte) error
- func (d Time) Value() (driver.Value, error)
- type Type
- func (d Type[D]) Datatypes() *datatypes.JSONType[D]
- func (Type[D]) FiberConverter(value string) reflect.Value
- func (Type[D]) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (Type[D]) GormDataType() string
- func (i Type[D]) MarshalBSON() (byt []byte, err error)
- func (i Type[D]) MarshalJSON() ([]byte, error)
- func (d Type[D]) Ptr() *D
- func (d *Type[D]) Scan(value interface{}) error
- func (i *Type[D]) UnmarshalBSON(data []byte) error
- func (i *Type[D]) UnmarshalJSON(data []byte) error
- func (d Type[D]) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid bool Data bool }
Bool represents a bool that may be null or not present in json at all.
func NewBoolPtr ¶
func (Bool) MarshalBSON ¶ added in v1.0.5
MarshalBSON implements bson.Marshaler interface.
func (Bool) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*Bool) UnmarshalBSON ¶ added in v1.0.5
UnmarshalBSON implements bson.Marshaler interface.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler interface.
type Float ¶
type Float struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid float Data float64 }
Float represents a float that may be null or not present in json at all.
func NewFloatPtr ¶
func (Float) MarshalBSON ¶ added in v1.0.5
MarshalBSON implements bson.Marshaler interface.
func (Float) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*Float) UnmarshalBSON ¶ added in v1.0.5
UnmarshalBSON implements bson.Marshaler interface.
func (*Float) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler interface.
type GeomMultiPolygon ¶
type GeomMultiPolygon struct {
geojson.MultiPolygon
}
func (*GeomMultiPolygon) Scan ¶
func (g *GeomMultiPolygon) Scan(input interface{}) error
func (*GeomMultiPolygon) UnmarshalBSON ¶ added in v1.0.5
func (g *GeomMultiPolygon) UnmarshalBSON(data []byte) error
type GeomPoint ¶
func (*GeomPoint) UnmarshalBSON ¶ added in v1.0.5
type GeomPolygon ¶
func (*GeomPolygon) Scan ¶
func (g *GeomPolygon) Scan(input interface{}) error
func (*GeomPolygon) UnmarshalBSON ¶ added in v1.0.5
func (g *GeomPolygon) UnmarshalBSON(data []byte) error
type Int ¶
type Int struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid int64 Data int64 }
func (Int) MarshalBSON ¶ added in v1.0.5
MarshalBSON implements bson.Marshaler interface.
func (Int) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface. Bug: Marshal undefined value
func (*Int) UnmarshalBSON ¶ added in v1.0.5
UnmarshalBSON implements bson.Marshaler interface.
func (*Int) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler interface.
type String ¶
type String struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid string Data string }
String represents a string that may be null or not present in json at all.
func NewStringPtr ¶
func (String) MarshalBSON ¶ added in v1.0.5
MarshalBSON implements bson.Marshaler interface.
func (String) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*String) UnmarshalBSON ¶ added in v1.0.5
UnmarshalBSON implements bson.Marshaler interface.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler interface.
type StringArray ¶
type StringArray struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid string Data pg.StringArray }
func NewStringArray ¶
func NewStringArray(data pg.StringArray, presentValid ...bool) StringArray
func NewStringArrayPtr ¶
func NewStringArrayPtr(data pg.StringArray, presentValid ...bool) *StringArray
func (StringArray) FiberConverter ¶ added in v1.0.3
func (StringArray) FiberConverter(value string) reflect.Value
func (StringArray) GormDBDataType ¶
GormDBDataType gorm db data type
func (StringArray) GormDataType ¶
func (StringArray) GormDataType() string
GormDataType gorm common data type
func (StringArray) MarshalBSON ¶ added in v1.0.5
func (d StringArray) MarshalBSON() (byt []byte, err error)
MarshalBSON implements bson.Marshaler interface.
func (StringArray) MarshalJSON ¶
func (d StringArray) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler interface.
func (StringArray) Ptr ¶
func (d StringArray) Ptr() *pg.StringArray
func (*StringArray) Scan ¶
func (d *StringArray) Scan(value interface{}) error
func (*StringArray) UnmarshalBSON ¶ added in v1.0.5
func (d *StringArray) UnmarshalBSON(data []byte) error
UnmarshalBSON implements bson.Marshaler interface.
func (*StringArray) UnmarshalJSON ¶
func (d *StringArray) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Marshaler interface.
type Time ¶
type Time struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid string Data time.Time // contains filtered or unexported fields }
func (Time) MarshalBSON ¶ added in v1.0.5
MarshalBSON implements bson.Marshaler interface.
func (Time) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*Time) UnmarshalBSON ¶ added in v1.0.5
UnmarshalBSON implements bson.Marshaler interface.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler interface.
type Type ¶
type Type[D any] struct { Present bool // Present is true if key is present in json Valid bool // Valid is true if value is not null and valid string Data D }
func NewTypePtr ¶
func (Type[D]) FiberConverter ¶ added in v1.0.3
func (Type[D]) GormDBDataType ¶
GormDBDataType gorm db data type
func (Type[D]) GormDataType ¶
GormDataType gorm common data type
func (Type[D]) MarshalBSON ¶ added in v1.0.5
MarshalBSON implements bson.Marshaler interface.
func (Type[D]) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface. Bug: Marshal undefined value
func (*Type[D]) UnmarshalBSON ¶ added in v1.0.5
UnmarshalBSON implements bson.Marshaler interface.
func (*Type[D]) UnmarshalJSON ¶
UnmarshalJSON implements json.Marshaler interface.