Enum sea_orm::DatabaseBackend
source · [−]pub enum DatabaseBackend {
MySql,
Postgres,
Sqlite,
}
Expand description
The type of database backend for real world databases. This is enabled by feature flags as specified in the crate documentation
Variants
MySql
A MySQL backend
Postgres
A PostgreSQL backend
Sqlite
A SQLite backend
Implementations
sourceimpl DatabaseBackend
impl DatabaseBackend
sourcepub fn is_prefix_of(self, base_url: &str) -> bool
pub fn is_prefix_of(self, base_url: &str) -> bool
Check if the URI is the same as the specified database backend. Returns true if they match.
sourcepub fn build<S>(&self, statement: &S) -> Statement where
S: StatementBuilder,
pub fn build<S>(&self, statement: &S) -> Statement where
S: StatementBuilder,
Build an SQL Statement
sourcepub fn get_query_builder(&self) -> Box<dyn QueryBuilder>
pub fn get_query_builder(&self) -> Box<dyn QueryBuilder>
A helper for building SQL queries
sourcepub fn support_returning(&self) -> bool
pub fn support_returning(&self) -> bool
Check if the database supports RETURNING
syntax on insert and update
Trait Implementations
sourceimpl Clone for DatabaseBackend
impl Clone for DatabaseBackend
sourcefn clone(&self) -> DatabaseBackend
fn clone(&self) -> DatabaseBackend
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DatabaseBackend
impl Debug for DatabaseBackend
sourceimpl PartialEq<DatabaseBackend> for DatabaseBackend
impl PartialEq<DatabaseBackend> for DatabaseBackend
impl Copy for DatabaseBackend
impl StructuralPartialEq for DatabaseBackend
Auto Trait Implementations
impl RefUnwindSafe for DatabaseBackend
impl Send for DatabaseBackend
impl Sync for DatabaseBackend
impl Unpin for DatabaseBackend
impl UnwindSafe for DatabaseBackend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more