mirror of
https://github.com/chaisql/chai.git
synced 2025-10-23 07:39:27 +08:00
stream: clone stream before execution
This commit is contained in:
@@ -20,6 +20,13 @@ func Replace(tableName string) *ReplaceOperator {
|
||||
return &ReplaceOperator{Name: tableName}
|
||||
}
|
||||
|
||||
func (op *ReplaceOperator) Clone() stream.Operator {
|
||||
return &ReplaceOperator{
|
||||
BaseOperator: op.BaseOperator.Clone(),
|
||||
Name: op.Name,
|
||||
}
|
||||
}
|
||||
|
||||
// Iterate implements the Operator interface.
|
||||
func (op *ReplaceOperator) Iterate(in *environment.Environment, f func(out *environment.Environment) error) error {
|
||||
var table *database.Table
|
||||
|
Reference in New Issue
Block a user