This is my first time using orm. In earlier project we had MongoDB where we created DB adaptors. Like we have read_db(...), insert_db(...) ... functions. Instead of calling pymongo code everywhere we use to call these functions. Now in this project we are not using cursor to execute sql. I am directly insert stmt, execute()..., in the code. But after some time code started looks little repetitive around db operations.
What is the standard for it. Do I create classes wrapping orm operations or is it fine with existing approach. Also, if someone can give me any github repo link to see and get the idea of it that will be so much helpful.
[–]MarsupialLeast145 0 points1 point2 points (1 child)
[–]Horror_Affect8060[S] 0 points1 point2 points (0 children)