interpolate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(query string, q QueryParams) (*sqlf.Query, error)

Types

type QueryDoesntUseInterpolationError

type QueryDoesntUseInterpolationError struct{}

func (*QueryDoesntUseInterpolationError) Error

type QueryParams

type QueryParams interface {
	// FormatSpecifiers returns 1 element per interpolation
	FormatSpecifiers() []string
	// FormatArgs returns 1 element per interpolation
	FormatArgs() []any
}

Jump to

Keyboard shortcuts

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