embulk-output-jdbc 0.6.4 → 0.6.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edd24bb5ee6ad68663c74eaa12c99d2f07634d56
|
4
|
+
data.tar.gz: bad5af8ddc392000053fad1145e855ef9b53327e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b824193cebbd1c6132e4e98e6b08ca2d03bdc82e9dbbb62b12cec0540a471366a42e99f8936479423de51070b32fd9724f9968860e7e19e27c30968fa1075875
|
7
|
+
data.tar.gz: 0512de6ab6d2091d74f37039ce9b2b6e0a73dd770ebb783891b6837b39e17f643fe1b230852ee33465ebeb0e09e276f909c0f262c340bc5c24d37aa4c9e19925
|
Binary file
|
@@ -14,10 +14,15 @@ import java.util.List;
|
|
14
14
|
import java.util.regex.Matcher;
|
15
15
|
import java.util.regex.Pattern;
|
16
16
|
|
17
|
+
import org.embulk.output.tester.EmbulkPluginTester;
|
18
|
+
|
17
19
|
import com.google.common.io.Files;
|
18
20
|
|
19
21
|
public abstract class AbstractJdbcOutputPluginTest
|
20
22
|
{
|
23
|
+
protected static boolean enabled;
|
24
|
+
protected static EmbulkPluginTester tester = new EmbulkPluginTester();
|
25
|
+
|
21
26
|
protected void dropTable(String table) throws SQLException
|
22
27
|
{
|
23
28
|
String sql = String.format("DROP TABLE %s", table);
|
@@ -65,6 +70,10 @@ public abstract class AbstractJdbcOutputPluginTest
|
|
65
70
|
|
66
71
|
protected void executeSQL(String sql, boolean ignoreError) throws SQLException
|
67
72
|
{
|
73
|
+
if (!enabled) {
|
74
|
+
return;
|
75
|
+
}
|
76
|
+
|
68
77
|
try (Connection connection = connect()) {
|
69
78
|
try {
|
70
79
|
connection.setAutoCommit(true);
|
@@ -82,6 +91,15 @@ public abstract class AbstractJdbcOutputPluginTest
|
|
82
91
|
}
|
83
92
|
}
|
84
93
|
|
94
|
+
protected void test(String ymlPath) throws Exception
|
95
|
+
{
|
96
|
+
if (!enabled) {
|
97
|
+
return;
|
98
|
+
}
|
99
|
+
|
100
|
+
tester.run(convertYml(ymlPath));
|
101
|
+
}
|
102
|
+
|
85
103
|
protected String convertYml(String ymlName) throws Exception
|
86
104
|
{
|
87
105
|
StringBuilder builder = new StringBuilder();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-jdbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -18,7 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- build.gradle
|
21
|
-
- classpath/embulk-output-jdbc-0.6.
|
21
|
+
- classpath/embulk-output-jdbc-0.6.5.jar
|
22
22
|
- lib/embulk/output/jdbc.rb
|
23
23
|
- src/main/java/org/embulk/output/JdbcOutputPlugin.java
|
24
24
|
- src/main/java/org/embulk/output/jdbc/AbstractJdbcOutputPlugin.java
|