parse sql , compare two .sql file , generate optimization hint for your sql and various other utilities
Project description
dot.parser
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
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
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
pysqlutil-1.0.1-py3-none-any.whl
(23.3 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb353bae27f9f3cfc6c77942750721449695af9ee114602da3ff057b3f251bd2
|
|
| MD5 |
2e4e27c2018c514769ba771f72c5b4f4
|
|
| BLAKE2b-256 |
10fb90bab4492fefd327d20d282b91b1f38beea1d16234d05cd7b29062296eba
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc4a54744ac3c895cdd218bc1e42f8026d8d4fa9a897d594a72bcedbd9e82238
|
|
| MD5 |
611c114ae3abe1ffc0840ac48d4c8fc2
|
|
| BLAKE2b-256 |
8692788415e130e54f2bfe43eeb0b78f8485c9d4496d787db7117f8b52d4c887
|