Expand description
MongoDB wire DatabaseBackend adapter for Valence.
§TTL
Implements native schema TTL (SupportedNative): idempotent TTL index on
valence_core::ttl::EXPIRE_AT_FIELD (expireAfterSeconds: 0) plus create-time stamps.
Call valence_core::Valence::ensure_ttl_for_all at boot; see valence_core::ttl.
Structs§
- Mongo
Backend - MongoDB-backed
DatabaseBackendstoring JSON documents per collection. - Mongo
Backend Builder - Builder for
super::backend::MongoBackend. - Mongo
Config - Connection settings for a MongoDB-backed Valence adapter.
Constants§
- DATABASE_
ENV - Database name env var.
- ENGINE_
ID - Stable engine slug for router keys (
mongodb:logical_name). - PRIMARY
- Schema evaluator const for
database:routing. - TEST_
URI_ ENV - Fallback test URI env var.
- URI_ENV
- Environment variable for MongoDB connection URI.