Skip to main content

parse sql , compare two .sql file , generate optimization hint for your sql and various other utilities

Project description

dot.parser

Generic badge Generic badge Generic badge Generic badge Maintainer Linux Tests Coverage Status Code style: black Maintenance

Project Phase One:

  • SQL ( Parsing SQL ) Till now I could only managed to create SQL Parser
  • Phase Status - initial Development
  • Due to beta version release you might face some difficulties

SQL Dialects Supported

  • MySQL
  • PostreSQL ( Redshift in progress )
  • Sqlite

forthebadge made-with-python

PyPI license


How to use this python module

pip install pysqlutil

Extracting raw sql-metadata tokens

from pysqlutil import parser

# extract raw sql-metadata tokens
parser("SELECT * FROM test_table").tokens
parser("SELECT test, id FROM test_table1,test_table2").columns
# you will get column names

parser_object = parser("<your custom SQL>")
parser_object.columns
# you will get column names as a list

# but you can still extract aliases names
parser_object.columns_aliases
# column alias list 

Soon , new featurers will be included like SQL File compare , DDL Compare , Analyze and optimize SQL

Future Release list

  • Jan-2023 : SQL Compare , Compare two versions of DDL
  • Feb-2023 : GUI Support .

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

pysqlutil-1.0.1.linux-x86_64.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

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

pysqlutil-1.0.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file pysqlutil-1.0.1.linux-x86_64.tar.gz.

File metadata

  • Download URL: pysqlutil-1.0.1.linux-x86_64.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for pysqlutil-1.0.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 fb353bae27f9f3cfc6c77942750721449695af9ee114602da3ff057b3f251bd2
MD5 2e4e27c2018c514769ba771f72c5b4f4
BLAKE2b-256 10fb90bab4492fefd327d20d282b91b1f38beea1d16234d05cd7b29062296eba

See more details on using hashes here.

File details

Details for the file pysqlutil-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pysqlutil-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for pysqlutil-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4a54744ac3c895cdd218bc1e42f8026d8d4fa9a897d594a72bcedbd9e82238
MD5 611c114ae3abe1ffc0840ac48d4c8fc2
BLAKE2b-256 8692788415e130e54f2bfe43eeb0b78f8485c9d4496d787db7117f8b52d4c887

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