MCPcopy
hub / github.com/electric-sql/pglite / query

Function query

packages/benchmark/src/rtt-worker.js:30–36  ·  view source on GitHub ↗
(sql)

Source from the content-addressed store, hash-verified

28
29 // Create the query interface.
30 async function query(sql) {
31 // console.log('Query:', sql);
32 const startTime = performance.now()
33 await pg.exec(sql)
34 const elapsed = performance.now() - startTime
35 return { elapsed }
36 }
37 return Comlink.proxy(query)
38 }
39

Callers 4

templating.test.jsFile · 0.90
getStmtFunction · 0.90
rtt.jsFile · 0.70
benchmarks.jsFile · 0.70

Calls 1

execMethod · 0.80

Tested by 1

getStmtFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…