MCPcopy
hub / github.com/dosco/graphjin / RenderDelete

Method RenderDelete

core/internal/dialect/sqlite.go:684–689  ·  view source on GitHub ↗
(ctx Context, m *qcode.Mutate, where func())

Source from the content-addressed store, hash-verified

682}
683
684func (d *SQLiteDialect) RenderDelete(ctx Context, m *qcode.Mutate, where func()) {
685 ctx.WriteString(`DELETE FROM `)
686 ctx.ColWithTable(m.Ti.Schema, m.Ti.Name)
687 ctx.WriteString(` WHERE `)
688 where()
689}
690
691func (d *SQLiteDialect) RenderUpsert(ctx Context, m *qcode.Mutate, insert func(), updateSet func()) {
692 insert()

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.65
ColWithTableMethod · 0.65

Tested by

no test coverage detected