Skip to main content

PgDialect

Struct PgDialect 

Source
pub struct PgDialect;

Trait Implementations§

Source§

impl Dialect for PgDialect

Source§

fn whole_table_checksum_sql( &self, table: &TableRef, plan: &ComparePlan, ) -> Result<String>

joindiff: fast-exit precheck (whole-table checksum + count)
Source§

fn joindiff_sql( &self, a: &TableRef, b: &TableRef, plan: &ComparePlan, ) -> Result<JoinDiffQuery>

joindiff: full outer join
Source§

fn materialize_sql( &self, a: &TableRef, b: &TableRef, plan: &ComparePlan, target: &TableRef, ) -> Result<String>

materialize: one CREATE TABLE AS … writing the joindiff result (op / key / src_row / dst_row JSON) server-side. Plain CTAS: fails if target exists — never drops or replaces (docs/superpowers spec, 2026-07-05).
Source§

fn normalize_column(&self, _col: &ColumnSchema) -> Result<String>

hashdiff: normalization matrix - One column -> canonical SQL expression
Source§

fn digest_expr(&self, _canon_cols: &[String]) -> Result<String>

hashdiff: per-row digest from canonical expressions -> md5 -> two u64 halves
Source§

fn keyspace_bounds_sql( &self, _table: &TableRef, _key: &ColumnSchema, ) -> Result<String>

hashdiff: bound the keyspace
Source§

fn segment_checksum_sql( &self, _table: &TableRef, _plan: &ComparePlan, _segment: &Segment, ) -> Result<String>

hashdiff: one segment’s checksum tuple, server-side execution
Source§

fn segment_rows_sql( &self, _table: &TableRef, _plan: &ComparePlan, ) -> Result<String>

hashdiff: leaf rows for a narrowed, still-disagreeing segment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.