MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / prepare

Function prepare

packages/core/src/query/advanced/repeat.test.ts:18–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16function createRowsDb(rows: MockRow[]): DatabaseAdapter {
17 return {
18 prepare(): PreparedStatement {
19 return {
20 get() {
21 return undefined
22 },
23 all() {
24 return rows
25 },
26 run() {
27 return { changes: 0, lastInsertRowid: 0 }
28 },
29 }
30 },
31 // eslint-disable-next-line @typescript-eslint/no-empty-function
32 exec() {},
33 transaction<T>(fn: () => T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected