walkers

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlWalker

type SqlWalker struct {
	// contains filtered or unexported fields
}

SqlWalker used to convert expressions to sql strings

func NewSqlWalker

func NewSqlWalker(connectioninfo connection.IConnectionInfo, builder *strings.Builder) *SqlWalker

NewSqlWalker creates a new SqlWalker

**Parameters**

  • connectioninfo: driver specific connection info
  • builder : command builder to fill

**Returns**

  • *SqlWalker: created sql walker

func (*SqlWalker) Visit

func (walker *SqlWalker) Visit(tree interface{}) error

Visit creates an sql representation of a given expression tree

**Parameters**

  • tree: expression to evaluate

Jump to

Keyboard shortcuts

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