sql

package
Version: v0.0.0-...-471b843 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	And(field, operator string, value interface{})
	OR(field, operator string, value interface{})
	BeginGroup()
	EndGroup()
	String() string
}

Filter used to express sql condition

func NewFilter

func NewFilter(key string) Filter

NewFilter used to create a new Filter

type Haver

type Haver interface {
	Having(field, operator string, value interface{})
	AndHaving(field, operator string, value interface{})
	OrHaving(field, operator string, value interface{})
}

Haver used to express sql where condition

type Wherer

type Wherer interface {
	Where(field, operator string, value interface{})
	AndWhere(field, operator string, value interface{})
	OrWhere(field, operator string, value interface{})
}

Wherer used to express sql where condition

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL