From 3b28a1e6d2cafe4ea6198db76a59d83708a3d5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= <sornjure@gmail.com> Date: Sun, 29 Sep 2019 18:00:37 +0200 Subject: [PATCH] SQLite --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f87bc0e..7f156c9 100644 --- a/README.md +++ b/README.md @@ -1828,7 +1828,7 @@ db.execute('<query>', <dict/namedtuple>) # Replaces ':<key>'s with values db.executemany('<query>', <coll_of_above>) # Runs execute() many times. ``` * **Passed values can be of type str, int, float, bytes, None, bool, datetime.date or datetime.datetme.** -* **Bools will be stored and returned as ints and dates as ISO formatted strings.** +* **Bools will be stored and returned as ints and dates as [ISO formatted strings](#encode).** ### Example ```python diff --git a/index.html b/index.html index f184219..365a75e 100644 --- a/index.html +++ b/index.html @@ -1634,7 +1634,7 @@ db.executemany(<span class="hljs-string">'<query>'</span>, <coll_of_abo <ul> <li><strong>Passed values can be of type str, int, float, bytes, None, bool, datetime.date or datetime.datetme.</strong></li> -<li><strong>Bools will be stored and returned as ints and dates as ISO formatted strings.</strong></li> +<li><strong>Bools will be stored and returned as ints and dates as <a href="#encode">ISO formatted strings</a>.</strong></li> </ul> <div><h3 id="example">Example</h3><pre><code class="python language-python hljs"><span class="hljs-meta">>>> </span>db = sqlite3.connect(<span class="hljs-string">'test.db'</span>) <span class="hljs-meta">>>> </span>db.execute(<span class="hljs-string">'create table t (a, b, c)'</span>)