dbx

package
v0.0.0-...-3d4fb19 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Driver is the PostgreSQL driver used by Hubris.
	Driver = "pgx"
	// MaxAttempts are the number of retries that can be made.
	MaxAttempts = 20
	// MaxTimeout is the number of seconds to wait between connection attempts.
	MaxTimeout = time.Second * 10
)

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, dsn string) (*sql.DB, error)

Open opens a connection to a database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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