<fuego : database>

Description

This task allows the management of a database schema.

Using an schema definition in xml format, this task can create, drop or clean a database schema.

This task connects to the database using configuration of type SQL that must previously exist.

Example:

 <fuego:database action="create"
          connectorName="oracleConnector"
                   file="/tmp/configurations.xml"
           userProperty="user"
       passwordProperty="password"/>

Parameters

Attribute Description Type Required?
haltonerror Stop the Ant build process if an error occurs. boolean No Defaults to true.
userproperty Sets the configuration's property key for the user name. String Yes
file Sets the location of an xml file containing the configuration's definitions. File Yes
passwordproperty Sets the configuration's property key for the password. String Yes
verbose boolean ?
action Defines the operation to execute:
  • create: create a new database schema.
  • drop: drop an existing database schema.
  • clean: create a new database schema if it does not exist, or remove all the existing rows in all tables otherwise.
String ["create", "drop", "clean"] Yes
schemafile Sets the file location of the xml schema definition. File Yes
user Sets the user to connect to the database. String No Defaults to null
connectorname Defines the name of the SQL database configuration. String Yes
fuegobasedir File ?
loaderref Reference ?
password Sets the user's password to connect to the database. String No Defaults to null

Parameters accepted as nested elements