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: 1c196893bc6c5cd54b0fdd6933634de04145b5c2
4
- data.tar.gz: 433b11005ff3c74efbfda08efe789e473634a15a
3
+ metadata.gz: 29b0a0f62c43923ecb8fced2310c707fa9549dee
4
+ data.tar.gz: 0a4b933f2770fb1db850232a3e3b871f29b24890
5
5
  SHA512:
6
- metadata.gz: d4f361b8d4507f0993664aa40be3ee8411705148c2161de3bb172d8dc2b2e6b2ed928dbb106aa20b80a6ade4c81887cb2efd183be19b8af807373fa20d804a6b
7
- data.tar.gz: 59614a59bb30a5c2f0a5b1d900991e1bdb6dd692b210bd4972cde255b8f40322a621becf9175b6f19c4f909ac63d56a8aaa74d0ebca0d575c1f9e59ba6408e6a
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 input column type. Available values options are: `byte`, `short`, `int`, `long`, `double`, `float`, `boolean`, `string`, `nstring`, `date`, `time`, `timestamp`, `decimal`, `null`, `pass`)
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
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.5.1
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-03-29 00:00:00.000000000 Z
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.5.1.jar
58
- - classpath/embulk-output-oracle-0.5.1.jar
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