Documentation
¶
Index ¶
- func NewBoolFromNull(value sql.NullBool) bool
- func NewBoolPtr(value bool) *bool
- func NewInt32FromNull(value sql.NullInt32) int32
- func NewInt32Ptr(value int32) *int32
- func NewInt64FromNull(value sql.NullInt64) int64
- func NewInt64Ptr(value int64) *int64
- func NewNullBool(value interface{}) sql.NullBool
- func NewNullInt32(value interface{}) sql.NullInt32
- func NewNullInt64(value interface{}) sql.NullInt64
- func NewNullString(value interface{}) sql.NullString
- func NewNullTime(value interface{}) sql.NullTime
- func NewStringFromNull(value sql.NullString) string
- func NewStringPtr(value string) *string
- func NewTimeFromNull(value sql.NullTime) time.Time
- func NewTimePtr(value time.Time) *time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBoolFromNull ¶
func NewBoolPtr ¶
func NewInt32FromNull ¶
func NewInt32Ptr ¶
func NewInt64FromNull ¶
func NewInt64Ptr ¶
func NewNullBool ¶
func NewNullInt32 ¶
func NewNullInt64 ¶
func NewNullString ¶
func NewNullString(value interface{}) sql.NullString
func NewNullTime ¶
NewNullTime creates a new sql.NullTime from a time.Time or *time.Time value.
func NewStringFromNull ¶
func NewStringFromNull(value sql.NullString) string
func NewStringPtr ¶
func NewTimeFromNull ¶
NewTimeFromNull returns a time.Time value from a sql.NullTime. If the NullTime is not valid, it returns the zero value of time.Time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.