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

Function exec

packages/sql/sqlite-bun/src/SqliteClient.ts:169–173  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

167 Math.max(0, Math.round(Duration.toMillis(options.busyTimeout ?? Duration.seconds(5))))
168 )
169 const exec = (sql: string) =>
170 Effect.try({
171 try: () => db.run(sql),
172 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to configure database", "connect") })
173 })
174 yield* exec(`PRAGMA busy_timeout = ${busyTimeout};`)
175
176 if (options.disableWAL !== true && !readonly) {

Callers 2

makeFunction · 0.70

Calls 2

classifyErrorFunction · 0.70
runMethod · 0.65

Tested by

no test coverage detected