SQL Lineage Analysis Tool powered by Python
Project description
SQLLineage
SQL Lineage Analysis Tool powered by Python
Never get the hang of a SQL parser? SQLLineage comes to the rescue. Given a SQL command, SQLLineage will tell you its source and target tables, without worrying about Tokens, Keyword, Identifier and all the jagons used by SQL parsers.
Behind the scene, SQLLineage uses the fantastic sqlparse
library to parse
the SQL command, and bring you all the human-readable result with ease.
Quick Start
Install sqllineage via PyPI:
$ pip install sqllineage
Using sqllineage command to parse a quoted-query-string:
$ sqllineage -e "insert into table1 select * from table2"
Statements(#): 1
Source Tables:
table2
Target Tables:
table1
Or you can parse a SQL file with -f option:
$ sqllineage -f foo.sqlStatements(#): 1
Statements(#): 1
Source Tables:
table_foo
table_bar
Target Tables:
table_baz
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
sqllineage-0.2.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for sqllineage-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d49908117ed3add2f1dffa2dbcbcd434b555699742f73fdc5bb448656ee907 |
|
MD5 | 7d01e6a1c6d43168fd53765888e54821 |
|
BLAKE2b-256 | e2e63446e4a71ac77bf0a3827a8298d84aa5441f9bbc9737b401041abcb0f863 |