Browse Source

SQLite

pull/40/head
Jure Šorn 5 years ago
parent
commit
fc14cdfd0d
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1764,7 +1764,7 @@ db.close()
```python
cursor = db.execute('<query>')
if cursor:
<tuple> = cursor.fetchone() # First row.
<tuple> = cursor.fetchone() # First row. Also next(cursor).
<list> = cursor.fetchall() # Remaining rows.
```
* **Returned values can be of type str, int, float, bytes or None.**

2
index.html

@ -1569,7 +1569,7 @@ db.close()
</ul>
<div><h3 id="read">Read</h3><pre><code class="python language-python hljs">cursor = db.execute(<span class="hljs-string">'&lt;query&gt;'</span>)
<span class="hljs-keyword">if</span> cursor:
&lt;tuple&gt; = cursor.fetchone() <span class="hljs-comment"># First row.</span>
&lt;tuple&gt; = cursor.fetchone() <span class="hljs-comment"># First row. Also next(cursor).</span>
&lt;list&gt; = cursor.fetchall() <span class="hljs-comment"># Remaining rows.</span>
</code></pre></div>

Loading…
Cancel
Save