diff --git a/symmetric-assemble/src/asciidoc/appendix/dbexport.ad b/symmetric-assemble/src/asciidoc/appendix/dbexport.ad index aeaed02516..fd95cb54fc 100644 --- a/symmetric-assemble/src/asciidoc/appendix/dbexport.ad +++ b/symmetric-assemble/src/asciidoc/appendix/dbexport.ad @@ -48,6 +48,7 @@ They are as follows: - *--schema * : Look for tables in schema. - *--sql * : Run custom SQL to select data. - *--use-jdbc-timestamp-format * : When true db export uses {ts 'yyyy-MM-dd h:mm:ss.SSS'} format for exported dates and times. Defaults to true. +- *--use-sym-db* : Use the database that contains SymmetricDS's tables. This only applies for nodes that are load only, extract only, or log based. - *--use-variable-dates* : Substitute dates as ${curdate+-millis}. - *-v, --verbose* : Use verbose format for console output. - *--where * : Specify the SQL for the "where" clause. diff --git a/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java b/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java index 1e72f863a8..2008ab3b54 100644 --- a/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java +++ b/symmetric-client/src/main/java/org/jumpmind/symmetric/DbExportCommand.java @@ -51,7 +51,7 @@ public class DbExportCommand extends AbstractCommandLauncher { private static final String OPTION_DIR = "dir"; private static final String OPTION_WHERE = "where"; private static final String OPTION_EXCLUDE_COLUMNS = "exclude-columns"; - private static final String OPTION_SYMMETRIC_PLATFORM = "symmetric"; + private static final String OPTION_USE_SYM_DB = "use-sym-db"; public DbExportCommand() { super("dbexport", "[tablename...]", "DbExport.Option."); @@ -98,12 +98,12 @@ protected void buildOptions(Options options) { addOption(options, null, OPTION_WHERE, true); addOption(options, "i", OPTION_COMMENTS, false); addOption(options, null, OPTION_EXCLUDE_COLUMNS, true); - addOption(options, null, OPTION_SYMMETRIC_PLATFORM, false); + addOption(options, null, OPTION_USE_SYM_DB, false); } @Override protected boolean executeWithOptions(CommandLine line) throws Exception { - DbExport dbExport = new DbExport(getDatabasePlatform(false, line.hasOption(OPTION_SYMMETRIC_PLATFORM))); + DbExport dbExport = new DbExport(getDatabasePlatform(false, line.hasOption(OPTION_USE_SYM_DB))); if (line.hasOption(OPTION_DIR)) { String dir = line.getOptionValue(OPTION_DIR); if (new File(dir).exists()) { diff --git a/symmetric-client/src/main/resources/symmetric-messages.properties b/symmetric-client/src/main/resources/symmetric-messages.properties index 09cac14ce5..2aec7a6142 100644 --- a/symmetric-client/src/main/resources/symmetric-messages.properties +++ b/symmetric-client/src/main/resources/symmetric-messages.properties @@ -169,6 +169,7 @@ DbExport.Option.sql=Run custom SQL to select data. DbExport.Option.where=Specify the SQL for the "where" clause DbExport.Option.dir=Indicate a directory to use for the export of files. If the dir is specified, then a file per table will be written to the directory. DbExport.Option.exclude-columns=A comma separated list of columns to exclude from the exported tables. +DbExport.Option.use-sym-db=Use the database that contains SymmetricDS's tables. This only applies for nodes that are load only, extract only, or log based. DbImport.Option.format=Input format: SQL, CSV, XML, or SYM_XML. DbImport.Option.catalog=Look for tables in catalog.