edmiRemoteDeleteSchema
EdmiError edmiRemoteDeleteSchema(SdaiServerContext serverContextId, SdaiInteger schemaType, SdaiString schemaName, SdaiString extraSchemaName, SdaiUnsignedInt options, SdaiInvocationId *edmiInvocationId);
Deletes a schema from the remote EDMdatabase. The following schema types are supported by this function;
- Express Schemata (ISO10303-11).
- Express-X Schemata (ISO10303-14)
- Express Rule Schemata (Express Schemata extension).
- Express Query Schemata (Express Schemata extension).
- Extension Schemata
For Express Schemata, dictionary models may not be deleted if data models (populations) of it exist in the database. Neither can it be deleted if it has been refereed to as a source schema or a target schema by any Express-X dictionary model. Therefore, all corresponding data models and Express-X dictionary models must be deleted before the Express Schema it self may be deleted.
Arguments
Type | Name | Comment |
 SdaiServerContext | serverContextId | Context identification, from edmiDefineServerContext |
 SdaiInteger | schemaType | The type of schemata to delete. Supported schema types are EXPRESS_SCHEMA_TYPE, RULE_SCHEMA_TYPE, QUERY_SCHEMA_TYPE, EXPRESS_X_SCHEMA_TYPE and EXTENSION_SCHEMA_TYPE . |
 SdaiString | schemaName | The name of the schema to delete. If the <schemaType> is RULE_SCHEMA_TYPE or QUERY_SCHEMA_TYPE, this argument shall be the name of the parent Express Schema. |
 SdaiString | extraSchemaName | If the <schemaType> is RULE_SCHEMA_TYPE or QUERY_SCHEMA_TYPE, this argument shall be the name of the Rule Schema or Query Schema. |
 SdaiUnsignedInt | options | Currently not used. |
 SdaiInvocationId | edmiInvocationId | Currently not used. |
Return Value
Â
Options
 Â
Â
Example
Â
 EdmiError rstat; SdaiInteger nWrn, nErr; SdaiServerContext myContext; SdaiSchema schemaId; /* Define Remote Server Context */ rstat = edmiDefineServerContext("MyRemoteServerContext", "Johnny", "Supervisor", "cf37ftr", "TCP", "9090", "MyServerHost", NULL, NULL, NULL, NULL, NULL, &myContext); /* Compile the schema */ rstat = edmiRemoteDefineSchema(myContext, EXPRESS_SCHEMA_TYPE, "c:/data/MyFile.exp", "c:/tmp/MyFile.dia", "MySchema", DELETING_EXISTING_SCHEMAS | STORING_SOURCE, &nWrn, &nErr, NULL); /* Get the id of schema MySchema */ rstat = edmiRemoteGetSchema(myContext, "MySchema", &schemaId, NULL); /* Get the HTML source of schema MySchema */ rstat = edmiRemoteGetSchemaSource(myContext, EXPRESS_SCHEMA_TYPE, "MySchema", NULL, SHOW_HTML, "c:/out/MySchema.html", NULL); /* Delete the schema */ rstat = edmiRemoteDeleteSchema(myContext, EXPRESS_SCHEMA_TYPE, "MySchema", NULL, 0, NULL); . . .
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â