MCPcopy Index your code
hub / github.com/electric-sql/pglite / incrementalQuery

Method incrementalQuery

packages/pglite/src/live/interface.ts:86–86  ·  view source on GitHub ↗

* Create a live query with incremental updates * @param query - The query to run * @param params - The parameters to pass to the query * @param callback - A callback to run when the query is updated * @returns A promise that resolves to an object with the initial results, * an unsubsc

(
    query: string,
    params: any[] | undefined | null,
    key: string,
    callback?: (results: Results<T>) => void,
  )

Source from the content-addressed store, hash-verified

84 * an unsubscribe function, and a refresh function
85 */
86 incrementalQuery<T = { [key: string]: any }>(
87 query: string,
88 params: any[] | undefined | null,
89 key: string,

Callers 5

useLiveQueryImplFunction · 0.80
testLiveQueryFunction · 0.80
useLiveQueryImplFunction · 0.80
live.test.tsFile · 0.80
testsFunction · 0.80

Calls

no outgoing calls

Tested by 1

testLiveQueryFunction · 0.64