aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/monads.py
AgeCommit message (Collapse)Author
2022-09-29Replace MonadicDictCursor with generator function.Arun Isaac
* wqflask/utility/monads.py (MonadicDictCursor): Delete class. (sql_query_mdict): New function. * wqflask/scripts/index.py: Import sql_query_mdict instead of MonadicDictCursor. (main): Use sql_query_mdict.
2022-09-29Remove empty first line in docstrings.Arun Isaac
* wqflask/utility/monads.py (MonadicDict, MonadicDictCursor): Remove empty first line in docstrings.
2022-09-29Ignore None values early when initializing MonadicDict.Arun Isaac
* wqflask/utility/monads.py (MonadicDict.__init__): Ignore None values early instead of converting them to Nothing and then ignoring them.
2022-09-29Return monadic value from MonadicDictCursor.fetchone.Arun Isaac
* wqflask/utility/monads.py (MonadicDictCursor.fetchone): Return monadic value.
2022-09-16Add example code to docstring of MonadicDictCursor.Arun Isaac
* wqflask/utility/monads.py (MonadicDictCursor): Add example code to docstring.
2022-09-16Add example code to docstring of MonadicDict.Arun Isaac
* wqflask/utility/monads.py (MonadicDict): Add example code to docstring.
2022-09-16Initialize empty MonadicDict by default.Arun Isaac
* wqflask/utility/monads.py (MonadicDict)[__init__]: Set default dictionary argument to the empty dictionary.
2022-09-14Add monadic utilities MonadicDict and MonadicDictCursor.Arun Isaac
* wqflask/utility/monads.py: New file.