libpqxx Questions

15

Solved

I am currently trying to install libpq-dev to install psycopg2. The problem is, when I try to install it, an error occurs saying I don't have the latest libpq5 version. However when I try to downlo...
Pleasure asked 7/9, 2020 at 23:48

3

Solved

I'm trying to compile a very simple program (sample that does nothing) with pqxx, but cannot do it. Here's the 'program': $ cat xx.cpp #include <pqxx/pqxx> using namespace pqxx; int main...
Mascarenas asked 13/3, 2011 at 12:24

2

Solved

I am working on my C++ simple project. I faced a crucial problem in CMakelists.txt. I cannot link libpqxx library correctly. I am using C++17 CMake 3.10 Ubuntu 16.04 CLion This my CMakelists.txt:...
Haletky asked 1/8, 2018 at 12:54

1

I can't bind NULL value for a numeric type in C++ with libpq library. I use this description How to prepare statements and bind parameters in Postgresql for C++ and it worked fine. But I couldn't ...
Ordonnance asked 30/4, 2019 at 9:11

1

I would like to use prepared statements to insert thousands of rows at once into my postgres database. The data to insert is stored in a vector of structs. By reading the answers to How to prepare ...

2

How can I get values from array using libpqxx? For Example I have table like this: CREATE TABLE testTable ( testArray integer[] ); How do I get int array with these values in C++?
Alienable asked 28/10, 2015 at 15:41

3

Solved

I'm learning libpqxx, the C++ API to PostgreSQL. I'd like to use the pqxx::stateless_cursor class, but 1) I find the Doxygen output unhelpful in this case, and 2) the pqxx.org website has been down...
Lase asked 21/4, 2013 at 5:2

2

Solved

I'm quite new to C++ and know a little bit about pqxx library. What I want to implement is to prepare statements and bind parameters. In PHP I'm used to doing this in such a nice and concise manner...
Thundering asked 5/8, 2015 at 13:1

2

Solved

In the following code snippet, the std::string object with name mac is sometimes an empty string (i.e. "") and I want the prepared statement to treat this variable automatically as null. I wonder h...
Fabulist asked 5/2, 2014 at 10:6

5

Solved

I'd like to insert some binary data into a BYTEA column, but I find the Doxygen output is lacking in details, and http://pqxx.org/ has been down for the past few days. How would I go about inserti...
Englishism asked 16/4, 2013 at 22:6

1

Solved

I want to use a pqxx::work for multiple queries AND commitments, while the commit function prevents me from using it again. Here is a simple example : pqxx::connection G_connexion("dbname=basetest...
Cacology asked 20/10, 2014 at 11:1

1

i am using c++ 4.8 ( available 4.9) and pqxx driver ver. 4.0.1. postgresdb is latest stable. My problem is all about complexity and resource balance: I need to execute insert to database (and the...
Hatpin asked 23/10, 2014 at 16:12

3

Solved

I am using libpqxx to connect to a postgres database by creating a class. class databaseConnection { public: pqxx::connection* conn; void SetConnection(){ conn=new pqxx::connection( "username=...
Spondaic asked 14/10, 2011 at 5:44

0

Now that tablestreams are deprecated, is there a different way to COPY large amounts of data into a database using pqxx? I'm currently using a prepared statement but am only getting about 4k inser...
Connate asked 28/1, 2014 at 18:7

1

Solved

I'm trying to listen for notify events using libpqxx. I started by going off an example that extended pqxx::notify_listener. #include <iostream> #include <string> #include <pqxx/pq...
Photoactinic asked 10/10, 2012 at 21:13
1

© 2022 - 2024 — McMap. All rights reserved.