fluent-plugin-dbi 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.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "fluent-plugin-dbi"
7
- gem.version = "0.0.1"
7
+ gem.version = "0.0.2"
8
8
  gem.authors = ["TERAOKA Yoshinori"]
9
9
  gem.email = ["yteraoka@me.com"]
10
10
  gem.description = %q{fluentd output plugin using dbi. PostgreSQL and MySQL are tested}
@@ -28,6 +28,7 @@ class DbiOutput < BufferedOutput
28
28
  def write(chunk)
29
29
  begin
30
30
  dbh = DBI.connect(@dsn, @db_user, @db_pass)
31
+ dbh['AutoCommit'] = false
31
32
  sth = dbh.prepare(@query)
32
33
  chunk.msgpack_each { |tag, time, record|
33
34
  record.key?('time') || record['time'] = time
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-dbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: 3465291673268292960
124
+ hash: 731788517215527364
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  none: false
127
127
  requirements:
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  segments:
132
132
  - 0
133
- hash: 3465291673268292960
133
+ hash: 731788517215527364
134
134
  requirements: []
135
135
  rubyforge_project: fluent-plugin-dbi
136
136
  rubygems_version: 1.8.25