2026-07-11 09:15:58 +00:00
/// The persistence backend the service runs against.
///
2026-07-30 06:33:57 +00:00
/// The executable picks a driver at startup and hands it to ``Service``, which registers the matching database as the default one. Repositories resolve
/// that default and stay agnostic of which backend is in use.
2026-07-11 09:15:58 +00:00
public enum Driver : Sendable {
2026-08-04 15:40:11 +02:00
/// A PostgreSQL server, reached with the given connection parameters.
2026-07-11 09:15:58 +00:00
///
2026-07-30 06:33:57 +00:00
/// - Parameter configuration: the host, credentials, TLS posture, and pooling limits the connection is opened with.
2026-08-04 15:40:11 +02:00
case postgres ( Configuration )
2026-07-11 09:15:58 +00:00
/// An ephemeral, in-process SQLite database held entirely in memory.
///
2026-07-30 06:33:57 +00:00
/// Nothing is written to disk, and all data is lost when the service stops — intended for local development and tests.
2026-07-11 09:15:58 +00:00
case inMemory
}