pq

package
v2.2.92 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64Array

type Int64Array struct {
	pgtype.Int8Array
}

func NewInt64Array

func NewInt64Array(value []int64) Int64Array

func (Int64Array) AsSlice

func (i Int64Array) AsSlice() []int64

func (Int64Array) MarshalJSON

func (i Int64Array) MarshalJSON() ([]byte, error)

func (*Int64Array) UnmarshalJSON added in v2.1.7

func (i *Int64Array) UnmarshalJSON(b []byte) error

type StringArray

type StringArray struct {
	pgtype.TextArray
}

func NewStringArray

func NewStringArray(value []string) StringArray

func (StringArray) AsSlice

func (s StringArray) AsSlice() []string

func (StringArray) Get

func (s StringArray) Get(i int) string

func (StringArray) Len

func (s StringArray) Len() int

func (StringArray) MarshalJSON

func (s StringArray) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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