MCPcopy
hub / github.com/superagent-ai/grok-cli / prepare

Method prepare

src/storage/db.ts:15–15  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

13export interface SQLiteDatabase {
14 exec(sql: string): void;
15 prepare(sql: string): SQLiteStatement;
16 pragma(query: string, options?: { simple?: boolean }): unknown;
17 transaction<T>(fn: () => T): () => T;
18 close(): void;

Callers 15

addColumnIfMissingFunction · 0.65
createSessionMethod · 0.65
getLatestSessionMethod · 0.65
getSessionByIdMethod · 0.65
setTitleMethod · 0.65
setRecapMethod · 0.65
setModelMethod · 0.65
setModeMethod · 0.65
touchSessionMethod · 0.65
loadMessageRowsFunction · 0.65
loadLatestCompactionFunction · 0.65
appendMessagesFunction · 0.65

Implementers 2

BunSqliteDatabasesrc/storage/db.ts
FakeDatabasesrc/storage/migrations.test.ts

Calls

no outgoing calls

Tested by

no test coverage detected