What problem does it solve?
This Skill addresses the challenge of performing large-scale data operations reliably by providing unified bulk APIs (createMany, updateMany, deleteMany) for BKND-backed data stores, reducing manual scripting and error-prone iterations.
Core Features & Use Cases
- Bulk Insert: insert many records in a single API call using createMany.
- Bulk Update: update multiple records matching a where clause with updateMany.
- Bulk Delete: delete multiple records using deleteMany with a where clause.
- Chunked Processing: process large datasets in smaller chunks to manage memory and timeouts.
- Error Handling Strategies: all-or-nothing, best-effort, and fallback patterns for partial failures.
- Transaction-like Patterns: emulate transactional behavior using compensating actions when needed.
Quick Start
Run a simple bulk insert: api.data.createMany('products', [{ name: 'Widget', price: 9.99 }, { name: 'Gadget', price: 14.99 }]);