core

package
v0.0.0-...-e49a97a Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongDialect = fmt.Errorf("wrong dialect")
View Source
var ErrWrongExpression = fmt.Errorf("wrong expression")
View Source
var ErrWrongVarName = fmt.Errorf("wrong variable name")

Functions

func Listen

func Listen() error

Types

type RunOption

type RunOption struct {
	Dialect         string
	VarName         VarName
	BeforeStatement string
	Expression      string
	AfterStatement  string
}

type Runner

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

func NewRunner

func NewRunner() (*Runner, error)

func (*Runner) Run

func (r *Runner) Run(opt RunOption) (sql string, err error)

type TemplateDot

type TemplateDot struct {
	Dialect         string
	VarName         VarName
	BeforeStatement string
	Expression      string
	AfterStatement  string
}

type VarName

type VarName struct {
	DB string
}

Jump to

Keyboard shortcuts

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