sqlLinter
A Linter tool for SQL
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
Requires Python 3.6 or higher
Installing
pip install sqlLinter
Usage
walk_pkg_gen
The function walk_pkg_gen is a generator that yields pathobject of any file that has the extensions pkb(package body) or pks(package specification). The following example is how to use walk_pkg_gen
from sqlLinter.plsql_util import walk_pkg_gen
import pathlib
directory = pathlib.Path.cwd()
for pathObject in walk_pkg_gen(directory)
# use pathObject
missing_slash_in_pkg
The function missing_slash_in_pkg is a generator that yields a pathobject of package files that are missing the slash ‘/’ as last character in either package spec or package body.
from sqlLinter.plsql_util import missing_slash_in_pkg
import pathlib
directory = pathlib.Path.cwd()
for pathObject in missing_slash_in_pkg(directory)
# use pathObject
commits_in_package
The function commits_in_package is a generator that yields a path object of package body files that contain a commit in their code.
from sqlLinter.plsql_util import commits_in_package
import pathlib
directory = pathlib.Path.cwd()
for pathObject in commits_in_package(directory)
# use pathObject
License
This project is licensed under the MIT License
Metadata
Release files for sqlLinter 0.0.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqlLinter-0.0.23.tar.gz | 3.2 kB | Without provenance | Details for sqlLinter-0.0.23.tar.gz |
Release files / sqlLinter-0.0.23.tar.gz
| Download URL | sqlLinter-0.0.23.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac5bdb08aac64cf93829c9ae6fb42f07d300742da5033523a566ba9ef996e0f5
|
|
BLAKE2b-256 checksum How to use checksums |
478505653dc7fcaa05c2ceba94636988ad5b927ce3362dfe8f7cd6229a5c4084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
|
Security for sqlLinter 0.0.23
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.