sql

package
v1.8.2-c2dc1d719856f44... Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGDumpReader

type PGDumpReader struct {
	Header []byte
	Footer []byte
	// contains filtered or unexported fields
}

PGDumpReader parses a pgdump file into a header, rows, and a footer

func NewPGDumpReader

func NewPGDumpReader(r *bufio.Reader) *PGDumpReader

NewPGDumpReader creates a new PGDumpReader

func (*PGDumpReader) ReadRow

func (r *PGDumpReader) ReadRow() ([]byte, error)

ReadRow parses the pgdump file and populates the header and the footer It returns EOF when done, and at that time both the Header and Footer will be populated. Both header and footer are required. If either are missing, an error is returned

Jump to

Keyboard shortcuts

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