Documentation
¶
Index ¶
- Variables
- func Bool(b bool) sql.NullBool
- func BoolPointer(b *bool) sql.NullBool
- func Int64(i int64) sql.NullInt64
- func Int64Pointer(i *int64) sql.NullInt64
- func String(s string) sql.NullString
- func StringPointer(s *string) sql.NullString
- func Time(t time.Time) pq.NullTime
- func TimePointer(t *time.Time) pq.NullTime
Constants ¶
This section is empty.
Variables ¶
View Source
var B = Bool
B returns a nullable bool.
View Source
var I64 = Int64
I64 returns a nullable int64.
View Source
var S = String
S returns a nullable string.
View Source
var T = Time
T returns a nullable time.Time.
Functions ¶
func BoolPointer ¶
BoolPointer converts bool pointer to sql.NullBool
func Int64Pointer ¶
Int64Pointer converts a int64 pointer to sql.NullInt64
func StringPointer ¶
func StringPointer(s *string) sql.NullString
StringPointer converts string pointer to sql.NullString
Types ¶
This section is empty.
Source Files
¶
- null.go
Click to show internal directories.
Click to hide internal directories.