Optional
coordinatorShard coordinator Durable Object
Optional
debugEnable debug logging for development and troubleshooting
Optional
disableDisable automatic migration detection and background migration (useful for testing)
Optional
hashWhether to hash shard mapping keys with SHA-256 for security and privacy. When enabled, primary keys are hashed before storing in KV, protecting sensitive data like emails from being visible in KV keys.
KV namespace for storing mappings
Optional
maxMaximum database size in bytes. Shards that exceed this size will be excluded from new allocations (existing mappings remain intact).
Optional
shardGeographic locations of each shard (required for location strategy)
Available D1 database bindings
Optional
strategyDefault shard allocation strategy (can be single strategy or mixed strategy object)
Optional
targetTarget region for location-based sharding
Configuration for the collegedb sharded database