Skip to main content

valence_core/
known_engines.rs

1//! Stable engine id slugs for first-party reference adapters.
2//!
3//! These constants are ergonomic aliases only — **not** a closed set. Third-party adapters
4//! define their own [`crate::DatabaseBackend::engine_id`] strings.
5
6/// Well-known [`DatabaseBackend`](crate::DatabaseBackend)::engine_id values shipped with this workspace.
7pub struct KnownEngines;
8
9impl KnownEngines {
10    pub const INMEMORY_MEM: &'static str = "inmemory_mem";
11    pub const SURREALDB: &'static str = "surrealdb";
12    pub const POSTGRES: &'static str = "postgres";
13    pub const SQLITE: &'static str = "sqlite";
14    pub const MONGODB: &'static str = "mongodb";
15    pub const REDIS: &'static str = "redis";
16    pub const INDRADB: &'static str = "indradb";
17}