Skip to main content

Python util function for plsql

Project description

sqlLinter
=========================
|build-status| |coverage| |docs| |pypi| |version|

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
================
.. code:: python

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

.. code:: python

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.

.. code:: python

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.

.. code:: python

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

.. |build-status| image:: https://travis-ci.com/walshdanny700/python_util_for_plsql.svg?branch=master
:alt: build status
:scale: 100%
:target: https://travis-ci.com/walshdanny700/python_util_for_plsql

.. |coverage| image:: https://coveralls.io/repos/github/walshdanny700/python_util_for_plsql/badge.svg?branch=master
:alt: Documentation Status
:scale: 100%
:target: https://coveralls.io/github/walshdanny700/python_util_for_plsql?branch=master

.. |docs| image:: https://readthedocs.org/projects/pip/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://readthedocs.org/projects/pip/badge/

.. |pypi| image:: https://badge.fury.io/py/plsqlutil.svg
:alt: Documentation Status
:scale: 100%
:target: https://badge.fury.io/py/plsqlutil

.. |version| image:: https://img.shields.io/pypi/pyversions/plsqlutil.svg
:alt: Documentation Status
:scale: 100%
:target: https://pypi.python.org/pypi/plsqlutil

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

sqlLinter-0.0.22.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file sqlLinter-0.0.22.tar.gz.

File metadata

  • Download URL: sqlLinter-0.0.22.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sqlLinter-0.0.22.tar.gz
Algorithm Hash digest
SHA256 d7a8f93a6a2d05c2d3a19d67e547297afdc1ecef4edf8ca175ff6e6ac807c612
MD5 393fa861b23a843bbed9fcc6486ca4d0
BLAKE2b-256 5b038b926a4ca16d935c84301b7d427c41ee23b2f37f0c43d687f040c3d8ca6c

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