embulk-output-postgresql 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/classpath/{embulk-output-jdbc-0.6.3.jar → embulk-output-jdbc-0.6.4.jar} +0 -0
- data/classpath/{embulk-output-postgresql-0.6.3.jar → embulk-output-postgresql-0.6.4.jar} +0 -0
- data/src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnection.java +6 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24387c2c6f8317667c4653da77fdd353f3b2d013
|
4
|
+
data.tar.gz: 74eac059aa41d696e21127bf911466d22ada1164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f088e77eedca1be76d25179b502fc29bf72784e1ecbd7bb583bb0a898112cd8b9cbba375517cf93628ce3fd3390cbe48525f0c3512999b11f179ce85456498e0
|
7
|
+
data.tar.gz: 57ca89f493b2c54e49590801dc12ce1461944b733533794bf4cbd2d081fb94f7dfc49617d17c476739e939acb444ca043318d4accaeb43f51d44412fa1f7a4c3
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ PostgreSQL output plugins for Embulk loads records to PostgreSQL.
|
|
22
22
|
- **retry_wait** initial retry wait time in milliseconds (integer, default: 1000 (1 second))
|
23
23
|
- **max_retry_wait** upper limit of retry wait, which will be doubled at every retry (integer, default: 1800000 (30 minutes))
|
24
24
|
- **mode**: "insert", "insert_direct", "truncate_insert", "replace" or "merge". See below. (string, required)
|
25
|
-
- **merge_keys**: key column names for merging records in merge mode (string array, required in merge mode)
|
25
|
+
- **merge_keys**: key column names for merging records in merge mode (string array, required in merge mode if table doesn't have primary key)
|
26
26
|
- **merge_rule**: list of column assignments for updating existing records used in merge mode, for example `foo = foo + S.foo`. (string array, default: always overwrites with new values)
|
27
27
|
- **ssl**: enables SSL. data will be encrypted but CA or certification will not be verified (boolean, default: false)
|
28
28
|
- **batch_size**: size of a single batch insert (integer, default: 16777216)
|
Binary file
|
Binary file
|
@@ -164,6 +164,12 @@ public class PostgreSQLOutputConnection
|
|
164
164
|
return "TEXT";
|
165
165
|
case "BLOB":
|
166
166
|
return "BYTEA";
|
167
|
+
case "VARCHAR":
|
168
|
+
if (c.getDataLength() == Integer.MAX_VALUE) {
|
169
|
+
// getDataLength for varchar without length specifier will return 2147483647 .
|
170
|
+
// but cannot create column of varchar(2147483647) .
|
171
|
+
return "VARCHAR";
|
172
|
+
}
|
167
173
|
default:
|
168
174
|
return super.buildColumnTypeName(c);
|
169
175
|
}
|
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.6.
|
4
|
+
version: 0.6.4
|
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-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -19,6 +19,9 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- build.gradle
|
22
|
+
- classpath/embulk-output-jdbc-0.6.4.jar
|
23
|
+
- classpath/embulk-output-postgresql-0.6.4.jar
|
24
|
+
- classpath/postgresql-9.4-1205-jdbc41.jar
|
22
25
|
- lib/embulk/output/postgresql.rb
|
23
26
|
- src/main/java/org/embulk/output/PostgreSQLOutputPlugin.java
|
24
27
|
- src/main/java/org/embulk/output/postgresql/AbstractPostgreSQLCopyBatchInsert.java
|
@@ -26,9 +29,6 @@ files:
|
|
26
29
|
- src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnection.java
|
27
30
|
- src/main/java/org/embulk/output/postgresql/PostgreSQLOutputConnector.java
|
28
31
|
- src/main/java/org/embulk/output/postgresql/setter/PostgreSQLColumnSetterFactory.java
|
29
|
-
- classpath/embulk-output-jdbc-0.6.3.jar
|
30
|
-
- classpath/embulk-output-postgresql-0.6.3.jar
|
31
|
-
- classpath/postgresql-9.4-1205-jdbc41.jar
|
32
32
|
homepage: https://github.com/embulk/embulk-output-jdbc
|
33
33
|
licenses:
|
34
34
|
- Apache 2.0
|
@@ -39,17 +39,17 @@ require_paths:
|
|
39
39
|
- lib
|
40
40
|
required_ruby_version: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
requirements: []
|
51
51
|
rubyforge_project:
|
52
|
-
rubygems_version: 2.
|
52
|
+
rubygems_version: 2.4.8
|
53
53
|
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: JDBC output plugin for Embulk
|