Do you use an ORM with C++? What is a good way to use a database with my C++ code?
Hello,
I'm a C++ newbie and my books don't cover database integration, I have honestly no idea if the C++ world usually uses an ORM like Hibernate or does it uses direct connection to for example MySQL.
I am writing an application that updates a large databaset ever few minutes so I would like to use Mysql / Postgresql or even Redis.
What would you use? Just the C++ driver of mysql (Which is Java?)
Thanks for helping me point in the right direction.
Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code
Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code
My preference is to use the ATL OLE DB Consumer classes.
https://docs.microsoft.com/en-us/cpp...s?view=vs-2019
However, compared to the modern ORMs available in other languages support in C++ lags far behind.
Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code
Quote:
Originally Posted by
nuclear
point in the right direction.
The acronym ORM is new to me so I'm not quite sure in which direction I'm pointing, if any,
https://www.codesynthesis.com/products/odb/
Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code
okay thanks, so it seems ORMs are not really used in C++, I'm just going to do it directly then.