Details
-
Type:
New Feature
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.56
-
Fix Version/s: 0.9.57
-
Component/s: DBAPI 2.0
-
Labels:
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} |