File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616to install python-sqlparse on your system.
1717
18- python-sqlparse is compatible with Python 2.5, 2.6, 2.7 and >= 3.2.
18+ python-sqlparse is compatible with Python 2 (>= 2.5) and Python 3 ( >= 3.2) .
1919
2020
2121Run Tests
Original file line number Diff line number Diff line change 9696
9797# The theme to use for HTML and HTML Help pages. Major themes that come with
9898# Sphinx are currently 'default' and 'sphinxdoc'.
99- html_theme = 'agogo'
99+ # html_theme = 'agogo'
100100
101101# Theme options are theme-specific and customize the look and feel of a theme
102102# further. For a list of options available for each theme, see the
103103# documentation.
104104#html_theme_options = {}
105105
106106# Add any paths that contain custom themes here, relative to this directory.
107- html_theme_path = [os .path .abspath ('../' )]
107+ # html_theme_path = [os.path.abspath('../')]
108108
109109# The name for this set of Sphinx documents. If None, it defaults to
110110# "<project> v<release> documentation".
125125# Add any paths that contain custom static files (such as style sheets) here,
126126# relative to this directory. They are copied after the builtin static files,
127127# so a file named "default.css" will overwrite the builtin "default.css".
128- html_static_path = ['_static' ]
128+ # html_static_path = ['_static']
129129
130130# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
131131# using the given strftime format.
Original file line number Diff line number Diff line change 33 You can adapt this file completely to your liking, but it should at least
44 contain the root `toctree` directive.
55
6- python-sqlparse's documentation contents
7- ========================================
6+ python-sqlparse
7+ ===============
8+
9+ :mod: `sqlparse ` is a non-validating SQL parser for Python.
10+ It provides support for parsing, splitting and formatting SQL statements.
11+
12+ The module is compatible with Python 2 (>= 2.5) and Python 3 (>= 3.2)
13+ and released under the terms of the `New BSD license
14+ <http://www.opensource.org/licenses/bsd-license.php> `_.
15+
16+ Visit the project page at https://github.com/andialbrecht/sqlparse for
17+ further information about this project.
18+
19+
20+ tl;rd
21+ -----
22+
23+ .. code-block :: bash
24+
25+ $ pip install sqlparse
26+ $ python
27+ >>> import sqlparse
28+ >>> print(sqlparse.format(' select * from foo' , reindent=True))
29+ select *
30+ from foo
31+ >>> parsed = sqlparse.parse(' select * from foo' )[0]
32+ >>> parsed.tokens
33+ [< DML ' select' at 0x7f22c5e15368> , < Whitespace ' ' at 0x7f22c5e153b0> , < Wildcard ' *' … ]
34+ >>>
35+
36+
37+ Contents
38+ --------
839
940.. toctree::
1041 :maxdepth: 2
@@ -14,12 +45,17 @@ python-sqlparse's documentation contents
1445 analyzing
1546 ui
1647 changes
48+ indices
49+
1750
51+ Resources
52+ ---------
1853
19- Indices and tables
20- ==================
54+ Project page
55+ https://github.com/andialbrecht/sqlparse
2156
22- * :ref: `genindex `
23- * :ref: `modindex `
24- * :ref: `search `
57+ Bug tracker
58+ https://github.com/andialbrecht/sqlparse/issues
2559
60+ Documentation
61+ http://sqlparse.readthedocs.org/
Original file line number Diff line number Diff line change 1+ Indices and tables
2+ ==================
3+
4+ * :ref: `genindex `
5+ * :ref: `modindex `
6+ * :ref: `search `
7+
You can’t perform that action at this time.
0 commit comments