embulk-output-redshift 0.5.1 → 0.6.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
2
  SHA1:
3
- metadata.gz: c8c2e9f95d662d1860ccba4b210c6dae2d1cc44b
4
- data.tar.gz: cd0afa3f4352bc9732e27d1fdd132398114356c6
3
+ metadata.gz: 060e56b3c63aab3ac5b3e8f203b3641858b7be38
4
+ data.tar.gz: 16c1812e630d1a6f63e537e504976a977a5fd0bc
5
5
  SHA512:
6
- metadata.gz: 15a7eb5c206c87822f163dd105af21444cf3d925f01e01e0eb7e4ab0e499646b814e9f9b377b49df677b79cb7a559ac97674f7179f699f2dc3cd96523e99216c
7
- data.tar.gz: dd060ac7a977ee44b20e5927c3e121d2b930e81b18282b0407a658921db8c7f9fb392fdb277c2078b9dbf08f13de3d987337cb2064c7637205726b82035f85f9
6
+ metadata.gz: f698fcecef53b3f6cd2e6e4436531621c0c84eead54796b52d85f40706ebc6b2e30dad0ebfa46b10fd4a72d14ef570dc36222fa00f85549898a43da312f03601
7
+ data.tar.gz: 52d423812bad7448cf85e4e6c0632744e9cb23ff2e248d6101d82c2b60cbe5b19668bae2d1415a747428173e132917afd2fb77f9cf004e76c414c5438c8ba1c9
data/README.md CHANGED
@@ -28,7 +28,7 @@ Redshift output plugins for Embulk loads records to Redshift.
28
28
  - **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`)
29
29
  - **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
30
30
  - **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)
31
- - **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`)
31
+ - **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`)
32
32
  - **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`)
33
33
  - **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)
34
34
 
@@ -52,6 +52,24 @@ Redshift output plugins for Embulk loads records to Redshift.
52
52
  * Transactional: Yes.
53
53
  * Resumable: No.
54
54
 
55
+ ### Supported types
56
+
57
+ |database type|default value_type|note|
58
+ |:--|:--|:--|
59
+ |bool|boolean||
60
+ |smallint|short||
61
+ |int|int||
62
+ |bigint|long||
63
+ |real|float||
64
+ |double precision|double||
65
+ |numeric|decimal||
66
+ |char|string||
67
+ |varchar|string||
68
+ |date|date||
69
+ |timestamp|timestamp||
70
+
71
+ You can use other types by specifying `value_type` in `column_options`.
72
+
55
73
  ### Example
56
74
 
57
75
  ```yaml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-redshift
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:
@@ -30,9 +30,9 @@ files:
30
30
  - classpath/aws-java-sdk-sts-1.10.33.jar
31
31
  - classpath/commons-codec-1.6.jar
32
32
  - classpath/commons-logging-1.1.3.jar
33
- - classpath/embulk-output-jdbc-0.5.1.jar
34
- - classpath/embulk-output-postgresql-0.5.1.jar
35
- - classpath/embulk-output-redshift-0.5.1.jar
33
+ - classpath/embulk-output-jdbc-0.6.0.jar
34
+ - classpath/embulk-output-postgresql-0.6.0.jar
35
+ - classpath/embulk-output-redshift-0.6.0.jar
36
36
  - classpath/httpclient-4.3.6.jar
37
37
  - classpath/httpcore-4.3.3.jar
38
38
  - classpath/postgresql-9.4-1205-jdbc41.jar