Skip to main content

An SQLFluff plugin for rules that enforce common SQL naming conventions.

Project description

sqlfluff-common-conventions

An SQLFluff plugin for rules that enforce common SQL naming conventions.

As of 12 June 2024, all rules are compatible with the following dialects:

All rules are also compatible with the following naming cases:

  • snake_case
  • dromedaryCase (also known as lowerCamelCase or simply camelCase)
  • PascalCase (also known as upperCamelCase or simply CamelCase)

Rules

  • CC01: Start boolean columns with is or has.
  • CC02: End datetime, time, and timestamp columns with at.
  • CC03: End date columns with date.
  • CC04: Only allow a list of configurable strings to be used in identifiers.
  • CC05: Block a list of configurable strings from being used in identifiers.
  • CC06: Ensure column and table names match a given regex.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlfluff_common_conventions-0.4.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlfluff_common_conventions-0.4.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file sqlfluff_common_conventions-0.4.0.tar.gz.

File metadata

File hashes

Hashes for sqlfluff_common_conventions-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3d557219d14cbad00fa0adec0252cd32db8416aeac74fde77d33b7130c4024bf
MD5 0aaf2747172bf62630699f01986c268d
BLAKE2b-256 162ef8147dbae8bc1e7e2520d354b664daed6f2968ad64909b40d761550b7abd

See more details on using hashes here.

File details

Details for the file sqlfluff_common_conventions-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlfluff_common_conventions-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91756296ebf646977d132fe0035cbc2b444d018e10d1267f0436e35e0d34d141
MD5 0c3b810435c8224bf9786601f3471881
BLAKE2b-256 e84430cec0353a20889705b037a7c1472ae6dc985218f4755930d2b40f4a5054

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page