Docs.rs
  • csv-diff-0.1.1
    • csv-diff 0.1.1
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • janriemer
    • Dependencies
      • ahash ^0.8 normal
      • crossbeam-channel ^0.5 normal
      • crossbeam-utils ^0.8.3 normal optional
      • csv ^1.3 normal
      • mown ^0.2.1 normal optional
      • rayon ^1.8 normal optional
      • thiserror ^1.0 normal
      • xxhash-rust ^0.8 normal
      • criterion ^0.3 dev
      • pretty_assertions ^1.3.0 dev
      • scoped-pool ^1 dev
    • Versions
    • 19.83% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate csv_diff

csv_diff0.1.1

  • All Items

Sections

  • Use Case
  • Overview

Crate Items

  • Modules
  • Type Aliases

Crates

  • csv_diff

Crate csv_diff

Source
Expand description

Find the difference between two CSVs - with ludicrous speed!πŸš€

csv-diff finds the difference between two CSVs. It is the fastest CSV-diffing library in the world! Comparing two 1,000,000 rows x 9 columns CSVs takes under 600ms (when using raw bytes). It is thread-pool-agnostic, meaning you can provide your own existing thread-pool or you can use the default rayon thread-pool that is used in this crate.

Β§Use Case

This crate should be used on CSV data that has some sort of primary key for uniquely identifying a record. It is not a general line-by-line diffing crate. You can imagine dumping a database table in CSV format from your test and production system and comparing it with each other to find differences.

Β§Overview

The most important types you will use are:

  1. CsvByteDiffLocal for comparing two CSVs byte-wise in a blocking fashion and getting the result as DiffByteRecords.
  2. CsvByteDiff for comparing two CSVs byte-wise lazily and getting the result as an Iterator.

ModulesΒ§

csv
csv_diff
csv_hash_receiver_comparer
csv_hash_task_spawner
csv_headers
csv_parse_result
diff_result
diff_row

Type AliasesΒ§

Result
A type alias for Result<T, csv::Error>.

Results

Settings
Help

Query parser error: "Unexpected - (did you mean ->?)".