embulk-output-mysql 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: 32a3c79a38f350aa892f0a2633f493dfb96a0421
4
- data.tar.gz: e3fbd0bbcd69d02645a6a50cdd8c6361373ae84e
3
+ metadata.gz: dd73ef85d2a98b93105ce959aba6d104a78ef0d1
4
+ data.tar.gz: c0bddec02793897ee24146bb48f63c3e0282247f
5
5
  SHA512:
6
- metadata.gz: ad6e29c063b91bf23fca6364ffaa393d2cdabf4f7fdcc3aa9e3ab65b97084ef08200152f91c6eb4f1421b6294bc64b95c94bdf5c4a4661ceb8b65e15c3d3edb6
7
- data.tar.gz: a6b293ae7989463a5ac7157902e2fb42a388837e3b57600004c18240a6c499e55f296716a9cb5112abefa4845268d586a6aeeba86baf1f96de600f4f009bd8ee
6
+ metadata.gz: 4f424456ec479ce9678b17a6aa194fb7270644272f4708dc8faccd896e0cf4561f93831cc61614ca3d382adaf559d96c0efffb4de0447be4f4ecb5cad3eb5f2c
7
+ data.tar.gz: d9cabb63e591a4941c7f6d752129d72fa6cdde3be178a8b960a8c4fb16e4021ed8dc5888c351ee4bff5b3d1613a13238dd05ffd90e4c0c4ffde079ce50ccf68c
data/README.md CHANGED
@@ -22,7 +22,7 @@ MySQL output plugins for Embulk loads records to MySQL.
22
22
  - **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`)
23
23
  - **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
24
24
  - **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, insert_truncate and merge modes), when it creates the target table (insert_direct, merge_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)
25
- - **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`)
25
+ - **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`)
26
26
  - **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`)
27
27
  - **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)
28
28
 
@@ -53,6 +53,28 @@ MySQL output plugins for Embulk loads records to MySQL.
53
53
  * Transactional: No.
54
54
  * Resumable: No.
55
55
 
56
+ ### Supported types
57
+
58
+ |database type|default value_type|note|
59
+ |:--|:--|:--|
60
+ |BIT|boolean||
61
+ |TINYINT|byte||
62
+ |SMALLINT|short||
63
+ |INT|int||
64
+ |BIGINT|long||
65
+ |FLOAT|float||
66
+ |DOUBLE|double||
67
+ |DECIMAL|decimal||
68
+ |CHAR|string||
69
+ |VARCHAR|string||
70
+ |TEXT|string||
71
+ |DATE|date||
72
+ |DATETIME|timestamp||
73
+ |TIMESTAMP|timestamp||
74
+ |TIME|time||
75
+
76
+ You can use other types by specifying `value_type` in `column_options`.
77
+
56
78
  ### Example
57
79
 
58
80
  ```yaml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-mysql
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:
@@ -24,8 +24,8 @@ files:
24
24
  - src/main/java/org/embulk/output/mysql/MySQLBatchInsert.java
25
25
  - src/main/java/org/embulk/output/mysql/MySQLOutputConnection.java
26
26
  - src/main/java/org/embulk/output/mysql/MySQLOutputConnector.java
27
- - classpath/embulk-output-jdbc-0.5.1.jar
28
- - classpath/embulk-output-mysql-0.5.1.jar
27
+ - classpath/embulk-output-jdbc-0.6.0.jar
28
+ - classpath/embulk-output-mysql-0.6.0.jar
29
29
  - classpath/mysql-connector-java-5.1.34.jar
30
30
  homepage: https://github.com/embulk/embulk-output-jdbc
31
31
  licenses: