embulk-plugin-mysql 0.0.1 → 0.0.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: b419b7be3f8e73c1dd850388c59207c006a1cf47
4
- data.tar.gz: f78ceaac6039b01d4e0474f18de2381bf84c271d
3
+ metadata.gz: a06d1ab268b8a00fe801e778477b8708b179284c
4
+ data.tar.gz: eaebcce96684d568a5dcf19508a2206aadcec403
5
5
  SHA512:
6
- metadata.gz: 7d9c90036cb074bde6abea859a622623b31d56a4ced846b09ba4fcfa1f59c0fd202e2e936060dc51de9588649d97da51ac38d03da3247dd5099ed3539cb60bc2
7
- data.tar.gz: dc46c6c7bd08a632f5ffff1a2c3079dd25f0b6755e2a43c452025c9103c7ae4541a30bb26b5ef48a219576b18a48a60b6aa1bc6ea50eab7b33b1b2b79136ae63
6
+ metadata.gz: ebb9a9e61849c4165ef1a520abd071b4801956c3d6d4be0543c0555a2a5d4bcefeb35731b214b5d52509deeda1ceb5f4d0a24abb21530739d678d086a56edabe
7
+ data.tar.gz: f704117c66dd3420ef9122847ca5d6a0b49ebb91ec3b6735ff1294c81fc4b3515076a4c665bfbc9f41a35ab82bdd2c003c21df1e8a5f58f66c7f3db302ad3d69
@@ -2,7 +2,7 @@
2
2
  module Embulk
3
3
  module Plugin
4
4
  module MySQL
5
- VERSION = '0.0.1'
5
+ VERSION = '0.0.2'
6
6
  end
7
7
  end
8
8
  end
@@ -40,9 +40,7 @@ module Embulk
40
40
 
41
41
  sql_schema = self.class.to_mysql_schema schema
42
42
 
43
- # TODO: RESUMING IS NOT SUPPORTED ON THIS PLUGIN!!!
44
- @mysql.query("DROP TABLE IF EXISTS #{quoted_table_name}")
45
- @mysql.query("CREATE TABLE #{quoted_table_name} (#{sql_schema})")
43
+ @mysql.query("CREATE TABLE IF NOT EXISTS #{quoted_table_name} (#{sql_schema})")
46
44
  end
47
45
 
48
46
  def close
@@ -50,8 +48,6 @@ module Embulk
50
48
  end
51
49
 
52
50
  def add(page)
53
- require 'pp'
54
- statement =
55
51
  page.each do |record|
56
52
  # TODO: Support BULK-INSERT or LOAD INFILE
57
53
  @mysql.query("INSERT INTO #{quoted_table_name} (#{quoted_column_names}) VALUES (#{self.class.to_sql_values(record)})")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-plugin-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shiracha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-07 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement