MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / Adapter

Class Adapter

packages/tools/src/providers/core-data-provider.test.ts:35–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35class Adapter implements DatabaseAdapter {
36 constructor(private db: Database.Database) {}
37 exec(sql: string) {
38 this.db.exec(sql)
39 }
40 prepare(sql: string) {
41 return new Stmt(this.db.prepare(sql))
42 }
43 transaction<T>(fn: () => T): T {
44 return this.db.transaction(fn)()
45 }
46 pragma(p: string) {
47 return this.db.pragma(p)
48 }
49 close() {
50 this.db.close()
51 }
52}
53
54const T0 = 1700000000
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected