pg

package
v0.0.0-...-837eb61 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectsListFromContext

func ProjectsListFromContext(ctx context.Context) ([]string, error)

ProjectsListFromContext returns the project list from the context. In the case that the project list was ["*"], we return an empty list, since we do not wish to filter on projects.

Types

type Config

type Config struct {
	PGURL          string `json:"pg_url"`
	Database       string `json:"database"`
	MaxConnections int    `json:"max_connections"`
	MigrationsPath string `json:"migrations"`
}

Config is the configuration this adapter takes

func (*Config) Open

Open returns a storage adapter based on the config.

Jump to

Keyboard shortcuts

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