[odb-users] Schema evolution and upward compatibility

Boris Kolpackov boris at codesynthesis.com
Wed Sep 16 12:47:39 EDT 2015


Hi Christian,

Christian Sell <christian at gsvitec.com> writes:

> So I take it that if my application contains a
>  
> #pragma db model version(1, 1)
>  
> and then encounters a model with, say, version (2, 2), ODB will not
> call exit() on my application.

No, it won't. You, however, can detect this situation (schema_version()
function of the database) and, perhaps, warn the user that things are
about to get rocky ;-).

Boris



More information about the odb-users mailing list