Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation interface {
// Execute the operation.
Execute(primitive.IPrimitiveCtx) internaldto.ExecutorOutput
// Reverse the operation.
Undo() error
// Get the redo log entry.
GetRedoLog() (binlog.LogEntry, bool)
// Get the undo log entry.
GetUndoLog() (binlog.LogEntry, bool)
//
IncidentData(int64, internaldto.ExecutorOutput) error
//
SetTxnID(id int)
//
SetInputAlias(alias string, id int64) error
//
IsReadOnly() bool
}
The Operation is an abstract data type that represents a stackql action. The operation maps to each of:
- an executable action.
- a redo log entry.
- an undo log entry.
One possible implementation is to store a nullable primitive (plan) graph node alongside log entries.
func NewReversibleOperation ¶
func NewReversibleOperation(pr primitive.IPrimitive) Operation
Click to show internal directories.
Click to hide internal directories.