23 #include <odb/pgsql/traits.hxx> 24 #include <odb/sqlite/traits.hxx> 53 std::string str_rep(b.data(), n);
55 v = s.UnSerialize(str_rep);
61 static void set_image(details::buffer &b, std::size_t &n,
bool &is_null,
69 if (str_rep.size() > b.capacity())
70 b.capacity(str_rep.length());
71 std::memcpy(b.data(), str_rep.data(), str_rep.length());
93 std::string str_rep(b.data(), n);
95 v = s.UnSerialize(str_rep);
101 static void set_image(details::buffer &b, std::size_t &n,
bool &is_null,
109 if (str_rep.size() > b.capacity())
110 b.capacity(str_rep.length());
111 std::memcpy(b.data(), str_rep.data(), str_rep.length());
static void set_image(details::buffer &b, std::size_t &n, bool &is_null, const ScryptResult &v)
details::buffer image_type
details::buffer image_type
virtual std::string Serialize(const ScryptResult &in) const override
static void set_value(ScryptResult &v, const details::buffer &b, std::size_t n, bool is_null)
Provide ODB magic to be able to store an Leosac::Audit::EventType (FlagSet) object.
static void set_value(ScryptResult &v, const details::buffer &b, std::size_t n, bool is_null)
static void set_image(details::buffer &b, std::size_t &n, bool &is_null, const ScryptResult &v)