CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Do you use an ORM with C++? What is a good way to use a database with my C++ code?

  1. #1
    Join Date
    Jul 2020
    Posts
    2

    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.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,795

    Re: Do you use an ORM with C++? What is a good way to use a database with my C++ code

    Victor Nijegorodov

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,360

    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.

  4. #4
    Join Date
    Feb 2017
    Posts
    565

    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 View Post
    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/

  5. #5
    Join Date
    Jul 2020
    Posts
    2

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)