edmiDefineQuerySchema

EdmiError edmiDefineQuerySchema(SdaiString  querySchemaFile,
                                 SdaiString  diagnosticFile, 
                                 SdaiInteger options, 
                                 SdaiInteger *nbWarnings, 
                                 SdaiInteger *nbErrors); 


Invokes the EDMexpressXCompiler to compile an EDMquerySchema. The query schema will be checked for syntactical and consistency errors. Optionally the result of the compilation will be stored as an increment to the appropriate dictionary model in the EDMdatabase. Only query schema that are compiled without any errors will be stored in the belonging dictionary model. This default behavior can be overruled by an option in the <options> argument. See below for details.A query schema defines query functions and optionally business objects based on an Express schema. This Express schema must exist as a dictionary model in the EDMdatabase before this operation can be successfully performed. There can be any number of query schema for each dictionary model (Express schema). The name of a query schema must be unique within all query schema to the same dictionary model. Each query schema is independent, i.e., a query schema can be deleted at any time independent of any other query schema, rule schema or data models. When the belonging dictionary model is deleted, then all belonging query schema will be deleted as well.

 

 

Arguments


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_querySchemaFIle_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_diagnosticFile_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_options_EDMI'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_nbWarnings'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_a_nbErrors'.
        

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


  

Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_DELETING_EXISTING_SCHEMAS'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_PARSE_ONLY'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_NO_DICTIONARY_MODEL'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_CONTINUE_STORING_ON_ERROR'.
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_HTML_ERROR_LISTING'.
  
Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_o_MAKE_EXPRESSX_LONGFORM_OPTIONS'.
           

 

Example


 

EdmiError rstat;
SdaiInteger nWarnings, nErrors;
. . .
if (rstat = edmiDefineQUerySchema ("/queries/product_document.qex", "/queries/query.diag", DELETING_EXISTING_SCHEMAS, &nWarnings, &nErrors)) { 
	/* Error in operation */  
	printf("\nError in edmiDefineQuerySchema: %s\n", 
	edmiGetErrorText(rstat)); 
	goto error; 
}
printf("\nWarnings during compilation: %ld", nWarnings);
printf("\nErrors during compilation..: %ld", nErrors);
. . .

 

See also

Filter by label

There are no items with the selected labels at this time.