pub enum StorageBackend {
Sqlite,
Postgres,
}Expand description
v0.7.0 Wave-3 — declared storage backend for the daemon.
Surfaced through the /capabilities payload so operators and clients
can detect whether the daemon is backed by the bundled SQLite path
(the historical default) or by the SAL-routed Postgres adapter.
The variant resolves once at serve() startup from the
--store-url flag (when set) or the --db path (when absent), and
is stable across the process lifetime.
Variants§
Sqlite
Bundled SQLite — the production default. Every handler operates
on the Db connection directly and the SAL handle in AppState
wraps the same connection for parity tests + the v0.7.0 Wave-3
trait-routed code paths.
Postgres
Postgres — selected when serve --store-url postgres://... is
passed and the binary was built with --features sal-postgres.
Handlers that have been migrated to dispatch through the
[crate::store::MemoryStore] trait operate against the
PostgresStore adapter; handlers that have not yet migrated
surface 501 Not Implemented with a clear storage_backend
hint so operators can plan the rollout.
Implementations§
Trait Implementations§
Source§impl Clone for StorageBackend
impl Clone for StorageBackend
Source§fn clone(&self) -> StorageBackend
fn clone(&self) -> StorageBackend
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StorageBackend
Source§impl Debug for StorageBackend
impl Debug for StorageBackend
impl Eq for StorageBackend
Source§impl PartialEq for StorageBackend
impl PartialEq for StorageBackend
Source§fn eq(&self, other: &StorageBackend) -> bool
fn eq(&self, other: &StorageBackend) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StorageBackend
Auto Trait Implementations§
impl Freeze for StorageBackend
impl RefUnwindSafe for StorageBackend
impl Send for StorageBackend
impl Sync for StorageBackend
impl Unpin for StorageBackend
impl UnsafeUnpin for StorageBackend
impl UnwindSafe for StorageBackend
Blanket Implementations§
impl<T> Boilerplate for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more