pub struct Sqlite;Expand description
The SQLite dialect: ?1 placeholders, :name named arguments, " quoting.
SQLite is the one dialect keelson targets that has both numbered positional
placeholders and named ones (https://www.sqlite.org/lang_expr.html#varparam),
so it is the only Dialect that overrides
write_named_arg. ?NNN is used rather than a bare
? because SQLite numbers an unadorned ? implicitly and mixing the two forms
is how a statement quietly binds the wrong argument.
Trait Implementations§
impl Copy for Sqlite
Source§impl Dialect for Sqlite
impl Dialect for Sqlite
Source§fn write_quoted(&self, w: &mut SqlWriter<'_>, s: &str)
fn write_quoted(&self, w: &mut SqlWriter<'_>, s: &str)
Quote s as a delimited identifier.
An embedded " is doubled. SQLite accepts [x] and `x` as well, for
compatibility with SQL Server and MySQL, but "x" is the standard form and
the only one this dialect writes.
impl Eq for Sqlite
impl StructuralPartialEq for Sqlite
Auto Trait Implementations§
impl Freeze for Sqlite
impl RefUnwindSafe for Sqlite
impl Send for Sqlite
impl Sync for Sqlite
impl Unpin for Sqlite
impl UnsafeUnpin for Sqlite
impl UnwindSafe for Sqlite
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