0.0
Low commit activity in last 3 years
No release in over a year
Abstracts SQL query and calculates fingerprint
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.3
~> 3.0
 Project Readme

SqlFingerprint

Build Status

Abstracts SQL query and calculates fingerprint. Using fingerprint makes it possible to group similar queries together.

Query rewriting is based on Percona Toolkit implementation.

Usage

fingerprint = SqlFingerprint.calculate('SELECT * FROM users WHERE id=1') 

Result: dd1d44f7cffa757aad5152a27b811d6735ef6661

Installation

Add this line to your application's Gemfile:

gem 'sql_fingerprint'

Or install it yourself as:

$ gem install sql_fingerprint

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the SqlFingerprint project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.