pub struct Sqlite;Trait Implementations§
impl Copy for Sqlite
Source§impl Dialect for Sqlite
impl Dialect for Sqlite
Source§const PARENTHESIZED_SET_OP_BRANCHES: bool = false
const PARENTHESIZED_SET_OP_BRANCHES: bool = false
Whether a set operation’s branches may be parenthesised. SQLite’s
grammar has no place for a parenthesised
SELECT around UNION.Source§const OFFSET_WITHOUT_LIMIT: Option<&'static str>
const OFFSET_WITHOUT_LIMIT: Option<&'static str>
What to put in a
LIMIT when a query has an OFFSET and no limit.
Postgres takes a bare OFFSET; SQLite and MySQL don’t, and each
spells “no limit” differently.Source§const IDENTIFIER_QUOTE: char = '"'
const IDENTIFIER_QUOTE: char = '"'
SQL identifier quote character, e.g.
" for Postgres/SQLite, `
for MySQL.Source§const CAST_BIGINT: &'static str = "BIGINT"
const CAST_BIGINT: &'static str = "BIGINT"
How this dialect spells the two types an aggregate is cast back to.
CAST itself is standard; the type names are not — MySQL takes
SIGNED and DOUBLE where Postgres takes BIGINT and
DOUBLE PRECISION.const CAST_DOUBLE: &'static str = "DOUBLE PRECISION"
Source§const INSERT_NO_COLUMNS: &'static str = " DEFAULT VALUES"
const INSERT_NO_COLUMNS: &'static str = " DEFAULT VALUES"
How to insert a row that names no column, which is what a table
whose every column is generated leaves.
INSERT INTO t () VALUES ()
is MySQL’s spelling and a syntax error everywhere else.Source§fn write_placeholder(n: usize, out: &mut String)
fn write_placeholder(n: usize, out: &mut String)
Writes the placeholder for the
nth bound parameter (1-indexed).
Postgres numbers them ($1, $2, …); MySQL/SQLite are purely
positional (? every time, matched by order of appearance).impl SupportsFullOuterJoin for Sqlite
impl SupportsOnConflict for Sqlite
impl SupportsReturning for Sqlite
impl SupportsRightJoin 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