pgtypeutils

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBool

func DecodeBool(value pgtype.Bool) *bool

func DecodeInt2

func DecodeInt2(value pgtype.Int2) *int16

func DecodeInt4

func DecodeInt4(value pgtype.Int4) *int32

func DecodeInt8

func DecodeInt8(value pgtype.Int8) *int64

func DecodeText

func DecodeText(value pgtype.Text) *string

func DecodeTime

func DecodeTime(value pgtype.Timestamp) time.Time

func EncodeBool

func EncodeBool(value *bool) pgtype.Bool

func EncodeInt2

func EncodeInt2(value *int16) pgtype.Int2

func EncodeInt4

func EncodeInt4(value *int32) pgtype.Int4

func EncodeInt8

func EncodeInt8(value *int64) pgtype.Int8

func EncodeText

func EncodeText(value *string) pgtype.Text

func EncodeTime

func EncodeTime(value time.Time) pgtype.Timestamp

func EncodeUUID

func EncodeUUID(id uuid.UUID) (pgtype.UUID, error)

func IsUUIDNil

func IsUUIDNil(id pgtype.UUID) (bool, error)

func ParseUUID

func ParseUUID(id pgtype.UUID) (uuid.UUID, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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