embulk-input-oracle 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: ab4bf216de8e3c69604fab46dcc781411bded58c
4
- data.tar.gz: c600207d269b8d1b0d1d4020e745c2aa5bedfa7f
3
+ metadata.gz: 6eb956e0dfc38a0309ccae63494854e6e68e1c21
4
+ data.tar.gz: 16a046e03729dec840a6f4124d97a1629a968faa
5
5
  SHA512:
6
- metadata.gz: 9d7074b8ceda2bb8cd0664ec3be3db5841cb7d204c034fcf8f2da44e4bd52069502a6669678291f576c2ebfddb5979e4c0c4dc58b4496356177595559eebfc40
7
- data.tar.gz: 602de6a901835c5ed41f8f1ad3920231a545b7af2e87e0db7c8944f1f26ca68d1797d9fb4108d4ba2a968a3c76d088ecf6798d711bb9b209e86ace8dbe78b85c
6
+ metadata.gz: 9fcb2171671ea79974ee4f2f43b154a3cc5ee3293a66f3e5ed6d0158c993f1625f0fed1ac06135127d9def8929f2d9e8773093839dbc2c989a77347d2d53a416
7
+ data.tar.gz: 4bfd57a787f5576f0843ede334787853b5c33025c31bcba63539836a4c2dea2028c661e5b0ad3eab9f67f0c8f329cebe435018bc700ad6fbc3c3c1e4ad306875
data/README.md CHANGED
@@ -30,13 +30,14 @@ Oracle input plugins for Embulk loads records from Oracle.
30
30
  - **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`)
31
31
  - **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
32
32
  - **value_type**: embulk get values from database as this value_type. Typically, the value_type determines `getXXX` method of `java.sql.PreparedStatement`.
33
- (string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `date`, `time`, `timestamp`)
33
+ (string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `json`, `date`, `time`, `timestamp`)
34
34
  - **type**: Column values are converted to this embulk type.
35
- Available values options are: `boolean`, `long`, `double`, `string`, `timestamp`).
35
+ Available values options are: `boolean`, `long`, `double`, `string`, `json`, `timestamp`).
36
36
  By default, the embulk type is determined according to the sql type of the column (or value_type if specified).
37
37
  - **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`)
38
38
  - **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.
39
39
  (string, value of default_timezone option is used by default)
40
+ - **after_select**: if set, this SQL will be executed after the SELECT query in the same transaction.
40
41
 
41
42
  ## Example
42
43
 
@@ -86,6 +87,7 @@ in:
86
87
  column_options:
87
88
  col1: {type: long}
88
89
  col3: {type: string, timestamp_format: "%Y/%m/%d", timezone: "+0900"}
90
+ after_select: "update my_table set col5 = '1' where col4 != 'a'"
89
91
 
90
92
  ```
91
93
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-oracle
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:
@@ -22,8 +22,8 @@ files:
22
22
  - lib/embulk/input/oracle.rb
23
23
  - src/main/java/org/embulk/input/OracleInputPlugin.java
24
24
  - src/main/java/org/embulk/input/oracle/OracleInputConnection.java
25
- - classpath/embulk-input-jdbc-0.6.4.jar
26
- - classpath/embulk-input-oracle-0.6.4.jar
25
+ - classpath/embulk-input-jdbc-0.7.0.jar
26
+ - classpath/embulk-input-oracle-0.7.0.jar
27
27
  homepage: https://github.com/embulk/embulk-input-jdbc
28
28
  licenses:
29
29
  - Apache 2.0