embulk-input-redshift 0.6.0 → 0.6.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: 8e1f3155f45b656d818c81687eb2cb4d5ce15157
4
- data.tar.gz: 7313ec7d41697bc3750df120b6dff3d9a59c88a3
3
+ metadata.gz: b2cabf1e7f1199d9415c1aed4eb115f32ecd21c9
4
+ data.tar.gz: 85f24d8ad4b709d76e1c198120b597657625eb81
5
5
  SHA512:
6
- metadata.gz: 7d1ccf37c07ffe5eb82e82e9ca45a7a721e45a27c172b1f1ee16bea565a5d55dc10555871e9aedb20c8afc782a5c09a79e65b428d7edcbe9017dab44ab0a7bae
7
- data.tar.gz: 16ac5d172bb06a0f134d9108b0cf5f1bcf871ed0ed2a34691b9e89a1801895638bf6005860b4cef18a5338349d61437de5fc2e8e1df20d2af1dd4a2192ab927d
6
+ metadata.gz: 0686028c20a5b706cd34729a5a6cbd9624f70271322a73bcb30c9a68b5b86beee9148786d37007fe3947e2215e72bcf8fa5a37d4e4564f31ec46ad69c538edd3
7
+ data.tar.gz: 99d62a6282f19d3dc3cc34a058b9d6e6fcd3229bda8c34c84f72e34f57c78cee76def8624deb4adef66dc9fee1334045e89945479ed4942751b8917e9d35979e
data/README.md CHANGED
@@ -17,6 +17,8 @@ Redshift input plugins for Embulk loads records from Redshift.
17
17
  - **schema**: destination schema name (string, default: "public")
18
18
  - **where**: WHERE condition to filter the rows (string, default: no-condition)
19
19
  - **fetch_rows**: number of rows to fetch one time (used for java.sql.Statement#setFetchSize) (integer, default: 10000)
20
+ - **connect_timeout**: timeout for establishment of a database connection. (integer (seconds), default: 300)
21
+ - **socket_timeout**: timeout for socket read operations. 0 means no timeout. (integer (seconds), default: 1800)
20
22
  - **options**: extra JDBC properties (hash, default: {})
21
23
  - If you write SQL directly,
22
24
  - **query**: SQL to run (string)
@@ -4,11 +4,11 @@ import java.util.Properties;
4
4
  import java.sql.Connection;
5
5
  import java.sql.Driver;
6
6
  import java.sql.SQLException;
7
- import com.google.common.base.Throwables;
7
+
8
+
8
9
  import org.embulk.config.Config;
9
10
  import org.embulk.config.ConfigDefault;
10
11
  import org.embulk.input.jdbc.AbstractJdbcInputPlugin;
11
- import org.embulk.input.jdbc.AbstractJdbcInputPlugin;
12
12
  import org.embulk.input.postgresql.PostgreSQLInputConnection;
13
13
 
14
14
  public class RedshiftInputPlugin
@@ -58,8 +58,8 @@ public class RedshiftInputPlugin
58
58
  Properties props = new Properties();
59
59
  props.setProperty("user", t.getUser());
60
60
  props.setProperty("password", t.getPassword());
61
- props.setProperty("loginTimeout", "300"); // seconds
62
- props.setProperty("socketTimeout", "1800"); // seconds
61
+ props.setProperty("loginTimeout", String.valueOf(t.getConnectTimeout())); // seconds
62
+ props.setProperty("socketTimeout", String.valueOf(t.getSocketTimeout())); // seconds
63
63
 
64
64
  // Enable keepalive based on tcp_keepalive_time, tcp_keepalive_intvl and tcp_keepalive_probes kernel parameters.
65
65
  // Socket options TCP_KEEPCNT, TCP_KEEPIDLE, and TCP_KEEPINTVL are not configurable.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-redshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.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: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Selects records from a table.
14
14
  email:
@@ -21,14 +21,10 @@ files:
21
21
  - build.gradle
22
22
  - lib/embulk/input/redshift.rb
23
23
  - src/main/java/org/embulk/input/RedshiftInputPlugin.java
24
- - classpath/embulk-input-jdbc-0.6.0.jar
25
- - classpath/embulk-input-postgresql-0.6.0.jar
26
- - classpath/embulk-input-redshift-0.6.0.jar
27
- - classpath/jna-4.1.0.jar
28
- - classpath/jna-platform-4.1.0.jar
29
- - classpath/postgresql-9.4-1200-jdbc41.jar
30
- - classpath/slf4j-simple-1.7.7.jar
31
- - classpath/waffle-jna-1.7.jar
24
+ - classpath/embulk-input-jdbc-0.6.1.jar
25
+ - classpath/embulk-input-postgresql-0.6.1.jar
26
+ - classpath/embulk-input-redshift-0.6.1.jar
27
+ - classpath/postgresql-9.4-1205-jdbc41.jar
32
28
  homepage: https://github.com/embulk/embulk-input-jdbc
33
29
  licenses:
34
30
  - Apache 2.0
Binary file
Binary file