postgres

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package postgres provides an interface to work Postgres application.

Index

Constants

View Source
const ResetPasswordsQuery = `` /* 326-byte string literal not displayed */

ResetPasswordsQuery provides a template for a reset password query.

View Source
const ResetPasswordsQueryWhere = ` and rolname not in (%s)`

ResetPasswordsQueryWhere provides a template for a reset password where clause.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *resources.AppConfig, user resources.EphemeralUser) error

CreateUser defines a method for creation of Postgres user.

func List

func List(r runners.Runner, label string) ([]string, error)

List gets started Postgres instances filtered by label.

func ResetAllPasswords

func ResetAllPasswords(c *resources.AppConfig, whitelistUsers []string) error

ResetAllPasswords defines a method for resetting password of all Postgres users.

func Start

func Start(r runners.Runner, c *resources.AppConfig) error

Start starts Postgres instance.

func Stop

func Stop(r runners.Runner, p *resources.Pool, name string) error

Stop stops Postgres instance.

Types

This section is empty.

Directories

Path Synopsis
Package pgconfig provides tools for work with Postgres configuration.
Package pgconfig provides tools for work with Postgres configuration.

Jump to

Keyboard shortcuts

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