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§
Implementations§
source§impl 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) -> Statementwhere
S: StatementBuilder,
pub fn build<S>(&self, statement: &S) -> Statementwhere 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§
source§impl Clone for DatabaseBackend
impl Clone for DatabaseBackend
source§fn clone(&self) -> DatabaseBackend
fn clone(&self) -> DatabaseBackend
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DatabaseBackend
impl Debug for DatabaseBackend
source§impl PartialEq<DatabaseBackend> for DatabaseBackend
impl PartialEq<DatabaseBackend> for DatabaseBackend
source§fn eq(&self, other: &DatabaseBackend) -> bool
fn eq(&self, other: &DatabaseBackend) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DatabaseBackend
impl Eq for DatabaseBackend
impl StructuralEq 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.