plugin

package
v0.0.0-...-ea2633f Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRow

func AppendRow(frame *data.Frame, columns []chainbase.DataWarehouseDataMeta, rows []map[string]any) error

func ExpandMacros

func ExpandMacros(query backend.DataQuery, statement string) string

Types

type Datasource

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

func (*Datasource) CheckHealth

func (*Datasource) Dispose

func (d *Datasource) Dispose()

func (*Datasource) QueryData

type InvalidValueError

type InvalidValueError struct {
	Field string
	Value any
}

func NewInvalidValueError

func NewInvalidValueError(columnName string, columnValue any) InvalidValueError

func (InvalidValueError) Error

func (i InvalidValueError) Error() string

type Options

type Options struct {
	QueriesPerSecond int    `json:"queriesPerSecond"`
	APIKey           string `json:"apiKey"`
}

type Query

type Query struct {
	Statement string `json:"statement"`
}

type UnsupportedTypeError

type UnsupportedTypeError struct {
	Field string
	Type  string
}

func NewUnsupportedTypeError

func NewUnsupportedTypeError(columnName, columnType string) UnsupportedTypeError

func (UnsupportedTypeError) Error

func (u UnsupportedTypeError) Error() string

Jump to

Keyboard shortcuts

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