Re: accessing postgres from c++ - Mailing list pgsql-general

From Dominique Devienne
Subject Re: accessing postgres from c++
Date
Msg-id CAFCRh-8sk3WG_no-_P6wszPDjXd7GYUtcfiY+yrPYo8_MA+rSg@mail.gmail.com
Whole thread Raw
In response to Re: accessing postgres from c++  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: accessing postgres from c++
List pgsql-general
On Tue, Jun 21, 2022 at 7:59 AM Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> I am surprised that you choose to be fettered by the constraints of a generic API like ODBC.
> For me, that only makes sense if you want to be portable to different databases.

Ditto.

> I would use ... C API of libpq, or, .. C++ boilerplate around it, use libpqxx.

There's also this modern C++ libpq wrapper, announced on this list
earlier this year:
https://github.com/dmitigr/pgfe

PS: Haven't used it. but followed it's development (to inform my own
non-OSS C++ wrapper dev), and it looked solid from a distance.
PPS: I think we tried libpqxx in the past, and I kinda remember it
forced you into non-binary mode, which was a non-started for
performance.



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: accessing postgres from c++
Next
From: Jagmohan Kaintura
Date:
Subject: INSERT ALL with DML ERROR Logging replacement in PostgreSQL