MCPcopy
hub / github.com/Effect-TS/effect / toJSON

Method toJSON

packages/sql/src/internal/statement.ts:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 )
187 }
188 toJSON() {
189 const [sql, params] = this.compile()
190 return {
191 _id: "@effect/sql/Statement",
192 segments: this.segments,
193 sql,
194 params
195 }
196 }
197}
198
199class FragmentImpl implements Statement.Fragment {

Callers

nothing calls this directly

Calls 1

compileMethod · 0.95

Tested by

no test coverage detected