exporters

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyExportContent = errors.New("fixture.exporter: empty export content")
)

Functions

This section is empty.

Types

type ExportContent

type ExportContent struct {
	Table   string       `json:"table" yaml:"table"`
	Version string       `json:"version" yaml:"version"`
	Rows    []*SortedMap `json:"rows" yaml:"rows"`
}

type JsonExporter

type JsonExporter struct{}

func NewJsonExporter

func NewJsonExporter() *JsonExporter

func (*JsonExporter) Export

func (exporter *JsonExporter) Export(tableName string, columns []string, rawRows [][][]byte) ([]byte, error)

type SQLExporter

type SQLExporter struct{}

func NewSQLExporter

func NewSQLExporter() *SQLExporter

func (*SQLExporter) Export

func (exporter *SQLExporter) Export(tableName string, columns []string, rawRows [][][]byte) ([]byte, error)

type SortedMap

type SortedMap struct {
	*orderedmap.OrderedMap
}

func NewSortedMap

func NewSortedMap() *SortedMap

func (*SortedMap) MarshalYAML

func (sortedMap *SortedMap) MarshalYAML() (interface{}, error)

type YamlExporter

type YamlExporter struct{}

func NewYamlExporter

func NewYamlExporter() *YamlExporter

func (*YamlExporter) Export

func (exporter *YamlExporter) Export(tableName string, columns []string, rawRows [][][]byte) ([]byte, error)

Jump to

Keyboard shortcuts

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