company logo

Client :: exist - Check database path

The function checks, whether the database passed exists and is a valid database file.

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 )

The function checks, whether the file addressed in sDatabasePath refers to a valid database. 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 in sDatabasePath may contain option variables, which are resolved before checking the path. When running on a client in an client server environmentthe request is passed to the server, i.e. symbolic names must be known on server side.

  • 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.