pg

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

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

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