Skip to content

Transformations ​

Transformations describe how to adapt the data and objects of a source to Firebird: renaming, conversion, cleaning, calculations and functions.

Transformation: source table, rules, test, target table
A transformation starts from a source table, applies testable rules, then produces the target table.

Three tools ​

ToolPurpose
Per-table transformationsrules applied to a specific table
Transformation wizardguided construction of an expression
Transformation librarycatalog of reusable templates

Per-table transformations ​

A transformation can contain:

  • Before rules;
  • a Body;
  • After rules.

Each rule can:

  • rename a column;
  • change a type;
  • apply a SQL function;
  • replace a value;
  • ignore a column;
  • call a UDR routine.

Test ​

The test runs on a sample of real data:

  • number of rows tested;
  • duration;
  • errors;
  • values produced.

This makes it possible to detect impossible conversions before the import.

Transformation wizard ​

The wizard helps you:

  • choose a function;
  • compose an expression;
  • check the arguments;
  • test the result;
  • insert the rule into the table.

Transformation library ​

The library contains built-in and custom templates:

  • text cleaning;
  • date normalization;
  • type conversion;
  • extracting parts of a string;
  • HTML processing through UDR.

You can:

  • preview;
  • duplicate;
  • adapt;
  • test;
  • reset the built-in templates.

UDR and HTML ​

Some processing relies on UDR routines, in particular HTML cleaning. Declaring and testing them is done in Tools > UDR modules.

WARNING

A transformation that changes a key column can break dependencies. Test keys and constraints before applying.