Chapter 6. Customise generation

Table of Contents

Adding new database engine
Customise existing templates

All customisation is made on the XSL templates level. These templates are save in the "xsl" subdirectory of the PSQL installation.

Adding new database engine

In the "xsl" direcotry there are subdirectories with database engines names. Each such a directory contains 3 files:

  • create.xsl - XSL template for create SQL script.
  • alter.xsl - XSL template for alter SQL script.
  • dbtypes.xsl - mapping logical model types onto physical ones.
PSQL loads the direcotry structure and runs create.xsl and alter.xsl.

To add a new database just create a new subdirectory of the "xsl" directory and put the create.xsl and alter.xsl into it.