executor

package
v0.2.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

func New

func New() *Executor

func (*Executor) Exec

func (e *Executor) Exec(ctx context.Context, session *Session) error

type Parameters

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

func NewParameters

func NewParameters() *Parameters

func (*Parameters) Add

func (p *Parameters) Add(name string, selector *view.Selector)

type SQLStatment

type SQLStatment struct {
	SQL  string
	Args []interface{}
}

type Session

type Session struct {
	Parameters *Parameters
	View       *view.View
	// contains filtered or unexported fields
}

func NewSession

func NewSession(selectors *view.Selectors, aView *view.View) (*Session, error)

func (*Session) Lookup

func (s *Session) Lookup(v *view.View) *view.ParamState

type SqlBuilder

type SqlBuilder struct{}

func NewBuilder

func NewBuilder() *SqlBuilder

func (*SqlBuilder) Build

func (s *SqlBuilder) Build(aView *view.View, paramState *view.ParamState) ([]*SQLStatment, *logger.Printer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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