pg

package
v0.0.0-...-f30a32e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDBURI

func DefaultDBURI() string

DefaultDBURI returns the URI string for the default postgres instance based on flags/env vars.

func MustConnectDefaultPostgresDB

func MustConnectDefaultPostgresDB() *sqlx.DB

MustConnectDefaultPostgresDB tries to connect to default postgres database as defined by the environment variables/flags.

func MustCreateDefaultPostgresDB

func MustCreateDefaultPostgresDB() *sqlx.DB

MustCreateDefaultPostgresDB creates a postgres DB instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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