uuid

package module
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 5 Imported by: 1

README

pgx-google-uuid

github.com/google/uuid type support for github.com/jackc/pgx PostgreSQL driver

Major package version corresponds to the major pgx version, e.g.:

  • github.com/vgarvardt/pgx-google-uuid/v4 -> github.com/jackc/pgx/v4
  • github.com/vgarvardt/pgx-google-uuid/v5 -> github.com/jackc/pgx/v5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

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

UUID pgx type wrapper for google/uuid.UUID

func (*UUID) AssignTo

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

AssignTo implements pgtype.Value interface

func (*UUID) DecodeBinary

func (u *UUID) DecodeBinary(_ *pgtype.ConnInfo, src []byte) error

DecodeBinary implements pgtype.BinaryDecoder interface

func (*UUID) DecodeText

func (u *UUID) DecodeText(_ *pgtype.ConnInfo, src []byte) error

DecodeText implemnts pgtype.TextDecoder interface

func (UUID) EncodeBinary

func (u UUID) EncodeBinary(_ *pgtype.ConnInfo, buf []byte) ([]byte, error)

EncodeBinary implements pgtype.BinaryEncoder interface

func (UUID) EncodeText

func (u UUID) EncodeText(_ *pgtype.ConnInfo, buf []byte) ([]byte, error)

EncodeText implements pgtype.TextEncoder interface

func (UUID) Get

func (u UUID) Get() interface{}

Get implements pgtype.Value interface

func (UUID) MarshalJSON

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

MarshalJSON implements encoding/json.Marshaler interface

func (*UUID) Scan

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

Scan implements the database/sql.Scanner interface.

func (*UUID) Set

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

Set implements pgtype.Value interface

func (*UUID) UnmarshalJSON

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

UnmarshalJSON implements encoding/json.Unmarshaler interface

func (UUID) Value

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

Value implements the database/sql/driver.Valuer interface.

Jump to

Keyboard shortcuts

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