This file is indexed.

/usr/share/doc/python-sqlparse-doc/html/analyzing.html is in python-sqlparse-doc 0.2.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Analyzing the Parsed Statement &#8212; python-sqlparse 0.2.2 documentation</title>
    
    <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '0.2.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="top" title="python-sqlparse 0.2.2 documentation" href="index.html" />
    <link rel="next" title="User Interfaces" href="ui.html" />
    <link rel="prev" title="sqlparse – Parse SQL statements" href="api.html" />
   
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head>
  <body role="document">
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="analyzing-the-parsed-statement">
<span id="analyze"></span><h1>Analyzing the Parsed Statement<a class="headerlink" href="#analyzing-the-parsed-statement" title="Permalink to this headline"></a></h1>
<p>When the <a class="reference internal" href="api.html#sqlparse.parse" title="sqlparse.parse"><code class="xref py py-meth docutils literal"><span class="pre">parse()</span></code></a> function is called the returned value
is a tree-ish representation of the analyzed statements. The returned
objects can be used by applications to retrieve further information about
the parsed SQL.</p>
<div class="section" id="base-classes">
<h2>Base Classes<a class="headerlink" href="#base-classes" title="Permalink to this headline"></a></h2>
<p>All returned objects inherit from these base classes.
The <a class="reference internal" href="#sqlparse.sql.Token" title="sqlparse.sql.Token"><code class="xref py py-class docutils literal"><span class="pre">Token</span></code></a> class represents a single token and
<a class="reference internal" href="#sqlparse.sql.TokenList" title="sqlparse.sql.TokenList"><code class="xref py py-class docutils literal"><span class="pre">TokenList</span></code></a> class is a group of tokens.
The latter provides methods for inspecting its child tokens.</p>
<dl class="class">
<dt id="sqlparse.sql.Token">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Token</code><span class="sig-paren">(</span><em>ttype</em>, <em>value</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Token" title="Permalink to this definition"></a></dt>
<dd><p>Base class for all other classes in this module.</p>
<p>It represents a single token and has two instance attributes:
<code class="docutils literal"><span class="pre">value</span></code> is the unchange value of the token and <code class="docutils literal"><span class="pre">ttype</span></code> is
the type of the token.</p>
<dl class="method">
<dt id="sqlparse.sql.Token.flatten">
<code class="descname">flatten</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Token.flatten" title="Permalink to this definition"></a></dt>
<dd><p>Resolve subgroups.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Token.has_ancestor">
<code class="descname">has_ancestor</code><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Token.has_ancestor" title="Permalink to this definition"></a></dt>
<dd><p>Returns <code class="docutils literal"><span class="pre">True</span></code> if <em>other</em> is in this tokens ancestry.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Token.is_child_of">
<code class="descname">is_child_of</code><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Token.is_child_of" title="Permalink to this definition"></a></dt>
<dd><p>Returns <code class="docutils literal"><span class="pre">True</span></code> if this token is a direct child of <em>other</em>.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Token.match">
<code class="descname">match</code><span class="sig-paren">(</span><em>ttype</em>, <em>values</em>, <em>regex=False</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Token.match" title="Permalink to this definition"></a></dt>
<dd><p>Checks whether the token matches the given arguments.</p>
<p><em>ttype</em> is a token type. If this token doesn&#8217;t match the given token
type.
<em>values</em> is a list of possible values for this token. The values
are OR&#8217;ed together so if only one of the values matches <code class="docutils literal"><span class="pre">True</span></code>
is returned. Except for keyword tokens the comparison is
case-sensitive. For convenience it&#8217;s ok to pass in a single string.
If <em>regex</em> is <code class="docutils literal"><span class="pre">True</span></code> (default is <code class="docutils literal"><span class="pre">False</span></code>) the given values are
treated as regular expressions.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Token.within">
<code class="descname">within</code><span class="sig-paren">(</span><em>group_cls</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Token.within" title="Permalink to this definition"></a></dt>
<dd><p>Returns <code class="docutils literal"><span class="pre">True</span></code> if this token is within <em>group_cls</em>.</p>
<p>Use this method for example to check if an identifier is within
a function: <code class="docutils literal"><span class="pre">t.within(sql.Function)</span></code>.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.TokenList">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">TokenList</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList" title="Permalink to this definition"></a></dt>
<dd><p>A group of tokens.</p>
<p>It has an additional instance attribute <code class="docutils literal"><span class="pre">tokens</span></code> which holds a
list of child-tokens.</p>
<dl class="method">
<dt id="sqlparse.sql.TokenList.flatten">
<code class="descname">flatten</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.flatten" title="Permalink to this definition"></a></dt>
<dd><p>Generator yielding ungrouped tokens.</p>
<p>This method is recursively called for all child tokens.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.get_alias">
<code class="descname">get_alias</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.get_alias" title="Permalink to this definition"></a></dt>
<dd><p>Returns the alias for this identifier or <code class="docutils literal"><span class="pre">None</span></code>.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.get_name">
<code class="descname">get_name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.get_name" title="Permalink to this definition"></a></dt>
<dd><p>Returns the name of this identifier.</p>
<p>This is either it&#8217;s alias or it&#8217;s real name. The returned valued can
be considered as the name under which the object corresponding to
this identifier is known within the current statement.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.get_parent_name">
<code class="descname">get_parent_name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.get_parent_name" title="Permalink to this definition"></a></dt>
<dd><p>Return name of the parent object if any.</p>
<p>A parent object is identified by the first occuring dot.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.get_real_name">
<code class="descname">get_real_name</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.get_real_name" title="Permalink to this definition"></a></dt>
<dd><p>Returns the real name (object name) of this identifier.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.get_token_at_offset">
<code class="descname">get_token_at_offset</code><span class="sig-paren">(</span><em>offset</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.get_token_at_offset" title="Permalink to this definition"></a></dt>
<dd><p>Returns the token that is on position offset.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.group_tokens">
<code class="descname">group_tokens</code><span class="sig-paren">(</span><em>grp_cls</em>, <em>start</em>, <em>end</em>, <em>include_end=True</em>, <em>extend=False</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.group_tokens" title="Permalink to this definition"></a></dt>
<dd><p>Replace tokens by an instance of <em>grp_cls</em>.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.has_alias">
<code class="descname">has_alias</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.has_alias" title="Permalink to this definition"></a></dt>
<dd><p>Returns <code class="docutils literal"><span class="pre">True</span></code> if an alias is present.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.insert_after">
<code class="descname">insert_after</code><span class="sig-paren">(</span><em>where</em>, <em>token</em>, <em>skip_ws=True</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.insert_after" title="Permalink to this definition"></a></dt>
<dd><p>Inserts <em>token</em> after <em>where</em>.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.insert_before">
<code class="descname">insert_before</code><span class="sig-paren">(</span><em>where</em>, <em>token</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.insert_before" title="Permalink to this definition"></a></dt>
<dd><p>Inserts <em>token</em> before <em>where</em>.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.token_first">
<code class="descname">token_first</code><span class="sig-paren">(</span><em>skip_ws=True</em>, <em>skip_cm=False</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.token_first" title="Permalink to this definition"></a></dt>
<dd><p>Returns the first child token.</p>
<p>If <em>skip_ws</em> is <code class="docutils literal"><span class="pre">True</span></code> (the default), whitespace
tokens are ignored.</p>
<p>if <em>skip_cm</em> is <code class="docutils literal"><span class="pre">True</span></code> (default: <code class="docutils literal"><span class="pre">False</span></code>), comments are
ignored too.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.token_index">
<code class="descname">token_index</code><span class="sig-paren">(</span><em>token</em>, <em>start=0</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.token_index" title="Permalink to this definition"></a></dt>
<dd><p>Return list index of token.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.token_next">
<code class="descname">token_next</code><span class="sig-paren">(</span><em>idx</em>, <em>skip_ws=True</em>, <em>skip_cm=False</em>, <em>_reverse=False</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.token_next" title="Permalink to this definition"></a></dt>
<dd><p>Returns the next token relative to <em>idx</em>.</p>
<p>If <em>skip_ws</em> is <code class="docutils literal"><span class="pre">True</span></code> (the default) whitespace tokens are ignored.
If <em>skip_cm</em> is <code class="docutils literal"><span class="pre">True</span></code> comments are ignored.
<code class="docutils literal"><span class="pre">None</span></code> is returned if there&#8217;s no next token.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.TokenList.token_prev">
<code class="descname">token_prev</code><span class="sig-paren">(</span><em>idx</em>, <em>skip_ws=True</em>, <em>skip_cm=False</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.TokenList.token_prev" title="Permalink to this definition"></a></dt>
<dd><p>Returns the previous token relative to <em>idx</em>.</p>
<p>If <em>skip_ws</em> is <code class="docutils literal"><span class="pre">True</span></code> (the default) whitespace tokens are ignored.
If <em>skip_cm</em> is <code class="docutils literal"><span class="pre">True</span></code> comments are ignored.
<code class="docutils literal"><span class="pre">None</span></code> is returned if there&#8217;s no previous token.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="sql-representing-classes">
<h2>SQL Representing Classes<a class="headerlink" href="#sql-representing-classes" title="Permalink to this headline"></a></h2>
<p>The following classes represent distinct parts of a SQL statement.</p>
<dl class="class">
<dt id="sqlparse.sql.Statement">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Statement</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Statement" title="Permalink to this definition"></a></dt>
<dd><p>Represents a SQL statement.</p>
<dl class="method">
<dt id="sqlparse.sql.Statement.get_type">
<code class="descname">get_type</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Statement.get_type" title="Permalink to this definition"></a></dt>
<dd><p>Returns the type of a statement.</p>
<p>The returned value is a string holding an upper-cased reprint of
the first DML or DDL keyword. If the first token in this group
isn&#8217;t a DML or DDL keyword &#8220;UNKNOWN&#8221; is returned.</p>
<p>Whitespaces and comments at the beginning of the statement
are ignored.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Comment">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Comment</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Comment" title="Permalink to this definition"></a></dt>
<dd><p>A comment.</p>
</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Identifier">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Identifier</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Identifier" title="Permalink to this definition"></a></dt>
<dd><p>Represents an identifier.</p>
<p>Identifiers may have aliases or typecasts.</p>
<dl class="method">
<dt id="sqlparse.sql.Identifier.get_array_indices">
<code class="descname">get_array_indices</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Identifier.get_array_indices" title="Permalink to this definition"></a></dt>
<dd><p>Returns an iterator of index token lists</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Identifier.get_ordering">
<code class="descname">get_ordering</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Identifier.get_ordering" title="Permalink to this definition"></a></dt>
<dd><p>Returns the ordering or <code class="docutils literal"><span class="pre">None</span></code> as uppercase string.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Identifier.get_typecast">
<code class="descname">get_typecast</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Identifier.get_typecast" title="Permalink to this definition"></a></dt>
<dd><p>Returns the typecast or <code class="docutils literal"><span class="pre">None</span></code> of this object as a string.</p>
</dd></dl>

<dl class="method">
<dt id="sqlparse.sql.Identifier.is_wildcard">
<code class="descname">is_wildcard</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Identifier.is_wildcard" title="Permalink to this definition"></a></dt>
<dd><p>Return <code class="docutils literal"><span class="pre">True</span></code> if this identifier contains a wildcard.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.IdentifierList">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">IdentifierList</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.IdentifierList" title="Permalink to this definition"></a></dt>
<dd><p>A list of <a class="reference internal" href="#sqlparse.sql.Identifier" title="sqlparse.sql.Identifier"><code class="xref py py-class docutils literal"><span class="pre">Identifier</span></code></a>&#8216;s.</p>
<dl class="method">
<dt id="sqlparse.sql.IdentifierList.get_identifiers">
<code class="descname">get_identifiers</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.IdentifierList.get_identifiers" title="Permalink to this definition"></a></dt>
<dd><p>Returns the identifiers.</p>
<p>Whitespaces and punctuations are not included in this generator.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Where">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Where</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Where" title="Permalink to this definition"></a></dt>
<dd><p>A WHERE clause.</p>
</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Case">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Case</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Case" title="Permalink to this definition"></a></dt>
<dd><p>A CASE statement with one or more WHEN and possibly an ELSE part.</p>
<dl class="method">
<dt id="sqlparse.sql.Case.get_cases">
<code class="descname">get_cases</code><span class="sig-paren">(</span><em>skip_ws=False</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Case.get_cases" title="Permalink to this definition"></a></dt>
<dd><p>Returns a list of 2-tuples (condition, value).</p>
<p>If an ELSE exists condition is None.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Parenthesis">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Parenthesis</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Parenthesis" title="Permalink to this definition"></a></dt>
<dd><p>Tokens between parenthesis.</p>
</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.If">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">If</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.If" title="Permalink to this definition"></a></dt>
<dd><p>An &#8216;if&#8217; clause with possible &#8216;else if&#8217; or &#8216;else&#8217; parts.</p>
</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.For">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">For</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.For" title="Permalink to this definition"></a></dt>
<dd><p>A &#8216;FOR&#8217; loop.</p>
</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Assignment">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Assignment</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Assignment" title="Permalink to this definition"></a></dt>
<dd><p>An assignment like &#8216;var := val;&#8217;</p>
</dd></dl>

<dl class="class">
<dt id="sqlparse.sql.Comparison">
<em class="property">class </em><code class="descclassname">sqlparse.sql.</code><code class="descname">Comparison</code><span class="sig-paren">(</span><em>tokens=None</em><span class="sig-paren">)</span><a class="headerlink" href="#sqlparse.sql.Comparison" title="Permalink to this definition"></a></dt>
<dd><p>A comparison used for example in WHERE clauses.</p>
</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Analyzing the Parsed Statement</a><ul>
<li><a class="reference internal" href="#base-classes">Base Classes</a></li>
<li><a class="reference internal" href="#sql-representing-classes">SQL Representing Classes</a></li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="index.html">Documentation overview</a><ul>
      <li>Previous: <a href="api.html" title="previous chapter"><code class="docutils literal"><span class="pre">sqlparse</span></code> &#8211; Parse SQL statements</a></li>
      <li>Next: <a href="ui.html" title="next chapter">User Interfaces</a></li>
  </ul></li>
</ul>
</div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/analyzing.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2016, Andi Albrecht.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.4.8</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.8</a>
      
      |
      <a href="_sources/analyzing.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>