embulk-input-mysql 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2cb04ad85d52e0e001953c8cca44998a36f1059
4
- data.tar.gz: 23efcf5bfa7691d30835300dbd4acac515cf575e
3
+ metadata.gz: ce1cc0bda9fc6b7d3274330e039a3cc8eed4bab5
4
+ data.tar.gz: bbd9954bd61e347fbd46fcad186f301e43bb75e7
5
5
  SHA512:
6
- metadata.gz: d578edb048ad717931f223ddc89b82f741b3ada65a7f3d6538014561c6583a15df181ce228e3478debd9583fd7864fd757e378a13ea26d9f561cb9932e34e158
7
- data.tar.gz: d1381f600ee0e925834d0cf3553da31b4d34722d86cf2df711ec831d894c0518501ac949e6c007d94013725b0b76999a12043bdfbf5d28cc511fb46edc9c9bbe
6
+ metadata.gz: 110b37febae29f93ec4eb6e6336428356c1a2108474cb3b62b96e542596cd69fd3b6d2a7bb14c520e98c9fada48b0a23ac954e671912bffc3e403282efa4dfb5
7
+ data.tar.gz: 24112e432d231826a3adb77963314af742ab7632345cfe8ea1693d04a0b9b7183e099d806176193833f222335c251201d354f9a267a3ae2ce0493d34b1aafcf2
data/README.md CHANGED
@@ -20,6 +20,7 @@ MySQL input plugins for Embulk loads records from MySQL.
20
20
  - **table**: destination table name (string, required)
21
21
  - **select**: comma-separated list of columns to select (string, default: "*")
22
22
  - **where**: WHERE condition to filter the rows (string, default: no-condition)
23
+ - **order_by**: name of the column that rows are sorted by (string, default: not sorted)
23
24
  - **fetch_rows**: number of rows to fetch one time (integer, default: 10000)
24
25
  - If this value is set to > 1:
25
26
  - It uses a server-side prepared statement and fetches rows by chunks.
@@ -128,7 +128,7 @@ public class MySQLInputPluginTest
128
128
  public void test() throws Exception
