@internal
(this: Executable)
| 91 | |
| 92 | /** @internal */ |
| 93 | function executeCommit(this: Executable) { |
| 94 | return Effect.tryPromise({ |
| 95 | try: () => this.execute(), |
| 96 | catch: (cause) => new SqlError({ cause }) |
| 97 | }).pipe(Effect.withSpan("kysely.execute", { |
| 98 | kind: "client", |
| 99 | captureStackTrace: false, |
| 100 | attributes: { |
| 101 | [ATTR_DB_QUERY_TEXT]: this.compile().sql |
| 102 | } |
| 103 | })) |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * @internal |