Re: accessing postgres from c++

2022-06-21 Thread Rino Mardo
a db connector that will fit everyone? i think that's timely. i have tried, once, libpqxx but i think it forces me to use the source. couldn't find a binary that will just install and use like how python works, i.e., "pip install psycopg2". On Tue, 21 Jun 2022, 3:57 pm Matthias Apitz wrote: >

Re: accessing postgres from c++

2022-06-21 Thread Matthias Apitz
We are developing a huge Library Management System with some 400 tables and which is/was running on many UNIX derivates (SINIX, HP-UX, AIX, SunOS, Linux) and all kind of databases one can imagine (INFORMIX, Oracle, Sybase and now PostgreSQL). The system is written in C, C++ and Perl and the C/C++

Re: accessing postgres from c++

2022-06-21 Thread Dominique Devienne
On Tue, Jun 21, 2022 at 7:59 AM Laurenz Albe 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++ boilerpl

Re: accessing postgres from c++

2022-06-20 Thread Laurenz Albe
On Tue, 2022-06-21 at 10:56 +0800, Rino Mardo wrote: > hi. i found odbc.postgresql.org when i was looking for a way to hook up my > c++ project to postgresql server. > installed it and tested to be successful in connection. this was when i had > postgresql > running from a virtualbox vm in Ubuntu

accessing postgres from c++

2022-06-20 Thread Rino Mardo
hi. i found odbc.postgresql.org when i was looking for a way to hook up my c++ project to postgresql server. installed it and tested to be successful in connection. this was when i had postgresql running from a virtualbox vm in Ubuntu. i installed a postgresql container using Docker for Windows in