Documentation ¶
Index ¶
- func NewMysqlExecutor(datasource *models.DataSource) (tsdb.Executor, error)
- func NewStringStringScan(columnNames []string) *stringStringScan
- func ReplaceAllStringSubmatchFunc(re *regexp.Regexp, str string, repl func([]string) string) string
- type MySqlMacroEngine
- type MysqlExecutor
- func (e *MysqlExecutor) Execute(ctx context.Context, queries tsdb.QuerySlice, context *tsdb.QueryContext) *tsdb.BatchResult
- func (e MysqlExecutor) TransformToTable(query *tsdb.Query, rows *core.Rows, result *tsdb.QueryResult) error
- func (e MysqlExecutor) TransformToTimeSeries(query *tsdb.Query, rows *core.Rows, result *tsdb.QueryResult) error
- type SqlMacroEngine
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
Types ¶
type MySqlMacroEngine ¶
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 ¶
func NewMysqlMacroEngine ¶
func NewMysqlMacroEngine(timeRange *tsdb.TimeRange) SqlMacroEngine
Click to show internal directories.
Click to hide internal directories.