postgres

package
v0.0.0-...-469622b Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectString

func ConnectString(host string, port int, user, password, dbName string, ssl bool, timezone string) string

func Init

func Init(ctx context.Context, connectString string) (db *sqlx.DB, err error)

func TestDB

func TestDB(ctx context.Context, dbName string) (db *sqlx.DB, err error)

Types

type Params

type Params struct {
	Host     string
	Port     int
	User     string
	Password string
	DbName   string
	Ssl      bool
	Timezone string
}

func TestParams

func TestParams() Params

Jump to

Keyboard shortcuts

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