https://github.com/mcandre/prql
prql ("Prequel"): a command line MySQL syntax checker
https://github.com/mcandre/prql
Last synced: 4 months ago
JSON representation
prql ("Prequel"): a command line MySQL syntax checker
- Host: GitHub
- URL: https://github.com/mcandre/prql
- Owner: mcandre
- License: other
- Created: 2019-10-19T00:40:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T16:52:15.000Z (over 6 years ago)
- Last Synced: 2025-10-27T10:44:02.036Z (8 months ago)
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# prql ("Prequel"): a command line MySQL syntax checker
# EXAMPLE
```console
$ prql examples
examples/apples.sql:2: syntax error at byte position 17 near 'SEL'
```
See `prql -help` for more options.
# DOWNLOAD
https://github.com/mcandre/prql/releases
# API DOCUMENTATION
https://godoc.org/github.com/mcandre/prql
# MAJOR FEATURES
* Validates MySQL statements.
* Scans multi-statement scripts.
* Recurses along large folder trees.
* No dependency on live MySQL servers or clients.
* Ops-friendly exit code for CI, script chaining.
# COMPLEX SCRIPT MATCHING
```console
$ find examples -type f -name '*.sql' -print0 |
while IFS= read -r -d '' f; do
prql "$f" || exit 1
done
examples/apples.sql:2: syntax error at byte position 17 near 'SEL'
```
# RUNTIME REQUIREMENTS
* N/A
# CONTRIBUTING
See [DEVELOPMENT.md](DEVELOPMENT.md).
# LICENSE
FreeBSD
# CREDITS
* [xwb1989/sqlparser](https://github.com/xwb1989/sqlparser) does the heavy lifting.