company logo

Using database versioning

In order to activate simple database versioning, the DBVersion utility or Database::versioningMode() might be called. Database versioning is also enabled, when no versioning mode had been set so far, but an instance version had to be created.

In order to create a new version, a new version number can be assigned to the database calling DatabaseHandle::createVersion(). After creating a new version, all subsequent database entry updates result in creating a copy of the database entry before being updated.

// DBVersion Utility: set version mode individual ao managed individual

  DBVersion.exe c:\Sample\sample.dat mode -M:D

// set version mode from within a program: ;

... fragment ( Database &dbh ) {

  dbh.versioningMode(database);

}