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

Function executeCommit

packages/sql-kysely/src/internal/patch.ts:74–85  ·  view source on GitHub ↗

@internal

(this: Executable)

Source from the content-addressed store, hash-verified

72
73/** @internal */
74function 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

Callers

nothing calls this directly

Calls 3

pipeMethod · 0.65
executeMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected