Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
0.9.56
Description
Support returning Dict class instead of default list when fetching rows:
import mariadb |
 |
connection=mariadb.connect(user="user") |
cursor=connection.cursor(dictionary=True) |
cursor.execute("SELECT 1 as foo") |
row= cursor.fetchone |
print(row) |
should return
{'foo': 1} |