Sign inSign up

sqlfluff/sqlfluff

By sqlfluff

•Updated 12 days ago

Official SQLFluff Docker Image

Image
4

500K+

sqlfluff/sqlfluff repository overview

⁠Official SQLFluff Docker Image

⁠The SQL Linter for Humans

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.

⁠Basic Usage

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

⁠Additional information

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⁠

Tag summary

Content type

Image

Digest

sha256:6a9083e55…

Size

60.6 MB

Last updated

12 days ago

docker pull sqlfluff/sqlfluff