package journal.action; import java.sql.SQLException; import journal.reader.JournalEntry; import journal.reader.Options; public class SQLLoader extends SQLUpdater { int batchSize = 1000; // later to be adjusted through configuration file public SQLLoader() { } @Override public void start(Options options) throws Exception { super.start(options); sf.dropTables(); sf.setBatchSize(batchSize); } @Override public void commitMarker(JournalEntry entry) throws Exception { try { sf.commitMarker(entry); } catch (SQLException ex) { handleSQLException(ex); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 7529 | Sven Erik Knop |
Deleted the whole JournalReader. It has actually moved to //guest/sven_erik_knop/java/JournalReader/. |
||
#1 | 7375 | Sven Erik Knop |
Major update of the JournalReader. Complete rewrite of the command line parsing Change in the options parsing within the journal reader New SQLLoader action. Currently only against MySQL (needs MySQL JDBC driver) with fixed database and user name. This will be replaced by a config file at some stage. |