query

package
v0.0.0-...-f986c1d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate struct {
	Function string
	Columns  []string
}

type Expression

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

Expression query expression

func Expr

func Expr(value interface{}) *Expression

Expr Create a new raw query expression.

func (*Expression) GetValue

func (e *Expression) GetValue() interface{}

GetValue Get the value of the expression.

type Having

type Having struct {
	Type     string
	Sql      string
	Column   string
	Operator string
	Value    interface{}
	Boolean  string
}

type Join

type Join struct {
	Type  string
	Table string
	Query *Query
}

type Order

type Order struct {
	Type      string
	Sql       string
	Column    string
	Direction string
}

type Query

type Query struct {
	Distinct    bool
	Columns     []string
	From        string
	Joins       []*Join
	Wheres      []*Where
	Groups      []string
	Havings     []*Having
	Orders      []*Order
	Unions      []*Union
	UnionOrders []*UnionOrder
	Limit       uint64
	Offset      uint64
	UnionLimit  uint64
	UnionOffset uint64
	Aggregate   *Aggregate
	JoinClause  bool
}

type Union

type Union struct {
}

type UnionOrder

type UnionOrder struct {
	Type      string
	Sql       string
	Column    string
	Direction string
}

type Where

type Where struct {
	Type     string
	Sql      string
	Column   string
	First    string
	Second   string
	Operator string
	Value    interface{}
	Values   []interface{}
	Boolean  string
	Not      bool
}

Jump to

Keyboard shortcuts

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