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

Function exec

packages/sql/sqlite-node/src/SqliteClient.ts:167–171  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

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

Callers 1

makeFunction · 0.70

Calls 2

classifyErrorFunction · 0.70
execMethod · 0.45

Tested by

no test coverage detected