setVersion

Definition

Sets the active version. Wrapper for setVersion.

Syntax

db.setVersion([version])

If no version is provided, sets the version to current.

Example

ProvenDB v7754 (current)> db.setVersion(10)
{
        "ok" : 1,
        "response" : "The version has been set to: '10'",
        "version" : NumberLong(10),
        "status" : "userDefined"
}
ProvenDB v10 (history)> db.setVersion()
{
        "ok" : 1,
        "response" : "The version has been set to: 'current'",
        "version" : NumberLong(7754),
        "status" : "current"
}

See also

setVersion