company logo

Database :: createVersion - Create new version

The function creates a new version on database level. The database has to be opened in update or write mode. The function returns the version number created (major and minor version). When no versioning has been defined so far, versioning mode is set to database scope versioning.

The function does not change the access version set for an object space or property handle. In order to change the access version to the new version, ObjectSpace::setAccessVersion() has to be called.

When the database handle is not valid or versioning mode is not synchronized or database (also in combination with managed), the function throws an exception.

Return value:  Instance version number ( uint32  )

Instance version numbers are assigned version numbers to individual instances.

Implementation details

uint32 Database  :: createVersion (  )