129
129
  {
130
130
  if (prepared) {
131
- tester.run(convertPath("/yml/input.yml"));
131
+ tester.run(convertPath("/mysql/yml/input.yml"));
132
132
  assertEquals(Arrays.asList(
133
133
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
134
134
  ",,,,,,,,,,,,2015-06-04 14:45:06,,",
@@ -141,7 +141,7 @@ public class MySQLInputPluginTest
141
141
  public void testString() throws Exception
142
142
  {
143
143
  if (prepared) {
144
- tester.run(convertPath("/yml/input-string.yml"));
144
+ tester.run(convertPath("/mysql/yml/input-string.yml"));
145
145
  assertEquals(Arrays.asList(
146
146
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
147
147
  ",,,,,,,,,,,,2015-06-04 14:45:06,,",
@@ -154,7 +154,7 @@ public class MySQLInputPluginTest
154
154
  public void testBoolean() throws Exception
155
155
  {
156
156
  if (prepared) {
157
- tester.run(convertPath("/yml/input-boolean.yml"));
157
+ tester.run(convertPath("/mysql/yml/input-boolean.yml"));
158
158
  assertEquals(Arrays.asList(
159
159
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
160
160
  ",,,,,,,,,,,,2015-06-04 14:45:06,,",
@@ -167,7 +167,7 @@ public class MySQLInputPluginTest
167
167
  public void testLong() throws Exception
168
168
  {
169
169
  if (prepared) {
170
- tester.run(convertPath("/yml/input-long.yml"));
170
+ tester.run(convertPath("/mysql/yml/input-long.yml"));
171
171
  assertEquals(Arrays.asList(
172
172
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
173
173
  ",,,,,,,,,,,,2015-06-04 14:45:06,,",
@@ -180,7 +180,7 @@ public class MySQLInputPluginTest
180
180
  public void testDouble() throws Exception
181
181
  {
182
182
  if (prepared) {
183
- tester.run(convertPath("/yml/input-double.yml"));
183
+ tester.run(convertPath("/mysql/yml/input-double.yml"));
184
184
  assertEquals(Arrays.asList(
185
185
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
186
186
  ",,,,,,,,,,,,2015-06-04 14:45:06,,",
@@ -193,7 +193,7 @@ public class MySQLInputPluginTest
193
193
  public void testTimestamp1() throws Exception
194
194
  {
195
195
  if (prepared) {
196
- tester.run(convertPath("/yml/input-timestamp1.yml"));
196
+ tester.run(convertPath("/mysql/yml/input-timestamp1.yml"));
197
197
  assertEquals(Arrays.asList(
198
198
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
199
199
  ",,,,,,,,,,,,2015/06/04 14:45:06,,",
@@ -206,7 +206,7 @@ public class MySQLInputPluginTest
206
206
  public void testTimestamp2() throws Exception
207
207
  {
208
208
  if (prepared) {
209
- tester.run(convertPath("/yml/input-timestamp2.yml"));
209
+ tester.run(convertPath("/mysql/yml/input-timestamp2.yml"));
210
210
  assertEquals(Arrays.asList(
211
211
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
212
212
  ",,,,,,,,,,,,2015/06/04 23:45:06,,",
@@ -219,7 +219,7 @@ public class MySQLInputPluginTest
219
219
  public void testTimestamp3() throws Exception
220
220
  {
221
221
  if (prepared) {
222
- tester.run(convertPath("/yml/input-timestamp3.yml"));
222
+ tester.run(convertPath("/mysql/yml/input-timestamp3.yml"));
223
223
  assertEquals(Arrays.asList(
224
224
  "c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15",
225
225
  ",,,,,,,,,,,,2015/06/04 23:45:06,,",
@@ -232,7 +232,7 @@ public class MySQLInputPluginTest
232
232
  public void testValueTypeString() throws Exception
233
233
  {
234
234
  if (prepared) {
235
- tester.run(convertPath("/yml/input-valuetype-string.yml"));
235
+ tester.run(convertPath("/mysql/yml/input-valuetype-string.yml"));
236
236
  assertEquals(Arrays.asList(
237
237
  "c1",
238
238
  "18446744073709551615"),
@@ -244,7 +244,7 @@ public class MySQLInputPluginTest
244
244
  public void testValueTypeDecimal() throws Exception
245
245
  {
246
246
  if (prepared) {
247
- tester.run(convertPath("/yml/input-valuetype-decimal.yml"));
247
+ tester.run(convertPath("/mysql/yml/input-valuetype-decimal.yml"));
248
248
  assertEquals(Arrays.asList(
249
249
  "c1",
250
250
  "1.8446744073709552E19"),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.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: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-06-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Selects records from a table.
14
14
  email:
@@ -23,18 +23,18 @@ files:
23
23
  - src/main/java/org/embulk/input/MySQLInputPlugin.java
24
24
  - src/main/java/org/embulk/input/mysql/MySQLInputConnection.java
25
25
  - src/test/java/org/embulk/input/mysql/MySQLInputPluginTest.java
26
- - src/test/resources/yml/input-boolean.yml
27
- - src/test/resources/yml/input-double.yml
28
- - src/test/resources/yml/input-long.yml
29
- - src/test/resources/yml/input-string.yml
30
- - src/test/resources/yml/input-timestamp1.yml
31
- - src/test/resources/yml/input-timestamp2.yml
32
- - src/test/resources/yml/input-timestamp3.yml
33
- - src/test/resources/yml/input-valuetype-decimal.yml
34
- - src/test/resources/yml/input-valuetype-string.yml
35
- - src/test/resources/yml/input.yml
36
- - classpath/embulk-input-jdbc-0.7.1.jar
37
- - classpath/embulk-input-mysql-0.7.1.jar
26
+ - src/test/resources/mysql/yml/input-boolean.yml
27
+ - src/test/resources/mysql/yml/input-double.yml
28
+ - src/test/resources/mysql/yml/input-long.yml
29
+ - src/test/resources/mysql/yml/input-string.yml
30
+ - src/test/resources/mysql/yml/input-timestamp1.yml
31
+ - src/test/resources/mysql/yml/input-timestamp2.yml
32
+ - src/test/resources/mysql/yml/input-timestamp3.yml
33
+ - src/test/resources/mysql/yml/input-valuetype-decimal.yml
34
+ - src/test/resources/mysql/yml/input-valuetype-string.yml
35
+ - src/test/resources/mysql/yml/input.yml
36
+ - classpath/embulk-input-jdbc-0.7.2.jar
37
+ - classpath/embulk-input-mysql-0.7.2.jar
38
38
  - classpath/mysql-connector-java-5.1.34.jar
39
39
  homepage: https://github.com/embulk/embulk-input-jdbc
40
40
  licenses: