Type Definition sea_orm::DbBackend

source ·
pub type DbBackend = DatabaseBackend;
Expand description

The same as DatabaseBackend just shorter :)

Implementations§

source§

impl DbBackend

source

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.

source

pub fn build<S>(&self, statement: &S) -> Statementwhere S: StatementBuilder,

Build an SQL Statement

source

pub fn get_query_builder(&self) -> Box<dyn QueryBuilder>

A helper for building SQL queries

source

pub fn support_returning(&self) -> bool

Check if the database supports RETURNING syntax on insert and update