embulk-input-oracle 0.9.3 → 0.10.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8a630b0262f22d7facc47e39c38218ae2c6317c48e83bc8701b52380fb99c8ce
|
4
|
+
data.tar.gz: ee05d5351375af8dbd76313647ad3d47334cc1ae2574e2dfab5925274f45a151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f2855054a9b4564fa1cf7da9b47b072ca623848ba598e4095200b786b75beb282083f2448526d139937f94ed7a41b326c87bf2ad235543910c8db0b1077f02
|
7
|
+
data.tar.gz: 9b23bf271dcbfc892b9d81bc6c64d45890717ecb95174fa20c1888daf2f598173a3fde391840a261487d97a92b415fb532709bbfc63ca0dc2a830c3cca8f298b
|
data/README.md
CHANGED
@@ -35,7 +35,8 @@ Oracle input plugin for Embulk loads records from Oracle.
|
|
35
35
|
- **incremental_columns**: column names for incremental loading (array of strings, default: use primary keys)
|
36
36
|
- **last_record**: values of the last record for incremental loading (array of objects, default: load all records)
|
37
37
|
- **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`)
|
38
|
-
- **
|
38
|
+
- **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.
|
39
|
+
- **column_options**: advanced: key-value pairs where key is a column name and value is options for the column.
|
39
40
|
- **value_type**: embulk get values from database as this value_type. Typically, the value_type determines `getXXX` method of `java.sql.PreparedStatement`.
|
40
41
|
(string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `json`, `date`, `time`, `timestamp`)
|
41
42
|
- **type**: Column values are converted to this embulk type.
|
@@ -44,6 +45,8 @@ Oracle input plugin for Embulk loads records from Oracle.
|
|
44
45
|
- **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`)
|
45
46
|
- **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.
|
46
47
|
(string, value of default_timezone option is used by default)
|
48
|
+
- **before_setup**: if set, this SQL will be executed before setup. You can prepare table for input by this option.
|
49
|
+
- **before_select**: if set, this SQL will be executed before the SELECT query in the same transaction.
|
47
50
|
- **after_select**: if set, this SQL will be executed after the SELECT query in the same transaction.
|
48
51
|
|
49
52
|
|
@@ -80,7 +83,7 @@ Then, it updates `last_record: ` so that next execution uses the updated last_re
|
|
80
83
|
CREATE INDEX embulk_incremental_loading_index ON table (updated_at, id);
|
81
84
|
```
|
82
85
|
|
83
|
-
Recommended usage is to leave `incremental_columns` unset and let this plugin automatically finds a primary key. Currently, only strings and
|
86
|
+
Recommended usage is to leave `incremental_columns` unset and let this plugin automatically finds a primary key. Currently, only strings, integers, DATE and TIMESTAMP are supported as incremental_columns.
|
84
87
|
|
85
88
|
### Use incremental loading with raw query
|
86
89
|
|
@@ -170,6 +173,9 @@ in:
|
|
170
173
|
table: "my_table"
|
171
174
|
select: "col1, col2, col3"
|
172
175
|
where: "col4 != 'a'"
|
176
|
+
default_column_options:
|
177
|
+
TIMESTAMP: { type: string, timestamp_format: "%Y/%m/%d %H:%M:%S", timezone: "+0900"}
|
178
|
+
BIGINT: { type: string }
|
173
179
|
column_options:
|
174
180
|
col1: {type: long}
|
175
181
|
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-oracle
|
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-jdbc-0.
|
23
|
-
- classpath/embulk-input-oracle-0.
|
22
|
+
- classpath/embulk-input-jdbc-0.10.0.jar
|
23
|
+
- classpath/embulk-input-oracle-0.10.0.jar
|
24
24
|
- lib/embulk/input/oracle.rb
|
25
25
|
- src/main/java/org/embulk/input/OracleInputPlugin.java
|
26
26
|
- src/main/java/org/embulk/input/oracle/OracleInputConnection.java
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.6.13
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: JDBC input plugin for Embulk
|
Binary file
|
Binary file
|