Tanstack DB Core Custom Adapter

Building custom collection adapters for new backends. SyncConfig interface: sync function receiving begin, write, commit, markReady, markError, truncate, metadata primitives and returning cleanup, loadSubset, and optional unloadSubset handlers. ChangeMessage format (insert, update, delete). On-demand LoadSubsetOptions (where, orderBy, limit, offset, cursor). Expression parsing: parseWhereExpression, parseOrderByExpression, extractSimpleComparisons, parseLoadSubsetOptions. Collection options creator pattern. rowUpdateMode (partial vs full). Subscription lifecycle and cleanup functions. Persisted sync metadata API (metadata.row and metadata.collection) for storing per-row and per-collection adapter state.

lukasa1993 6fd9099 3 files · 14.8 KB Updated

File contents

lukasa1993/tanstack-skills-extracted/tree/main/skills/tanstack-db-core-custom-adapter commit 6fd90994b7

Frequently asked questions

npx skillmds@latest add lukasa1993/tanstack-db-core-custom-adapter