sdaiCloseRepository


Close an open repository in the EDMdatabase. No further access to the actual repository is permitted before it is opened again with the sdaiOpenRepository or sdaiOpenRepositoryBN function.
The dictionary repository cannot be closed by this function. The dictionary repository will stay open as long as an _EDMserver_ session is open.
See related functions: sdaiOpenRepository , sdaiOpenRepositoryBN
Header:
#include "sdai.h"
Prototype:
void sdaiCloseRepository(SdaiRepository repository);
Arguments:

repository

A numeric repositoryID that uniquely identifies a repository in the EDMdatabase.
The repositoryID is returned from the sdaiOpenRepository and sdaiOpenRepositoryBN functions.

Returns:
Void – use sdaiErrorQuery to check for error in operation.
Example:
SdaiRepository repository;
SdaiErrorCode errCode;
...
sdaiCloseRepository(repository);
errCode = sdaiErrorQuery();
if (errCode) {
/* Error in operation */ 
printf("\nError: %s in sdaiCloseRepository \n", 
edmiGetErrorText(errCode)); 
goto error; 
}
. . .