convert
Small utils file to define DB results output converters
Functions:
-
handle_json_serial–Function to handle non-JSON serializable attributes (datetime, date, WKBElement, ...)
-
l_rm_to_dict–Function to convert a list of RowMapping objects to a list of dicts
-
rm_to_dict–Function to convert a RowMapping SQLAlchemy DB results to
handle_json_serial
l_rm_to_dict
Function to convert a list of RowMapping objects to a list of dicts
Parameters:
-
(data_List[RowMapping]) –Data to convert (list of RowMapping objects)
Returns:
-
List[Dict[str, Any]] | None–List of converted dict objects