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 // 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
Click to show internal directories.
Click to hide internal directories.