pg

package
v1.65.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Unlicense Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(params DBParams) (*sql.DB, error)

NewDB for SQL.

Types

type Config

type Config struct {
	URL string `yaml:"url"`
}

Config for SQL.

type DBParams added in v1.65.0

type DBParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *Config
	Version   version.Version
}

DBParams for SQL.

Directories

Path Synopsis
trace

Jump to

Keyboard shortcuts

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