pgkit

package
v0.0.0-...-6bc37de Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 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 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 PostgresSQL" required:"true"`
}

Jump to

Keyboard shortcuts

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