embulk-input-db2 0.9.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3b00692bb60b7886de074a43679a5aca4ade30b1eafc5851777cd015e27fcd58
|
4
|
+
data.tar.gz: 7734b283de6f2c93cef29f3c99c5a31ed479bd2d6f5575a61d079c5e0a8e8d10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dfea8377e28908757d21ab9dcb723ca6903b294e78fb4e200766433b6a13e68fb35fde226af4b17aac7c46aa54b065954eeb8f46e07dc78f4765b2885bf31b7
|
7
|
+
data.tar.gz: 89e628786dfaddf1727d4d7a785d66084e0a99106ad0ce3a4684ed9d8dc0d292031964565f014d6448be5eb56357e2fb9d096085e37223e38e66cf84b802f62e
|
data/README.md
CHANGED
@@ -32,7 +32,8 @@ DB2 input plugins for Embulk loads records from DB2.
|
|
32
32
|
- **incremental_columns**: column names for incremental loading (array of strings, default: use primary keys)
|
33
33
|
- **last_record**: values of the last record for incremental loading (array of objects, default: load all records)
|
34
34
|
- **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`)
|
35
|
-
- **
|
35
|
+
- **default_column_options**: advanced: column_options for each JDBC type as default. key-value pairs where key is a JDBC type (e.g. 'DATE', 'BIGINT') and value is same as column_options's value.
|
36
|
+
- **column_options**: advanced: key-value pairs where key is a column name and value is options for the column.
|
36
37
|
- **value_type**: embulk get values from database as this value_type. Typically, the value_type determines `getXXX` method of `java.sql.PreparedStatement`.
|
37
38
|
(string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `json`, `date`, `time`, `timestamp`)
|
38
39
|
- **type**: Column values are converted to this embulk type.
|
@@ -41,6 +42,8 @@ DB2 input plugins for Embulk loads records from DB2.
|
|
41
42
|
- **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`)
|
42
43
|
- **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.
|
43
44
|
(string, value of default_timezone option is used by default)
|
45
|
+
- **before_setup**: if set, this SQL will be executed before setup. You can prepare table for input by this option.
|
46
|
+
- **before_select**: if set, this SQL will be executed before the SELECT query in the same transaction.
|
44
47
|
- **after_select**: if set, this SQL will be executed after the SELECT query in the same transaction.
|
45
48
|
|
46
49
|
|
@@ -167,6 +170,9 @@ in:
|
|
167
170
|
table: "my_table"
|
168
171
|
select: "col1, col2, col3"
|
169
172
|
where: "col4 != 'a'"
|
173
|
+
default_column_options:
|
174
|
+
TIMESTAMP: { type: string, timestamp_format: "%Y/%m/%d %H:%M:%S", timezone: "+0900"}
|
175
|
+
BIGINT: { type: string }
|
170
176
|
column_options:
|
171
177
|
col1: {type: long}
|
172
178
|
col3: {type: string, timestamp_format: "%Y/%m/%d", timezone: "+0900"}
|
data/build.gradle
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-db2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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:
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Selects records from a table.
|
14
14
|
email:
|
@@ -19,8 +19,8 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- build.gradle
|
22
|
-
- classpath/embulk-input-db2-0.
|
23
|
-
- classpath/embulk-input-jdbc-0.
|
22
|
+
- classpath/embulk-input-db2-0.10.0.jar
|
23
|
+
- classpath/embulk-input-jdbc-0.10.0.jar
|
24
24
|
- lib/embulk/input/db2.rb
|
25
25
|
- src/main/java/org/embulk/input/DB2InputPlugin.java
|
26
26
|
- src/main/java/org/embulk/input/db2/DB2InputConnection.java
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.6.13
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: JDBC input plugin for Embulk
|
Binary file
|
Binary file
|