Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is a `django model` type abstraction available for c++?

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?

like image 660
g19fanatic Avatar asked Oct 06 '22 23:10

g19fanatic


1 Answers

While this question was closed, it has numerous answers relevant to your question included in it.

like image 137
Josh Heitzman Avatar answered Oct 10 '22 03:10

Josh Heitzman