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.

Files for sqllineage, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size sqllineage-0.1.0-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sqllineage-0.1.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page