Versions in this module Expand all Collapse all v0 v0.0.111 Dec 18, 2025 Changes in this version + func ToJSONDT(dt time.Time) string + func TryIfInt64(v any, def int64) int64 + type SqlBool = SqlNull[bool] + func NewSqlBool(v bool) SqlBool + type SqlDate struct + func NewSqlDate(v time.Time) SqlDate + func SqlDateNow() SqlDate + func (d *SqlDate) UnmarshalJSON(b []byte) error + func (d SqlDate) MarshalJSON() ([]byte, error) + func (d SqlDate) String() string + func (d SqlDate) Value() (driver.Value, error) + type SqlFloat64 = SqlNull[float64] + func NewSqlFloat64(v float64) SqlFloat64 + type SqlInt16 = SqlNull[int16] + func NewSqlInt16(v int16) SqlInt16 + type SqlInt32 = SqlNull[int32] + func NewSqlInt32(v int32) SqlInt32 + type SqlInt64 = SqlNull[int64] + func NewSqlInt64(v int64) SqlInt64 + type SqlJSONB []byte + func (n *SqlJSONB) Scan(value any) error + func (n *SqlJSONB) UnmarshalJSON(b []byte) error + func (n SqlJSONB) AsMap() (map[string]any, error) + func (n SqlJSONB) AsSlice() ([]any, error) + func (n SqlJSONB) MarshalJSON() ([]byte, error) + func (n SqlJSONB) Value() (driver.Value, error) + type SqlNull struct + Val T + Valid bool + func NewSql[T any](value any) SqlNull[T] + func Null[T any](v T, valid bool) SqlNull[T] + func (n *SqlNull[T]) FromString(s string) error + func (n *SqlNull[T]) Scan(value any) error + func (n *SqlNull[T]) UnmarshalJSON(b []byte) error + func (n SqlNull[T]) Bool() bool + func (n SqlNull[T]) Float64() float64 + func (n SqlNull[T]) Int64() int64 + func (n SqlNull[T]) MarshalJSON() ([]byte, error) + func (n SqlNull[T]) String() string + func (n SqlNull[T]) Time() time.Time + func (n SqlNull[T]) UUID() uuid.UUID + func (n SqlNull[T]) Value() (driver.Value, error) + type SqlString = SqlNull[string] + func NewSqlString(v string) SqlString + type SqlTime struct + func NewSqlTime(v time.Time) SqlTime + func SqlTimeNow() SqlTime + func (t *SqlTime) UnmarshalJSON(b []byte) error + func (t SqlTime) MarshalJSON() ([]byte, error) + func (t SqlTime) String() string + func (t SqlTime) Value() (driver.Value, error) + type SqlTimeStamp struct + func NewSqlTimeStamp(v time.Time) SqlTimeStamp + func SqlTimeStampNow() SqlTimeStamp + func (t *SqlTimeStamp) UnmarshalJSON(b []byte) error + func (t SqlTimeStamp) MarshalJSON() ([]byte, error) + func (t SqlTimeStamp) Value() (driver.Value, error) + type SqlUUID = SqlNull[uuid.UUID] + func NewSqlUUID(v uuid.UUID) SqlUUID