The backend workflow is illustrated in the following chart: The exporting algorithm for exporting the table will follow as:
- validate the body
- check whether database exist or not
- check whether table
<schema_name>.<table_name>
exist or not - check whether given fields are there in the table or not
- create engine using create_mathesar_engine function by passing
db_name
- use the created engine to relfect the table with the given
schema_name
andtable_name
using reflect_table function - then it will follow the logic mentioned in the exporting function prototypes(e.g., refer
export_table_to_dict
function)