postgresql

package
Version: v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

README

PostgreSQL plugin

The PostgreSQL plugin will backup a Postgre SQL database.

Configuration:
[source.postgresql]
  "host" = "127.0.0.1"
  "port" = "5432"
  "user" = "postgres"
  "password" = ""
  "db" = ""
Fields
  • host
  • port
  • user
  • password
  • db
External dependencies
  • pg_dump
  • pg_restore

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	Host     string `toml:"host"`
	Port     string `toml:"port"`
	User     string `toml:"user"`
	Password string `toml:"password"`
	DB       string `toml:"db"`
}

Source is a PostgreSQL source

func (*Source) Backup

func (s *Source) Backup(ctx *context.Context) (io.ReadCloser, error)

func (*Source) Init

func (s *Source) Init() error

func (*Source) Name

func (s *Source) Name() string

func (*Source) Restore

func (s *Source) Restore(ctx *context.Context, r io.Reader) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL