MCPcopy Index your code
hub / github.com/TanStack/db / toInlinedWhereClause

Function toInlinedWhereClause

packages/powersync-db-collection/src/powersync.ts:592–602  ·  view source on GitHub ↗
(compiled: {
          where?: string
          params: Array<unknown>
        })

Source from the content-addressed store, hash-verified

590 }
591
592 const toInlinedWhereClause = (compiled: {
593 where?: string
594 params: Array<unknown>
595 }): string => {
596 if (!compiled.where) return 'TRUE'
597 const sqlParts = compiled.where.split('?')
598 return sanitizeSQL(
599 sqlParts as unknown as TemplateStringsArray,
600 ...compiled.params,
601 )
602 }
603
604 const unloadSubset = async (options: LoadSubsetOptions) => {
605 onUnloadSubset?.()

Callers 2

loadSubsetFunction · 0.85
unloadSubsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected