Documentation ¶
Index ¶
- func FromNullBool(v sql.NullBool) *wrapperspb.BoolValue
- func FromNullFloat64(v sql.NullFloat64) *wrapperspb.DoubleValue
- func FromNullInt32(v sql.NullInt32) *wrapperspb.Int32Value
- func FromNullInt64(v sql.NullInt64) *wrapperspb.Int64Value
- func FromNullString(v sql.NullString) *wrapperspb.StringValue
- func FromNullTime(v sql.NullTime) *timestamppb.Timestamp
- func FromNullType[V interface{}, T interface{}](valid bool, value V, parse func(V) *T) *T
- func ToNullBool(v *wrapperspb.BoolValue) sql.NullBool
- func ToNullFloat64(v *wrapperspb.DoubleValue) sql.NullFloat64
- func ToNullInt32(v *wrapperspb.Int32Value) sql.NullInt32
- func ToNullInt64(v *wrapperspb.Int64Value) sql.NullInt64
- func ToNullString(v *wrapperspb.StringValue) sql.NullString
- func ToNullTime(v *timestamppb.Timestamp) sql.NullTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromNullBool ¶
func FromNullBool(v sql.NullBool) *wrapperspb.BoolValue
func FromNullFloat64 ¶
func FromNullFloat64(v sql.NullFloat64) *wrapperspb.DoubleValue
func FromNullInt32 ¶
func FromNullInt32(v sql.NullInt32) *wrapperspb.Int32Value
func FromNullInt64 ¶
func FromNullInt64(v sql.NullInt64) *wrapperspb.Int64Value
func FromNullString ¶
func FromNullString(v sql.NullString) *wrapperspb.StringValue
func FromNullTime ¶
func FromNullTime(v sql.NullTime) *timestamppb.Timestamp
func FromNullType ¶
func FromNullType[V interface{}, T interface{}](valid bool, value V, parse func(V) *T) *T
func ToNullBool ¶
func ToNullBool(v *wrapperspb.BoolValue) sql.NullBool
func ToNullFloat64 ¶
func ToNullFloat64(v *wrapperspb.DoubleValue) sql.NullFloat64
func ToNullInt32 ¶
func ToNullInt32(v *wrapperspb.Int32Value) sql.NullInt32
func ToNullInt64 ¶
func ToNullInt64(v *wrapperspb.Int64Value) sql.NullInt64
func ToNullString ¶
func ToNullString(v *wrapperspb.StringValue) sql.NullString
func ToNullTime ¶
func ToNullTime(v *timestamppb.Timestamp) sql.NullTime
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.