-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: readthedocs build failed * docs: a startup README * docs: startup docs
- Loading branch information
Showing
8 changed files
with
152 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: all | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: 3.6 | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
********* | ||
Changelog | ||
********* | ||
|
||
v0.1.0 | ||
====== | ||
|
||
:Date: July 26, 2019 | ||
|
||
New Features | ||
------------- | ||
* stable command line interface (`#2 <https://github.com/reata/sqllineage/issues/2>`_) | ||
|
||
Enhancement | ||
------------- | ||
* combine setup.py and requirements.txt (`#6 <https://github.com/reata/sqllineage/issues/6>`_) | ||
* combine tox and Travis CI (`#5 <https://github.com/reata/sqllineage/issues/5>`_) | ||
* table-wise lineage with sufficient test cases (`#4 <https://github.com/reata/sqllineage/issues/4>`_) | ||
* a startup docs for sqllineage's usage (`#3 <https://github.com/reata/sqllineage/issues/3>`_) | ||
* pypi badges in README (`#1 <https://github.com/reata/sqllineage/issues/1>`_) | ||
|
||
v0.0.1 | ||
====== | ||
|
||
:Date: June 16, 2019 | ||
|
||
New Features | ||
------------- | ||
initial public release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
*************** | ||
Getting Started | ||
*************** | ||
|
||
Install via PyPI | ||
================== | ||
|
||
Install the package (or add it to your ``requirements.txt`` file): | ||
|
||
.. code-block:: bash | ||
pip install sqllineage | ||
SQLLineage in Command Line | ||
======================================= | ||
|
||
After installation, you will get a `sqllineage` command. It has two options: | ||
|
||
- -e option let you pass a quoted query string as SQL command | ||
- -f option let you pass a file that contains a or more SQL commands | ||
|
||
.. code-block:: bash | ||
$ sqllineage -e "insert into table1 select * from table2" | ||
Statements(#): 1 | ||
Source Tables: | ||
table2 | ||
Target Tables: | ||
table1 | ||
.. code-block:: bash | ||
$ sqllineage -f foo.sql | ||
Statements(#): 1 | ||
Source Tables: | ||
table_foo | ||
table_bar | ||
Target Tables: | ||
table_baz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
.. sqllineage documentation master file, created by | ||
sphinx-quickstart on Wed May 22 22:48:13 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
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, Identified and all the jagons used by a SQL parser. | ||
|
||
Behind the scene, SQLLineage uses the fantastic sqlparse library to parse the SQL command, and bring you all the | ||
human-readable result with ease. | ||
|
||
Welcome to sqllineage's documentation! | ||
====================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
:hidden: | ||
:caption: First steps | ||
|
||
getting_started | ||
|
||
|
||
Indices and tables | ||
================== | ||
.. toctree:: | ||
:maxdepth: 2 | ||
:hidden: | ||
:caption: Changelog | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Sphinx>=2.1.0,<2.2.0 | ||
sphinx_rtd_theme>=0.4.0,<0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters