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

Method RenderMutationInput

core/internal/dialect/sqlite.go:785–791  ·  view source on GitHub ↗
(ctx Context, qc *qcode.QCode)

Source from the content-addressed store, hash-verified

783}
784
785func (d *SQLiteDialect) RenderMutationInput(ctx Context, qc *qcode.QCode) {
786 ctx.WriteString(`WITH `)
787 ctx.Quote("_sg_input")
788 ctx.WriteString(` AS (SELECT `)
789 ctx.AddParam(Param{Name: qc.ActionVar, Type: "json"})
790 ctx.WriteString(` AS j)`)
791}
792
793func (d *SQLiteDialect) RenderMutationPostamble(ctx Context, qc *qcode.QCode) {
794 // SQLite does nothing at the end of mutation

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.65
QuoteMethod · 0.65
AddParamMethod · 0.65

Tested by

no test coverage detected