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
isorhas. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlfluff_common_conventions-0.4.0.tar.gz.
File metadata
- Download URL: sqlfluff_common_conventions-0.4.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d557219d14cbad00fa0adec0252cd32db8416aeac74fde77d33b7130c4024bf
|
|
| MD5 |
0aaf2747172bf62630699f01986c268d
|
|
| BLAKE2b-256 |
162ef8147dbae8bc1e7e2520d354b664daed6f2968ad64909b40d761550b7abd
|
File details
Details for the file sqlfluff_common_conventions-0.4.0-py3-none-any.whl.
File metadata
- Download URL: sqlfluff_common_conventions-0.4.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91756296ebf646977d132fe0035cbc2b444d018e10d1267f0436e35e0d34d141
|
|
| MD5 |
0c3b810435c8224bf9786601f3471881
|
|
| BLAKE2b-256 |
e84430cec0353a20889705b037a7c1472ae6dc985218f4755930d2b40f4a5054
|