classes/phing/tasks/ext/creole/CreoleSQLExecTask.php
Executes a series of SQL statements on a database using Creole.
Statements can
either be read in from a text file using the src attribute or from
between the enclosing SQL tags.
Multiple statements can be provided, separated by semicolons (or the
defined delimiter). Individual lines within the statements can be
commented using either --, // or REM at the start of the line.
The autocommit attribute specifies whether auto-commit should be
turned on or off whilst executing the statements. If auto-commit is turned
on each statement will be executed and committed. If it is turned off the
statements will all be executed as one transaction.
The onerror attribute specifies how to proceed when an error occurs
during the execution of one of the statements.
The possible values are: continue execution, only show the error;
stop execution and commit transaction;
and abort execution and transaction and fail task.
- Extends from
- \CreoleTask
- author
- Hans Lellelid (Phing)
- author
- Jeff Martin (Ant)
- author
- Michael McCallum (Ant)
- author
- Tim Stephenson (Ant)
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext.creole
- version
- $Revision: 1084 $
Constants
Properties



$append= 'false'
Append to an existing file or overwrite it?
Default valuefalseDetails
- Type



$delimiterType= 'normal'
The delimiter type indicating whether the delimiter will
only be recognized on a line by itself
Default valuenormalDetails
- Type



$encoding= 'null'
Encoding to use when reading SQL statements from a file
Default valuenullDetails
- Type



$filterChains= 'array'
all filterchains objects assigned to this task
Default valuearrayDetails
- Type



$onError= 'abort'
Action to perform if an error is found
Default valueabortDetails
- Type



$transactions= 'array'
SQL transactions to perform
Default valuearrayDetails
- Type
Methods
"Inner" class that contains the definition of a new transaction element.
Transactions allow several files or blocks of statements
to be executed using the same JDBC connection and commit
operation in between.
- package
- phing.tasks.ext.creole
Properties
Methods



runTransaction(
$out
=
null
)
:
Parameters
| Name |
Type |
Description |
| $out |
|
|
Details
- throws
- SQLException