embulk-output-mysql 0.8.0 → 0.8.1
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 +6 -6
- data/classpath/{embulk-output-jdbc-0.8.0.jar → embulk-output-jdbc-0.8.1.jar} +0 -0
- data/classpath/{embulk-output-mysql-0.8.0.jar → embulk-output-mysql-0.8.1.jar} +0 -0
- data/src/main/java/org/embulk/output/mysql/MySQLOutputConnection.java +16 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8fdb69fbc6eca8c8c1d88d5d2de7bd12056980e
|
4
|
+
data.tar.gz: 9194b5a8dd0a259742c38be8560aeeacebc1d916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5788b7fd596ff41a8e44f116fb4c7e9c4c6282fbd6f0db440a7f90ff0d34ba736b74e0720c7ccb9abb9e3089c8fb63abbc7834188bcd00ccbab96561113f7ce
|
7
|
+
data.tar.gz: b764cdd34e7886b1f9df8b6fdbbd1a3bdd92028771acb934b95b93b6753d5181870e30c537a901ccec1e189f3d15b62b122bbd250d6649ca6b9b6e8aa23b32cd
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ MySQL output plugin for Embulk loads records to MySQL.
|
|
10
10
|
|
11
11
|
## Configuration
|
12
12
|
|
13
|
-
- **driver_path**: path to the jar file of the MySQL JDBC driver. If not set, the bundled JDBC driver (MySQL Connector/J 5.1.
|
13
|
+
- **driver_path**: path to the jar file of the MySQL JDBC driver. If not set, the bundled JDBC driver (MySQL Connector/J 5.1.34) will be used. (string)
|
14
14
|
- **host**: database host name (string, required)
|
15
15
|
- **port**: database port number (integer, default: 3306)
|
16
16
|
- **user**: database login user name (string, required)
|
@@ -19,12 +19,12 @@ MySQL output plugin for Embulk loads records to MySQL.
|
|
19
19
|
- **database**: destination database name (string, required)
|
20
20
|
- **temp_database**: database name for intermediate tables. by default, intermediate tables will be created in the database specified by `database`. (string, optional)
|
21
21
|
- **table**: destination table name (string, required)
|
22
|
-
- **create_table_constraint
|
23
|
-
- **create_table_option
|
22
|
+
- **create_table_constraint**: table constraint added to `CREATE TABLE` statement, like `CREATE TABLE <table_name> (<column1> <type1>, <column2> <type2>, ..., <create_table_constraint>) <create_table_option>`.
|
23
|
+
- **create_table_option**: table option added to `CREATE TABLE` statement, like `CREATE TABLE <table_name> (<column1> <type1>, <column2> <type2>, ..., <create_table_constraint>) <create_table_option>`.
|
24
24
|
- **options**: extra connection properties (hash, default: {})
|
25
|
-
- **retry_limit
|
26
|
-
- **retry_wait
|
27
|
-
- **max_retry_wait
|
25
|
+
- **retry_limit**: max retry count for database operations (integer, default: 12)
|
26
|
+
- **retry_wait**: initial retry wait time in milliseconds (integer, default: 1000 (1 second))
|
27
|
+
- **max_retry_wait**: upper limit of retry wait, which will be doubled at every retry (integer, default: 1800000 (30 minutes))
|
28
28
|
- **mode**: "insert", "insert_direct", "truncate_insert", "merge", "merge_direct", or "replace". See below. (string, required)
|
29
29
|
- **merge_rule**: list of column assignments for updating existing records used in merge and merge_direct modes, for example `foo = target_table.foo + VALUES(foo)` in case of merge mode, or `foo = foo + VALUES(foo)` in case of merge_direct mode. (string array, default: always overwrites with new values)
|
30
30
|
- **batch_size**: size of a single batch insert (integer, default: 16777216)
|
Binary file
|
Binary file
|
@@ -119,4 +119,20 @@ public class MySQLOutputConnection
|
|
119
119
|
timeZoneComparison.compareTimeZone();
|
120
120
|
}
|
121
121
|
|
122
|
+
//
|
123
|
+
//
|
124
|
+
// The MySQL Connector/J 5.1.35 introduce new option `Current MySQL Connect`.
|
125
|
+
// It has incompatibility behavior current version and 5.1.35.
|
126
|
+
//
|
127
|
+
// This method announces users about this change before the update driver version.
|
128
|
+
//
|
129
|
+
@Override
|
130
|
+
public void showDriverVersion() throws SQLException {
|
131
|
+
super.showDriverVersion();
|
132
|
+
logger.warn("This plugin will update MySQL Connector/J version in the near future release.");
|
133
|
+
logger.warn("It has some incompatibility changes.");
|
134
|
+
logger.warn("For example, the 5.1.35 introduced `noTimezoneConversionForDateType` and `cacheDefaultTimezone` options.");
|
135
|
+
logger.warn("Please read a document and make sure configuration carefully before updating the plugin.");
|
136
|
+
}
|
137
|
+
|
122
138
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -19,8 +19,8 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- build.gradle
|
22
|
-
- classpath/embulk-output-jdbc-0.8.
|
23
|
-
- classpath/embulk-output-mysql-0.8.
|
22
|
+
- classpath/embulk-output-jdbc-0.8.1.jar
|
23
|
+
- classpath/embulk-output-mysql-0.8.1.jar
|
24
24
|
- default_jdbc_driver/mysql-connector-java-5.1.44.jar
|
25
25
|
- lib/embulk/output/mysql.rb
|
26
26
|
- src/main/java/org/embulk/output/MySQLOutputPlugin.java
|