Documentation ¶
Index ¶
- Constants
- Variables
- type Context
- func (sc *Context) AllocID(graph *catalog.Graph, n int) (*IDRange, error)
- func (sc *Context) AllocPlanColumnID() int64
- func (sc *Context) AllocPlanID() int
- func (sc *Context) AppendError(warn error)
- func (sc *Context) AppendNote(warn error)
- func (sc *Context) AppendWarning(warn error)
- func (sc *Context) AppendWarnings(warns []SQLWarn)
- func (sc *Context) Catalog() *catalog.Catalog
- func (sc *Context) CurrentGraph() *catalog.Graph
- func (sc *Context) CurrentGraphName() string
- func (sc *Context) Reset()
- func (sc *Context) SetCurrentGraphName(graphName string)
- func (sc *Context) Store() kv.Storage
- func (sc *Context) Txn() *LazyTxn
- type IDRange
- type LazyTxn
- type SQLWarn
Constants ¶
View Source
const ( // WarnLevelError represents level "Error" for 'SHOW WARNINGS' syntax. WarnLevelError = "Error" // WarnLevelWarning represents level "Warning" for 'SHOW WARNINGS' syntax. WarnLevelWarning = "Warning" // WarnLevelNote represents level "Note" for 'SHOW WARNINGS' syntax. WarnLevelNote = "Note" )
Variables ¶
View Source
var (
ErrIDExhaust = errors.New("id exhaust")
)
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context represent the intermediate state of a query execution and will be reset after a query finished.
func (*Context) AllocPlanColumnID ¶
func (*Context) AllocPlanID ¶
func (*Context) AppendError ¶
AppendError appends a warning with level 'Error'.
func (*Context) AppendNote ¶
AppendNote appends a warning with level 'Note'.
func (*Context) AppendWarning ¶
AppendWarning appends a warning with level 'Warning'.
func (*Context) AppendWarnings ¶
AppendWarnings appends some warnings.
func (*Context) CurrentGraph ¶
CurrentGraph returns the current chosen catalog graph
func (*Context) CurrentGraphName ¶
CurrentGraphName returns the current chosen graph name.
func (*Context) Reset ¶
func (sc *Context) Reset()
Reset resets all variables associated to execute a query.
func (*Context) SetCurrentGraphName ¶
SetCurrentGraphName changes the current graph name.
Click to show internal directories.
Click to hide internal directories.