vrtb-core 0.1.0
“Core traits, error types and comparison planning for veritable, a cross-database table comparison tool”
Package first published within seven daysPackage under two months old
SHA-2560d2835615e5da2434e250e6d088c1fb78cccd8ac51d7b92bc329f2f7d970f57a
MaleculeH₂(CmDb)Md(Pa)
Evidence
8:21… es (`vrtb-pg`, `vrtb-duck`), and the live tests that exercise
9//! real databases live in the CLI crate.
10
11use crate::engine::{ComparePlan, Engine, JoinDiffQuery, TableRef};
12use crate::error::{Result, VeritableError};
13use crate::format::Format;
14
15/// The fast-exit precheck tuple: row count plus the two 64-bit checksum halves
16/// (kept …
93:8… Format::Json => {
94 println!(
95 r#"{{"result":"differ","src_only":{},"dst_only":{},"differing":{}}}"#,
96 json_rows(src_only),
97 json_rows(dst_onl …
298:16… row[1].clone(),
299 sum_h2: row[2].clone(),
300 })
301}
302
303#[cfg(test)]
304mod tests {
305 use super::*;
306 use crate::engine::{ColumnSchema, Dialect, JoinDiffQuery, LogicalType, Segment, TableSchema};
307 use crate::format::Format;
308
309 // A dialect whose checksum SQL is a sentinel string; the mock engine …
429:16… ema: None,
430 name: name.into(),
431 }
432 }
433
434 #[test]
435 fn parses_checksum_row() {
436 let eng = MockEngine::new(vec![row("10000", "123", "456")]);
437 let r = whole_ta …
92:8… af_threshold: usize,
93) -> Result<Vec<DiffRow>> {
94 todo!()
95}
96
97#[cfg(test)]
98mod tests {
99 use super::*;
100 use engine::LogicalType;
101
102 fn col(name: &str, ty: LogicalType) -> ColumnSchema {
103 ColumnSchema {
104 …
No evidence locations were recorded for this file. Raw result