Skip to content

A Rust library to asses the similarity between SQL queries.

License

Notifications You must be signed in to change notification settings

IteraLabs/magnetise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

}

About

A Rust library to asses the similarity between SQL queries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages