edmiCreateDatabase
EdmiError edmiCreateDatabase(SdaiString location, SdaiString databaseName, SdaiString password);
Creates a new EDMdatabase. This operation will fail if the actual EDMserver has another open database. During the creation of a new EDMdatabasethe two EDMusers named superuser and sdai-user, and the EDMgroup named sdai-group will be created. The users superuser and sdai-user are member of the group sdai-group. The superuser is the privileged user in the EDMserver. The sdai-user and the sdai-group is the default user and group account, i.e. when connecting to the EDMserver by the sdaiOpenSession function, the caller will be logged-in as the EDMuser sdai-user and the EDMgroup sdai-group. The superuser will automatically get the same password as the database password defined by this operation. The superuser can change its password by executing edmiDefinePassword function. The password that protects the EDMdatabase cannot be changed.
Arguments
Type | Name | Comment |
SdaiString | location | Specifies the path to the directory where the database is located. The <location> argument must be specified as an absolute path of the actual EDMserver. The <location> argument can be specified with and without the directory delimiter character as the last character in the directory path. The directory delimiter character is '\' on the Windows platforms and '/' on the Unix platforms. |
SdaiString | databaseName | Specify the name of the EDMdatabase. EDMdatabase names are case sensitive on the Unix platforms and case insensitive on the Windows platforms. |
SdaiString | password | Specify password of the new database. The password that protects the database cannot be changed. This password will by default be the password of the EDMuser superuser. The superuser can change his password by invoking the edmiDefinePassword function. |
Return Value
Options
Example
EdmiError rstat; ... if (rstat = edmiCreateDatabase ("/usr/hkd/databases", "TestDB", "xhkd82x")) { /* Error in operation */ printf("\nError in edmiCreateDatabase: %s", edmiGetErrorText(rstat)); goto error; } ...
See also
Filter by label
There are no items with the selected labels at this time.