embulk-output-postgresql 0.5.0 → 0.5.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d05d56998c2cc70e2ce2a10c1a969bdf13cc4f8f
|
4
|
+
data.tar.gz: d37398c5cf2300bb969b76f077dac69f2e1da1cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a758f7c148693480bd4f3a38858ff9c2070021ac36eb69da3b7361c9844568612f6d180350016e4ba834267d7a59144a6a78f7507096fd8b612e65f651763fbe
|
7
|
+
data.tar.gz: c874cad1f3e99f1f9e4787e14a6c72905336328da2c690615bdad9dd43ec8df26a494e447ffb462143d490e4caf5a8fef2c6a5f0aa97cf07c6a275685e68d6f0
|
data/README.md
CHANGED
@@ -5,8 +5,8 @@ PostgreSQL output plugins for Embulk loads records to PostgreSQL.
|
|
5
5
|
## Overview
|
6
6
|
|
7
7
|
* **Plugin type**: output
|
8
|
-
* **Load all or nothing**: depnds on the mode. see
|
9
|
-
* **Resume supported**: depnds on the mode. see
|
8
|
+
* **Load all or nothing**: depnds on the mode. see below.
|
9
|
+
* **Resume supported**: depnds on the mode. see below.
|
10
10
|
|
11
11
|
## Configuration
|
12
12
|
|
@@ -18,7 +18,8 @@ PostgreSQL output plugins for Embulk loads records to PostgreSQL.
|
|
18
18
|
- **schema**: destination schema name (string, default: "public")
|
19
19
|
- **table**: destination table name (string, required)
|
20
20
|
- **options**: extra connection properties (hash, default: {})
|
21
|
-
- **mode**: "
|
21
|
+
- **mode**: "insert", "insert_direct", "truncate_insert", "replace" or "merge". See below. (string, required)
|
22
|
+
- **merge_keys**: key column names for merging records in merge mode (string array, required in merge mode)
|
22
23
|
- **ssl**: enables SSL. data will be encrypted but CA or certification will not be verified (boolean, default: false)
|
23
24
|
- **batch_size**: size of a single batch insert (integer, default: 16777216)
|
24
25
|
- **default_timezone**: If input column type (embulk type) is timestamp, this plugin needs to format the timestamp into a SQL string. This default_timezone option is used to control the timezone. You can overwrite timezone for each columns using column_options option. (string, default: `UTC`)
|
@@ -47,7 +48,7 @@ PostgreSQL output plugins for Embulk loads records to PostgreSQL.
|
|
47
48
|
* Transactional: Yes.
|
48
49
|
* Resumable: No.
|
49
50
|
* **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
|
+
* 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. Namely, if merge keys of a record in the intermediate tables already exist in the target table, the target record is updated by the intermediate record, otherwise the intermediate record is inserted. If the target table doesn't exist, it is created automatically.
|
51
52
|
* Transactional: Yes.
|
52
53
|
* Resumable: Yes.
|
53
54
|
|
Binary file
|
Binary file
|
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.5.
|
4
|
+
version: 0.5.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: 2016-
|
11
|
+
date: 2016-03-29 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.5.
|
29
|
-
- classpath/embulk-output-postgresql-0.5.
|
28
|
+
- classpath/embulk-output-jdbc-0.5.1.jar
|
29
|
+
- classpath/embulk-output-postgresql-0.5.1.jar
|
30
30
|
- classpath/postgresql-9.4-1205-jdbc41.jar
|
31
31
|
homepage: https://github.com/embulk/embulk-output-jdbc
|
32
32
|
licenses:
|