[odb-users] Using ODB with C++-11

Boris Kolpackov boris at codesynthesis.com
Fri Jan 18 11:26:03 EST 2013


Hi Marco,

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

> The pragmas on my code are these:
> 
> #pragma db object(class_1)
> #pragma db member(class_1::an_attribute_) an_attribute
> 
> To the untrained eye, they look similar enough to the hello world tutorial:
> 
> #pragma db object(person)
> #pragma db member(person::email_) id

The 'id' pragma tells the ODB compiler that email_ data member is object
id. What would 'an_attribute' pragma tell the ODB compiler?

Boris



More information about the odb-users mailing list