[odb-users] Help is need with odb::vector Binary Type for PostgreSQL

Boris Kolpackov boris at codesynthesis.com
Mon Dec 11 11:02:20 EST 2017


Alain-Serge Nagni <asnagni at yahoo.com> writes:

> We have a Classe with a std::vector as a data member,
> std::vector<std::uint8_t> , and for performance reason we would
> like to migrate to odb::::vector<std::uint8_t>.
>
>       #pragma db type (“BYTEA")
>       std::vector<std::uint8_t> m_imageBytes;

odb::vector is a change-tracking implementation that is used for
containers, not for storing BLOBs. See the documentation for
details.

Boris



More information about the odb-users mailing list