db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <derby-...@db.apache.org>
Subject [jira] Resolved: (DERBY-1609) Add a runScript method to ij that takes a script as an InputStream and returns the output to a stream.
Date Mon, 28 Aug 2006 20:50:24 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1609?page=all ]

Daniel John Debrunner resolved DERBY-1609.
------------------------------------------

    Fix Version/s: 10.3.0.0
       Resolution: Fixed

Fixed & complete in 10.2 and trunk - thanks for the merges Rick,

> 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.1.0, 10.3.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

        

Mime
View raw message