internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NamedValueParamNames

func NamedValueParamNames(sql string, n int) ([]string, error)

NamedValueParamNames parsing sql query name values

func PrepareStmtAll

func PrepareStmtAll(sql string, args ...interface{}) (spanner.Statement, error)

PrepareStmtAll within sql and args(slice) generate Statement

func PrepareStmtAny

func PrepareStmtAny(sql string, arg interface{}) (spanner.Statement, error)

PrepareStmtAny within sql and arg(single) generate Statement

func ScanAll

func ScanAll(rows []*spanner.Row, dest interface{}) error

ScanAll scans all rows into a destination, which must be a slice of any type. If the destination slice type is a Struct, then Struct will be used on each row. If the destination is some other kind of base type, then each row must only have one column which can scan into that type.

func ScanAny

func ScanAny(row *spanner.Row, dest interface{}) error

ScanAny a single Row into the dest map[string]interface{} or struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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