embulk-filter-mysql 0.1.0 → 0.1.1

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: e111c45ae7b1c0778579d8763d25578646d48b94
4
- data.tar.gz: 3adb179342813e12ddbe8c5c390c4ac518feac87
3
+ metadata.gz: d7dee585e2b80d2158e70ee32028bee401ea9f21
4
+ data.tar.gz: ce71e605f40be4a449379e6322927457ca18558e
5
5
  SHA512:
6
- metadata.gz: 247a0ae786842b1be33978bcc1ff321e6085f110594fda24b25f84fe6473c57e481fb728d993a4346656aa297775897c3c2a268e15c7ab269b22263a4f76039f
7
- data.tar.gz: ee2156901e57868adcebe358198f34314a03d51a8a8d83c5992f3de4f1c6a1d60520f8c8c61138ccb133edb1afd8dfd6fe99f42d007cffe7310272002f552b4a
6
+ metadata.gz: 18c8bf4569c9be072cfaa39bcf213fa5aed4875902a1010a3aa8c785d2fedbb28dcfe8afb9fc2a6c831f1ee5d8bf34cefae16f28c33483eaeb1a56e13ba5365f
7
+ data.tar.gz: 2043954828f36a5778dbd8a1eaa7589f22cae8e667ad572dabdf53de3f8c565f799ca0c4694006b8e32d39a9c4b50225eb259eaac9cb270b074101ae235fd163
data/README.md CHANGED
@@ -56,7 +56,7 @@ filters:
56
56
  user
57
57
  where id = ?
58
58
  params:
59
- - id
59
+ - user_id
60
60
  out:
61
61
  type: stdout
62
62
  ```
@@ -1,10 +1,10 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-filter-mysql"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Mysql filter plugin for Embulk. Execute prepared statements query."
7
- spec.description = "Mysql"
7
+ spec.description = "Mysql filter plugin for Embulk. Execute prepared statements query."
8
8
  spec.email = ["toyama0919@gmail.com"]
9
9
  spec.licenses = ["MIT"]
10
10
  spec.homepage = "https://github.com/toyama0919/embulk-filter-mysql"
@@ -18,6 +18,7 @@ module Embulk
18
18
  "keep_input" => config.param("keep_input", :bool, default: false)
19
19
  }
20
20
  connection = ::Mysql.real_connect(task['host'], task['user'], task['password'], task['database'], task['port'])
21
+ Embulk.logger.info "PREPARE SQL:\n#{task['query']}"
21
22
  statement = connection.prepare(task['query'])
22
23
  columns = []
23
24
  columns = columns + in_schema if task['keep_input']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
- description: Mysql
69
+ description: Mysql filter plugin for Embulk. Execute prepared statements query.
70
70
  email:
71
71
  - toyama0919@gmail.com
72
72
  executables: []