pg

package
v0.0.0-...-73c8340 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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