@@ -10,32 +10,32 @@ sqlparse is a non-validating SQL parser module for Python.
1010Install
1111-------
1212
13- From pip, run ::
13+ Using pip::
1414
15- $ pip install --upgrade sqlparse
16-
17- Consider using the ``--user `` option _.
18-
19- .. _option : https://pip.pypa.io/en/latest/user_guide/#user-installs
15+ $ pip install sqlparse
2016
2117From the repository, run::
2218
2319 python setup.py install
2420
25- to install python-sqlparse on your system.
26-
27- python-sqlparse is compatible with Python 2.7 and Python 3 (>= 3.3).
21+ to install sqlparse on your system.
2822
23+ sqlparse is compatible with Python 2.7 and Python 3 (>= 3.4).
2924
30- Run Tests
31- ---------
3225
33- To run the test suite run::
26+ Quick Start
27+ -----------
3428
35- tox
36-
37- Note, you'll need tox installed, of course.
29+ code-block:: python
3830
31+ >>> import sqlparse
32+ >>> # Split a string containing two SQL statements:
33+ >>> statements = sqlparse.split(' select * from foo; select * from bar;' )
34+ >>> # Format the first statement and print it out:
35+ >>> print (sqlparse.format(statements[0 ], reindent = True , keyword_case = ' upper' ))
36+ SELECT *
37+ FROM foo;
38+ >>>
3939
4040Links
4141-----
@@ -46,17 +46,14 @@ Project Page
4646Documentation
4747 https://sqlparse.readthedocs.io/en/latest/
4848
49- Discussions
50- https://groups.google.com/forum/#!forum/sqlparse
51-
5249Issues/Bugs
5350 https://github.com/andialbrecht/sqlparse/issues
5451
5552Online Demo
5653 https://sqlformat.org/
5754
5855
59- python- sqlparse is licensed under the BSD license.
56+ sqlparse is licensed under the BSD license.
6057
6158Parts of the code are based on pygments written by Georg Brandl and others.
6259pygments-Homepage: http://pygments.org/
0 commit comments