Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagecpp
themeConfluence
EdmiError edmiRemoteGetDatabaseVersion (SdaiServerContext serverContextId, 
                                          SdaiString        location, 
                                          SdaiString        databaseName, 
                                          SdaiInteger       *databaseVersion,
                                          SdaiInteger       *databaseBlockSize,
                                          SdaiInteger       *maxModelsInDB, 
                                          SdaiInvocationId  *edmiInvocationId);

Returns info of about a remote EDMdatabase

...

from a thick EDMclient. The info returned is;

  1. The database version number.
  2. The database block size.
  3. The maximum number of models that may be stored in the database.

The EDMdatabase needs not be open when this function is invoked.
The main purpose of this function is to enable retrieval of this info from an EDMdatabase that cannot be opened due to incompatible block sizes and/or incompatible database versions within the EDMinterface of the EDMserver and the remote EDMdatabase.
If an EDMdatabase cannot be opened due to incompatible block sizes, the block size of the EDMserver must be set equal to that of the remote EDMdatabase.
If an EDMdatabase cannot be opened due to incompatible database versions, the remote EDMdatabase must be dumped by the EDMinterface of an EDMserver that supports the remote EDMdatabase version. Then Afterwards,  it must can be restored by the EDMinterface of the new EDMserver. For details, see the EDMsupervisor commands Database>Dump and Database>Restore
When using the edmiRemoteGetDatabaseVersion on EDMdatabases older than version 4.7, the returned maxModelsInDB will be zero. This is because this feature was not implemented until version 4.7.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiRemoteGetDatabaseVersion (SdaiServerContext serverContextId, 
                                         SdaiString        location, 
                                         SdaiString        databaseName, 
                                         SdaiInteger       *databaseVersion,
                                         SdaiInteger       *databaseBlockSize,
                                         SdaiInteger       *maxModelsInDB, 
                                         SdaiInvocationId  *edmiInvocationId);
 
Arguments:

Arguments

...

TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiString

location

The full path to the directory where the remote database files are located on the remote _EDMserver{_}.remote  EDMserver

SdaiString

databaseName

The name of the remote _ EDMdatabase{_}. _EDMdatabase_ names are case sensitive on UNIX platforms and case insensitive on Windows platforms.

SdaiInteger

databaseVersion

A variable that will receive the version number of the remote _EDMdatabase{_}.remote  EDMdatabase

SdaiInteger

databaseBlockSize

A variable that will receive the block size of the remote _EDMdatabase{_}.remote  EDMdatabase

SdaiInteger

maxModelsInDB

A variable that will receive the maximum number of models that may coexist in the remote EDMdatabase.

SdaiInvocationId

edmiInvocationId

Currently not used.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"