TanStack
DB
v0
v0
Search...
+ K
Auto
Log In
TanStack
Start
RC
Docs
Examples
GitHub
Contributors
TanStack
Router
Docs
Examples
GitHub
Contributors
TanStack
Query
Docs
Examples
GitHub
Contributors
TanStack
Table
Docs
Examples
Github
Contributors
TanStack
Form
new
Docs
Examples
Github
Contributors
TanStack
DB
beta
Docs
Github
Contributors
TanStack
Virtual
Docs
Examples
Github
Contributors
TanStack
Pacer
beta
Docs
Examples
Github
Contributors
TanStack
Store
alpha
Docs
Examples
Github
Contributors
TanStack
Devtools
alpha
Docs
Github
Contributors
More Libraries
Maintainers
Partners
Blog
Learn
NEW
Support
Stats
Discord
Merch
GitHub
Ethos
Tenets
Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Home
Frameworks
Contributors
GitHub
Discord
Getting Started
Overview
core
Quick Start
core
Installation
core
Guides
Live Queries
core
Mutations
core
Schemas
core
Error Handling
core
Creating Collection Options Creators
core
Collections
Query Collection
core
Electric Collection
core
TrailBase Collection
core
RxDB Collection
core
PowerSync Collection
core
LocalStorage Collection
core
LocalOnly Collection
core
Frameworks
React
core
Vue
core
Angular
core
Solid
core
Svelte
core
Community
Resources & Packages
core
API Reference
Core API Reference
core
Collection
core
createCollection
core
liveQueryCollectionOptions
core
createLiveQueryCollection
core
createOptimisticAction
core
createTransaction
core
Electric DB Collection
core
electricCollectionOptions
core
Query DB Collection
core
queryCollectionOptions
core
RxDB DB Collection
core
rxdbCollectionOptions
core
PowerSync Collection
core
powerSyncCollectionOptions
core
React Hooks
react
useLiveQuery
react
Framework
React
Version
Latest
Menu
Home
Frameworks
Contributors
GitHub
Discord
Getting Started
Overview
core
Quick Start
core
Installation
core
Guides
Live Queries
core
Mutations
core
Schemas
core
Error Handling
core
Creating Collection Options Creators
core
Collections
Query Collection
core
Electric Collection
core
TrailBase Collection
core
RxDB Collection
core
PowerSync Collection
core
LocalStorage Collection
core
LocalOnly Collection
core
Frameworks
React
core
Vue
core
Angular
core
Solid
core
Svelte
core
Community
Resources & Packages
core
API Reference
Core API Reference
core
Collection
core
createCollection
core
liveQueryCollectionOptions
core
createLiveQueryCollection
core
createOptimisticAction
core
createTransaction
core
Electric DB Collection
core
electricCollectionOptions
core
Query DB Collection
core
queryCollectionOptions
core
RxDB DB Collection
core
rxdbCollectionOptions
core
PowerSync Collection
core
powerSyncCollectionOptions
core
React Hooks
react
useLiveQuery
react
Learn about TanStack Ads
Hide Ads
@tanstack/db
Copy Markdown
@tanstack/db
Namespaces
IR
Classes
AggregateFunctionNotInSelectError
AggregateNotSupportedError
BaseIndex
BaseQueryBuilder
BTreeIndex
CannotCombineEmptyExpressionListError
CollectionConfigurationError
CollectionImpl
CollectionInErrorStateError
CollectionInputNotFoundError
CollectionIsInErrorStateError
CollectionOperationError
CollectionRequiresConfigError
CollectionRequiresSyncConfigError
CollectionStateError
DeduplicatedLoadSubset
DeleteKeyNotFoundError
DistinctRequiresSelectError
DuplicateAliasInSubqueryError
DuplicateDbInstanceError
DuplicateKeyError
DuplicateKeySyncError
EmptyReferencePathError
GroupByError
HavingRequiresGroupByError
IndexProxy
InvalidCollectionStatusTransitionError
InvalidJoinCondition
InvalidJoinConditionLeftSourceError
InvalidJoinConditionRightSourceError
InvalidJoinConditionSameSourceError
InvalidJoinConditionSourceMismatchError
InvalidSchemaError
InvalidSourceError
InvalidSourceTypeError
InvalidStorageDataFormatError
InvalidStorageObjectFormatError
JoinCollectionNotFoundError
JoinConditionMustBeEqualityError
JoinError
KeyUpdateNotAllowedError
LazyIndexWrapper
LimitOffsetRequireOrderByError
LocalStorageCollectionError
MissingAliasInputsError
MissingDeleteHandlerError
MissingHandlerError
MissingInsertHandlerError
MissingMutationFunctionError
MissingUpdateArgumentError
MissingUpdateHandlerError
NegativeActiveSubscribersError
NoKeysPassedToDeleteError
NoKeysPassedToUpdateError
NonAggregateExpressionNotInGroupByError
NonRetriableError
NoPendingSyncTransactionCommitError
NoPendingSyncTransactionWriteError
OnlyOneSourceAllowedError
OnMutateMustBeSynchronousError
QueryBuilderError
QueryCompilationError
QueryMustHaveFromClauseError
QueryOptimizerError
SchemaMustBeSynchronousError
SchemaValidationError
SerializationError
SetWindowRequiresOrderByError
SortedMap
StorageError
StorageKeyRequiredError
SubQueryMustHaveFromClauseError
SubscriptionNotFoundError
SyncCleanupError
SyncTransactionAlreadyCommittedError
SyncTransactionAlreadyCommittedWriteError
TanStackDBError
TransactionAlreadyCompletedRollbackError
TransactionError
TransactionNotPendingCommitError
TransactionNotPendingMutateError
UndefinedKeyError
UnknownExpressionTypeError
UnknownFunctionError
UnknownHavingExpressionTypeError
UnsupportedAggregateFunctionError
UnsupportedFromTypeError
UnsupportedJoinSourceTypeError
UnsupportedJoinTypeError
UpdateKeyNotFoundError
WhereClauseConversionError
Interfaces
BaseCollectionConfig
BaseStrategy
BTreeIndexOptions
ChangeMessage
Collection
CollectionConfig
CollectionLike
Context
CreateOptimisticActionsOptions
CurrentStateAsChangesOptions
DebounceStrategy
DebounceStrategyOptions
IndexInterface
IndexOptions
IndexStats
InsertConfig
LiveQueryCollectionConfig
LocalOnlyCollectionConfig
LocalOnlyCollectionUtils
LocalStorageCollectionConfig
LocalStorageCollectionUtils
OperationConfig
OptimisticChangeMessage
PacedMutationsConfig
ParsedOrderBy
Parser
ParseWhereOptions
PendingMutation
QueueStrategy
QueueStrategyOptions
RangeQueryOptions
SimpleComparison
SubscribeChangesOptions
SubscribeChangesSnapshotOptions
Subscription
SubscriptionStatusChangeEvent
SubscriptionStatusEvent
SubscriptionUnsubscribedEvent
SyncConfig
ThrottleStrategy
ThrottleStrategyOptions
Transaction
TransactionConfig
Type Aliases
ChangeListener
ChangesPayload
CleanupFn
ClearStorageFn
CollectionConfigSingleRowOption
CollectionStatus
DeleteMutationFn
DeleteMutationFnParams
FieldPath
Fn
GetResult
GetStorageSizeFn
IndexConstructor
IndexOperation
IndexResolver
InferResultType
InferSchemaInput
InferSchemaOutput
InitialQueryBuilder
InputRow
InsertMutationFn
InsertMutationFnParams
KeyedNamespacedRow
KeyedStream
LiveQueryCollectionUtils
LoadSubsetFn
LoadSubsetOptions
MaybeSingleResult
MutationFn
MutationFnParams
NamespacedAndKeyedStream
NamespacedRow
NonEmptyArray
NonSingleResult
OperationType
OperatorName
QueryBuilder
Ref
ResolveTransactionChanges
ResultStream
Row
SingleResult
Source
StandardSchema
StandardSchemaAlias
StorageApi
StorageEventApi
Strategy
StrategyOptions
StringCollationConfig
SubscriptionEvents
SubscriptionStatus
SyncConfigRes
SyncMode
TransactionState
TransactionWithMutations
UnloadSubsetFn
UpdateMutationFn
UpdateMutationFnParams
UtilsRecord
WritableDeep
Variables
IndexOperation
operators
Query
Functions
add
and
avg
coalesce
compileQuery
concat
count
createArrayChangeProxy
createChangeProxy
createCollection
createLiveQueryCollection
createOptimisticAction
createPacedMutations
createTransaction
debounceStrategy
eq
extractFieldPath
extractSimpleComparisons
extractValue
getActiveTransaction
gt
gte
ilike
inArray
isLimitSubset
isNull
isOrderBySubset
isPredicateSubset
isUndefined
isWhereSubset
length
like
liveQueryCollectionOptions
localOnlyCollectionOptions
localStorageCollectionOptions
lower
lt
lte
max
min
minusWherePredicates
not
or
parseLoadSubsetOptions
parseOrderByExpression
parseWhereExpression
queueStrategy
sum
throttleStrategy
unionWherePredicates
upper
walkExpression
withArrayChangeTracking
withChangeTracking
Edit on GitHub
Learn about TanStack Ads
Hide Ads
Resources & Packages
Collection
Partners
Become a Partner
Learn about TanStack Ads
Hide Ads