query

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Columns

type Columns map[string][]string

type Comparison

type Comparison struct {
	Left     string
	Right    string
	Operator string
}

func NewComparison

func NewComparison(left, right, operator string) *Comparison

type Join

type Join struct {
	Comparisons []*Comparison
}

type Query

type Query struct {
	Table      *Table
	Wheres     []*Where
	Subqueries []*Query
}

func New

func New() *Query

type Table

type Table struct {
	Columns Columns
	Name    string
	Names   []string
	Aliases map[string]string
	As      string
	AsNames []string
	Join    Join
}

func (*Table) GetNames

func (t *Table) GetNames() []string

type Where

type Where struct {
	Table    string
	Column   string
	Operator string
}

func NewWhere

func NewWhere(table, column, operator string) *Where

Jump to

Keyboard shortcuts

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