Documentation ¶
Index ¶
- func CompileIndexCreation(info QueryInfo, ifNotExists bool) []string
- func CompileSQL(builder Builder, info QueryInfo) (string, []interface{})
- func CompileTableCreation(info QueryInfo, ifNotExists bool) string
- type Aggregation
- type And
- type Builder
- type Clause
- type ColumnOrder
- type Compiler
- type CoveredBy
- type Covers
- type Equal
- type GreaterThan
- type GreaterThanOrEqual
- type HasWithinRange
- type Join
- type JoinType
- type LessThan
- type LessThanOrEqual
- type Like
- type NotEqual
- type NotLike
- type Or
- type Order
- type QueryInfo
- type SpatialOrder
- type Type
- type WithinRangeOf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileIndexCreation ¶
func CompileSQL ¶
func CompileTableCreation ¶
Types ¶
type Aggregation ¶
type Aggregation interface {
GetAggregation() string
}
type Builder ¶
type Builder struct { Selections *utils.Set Omissions *utils.Set Clauses []Clause Orders []Order Joins []Join Limit uint64 Offset uint64 QueryType Type IsCount bool IsDistinct bool InsertValues []map[string]interface{} }
func NewBuilder ¶
func NewBuilder() *Builder
type ColumnOrder ¶
func (ColumnOrder) IsDescending ¶
func (c ColumnOrder) IsDescending() bool
func (ColumnOrder) IsValid ¶
func (c ColumnOrder) IsValid(info QueryInfo) bool
func (ColumnOrder) Sql ¶
func (c ColumnOrder) Sql(info QueryInfo) (string, []interface{})
type CoveredBy ¶
type CoveredBy struct { Column string TargetColumn string Target model.SpatialObject }
Geography specific clauses
type GreaterThan ¶
func (GreaterThan) Condition ¶
func (e GreaterThan) Condition() string
func (GreaterThan) IsValid ¶
func (e GreaterThan) IsValid(info QueryInfo) bool
func (GreaterThan) Sql ¶
func (e GreaterThan) Sql(info QueryInfo) (string, []interface{})
type GreaterThanOrEqual ¶
func (GreaterThanOrEqual) Condition ¶
func (e GreaterThanOrEqual) Condition() string
func (GreaterThanOrEqual) IsValid ¶
func (e GreaterThanOrEqual) IsValid(info QueryInfo) bool
func (GreaterThanOrEqual) Sql ¶
func (e GreaterThanOrEqual) Sql(info QueryInfo) (string, []interface{})
type HasWithinRange ¶
type HasWithinRange struct { Column string TargetColumn string Targets []model.SpatialObject Range float64 }
func (HasWithinRange) Condition ¶
func (h HasWithinRange) Condition() string
func (HasWithinRange) IsValid ¶
func (h HasWithinRange) IsValid(info QueryInfo) bool
func (HasWithinRange) Sql ¶
func (h HasWithinRange) Sql(info QueryInfo) (string, []interface{})
type LessThanOrEqual ¶
func (LessThanOrEqual) Condition ¶
func (e LessThanOrEqual) Condition() string
func (LessThanOrEqual) IsValid ¶
func (e LessThanOrEqual) IsValid(info QueryInfo) bool
func (LessThanOrEqual) Sql ¶
func (e LessThanOrEqual) Sql(info QueryInfo) (string, []interface{})
type SpatialOrder ¶
type SpatialOrder struct { Column string Descending bool Target model.SpatialObject TargetColumn string }
func (SpatialOrder) IsDescending ¶
func (s SpatialOrder) IsDescending() bool
func (SpatialOrder) IsValid ¶
func (s SpatialOrder) IsValid(info QueryInfo) bool
func (SpatialOrder) Sql ¶
func (s SpatialOrder) Sql(info QueryInfo) (string, []interface{})
type WithinRangeOf ¶
type WithinRangeOf struct { Column string TargetColumn string Targets []model.SpatialObject Range float64 }
func (WithinRangeOf) Condition ¶
func (w WithinRangeOf) Condition() string
func (WithinRangeOf) IsValid ¶
func (w WithinRangeOf) IsValid(info QueryInfo) bool
func (WithinRangeOf) Sql ¶
func (w WithinRangeOf) Sql(info QueryInfo) (string, []interface{})
Click to show internal directories.
Click to hide internal directories.