Templates provide the ability to customize automatically generated code within RED. This feature is most suited to users that would like to customize automatically generated code or would like to expand RED to support non-native database platforms.

Creating templates is an advanced function that requires intimate knowledge of RED operations and metadata structure. WhereScape recommends that you contact our consulting team to assist with this feature. However, should you wish to use this feature independently, example templates and up-to-date reference information is available on our website:

https://www.wherescape.com/support/software-downloads-documentation/wherescape-red/templates/

Some templates may be included in your RED installation, depending on your license.

Each template is assigned a type and a target database, these properties are used to assist with filtering when associating table operations to templates. RED supports templates for the following operations:

OperationDatabaseTemplate Type
Alter Table DDLCustom (on SQL Server, Oracle and Teradata)DDL
Create Table DDLAll database typesDDL
Create Index DDLCustom (on SQL Server and Oracle)DDL
Drop Index DDLCustom (on SQL Server and Oracle)DDL
Export ScriptAll database typesWindows Script
PowerShell Script
Unix Script
OLAP/XMLA Script
Load ScriptAll database typesWindows Script
PowerShell Script
Unix Script
OLAP/XMLA Script
Update Procedure    




Custom (on SQL Server, Oracle and Teradata)Block
PowerShell Script
HiveBlock
SQL Server, Teradata, Oracle and PDWBlock
Procedure
Custom Update ProcedureSQL Server, Teradata and OracleProcedure
Update ScriptCustom (on SQL Server, Oracle and Teradata)PowerShell Script
Post Load ProcedureCustom (on SQL Server, Oracle and Teradata)Block
HiveBlock
SQL Server, Teradata, Oracle and PDWBlock
SQL Server, Teradata and OracleProcedure
Post Load ScriptCustom (on SQL Server, Oracle and Teradata)PowerShell Script

Note

Utility type templates contain common code for use by other templates.

Templates are written in the Pebble template language—refer to Pebble Templates and Pebble Syntax sections for details.

You can also define default templates to use for the update routines of table objects in RED by Connection type—refer to Connection Routine Templates for details.

Tip

Detailed logs can be produced during template evaluation by typing FULLLOG in the Notes of the relevant connection.


  • No labels