embulk-output-postgresql 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: e36dbd816c064b46c20cb2a080accbd7339621fe
4
- data.tar.gz: c47c5e2470842a87f8f926d4d4ca36bba94ae935
3
+ metadata.gz: 0f5e15cedb309812a7c5284ea4fd75ce87dacf8a
4
+ data.tar.gz: 3b71c707f8dbe33319f2f83b487ac56d7458f3ee
5
5
  SHA512:
6
- metadata.gz: 8e461480ceb52888c6b4f971a9617c2b1e8a52fc232db00a3179f7098635c31b16aeb0e17521ce33045d92db81e9fac12de3936fed22f3323714f8474a05c3d0
7
- data.tar.gz: 56b87f0d83f5af72f8759f1d578b9d7da0c30c083b89c1f8e9c456a6bb894182ca29a195bfe7f35f4717f96e826f1284f5a39d597fdfde5c4d45b1796bad1b98
6
+ metadata.gz: b7ddceeb3a040904da78e53246e3022a7d6adb83d5cde02a426c5380cd68b5c4607a88e0544a61262c1f2fbf4ee383d0249750ca29cb15260482f864f7227ecc
7
+ data.tar.gz: 69b4724ec1e424c6fe32338c7d745780dea5b2f21dadd94a6857e63f16b3f406153f4397036f1ddedea9e08060e5c70a3ad5e9b5fe043b1627840143db877a92
data/README.md CHANGED
@@ -31,25 +31,25 @@ PostgreSQL output plugins for Embulk loads records to PostgreSQL.
31
31
  ### Modes
32
32
 
33
33
  * **insert**:
34
- * 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.
34
+ * 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.
35
35
  * Transactional: Yes. This mode successfully writes all rows, or fails with writing zero rows.
36
36
  * Resumable: Yes.
37
37
  * **insert_direct**:
38
- * Behavior: This mode inserts rows to the target table directly.
38
+ * Behavior: This mode inserts rows to the target table directly. If the target table doesn't exist, it is created automatically.
39
39
  * Transactional: No. If fails, the target table could have some rows inserted.
40
40
  * Resumable: No.
41
41
  * **truncate_insert**:
42
42
  * Behavior: Same with `insert` mode excepting that it truncates the target table right before the last `INSERT ...` query.
43
43
  * Transactional: Yes.
44
44
  * Resumable: Yes.
45
- * **merge**:
46
- * Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `with updated AS (UPDATE .... RETURNING ...) INSERT INTO ....` query.
47
- * Transactional: Yes.
48
- * Resumable: Yes.
49
45
  * **replace**:
50
- * Behavior: Same with `insert` mode excepting that it truncates the target table right before the last `INSERT ...` query.
46
+ * 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.
51
47
  * Transactional: Yes.
52
48
  * Resumable: No.
49
+ * **merge**:
50
+ * Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `with updated AS (UPDATE .... RETURNING ...) INSERT INTO ....` query. If the target table doesn't exist, it is created automatically.
51
+ * Transactional: Yes.
52
+ * Resumable: Yes.
53
53
 
54
54
  ### Example
55
55
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-postgresql
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:
@@ -25,8 +25,8 @@ files:
25
25
  - src/main/java/org/embulk/output/postgresql/PostgreSQLCopyBatchInsert.java
26
26
  - src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnection.java
27
27
  - src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnector.java
28
- - classpath/embulk-output-jdbc-0.4.2.jar
29
- - classpath/embulk-output-postgresql-0.4.2.jar
28
+ - classpath/embulk-output-jdbc-0.4.3.jar
29
+ - classpath/embulk-output-postgresql-0.4.3.jar
30
30
  - classpath/postgresql-9.4-1205-jdbc41.jar
31
31
  homepage: https://github.com/embulk/embulk-output-jdbc
32
32
  licenses: