Re: accessing postgres from c++

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Rino Mardo <rino19ny(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: accessing postgres from c++
Date: 2022-06-21 07:07:09
Message-ID: CAFCRh-8sk3WG_no-_P6wszPDjXd7GYUtcfiY+yrPYo8_MA+rSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 21, 2022 at 7:59 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jagmohan Kaintura 2022-06-21 07:08:14 INSERT ALL with DML ERROR Logging replacement in PostgreSQL
Previous Message Laurenz Albe 2022-06-21 05:59:40 Re: accessing postgres from c++