Automatically identify anti-patterns in SQL queries
sqlcheck automatically detects common SQL anti-patterns. Such anti-patterns often slow down queries. Addressing them will, therefore, help accelerate queries.
sqlcheck targets all major SQL dialects.
For development updates on sqlcheck and general news on next generation database systems, follow me at @joy_arulraj.
Right now SQLCheck can detect the following anti-patterns:
###UBUNTU/MINT (DEBIAN)
wget https://github.com/jarulraj/sqlcheck/releases/download/v1.3/sqlcheck-x86_64.debdpkg -i sqlcheck-x86_64.debwget https://github.com/jarulraj/sqlcheck/releases/download/v1.3/sqlcheck-x86_64.rpmyum --nogpgcheck localinstall sqlcheck-x86_64.rpm wget https://github.com/jarulraj/sqlcheck/releases/download/v1.3/sqlcheck-x86_64.dmgClick the dmg to mount the package. This will mount it in the Volumes directory.
Open the Terminal app. This page contains more details on finding the app.
Copy over the SQLCheck binary file to desired local directory.
cp /Volumes/sqlcheck-x86_64/bin/sqlcheck /usr/local/bin/wget https://github.com/jarulraj/sqlcheck/releases/download/v1.3/sqlcheck.execmd.exe) and run the executable.wget https://github.com/jarulraj/sqlcheck/releases/download/v1.3/sqlcheck-x86_64.zipbin/sqlcheck).unzip sqlcheck-x86_64.zipSQLCheck has the following software dependencies:
First, clone the repository (with --recursive option).
git clone --recursive https://github.com/jarulraj/sqlcheck.gitNext, run the following commands to build and install SQLCheck:
./bootstrap
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make
make installTo run SQLCheck unit tests during development, run:
./build/test/test_suite$ sqlcheck -h
Command line options : sqlcheck <options>
-f --file_name : file name
-r --risk_level : set of anti-patterns to check
: 1 (all anti-patterns, default)
: 2 (only medium and high risk anti-patterns)
: 3 (only high risk anti-patterns)
-c --color_mode : color mode
-v --verbose_mode : verbose mode……(1) SQL Anti-patterns: Avoiding the Pitfalls of Database Programming, Bill Karwin
(2) Common SQL Anti-patterns, StackOverflow
Contributions to SQLCheck are always welcome. You can contribute in different ways:
Licensed under the Apache License.
No open issues yet, or sync has not completed.