embulk-output-oracle 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +45 -2
- data/classpath/embulk-output-jdbc-0.2.3.jar +0 -0
- data/classpath/{embulk-output-oracle-0.2.2.jar → embulk-output-oracle-0.2.3.jar} +0 -0
- data/src/main/cpp/linux/build.sh +1 -1
- data/src/main/java/org/embulk/output/OracleOutputPlugin.java +5 -0
- data/src/test/resources/yml/test-insert-direct.yml +6 -6
- data/src/test/resources/yml/test-insert-oci-split.yml +6 -6
- data/src/test/resources/yml/test-insert-oci.yml +6 -6
- data/src/test/resources/yml/test-insert.yml +6 -6
- data/src/test/resources/yml/test-replace-long-name.yml +6 -6
- data/src/test/resources/yml/test-replace.yml +6 -6
- data/src/test/resources/yml/test-url.yml +6 -6
- metadata +4 -4
- data/classpath/embulk-output-jdbc-0.2.2.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b09bd7b2c26c4e4a7210e6b6b509d752af471a3
|
4
|
+
data.tar.gz: 69d5b20ee9180fa319556e92a3b48e88b18a9844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf69a1d879b5b9cce2fc495986eafa84ac14e8eae8869e94fca8455486fc85885bdb150fe854e14fa46f6e2bea3caa996a06b42ebb2b07ffc869488191b64f1
|
7
|
+
data.tar.gz: 125aed979b7d86150d785fa1b27de0a8b2f2ceb35b79bc8c02d7a18ce38fdd4bfdb33e9f0884ed7d92bd504487b611951f9cdf41c2c952a8944baf6481f23a34
|
data/README.md
CHANGED
@@ -62,6 +62,49 @@ out:
|
|
62
62
|
$ ./gradlew gem
|
63
63
|
```
|
64
64
|
|
65
|
-
|
65
|
+
#### Build environment for native library
|
66
66
|
|
67
|
-
For
|
67
|
+
For Windows (x64)
|
68
|
+
|
69
|
+
(1) Install JDK.
|
70
|
+
|
71
|
+
(2) Install Microsoft Visual Studio (only 2010 is tested).
|
72
|
+
|
73
|
+
(3) Install Oracle Instant Client SDK 11.1.0.6.0 for Microsoft Windows (x64).
|
74
|
+
|
75
|
+
(4) Set environment variables.
|
76
|
+
|
77
|
+
* JAVA_HOME
|
78
|
+
* OCI\_SDK_PATH ("sdk" directory of Oracle Instant Client)
|
79
|
+
|
80
|
+
(5) Open src/main/cpp/win/embulk-output-oracle.sln by Visual Studio and build.
|
81
|
+
|
82
|
+
For Windows command line, the following are needed in addition to (1) - (4).
|
83
|
+
|
84
|
+
(6) Set environment variables.
|
85
|
+
|
86
|
+
* MSVC_PATH (ex. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC)
|
87
|
+
* MSSDK_PATH (ex. C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A)
|
88
|
+
|
89
|
+
(7) Execute src/main/cpp/win/build.bat .
|
90
|
+
|
91
|
+
|
92
|
+
For Linux (x64) (only Ubuntu Server 14.04 is tested)
|
93
|
+
|
94
|
+
(1) Install JDK.
|
95
|
+
|
96
|
+
(2) Install gcc and g++ .
|
97
|
+
|
98
|
+
(3) Install Oracle Instant Client Basic and SDK 11.1.0.6.0 for Linux (x64).
|
99
|
+
|
100
|
+
(4) Create symbolic links of OCI libraries.
|
101
|
+
|
102
|
+
ln -s libocci.so.11.1 libocci.so
|
103
|
+
ln -s libclntsh.so.11.1 libclntsh.so
|
104
|
+
|
105
|
+
(5) Set environment variables.
|
106
|
+
|
107
|
+
* JAVA_HOME
|
108
|
+
* OCI_PATH (the directory of Oracle Instant Client Basic and the parent of the "sdk" directory)
|
109
|
+
|
110
|
+
(6) Execute src/main/cpp/linux/build.sh .
|
Binary file
|
Binary file
|
data/src/main/cpp/linux/build.sh
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
package org.embulk.output;
|
2
2
|
|
3
3
|
import java.io.IOException;
|
4
|
+
import java.lang.UnsupportedOperationException;
|
4
5
|
import java.sql.SQLException;
|
5
6
|
import java.util.Properties;
|
6
7
|
|
@@ -120,6 +121,10 @@ public class OracleOutputPlugin
|
|
120
121
|
@Override
|
121
122
|
protected BatchInsert newBatchInsert(PluginTask task) throws IOException, SQLException
|
122
123
|
{
|
124
|
+
if (task.getMode().isMerge()) {
|
125
|
+
throw new UnsupportedOperationException("mode 'merge' is not implemented for this type");
|
126
|
+
}
|
127
|
+
|
123
128
|
OraclePluginTask oracleTask = (OraclePluginTask) task;
|
124
129
|
JdbcOutputConnector connector = getConnector(task, true);
|
125
130
|
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
host: localhost
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
host: localhost
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
host: localhost
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
host: localhost
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
host: localhost
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
host: localhost
|
@@ -8,12 +8,12 @@ in:
|
|
8
8
|
delimiter: ','
|
9
9
|
quote: ''
|
10
10
|
columns:
|
11
|
-
- {name:
|
12
|
-
- {name:
|
13
|
-
- {name:
|
14
|
-
- {name:
|
15
|
-
- {name:
|
16
|
-
- {name:
|
11
|
+
- {name: ID, type: string}
|
12
|
+
- {name: VARCHAR2_ITEM, type: string}
|
13
|
+
- {name: INTEGER_ITEM, type: long}
|
14
|
+
- {name: NUMBER_ITEM, type: string}
|
15
|
+
- {name: DATE_ITEM, type: timestamp, format: '%Y/%m/%d'}
|
16
|
+
- {name: TIMESTAMP_ITEM, type: timestamp, format: '%Y/%m/%d %H:%M:%S'}
|
17
17
|
out:
|
18
18
|
type: oracle
|
19
19
|
user: TEST_USER
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Inserts or updates records to a table.
|
14
14
|
email:
|
@@ -66,8 +66,8 @@ files:
|
|
66
66
|
- src/test/resources/yml/test-replace-long-name.yml
|
67
67
|
- src/test/resources/yml/test-replace.yml
|
68
68
|
- src/test/resources/yml/test-url.yml
|
69
|
-
- classpath/embulk-output-jdbc-0.2.
|
70
|
-
- classpath/embulk-output-oracle-0.2.
|
69
|
+
- classpath/embulk-output-jdbc-0.2.3.jar
|
70
|
+
- classpath/embulk-output-oracle-0.2.3.jar
|
71
71
|
homepage: https://github.com/embulk/embulk-output-jdbc
|
72
72
|
licenses:
|
73
73
|
- Apache 2.0
|
Binary file
|