MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewInsert

Function NewInsert

exec/mutations.go:51–58  ·  view source on GitHub ↗

An insert to write to data source

(ctx *plan.Context, p *plan.Insert)

Source from the content-addressed store, hash-verified

49
50// An insert to write to data source
51func 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}
59func NewUpdate(ctx *plan.Context, p *plan.Update) *Upsert {
60 m := &Upsert{
61 TaskBase: NewTaskBase(ctx),

Callers 1

WalkInsertMethod · 0.85

Calls 1

NewTaskBaseFunction · 0.85

Tested by

no test coverage detected