postgres

package
v0.0.0-...-b2d74e5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const GROUP_NAME = "restore"

Module Constants

View Source
const MODULE_NAME = "postgresql"
View Source
const TYPE_NAME = "output"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN string
}

Config PostgreSQL

type RestoreOutputPostgresql

type RestoreOutputPostgresql struct {
	core.Module
	// contains filtered or unexported fields
}

BackupInputPostgresql is struct storing inner properties for mysql backups

func (*RestoreOutputPostgresql) Close

func (r *RestoreOutputPostgresql) Close() error

Close connection to DB.

func (*RestoreOutputPostgresql) GetConfig

func (r *RestoreOutputPostgresql) GetConfig() interface{}

GetConfig returns Config of module

func (*RestoreOutputPostgresql) GetGroup

GetGroup returns module group

func (*RestoreOutputPostgresql) GetName

func (r *RestoreOutputPostgresql) GetName() string

GetName returns name of module

func (*RestoreOutputPostgresql) GetType

GetType returns module type

func (*RestoreOutputPostgresql) InitModule

func (r *RestoreOutputPostgresql) InitModule(cfg interface{}) error

InitModule initialize connection to DB

func (*RestoreOutputPostgresql) InitPipe

func (r *RestoreOutputPostgresql) InitPipe(w io.Writer, rd io.Reader) error

InitPipe initialize reader and writer

func (*RestoreOutputPostgresql) Run

Run dumps database

Jump to

Keyboard shortcuts

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