pachyderm: github.com/pachyderm/pachyderm/src/server/pkg/sql Index | Files

package sql

import "github.com/pachyderm/pachyderm/src/server/pkg/sql"

Index

Package Files

sql.go

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.