db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientPg

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

func NewClientPg

func NewClientPg(ctx context.Context, t *testing.T, conf Config) (*ClientPg, error)

func (*ClientPg) DB

func (p *ClientPg) DB() *sql.DB

func (*ClientPg) Migrate

func (p *ClientPg) Migrate(migrateDir string) error

type Config

type Config struct {
	Host     string
	User     string
	Port     int
	DbName   string
	Password string
}

func (Config) String

func (c Config) String() string

Jump to

Keyboard shortcuts

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