dialect

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandColumn

func ExpandColumn(column core.Column) (core.SQL, error)

func ExpandEntity

func ExpandEntity(entity core.Table) (core.SQL, error)

func Join

func Join(left core.SQL, joinType string, on core.SQL) (core.SQL, error)

func Operator

func Operator(left core.SQL, op operator.Operand, values []core.SQL) (core.SQL, error)

func OrderBy

func OrderBy(left core.SQL, direction sort.Direction) (core.SQL, error)

func Set

func Set(format SetFormatter, left core.SQL, value core.SQL) (core.SQL, error)

func Value

func Value(format ValueFormatter, value interface{}) (core.SQL, error)

Types

type Default

type Default struct{}

func (Default) ExpandColumn

func (Default) ExpandColumn(column core.Column) (core.SQL, error)

func (Default) ExpandTable

func (Default) ExpandTable(table core.Table) (core.SQL, error)

func (Default) GetName

func (Default) GetName() string

func (Default) Join

func (m Default) Join(left core.SQL, joinType expression.JoinType, on core.SQL) (core.SQL, error)

func (Default) Operator

func (Default) Operator(left core.SQL, op operator.Operand, values []core.SQL) (core.SQL, error)

func (Default) OrderBy

func (m Default) OrderBy(left core.SQL, direction sort.Direction) (core.SQL, error)

func (Default) Set

func (m Default) Set(left core.SQL, value core.SQL) (core.SQL, error)

func (Default) SetValueFormat

func (Default) SetValueFormat() string

func (Default) Value

func (m Default) Value(value interface{}) (core.SQL, error)

func (Default) ValueFormat

func (Default) ValueFormat() string

type MySQL

type MySQL struct{ Default }

func (MySQL) GetName

func (MySQL) GetName() string

func (MySQL) JSONOperator

func (m MySQL) JSONOperator(left core.SQL, op json.Operand, values []core.SQL) (core.SQL, error)

type SetFormatter

type SetFormatter interface {
	SetValueFormat() string
}

type ValueFormatter

type ValueFormatter interface {
	ValueFormat() string
}

Jump to

Keyboard shortcuts

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