MCPcopy Create free account
hub / github.com/Effect-TS/effect / toJSON

Function toJSON

packages/effect/src/unstable/sql/Statement.ts:1389–1397  ·  view source on GitHub ↗
(this: StatementImpl<any>)

Source from the content-addressed store, hash-verified

1387 return this.compiler.compile(this, withoutTransform ?? false)
1388 },
1389 toJSON(this: StatementImpl<any>) {
1390 const [sql, params] = this.compile()
1391 return {
1392 _id: "Statement",
1393 segments: this.segments,
1394 sql,
1395 params
1396 }
1397 }
1398}
1399
1400const withStatement = <A, X, E, R>(

Callers

nothing calls this directly

Calls 1

compileMethod · 0.80

Tested by

no test coverage detected