schema

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BqRowsToMap added in v0.0.56

func BqRowsToMap(qry *bigquery.RowIterator) ([]map[string]bigquery.Value, error)

func CqlRowsToMapSlice added in v0.0.56

func CqlRowsToMapSlice(qry *gocql.Query) ([]map[string]any, error)

func ExtractMustacheKey added in v0.0.46

func ExtractMustacheKey(s string) string

func ExtractMustacheKeys added in v0.0.46

func ExtractMustacheKeys(s string) []string

func HandleField added in v0.0.46

func HandleField(v any) any

func MapStringAnyToJSON added in v0.0.46

func MapStringAnyToJSON(m map[string]any) ([]byte, error)

func ReplaceJSONKey added in v0.0.46

func ReplaceJSONKey(query string, k string, v any) string

func ReplaceParams added in v0.0.46

func ReplaceParams(bd []byte, params []any) []any

func ReplaceParamsMap added in v0.0.46

func ReplaceParamsMap(data map[string]any, params []any) []any

func ReplaceParamsMapString added in v0.0.46

func ReplaceParamsMapString(data map[string]any, params string) string

func ReplaceParamsSliceMap added in v0.0.56

func ReplaceParamsSliceMap(data []map[string]any, params []any) []any

func ReplaceParamsSliceMapString added in v0.0.56

func ReplaceParamsSliceMapString(data []map[string]any, params string) string

func ReplaceParamsString added in v0.0.46

func ReplaceParamsString(bd []byte, params string) string

func RowsToMap added in v0.0.46

func RowsToMap(rows *sql.Rows) (map[string]any, error)

func RowsToMapSlice added in v0.0.56

func RowsToMapSlice(rows *sql.Rows) ([]map[string]any, error)

func SliceMapStringAnyToJSON added in v0.0.56

func SliceMapStringAnyToJSON(m []map[string]any) ([]byte, error)

Types

type SqlQuery

type SqlQuery struct {
	Query  string `json:"query"`
	Params []any  `json:"params"`
}

Jump to

Keyboard shortcuts

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