expr

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(countOn lingo.Expression) lingo.Expression

func NewValue

func NewValue(v interface{}) lingo.ComboExpression

func Star

func Star() lingo.Expression

Types

type List

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

func ToList

func ToList(exps []lingo.Expression) List

ToList wraps the expressions into a single List. Each expression will be separated by a comma and a space `, `, not including the last entry. If there is zero or one expressions, no comma+space is added.

func (List) ToSQL

func (l List) ToSQL(d lingo.Dialect) (sql.Data, error)

type Parens

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

func NewParens

func NewParens(exp lingo.Expression) Parens

NewParens adds parenthesis around the expression. No spaces are added.

func (Parens) ToSQL

func (p Parens) ToSQL(d lingo.Dialect) (sql.Data, error)

type ValueDialect

type ValueDialect interface {
	Value(value []interface{}) (sql.Data, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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