embulk-input-jdbc 0.8.6 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 617c1a978aee468e9f849b9defa0ef3e44d53de5
4
- data.tar.gz: 28a1d38053028001e4c2a80f2de513c05d2317c0
3
+ metadata.gz: 6920747ba33d6ba01cf8424dacca5325a416328e
4
+ data.tar.gz: 435f9329c7e3448654dcf47b73bd6980655f85f6
5
5
  SHA512:
6
- metadata.gz: 0e891c2884ed461185c87f2634b56d4fa12773c9c271fa53e10d3b0fbb5397c56e321a4111c68fdcec0b30d870f5d58b48afbb18a9632140115ea41fedd39adc
7
- data.tar.gz: 3266593494c05a45ebb1a38ec79286f466d9457e23a8cfa5eb3b3ef86e0dead5bf5aa1773bc90767e3b2126a504a4d92e2844362da689bdba8e8439ed8359626
6
+ metadata.gz: eb3c7601e70d7851fabe93fd792d6996601bc528962f34d220a23501f36b33d193bf2602caafd03d553628988376f752b7d770ddee449ca4cbb4a38bd6340d31
7
+ data.tar.gz: ea285e9c3e35fe544a2007b54b5f2a31f153c00673877a9b899053c217b01b8d8a757bc2b94d99da678aeda631bcca49cb6a8b8d35d15688033c566304645538
@@ -74,6 +74,7 @@ public class JdbcInputPlugin
74
74
  }
75
75
 
76
76
  props.putAll(t.getOptions());
77
+ logConnectionProperties(t.getUrl(), props);
77
78
 
78
79
  Driver driver;
79
80
  try {
@@ -8,6 +8,7 @@ import java.net.URL;
8
8
  import java.nio.file.Path;
9
9
  import java.util.List;
10
10
  import java.util.Map;
11
+ import java.util.Properties;
11
12
  import java.nio.file.Paths;
12
13
  import java.sql.ResultSet;
13
14
  import java.sql.SQLException;
@@ -658,4 +659,16 @@ public abstract class AbstractJdbcInputPlugin
658
659
  }
659
660
  }
660
661
 
662
+ protected void logConnectionProperties(String url, Properties props)
663
+ {
664
+ Properties maskedProps = new Properties();
665
+ for(String key : props.stringPropertyNames()) {
666
+ if (key.equals("password")) {
667
+ maskedProps.setProperty(key, "***");
668
+ } else {
669
+ maskedProps.setProperty(key, props.getProperty(key));
670
+ }
671
+ }
672
+ logger.info("Connecting to {} options {}", url, maskedProps);
673
+ }
661
674
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-24 00:00:00.000000000 Z
11
+ date: 2017-12-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Selects records from a table.
14
14
  email:
@@ -19,7 +19,7 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - README.md
21
21
  - build.gradle
22
- - classpath/embulk-input-jdbc-0.8.6.jar
22
+ - classpath/embulk-input-jdbc-0.9.0.jar
23
23
  - lib/embulk/input/jdbc.rb
24
24
  - src/main/java/org/embulk/input/JdbcInputPlugin.java
25
25
  - src/main/java/org/embulk/input/jdbc/AbstractJdbcInputPlugin.java