query

package
v0.0.0-...-c37112f Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2015 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ASC  = "ASC"
	DESC = "DESC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

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

func (*Delete) And

func (d *Delete) And(cond string, args ...interface{}) *Delete

func (*Delete) Build

func (d *Delete) Build() (string, []interface{})

func (*Delete) Table

func (d *Delete) Table(table string) *Delete

func (*Delete) Where

func (d *Delete) Where(cond string, args ...interface{}) *Delete

type Insert

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

func (*Insert) Build

func (i *Insert) Build() (string, []interface{})

func (*Insert) Params

func (i *Insert) Params(params map[string]interface{}) *Insert

func (*Insert) Table

func (i *Insert) Table(table string) *Insert

type Select

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

func (*Select) And

func (s *Select) And(cond string, args ...interface{}) *Select

func (*Select) Build

func (s *Select) Build() (string, []interface{})

func (*Select) Columns

func (s *Select) Columns(columns ...string) *Select

func (*Select) Explain

func (s *Select) Explain() *Select

func (*Select) GetColumns

func (s *Select) GetColumns() []string

func (*Select) GroupBy

func (s *Select) GroupBy(group string, groups ...string) *Select

func (*Select) Having

func (s *Select) Having(cond string, args ...interface{}) *Select

func (*Select) InnerJoin

func (s *Select) InnerJoin(table string, cond string, args ...interface{}) *Select

func (*Select) Limit

func (s *Select) Limit(number int) *Select

func (*Select) Offset

func (s *Select) Offset(number int) *Select

func (*Select) OrderBy

func (s *Select) OrderBy(column, order string) *Select

func (*Select) Table

func (s *Select) Table(table string) *Select

func (*Select) Where

func (s *Select) Where(cond string, args ...interface{}) *Select

type Update

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

func (*Update) And

func (u *Update) And(cond string, args ...interface{}) *Update

func (*Update) Build

func (u *Update) Build() (string, []interface{})

func (*Update) Params

func (u *Update) Params(params map[string]interface{}) *Update

func (*Update) Table

func (u *Update) Table(table string) *Update

func (*Update) Where

func (u *Update) Where(cond string, args ...interface{}) *Update

Jump to

Keyboard shortcuts

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