An open API service indexing awesome lists of open source software.

https://github.com/iteralabs/magnetise

A Rust library to asses the similarity between SQL queries.
https://github.com/iteralabs/magnetise

Last synced: 8 months ago
JSON representation

A Rust library to asses the similarity between SQL queries.

Awesome Lists containing this project

README

          

# magnetise

Welcome to **magnetise**, a Rust library to asses the similarity between SQL queries.

## Usage

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

}
```