company logo

Client :: exist - Check database path

The function checks, whether the file addressed in sDatabasePath refers to a valid database location. The function checks, whether the file located is a valid ODABA database ( true ) or not. Thus, the function does not allow checking the existence of an xml database.

The path name may contain symbolic names, which are resolved before checking the path. When running on a client in an client server environment the request is passed to the server, i.e. symbolic names must be known on server side.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false .

Implementation details

bool Client  :: exist ( odaba::String &sDatabasePath )
  • sDatabasePath - File path to database location

    The database path refers to the location of the main database file (root base).

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