database

package
v0.0.0-...-85e3e2e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresConnection

func NewPostgresConnection(cfg PostgresConfig) (*sqlx.DB, error)

Types

type PostgresConfig

type PostgresConfig struct {
	Host     string `envconfig:"Host"`
	Port     int    `envconfig:"Port"`
	Username string `envconfig:"Username"`
	Name     string `envconfig:"Name"`
	SSLMode  string `envconfig:"SSLMode"`
	Password string `envconfig:"Password"`
}

Jump to

Keyboard shortcuts

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