SQLFluff is a dialect-flexible and configurable SQL linter. Designed with ELT applications in mind, SQLFluff also works with Jinja templating and dbt. SQLFluff will auto-fix most linting errors, allowing you to focus your time on what matters.
This repository contains Docker images of releases in our GitHub repository. The images are created via GitHub Actions to ensure the latest releases are uploaded to DockerHub.
Pull the docker image via:
docker pull sqlfluff/sqlfluff:<version_tag>
SQLFluff commands can then be run via:
docker run -it --rm -v $PWD:/sql sqlfluff/sqlfluff:<version_tag> lint test.sql
(lint sub-command can be exchanged with fix/parse/etc as required)
For convenience it is recommended to create the following alias in your shell configuration:
alias sqlfluff='docker run -it --rm -v $PWD:/sql sqlfluff/sqlfluff:<version_tag>'
Commands can then be run in much the same way as the standard Python CLI:
sqlfluff lint test.sql
For further information on SQLFluff please refer to our official documentation:
CLI Reference: https://docs.sqlfluff.com/en/stable/cli.html
Configuration: https://docs.sqlfluff.com/en/stable/configuration.html
Content type
Image
Digest
sha256:8003e7099…
Size
57.5 MB
Last updated
about 1 month ago
docker pull sqlfluff/sqlfluff