[odb-users] BLOBs and multi-database

Boris Kolpackov boris at codesynthesis.com
Mon Feb 27 07:04:21 EST 2017


Hi Marco,

Marco Craveiro <marco.craveiro at gmail.com> writes:

> [...] but I don't seem to be able to map them to each database
> "simultaneously" when on multi-database scenario.

You are probably looking for the database pragma prefix (introduction
to Chapter 16, "Multi-Database Support"):

#pragma db pgsql:type("BYTEA") oracle:type("BLOB")
std::vector<char> data;

Boris



More information about the odb-users mailing list