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

Function prepare

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

Source from the content-addressed store, hash-verified

146 }
147
148 const prepare = (sql: string, useSafeIntegers: boolean) => {
149 const statement = db.query(sql)
150 // @ts-ignore bun-types missing safeIntegers method, fixed in https://github.com/oven-sh/bun/pull/26627
151 statement.safeIntegers(useSafeIntegers)
152 return statement
153 }
154
155 const run = (
156 sql: string,

Callers 2

runFunction · 0.85
runValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected