MCPcopy Create free account

hub / github.com/TanStack/db / functions

Functions3,143 in github.com/TanStack/db

↓ 2 callersFunctiongroupWhereClauses
* Step 3: Group WHERE clauses by the sources they touch. * * Single-source clauses can be pushed down to subqueries for optimization. * Multi-sourc
packages/db/src/query/optimizer.ts:666
↓ 2 callersFunctionhandleAddTodo
()
examples/react/offline-transactions/src/components/TodoDemo.tsx:64
↓ 2 callersMethodhandleApplyLocalMutations
( collectionId: string, request: { type: `rpc:applyLocalMutations:req` rpcId: string
packages/electron-db-sqlite-persistence/src/electron-coordinator.ts:626
↓ 2 callersMethodhandleApplyLocalMutations
( collectionId: string, request: { type: `rpc:applyLocalMutations:req` rpcId: string
packages/browser-db-sqlite-persistence/src/browser-coordinator.ts:626
↓ 2 callersMethodhandlePullSince
( collectionId: string, request: { type: `rpc:pullSince:req` rpcId: string fromRowVe
packages/electron-db-sqlite-persistence/src/electron-coordinator.ts:729
↓ 2 callersMethodhandlePullSince
( collectionId: string, request: { type: `rpc:pullSince:req` rpcId: string fromRowVe
packages/browser-db-sqlite-persistence/src/browser-coordinator.ts:729
↓ 2 callersFunctionhandleQueryResult
(result)
packages/query-db-collection/src/query.ts:1356
↓ 2 callersMethodhandleSourceChanges
Handle incoming changes from a source collection
packages/db/src/query/effect.ts:637
↓ 2 callersMethodhas
* Checks if a key exists in the map * * @param key - The key to check * @returns True if the key exists, false otherwise
packages/db/src/SortedMap.ts:142
↓ 2 callersFunctionhasKey
(key: string)
packages/db/src/query/compiler/index.ts:1876
↓ 2 callersMethodhasLoadedInitialState
()
packages/db/src/collection/subscription.ts:313
↓ 2 callersFunctionhasNamedParameters
( params: ExpoSQLiteBindParams | undefined, )
packages/expo-db-sqlite-persistence/tests/helpers/expo-sqlite-test-db.ts:36
↓ 2 callersFunctionhasPendingIncludesChanges
* Checks whether any includes state has pending changes that need to be flushed. * Checks direct pending child changes and shared nested buffers.
packages/db/src/query/live/collection-config-builder.ts:2143
↓ 2 callersFunctionhasTxids
( message: Message<T>, )
packages/electric-db-collection/src/electric.ts:373
↓ 2 callersFunctionhasVirtualPropPath
(path: Array<string>)
packages/db/src/virtual-props.ts:280
↓ 2 callersFunctionhasVirtualProps
( value: unknown, )
packages/db/src/virtual-props.ts:145
↓ 2 callersMethodinsertInLeaf
(i: index, key: K, value: V, tree: BTree<K, V>)
packages/db/src/utils/btree.ts:578
↓ 2 callersFunctioninsertItem
(item: TaskItem)
packages/db/tests/btree-index-undefined-values.test.ts:60
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/electron-db-sqlite-persistence/tests/electron-persisted-collection.e2e.test.ts:173
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/browser-db-sqlite-persistence/e2e/browser-single-tab-persisted-collection.e2e.test.ts:98
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/tauri-db-sqlite-persistence/e2e/shared/tauri-persisted-collection-harness.ts:97
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/expo-db-sqlite-persistence/e2e/mobile-persisted-collection-conformance-suite.ts:96
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/node-db-sqlite-persistence/e2e/node-persisted-collection.e2e.test.ts:94
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/react-native-db-sqlite-persistence/e2e/mobile-persisted-collection-conformance-suite.ts:96
↓ 2 callersFunctioninsertRowIntoCollections
( collections: ReadonlyArray<Collection<T, string | number>>, row: T, )
packages/capacitor-db-sqlite-persistence/e2e/shared/capacitor-persisted-collection-harness.ts:97
↓ 2 callersFunctioninterpolateSql
(sql, params)
packages/electron-db-sqlite-persistence/tests/e2e/fixtures/electron-main.mjs:41
↓ 2 callersFunctioninterpolateSql
(sql: string, params: ReadonlyArray<unknown>)
packages/db-sqlite-persistence-core/tests/sqlite-core-adapter.test.ts:46
↓ 2 callersMethodinvalidateFromCommittedTxUnsafe
( txCommitted: TxCommitted, )
packages/db-sqlite-persistence-core/src/persisted.ts:1985
↓ 2 callersMethodisApplyingInternally
()
packages/db-sqlite-persistence-core/src/persisted.ts:853
↓ 2 callersMethodisBroadcastChannelSupported
()
packages/offline-transactions/src/coordination/BroadcastChannelLeader.ts:165
↓ 2 callersFunctionisConditionalSelectValue
(value: unknown)
packages/db/src/query/compiler/select.ts:405
↓ 2 callersMethodisDisposed
Method indirection to prevent TypeScript from narrowing `disposed` across awaits
packages/electron-db-sqlite-persistence/src/electron-coordinator.ts:132
↓ 2 callersMethodisDisposed
Method indirection to prevent TypeScript from narrowing `disposed` across awaits
packages/browser-db-sqlite-persistence/src/browser-coordinator.ts:132
↓ 2 callersFunctionisDuplicateColumnAddError
( error: unknown, columnName: string, )
packages/db-sqlite-persistence-core/src/sqlite-core-adapter.ts:120
↓ 2 callersFunctionisExpoSQLiteDatabaseLike
( value: unknown, )
packages/expo-db-sqlite-persistence/src/expo-sqlite-driver.ts:64
↓ 2 callersFunctionisExpressionValue
(value: CaseWhenValue | undefined)
packages/db/src/query/builder/functions.ts:779
↓ 2 callersFunctionisNestedSelectObject
* Helper function to check if an object is a nested select object * * .select({ * id: users.id, * profile: { // <-- this is a nested select ob
packages/db/src/query/compiler/select.ts:288
↓ 2 callersMethodisOnline
()
packages/offline-transactions/src/executor/TransactionExecutor.ts:374
↓ 2 callersFunctionisPipedAggregateFunction
( aggregate: AggregateFunction<T, R>, )
packages/db-ivm/src/operators/groupBy.ts:29
↓ 2 callersFunctionisPlainObject
(value: any)
packages/db/src/query/builder/index.ts:967
↓ 2 callersFunctionisQueryCategory
(category: string, where: any)
packages/query-db-collection/tests/query.test.ts:6314
↓ 2 callersFunctionisResidualWhere
(where: Where)
packages/db/src/query/ir.ts:285
↓ 2 callersFunctionisSimpleExpression
(expr: IR.BasicExpression)
packages/query-db-collection/e2e/query-filter.ts:380
↓ 2 callersFunctionisSnapshotEndMessage
( message: Message<T>, )
packages/electric-db-collection/src/electric.ts:309
↓ 2 callersMethodisSupported
()
packages/offline-transactions/src/coordination/WebLocksLeader.ts:85
↓ 2 callersMethodloadAndReplayTransactions
()
packages/offline-transactions/src/OfflineExecutor.ts:325
↓ 2 callersFunctionloadBTree
()
packages/db-ivm/src/operators/topKWithFractionalIndexBTree.ts:30
↓ 2 callersMethodloadCollectionMetadataSnapshot
()
packages/db-sqlite-persistence-core/src/persisted.ts:936
↓ 2 callersFunctionloadFromStorage
* Load data from storage and return as a Map * @param parser - The parser to use for deserializing the data * @param storageKey - The key used to st
packages/db/src/local-storage.ts:632
↓ 2 callersFunctionloadPersistedBaselineForQuery
( hashedQueryKey: string, )
packages/query-db-collection/src/query.ts:860
↓ 2 callersFunctionloadSubset
( options?: LoadSubsetOptions, )
packages/powersync-db-collection/src/powersync.ts:524
↓ 2 callersMethodloadSubsetRowsUnsafe
( options: LoadSubsetOptions, )
packages/db-sqlite-persistence-core/src/persisted.ts:1182
↓ 2 callersFunctionmakeQueryClient
()
packages/query-db-collection/tests/query.test.ts:4968
↓ 2 callersFunctionmakeQueryResultHandler
(queryKey: QueryKey)
packages/query-db-collection/src/query.ts:1354
↓ 2 callersFunctionmapToSortedArray
( map: Map<string, T>, compare?: (a: T, b: T) => number, )
packages/db-ivm/tests/test-utils.ts:81
↓ 2 callersMethodmatchesCompareOptions
(compareOptions: CompareOptions)
packages/db/src/indexes/reverse-index.ts:84
↓ 2 callersMethodmatchesField
(fieldPath: Array<string>)
packages/db/src/indexes/reverse-index.ts:80
↓ 2 callersFunctionmaterializeIncludedValue
( state: IncludesOutputState, entry: ChildCollectionEntry | undefined, )
packages/db/src/query/live/collection-config-builder.ts:1241
↓ 2 callersFunctionmaterializesInline
(state: IncludesOutputState)
packages/db/src/query/live/collection-config-builder.ts:1237
↓ 2 callersFunctionmaxValue
* Get the maximum of two values, handling both numbers and Dates
packages/db/src/query/predicate-utils.ts:1165
↓ 2 callersFunctionminValue
* Get the minimum of two values, handling both numbers and Dates
packages/db/src/query/predicate-utils.ts:1175
↓ 2 callersMethodmove
* Moves the topK window
packages/db-ivm/src/operators/topKArray.ts:101
↓ 2 callersFunctionmutationPromise
()
packages/offline-transactions/tests/offline-e2e.test.ts:572
↓ 2 callersMethodnextLocalStreamPosition
()
packages/db-sqlite-persistence-core/src/persisted.ts:1726
↓ 2 callersFunctionnormalizeIndexSqlFragment
(fragment: string)
packages/db-sqlite-persistence-core/src/sqlite-core-adapter.ts:975
↓ 2 callersFunctionnormalizeQueryRows
( rows: unknown, sql: string, )
packages/tauri-db-sqlite-persistence/src/tauri-sql-driver.ts:39
↓ 2 callersFunctionnormalizeSubsetOptionsForKey
( options: LoadSubsetOptions, )
packages/db-sqlite-persistence-core/src/persisted.ts:703
↓ 2 callersMethodnotify
(isLeader: boolean)
packages/query-db-collection/e2e/offline-refresh.e2e.test.ts:126
↓ 2 callersFunctionnotifyListeners
()
examples/react-native/shopping-list/src/network/simulatedOffline.ts:8
↓ 2 callersMethodnotifyOnline
()
examples/react-native/shopping-list/src/network/SimulatedOnlineDetector.ts:24
↓ 2 callersFunctionoptimizeFromWithTracking
* Helper function to optimize a FROM clause while tracking what was actually optimized. * * @param from - FROM clause to optimize * @param singleSo
packages/db/src/query/optimizer.ts:925
↓ 2 callersFunctionoptimizeJoinFromWithTracking
( from: CollectionRefClass | QueryRefClass, singleSourceClauses: Map<string, BasicExpression<boolean>>,
packages/db/src/query/optimizer.ts:996
↓ 2 callersFunctionorderByWithFractionalIndexBase
( topKFunction: typeof topKWithFractionalIndex, valueExtractor: ( value: T extends KeyValue<unknown, i
packages/db-ivm/src/operators/orderBy.ts:137
↓ 2 callersFunctionparseScenarioResult
( stdoutBuffer: string, stderrBuffer: string, exitCode: number | null, )
packages/electron-db-sqlite-persistence/tests/e2e/electron-process-client.ts:81
↓ 2 callersFunctionparseSnapshotMessage
(message: SnapshotEndMessage)
packages/electric-db-collection/src/electric.ts:324
↓ 2 callersFunctionparseTodo
(todo: TodoResponse)
examples/react-native/offline-transactions/src/utils/api.ts:30
↓ 2 callersFunctionpathStartsWith
(path: Array<string>, prefix: Array<string>)
packages/db/src/query/compiler/index.ts:1657
↓ 2 callersMethodperformCleanup
* Perform cleanup operations, optionally in chunks during idle time * @returns true if cleanup was completed, false if it was rescheduled
packages/db/src/collection/lifecycle.ts:230
↓ 2 callersMethodpersistAndBroadcastExternalSyncTransactionUnsafe
( transaction: BufferedSyncTransaction<T, TKey>, )
packages/db-sqlite-persistence-core/src/persisted.ts:1375
↓ 2 callersFunctionpostHarnessMessage
( payload: Record<string, unknown>, )
packages/tauri-db-sqlite-persistence/e2e/app/src/main.ts:22
↓ 2 callersFunctionpostJson
( url: string, body: TBody, )
packages/expo-db-sqlite-persistence/e2e/expo-runtime-app/App.tsx:49
↓ 2 callersFunctionprintProcessResult
(result)
packages/electron-db-sqlite-persistence/tests/e2e/fixtures/electron-main.mjs:227
↓ 2 callersMethodprobe
* Probe IndexedDB availability by attempting to open a test database. * This catches private mode and other restrictions that block IndexedDB.
packages/offline-transactions/src/storage/IndexedDBAdapter.ts:18
↓ 2 callersFunctionprocessChangeMessage
(changeMessage: Message<T>)
packages/electric-db-collection/src/electric.ts:1497
↓ 2 callersMethodprocessCommittedTxUnsafe
( txCommitted: TxCommitted, )
packages/db-sqlite-persistence-core/src/persisted.ts:1883
↓ 2 callersFunctionprocessFrom
( from: CollectionRef | QueryRef, allInputs: Record<string, KeyedStream>, collections: Record<string, Co
packages/db/src/query/compiler/index.ts:1296
↓ 2 callersFunctionprocessGroupBy
( pipeline: NamespacedAndKeyedStream, groupByClause: GroupBy, havingClauses?: Array<Having>, selectCla
packages/db/src/query/compiler/group-by.ts:127
↓ 2 callersFunctionprocessMerge
* Processes a merge operation by merging source values into the target path
packages/db/src/query/compiler/select.ts:58
↓ 2 callersFunctionprocessMoveInEvent
(patterns: Array<MovePattern>)
packages/electric-db-collection/src/electric.ts:1258
↓ 2 callersFunctionprocessMoveOutEvent
( patterns: Array<MovePattern>, begin: () => void, write: (message: ChangeMessageOrDeleteKeyMessag
packages/electric-db-collection/src/electric.ts:1215
↓ 2 callersFunctionprocessNonMergeOp
* Processes a non-merge operation by setting the field value at the specified alias path
packages/db/src/query/compiler/select.ts:99
↓ 2 callersMethodpublish
(_collectionId: string, message: ProtocolEnvelope<unknown>)
packages/browser-db-sqlite-persistence/src/browser-coordinator.ts:182
↓ 2 callersMethodpullSince
()
packages/db-sqlite-persistence-core/src/persisted.ts:471
↓ 2 callersFunctionpushSuite
( name: string, skipped: boolean, callback: AsyncCallback, )
packages/tauri-db-sqlite-persistence/e2e/app/src/runtime-vitest.ts:68
↓ 2 callersFunctionpushSuite
( name: string, skipped: boolean, callback: AsyncCallback, )
packages/capacitor-db-sqlite-persistence/e2e/app/src/runtime-vitest.ts:68
↓ 2 callersFunctionquoteIdentifier
* Quote SQLite identifiers to handle column names correctly. * SQLite uses double quotes for identifiers.
packages/powersync-db-collection/src/sqlite-compiler.ts:73
↓ 2 callersFunctionreadSqlScalar
( databasePath: string, sql: string, )
packages/capacitor-db-sqlite-persistence/e2e/run-android-e2e.ts:314
↓ 2 callersFunctionreadSqlScalar
( databasePath: string, sql: string, )
packages/capacitor-db-sqlite-persistence/e2e/run-ios-e2e.ts:189
↓ 2 callersFunctionrecordAlias
(source: any)
packages/db/src/query/live/utils.ts:157
↓ 2 callersFunctionregisterPersistedCollectionConformanceSuite
(options: { suiteName: string createHarness: () => Promise<RegisteredHarness> })
packages/capacitor-db-sqlite-persistence/e2e/shared/register-persisted-collection-conformance-suite.ts:10
← previousnext →1,201–1,300 of 3,143, ranked by callers