Are there any disadvantages to using libpqxx nontransaction when transaction has only one statement
In my app I am reading and writing to the database using pqxx::work
, which resolves to using work = transaction<>
.
pqxx: How do I Insert data to & Select data from a Bytea column in a postgres database correctly
How are you supposed to correctly insert and select Bytea data from a postgres database using pqxx in C++? Since std::binary_string
was marked as deprecated and std::basic_string<std::byte>>
is the new standard not many resources have been posted on how to achieve this.