diff options
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/index.rst | 35 | ||||
| -rw-r--r-- | docs/source/license.rst | 4 |
2 files changed, 12 insertions, 27 deletions
diff --git a/docs/source/index.rst b/docs/source/index.rst index 3c5956c..cba3314 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -6,33 +6,9 @@ python-sqlparse =============== -:mod:`sqlparse` is a non-validating SQL parser for Python. -It provides support for parsing, splitting and formatting SQL statements. - -The module is compatible with Python 2.7 and Python 3 (>= 3.4) -and released under the terms of the `New BSD license -<https://opensource.org/licenses/BSD-3-Clause>`_. - -Visit the project page at https://github.com/andialbrecht/sqlparse for -further information about this project. - - -tl;dr ------ - -.. code-block:: bash - - $ pip install sqlparse - $ python - >>> import sqlparse - >>> print(sqlparse.format('select * from foo', reindent=True)) - select * - from foo - >>> parsed = sqlparse.parse('select * from foo')[0] - >>> parsed.tokens - [<DML 'select' at 0x7f22c5e15368>, <Whitespace ' ' at 0x7f22c5e153b0>, <Wildcard '*' … ] - >>> - +.. include:: ../../README.rst + :start-after: docincludebegin + :end-before: Links Contents -------- @@ -45,6 +21,7 @@ Contents analyzing ui changes + license indices @@ -59,3 +36,7 @@ Bug tracker Documentation https://sqlparse.readthedocs.io/ + +Online Demo + https://sqlformat.org/ + diff --git a/docs/source/license.rst b/docs/source/license.rst new file mode 100644 index 0000000..01f3963 --- /dev/null +++ b/docs/source/license.rst @@ -0,0 +1,4 @@ +License +======= + +.. include:: ../../LICENSE
\ No newline at end of file |
