Documentation
¶
Index ¶
- Constants
- type AndGroup
- type Case
- type Delete
- type From
- type Function
- type GroupBy
- type Having
- type Insert
- type Join
- type LimitClause
- type Lock
- type OrGroup
- type OrderBy
- type Parenthesis
- type Reindenter
- type Returning
- type Select
- type Set
- type Subquery
- type TieClause
- type TypeCast
- type Update
- type Values
- type Where
- type With
Constants ¶
const ( NewLine = "\n" WhiteSpace = " " DoubleWhiteSpace = " " )
to reindent
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndGroup ¶
type AndGroup struct { Element []Reindenter IndentLevel int }
AndGroup is AND clause not AND operator AndGroup is made after new line // select xxx and xxx <= this is not AndGroup // select xxx from xxx where xxx // and xxx <= this is AndGroup
func (*AndGroup) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Case ¶
type Case struct { Element []Reindenter IndentLevel int // contains filtered or unexported fields }
Case Clause
func (*Case) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified increment level
type Delete ¶
type Delete struct { Element []Reindenter IndentLevel int }
Delete clause
func (*Delete) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type From ¶
type From struct { Element []Reindenter IndentLevel int }
From clause
func (*From) IncrementIndentLevel ¶
IncrementIndentLevel indents by its specified indent level
type Function ¶
type Function struct { Element []Reindenter IndentLevel int InColumnArea bool ColumnCount int }
Function clause
func (*Function) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type GroupBy ¶
type GroupBy struct { Element []Reindenter IndentLevel int }
GroupBy clause
func (*GroupBy) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Having ¶
type Having struct { Element []Reindenter IndentLevel int }
Having clause
func (*Having) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Insert ¶
type Insert struct { Element []Reindenter IndentLevel int }
Insert clause
func (*Insert) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Join ¶
type Join struct { Element []Reindenter IndentLevel int }
Join clause
func (*Join) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified increment level
type LimitClause ¶
type LimitClause struct { Element []Reindenter IndentLevel int }
LimitClause such as LIMIT, OFFSET, FETCH FIRST
func (*LimitClause) IncrementIndentLevel ¶
func (l *LimitClause) IncrementIndentLevel(lev int)
IncrementIndentLevel increments by its specified indent level
type Lock ¶
type Lock struct { Element []Reindenter IndentLevel int }
Lock clause
func (*Lock) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified increment level
type OrGroup ¶
type OrGroup struct { Element []Reindenter IndentLevel int }
OrGroup clause
func (*OrGroup) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified increment level
type OrderBy ¶
type OrderBy struct { Element []Reindenter IndentLevel int }
OrderBy clause
func (*OrderBy) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Parenthesis ¶
type Parenthesis struct { Element []Reindenter IndentLevel int InColumnArea bool ColumnCount int }
Parenthesis clause
func (*Parenthesis) IncrementIndentLevel ¶
func (p *Parenthesis) IncrementIndentLevel(lev int)
IncrementIndentLevel indents by its specified indent level
type Reindenter ¶
Reindenter interface specific values of Reindenter would be clause group or token
type Returning ¶
type Returning struct { Element []Reindenter IndentLevel int }
Returning clause
func (*Returning) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Select ¶
type Select struct { Element []Reindenter IndentLevel int }
Select clause
func (*Select) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Set ¶
type Set struct { Element []Reindenter IndentLevel int }
Set clause
func (*Set) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Subquery ¶
type Subquery struct { Element []Reindenter IndentLevel int InColumnArea bool ColumnCount int }
Subquery group
func (*Subquery) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type TieClause ¶
type TieClause struct { Element []Reindenter IndentLevel int }
TieClause such as UNION, EXCEPT, INTERSECT
func (*TieClause) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type TypeCast ¶
type TypeCast struct { Element []Reindenter IndentLevel int }
TypeCast group
func (*TypeCast) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Update ¶
type Update struct { Element []Reindenter IndentLevel int }
Update clause
func (*Update) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Values ¶
type Values struct { Element []Reindenter IndentLevel int }
Values clause
func (*Values) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type Where ¶
type Where struct { Element []Reindenter IndentLevel int }
Where clause
func (*Where) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
type With ¶
type With struct { Element []Reindenter IndentLevel int }
With clause
func (*With) IncrementIndentLevel ¶
IncrementIndentLevel increments by its specified indent level
Source Files
¶
- and_group.go
- case_group.go
- delete_group.go
- from_group.go
- function_group.go
- group_by_group.go
- having_group.go
- insert_group.go
- join_group.go
- limit_clause.go
- lock_group.go
- or_group.go
- order_by_group.go
- parenthesis_group.go
- reindenter.go
- returning_group.go
- select_group.go
- set_group.go
- subquery_group.go
- tie_clause_group.go
- type_cast_group.go
- update_group.go
- util.go
- values_group.go
- where_group.go
- with_group.go