Db.upgrade |
![]()
|
import com.sleepycat.db.*;public void upgrade(String file, int flags) throws DbException;
The Db.upgrade method upgrades all of the databases included in the file file, if necessary. If no upgrade is necessary, Db.upgrade always returns success.
Database upgrades are done in place and are destructive. For example, if pages need to be allocated and no disk space is available, the database may be left corrupted. Backups should be made before databases are upgraded. See Upgrading databases for more information.
Unlike all other database operations, Db.upgrade may only be done on a system with the same byte-order adth="100%">
