MCPcopy Create free account

hub / github.com/TanStack/db / functions

Functions3,143 in github.com/TanStack/db

↓ 15 callersMethodwriteByte
(byte: number)
packages/db-ivm/src/hashing/murmur.ts:54
↓ 14 callersFunctionbuildToArrayToArrayQuery
()
packages/db/tests/query/includes.test.ts:1933
↓ 14 callersMethodclose
()
packages/node-db-sqlite-persistence/src/node-driver.ts:151
↓ 14 callersFunctioncreateArrayChangeProxy
( targets: Array<T>, )
packages/db/src/proxy.ts:1130
↓ 14 callersFunctiongroupedOrderByWithFractionalIndex
( valueExtractor: ( value: T extends KeyValue<unknown, infer V> ? V : never, ) => Ve, options: Group
packages/db-ivm/src/operators/groupedOrderBy.ts:39
↓ 14 callersFunctionlte
(left: BasicExpression, right: BasicExpression)
packages/db/tests/query/predicate-utils.test.ts:48
↓ 14 callersFunctionmockSyncCollectionOptionsNoInitialState
(config: MockSyncCollectionConfigNoInitialState<T>)
packages/db/tests/utils.ts:318
↓ 14 callersFunctionor
( left: ExpressionLike, right: ExpressionLike, ...rest: Array<ExpressionLike> )
packages/db/src/query/builder/functions.ts:234
↓ 14 callersMethodremove
* Removes a value from the index
packages/db/src/indexes/basic-index.ts:115
↓ 14 callersMethodrun
(sql: string, params: ReadonlyArray<unknown> = [])
packages/react-native-db-sqlite-persistence/src/op-sqlite-driver.ts:308
↓ 14 callersFunctionsortedPlainRows
(collectionOrArray: any, sortKey = `id`)
packages/db/tests/query/includes.test.ts:124
↓ 14 callersFunctiontopKWithFractionalIndex
( comparator: (a: T, b: T) => number, options?: TopKWithFractionalIndexOptions, )
packages/db-ivm/src/operators/topKWithFractionalIndex.ts:113
↓ 14 callersMethodvalues
* Get all values (virtual derived state)
packages/db/src/collection/index.ts:508
↓ 13 callersFunctioncreateElectricCollectionWithSyncMode
( syncMode: `eager` | `on-demand` | `progressive`, )
packages/electric-db-collection/tests/electric-live-query.test.ts:651
↓ 13 callersMethodexec
(sql: string)
packages/react-native-db-sqlite-persistence/src/op-sqlite-driver.ts:281
↓ 13 callersFunctionfilter
(f: (data: T) => boolean)
packages/db-ivm/src/operators/filter.ts:32
↓ 13 callersMethodgetResult
()
packages/db-ivm/tests/test-utils.ts:154
↓ 13 callersFunctiongroupBy
(keyExtractor: (data: T) => K, aggregates: A = {} as A)
packages/db-ivm/src/operators/groupBy.ts:40
↓ 13 callersFunctiongte
(left: any, right: any)
packages/db/src/query/builder/functions.ts:172
↓ 13 callersFunctionisRefProxy
(value: any)
packages/db/src/query/builder/ref-proxy.ts:339
↓ 13 callersFunctionlt
(left: any, right: any)
packages/db/src/query/builder/functions.ts:185
↓ 13 callersFunctionmaterialize
( query: QueryBuilder<TContext>, )
packages/db/src/query/builder/functions.ts:848
↓ 13 callersMethodpostMessage
(request: BrowserOPFSWorkerRequest)
packages/browser-db-sqlite-persistence/tests/opfs-database.test.ts:60
↓ 13 callersFunctionreduce
(f: (values: Array<[V1Type, number]>) => Array<[R, number]>)
packages/db-ivm/src/operators/reduce.ts:103
↓ 13 callersFunctionsortByKeyAndIndex
* Helper function to sort results by key and then index
packages/db-ivm/tests/operators/groupedOrderByWithFractionalIndex.test.ts:706
↓ 13 callersFunctionunionWherePredicates
( predicates: Array<BasicExpression<boolean>>, )
packages/db/src/query/predicate-utils.ts:297
↓ 13 callersMethodvalidateData
* Validates the data against the schema
packages/db/src/collection/index.ts:636
↓ 12 callersMethodadd
(transaction: OfflineTransaction)
packages/offline-transactions/src/outbox/OutboxManager.ts:24
↓ 12 callersMethodaddMessage
(message: MultiSet<[K, V]>)
packages/db-ivm/tests/test-utils.ts:150
↓ 12 callersFunctionassert
(condition: boolean, failureMessage: string)
packages/tauri-db-sqlite-persistence/e2e/app/src/runtime-vitest.ts:187
↓ 12 callersFunctionassert
(condition: boolean, failureMessage: string)
packages/capacitor-db-sqlite-persistence/e2e/app/src/runtime-vitest.ts:187
↓ 12 callersFunctionassertCollectionSize
( collection: Collection<T>, expectedSize: number, message?: string, )
packages/db-collection-e2e/src/utils/assertions.ts:78
↓ 12 callersFunctionbuildCollectionToArrayQuery
()
packages/db/tests/query/includes.test.ts:1530
↓ 12 callersFunctioncollectEvents
Collect events from an effect into an array
packages/db/tests/effect.test.ts:61
↓ 12 callersFunctioncomparator
( a: Record<string, unknown> | null | undefined, b: Record<string, unknown> | null | undefined
packages/db/src/query/compiler/order-by.ts:253
↓ 12 callersFunctioncreateElectronSQLitePersistence
( options: ElectronSQLitePersistenceOptions, )
packages/electron-db-sqlite-persistence/src/renderer.ts:333
↓ 12 callersFunctioncreateOptimisticAction
( options: CreateOptimisticActionsOptions<TVariables>, )
packages/db/src/optimistic-action.ts:54
↓ 12 callersFunctiondebounceStrategy
( options: DebounceStrategyOptions, )
packages/db/src/strategies/debounceStrategy.ts:28
↓ 12 callersMethoddelete
(key: string)
examples/electron/offline-first/src/db/todos.ts:56
↓ 12 callersMethodensureIndex
( collectionId: string, signature: string, spec: PersistedIndexSpec, )
packages/db-sqlite-persistence-core/src/sqlite-core-adapter.ts:1421
↓ 12 callersFunctionexpectIndexUsage
( stats: IndexUsageStats, expectations: { shouldUseIndex: boolean shouldUseFullScan?: boolean
packages/db/tests/query/indexes.test.ts:135
↓ 12 callersFunctionextractComparisonField
(func: Func)
packages/db/src/query/predicate-utils.ts:1195
↓ 12 callersFunctionfilterFn
(key: TKey)
packages/db/src/collection/change-events.ts:348
↓ 12 callersMethodgetKey
(key: string)
packages/offline-transactions/src/storage/LocalStorageAdapter.ts:49
↓ 12 callersFunctiongetValue
(indexedVal: IndexedValue<V>)
packages/db-ivm/src/operators/topKArray.ts:16
↓ 12 callersFunctionisExpressionLike
(value: any)
packages/db/src/query/ir.ts:218
↓ 12 callersFunctionlower
( arg: T, )
packages/db/src/query/builder/functions.ts:289
↓ 12 callersMethodremoveIndex
* Removes an index created with createIndex. * Returns true when an index existed and was removed. * * Best-effort semantics: removing an ind
packages/db/src/collection/index.ts:613
↓ 12 callersMethodrollback
* Rollback the transaction and any conflicting transactions * @param config - Configuration for rollback behavior * @returns This transaction fo
packages/db/src/transactions.ts:410
↓ 12 callersMethodrun
(sql: string, params: ReadonlyArray<unknown> = [])
packages/expo-db-sqlite-persistence/src/expo-sqlite-driver.ts:128
↓ 12 callersFunctionrunCommand
( command: string, args: Array<string>, options: { cwd?: string env?: NodeJS.ProcessEnv stdi
packages/capacitor-db-sqlite-persistence/e2e/run-android-e2e.ts:31
↓ 12 callersMethodset
(key: string, value: string)
examples/react-native/shopping-list/src/db/AsyncStorageAdapter.ts:19
↓ 12 callersFunctionvalueExtractor
(row: NamespacedRow & { $selected?: any })
packages/db/src/query/compiler/order-by.ts:74
↓ 11 callersFunctionbeforeAll
(callback: AsyncCallback)
packages/tauri-db-sqlite-persistence/e2e/app/src/runtime-vitest.ts:359
↓ 11 callersFunctionchildRows
(collection: { toArray: ReadonlyArray<unknown> })
packages/db/tests/query/union-all.test.ts:197
↓ 11 callersFunctioncreateDatabase
()
packages/powersync-db-collection/tests/powersync.test.ts:44
↓ 11 callersFunctioncreateExpoSQLitePersistence
( options: ExpoSQLitePersistenceOptions, )
packages/expo-db-sqlite-persistence/src/expo.ts:91
↓ 11 callersFunctioncreateUsersCollection
(id: string)
packages/db/tests/query/union-all.test.ts:125
↓ 11 callersFunctiondispose
()
packages/db/src/query/effect.ts:245
↓ 11 callersMethodexecuteStatement
( sql: string, params: ReadonlyArray<unknown> = [], )
packages/tauri-db-sqlite-persistence/src/tauri-sql-driver.ts:213
↓ 11 callersFunctionflushMicrotasks
()
packages/offline-transactions/tests/leader-failover.test.ts:7
↓ 11 callersMethodfullJoin
* Perform a FULL JOIN with another table or subquery * * @param source - An object with a single key-value pair where the key is the table alias
packages/db/src/query/builder/index.ts:410
↓ 11 callersFunctiongenerateSeedData
()
packages/db-collection-e2e/src/fixtures/seed-data.ts:36
↓ 11 callersFunctiongroupedTopKWithFractionalIndex
( comparator: (a: T, b: T) => number, options: GroupedTopKWithFractionalIndexOptions<K, T>, )
packages/db-ivm/src/operators/groupedTopKWithFractionalIndex.ts:171
↓ 11 callersMethodhas
* Check if a key exists in the collection (virtual derived state)
packages/db/src/collection/index.ts:487
↓ 11 callersFunctionisOrderBySubset
( subset: OrderBy | undefined, superset: OrderBy | undefined, )
packages/db/src/query/predicate-utils.ts:715
↓ 11 callersMethodloadSubset
( options: LoadSubsetOptions, upstreamLoadSubset?: (options: LoadSubsetOptions) => true | Promise<void
packages/db-sqlite-persistence-core/src/persisted.ts:981
↓ 11 callersFunctionlte
(left: any, right: any)
packages/db/src/query/builder/functions.ts:198
↓ 11 callersFunctionparseLoadSubsetOptions
( options: | { where?: BasicExpression<boolean> orderBy?: OrderBy limit?: number
packages/db/src/query/expression-helpers.ts:499
↓ 11 callersFunctionparseTag
(tag: MoveTag)
packages/electric-db-collection/src/tag-index.ts:57
↓ 11 callersMethodrun
(sql: string, params?: ReadonlyArray<unknown>)
packages/db-sqlite-persistence-core/tests/sqlite-core-adapter.test.ts:109
↓ 11 callersMethodschedule
* Schedule work. Without a context id, executes immediately. * Otherwise queues the job to be flushed once dependencies are satisfied. * Schedul
packages/db/src/scheduler.ts:77
↓ 11 callersMethodsendCommand
( commandInput: ExpoRuntimeCommandInput, )
packages/expo-db-sqlite-persistence/tests/helpers/expo-emulator-runtime.ts:425
↓ 11 callersFunctionsetStatus
(status: string, details?: unknown)
packages/tauri-db-sqlite-persistence/e2e/app/src/main.ts:15
↓ 11 callersFunctionstatus
()
packages/angular-db/tests/inject-live-query.test.ts:97
↓ 11 callersFunctionstripVirtualProps
( value: T, )
packages/db-sqlite-persistence-core/tests/persisted.test.ts:241
↓ 11 callersFunctionstripVirtualPropsDeep
(value: any)
packages/db/tests/query/includes.test.ts:96
↓ 11 callersFunctionwaitForItem
( collection: Collection<any, any, any, any, any>, itemId: string, timeout: number = 10000,
packages/db-collection-e2e/src/suites/moves.suite.ts:98
↓ 10 callersFunctionbuildToArrayToCollectionQuery
()
packages/db/tests/query/includes.test.ts:1756
↓ 10 callersMethodclose
()
packages/expo-db-sqlite-persistence/src/expo-sqlite-driver.ts:154
↓ 10 callersFunctioncreateEmployeesCollection
(autoIndex: `off` | `eager` = `eager`)
packages/db/tests/query/where.test.ts:224
↓ 10 callersFunctioncreateOrdersCollection
(autoIndex: `off` | `eager` = `eager`)
packages/db/tests/query/group-by.test.ts:214
↓ 10 callersFunctioncreateTauriSQLiteTestDatabase
(options: { filename: string })
packages/tauri-db-sqlite-persistence/tests/helpers/tauri-sql-test-db.ts:8
↓ 10 callersFunctionfetch
(request: Request)
examples/solid/todo/src/server.ts:4
↓ 10 callersMethodget
(key: string)
examples/electron/offline-first/src/db/todos.ts:48
↓ 10 callersFunctionisLoading
()
packages/svelte-db/src/useLiveQuery.svelte.ts:496
↓ 10 callersFunctionjsonResponse
(status, body)
packages/cloudflare-durable-objects-db-sqlite-persistence/e2e/fixtures/worker.mjs:59
↓ 10 callersFunctionlte
(left: BasicExpression<any>, right: BasicExpression<any>)
packages/db/tests/query/subset-dedupe.test.ts:39
↓ 10 callersFunctionparseWhereExpression
( expr: BasicExpression<boolean> | undefined | null, options: ParseWhereOptions<T>, )
packages/db/src/query/expression-helpers.ts:201
↓ 10 callersMethodrangeQuery
* Performs a range query using binary search - O(log n + m)
packages/db/src/indexes/basic-index.ts:254
↓ 10 callersMethodrightJoin
* Perform a RIGHT JOIN with another table or subquery * * @param source - An object with a single key-value pair where the key is the table alia
packages/db/src/query/builder/index.ts:358
↓ 10 callersFunctionsortByKeyAndIndex
* Helper function to sort results by key and then index
packages/db-ivm/tests/operators/orderByWithIndex.test.ts:438
↓ 10 callersMethodtakeFromStart
* Returns the first n items in sorted order (from the start)
packages/db/src/indexes/basic-index.ts:425
↓ 10 callersFunctiontoBooleanPredicate
(result: boolean | null)
packages/db/src/query/compiler/evaluators.ts:71
↓ 10 callersFunctionwaitUntil
( predicate: () => boolean | Promise<boolean>, timeoutMs = 5000, intervalMs = 20, )
packages/offline-transactions/tests/offline-e2e.test.ts:11
↓ 10 callersFunctionwithIndexTracking
( collection: any, testFn: (tracker: { stats: IndexUsageStats }) => void | Promise<void>, )
packages/db/tests/query/indexes.test.ts:170
↓ 9 callersFunctionadd
( left: T1, right: T2, )
packages/db/src/query/builder/functions.ts:601
↓ 9 callersFunctionbuildIncludesQuery
()
packages/db/tests/query/includes.test.ts:155
↓ 9 callersMethodcancel
(key: unknown)
packages/db/src/collection/cleanup-queue.ts:43
↓ 9 callersFunctioncollection
()
packages/svelte-db/src/useLiveQuery.svelte.ts:490
← previousnext →301–400 of 3,143, ranked by callers