pgkit

package
v0.0.0-...-fe7ef4e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGClient

type PGClient struct {
	*pg.DB
	// contains filtered or unexported fields
}

func NewPGClient

func NewPGClient(ctx context.Context, conf *PGConfig) *PGClient

func (*PGClient) Close

func (c *PGClient) Close() error

type PGConfig

type PGConfig struct {
	URL string `long:"url" env:"URL" description:"the URL of PostgreSQL" required:"true"`
}

Jump to

Keyboard shortcuts

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