Getting Started

Tutorial: Building with CleaveDB

Bucket Configuration — Overview

In CleaveDB, a bucket is more than a simple document container. Each bucket possesses a dedicated storage policy, lifecycle rules, secondary indexes, write validation guards, and real-time event webhooks configured declaratively in CleaveQL.

Core bucket management commands

CommandPrimary roleKey capabilities
SHAPEBucket lifecycle & storage policyAUDITED, VERSIONED, MAX DOCUMENTS, COMPRESSION, TTL
GUARDWrite-time schema validationREQUIRED, type assertions, numeric bounds, enumeration sets (IN)
INDEXB+Tree index accelerationSingle-field and composite multi-field indexes
DESCRIBE & SHOWMetadata & resource inspectionSummarize document volumes, list buckets, bonds, indexes, stats, and webhooks
WEBHOOKChange Data Capture (CDC)HTTP event dispatch on POUR, CHANGE, and DRAIN actions

Explore the Bucket Configuration topics

Step through each lesson to configure your storage buckets: