Documentation
¶
Index ¶
- Constants
- Variables
- func Eq(x, y *extend.ValueExtend) (extend.Extend, error)
- func Ge(x, y *extend.ValueExtend) (extend.Extend, error)
- func Gt(x, y *extend.ValueExtend) (extend.Extend, error)
- func Le(x, y *extend.ValueExtend) (extend.Extend, error)
- func Lt(x, y *extend.ValueExtend) (extend.Extend, error)
- func Ne(x, y *extend.ValueExtend) (extend.Extend, error)
- func Neg(x *extend.ValueExtend) (extend.Extend, error)
- func New(db string, sql string, e engine.Engine) *build
- type Aggregation
- type Attribute
- type CreateDatabase
- type CreateIndex
- type CreateTable
- type Dedup
- type Delete
- type DerivedRelation
- type Direction
- type DropDatabase
- type DropIndex
- type DropTable
- type Edge
- type EdgeSet
- type Field
- type Graph
- type Insert
- type Join
- type JoinCondition
- type Limit
- type Offset
- type Order
- type Plan
- type Projection
- type Query
- type Relation
- type Rename
- type Restrict
- type ResultAttributes
- type ResultProjection
- type Scope
- type ScopeSet
- type ShowColumns
- type ShowCreateDatabase
- type ShowCreateTable
- type ShowDatabases
- type ShowTables
- type SymbolTable
- type Untransform
- type Update
- type VertexSet
Constants ¶
View Source
const ( FULL = iota LEFT SEMI ANTI INNER CROSS RIGHT NATURAL RELATION )
Variables ¶
View Source
var ( // ErrDivByZero is reported on a division by zero. ErrDivByZero = overload.ErrDivByZero // ErrZeroModulus is reported when computing the rest of a division by zero. ErrZeroModulus = overload.ErrModByZero )
Functions ¶
Types ¶
type Aggregation ¶
type Attribute ¶
type CreateDatabase ¶
func (CreateDatabase) ResultColumns ¶
func (c CreateDatabase) ResultColumns() []*Attribute
func (CreateDatabase) String ¶
func (c CreateDatabase) String() string
type CreateIndex ¶
type CreateIndex struct {
IfNotExistFlag bool
HasExist bool // if true, means this index has existed.
Id string
Relation engine.Relation
Defs []engine.TableDef
}
func (CreateIndex) ResultColumns ¶
func (c CreateIndex) ResultColumns() []*Attribute
func (CreateIndex) String ¶
func (c CreateIndex) String() string
type CreateTable ¶
type CreateTable struct {
IfNotExistFlag bool
Id string
Db engine.Database
Defs []engine.TableDef
PartitionBy *engine.PartitionByDef
}
func (CreateTable) ResultColumns ¶
func (c CreateTable) ResultColumns() []*Attribute
func (CreateTable) String ¶
func (c CreateTable) String() string
type DerivedRelation ¶
type DerivedRelation struct {
Proj Projection
Cond extend.Extend
Flg bool // indicate if transform is required
FreeVars []string
BoundVars []*Aggregation
}
type DropDatabase ¶
func (DropDatabase) ResultColumns ¶
func (d DropDatabase) ResultColumns() []*Attribute
func (DropDatabase) String ¶
func (d DropDatabase) String() string
type DropIndex ¶
type DropIndex struct {
IfExistFlag bool
NotExisted bool // if true, means this index does not exist.
Id string
Relation engine.Relation
}
func (DropIndex) ResultColumns ¶
type DropTable ¶
func (DropTable) ResultColumns ¶
type Insert ¶
func (Insert) ResultColumns ¶
type JoinCondition ¶
R.Rattr = S.Sattr
type Projection ¶
type Query ¶
type Query struct {
Flg bool // rebuild flag
Scope *Scope
Result []string
Stack []*ScopeSet
Aggs []*Aggregation
RenameRels map[string]*Scope
Rels map[string]map[string]*Scope
Children []*Scope // subquery
}
func (*Query) ResultColumns ¶
type ResultAttributes ¶
type ResultProjection ¶
type Scope ¶
type Scope struct {
Name string
Children []*Scope
Op interface{}
Result ResultAttributes
}
type ScopeSet ¶
type ScopeSet struct {
JoinType int
Scopes []*Scope
Conds []*JoinCondition
}
type ShowColumns ¶
func (ShowColumns) ResultColumns ¶
func (s ShowColumns) ResultColumns() []*Attribute
func (ShowColumns) String ¶
func (s ShowColumns) String() string
type ShowCreateDatabase ¶
func (ShowCreateDatabase) ResultColumns ¶
func (d ShowCreateDatabase) ResultColumns() []*Attribute
func (ShowCreateDatabase) String ¶
func (d ShowCreateDatabase) String() string
type ShowCreateTable ¶
func (ShowCreateTable) ResultColumns ¶
func (s ShowCreateTable) ResultColumns() []*Attribute
func (ShowCreateTable) String ¶
func (s ShowCreateTable) String() string
type ShowDatabases ¶
func (ShowDatabases) ResultColumns ¶
func (s ShowDatabases) ResultColumns() []*Attribute
func (ShowDatabases) String ¶
func (s ShowDatabases) String() string
type ShowTables ¶
func (ShowTables) ResultColumns ¶
func (s ShowTables) ResultColumns() []*Attribute
func (ShowTables) String ¶
func (s ShowTables) String() string
type SymbolTable ¶
type Untransform ¶
type Untransform struct {
FreeVars []string
}
type Update ¶
type Update struct {
Qry *Query
UpdateList []extend.UpdateExtend
UpdateAttrs []string
OtherAttrs []string
}
func (Update) ResultColumns ¶
Source Files
¶
- build.go
- constant.go
- create_database.go
- create_index.go
- create_table.go
- delete.go
- drop_database.go
- drop_index.go
- drop_table.go
- expr.go
- fetch.go
- from.go
- graph.go
- group.go
- having.go
- insert.go
- join.go
- name.go
- order.go
- projection.go
- prune.go
- push.go
- query.go
- rename.go
- scope.go
- select.go
- show_columns.go
- show_create_database.go
- show_create_table.go
- show_databases.go
- show_tables.go
- types.go
- update.go
- where.go
Click to show internal directories.
Click to hide internal directories.