Documentation
¶
Index ¶
- Constants
- type DeletePlan
- type DirectQueryPlan
- type InsertPlan
- type Limit
- type MultiDeletePlan
- type MultiDirectlyQueryPlan
- type MultiUpdatePlan
- type OrderByCell
- type OrderByCells
- type OrderField
- type QueryOnMultiDBPlan
- type QueryOnSingleDBPlan
- type ResultWithErr
- type ResultWithErrs
- type ShowTablesPlan
- type UpdatePlan
Constants ¶
View Source
const FuncColumns = "FuncColumns"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletePlan ¶ added in v0.2.0
type DeletePlan struct {
Database string
Tables []string
Stmt *ast.DeleteStmt
Args []interface{}
Executor proto.DBGroupExecutor
}
type DirectQueryPlan ¶ added in v0.5.0
type DirectQueryPlan struct {
Stmt ast.Node
Args []interface{}
Executor proto.DBGroupExecutor
}
type InsertPlan ¶
type InsertPlan struct {
Database string
Table string
Columns []string
Stmt *ast.InsertStmt
Args []interface{}
Executor proto.DBGroupExecutor
}
type MultiDeletePlan ¶ added in v0.2.0
type MultiDeletePlan struct {
AppID string
Stmt *ast.DeleteStmt
Plans []*DeletePlan
}
type MultiDirectlyQueryPlan ¶ added in v0.5.0
type MultiDirectlyQueryPlan struct {
Stmt ast.Node
Plans []*DirectQueryPlan
}
type MultiUpdatePlan ¶ added in v0.2.0
type MultiUpdatePlan struct {
AppID string
Stmt *ast.UpdateStmt
Plans []*UpdatePlan
}
type OrderByCell ¶
type OrderByCell struct {
// contains filtered or unexported fields
}
type OrderByCells ¶
type OrderByCells []*OrderByCell
func (OrderByCells) Len ¶
func (c OrderByCells) Len() int
func (OrderByCells) Less ¶
func (c OrderByCells) Less(i, j int) bool
func (OrderByCells) Swap ¶
func (c OrderByCells) Swap(i, j int)
type OrderField ¶ added in v0.2.0
type OrderField struct {
// contains filtered or unexported fields
}
type QueryOnMultiDBPlan ¶
type QueryOnMultiDBPlan struct {
Stmt *ast.SelectStmt
Plans []*QueryOnSingleDBPlan
}
type QueryOnSingleDBPlan ¶
type QueryOnSingleDBPlan struct {
Database string
Tables []string
PK string
Stmt *ast.SelectStmt
Limit *Limit
Args []interface{}
Executor proto.DBGroupExecutor
}
type ResultWithErr ¶
type ResultWithErrs ¶
type ResultWithErrs []*ResultWithErr
func (ResultWithErrs) Len ¶
func (r ResultWithErrs) Len() int
func (ResultWithErrs) Less ¶
func (r ResultWithErrs) Less(i, j int) bool
func (ResultWithErrs) Swap ¶
func (r ResultWithErrs) Swap(i, j int)
type ShowTablesPlan ¶ added in v0.5.0
type ShowTablesPlan struct {
Stmt *ast.ShowStmt
Args []interface{}
Executor proto.DBGroupExecutor
LogicTables []string
}
type UpdatePlan ¶ added in v0.2.0
type UpdatePlan struct {
Database string
Tables []string
Stmt *ast.UpdateStmt
Args []interface{}
Executor proto.DBGroupExecutor
}
Click to show internal directories.
Click to hide internal directories.