db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1609) Add a runScript method to ij that takes a script as an InputStream and returns the output to a stream.
Date Fri, 25 Aug 2006 17:55:23 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1609?page=comments#action_12430556 ] 
            
Rick Hillegas commented on DERBY-1609:
--------------------------------------

Original patch DERBY-1609 (433331, 433274, 433273) ported to 10.2 branch at subversion revision
436875.

> 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
>
>
> 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