Documentation
¶
Index ¶
- Constants
- func FormatCount(count int64) string
- func IsInsert(query string) bool
- func MakeColumnValues(nColumns int, blockSize int) [][]interface{}
- func NewMatcher(needle string) *wordMatcher
- func NumArgs(query string) int
- func ParamParser(reader *bytes.Reader) string
- func SkipIntegrationTestIfShort(t *testing.T)
- func TransposeMatrix(table [][]interface{}) [][]interface{}
- type InsertQuery
Constants ¶
View Source
const AllowMapSQLScript = "set allow_experimental_map_type = 1"
Variables ¶
This section is empty.
Functions ¶
func FormatCount ¶
func MakeColumnValues ¶
func NewMatcher ¶
func NewMatcher(needle string) *wordMatcher
NewMatcher returns matcher for word needle
func ParamParser ¶
func TransposeMatrix ¶
func TransposeMatrix(table [][]interface{}) [][]interface{}
todo: this might be slow, think of another way to "tranpose" TransposeMatrix row values to column values
Types ¶
type InsertQuery ¶
InsertQuery is a insert Query disected e.g. INSERT INTO table VALUES (1); becomes
{
DataFmt: "VALUES",
Query: "INSERT INTO table VALUES",
Values: "(1)"
}
func ParseInsertQuery ¶
func ParseInsertQuery(query string) (*InsertQuery, error)
Click to show internal directories.
Click to hide internal directories.