pub enum DatabaseSqlBackend {
Postgres,
MySql,
Sqlite,
}Expand description
Go’s database/sql package is driver-agnostic — any third-party driver
can plug into the same interface. The generated code is identical across
backends; only the SQL placeholder style differs (Postgres uses $1, $2, ...; MySQL and SQLite use ?). DatabaseSqlBackend parameterizes
which placeholder style the generated SQL constant uses.
Variants§
Trait Implementations§
Source§impl Clone for DatabaseSqlBackend
impl Clone for DatabaseSqlBackend
Source§fn clone(&self) -> DatabaseSqlBackend
fn clone(&self) -> DatabaseSqlBackend
Returns a duplicate 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 DatabaseSqlBackend
impl Debug for DatabaseSqlBackend
impl Copy for DatabaseSqlBackend
Auto Trait Implementations§
impl Freeze for DatabaseSqlBackend
impl RefUnwindSafe for DatabaseSqlBackend
impl Send for DatabaseSqlBackend
impl Sync for DatabaseSqlBackend
impl Unpin for DatabaseSqlBackend
impl UnsafeUnpin for DatabaseSqlBackend
impl UnwindSafe for DatabaseSqlBackend
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
Mutably borrows from an owned value. Read more