embulk-input-redshift 0.6.4 → 0.7.0

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: d2a89d652ef7cfa8f64f1b153bd6a61a77ac40c3
4
- data.tar.gz: da20a8274fbbec64146e74b8bb365646469a5ae6
3
+ metadata.gz: b0b163980df0fa884ff3deacdb2de037d854036c
4
+ data.tar.gz: e92075a9a52642561dca3463ee70ee293a1c248f
5
5
  SHA512:
6
- metadata.gz: 807ab57bc517dc15abd3f57cee19dfbeec1284ebc5a4ee80a4f02f03e0ac5194ba7aa5922f3613fccdbff16a45b0a8393d7dd5987107daac5330afc028d6dc7d
7
- data.tar.gz: 0f86515af5c3dc1f4e66f5c765c6398e2a444b9e4e4a0b5a8dfdf3aeac0514d95f8f875f039ca7c8377d725ec696f71bc1e72c2231d6df1ac1b67d391066f929
6
+ metadata.gz: 14635e9900582a3e6558958f7b580bc7f20996913b8b4f4914f436a6763f18c9421181c02d09e9342c915f2b460d73aaac91b52ec44e36ac4f4967093e8b67f1
7
+ data.tar.gz: b180ad091a0bb7445305fe8e975c60dbf4d91889394048156cfaf0314004cf2c00eef6868b6aecdd6fbebfad9724384a3dfc8e11f0e2ca92cb694fa4ac134618
data/README.md CHANGED
@@ -29,13 +29,14 @@ Redshift input plugins for Embulk loads records from Redshift.
29
29
  - **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`)
30
30
  - **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
31
31
  - **value_type**: embulk get values from database as this value_type. Typically, the value_type determines `getXXX` method of `java.sql.PreparedStatement`.
32
- (string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `date`, `time`, `timestamp`)
32
+ (string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `json`, `date`, `time`, `timestamp`)
33
33
  - **type**: Column values are converted to this embulk type.
34
- Available values options are: `boolean`, `long`, `double`, `string`, `timestamp`).
34
+ Available values options are: `boolean`, `long`, `double`, `string`, `json`, `timestamp`).
35
35
  By default, the embulk type is determined according to the sql type of the column (or value_type if specified).
36
36
  - **timestamp_format**: If the sql type of the column is `date`/`time`/`datetime` and the embulk type is `string`, column values are formatted by this timestamp_format. And if the embulk type is `timestamp`, this timestamp_format may be used in the output plugin. For example, stdout plugin use the timestamp_format, but *csv formatter plugin doesn't use*. (string, default : `%Y-%m-%d` for `date`, `%H:%M:%S` for `time`, `%Y-%m-%d %H:%M:%S` for `timestamp`)
37
37
  - **timezone**: If the sql type of the column is `date`/`time`/`datetime` and the embulk type is `string`, column values are formatted in this timezone.
38
38
  (string, value of default_timezone option is used by default)
39
+ - **after_select**: if set, this SQL will be executed after the SELECT query in the same transaction.
39
40
 
40
41
  ## Example
41
42
 
@@ -82,6 +83,7 @@ in:
82
83
  column_options:
83
84
  col1: {type: long}
84
85
  col3: {type: string, timestamp_format: "%Y/%m/%d", timezone: "+0900"}
86
+ after_select: "update my_table set col5 = '1' where col4 != 'a'"
85
87
 
86
88
  ```
87
89
 
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.4
4
+ version: 0.7.0
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-01-15 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Selects records from a table.
14
14
  email:
@@ -21,9 +21,9 @@ 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.4.jar
25
- - classpath/embulk-input-postgresql-0.6.4.jar
26
- - classpath/embulk-input-redshift-0.6.4.jar
24
+ - classpath/embulk-input-jdbc-0.7.0.jar
25
+ - classpath/embulk-input-postgresql-0.7.0.jar
26
+ - classpath/embulk-input-redshift-0.7.0.jar
27
27
  - classpath/postgresql-9.4-1205-jdbc41.jar
28
28
  homepage: https://github.com/embulk/embulk-input-jdbc
29
29
  licenses: