📄 tanstack/db/latest/docs/reference/powersync-db-collection/type-aliases/BasePowerSyncCollectionConfig

File: BasePowerSyncCollectionConfig.md | Updated: 11/15/2025

Source: https://tanstack.com/db/latest/docs/reference/powersync-db-collection/type-aliases/BasePowerSyncCollectionConfig



TanStack

DB v0v0

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Framework

React logo

React

Version

Latest

Search...

+ K

Menu

Getting Started

Guides

Collections

Frameworks

Community

API Reference

Framework

React logo

React

Version

Latest

Menu

Getting Started

Guides

Collections

Frameworks

Community

API Reference

On this page

BasePowerSyncCollectionConfig

Copy Markdown

Type Alias: BasePowerSyncCollectionConfig<TTable, TSchema>
==========================================================

ts

type BasePowerSyncCollectionConfig<TTable, TSchema> = Omit<BaseCollectionConfig<ExtractedTable<TTable>, string, TSchema>, "onInsert" | "onUpdate" | "onDelete" | "getKey"> & object;


type BasePowerSyncCollectionConfig<TTable, TSchema> = Omit<BaseCollectionConfig<ExtractedTable<TTable>, string, TSchema>, "onInsert" | "onUpdate" | "onDelete" | "getKey"> & object;

Defined in: definitions.ts:165

Type Declaration
----------------
### database

ts

database: AbstractPowerSyncDatabase;


database: AbstractPowerSyncDatabase;

The PowerSync database instance

### syncBatchSize?

ts

optional syncBatchSize: number;


optional syncBatchSize: number;

The maximum number of documents to read from the SQLite table in a single batch during the initial sync between PowerSync and the in-memory TanStack DB collection.

#### Remarks

  • Defaults to DEFAULT_BATCH_SIZE if not specified.
  • Larger values reduce the number of round trips to the storage engine but increase memory usage per batch.
  • Smaller values may lower memory usage and allow earlier streaming of initial results, at the cost of more query calls.

### table

ts

table: TTable;


table: TTable;

The PowerSync schema Table definition

Type Parameters
---------------
### TTable

TTable extends Table = Table

### TSchema

TSchema extends StandardSchemaV1 = never

Edit on GitHub

Home

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey

scarf analytics