pg

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(lc fx.Lifecycle, cfg *Config) (*sql.DB, error)

NewDB for SQL.

Types

type Config

type Config struct {
	Name string `envconfig:"SERVICE_NAME" required:"true"`
	URL  string `envconfig:"POSTGRESQL_URL" required:"true"`
}

Config for SQL.

func NewConfig

func NewConfig() (*Config, error)

NewConfig for SQL.

Jump to

Keyboard shortcuts

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