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"/>
| 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:
|
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 |