magnetise

Crates.iomagnetise
lib.rsmagnetise
version0.1.2
sourcesrc
created_at2024-09-04 16:32:54.151522
updated_at2024-09-04 17:27:01.687933
descriptionA Rust library to asses the similarity between SQL queries.
homepage
repositoryhttps://github.com/iteralabs/magnetise
max_upload_size
id1363513
size43,645
FranciscoME (IFFranciscoME)

documentation

README

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);

}
Commit count: 0

cargo fmt