[odb-users] Joining underscore for column pragma on composite values

Dieter Govaerts dieter.govaerts at bricsys.com
Fri Dec 2 03:52:57 EST 2016


Hello,

It's a small thing but I was wondering whether there is a way to avoid the joining underscore between the specified column pragma on a composite value and its member names. I would like it to be a $-sign instead.

#pragma db value
class name
{
  std::string first_;
  std::string last_;
};

#pragma db object
class person
{
  #pragma db column("person$")
  name name_;
};

Above example results in a column named "person$_first" instead of my preferred "person$first". It's just because we aggreed unpon such scheme with the other team.

Best regards,
Dieter




More information about the odb-users mailing list