go_pointer_types

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register added in v1.6.0

func Register(ctx context.Context, conn RegisterConn) error

Types

type DBQuerier

type DBQuerier struct {
	// contains filtered or unexported fields
}

func NewQuerier

func NewQuerier(ctx context.Context, conn genericConn) (*DBQuerier, error)

NewQuerier creates a DBQuerier that implements Querier.

func (*DBQuerier) GenSeries

func (q *DBQuerier) GenSeries(ctx context.Context) ([]*int, error)

GenSeries implements Querier.GenSeries.

func (*DBQuerier) GenSeries1

func (q *DBQuerier) GenSeries1(ctx context.Context) (*int, error)

GenSeries1 implements Querier.GenSeries1.

func (*DBQuerier) GenSeriesArr

func (q *DBQuerier) GenSeriesArr(ctx context.Context) ([][]int, error)

GenSeriesArr implements Querier.GenSeriesArr.

func (*DBQuerier) GenSeriesArr1

func (q *DBQuerier) GenSeriesArr1(ctx context.Context) ([]int, error)

GenSeriesArr1 implements Querier.GenSeriesArr1.

func (*DBQuerier) GenSeriesStr

func (q *DBQuerier) GenSeriesStr(ctx context.Context) ([]*string, error)

GenSeriesStr implements Querier.GenSeriesStr.

func (*DBQuerier) GenSeriesStr1

func (q *DBQuerier) GenSeriesStr1(ctx context.Context) (*string, error)

GenSeriesStr1 implements Querier.GenSeriesStr1.

type Querier

type Querier interface {
	GenSeries1(ctx context.Context) (*int, error)

	GenSeries(ctx context.Context) ([]*int, error)

	GenSeriesArr1(ctx context.Context) ([]int, error)

	GenSeriesArr(ctx context.Context) ([][]int, error)

	GenSeriesStr1(ctx context.Context) (*string, error)

	GenSeriesStr(ctx context.Context) ([]*string, error)
}

Querier is a typesafe Go interface backed by SQL queries.

type RegisterConn added in v1.6.0

type RegisterConn interface {
	LoadType(ctx context.Context, typeName string) (*pgtype.Type, error)
	TypeMap() *pgtype.Map
}

Jump to

Keyboard shortcuts

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