package uuid

import "github.com/jackc/pgtype/ext/gofrs-uuid"

Index

Types

type UUID

type UUID struct {
	UUID   uuid.UUID
	Status pgtype.Status
}

func (*UUID) AssignTo

func (src *UUID) AssignTo(dst interface{}) error

func (*UUID) DecodeBinary

func (dst *UUID) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*UUID) DecodeText

func (dst *UUID) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (UUID) EncodeBinary

func (src UUID) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (UUID) EncodeText

func (src UUID) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (UUID) Get

func (dst UUID) Get() interface{}

func (UUID) MarshalJSON

func (src UUID) MarshalJSON() ([]byte, error)

func (*UUID) Scan

func (dst *UUID) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*UUID) Set

func (dst *UUID) Set(src interface{}) error

func (*UUID) UnmarshalJSON

func (dst *UUID) UnmarshalJSON(b []byte) error

func (UUID) Value

func (src UUID) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

Source Files

uuid.go

Version
v1.14.4 (latest)
Published
Oct 18, 2024
Platform
linux/amd64
Imports
5 packages
Last checked
1 month ago

Tools for package owners.