embulk-output-sqlserver 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4224fe53fbf60509af371a144b3a537fe9dd29f
4
- data.tar.gz: a63ef98c4fec70ce0243f828d5e00925d68ba5c7
3
+ metadata.gz: 7a32cadfb1e96682fc51c9b1cb2f4a1640f51849
4
+ data.tar.gz: e03347e10d9122146d63909da95c3ce90ac5e654
5
5
  SHA512:
6
- metadata.gz: ad7819602b55ae85cccfa009a286dcfdb67eb020cb00b2caee4270ff913a07d13d7c40239e19d45827c8363fbe6137503df963c25b7f6c958a95e37f88912c76
7
- data.tar.gz: d50ad4286626bd500b964c4aaf9f392c477d632fdedd93e8da8ede4d111db2d17bbfa0e24f71e26445996718f958e9445a5987f102f8aa0490d7482237733b59
6
+ metadata.gz: 240af9a82538db752ff3d1f8ab7f73e1d7cd403e3565c1431c7213f14b26e3e14a5e68859adb5712a0a6f0428846860747fb467da3341cdca0e409d152833d4d
7
+ data.tar.gz: 813a3cae25ca663b0226231ca76536d38b6a467a28d8eaa9beaf1f09b4e0f0bcb495860c4ed58fa9191e36193ee9c5cb44147b6dabfa3a4a81383377c901290a
data/README.md CHANGED
@@ -5,8 +5,8 @@ SQL Server output plugins for Embulk loads records to SQL Server.
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
 
@@ -25,6 +25,9 @@ embulk "-J-Djava.library.path=C:\drivers" run input-sqlserver.yml
25
25
  - **url**: URL of the JDBC connection (string, optional)
26
26
  - **table**: destination table name (string, required)
27
27
  - **options**: extra connection properties (hash, default: {})
28
+ - **retry_limit** max retry count for database operations (integer, default: 12)
29
+ - **retry_wait** initial retry wait time in milliseconds (integer, default: 1000 (1 second))
30
+ - **max_retry_wait** upper limit of retry wait, which will be doubled at every retry (integer, default: 1800000 (30 minutes))
28
31
  - **mode**: "insert", "insert_direct", "truncate_insert" or "replace". See below. (string, required)
29
32
  - **insert_method**: see below
30
33
  - **batch_size**: size of a single batch insert (integer, default: 16777216)
@@ -9,6 +9,7 @@ import org.embulk.config.Config;
9
9
  import org.embulk.config.ConfigDefault;
10
10
  import org.embulk.output.jdbc.AbstractJdbcOutputPlugin;
11
11
  import org.embulk.output.jdbc.BatchInsert;
12
+ import org.embulk.output.jdbc.MergeConfig;
12
13
  import org.embulk.output.jdbc.StandardBatchInsert;
13
14
  import org.embulk.output.jdbc.setter.ColumnSetterFactory;
14
15
  import org.embulk.output.sqlserver.InsertMethod;
@@ -151,14 +152,14 @@ public class SQLServerOutputPlugin
151
152
  }
152
153
 
153
154
  @Override
154
- protected BatchInsert newBatchInsert(PluginTask task, Optional<List<String>> mergeKeys) throws IOException, SQLException
155
+ protected BatchInsert newBatchInsert(PluginTask task, Optional<MergeConfig> mergeConfig) throws IOException, SQLException
155
156
  {
156
157
  SQLServerPluginTask sqlServerTask = (SQLServerPluginTask) task;
157
158
  if (sqlServerTask.getInsertMethod() == InsertMethod.NATIVE) {
158
159
  return new NativeBatchInsert(sqlServerTask.getHost().get(), sqlServerTask.getPort(), sqlServerTask.getInstance(),
159
160
  sqlServerTask.getDatabase().get(), sqlServerTask.getUser(), sqlServerTask.getPassword());
160
161
  }
161
- return new StandardBatchInsert(getConnector(task, true), mergeKeys);
162
+ return new StandardBatchInsert(getConnector(task, true), mergeConfig);
162
163
  }
163
164
 
164
165
  @Override
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-sqlserver
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:
@@ -50,8 +50,8 @@ files:
50
50
  - src/test/resources/sqlserver/yml/test-replace.yml
51
51
  - src/test/resources/sqlserver/yml/test-string-timestamp.yml
52
52
  - src/test/resources/sqlserver/yml/test-truncate-insert.yml
53
- - classpath/embulk-output-jdbc-0.6.1.jar
54
- - classpath/embulk-output-sqlserver-0.6.1.jar
53
+ - classpath/embulk-output-jdbc-0.6.2.jar
54
+ - classpath/embulk-output-sqlserver-0.6.2.jar
55
55
  homepage: https://github.com/embulk/embulk-output-jdbc
56
56
  licenses:
57
57
  - Apache 2.0
Binary file