company logo

Database :: restoreDatabase - Restore database

The function closes the database handle, restores the database from a previously made backup and reopens the database handle again. The function can be called for databases opened locally, only. For restoring databases on the server, Client::restoreDatabase() might be called.

The database must be available exclusively.

Implementation overview

Implementation details

  1. Restoring database from default path
    Database  :: restoreDatabase (  )

    The database will be restored from the default path, i.e. the database path with the extension replaced by .ozi.

  2. to list
  3. Restoring database
    Database  :: restoreDatabase ( odaba::String &sSourcePath )

    The database will be restored from the backup locates at sSourcePath.

    • sSourcePath - Source path

      The source path refers to a file location for the source file. The complete path includes file name and directory. It might, however, be defined as absolute path starting with the root device or folder or a relative path.

      In order to pass no file path, an empty string ( String() ) may be passed.

  4. to list