[odb-users] PostgreSQL & uuid type

Xentrea meow at xentrea.me
Fri May 18 09:24:58 EDT 2012


Hello!
How mapping *char *or *unsigned char* to *uuid* for PostgreSQL database?

For example  (didn't work) :(

typedef std::vector<char> uuid;
#pragma db value(uuid) type("UUID")

#pragma db object
class object
{
  ...

  uuid id_; //
};

Maybe i'm mistaken?

Thanks!


More information about the odb-users mailing list