sql

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C = map[string]tb.TextGetter{
	"?":     t.S("?"),
	"where": t.S(" WHERE "),
	"and":   t.S(" AND "),
	"or":    t.S(" OR "),
}
View Source
var Post = &post{
	And: tb.BuildJoin(C["and"]),
	Or:  tb.BuildJoin(C["or"]),
}
View Source
var QQ = map[string]tb.Transformer{
	"x''": tb.BuildSurrounding(t.S("x'"), t.S("'")),
	"``":  tb.BuildSameSurrounding(t.S("`")),
}

Functions

func And

func And(getters ...tb.TextGetter) tb.TextGetter

func In

func In(column tb.TextGetter, number int) tb.TextGetter

func InByLen

func InByLen(column tb.TextGetter, arrayObject interface{}) tb.TextGetter

func Or

func Or(getters ...tb.TextGetter) tb.TextGetter

func Where

func Where(condition tb.TextGetter) tb.TextGetter

Builds prefixing text getter if the where condition is viable

Types

This section is empty.

Jump to

Keyboard shortcuts

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