An insert to write to data source
(ctx *plan.Context, p *plan.Insert)
| 49 | |
| 50 | // An insert to write to data source |
| 51 | func NewInsert(ctx *plan.Context, p *plan.Insert) *Upsert { |
| 52 | m := &Upsert{ |
| 53 | TaskBase: NewTaskBase(ctx), |
| 54 | db: p.Source, |
| 55 | insert: p.Stmt, |
| 56 | } |
| 57 | return m |
| 58 | } |
| 59 | func NewUpdate(ctx *plan.Context, p *plan.Update) *Upsert { |
| 60 | m := &Upsert{ |
| 61 | TaskBase: NewTaskBase(ctx), |
no test coverage detected