We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e17ad7 + 159ae3d commit 0893140Copy full SHA for 0893140
docs/patterns/sqlite3.rst
@@ -72,10 +72,10 @@ Now in each request handling function you can access `g.db` to get the
72
current open database connection. To simplify working with SQLite, a
73
row factory function is useful. It is executed for every result returned
74
from the database to convert the result. For instance in order to get
75
-dictionaries instead of tuples this can be used::
+dictionaries instead of tuples this could be inserted into ``get_db``::
76
77
def make_dicts(cursor, row):
78
- return dict((cur.description[idx][0], value)
+ return dict((cursor.description[idx][0], value)
79
for idx, value in enumerate(row))
80
81
db.row_factory = make_dicts
0 commit comments