sdaiOpenRepositoryBN
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: sdaiOpenRepository , edmiOpenRepository , edmiOpenRepositoryBN
Header:
#include "sdai.h"
Prototype:
SdaiRepository sdaiOpenRepositoryBN(SdaiString repositoryName);
Arguments:
repositoryName |
The name of the repository in the EDMdatabase to open. Repository names are case sensitive. A repository name is unique within one EDMdatabase. |
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;
...
SdaiRepository sdaiOpenRepositoryBN(SdaiString repositoryName);
repository = sdaiOpenRepositoryBN ("Merci");
if (! repository) {
/* Error in operation */
printf("\nError: %s in sdaiOpenRepositoryBN \n",
edmiGetErrorText(sdaiErrorQuery()));
goto error;
}
. . .