company logo

Managed database versioning

Managed database versioning is the strongest versioning strategy. It guarantees database consistency for each version. Creating a new database version causes creating new versions for database entries updated later on. Hence, this type of versioning creates a sort of continuous versioning, which may become rather storage consuming.

Combining managed versioning with database versioning scope allows creating up to 65,535 minor versions for each of the 65,535 major versions. How to handle managed versions is described in detail in chapter " Defining major versions ".

Concerning minor versions, managedDatabase versioning behaves similar as simple database versioning , except that the number of minor versions for each major version is limited to 65,535. When creating a new major version ( Database ::createMajorVersion() ), the minor version number is reset to 0.

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

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

// set version mode from within a program: ;

... fragment ( Database &dbh ) {

  dbh.versioningMode(managedDatabase);

}

Related topics