Full name:
org.codehaus.mojo:sql-maven-plugin:1.2:execute
Description:
Attributes:
| Name | Type | Since | Description |
|---|---|---|---|
| driver | String |
1.0 |
Database driver classname. |
| url | String |
1.0-beta-1 |
Database URL. |
| Name | Type | Since | Description |
|---|---|---|---|
| autocommit | boolean |
1.0 |
Set to true to execute none-transactional SQL. Default value is: false. |
| delimiter | String |
1.0 |
Set the delimiter that separates SQL statements. Default value is: ;. |
| delimiterType | String |
1.2 |
The delimiter type takes two values - "normal" and "row". Normal means that any occurrence of the delimiter terminate the SQL command whereas with row, only a line containing just the delimiter is recognized as the end of the command. For example, set this to "go" and delimiterType to "row" for Sybase ASE or MS SQL Server. Default value is:normal. |
| driverProperties | String |
1.0 |
Additional key=value pairs separated by comma to be passed into JDBC driver. |
| enableBlockMode | boolean |
1.1 |
Deprecated. used delimiterType instead. |
| encoding | String |
1.1 |
Encoding to use when reading SQL statements from a file. |
| fileset | Fileset |
1.0 |
File(s) containing SQL statements to load. |
| keepFormat | boolean |
1.1 |
Keep the format of an SQL block. Default value is: false. |
| onError | String |
1.0 |
Action to perform if an error is found. Possible values are
abort and continue. Default value is: abort. |
| orderFile | String |
1.1 |
Set the order in which the SQL files will be executed. Possible
values are ascending and descending. Any
other value means that no sorting will be performed. |
| password | String |
1.0 |
Database password. If not given, it will be looked up through
settings.xml's server with ${settingsKey}
as key. |
| settingsKey | String |
1.0 |
Server's id in settings.xml to look up
username and password. Defaults to ${url} if not
given. |
| skip | boolean |
1.0 |
When true, skip the execution. Default value is: false. |
| skipOnConnectionError | boolean |
1.1 |
Skip execution when there is an error obtaining a connection. This
is a special case to support databases, such as embedded Derby,
that can shutdown the database via the URL (i.e.
shutdown=true). Default value is: false. |
| sqlCommand | String |
1.0 |
SQL input commands separated by ${delimiter}. |
| srcFiles | File[] |
1.0 |
List of files containing SQL statements to load. |
| username | String |
1.0 |
Database username. If not given, it will be looked up through
settings.xml's server with ${settingsKey}
as key. |
true to execute none-transactional SQL.boolean1.0No${autocommit}falsejava.lang.String1.0No${delimiter};The delimiter type takes two values - "normal" and "row". Normal means that any occurrence of the delimiter terminate the SQL command whereas with row, only a line containing just the delimiter is recognized as the end of the command.
For example, set this to "go" and delimiterType to "row" for Sybase ASE or MS SQL Server.
java.lang.String1.2No${delimiterType}normaljava.lang.String1.0Yes${driver}java.lang.String1.0No${driverProperties}true, the whole SQL content in
sqlCommand, srcFiles and
fileset are sent directly to JDBC in one SQL
statement. This option is for executing database stored
procedures/functions.boolean1.1No${enableBlockMode}java.lang.String1.1No${encoding}org.codehaus.mojo.sql.Fileset1.0Noboolean1.1No${keepFormat}falseabort and continue.java.lang.String1.0No${onError}abortascending and descending. Any
other value means that no sorting will be performed.java.lang.String1.1No${orderFile}settings.xml's server with ${settingsKey}
as key.java.lang.String1.0No${password}id in settings.xml to look up
username and password. Defaults to ${url} if not
given.java.lang.String1.0No${settingsKey}skip:
true, skip the execution.boolean1.0Nofalseshutdown=true).boolean1.1No${skipOnConnectionError}false${delimiter}.java.lang.String1.0No${sqlCommand}java.io.File[]1.0Nourl:
java.lang.String1.0-beta-1Yes${url}settings.xml's server with ${settingsKey}
as key.java.lang.String1.0No${username}