parameters

package
v0.7.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParametersVisitor

type ParametersVisitor struct {
	// OrderedParameters are the passed named identifiers in the order that they have become numbered.
	// For example, if a query was SELECT * FROM tbl WHERE a = $a AND b = $b, the query would be rewritten
	// as SELECT * FROM tbl WHERE a = $1 AND b = $2, and OrderedParameters would be []string{"$a", "$b"}.
	OrderedParameters []string

	tree.Walker
	// contains filtered or unexported fields
}

ParametersVisitor visits the AST and replaces all bind parameters with numbered parameters.

func NewParametersVisitor

func NewParametersVisitor() *ParametersVisitor

func (*ParametersVisitor) EnterExpressionBindParameter

func (p *ParametersVisitor) EnterExpressionBindParameter(b *tree.ExpressionBindParameter) error

Jump to

Keyboard shortcuts

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