pgtype

package
v1.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolArray

type BoolArray[T ~bool] []T

BoolArray represents a one-dimensional array of the PostgreSQL boolean type.

func (*BoolArray[T]) Scan

func (a *BoolArray[T]) Scan(src interface{}) error

Scan implements the sql.Scanner interface.

func (BoolArray[T]) Value

func (a BoolArray[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type ByteaArray

type ByteaArray[T ~[]byte] []T

ByteaArray represents a one-dimensional array of the PostgreSQL bytea type.

func (*ByteaArray[T]) Scan

func (a *ByteaArray[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (ByteaArray[T]) Value

func (a ByteaArray[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface. It uses the "hex" format which is only supported on PostgreSQL 9.0 or newer.

type Float32Array

type Float32Array[T ~float32] []T

Float32Array represents a one-dimensional array of the PostgreSQL double precision type.

func (*Float32Array[T]) Scan

func (a *Float32Array[T]) Scan(src interface{}) error

Scan implements the sql.Scanner interface.

func (Float32Array[T]) Value

func (a Float32Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Float64Array

type Float64Array[T ~float64] []T

Float64Array represents a one-dimensional array of the PostgreSQL double precision type.

func (*Float64Array[T]) Scan

func (a *Float64Array[T]) Scan(src interface{}) error

Scan implements the sql.Scanner interface.

func (Float64Array[T]) Value

func (a Float64Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int16Array

type Int16Array[T ~int16] []T

Int64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Int16Array[T]) Scan

func (a *Int16Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Int16Array[T]) Value

func (a Int16Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int32Array

type Int32Array[T ~int32] []T

Int64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Int32Array[T]) Scan

func (a *Int32Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Int32Array[T]) Value

func (a Int32Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int64Array

type Int64Array[T ~int64] []T

Int64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Int64Array[T]) Scan

func (a *Int64Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Int64Array[T]) Value

func (a Int64Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int8Array

type Int8Array[T ~int8] []T

Int64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Int8Array[T]) Scan

func (a *Int8Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Int8Array[T]) Value

func (a Int8Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type IntArray

type IntArray[T ~int] []T

Int64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*IntArray[T]) Scan

func (a *IntArray[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (IntArray[T]) Value

func (a IntArray[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type StringArray

type StringArray[T ~string] []T

StringArray represents a one-dimensional array of the PostgreSQL character types.

func (*StringArray[T]) Scan

func (a *StringArray[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (StringArray[T]) Value

func (a StringArray[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Uint16Array

type Uint16Array[T ~uint16] []T

Uint64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Uint16Array[T]) Scan

func (a *Uint16Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Uint16Array[T]) Value

func (a Uint16Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Uint32Array

type Uint32Array[T ~uint32] []T

Uint64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Uint32Array[T]) Scan

func (a *Uint32Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Uint32Array[T]) Value

func (a Uint32Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Uint64Array

type Uint64Array[T ~uint64] []T

Uint64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Uint64Array[T]) Scan

func (a *Uint64Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Uint64Array[T]) Value

func (a Uint64Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Uint8Array

type Uint8Array[T ~uint8] []T

Uint64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*Uint8Array[T]) Scan

func (a *Uint8Array[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Uint8Array[T]) Value

func (a Uint8Array[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type UintArray

type UintArray[T constraints.Unsigned] []T

Uint64Array represents a one-dimensional array of the PostgreSQL integer types.

func (*UintArray[T]) Scan

func (a *UintArray[T]) Scan(src any) error

Scan implements the sql.Scanner interface.

func (UintArray[T]) Value

func (a UintArray[T]) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

Jump to

Keyboard shortcuts

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