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

Method RenderInsert

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

Source from the content-addressed store, hash-verified

628}
629
630func (d *SQLiteDialect) RenderInsert(ctx Context, m *qcode.Mutate, values func()) {
631 ctx.WriteString(`INSERT INTO `)
632 ctx.ColWithTable(m.Ti.Schema, m.Ti.Name)
633 ctx.WriteString(` (`)
634 values()
635 ctx.WriteString(`) `)
636 d.RenderReturning(ctx, m)
637}
638
639func (d *SQLiteDialect) RenderUpdate(ctx Context, m *qcode.Mutate, set func(), from func(), where func()) {
640 // Pre-select IDs into _gj_ids for later use by the SELECT query

Callers

nothing calls this directly

Calls 3

RenderReturningMethod · 0.95
WriteStringMethod · 0.65
ColWithTableMethod · 0.65

Tested by

no test coverage detected