writer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONWriter

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

JSONWriter for MongoDB-style dumps.

func NewJSONWriter

func NewJSONWriter(w io.Writer) *JSONWriter

func (*JSONWriter) Flush

func (jw *JSONWriter) Flush() error

func (*JSONWriter) WriteData

func (jw *JSONWriter) WriteData(table string, data []string) error

func (*JSONWriter) WriteHeader

func (jw *JSONWriter) WriteHeader(dbType string) error

func (*JSONWriter) WriteSchema

func (jw *JSONWriter) WriteSchema(table, schema string) error

type SQLWriter

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

SQLWriter implements Writer for SQL dumps.

func NewSQLWriter

func NewSQLWriter(w io.Writer) *SQLWriter

func (*SQLWriter) Flush

func (sw *SQLWriter) Flush() error

func (*SQLWriter) WriteData

func (sw *SQLWriter) WriteData(table string, data []string) error

func (*SQLWriter) WriteHeader

func (sw *SQLWriter) WriteHeader(dbType string) error

func (*SQLWriter) WriteSchema

func (sw *SQLWriter) WriteSchema(table, schema string) error

Jump to

Keyboard shortcuts

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