embulk-output-oracle 0.6.1 → 0.6.2
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 +4 -4
- data/README.md +5 -2
- data/classpath/embulk-output-jdbc-0.6.2.jar +0 -0
- data/classpath/{embulk-output-oracle-0.6.1.jar → embulk-output-oracle-0.6.2.jar} +0 -0
- data/src/main/java/org/embulk/output/OracleOutputPlugin.java +4 -7
- data/src/test/java/org/embulk/input/filesplit/PartialFile.java +1 -1
- metadata +4 -4
- data/classpath/embulk-output-jdbc-0.6.1.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b3ba3440b432def6f321576d4f1553c2e54fdd
|
4
|
+
data.tar.gz: 2d4ea596ef35da89bdb4689f07be3c535b0b1feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648669de3b8c14f9d06ff544f53a2c30506c1fda7c741927f9065d59ee60f09104160114f278a29f7c3684daa144786fd1113ff2bc8df9204730da7a3ea63d9c
|
7
|
+
data.tar.gz: 788d1616fb277ce7a6f583aa757be938c1f0f5f7405cc3050e6b24d54fb0250c093d399c5d28cb6c5e157e523c35c57f38518b1604d71e21b541fa563a51d5ac
|
data/README.md
CHANGED
@@ -5,8 +5,8 @@ Oracle output plugins for Embulk loads records to Oracle.
|
|
5
5
|
## Overview
|
6
6
|
|
7
7
|
* **Plugin type**: output
|
8
|
-
* **Load all or nothing**:
|
9
|
-
* **Resume supported**:
|
8
|
+
* **Load all or nothing**: depends on the mode. see below.
|
9
|
+
* **Resume supported**: depends on the mode. see below.
|
10
10
|
|
11
11
|
## Configuration
|
12
12
|
|
@@ -19,6 +19,9 @@ Oracle output plugins for Embulk loads records to Oracle.
|
|
19
19
|
- **url**: URL of the JDBC connection (string, optional)
|
20
20
|
- **table**: destination table name (string, required)
|
21
21
|
- **options**: extra connection properties (hash, default: {})
|
22
|
+
- **retry_limit** max retry count for database operations (integer, default: 12)
|
23
|
+
- **retry_wait** initial retry wait time in milliseconds (integer, default: 1000 (1 second))
|
24
|
+
- **max_retry_wait** upper limit of retry wait, which will be doubled at every retry (integer, default: 1800000 (30 minutes))
|
22
25
|
- **mode**: "insert", "insert_direct", "truncate_insert", or "replace". See below. (string, required)
|
23
26
|
- **insert_method**: see below
|
24
27
|
- **batch_size**: size of a single batch insert (integer, default: 16777216)
|
Binary file
|
Binary file
|
@@ -10,10 +10,7 @@ import com.google.common.collect.ImmutableSet;
|
|
10
10
|
|
11
11
|
import org.embulk.config.Config;
|
12
12
|
import org.embulk.config.ConfigDefault;
|
13
|
-
import org.embulk.output.jdbc
|
14
|
-
import org.embulk.output.jdbc.BatchInsert;
|
15
|
-
import org.embulk.output.jdbc.JdbcOutputConnector;
|
16
|
-
import org.embulk.output.jdbc.StandardBatchInsert;
|
13
|
+
import org.embulk.output.jdbc.*;
|
17
14
|
import org.embulk.output.oracle.DirectBatchInsert;
|
18
15
|
import org.embulk.output.oracle.InsertMethod;
|
19
16
|
import org.embulk.output.oracle.OracleCharset;
|
@@ -127,9 +124,9 @@ public class OracleOutputPlugin
|
|
127
124
|
}
|
128
125
|
|
129
126
|
@Override
|
130
|
-
protected BatchInsert newBatchInsert(PluginTask task, Optional<
|
127
|
+
protected BatchInsert newBatchInsert(PluginTask task, Optional<MergeConfig> mergeConfig) throws IOException, SQLException
|
131
128
|
{
|
132
|
-
if (
|
129
|
+
if (mergeConfig.isPresent()) {
|
133
130
|
throw new UnsupportedOperationException("Oracle output plugin doesn't support 'merge_direct' mode.");
|
134
131
|
}
|
135
132
|
|
@@ -154,6 +151,6 @@ public class OracleOutputPlugin
|
|
154
151
|
oracleTask.getBatchSize());
|
155
152
|
}
|
156
153
|
|
157
|
-
return new StandardBatchInsert(getConnector(task, true),
|
154
|
+
return new StandardBatchInsert(getConnector(task, true), mergeConfig);
|
158
155
|
}
|
159
156
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
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-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -58,8 +58,8 @@ files:
|
|
58
58
|
- src/test/resources/oracle/yml/test-truncate-insert-oci-method.yml
|
59
59
|
- src/test/resources/oracle/yml/test-truncate-insert.yml
|
60
60
|
- src/test/resources/oracle/yml/test-url.yml
|
61
|
-
- classpath/embulk-output-jdbc-0.6.
|
62
|
-
- classpath/embulk-output-oracle-0.6.
|
61
|
+
- classpath/embulk-output-jdbc-0.6.2.jar
|
62
|
+
- classpath/embulk-output-oracle-0.6.2.jar
|
63
63
|
homepage: https://github.com/embulk/embulk-output-jdbc
|
64
64
|
licenses:
|
65
65
|
- Apache 2.0
|
Binary file
|