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

Function prepare

packages/sql/sqlite-bun/src/SqliteClient.ts:197–202  ·  view source on GitHub ↗
(sql: string, useSafeIntegers: boolean)

Source from the content-addressed store, hash-verified

195 }
196
197 const prepare = (sql: string, useSafeIntegers: boolean) => {
198 const statement = db.query(sql)
199 // @ts-ignore bun-types missing safeIntegers method, fixed in https://github.com/oven-sh/bun/pull/26627
200 statement.safeIntegers(useSafeIntegers)
201 return statement
202 }
203
204 const run = (
205 sql: string,

Callers 2

runFunction · 0.70
runValuesFunction · 0.70

Calls 1

queryMethod · 0.65

Tested by

no test coverage detected