In Django (which uses python), you can very easily create 'models' that allow you to abstract away all of the SQL and simply use objects to retrieve/store information from a database.
Can anyone point me to c++ library that allows me to do the same thing? Currently we're using a postgres backend and interfacing to it with libpqxx. We're create our own object oriented data models but have to essentially copy/paste sql code over and over and then make modifications to it for each 'model'. God help us if we have to move to a different backend as most of this code would need to be tweaked (it currently isn't abstracted in a way to just create a different backend piece).
Does a library exist that will allow me to connect to different types of backend databases and abstract away the need to write any SQL to define and use our database models?
While this question was closed, it has numerous answers relevant to your question included in it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With