pub struct MySqlSqlGenerator;Implementations§
Trait Implementations§
Source§impl Clone for MySqlSqlGenerator
impl Clone for MySqlSqlGenerator
Source§fn clone(&self) -> MySqlSqlGenerator
fn clone(&self) -> MySqlSqlGenerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MySqlSqlGenerator
impl Debug for MySqlSqlGenerator
Source§impl ISqlGenerator for MySqlSqlGenerator
impl ISqlGenerator for MySqlSqlGenerator
Source§fn insert(&self, table: &str, columns: &[&str], _returning: bool) -> String
fn insert(&self, table: &str, columns: &[&str], _returning: bool) -> String
Generates an INSERT statement.
Source§fn insert_batch(
&self,
table: &str,
columns: &[&str],
row_count: usize,
) -> String
fn insert_batch( &self, table: &str, columns: &[&str], row_count: usize, ) -> String
Generates a multi-row INSERT statement with
row_count value groups
(INSERT INTO t (c1, c2) VALUES (?, ?), (?, ?), ...). Placeholders
follow the dialect’s numbering (? for SQLite/MySQL, $n for PG).Source§fn update(
&self,
table: &str,
set_columns: &[&str],
where_clause: &str,
) -> String
fn update( &self, table: &str, set_columns: &[&str], where_clause: &str, ) -> String
Generates an UPDATE statement.
Source§fn create_table(&self, table: &str, columns: &[(String, String)]) -> String
fn create_table(&self, table: &str, columns: &[(String, String)]) -> String
Generates a CREATE TABLE statement.
Source§fn drop_table(&self, table: &str) -> String
fn drop_table(&self, table: &str) -> String
Generates a DROP TABLE statement.
Source§fn pagination(&self, skip: Option<usize>, take: Option<usize>) -> String
fn pagination(&self, skip: Option<usize>, take: Option<usize>) -> String
Generates a pagination clause.
Source§fn parameter_placeholder(&self, _index: usize) -> String
fn parameter_placeholder(&self, _index: usize) -> String
Returns the parameter placeholder (e.g.,
$1 for PG, ? for MySQL).Source§fn quote_identifier(&self, identifier: &str) -> String
fn quote_identifier(&self, identifier: &str) -> String
Returns the identifier quoting character (e.g.,
" for PG, ` for MySQL).Source§fn auto_increment_syntax(&self) -> &'static str
fn auto_increment_syntax(&self) -> &'static str
Returns the dialect-specific auto-increment syntax.
Auto Trait Implementations§
impl Freeze for MySqlSqlGenerator
impl RefUnwindSafe for MySqlSqlGenerator
impl Send for MySqlSqlGenerator
impl Sync for MySqlSqlGenerator
impl Unpin for MySqlSqlGenerator
impl UnsafeUnpin for MySqlSqlGenerator
impl UnwindSafe for MySqlSqlGenerator
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more