Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This allows "unofficial" (as in, it compiles but hasn't been reviewed or
tested) use of object pointers as object ids.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is a backwards-incompatible change in that it may change your schema.
To obtain the old behavior you will have to explicitly re-map std::string
with the id_type pragma or explicitly specify the database type for each
affected id member with the type pragma.
|
|
Now one can do:
odb::nullable<int64_t> id;
And then, when used with NO_AUTO_VALUE_ON_ZERO, set the id to NULL to get
auto-assignment or to 0 to use 0 as the id.
|