embulk-output-oracle 0.5.1 → 0.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b0a0f62c43923ecb8fced2310c707fa9549dee
|
4
|
+
data.tar.gz: 0a4b933f2770fb1db850232a3e3b871f29b24890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea9df3f2e4533a3a486ffea7fce1da41a1ca87a4af0a378db09b02a18c4a06d886093a36867864af0c0dc6c8363c85b7585d85c472c5a3c738c843c33ac8dc8
|
7
|
+
data.tar.gz: 1a7b88ceaa62d485f351c9267ef9f3061f65bebf57edbb0ddc74aed315bad72fa10c4ec04e20e514965978f4999a7126fd918f5c0513406f660b7a22abea9b4b
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ Oracle output plugins for Embulk loads records to Oracle.
|
|
25
25
|
- **default_timezone**: If input column type (embulk type) is timestamp, this plugin needs to format the timestamp into a SQL string. This default_timezone option is used to control the timezone. You can overwrite timezone for each columns using column_options option. (string, default: `UTC`)
|
26
26
|
- **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
|
27
27
|
- **type**: type of a column when this plugin creates new tables (e.g. `VARCHAR(255)`, `INTEGER NOT NULL UNIQUE`). This used when this plugin creates intermediate tables (insert, truncate_insert and merge modes), when it creates the target table (insert_direct and replace modes), and when it creates nonexistent target table automatically. (string, default: depends on input column type. `BIGINT` if input column type is long, `BOOLEAN` if boolean, `DOUBLE PRECISION` if double, `CLOB` if string, `TIMESTAMP` if timestamp)
|
28
|
-
- **value_type**: This plugin converts input column type (embulk type) into a database type to build a INSERT statement. This value_type option controls the type of the value in a INSERT statement. (string, default: depends on
|
28
|
+
- **value_type**: This plugin converts input column type (embulk type) into a database type to build a INSERT statement. This value_type option controls the type of the value in a INSERT statement. (string, default: depends on the sql type of the column. Available values options are: `byte`, `short`, `int`, `long`, `double`, `float`, `boolean`, `string`, `nstring`, `date`, `time`, `timestamp`, `decimal`, `json`, `null`, `pass`)
|
29
29
|
- **timestamp_format**: If input column type (embulk type) is timestamp and value_type is `string` or `nstring`, this plugin needs to format the timestamp value into a string. This timestamp_format option is used to control the format of the timestamp. (string, default: `%Y-%m-%d %H:%M:%S.%6N`)
|
30
30
|
- **timezone**: If input column type (embulk type) is timestamp, this plugin needs to format the timestamp value into a SQL string. In this cases, this timezone option is used to control the timezone. (string, value of default_timezone option is used by default)
|
31
31
|
|
@@ -61,6 +61,23 @@ It requires Oracle JDBC driver too, but the version 12 driver doesn't work (the
|
|
61
61
|
It requires both Oracle JDBC driver and Oracle Instant Client (version 12.1.0.2.0).
|
62
62
|
You must set the library loading path to the OCI library.
|
63
63
|
|
64
|
+
### Supported types
|
65
|
+
|
66
|
+
|database type|default value_type|note|
|
67
|
+
|:--|:--|:--|
|
68
|
+
|NUMBER|decimal||
|
69
|
+
|FLOAT|double||
|
70
|
+
|CHAR|string||
|
71
|
+
|VARCHAR2|string||
|
72
|
+
|CLOB|string||
|
73
|
+
|NCHAR|nstring||
|
74
|
+
|NVARCHAR2|nstring||
|
75
|
+
|NCLOB|nstring||
|
76
|
+
|DATE|timestamp|Oracle DATE type stores date and time information.|
|
77
|
+
|TIMESTAMP|timestamp||
|
78
|
+
|
79
|
+
You can use other types by specifying `value_type` in `column_options`.
|
80
|
+
|
64
81
|
### Example
|
65
82
|
|
66
83
|
```yaml
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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-
|
11
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -54,8 +54,8 @@ files:
|
|
54
54
|
- src/test/resources/oracle/yml/test-truncate-insert-oci-method.yml
|
55
55
|
- src/test/resources/oracle/yml/test-truncate-insert.yml
|
56
56
|
- src/test/resources/oracle/yml/test-url.yml
|
57
|
-
- classpath/embulk-output-jdbc-0.
|
58
|
-
- classpath/embulk-output-oracle-0.
|
57
|
+
- classpath/embulk-output-jdbc-0.6.0.jar
|
58
|
+
- classpath/embulk-output-oracle-0.6.0.jar
|
59
59
|
homepage: https://github.com/embulk/embulk-output-jdbc
|
60
60
|
licenses:
|
61
61
|
- Apache 2.0
|