liquipedia/sqllint

1.0.2 2021-09-06 14:31 UTC

This package is auto-updated.

Last update: 2021-09-06 14:32:44 UTC


README

Code Style Total Downloads Latest Stable Version License

This is a thin wrapper around the SqlParser from the phpMyAdmin project which can be used to lint any amount of sql files from the command line.

Installation

Please use Composer to install:

composer require liquipedia/sqllint

Usage

Command line utility

./vendor/bin/sqllint

Via composer script

Add this to your composer.json

{
	"require-dev": {
		"liquipedia/sqllint": "*"
	},
	"scripts": {
		"sqllint": [
			"sqllint"
		]
	}
}

and run

composer sqllint