embulk-output-mysql 0.4.2 → 0.4.3

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: 5b8da74a6c3c7cc8fcfa8a2192e0557be139d107
4
- data.tar.gz: b22ef5085ab4107bccc6b73b351f193f9b62030d
3
+ metadata.gz: f9ec64fe2c6438f08a7656e8d0a5d016f0d75bec
4
+ data.tar.gz: 0ac8b70d401900e57878ea86b825cdef1d5a971c
5
5
  SHA512:
6
- metadata.gz: 4ac5b1cc0c7b0c60c71f84702d1156ddf8c5965823fdec8e8a78e13c250a7d7231f3bab8e1fce1ab756903af7309116e2ad4ed774ade7f5da238f1734ab16566
7
- data.tar.gz: 22bb204200401263e0f1e5698a7ffbb69e0b6d94f9123538e15a6dab129a9c749f67baa3b747681324b54df3f7acafd61ccba99698e12ba1b1132407a768b1ee
6
+ metadata.gz: f4d48f70cd0d7aecd9cb14f806463c494af092c9a287b26b72a97c183e086eb6c7e4ab0833d5df1aaefb5b331306214a3b6eeef5ee21018945b61e2be64e968c
7
+ data.tar.gz: 7a6abe1baa70eb13a3334a38a9d16f7892125c856e84fe69903c70052b6dff1531754c390762e24c05062116002a7cc6676a667d875620cb8a6fb627a8bc0b2a
data/README.md CHANGED
@@ -29,29 +29,29 @@ MySQL output plugins for Embulk loads records to MySQL.
29
29
  ### Modes
30
30
 
31
31
  * **insert**:
32
- * Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ...` query.
32
+ * Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ...` query. If the target table doesn't exist, it is created automatically.
33
33
  * Transactional: Yes. This mode successfully writes all rows, or fails with writing zero rows.
34
34
  * Resumable: Yes.
35
35
  * **insert_direct**:
36
- * Behavior: This mode inserts rows to the target table directly.
36
+ * Behavior: This mode inserts rows to the target table directly. If the target table doesn't exist, it is created automatically.
37
37
  * Transactional: No. If fails, the target table could have some rows inserted.
38
38
  * Resumable: No.
39
39
  * **truncate_insert**:
40
40
  * Behavior: Same with `insert` mode excepting that it truncates the target table right before the last `INSERT ...` query.
41
41
  * Transactional: Yes.
42
42
  * Resumable: Yes.
43
+ * **replace**:
44
+ * Behavior: This mode writes rows to an intermediate table first. If all those tasks run correctly, drops the target table and alters the name of the intermediate table into the target table name.
45
+ * Transactional: No. If fails, the target table could be dropped (because MySQL can't rollback DDL).
46
+ * Resumable: No.
43
47
  * **merge**:
44
- * Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ... ON DUPLICATE KEY UPDATE ...` query.
48
+ * Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ... ON DUPLICATE KEY UPDATE ...` query. If the target table doesn't exist, it is created automatically.
45
49
  * Transactional: Yes.
46
50
  * Resumable: Yes.
47
51
  * **merge_direct**:
48
- * Behavior: This mode inserts rows to the target table directory using `INSERT INTO ... ON DUPLICATE KEY UPDATE ...` query.
52
+ * Behavior: This mode inserts rows to the target table directly using `INSERT INTO ... ON DUPLICATE KEY UPDATE ...` query. If the target table doesn't exist, it is created automatically.
49
53
  * Transactional: No.
50
54
  * Resumable: No.
51
- * **replace**:
52
- * Behavior: Same with `insert` mode excepting that it truncates the target table right before the last `INSERT ...` query.
53
- * Transactional: Yes.
54
- * Resumable: No.
55
55
 
56
56
  ### Example
57
57
 
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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-08 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Inserts or updates records to a table.
14
14
  email:
@@ -24,8 +24,8 @@ files:
24
24
  - src/main/java/org/embulk/output/mysql/MySQLBatchInsert.java
25
25
  - src/main/java/org/embulk/output/mysql/MySQLOutputConnection.java
26
26
  - src/main/java/org/embulk/output/mysql/MySQLOutputConnector.java
27
- - classpath/embulk-output-jdbc-0.4.2.jar
28
- - classpath/embulk-output-mysql-0.4.2.jar
27
+ - classpath/embulk-output-jdbc-0.4.3.jar
28
+ - classpath/embulk-output-mysql-0.4.3.jar
29
29
  - classpath/mysql-connector-java-5.1.34.jar
30
30
  homepage: https://github.com/embulk/embulk-output-jdbc
31
31
  licenses: