pgsqlx

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextSequenceSQL added in v1.2.20

func NextSequenceSQL(table, column string) string

func ResetSequenceSQL

func ResetSequenceSQL(table, column string, starts ...int64) string

Types

type BoolArray

type BoolArray []bool

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

func (*BoolArray) Scan

func (a *BoolArray) Scan(src any) error

Scan implements the sql.Scanner interface.

func (BoolArray) Slice

func (a BoolArray) Slice() []bool

func (BoolArray) Value

func (a BoolArray) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Float32Array

type Float32Array []float32

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

func (*Float32Array) Scan

func (a *Float32Array) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Float32Array) Slice

func (a Float32Array) Slice() []float32

func (Float32Array) Value

func (a Float32Array) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Float64Array

type Float64Array []float64

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

func (*Float64Array) Scan

func (a *Float64Array) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Float64Array) Slice

func (a Float64Array) Slice() []float64

func (Float64Array) Value

func (a Float64Array) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int32Array

type Int32Array []int32

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

func (*Int32Array) Scan

func (a *Int32Array) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Int32Array) Slice

func (a Int32Array) Slice() []int32

func (Int32Array) Value

func (a Int32Array) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Int64Array

type Int64Array []int64

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

func (*Int64Array) Scan

func (a *Int64Array) Scan(src any) error

Scan implements the sql.Scanner interface.

func (Int64Array) Slice

func (a Int64Array) Slice() []int64

func (Int64Array) Value

func (a Int64Array) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type IntArray

type IntArray []int

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

func (*IntArray) Scan

func (a *IntArray) Scan(src any) error

Scan implements the sql.Scanner interface.

func (IntArray) Slice

func (a IntArray) Slice() []int

func (IntArray) Value

func (a IntArray) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type StringArray

type StringArray []string

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

func (*StringArray) Scan

func (a *StringArray) Scan(src any) error

Scan implements the sql.Scanner interface.

func (StringArray) Slice

func (a StringArray) Slice() []string

func (StringArray) Value

func (a StringArray) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

type Vector

type Vector []float64

Vector is a wrapper for []float64 to implement sql.Scanner and driver.Valuer.

func (*Vector) Parse

func (v *Vector) Parse(s string) error

Parse parses a string representation of a vector.

func (*Vector) Scan

func (v *Vector) Scan(src any) (err error)

Scan implements the sql.Scanner interface.

func (Vector) Slice

func (v Vector) Slice() []float64

Slice returns the []float64 slice.

func (Vector) String

func (v Vector) String() string

String returns a string representation of the vector.

func (Vector) Value

func (v Vector) Value() (driver.Value, error)

Value implements the driver.Valuer interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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