EEX Usage

Version: 0.2  2017.11.28 AET

 

Using EXPRESS_EXTENSION_SCHEMA  from QUERY SCHEMA

To enable compile-time checking and binding an EDM query schema must specify which extension schemata it depends on by specifying the extension as follows in the GLOBAL section:

 

Example
QUERY_SCHEMA MyQueries FOR IFC4;
GLOBAL
   DECLARE trg  INSTANCE OF IFC4;
   DECLARE ex1  INSTANCE OF EXPRESS_EXTENSION_SCHEMA EEX_1001; -- implicit: FOR IFC4;

	-- ... addition declarations ...
END_GLOBAL;
 
-- ... normal query schema syntax ...
 
END_QUERY_SCHEMA;   

The "schema_instance" declaration name "ex1" has no use further in the query schema. Constructs from the specified extension will be imported into compiler enabling named access from the query scschema code.