embulk-output-sqlserver 0.7.10 → 0.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/build.gradle +1 -1
- data/classpath/{embulk-output-jdbc-0.7.10.jar → embulk-output-jdbc-0.7.11.jar} +0 -0
- data/classpath/{embulk-output-sqlserver-0.7.10.jar → embulk-output-sqlserver-0.7.11.jar} +0 -0
- data/src/main/java/org/embulk/output/SQLServerOutputPlugin.java +17 -8
- data/src/test/java/org/embulk/output/sqlserver/BasicTest.java +200 -0
- data/src/test/java/org/embulk/output/sqlserver/SQLServerTests.java +80 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/setup.sql +82 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test1.csv +4 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_expected.diff +2 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_insert.yml +2 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_insert_create_expected.csv +3 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_insert_direct.yml +2 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_insert_expected.csv +4 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_merge.csv +5 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_merge.yml +2 -0
- data/src/test/resources/{sqlserver/data/test6/test6.csv → org/embulk/output/sqlserver/test/expect/basic/test_merge_expected.csv} +6 -4
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_merge_keys.yml +3 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_merge_rule.yml +3 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_merge_rule_expected.csv +6 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_native_insert_direct.yml +3 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_replace.yml +2 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_replace_longname.yml +2 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_string_timestamp.csv +4 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_string_timestamp.yml +5 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_string_timestamp_expected.csv +4 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_truncate_insert.yml +2 -0
- data/src/test/resources/org/embulk/output/sqlserver/test/expect/basic/test_truncate_insert_expected.csv +3 -0
- metadata +27 -27
- data/src/test/java/org/embulk/output/sqlserver/PreciseTime.java +0 -48
- data/src/test/java/org/embulk/output/sqlserver/SQLServerOutputPluginTest.java +0 -923
- data/src/test/resources/sqlserver/data/test1/test1.csv +0 -3
- data/src/test/resources/sqlserver/data/test2/test2.csv +0 -2
- data/src/test/resources/sqlserver/data/test3/test3.csv +0 -2
- data/src/test/resources/sqlserver/data/test4/test4.csv +0 -2
- data/src/test/resources/sqlserver/data/test5/test5.csv +0 -2
- data/src/test/resources/sqlserver/yml/test-insert-direct.yml +0 -43
- data/src/test/resources/sqlserver/yml/test-insert.yml +0 -43
- data/src/test/resources/sqlserver/yml/test-jtds.yml +0 -43
- data/src/test/resources/sqlserver/yml/test-merge-keys.yml +0 -23
- data/src/test/resources/sqlserver/yml/test-merge-rule.yml +0 -22
- data/src/test/resources/sqlserver/yml/test-merge.yml +0 -21
- data/src/test/resources/sqlserver/yml/test-native-date.yml +0 -26
- data/src/test/resources/sqlserver/yml/test-native-decimal.yml +0 -25
- data/src/test/resources/sqlserver/yml/test-native-integer.yml +0 -24
- data/src/test/resources/sqlserver/yml/test-native-string.yml +0 -25
- data/src/test/resources/sqlserver/yml/test-native.yml +0 -44
- data/src/test/resources/sqlserver/yml/test-replace-long-name.yml +0 -43
- data/src/test/resources/sqlserver/yml/test-replace.yml +0 -43
- data/src/test/resources/sqlserver/yml/test-string-timestamp.yml +0 -46
- data/src/test/resources/sqlserver/yml/test-truncate-insert.yml +0 -43
@@ -1,46 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/sqlserver/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: TINYINT_ITEM, type: long}
|
13
|
-
- {name: SMALLINT_ITEM, type: long}
|
14
|
-
- {name: INT_ITEM, type: long}
|
15
|
-
- {name: BIGINT_ITEM, type: long}
|
16
|
-
- {name: BIT_ITEM, type: boolean}
|
17
|
-
- {name: DECIMAL_ITEM, type: string}
|
18
|
-
- {name: NUMERIC_ITEM, type: string}
|
19
|
-
- {name: SMALLMONEY_ITEM, type: string}
|
20
|
-
- {name: MONEY_ITEM, type: string}
|
21
|
-
- {name: REAL_ITEM, type: double}
|
22
|
-
- {name: FLOAT_ITEM, type: double}
|
23
|
-
- {name: CHAR_ITEM, type: string}
|
24
|
-
- {name: VARCHAR_ITEM, type: string}
|
25
|
-
- {name: TEXT_ITEM, type: string}
|
26
|
-
- {name: NCHAR_ITEM, type: string}
|
27
|
-
- {name: NVARCHAR_ITEM, type: string}
|
28
|
-
- {name: NTEXT_ITEM, type: string}
|
29
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
30
|
-
- {name: DATETIME_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S.%N'}
|
31
|
-
- {name: DATETIME2_ITEM, type: string}
|
32
|
-
- {name: DATETIME2_2_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S.%N'}
|
33
|
-
- {name: SMALLDATETIME_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
34
|
-
- {name: TIME_ITEM, type: string}
|
35
|
-
- {name: TIME_2_ITEM, type: timestamp, format: '%H:%M:%S.%N'}
|
36
|
-
out:
|
37
|
-
type: sqlserver
|
38
|
-
host: #host#
|
39
|
-
database: #database#
|
40
|
-
user: #user#
|
41
|
-
password: #password#
|
42
|
-
table: TEST1
|
43
|
-
mode: insert_direct
|
44
|
-
column_options:
|
45
|
-
DATETIME2_ITEM: {value_type: pass}
|
46
|
-
TIME_ITEM: {value_type: pass}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
in:
|
2
|
-
type: file
|
3
|
-
path_prefix: '/sqlserver/data/test1/test1.csv'
|
4
|
-
parser:
|
5
|
-
charset: UTF-8
|
6
|
-
newline: CRLF
|
7
|
-
type: csv
|
8
|
-
delimiter: ','
|
9
|
-
quote: ''
|
10
|
-
columns:
|
11
|
-
- {name: ID, type: string}
|
12
|
-
- {name: TINYINT_ITEM, type: long}
|
13
|
-
- {name: SMALLINT_ITEM, type: long}
|
14
|
-
- {name: INT_ITEM, type: long}
|
15
|
-
- {name: BIGINT_ITEM, type: long}
|
16
|
-
- {name: BIT_ITEM, type: boolean}
|
17
|
-
- {name: DECIMAL_ITEM, type: string}
|
18
|
-
- {name: NUMERIC_ITEM, type: string}
|
19
|
-
- {name: SMALLMONEY_ITEM, type: string}
|
20
|
-
- {name: MONEY_ITEM, type: string}
|
21
|
-
- {name: REAL_ITEM, type: double}
|
22
|
-
- {name: FLOAT_ITEM, type: double}
|
23
|
-
- {name: CHAR_ITEM, type: string}
|
24
|
-
- {name: VARCHAR_ITEM, type: string}
|
25
|
-
- {name: TEXT_ITEM, type: string}
|
26
|
-
- {name: NCHAR_ITEM, type: string}
|
27
|
-
- {name: NVARCHAR_ITEM, type: string}
|
28
|
-
- {name: NTEXT_ITEM, type: string}
|
29
|
-
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
30
|
-
- {name: DATETIME_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S.%N'}
|
31
|
-
- {name: DATETIME2_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S.%N'}
|
32
|
-
- {name: DATETIME2_2_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S.%N'}
|
33
|
-
- {name: SMALLDATETIME_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
34
|
-
- {name: TIME_ITEM, type: timestamp, format: '%H:%M:%S.%N'}
|
35
|
-
- {name: TIME_2_ITEM, type: timestamp, format: '%H:%M:%S.%N'}
|
36
|
-
out:
|
37
|
-
type: sqlserver
|
38
|
-
host: #host#
|
39
|
-
database: #database#
|
40
|
-
user: #user#
|
41
|
-
password: #password#
|
42
|
-
table: TEST1
|
43
|
-
mode: truncate_insert
|