query

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClassId

func GetClassId(db *sql.DB, checksum string) (uint, error)

Types

type MySQLHandler

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

func NewMySQLHandler

func NewMySQLHandler(dbm db.Manager, stats *stats.Stats) *MySQLHandler

func (*MySQLHandler) Example

func (h *MySQLHandler) Example(classId, instanceId uint, period time.Time) (queryProto.Example, error)

func (*MySQLHandler) Examples

func (h *MySQLHandler) Examples(classId, instanceId uint) ([]queryProto.Example, error)

func (*MySQLHandler) Get

func (h *MySQLHandler) Get(ids []string) (map[string]queryProto.Query, error)

func (*MySQLHandler) Tables

func (h *MySQLHandler) Tables(classId uint, m *queryService.Mini) ([]queryProto.Table, error)

func (*MySQLHandler) UpdateExample

func (h *MySQLHandler) UpdateExample(classId, instanceId uint, example queryProto.Example) error

func (*MySQLHandler) UpdateTables

func (h *MySQLHandler) UpdateTables(classId uint, tables []queryProto.Table) error

Jump to

Keyboard shortcuts

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