| ... |
| <source name="${source-name}" translator-name="${translator-name}" connection-jndi-name="${deployed-jndi-name}"> |
| <metadata type="${repository-type}">raw text</metadata> |
| </model> |
| ... |
| Property to be used by the connector importer for the model for purposes importing metadata. See possible property name/values in the Translator specific section. Note that using these properties you can narrow or widen the data elements available for integration. |
| *Metadata Element* The optional metadata element defines the metadata repository type and optional raw metadata to be consumed by the metadata repository. *_type_ The metadata repository type. Built-in types include DDL, NATIVE, INDEX, and DDL-FILE. The usage of the raw text varies with the by type. The raw text is not used with NATIVE and INDEX (only for Designer VDBs) metadata repositories. The raw text for DDL is expected to be be a series of DDL statements that define the schema - see also [DDL Metadata]. DDL-FILE (used only with zip deployments) is similar to DDL, except that the raw text specifies an absolute path relative to the vdb root of the location of a file containing the DDL. See also [Custom Metadata Repository]. |
| h1. Translator Element |
| ... |
A VDB or virtual database definition is contained in an XML file. For .vdb archive files created in the design tool, this file is embedded in the archive and most field can be updated through tooling. The XML schema for this file can be found in the teiid-docs/schema directory.
<vdb name="${vdb-name}" version="${vdb-version}">
<!-- VDB properties -->
<property name="lib" value="..." />
<import-vdb name="..." version="..." import-data-policies="TRUE|FALSE"/>
<!-- define a model fragment for each data source -->
<model name="${model-name}">
<property name="..." value="..." />
<source name="${source-name}" translator-name="${translator-name}" connection-jndi-name="${deployed-jndi-name}">
<metadata type="${repository-type}">raw text</metadata>
</model>
<!-- create translator instances that override default properties -->
<translator name="${translator-name}" type="${translator-type}" />
<property name="..." value="..." />
</translator>
</vdb>
Attributes
Property Elements
Attributes
Attributes
Source Element
A source is a named binding of a translator and connection source to a model.
Property Elements
Metadata Element
The optional metadata element defines the metadata repository type and optional raw metadata to be consumed by the metadata repository.
*type
The metadata repository type. Built-in types include DDL, NATIVE, INDEX, and DDL-FILE. The usage of the raw text varies with the by type. The raw text is not used with NATIVE and INDEX (only for Designer VDBs) metadata repositories. The raw text for DDL is expected to be be a series of DDL statements that define the schema - see also DDL Metadata. DDL-FILE (used only with zip deployments) is similar to DDL, except that the raw text specifies an absolute path relative to the vdb root of the location of a file containing the DDL. See also Custom Metadata Repository.
Attributes
Property Elements