storage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPostgresNameLength = 64

MaxPostgresNameLength limits the size of the application name

Variables

View Source
var ErrNameTooLong = errors.New("name exceeds maximum length for postgres application names")

ErrNameTooLong indicates when app name is too long

Functions

func ConnectDatabase

func ConnectDatabase(ctx context.Context, url string, name string) (*pg.DB, error)

ConnectDatabase accepts a connection url and application name along with a context.Context which is respected during connection and ping. A *pg.DB is returned suitable for use with chainviz.Query.

Types

This section is empty.

Jump to

Keyboard shortcuts

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