|
libpqxx
The C++ client library for PostgreSQL
|
int, use the field's as<...>() member function. To read a field efficiently just as a string, use its c_str() or its as<std::string_vview>(). bytes and bytes_view for binary data. In C++20 or better, any contiguous_range of std::byte will do. std::span<std::byte>. SET command. field::as<...>() or field::c_str(). blob class instead. SET command. To set a session variable, use the connection's set_session_var function.