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. field::as<...>()
or field::c_str()
.