postgres

package
v0.0.0-...-796e579 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const KeyPass = "postgress.pass"

KeyPass is key to postgresql root password.

View Source
const Name = "postgres"

Name is the app's name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

Postgres is the postgresql database app.

func New

func New(c homeapp.Core) *Postgres

New creates a new postgres app.

func (*Postgres) Change

func (p *Postgres) Change(from, to *drvapi.AppMeta) error

Change changes the version from one to another.

func (*Postgres) CreateDB

func (p *Postgres) CreateDB(name, pwd string) error

CreateDB creates a new database.

func (*Postgres) DropDB

func (p *Postgres) DropDB(name string) error

DropDB drops a database.

func (*Postgres) Start

func (p *Postgres) Start() error

Start starts the app.

func (*Postgres) Stop

func (p *Postgres) Stop() error

Stop stops the app.

Jump to

Keyboard shortcuts

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