pub struct PostgresDialect;Expand description
Postgres-flavoured dialect. Ported from postgresDialect (dialect.go:181).
Trait Implementations§
Source§impl Clone for PostgresDialect
impl Clone for PostgresDialect
impl Copy for PostgresDialect
Source§impl Debug for PostgresDialect
impl Debug for PostgresDialect
Source§impl Default for PostgresDialect
impl Default for PostgresDialect
Source§impl Dialect for PostgresDialect
impl Dialect for PostgresDialect
Source§fn schema_prefix(&self, schema: &str) -> String
fn schema_prefix(&self, schema: &str) -> String
"journio". — mirrors pgx.Identifier{schema}.Sanitize() + ".".
Source§fn rewrite_query(&self, query: &str) -> String
fn rewrite_query(&self, query: &str) -> String
Canonical queries are already Postgres syntax — no-op.
Ported from postgresDialect.RewriteQuery.
fn name(&self) -> DialectName
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 PostgresDialect
impl RefUnwindSafe for PostgresDialect
impl Send for PostgresDialect
impl Sync for PostgresDialect
impl Unpin for PostgresDialect
impl UnsafeUnpin for PostgresDialect
impl UnwindSafe for PostgresDialect
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