Versions in this module Expand all Collapse all v1 v1.10.0 Feb 2, 2024 v1.9.0 Jan 26, 2024 Changes in this version + type Optional struct + V T + Valid bool + func NewOptional[T any](v T) Optional[T] + func (n *Optional[T]) Scan(_ any) error + func (n *Optional[T]) UnmarshalJSON(data []byte) error + func (n Optional[T]) MarshalJSON() ([]byte, error) + func (n Optional[T]) Value() (driver.Value, error) v1.8.0 Dec 19, 2023 v1.7.0 Dec 15, 2023 Changes in this version + type NullableInto struct + V T + Valid bool + func NewNullableInto[T NullableIntoValue[T]](v T) NullableInto[T] + func (n *NullableInto[T]) Scan(src any) error + func (n *NullableInto[T]) UnmarshalJSON(data []byte) error + func (n NullableInto[T]) MarshalJSON() ([]byte, error) + func (n NullableInto[T]) Value() (driver.Value, error) + type NullableIntoValue interface + ScanInto func(src any, dst *T) error v1.6.1 Dec 13, 2023 v1.6.0 Jul 26, 2022 Changes in this version + type JSONNullable struct + V T + Valid bool + func NewJSONNullable(v T) JSONNullable[T] + func (n *JSONNullable[T]) Scan(src any) error + func (n *JSONNullable[T]) UnmarshalJSON(data []byte) error + func (n JSONNullable[T]) MarshalJSON() ([]byte, error) + func (n JSONNullable[T]) Value() (driver.Value, error) v1.5.0 Jul 3, 2022 Changes in this version + func NewUUID(id uuid.UUID) uuid.NullUUID v1.4.0 Jun 23, 2022 v1.3.0 Jun 23, 2022 Changes in this version type Time + func (t Time) UTC() driver.Valuer v1.2.3 Jun 20, 2022 v1.2.2 Jun 20, 2022 v1.2.1 Jun 20, 2022 v1.2.0 Apr 27, 2022 Changes in this version + type Bool struct + Bool bool + Valid bool + func NewBool(b bool) Bool + func (b *Bool) Scan(src any) error + func (b *Bool) UnmarshalJSON(data []byte) error + func (b Bool) MarshalJSON() ([]byte, error) + func (b Bool) Value() (driver.Value, error) + type ByteSlice struct + ByteSlice []byte + Valid bool + func NewByteSlice(b []byte) ByteSlice + func (b *ByteSlice) Scan(src any) error + func (b *ByteSlice) UnmarshalJSON(data []byte) error + func (b ByteSlice) MarshalJSON() ([]byte, error) + func (b ByteSlice) Value() (driver.Value, error) + type Float32 struct + Float32 float32 + Valid bool + func NewFloat32(f float32) Float32 + func (f *Float32) Scan(src any) error + func (f *Float32) UnmarshalJSON(data []byte) error + func (f *Float32) Value() (driver.Value, error) + func (f Float32) MarshalJSON() ([]byte, error) + type Float64 struct + Float64 float64 + Valid bool + func NewFloat64(f float64) Float64 + func (f *Float64) Scan(src any) error + func (f *Float64) UnmarshalJSON(data []byte) error + func (f *Float64) Value() (driver.Value, error) + func (f Float64) MarshalJSON() ([]byte, error) + type Int struct + Int int + Valid bool + func NewInt(i int) Int + func (i *Int) Scan(src any) error + func (i *Int) UnmarshalJSON(data []byte) error + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) Value() (driver.Value, error) + type Int16 struct + Int16 int16 + Valid bool + func NewInt16(i int16) Int16 + func (i *Int16) Scan(src any) error + func (i *Int16) UnmarshalJSON(data []byte) error + func (i Int16) MarshalJSON() ([]byte, error) + func (i Int16) Value() (driver.Value, error) + type Int32 struct + Int32 int32 + Valid bool + func NewInt32(i int32) Int32 + func (i *Int32) Scan(src any) error + func (i *Int32) UnmarshalJSON(data []byte) error + func (i Int32) MarshalJSON() ([]byte, error) + func (i Int32) Value() (driver.Value, error) + type Int64 struct + Int64 int64 + Valid bool + func NewInt64(i int64) Int64 + func (i *Int64) Scan(src any) error + func (i *Int64) UnmarshalJSON(data []byte) error + func (i Int64) MarshalJSON() ([]byte, error) + func (i Int64) Value() (driver.Value, error) + type JSONRawMessage struct + RawMessage json.RawMessage + Valid bool + func NewJSONRawMessage(raw json.RawMessage) JSONRawMessage + func (rm *JSONRawMessage) Scan(src any) error + func (rm *JSONRawMessage) UnmarshalJSON(data []byte) error + func (rm JSONRawMessage) MarshalJSON() ([]byte, error) + func (rm JSONRawMessage) Value() (driver.Value, error) + type Nullable struct + V T + Valid bool + func NewNullable(v T) Nullable[T] + func (n *Nullable[T]) Scan(src any) error + func (n *Nullable[T]) UnmarshalJSON(data []byte) error + func (n Nullable[T]) MarshalJSON() ([]byte, error) + func (n Nullable[T]) Value() (driver.Value, error) + type NullableValue interface + type String struct + String string + Valid bool + func NewString(s string) String + func (s *String) Scan(src any) error + func (s *String) UnmarshalJSON(data []byte) error + func (s String) MarshalJSON() ([]byte, error) + func (s String) Value() (driver.Value, error) + type Time struct + Time time.Time + Valid bool + func NewTime(t time.Time) Time + func (t *Time) Scan(src any) error + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) Value() (driver.Value, error) v1.1.0 Apr 24, 2022 v1.0.0 Apr 24, 2022