null

package
v0.0.0-...-1baf13c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 Bool

func Bool(b bool) sql.NullBool

Bool returns a nullable bool.

func BoolPointer

func BoolPointer(b *bool) sql.NullBool

BoolPointer converts bool pointer to sql.NullBool

func Int64

func Int64(i int64) sql.NullInt64

Int64 returns a nullable int64

func Int64Pointer

func Int64Pointer(i *int64) sql.NullInt64

Int64Pointer converts a int64 pointer to sql.NullInt64

func String

func String(s string) sql.NullString

String returns a nullable string

func StringPointer

func StringPointer(s *string) sql.NullString

StringPointer converts string pointer to sql.NullString

func Time

func Time(t time.Time) pq.NullTime

Time returns a nullable Time

func TimePointer

func TimePointer(t *time.Time) pq.NullTime

TimePointer converts time.Time pointer to pq.NullTime

Types

This section is empty.

Source Files

  • null.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL