embulk-input-oracle 0.6.1 → 0.6.2

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: 50c40cde3be970585fe7f306f6be239566981651
4
- data.tar.gz: e6d8a5fa4f17434f93714fe8554dcd66c4f444f0
3
+ metadata.gz: 13ed35db5d4f69ec30432298b64e5a57064bac7e
4
+ data.tar.gz: 281663c19d02d1a1d08e8b187f3156cbea21e0f7
5
5
  SHA512:
6
- metadata.gz: 3249e4da1ec6af857a48cd902103745f1b88f543a5d95c13ec4460e15033389b2bb652cfffc2d132dc7a19f712dc71c2c3844778aa8be0ae00c5247bf7582753
7
- data.tar.gz: 693fcfeb2d8abc52eb7ea154b9b74673b1643ecc101095b47264d3e495e191422ff3a96a0539f888d065bd84ebea8ea630cd0bf5e386011cce6d7e1eb8aa1c69
6
+ metadata.gz: c7f9df11f027309647abd53ecf1dbffd4483e419d11f38e95f9b4407f3bef7196c8a81c9382ac0ce9c07a5ccf08af421a4e2be06664e4894534b0e01074ee100
7
+ data.tar.gz: aa9ecd21ca8ff9dfd1fe361ad1cc373297fdb29ac5722f698384afe96b3d61463d9cbd39b633a3a885442a9a4f9b3d03c16e29ae1ca8cc024669d69551376ac4
data/README.md CHANGED
@@ -15,6 +15,7 @@ Oracle input plugins for Embulk loads records from Oracle.
15
15
  - **user**: database login user name (string, required)
16
16
  - **password**: database login password (string, default: "")
17
17
  - **database**: destination database name (string, required if url is not set)
18
+ - **schema**: destination schema name (string, default: use the default schema). old Oracle JDBC driver (ojdbc6.jar) doesn't support.
18
19
  - **url**: URL of the JDBC connection (string, optional)
19
20
  - If you write SQL directly,
20
21
  - **query**: SQL to run (string)
@@ -35,6 +35,10 @@ public class OracleInputPlugin
35
35
  @ConfigDefault("null")
36
36
  public Optional<String> getDatabase();
37
37
 
38
+ @Config("schema")
39
+ @ConfigDefault("null")
40
+ public Optional<String> getSchema();
41
+
38
42
  @Config("url")
39
43
  @ConfigDefault("null")
40
44
  public Optional<String> getUrl();
@@ -94,7 +98,7 @@ public class OracleInputPlugin
94
98
 
95
99
  Connection con = DriverManager.getConnection(url, props);
96
100
  try {
97
- OracleInputConnection c = new OracleInputConnection(con, oracleTask.getUser());
101
+ OracleInputConnection c = new OracleInputConnection(con, oracleTask.getSchema().orNull());
98
102
  con = null;
99
103
  return c;
100
104
  } finally {
@@ -15,7 +15,7 @@ public class OracleInputConnection extends JdbcInputConnection {
15
15
  @Override
16
16
  protected void setSearchPath(String schema) throws SQLException
17
17
  {
18
- // NOP
18
+ connection.setSchema(schema);
19
19
  }
20
20
 
21
21
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-oracle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
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-12-08 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Selects records from a table.
14
14
  email:
@@ -22,8 +22,8 @@ files:
22
22
  - lib/embulk/input/oracle.rb
23
23
  - src/main/java/org/embulk/input/OracleInputPlugin.java
24
24
  - src/main/java/org/embulk/input/oracle/OracleInputConnection.java
25
- - classpath/embulk-input-jdbc-0.6.1.jar
26
- - classpath/embulk-input-oracle-0.6.1.jar
25
+ - classpath/embulk-input-jdbc-0.6.2.jar
26
+ - classpath/embulk-input-oracle-0.6.2.jar
27
27
  homepage: https://github.com/embulk/embulk-input-jdbc
28
28
  licenses:
29
29
  - Apache 2.0