pub enum DatabaseScheme {
Postgres,
MySql,
Sqlite,
SqlServer,
}Expand description
Database schemes that the fraiseql-server binary can dispatch to.
The enum is exhaustive: every variant corresponds to an adapter that
main() / fraiseql run know how to construct (subject to Cargo feature
flags). New schemes require an explicit code change here and matching
arms in build_adapter / run_once / run_watch_loop.
Variants§
Postgres
postgresql:// or postgres:// — always available.
MySql
mysql:// — requires mysql Cargo feature.
Sqlite
sqlite:// — requires sqlite Cargo feature. Supports direct-SQL
Insert/Delete mutations; Update and custom / stored-procedure mutations
are rejected at startup (see guard_sqlite_mutations).
SqlServer
sqlserver:// — requires sqlserver Cargo feature.
Implementations§
Source§impl DatabaseScheme
impl DatabaseScheme
Sourcepub const fn required_feature(self) -> Option<&'static str>
pub const fn required_feature(self) -> Option<&'static str>
The Cargo feature flag required to build the matching adapter into the
server binary, or None for adapters that ship in the default feature
set.
Trait Implementations§
Source§impl Clone for DatabaseScheme
impl Clone for DatabaseScheme
Source§fn clone(&self) -> DatabaseScheme
fn clone(&self) -> DatabaseScheme
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 DatabaseScheme
Source§impl Debug for DatabaseScheme
impl Debug for DatabaseScheme
impl Eq for DatabaseScheme
Source§impl PartialEq for DatabaseScheme
impl PartialEq for DatabaseScheme
impl StructuralPartialEq for DatabaseScheme
Auto Trait Implementations§
impl Freeze for DatabaseScheme
impl RefUnwindSafe for DatabaseScheme
impl Send for DatabaseScheme
impl Sync for DatabaseScheme
impl Unpin for DatabaseScheme
impl UnsafeUnpin for DatabaseScheme
impl UnwindSafe for DatabaseScheme
Blanket Implementations§
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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