embulk-input-sqlserver 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: a5a1730a2670e28e2dda5ba09c2e9709ff9a84a3
4
- data.tar.gz: dc4ce4f5a11f96f0f78abe0a0fa17a38305a6e64
3
+ metadata.gz: 1a87e477675a9b33eb15cd365f28172ddecd6299
4
+ data.tar.gz: 578022529bd3e143500548fc16042e7d1e835f3b
5
5
  SHA512:
6
- metadata.gz: 50c65fc5f5e5a37efc03480c953ee266cb5816d7d90ba0fa60923271baef2791d234db0ec9966f18aac8bda9adb896c954acee3f179eb4e1e885149608e218aa
7
- data.tar.gz: 8466efeb12ebd8fa0356fbf622a7d6d07092bf7030bc5f00ae605d8cc689f304346316bbf84f1ef888f058e718d6f7317b224eff0eff6d3fdc7a8dc053e64679
6
+ metadata.gz: cf8600ff72ecae21218f42e7a2f30662236238bebf571f69f432408d8246e763bd8238eef8f17dd8478e11b5c52238161157fdfe810f3d5fe2089aa488f4ee3f
7
+ data.tar.gz: a80b6e64a70fc112e19458d29c6a7b2968ba9c82b05fc41f81cd51f184ebc56471a94b3db6e1e14a08137434752c8f423e6ad595d98705503d05c4abc79d1664
data/README.md CHANGED
@@ -29,6 +29,8 @@ embulk "-J-Djava.library.path=C:\drivers" run input-sqlserver.yml
29
29
  - **select**: comma-separated list of columns to select (string, default: "*")
30
30
  - **where**: WHERE condition to filter the rows (string, default: no-condition)
31
31
  - **fetch_rows**: number of rows to fetch one time (used for java.sql.Statement#setFetchSize) (integer, default: 10000)
32
+ - **connect_timeout**: timeout for the driver to connect. 0 means the default of SQL Server (15 by default). (integer (seconds), default: 300)
33
+ - **socket_timeout**: timeout for executing the query. 0 means no timeout. (integer (seconds), default: 1800)
32
34
  - **options**: extra JDBC properties (hash, default: {})
33
35
  - **default_timezone**: If the sql type of a column is `date`/`time`/`datetime` and the embulk type is `string`, column values are formatted int this default_timezone. You can overwrite timezone for each columns using column_options option. (string, default: `UTC`)
34
36
  - **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
@@ -118,6 +118,7 @@ public class SQLServerInputPlugin
118
118
  if (sqlServerTask.getPassword().isPresent()) {
119
119
  props.setProperty("password", sqlServerTask.getPassword().get());
120
120
  }
121
+ props.setProperty("loginTimeout", String.valueOf(sqlServerTask.getConnectTimeout())); // seconds
121
122
  props.putAll(sqlServerTask.getOptions());
122
123
 
123
124
  if (sqlServerTask.getDriverPath().isPresent()) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-sqlserver
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:
@@ -22,8 +22,8 @@ files:
22
22
  - lib/embulk/input/sqlserver.rb
23
23
  - src/main/java/org/embulk/input/SQLServerInputPlugin.java
24
24
  - src/main/java/org/embulk/input/sqlserver/SQLServerInputConnection.java
25
- - classpath/embulk-input-jdbc-0.6.0.jar
26
- - classpath/embulk-input-sqlserver-0.6.0.jar
25
+ - classpath/embulk-input-jdbc-0.6.1.jar
26
+ - classpath/embulk-input-sqlserver-0.6.1.jar
27
27
  homepage: https://github.com/embulk/embulk-input-jdbc
28
28
  licenses:
29
29
  - Apache 2.0