params

package
v0.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateParams

func GenerateParams(ss map[string]string, permitType bool) (map[string]any, error)

GenerateParams returns map for spanner.Statement.Params. All values are spanner.GenericColumnValue.

func LoadParamFile

func LoadParamFile(path string) (map[string]string, error)

LoadParamFile loads param name→literal/type strings from a YAML or JSON file.

func MergeParams

func MergeParams(file, cli map[string]string) map[string]string

MergeParams returns file params with cli params overriding on name conflict.

func ParseParamFlags

func ParseParamFlags(ss []string) (map[string]string, error)

ParseParamFlags parses repeated --param flags as name=value (preferred) or legacy name:value assignments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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