-
July 10th, 2020, 03:30 PM
#1
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.
-
July 11th, 2020, 01:12 AM
#2
Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code
Victor Nijegorodov
-
July 11th, 2020, 01:31 AM
#3
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.
-
July 11th, 2020, 02:27 AM
#4
Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code
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/
-
July 12th, 2020, 11:03 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|