mysql

package
v4.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 31, 2017 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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