embulk-output-sqlserver 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: 107530637391bd44da5f7291004ccef1e1ba0a3b
4
- data.tar.gz: a89e2a72c151e984261519e31d879d5449db9060
3
+ metadata.gz: ba7b114a49a1b795322136cfbacbcb7092dcdc24
4
+ data.tar.gz: 3c7565eb2c050b1488d2481a0a15eb35d919b4a8
5
5
  SHA512:
6
- metadata.gz: b6a2ce12e01cbe02743d0ca42de24bf1105ab3ff40ab333cf56f198877ca967577792af1f8b3d6ee0fdaae02894788b7aef66a6aabed86db0c99883459c7b6f5
7
- data.tar.gz: 96aeaf1f4c005375a4ce991f6dc9eef502bc896aa3ddb69ed2c492c34809e1b5468726a71adbc7d793a8895988e442db87ff9d3e88fefb8eb9ad6d0a6d7ddfd8
6
+ metadata.gz: 11f6540fb7a6e2c92d3939d71eb8a45a83f2b893a44c5d917cc44d0e7886197b54fe5ac06c9bf2a7883b7302da2ad7de43f33e6d745bd747dce870fdb263b9c6
7
+ data.tar.gz: 721b9a3dd06deea687719819c5bcb10628cdfb49f823afac9f766ca52d471e6c2166f6ddb658da911e543147b5aaece67ef4ca4382499522b665ca2accd7c73a
data/README.md CHANGED
@@ -31,7 +31,7 @@ embulk "-J-Djava.library.path=C:\drivers" run input-sqlserver.yml
31
31
  - **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`)
32
32
  - **column_options**: advanced: a key-value pairs where key is a column name and value is options for the column.
33
33
  - **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)
34
- - **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`)
34
+ - **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`)
35
35
  - **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`)
36
36
  - **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)
37
37
 
@@ -63,6 +63,36 @@ insert_method supports three options.
63
63
  "native" means bulk insert using native client. It is faster than "normal".
64
64
  It requires both SQL Server JDBC driver and SQL Server Native Client (11.0).
65
65
 
66
+ ### Supported types
67
+
68
+ |database type|default value_type|note|
69
+ |:--|:--|:--|
70
+ |bit|boolean||
71
+ |tinyint|byte|unsigned|
72
+ |smallint|short||
73
+ |int|int||
74
+ |bigint|long||
75
+ |decimal|decimal||
76
+ |numeric|decimal||
77
+ |smallmoney|decimal||
78
+ |money|decimal||
79
+ |real|float||
80
+ |float|double||
81
+ |char|string||
82
+ |varchar|string||
83
+ |text|string||
84
+ |nchar|nstring||
85
+ |nvarchar|nstring||
86
+ |ntext|nstring||
87
+ |xml|nstring||
88
+ |date|date||
89
+ |time|time|support 7 digits for the fractional part of the seconds|
90
+ |datetime|timestamp||
91
+ |datetime2|timestamp||
92
+ |smalldatetime|timestamp||
93
+
94
+ You can use other types by specifying `value_type` in `column_options`.
95
+
66
96
  ### Example
67
97
 
68
98
  ```yaml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-sqlserver
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:
@@ -50,8 +50,8 @@ files:
50
50
  - src/test/resources/sqlserver/yml/test-replace.yml
51
51
  - src/test/resources/sqlserver/yml/test-string-timestamp.yml
52
52
  - src/test/resources/sqlserver/yml/test-truncate-insert.yml
53
- - classpath/embulk-output-jdbc-0.5.1.jar
54
- - classpath/embulk-output-sqlserver-0.5.1.jar
53
+ - classpath/embulk-output-jdbc-0.6.0.jar
54
+ - classpath/embulk-output-sqlserver-0.6.0.jar
55
55
  homepage: https://github.com/embulk/embulk-output-jdbc
56
56
  licenses:
57
57
  - Apache 2.0