package
Version:
v0.0.0-...-d2438c5
Opens a new window with list of versions in this module.
Published: Jun 20, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
API defines a query API
NewAPI creates a API with sane defaults
Name returns the API name
Post defines a service for calling "POST" method and returns a response.
type Batch struct {
Results []Result `json:"results" yaml:"results"`
}
Batch represents a marshalled object for batched query results
type Query struct {
Database string `json:"database" yaml:"database"`
Query string `json:"query" yaml:"query"`
}
Query represents a marshalled object for query information
type Result struct {
Type string `json:"type" yaml:"type"`
Columns []string `json:"columns" yaml:"columns"`
Rows [][]interface{} `json:"rows" yaml:"rows"`
RowsAffected int64 `json:"rows_affected" yaml:"rows_affected"`
}
Result represents a marshalled result object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.