query

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoerceRequestDataToGolangNativeTypes

func CoerceRequestDataToGolangNativeTypes(ctx context.Context, requestData map[string]interface{}, coerceArgFuncs map[string]func(map[string]interface{}, *descriptor.Field) (interface{}, bool, error)) (args []interface{}, err error)

Types

type QueryTemplate

type QueryTemplate struct {
	Vars             []string
	TemplateData     interface{}
	ColumnNames      []string
	CoerceArgFuncs   map[string]func(map[string]interface{}, *descriptor.Field) (interface{}, bool, error)
	QueryFormatFuncs map[string]func() string
}

func (*QueryTemplate) Interpolate

func (e *QueryTemplate) Interpolate(ctx context.Context, requestData map[string]interface{}) (interpolatedQuery string, args []interface{}, err error)

Jump to

Keyboard shortcuts

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