@internal
(this: Executable)
| 72 | |
| 73 | /** @internal */ |
| 74 | function executeCommit(this: Executable) { |
| 75 | return Effect.tryPromise({ |
| 76 | try: () => this.execute(), |
| 77 | catch: (cause) => new SqlError({ cause }) |
| 78 | }).pipe(Effect.withSpan("kysely.execute", { |
| 79 | kind: "client", |
| 80 | captureStackTrace: false, |
| 81 | attributes: { |
| 82 | [ATTR_DB_QUERY_TEXT]: this.compile().sql |
| 83 | } |
| 84 | })) |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * @internal |