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
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) -> 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
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 moresourceimpl Debug for DatabaseBackend
impl Debug for DatabaseBackend
sourceimpl PartialEq<DatabaseBackend> for DatabaseBackend
impl PartialEq<DatabaseBackend> for DatabaseBackend
sourcefn eq(&self, other: &DatabaseBackend) -> bool
fn eq(&self, other: &DatabaseBackend) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.