mysql

package
v4.3.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysqlExecutor

func NewMysqlExecutor(datasource *models.DataSource) (tsdb.Executor, error)

func NewStringStringScan

func NewStringStringScan(columnNames []string) *stringStringScan

func ReplaceAllStringSubmatchFunc

func ReplaceAllStringSubmatchFunc(re *regexp.Regexp, str string, repl func([]string) string) string

Types

type MySqlMacroEngine

type MySqlMacroEngine struct {
	TimeRange *tsdb.TimeRange
}

func (*MySqlMacroEngine) EvaluateMacro

func (m *MySqlMacroEngine) EvaluateMacro(name string, args []string) (string, error)

func (*MySqlMacroEngine) Interpolate

func (m *MySqlMacroEngine) Interpolate(sql string) (string, error)

type MysqlExecutor

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

func (*MysqlExecutor) Execute

func (e *MysqlExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult

func (MysqlExecutor) TransformToTable

func (e MysqlExecutor) TransformToTable(query *tsdb.Query, rows *core.Rows, result *tsdb.QueryResult) error

func (MysqlExecutor) TransformToTimeSeries

func (e MysqlExecutor) TransformToTimeSeries(query *tsdb.Query, rows *core.Rows, result *tsdb.QueryResult) error

type SqlMacroEngine

type SqlMacroEngine interface {
	Interpolate(sql string) (string, error)
}

func NewMysqlMacroEngine

func NewMysqlMacroEngine(timeRange *tsdb.TimeRange) SqlMacroEngine

Jump to

Keyboard shortcuts

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