drivers

package
v0.0.0-...-92b4f69 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Info
	// contains filtered or unexported fields
}

func New

func New(i Info, fn MapValueFunc) Driver

func (Driver) Columns

func (d Driver) Columns(s iquery.Server, schema, table string) ([]iquery.Column, error)

func (Driver) MapRows

func (d Driver) MapRows(r *sql.Rows, columns, limit int) (iquery.Rows, error)

func (Driver) Schemas

func (d Driver) Schemas(s iquery.Server) ([]string, error)

func (Driver) Tables

func (d Driver) Tables(s iquery.Server, schema string) ([]iquery.Table, error)

type Info

type Info interface {
	Name() string
	DriverName() string
	ConnectionString(s iquery.Server) string
	SchemasQuery() string
	TablesQuery(schema string) string
	ColumnsQuery(schema, table string) string
}

type MapBytesFunc

type MapBytesFunc func([]byte) interface{}

type MapValueFunc

type MapValueFunc func(o interface{}) interface{}

func ValueMapper

func ValueMapper(mapBytesFn MapBytesFunc) MapValueFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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