out

package
v0.0.0-...-3259c9a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alpha

type Alpha struct {
	Key *string `json:"key"`
}

Alpha represents the Postgres composite type "alpha".

type DBQuerier

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

func NewQuerier

func NewQuerier(conn genericConn) *DBQuerier

NewQuerier creates a DBQuerier that implements Querier.

func (*DBQuerier) Alpha

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

Alpha implements Querier.Alpha.

func (*DBQuerier) AlphaCompositeArray

func (q *DBQuerier) AlphaCompositeArray(ctx context.Context) ([]Alpha, error)

AlphaCompositeArray implements Querier.AlphaCompositeArray.

func (*DBQuerier) AlphaNested

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

AlphaNested implements Querier.AlphaNested.

func (*DBQuerier) Bravo

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

Bravo implements Querier.Bravo.

type Querier

type Querier interface {
	AlphaNested(ctx context.Context) (string, error)

	AlphaCompositeArray(ctx context.Context) ([]Alpha, error)

	Alpha(ctx context.Context) (string, error)

	Bravo(ctx context.Context) (string, error)
}

Querier is a typesafe Go interface backed by SQL queries.

Jump to

Keyboard shortcuts

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