schema

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BqRowToMap added in v0.0.46

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

func CqlRowsToMap added in v0.0.46

func CqlRowsToMap(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 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)

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