embulk-input-sqlserver 0.9.3 → 0.10.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 22b1735cc828641cff2cbdaf378cff0ba09258dd9b56029c9c10cf3ed49369b9
|
4
|
+
data.tar.gz: 1a29fa810ebf240722d13e668cf1ad7bec43e146a4086d200dbbd04c2004e6ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a1c12af23925060435e6dee86251b6c7a475844186e91a8274f9d9da4a641bf069a272c3688fed040b9ebd73068e4f11e8b735eac442a5d365c2e736723ba11
|
7
|
+
data.tar.gz: 7750ffb7e28628d6fccf80661cc29c158b734a65211ac4bbe3b0585495f7c7cdc93ea5f23fa7dae602c1b674fc24644c4e0ebbc422e2747f05b1e52324623529
|
data/README.md
CHANGED
@@ -41,7 +41,8 @@ embulk "-J-Djava.library.path=C:\drivers" run input-sqlserver.yml
|
|
41
41
|
- **incremental_columns**: column names for incremental loading (array of strings, default: use primary keys)
|
42
42
|
- **last_record**: values of the last record for incremental loading (array of objects, default: load all records)
|
43
43
|
- **default_timezone**: If the sql type of a column is `date`/`time`/`datetime` and the embulk type is `string`, column values are formatted int this default_timezone. You can overwrite timezone for each columns using column_options option. (string, default: `UTC`)
|
44
|
-
- **
|
44
|
+
- **default_column_options**: advanced: column_options for each JDBC type as default. key-value pairs where key is a JDBC type (e.g. 'DATE', 'BIGINT') and value is same as column_options's value.
|
45
|
+
- **column_options**: advanced: key-value pairs where key is a column name and value is options for the column.
|
45
46
|
- **value_type**: embulk get values from database as this value_type. Typically, the value_type determines `getXXX` method of `java.sql.PreparedStatement`.
|
46
47
|
(string, default: depends on the sql type of the column. Available values options are: `long`, `double`, `float`, `decimal`, `boolean`, `string`, `json`, `date`, `time`, `timestamp`)
|
47
48
|
- **type**: Column values are converted to this embulk type.
|
@@ -50,6 +51,8 @@ embulk "-J-Djava.library.path=C:\drivers" run input-sqlserver.yml
|
|
50
51
|
- **timestamp_format**: If the sql type of the column is `date`/`time`/`datetime` and the embulk type is `string`, column values are formatted by this timestamp_format. And if the embulk type is `timestamp`, this timestamp_format may be used in the output plugin. For example, stdout plugin use the timestamp_format, but *csv formatter plugin doesn't use*. (string, default : `%Y-%m-%d` for `date`, `%H:%M:%S` for `time`, `%Y-%m-%d %H:%M:%S` for `timestamp`)
|
51
52
|
- **timezone**: If the sql type of the column is `date`/`time`/`datetime` and the embulk type is `string`, column values are formatted in this timezone.
|
52
53
|
(string, value of default_timezone option is used by default)
|
54
|
+
- **before_setup**: if set, this SQL will be executed before setup. You can prepare table for input by this option.
|
55
|
+
- **before_select**: if set, this SQL will be executed before the SELECT query in the same transaction.
|
53
56
|
- **after_select**: if set, this SQL will be executed after the SELECT query in the same transaction.
|
54
57
|
|
55
58
|
|
@@ -86,7 +89,7 @@ Then, it updates `last_record: ` so that next execution uses the updated last_re
|
|
86
89
|
CREATE INDEX embulk_incremental_loading_index ON table (updated_at, id);
|
87
90
|
```
|
88
91
|
|
89
|
-
Recommended usage is to leave `incremental_columns` unset and let this plugin automatically finds an IDENTITY primary key. Currently, only strings and
|
92
|
+
Recommended usage is to leave `incremental_columns` unset and let this plugin automatically finds an IDENTITY primary key. Currently, only strings, integers and DATETIME are supported as incremental_columns.
|
90
93
|
|
91
94
|
### Use incremental loading with raw query
|
92
95
|
|
@@ -179,6 +182,9 @@ in:
|
|
179
182
|
table: "my_table"
|
180
183
|
select: "col1, col2, col3"
|
181
184
|
where: "col4 != 'a'"
|
185
|
+
default_column_options:
|
186
|
+
TIMESTAMP: { type: string, timestamp_format: "%Y/%m/%d %H:%M:%S", timezone: "+0900"}
|
187
|
+
BIGINT: { type: string }
|
182
188
|
column_options:
|
183
189
|
col1: {type: long}
|
184
190
|
col3: {type: string, timestamp_format: "%Y/%m/%d", timezone: "+0900"}
|
data/build.gradle
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-sqlserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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:
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Selects records from a table.
|
14
14
|
email:
|
@@ -19,8 +19,8 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- build.gradle
|
22
|
-
- classpath/embulk-input-jdbc-0.
|
23
|
-
- classpath/embulk-input-sqlserver-0.
|
22
|
+
- classpath/embulk-input-jdbc-0.10.0.jar
|
23
|
+
- classpath/embulk-input-sqlserver-0.10.0.jar
|
24
24
|
- classpath/jtds-1.3.1.jar
|
25
25
|
- lib/embulk/input/sqlserver.rb
|
26
26
|
- src/main/java/org/embulk/input/SQLServerInputPlugin.java
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
requirements: []
|
54
54
|
rubyforge_project:
|
55
|
-
rubygems_version: 2.
|
55
|
+
rubygems_version: 2.6.13
|
56
56
|
signing_key:
|
57
57
|
specification_version: 4
|
58
58
|
summary: JDBC input plugin for Embulk
|
Binary file
|
Binary file
|