You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
record = database_pool.fetchval("some_sql") or {} # this is so I don't have to do `if result is None`
final = dict(record).get("column")
What I would like to see however, is a record.get function (similar to the dict.get())
The default argument should be used if a column is NULL, similar to dict.get()
This would allow for: