embulk-output-oracle 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93819131e319fc21dfc222a8cc210314c6090b11
4
- data.tar.gz: 95c2ce5f6e6c6b76ece685fdfa7db3ab72462e10
3
+ metadata.gz: f4b3ba3440b432def6f321576d4f1553c2e54fdd
4
+ data.tar.gz: 2d4ea596ef35da89bdb4689f07be3c535b0b1feb
5
5
  SHA512:
6
- metadata.gz: 7103236d7c51629469c5940c4b39a197c48ff57f46f63ca0b8a21e2dcdfe725c4bb3efb20706bba400af470ef0fc1670c5d4eaac0354aaa49efc08262b260bc0
7
- data.tar.gz: 152fae8051856d856bc542e544dcb916c1307d761454998f7a26d1b31df88c1e922c02a86a3478202a37ecc9c5758476336a90af22f44fbdba3a4d3a01e04b48
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**: depnds on the mode. see below.
9
- * **Resume supported**: depnds on the mode. see below.
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)
@@ -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.AbstractJdbcOutputPlugin;
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<List<String>> mergeKeys) throws IOException, SQLException
127
+ protected BatchInsert newBatchInsert(PluginTask task, Optional<MergeConfig> mergeConfig) throws IOException, SQLException
131
128
  {
132
- if (mergeKeys.isPresent()) {
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), mergeKeys);
154
+ return new StandardBatchInsert(getConnector(task, true), mergeConfig);
158
155
  }
159
156
  }
@@ -47,4 +47,4 @@ public class PartialFile
47
47
  {
48
48
  this.end = end;
49
49
  }
50
- }
50
+ }
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.1
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-06-23 00:00:00.000000000 Z
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.1.jar
62
- - classpath/embulk-output-oracle-0.6.1.jar
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