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