public class ij extends Object
To run from the command line enter the following:
java [options] com.pivotal.gemfirexd.internal.tools.ij [arguments]
ij is can also be used with any database server that supports a JDBC driver.
| Modifier and Type | Method and Description |
|---|---|
static String |
getArg(String param,
String[] args) |
static void |
getPropertyArg(String[] args) |
static void |
main(String[] args) |
static int |
runScript(Connection conn,
InputStream sqlIn,
String inputEncoding,
OutputStream sqlOut,
String outputEncoding)
Run a SQL script from an InputStream and write
the resulting output to the provided PrintStream.
|
static Connection |
startJBMS() |
public static void main(String[] args) throws IOException
IOException - thrown if cannot access input or output files.public static int runScript(Connection conn, InputStream sqlIn, String inputEncoding, OutputStream sqlOut, String outputEncoding) throws UnsupportedEncodingException
conn - Connection to be used as the script's default connection.sqlIn - InputStream for the script.inputEncoding - Encoding of the script.sqlOut - OutputStream for the script's outputoutputEncoding - Output encoding to use.UnsupportedEncodingExceptionpublic static void getPropertyArg(String[] args) throws IOException
IOExceptionpublic static Connection startJBMS() throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.