scripts/sql-dk.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 28 Dec 2013 12:19:39 +0100
branchv_0
changeset 88 102ba0fcb07f
parent 85 b9b4e95240e1
child 102 ff47349e24bf
permissions -rwxr-xr-x
TabularPrefetchingFormatter: prefetch whole result set to avoid value overflow the cell
franta-hg@85
     1
#!/bin/bash
franta-hg@85
     2
franta-hg@85
     3
# TODO: systemwide JAR location
franta-hg@85
     4
JAR=~/projekty/SQL-DK/sql-dk/java/sql-dk/dist/sql-dk.jar;
franta-hg@85
     5
franta-hg@85
     6
MAIN_CLASS="info.globalcode.sql.dk.CLIStarter";
franta-hg@85
     7
CLASSPATH="$JAR:/usr/share/java/postgresql-jdbc4.jar";
franta-hg@85
     8
franta-hg@85
     9
LOGGER="-Djava.util.logging.config.class=info.globalcode.sql.dk.logging.LoggerInitializer";
franta-hg@85
    10
# LOG_LEVEL="FINE"; # SEVERE, WARNING, INFO, FINE, FINER, FINEST, ALL
franta-hg@85
    11
[ -n "$LOG_LEVEL" ] && LOGGER_LEVEL="-Dinfo.globalcode.sql.dk.logging.LoggerInitializer.level=$LOG_LEVEL";
franta-hg@85
    12
franta-hg@85
    13
java $LOGGER $LOGGER_LEVEL -cp $CLASSPATH $MAIN_CLASS "$@"