query_builder

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrClauses

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

func (*OrClauses) AddOr

func (o *OrClauses) AddOr(clause string, args ...interface{}) *OrClauses

func (*OrClauses) Build

func (o *OrClauses) Build() (string, []interface{})

type Query

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

func NewQuery

func NewQuery(baseQuery string) *Query

func (*Query) AddWhereClause

func (q *Query) AddWhereClause(clause string, args ...interface{}) *Query

func (*Query) Build

func (q *Query) Build() (string, []interface{})

func (*Query) SetLimit

func (q *Query) SetLimit(limit int64) *Query

func (*Query) SetOffset

func (q *Query) SetOffset(offset int64) *Query

func (*Query) SetOrderBy

func (q *Query) SetOrderBy(orderByField string, ascending bool) *Query

Jump to

Keyboard shortcuts

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