cockroach: github.com/cockroachdb/cockroach/pkg/cmd/cr2pg/sqlstream Index | Files

package sqlstream

import "github.com/cockroachdb/cockroach/pkg/cmd/cr2pg/sqlstream"

Package sqlstream streams an io.Reader into SQL statements.

Index

Package Files

stream.go

type Stream Uses

type Stream struct {
    // contains filtered or unexported fields
}

Stream streams an io.Reader into tree.Statements.

func NewStream Uses

func NewStream(r io.Reader) *Stream

NewStream returns a new Stream to read from r.

func (*Stream) Next Uses

func (s *Stream) Next() (tree.Statement, error)

Next returns the next statement, or io.EOF if complete.

Package sqlstream imports 6 packages (graph) and is imported by 2 packages. Updated 2020-05-16. Refresh now. Tools for package owners.