pub struct SqliteDialect;Trait Implementations§
Source§impl Clone for SqliteDialect
impl Clone for SqliteDialect
impl Copy for SqliteDialect
Source§impl Debug for SqliteDialect
impl Debug for SqliteDialect
Source§impl Default for SqliteDialect
impl Default for SqliteDialect
Source§impl Dialect for SqliteDialect
impl Dialect for SqliteDialect
fn name(&self) -> DialectName
Source§fn schema_prefix(&self, _schema: &str) -> String
fn schema_prefix(&self, _schema: &str) -> String
Qualified-table prefix, e.g.
"journio". for Postgres or "" for SQLite
(no schemas). Includes the trailing dot when non-empty.Source§fn rewrite_query(&self, query: &str) -> String
fn rewrite_query(&self, query: &str) -> String
Converts a canonical Postgres-style query (with
$N placeholders and a
rendered schema prefix) into the dialect’s native form. No-op for PG;
rewrites $N -> ? left-to-right for SQLite.Source§fn lock_skip_locked(&self) -> &str
fn lock_skip_locked(&self) -> &str
FOR UPDATE SKIP LOCKED fragment, or "" for SQLite.Source§fn lock_nowait(&self) -> &str
fn lock_nowait(&self) -> &str
FOR UPDATE NOWAIT fragment, or "".Source§fn supports_listen_notify(&self) -> bool
fn supports_listen_notify(&self) -> bool
Whether the dialect supports
LISTEN/NOTIFY. CockroachDB and SQLite
fall back to the polling notification loop.Source§fn supports_array_parameters(&self) -> bool
fn supports_array_parameters(&self) -> bool
Whether a slice can bind as one array param (
= ANY($1)). SQLite must
expand to IN (?, ?, ...).Source§fn supports_data_modifying_cte(&self) -> bool
fn supports_data_modifying_cte(&self) -> bool
Whether a CTE term may be an
INSERT/UPDATE/DELETE (PG yes, SQLite no).Auto Trait Implementations§
impl Freeze for SqliteDialect
impl RefUnwindSafe for SqliteDialect
impl Send for SqliteDialect
impl Sync for SqliteDialect
impl Unpin for SqliteDialect
impl UnsafeUnpin for SqliteDialect
impl UnwindSafe for SqliteDialect
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
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