From f21698b449e5a0157f5aec856c65fa9355a258d3 Mon Sep 17 00:00:00 2001 From: Derry Hamilton Date: Fri, 10 May 2019 14:38:15 +0100 Subject: [PATCH] Add example config files. --- src/test/resources/TEST_config_live.xml | 52 +++++++++++++++++++ src/test/resources/copying_defaults_log4j.xml | 13 +++++ 2 files changed, 65 insertions(+) create mode 100644 src/test/resources/TEST_config_live.xml create mode 100644 src/test/resources/copying_defaults_log4j.xml diff --git a/src/test/resources/TEST_config_live.xml b/src/test/resources/TEST_config_live.xml new file mode 100644 index 0000000..90a65f5 --- /dev/null +++ b/src/test/resources/TEST_config_live.xml @@ -0,0 +1,52 @@ + + + 360000 + 10000 + 1000 + + jdbc:postgresql://localhost:5432/test + test + test + 600000 + + + jdbc:postgresql://localhost:5432/test + test + test + + + + test + select coalesce(-1,max(id),-1) as key from dest + + + insert into public.dest( + id, + test_int, + test_text, + test_ts + )values( + ?::bigint, + ?::integer, + ?::text, + ?::timestamp with time zone + )ON CONFLICT(id) DO UPDATE + set + test_int = EXCLUDED.test_int, + test_text = EXCLUDED.test_text, + test_ts = EXCLUDED.test_ts + WHERE + dest.test_int = EXCLUDED.test_int + OR dest.test_text = EXCLUDED.test_text + OR dest.test_ts = EXCLUDED.test_ts + + + + diff --git a/src/test/resources/copying_defaults_log4j.xml b/src/test/resources/copying_defaults_log4j.xml new file mode 100644 index 0000000..adeb7a4 --- /dev/null +++ b/src/test/resources/copying_defaults_log4j.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + +