importer

package
v0.0.0-...-c8c7d2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, backend ImportBackend)

Register registers a new import backend

Types

type CSV

type CSV struct{}

CSV represents a csv importer

func (*CSV) Import

func (c *CSV) Import(config map[string]string) (*tabular.Table, error)

Import imports a csv into a tabular.Table

type ImportBackend

type ImportBackend interface {
	Import(config map[string]string) (*tabular.Table, error)
}

ImportBackend represets a data importer

func Get

func Get(name string) ImportBackend

Get returns a import backend by name

type SQL

type SQL struct{}

SQL represents a sql importer

func (*SQL) Import

func (c *SQL) Import(config map[string]string) (*tabular.Table, error)

Import imports a sql data into a tabular.Table

Jump to

Keyboard shortcuts

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