(this: StatementImpl<any>)
| 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 | |
| 1400 | const withStatement = <A, X, E, R>( |