Sign inSign up

ismv/linter-sqlint

By ismv

Updated almost 4 years ago

Image
1

422

ismv/linter-sqlint repository overview

SQL Linter

Docker Image CI Docker Pulls

Usage

# Lint all .sql files with SQLFluff with Oracle dialect
lint
# Lint SQL file or directory containing SQL files with Oracle dialect
lint path/to/file/or/dir  
# Lint all .sql files with SQLFluff with $Dialect dialect
lint $Dialect
# Lint SQL file or directory containing SQL files with $Dialect dialect
lint $Dialect path/to/file/or/dir

#########################
#        WARNING        #
# Use this with caution #
#########################

# Fix all .sql files with SQLFluff with Oracle dialect
fix
# Fix SQL file or directory containing SQL files with Oracle dialect
fix path/to/file/or/dir  
# Fix all .sql files with SQLFluff with $Dialect dialect
fix $Dialect
# Fix SQL file or directory containing SQL files with $Dialect dialect
fix $Dialect path/to/file/or/dir

Where $Dialect in:

  • ansi - ansi dialect
  • bigquery - bigquery dialect
  • exasol - exasol dialect
  • hive - hive dialect
  • mysql - mysql dialect
  • oracle - oracle dialect
  • postgres - postgres dialect
  • redshift - redshift dialect
  • snowflake - snowflake dialect
  • spark3 - spark3 dialect
  • sqlite - sqlite dialect
  • teradata - teradata dialect
  • tsql - tsql dialect
Configuration
Env variableDescriptionDefault
TIMEOUTTimeout for execution (see timeout(1) man page)2h
TIMEOUT_HARDHard timeout for execution (if application doesn't react on SIGTERM, see timeout(1) man page)10m

Tag summary

Content type

Image

Digest

sha256:2b8cf87cc

Size

55.3 MB

Last updated

almost 4 years ago

docker pull ismv/linter-sqlint