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
Click to show internal directories.
Click to hide internal directories.