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.1.0.tar.gz (3.7 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.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqllineage-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for sqllineage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5508f9d2619795c396bf97feda3b0d2deed2349fedf395e58e2abec2aa9cd6db
MD5 4d8311c09a351311185f063222b9139e
BLAKE2b-256 c982940dea08194eeecdbc60f6ea4dfc7f95e9595636a6ee4bf1b21383df7fb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqllineage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for sqllineage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b3dd1d6b70205be03c9cd5181edfacba3d1632b26f1615cfbca72a815c3bbc8
MD5 345f79ef9daf865642ec1ef70c4c09c1
BLAKE2b-256 3cd50446f202c6e61d533ba42ab98eb38bef23cc881f5ab7b3e7482216184bfc

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