Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Unanswered: C++ program to connect to Postgre

    Hello,

    I'm thinking of making a program in C++ that will connect, read, and write to a PostgreSQL database. I honestly have no idea where to start and how to implement it in C++ using Dev C++.
    Any help would be greatly appreciated.
    Thanks.

    Sincerely,
    Rhey

  2. #2
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,848
    First, check out the documentation. libpq is the c interface library to the database. Yes - it's not c++, but, you really need to understand it anyway, as libpq is the underlying interface that the c++ library uses.

    The c++ library is libpqxx.
    Lou
    使大吃一惊
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •