uuid

package module
v0.0.0-...-1d42886 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 3 Imported by: 34

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(tm *pgtype.Map)

Register registers the github.com/gofrs/uuid integration with a pgtype.Map.

func TryWrapUUIDEncodePlan

func TryWrapUUIDEncodePlan(value interface{}) (plan pgtype.WrappedEncodePlanNextSetter, nextValue interface{}, ok bool)

func TryWrapUUIDScanPlan

func TryWrapUUIDScanPlan(target interface{}) (plan pgtype.WrappedScanPlanNextSetter, nextDst interface{}, ok bool)

Types

type NullUUID

type NullUUID uuid.NullUUID

func (*NullUUID) ScanUUID

func (u *NullUUID) ScanUUID(v pgtype.UUID) error

func (NullUUID) UUIDValue

func (u NullUUID) UUIDValue() (pgtype.UUID, error)

type UUID

type UUID uuid.UUID

func (*UUID) ScanUUID

func (u *UUID) ScanUUID(v pgtype.UUID) error

func (UUID) UUIDValue

func (u UUID) UUIDValue() (pgtype.UUID, error)

type UUIDCodec

type UUIDCodec struct {
	pgtype.UUIDCodec
}

func (UUIDCodec) DecodeValue

func (UUIDCodec) DecodeValue(tm *pgtype.Map, oid uint32, format int16, src []byte) (interface{}, error)

Jump to

Keyboard shortcuts

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