sdaiOpenRepository
Opens the specified repository for subsequent access. The actual repository is open for read and write access (sdaiRW). No access to data in a repository is permitted when the repository is closed.
Related function: sdaiOpenRepositoryBN , edmiOpenRepository , edmiOpenRepositoryBN
Header:
#include "sdai.h"
Prototype:
SdaiRepository sdaiOpenRepository(SdaiRepository repository);
Arguments:
repository |
A numeric repositoryID that uniquely identifies the repository in EDMdatabase to be opened. |
Returns:
A numeric repositoryID that uniquely identifies the repository in the EDMdatabase that is opened by this operation.
repositoryID != 0 : operation successfully performed.
repositoryID = 0 : operation failed, use sdaiErrorQuery function to get error reason.
Example:
SdaiRepository repository, openRepository;
...
openRepository = sdaiOpenRepository(repository);
if (! openRepository) {
/* Error in operation */
printf("\nError: %s in sdaiOpenRepository \n",
edmiGetErrorText(sdaiErrorQuery()));
goto error;
}
. . .