Introduction into DataBase Schemas
The purpose of database schemas is to organize tables into logical groups.
In the Daanse server, schemas can be referenced in the catalog. None or only a subset of the existing database schemas may be referenced. This reference is only required if the Daanse server needs to expose the schemas and their tables via an API, such as XMLA.
Schema without name
The name of a database schema is optional and can be left empty. In such cases, the server will query the default schema of the underlying database.
<roma:DatabaseSchema id="_dbschema2"/>
Note: This is only a symbolic example. For the exact definition, see the Definition section.
Schema and attrebutes
It is more secure to explicitly define the schema using the name
attribute. To provide a clearer description of the schema's contents, you can use the description
attribute.
<roma:DatabaseSchema id="_dbschema1" description="theDescription" name="foo"/>
Note: This is only a symbolic example. For the exact definition, see the Definition section. Schema can be refernced in the catalog. You can see this by checking the dbSchema attribute
in the catalog.
<roma:Catalog id="_cat" name="Database - Schema" dbschemas="_dbschema2 _dbschema1"/>
Note: This is only a symbolic example. For the exact definition, see the Definition section.
Definition
This files represent the complete definition of the catalog.
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:roma="https://www.daanse.org/spec/org.eclipse.daanse.rolap.mapping">
<roma:Catalog id="_cat" name="Database - Schema" dbschemas="_dbschema2 _dbschema1"/>
<roma:DatabaseSchema id="_dbschema2">
<tables xsi:type="roma:PhysicalTable" id="_tab2" name="theTable">
<columns xsi:type="roma:PhysicalColumn" id="_colt2c1" name="theColumn"/>
</tables>
</roma:DatabaseSchema>
<roma:DatabaseSchema id="_dbschema1" description="theDescription" name="foo">
<tables xsi:type="roma:PhysicalTable" id="_tab1" name="theTable">
<columns xsi:type="roma:PhysicalColumn" id="_colt1c1" name="theColumn"/>
</tables>
</roma:DatabaseSchema>
</xmi:XMI>
Turorial Zip
This files contaisn the data-tables as csv and the mapping as xmi file.