TanStackDB v0
Auto
Framework
Version
Menu
  • Home
  • Frameworks
  • Contributors
  • GitHub
  • Discord
Getting Started
  • Overview
    core
  • Quick Start
    core
  • Installation
    core
  • React Adapter
    react
Guides
  • Live Queries
    core
  • Error Handling
    core
  • Creating Collection Options Creators
    core
Collections
  • Query Collection
    core
  • Electric Collection
    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
  • React Hooks
    react
  • useLiveQuery
    react
TanStackDB v0
Auto
Framework
Version
Menu
  • Home
  • Frameworks
  • Contributors
  • GitHub
  • Discord
Getting Started
  • Overview
    core
  • Quick Start
    core
  • Installation
    core
  • React Adapter
    react
Guides
  • Live Queries
    core
  • Error Handling
    core
  • Creating Collection Options Creators
    core
Collections
  • Query Collection
    core
  • Electric Collection
    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
  • React Hooks
    react
  • useLiveQuery
    react
On this page
  • Interface: BTreeIndexOptions
  • Properties
  • compareFn()?
  • Parameters
  • a
  • b
  • Returns

BTreeIndexOptions

Interface: BTreeIndexOptions

Defined in: packages/db/src/indexes/btree-index.ts:10

Options for Ordered index

Properties

compareFn()?

ts
optional compareFn: (a, b) => number;
optional compareFn: (a, b) => number;

Defined in: packages/db/src/indexes/btree-index.ts:11

Parameters

a

any

b

any

Returns

number

Edit on GitHub

On this page

  • Interface: BTreeIndexOptions
  • Properties
  • compareFn()?
  • Parameters
  • a
  • b
  • Returns
Home
Our Partners
Wow, it looks like you could be our first partner for this library! Chat with us!
TanStackForm
Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, Lit and Svelte.
TanStackStore
The immutable-reactive data store that powers the core of TanStack libraries and their framework adapters.