Skip to content
/ prql Public

prql ("Prequel"): a command line MySQL syntax checker

License

Notifications You must be signed in to change notification settings

mcandre/prql

Repository files navigation

prql ("Prequel"): a command line MySQL syntax checker

EXAMPLE

$ 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

$ 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.

LICENSE

FreeBSD

CREDITS

About

prql ("Prequel"): a command line MySQL syntax checker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages