3 releases
0.1.2 | Sep 4, 2024 |
---|---|
0.1.1 | Sep 4, 2024 |
0.1.0 | Sep 4, 2024 |
#648 in Data structures
143 downloads per month
16KB
magnetise
Welcome to magnetise, a Rust library to asses the similarity between SQL queries.
Usage
fn main() {
// Short length queries are cases with
// higher sensibility towards small differences.
let query1 = "SELECT * FROM users WHERE age > 30";
let query2 = "SELECT * FROM users WHERE age > 31";
let similarity = jaccard_similarity(query1, query2);
println!("Jaccard similarity: {}", similarity);
}
lib.rs
:
A Rust library to asses the similarity between SQL queries.
Dependencies
~2.1–3MB
~54K SLoC