Questions tagged [libpqxx]

Libpqxx is a C++ client API for PostgreSQL, the enterprise-strength open-source database software.

Libpqxx is a C++ client API for PostgreSQL, the enterprise-strength open-source database software.

homepage: http://pqxx.org/development/libpqxx/

Other PostgreSQL C++ clients: https://wiki.postgresql.org/wiki/Client_Libraries#C.2B.2B

235 questions
0
votes
1 answer

libpqxx under Visual Studio 2008 x64

Is anybody here who built libpqxx under Visual Studio 2008 x64? I have built it. Debug with libpqxx_staticD.lib works fine, but Release with libpqxx_static.lib fails at pqxx::connection conn(...); Call…
Max Tkachenko
  • 792
  • 1
  • 12
  • 30
0
votes
1 answer

Can't link libpqxx in MinGW

Using MSYS, I compiled libpq (from compiling postgres). I then compiled libpqxx. Now, I want to create a client that will use libpqxx. libpq seemed to work fine. And, I can compile code with libpqxx. However, linking the libpq client…
User1
  • 39,458
  • 69
  • 187
  • 265
0
votes
1 answer

How to guess the exception type thrown by libpqxx C++ library functions?

I'm using libpqxx but I'm stuck with the following. Some function of lets say the pqxx:connection_base class throw exception, as per the connection_base.hxx file : void disconnect() throw (); My question is : how can I guess what kind of…
SCO
  • 1,832
  • 1
  • 24
  • 45
-1
votes
1 answer

C++ PostgreSQL Library, describe SQL, without execution

I have asked this question on Github, issue #641, since it seems like a deficiency or an enhancement question. Most databases (e.g. Oracle, SQL*Server, Sybase, ... ) send back a description of the resultset, even if there are zero rows. I cannot…
nvanwyen
  • 81
  • 1
  • 4
-1
votes
1 answer

The Procedure entry point pointstd::from_chars could not be located in the dynamic link library libpqxx-7-7.dll

I am compiling a C++ program on windows under MSYS2 MinGW and I am using the libpqxx library, the program compiles fine but when I go to run it from file explorer I get the following error The Procedure entry pointstd::from_chars(char const*, char…
Austin
  • 1
  • 2
-1
votes
1 answer

Extracting an username from the database

I'm relatively new to the pqxx library and so I can't seem to figure out how to get data out of the database. I have my header file for the DBUser class #pragma once #include class DBUser { private: std::string m_user,…
Vasile Mihai
  • 103
  • 6
-1
votes
2 answers

how to clear a PostgreSQL database programmatically with libpqxx

For the HelpCovid GPLv3+ project (C++17, Linux/x86-64, Debian/Buster, PostgreSQL 11 or 12) and its issue #27, we want to clear all the data in a given PostgreSQL 11 (or 12) database. We have today (April 6, 2020, git commit 2843184d9f589d51bd9) only…
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
-2
votes
1 answer

Updating PostgreSQL table with binary data

I have a std::stringstream strs variable with this serialized binary data: �G�{SSF��>%�����hgRQ;Tjh A "ʐk�R3 1[Z�yA _�Kx O��� ���f��' ����t %��+>, ���~� 삾�+/ Tb�Ҷ�7 �(���� �Q1�5m& ��( G#�bm 3O�AN ) �DP߇g �0=ʆ�0 ���j�u E�3�� �G�#�"…
TalG
  • 677
  • 1
  • 9
  • 26
-2
votes
1 answer

Did I install pqxx wrong?

I've just installed libpqxx (postgresql for c++). I was following this tutorial: http://www.tutorialspoint.com/postgresql/postgresql_c_cpp.htm Everything is Ok less one thing. When I tried to compile the example code I saw all these…
Marcello Bardus
  • 365
  • 2
  • 4
  • 13
-2
votes
2 answers

Error when connecting to Postgres database in C - using libpq-fe.h

Hey I am trying to connect to a database using postgres #include #include #include int main(int argc, char* argv[]) { //Start connection PGconn* connection = PQconnectdb("host=webcourse.cs.nuim.ie dbname=cs621 …
user1974753
  • 1,359
  • 1
  • 18
  • 32
1 2 3
15
16