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

Function executeCommit

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

@internal

(this: Executable)

Source from the content-addressed store, hash-verified

91
92/** @internal */
93function 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

Callers

nothing calls this directly

Calls 3

pipeMethod · 0.65
executeMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected