MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / init

Method init

app/src/sqlite/dialect.ts:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30 return {
31 async init() {
32 db = await load()
33 connection = {
34 async executeQuery<O>(query: CompiledQuery) {
35 return {
36 rows: (await db.execO(query.sql, query.parameters)) as O[],
37 }
38 },
39 async *streamQuery() {
40 throw new Error("Sqlite driver doesn't support streaming")
41 },
42 }
43 },
44 async acquireConnection() {
45 await waiter.lock()
46 return connection

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected