Returns the repositoryId that uniquely identifies a repository in the EDMdatabase.
Related functions: edmiCreateRepository , sdaiOpenRepository , sdaiOpenRepositoryBN , edmiOpenRepository , edmiOpenRepositoryBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetRepository (SdaiString repositoryName,
SdaiRepository *repositoryId);
Arguments:
repositoryName |
Specifies the name of the repository. Repository names are case sensitive. |
*repositoryId |
A numeric repositoryID that uniquely identifies the repository in the EDMdatabase . |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
SdaiRepository repositoryId;
EdmiError rstat;
. . .
if (rstat = edmiGetRepository ("DataRepository", &repositoryId)) {
/* Error in operation */
printf("\nError: %s in edmiGetRepository\n",
edmiGetErrorText(rstat));
goto error;
}
printf ("\nRepositoryId: %lu", repositoryId);
. . .