[ http://issues.apache.org/jira/browse/DERBY-1609?page=all ]
Rick Hillegas updated DERBY-1609:
---------------------------------
Urgency: Normal
> Add a runScript method to ij that takes a script as an InputStream and
> returns the output to a stream.
> ------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1609
> URL: http://issues.apache.org/jira/browse/DERBY-1609
> Project: Derby
> Issue Type: Improvement
> Components: Tools
> Reporter: Daniel John Debrunner
> Assigned To: Daniel John Debrunner
> Priority: Minor
> Fix For: 10.2.0.0
>
>
> Useful for running ij SQL scripts as part of JUnit tests and for applications
> to use instead of the awkward way to use ij from a program today.
> /**
> * Run a SQL script from an input stream and write
> * the resulting output to the provided OutputStream.
> *
> * @param conn Connection to be used as the script's default connection.
> * @param sqlIn InputStream for the script.
> * @param inputEncoding Encoding of the script.
> * @param sqlOut OutputStream for the script's output
> * @param outputEncoding Output encoding to use.
> * @return Number of SQLExceptions thrown during the execution, -1 if not
> known.
> * @throws UnsupportedEncodingException
> */
> public static int runScript(
> Connection conn,
> InputStream sqlIn,
> String inputEncoding,
> PrintStream sqlOut,
> String outputEncoding)
> throws UnsupportedEncodingException
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira