pachyderm: Index | Files

package sql

import ""


Package Files


type PGDumpReader Uses

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 Uses

func NewPGDumpReader(r *bufio.Reader) *PGDumpReader

NewPGDumpReader creates a new PGDumpReader

func (*PGDumpReader) ReadRow Uses

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

Package sql imports 4 packages (graph) and is imported by 2 packages. Updated 2019-01-29. Refresh now. Tools for package owners.