Skip to main content

Crate valence_backend_mongodb

Crate valence_backend_mongodb 

Source
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§

MongoBackend
MongoDB-backed DatabaseBackend storing JSON documents per collection.
MongoBackendBuilder
Builder for super::backend::MongoBackend.
MongoConfig
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.