Skip to main content

SQL Lineage Analysis Tool powered by Python

Project description

SQLLineage

SQL Lineage Analysis Tool powered by Python

image image image image Build Status Documentation Status codecov

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


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 details)

Uploaded Source

Built Distribution

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

sqllineage-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file sqllineage-0.2.0.tar.gz.

File metadata

  • Download URL: sqllineage-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.5.9

File hashes

Hashes for sqllineage-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eb8e109e8ceab658941410084b63905cb94d50d342fabee14b20071cca631fca
MD5 69c308a25b3e5f985b6490540c30c8c7
BLAKE2b-256 e91e699891ac16e5d1f81e7394dfe6b5b7f0a54680f0af1ea9afcb43ce10c2af

See more details on using hashes here.

File details

Details for the file sqllineage-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sqllineage-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.5.9

File hashes

Hashes for sqllineage-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9d49908117ed3add2f1dffa2dbcbcd434b555699742f73fdc5bb448656ee907
MD5 7d01e6a1c6d43168fd53765888e54821
BLAKE2b-256 e2e63446e4a71ac77bf0a3827a8298d84aa5441f9bbc9737b401041abcb0f863

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