datasource

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory Factory)

Types

type Driver

type Driver interface {
	Open() error
	CopyFrom(r io.Reader, table string) error
	CopyTo(w io.Writer, query string) error
	Close() error
}

func Create

func Create(name string, parameters map[string]interface{}) (Driver, error)

type Factory

type Factory interface {
	Create(parameters map[string]interface{}) (Driver, error)
}

type InvalidDataSourceError

type InvalidDataSourceError struct {
	Name string
}

func (InvalidDataSourceError) Error

func (e InvalidDataSourceError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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