fluent-plugin-mysql 0.0.9 → 0.1.0

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: 4aeb921f12fcfa4b99d1c1b75e54ec1ca13b81fb
4
- data.tar.gz: 20bc5df93a4ab66f7896ea1870167f764962dfff
3
+ metadata.gz: 341f3104d55640ff44ceb5440885ec8528a1ce70
4
+ data.tar.gz: 4f66da8fa968e4aa78d302e9c2039a2294c966e9
5
5
  SHA512:
6
- metadata.gz: 0918d0a678fe2b122a4cbb4b732798eebed884dfa280281f626b8d3c2d60b62aa8535710bac78247d5a25b3fc98dea1e7a15826198d84088ca8b8ad252961514
7
- data.tar.gz: ba434b5bc888fe1fe16f12ec3c2cf830730f7e05c2d5037c225a473c68b6a316c6e538f63bfaf5c8fbb0615f778db71cd4db5e1f2ec138664b6ee4450cb3bdc9
6
+ metadata.gz: 227fda4952a521d0529035eed4039d3bb85d1af41b8245d9cf5c5e065d11e982411b56bfacdbc01abd9471f88d9c21e71be70ef9157a820ef847a5088d4008ba
7
+ data.tar.gz: 553d05fcd64ffaf61959abe09e45e9f4d4e567ebc69120219c8ead56115281d73dd37121652d5ea3a51aff17e462dc562662fa522177f98ffae35340c63fe28a
data/README.md CHANGED
@@ -13,6 +13,7 @@ fluent-plugin-mysql-bulk merged this repository.
13
13
  param|value
14
14
  --------|------
15
15
  host|database host(default: 127.0.0.1)
16
+ port|database port(default: 3306)
16
17
  database|database name(require)
17
18
  username|user(require)
18
19
  password|password(default: blank)
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-mysql"
4
- gem.version = "0.0.9"
4
+ gem.version = "0.1.0"
5
5
  gem.authors = ["TAGOMORI Satoshi", "Toyama Hiroshi"]
6
6
  gem.email = ["tagomoris@gmail.com", "toyama0919@gmail.com"]
7
7
  gem.description = %q{fluent plugin to insert mysql as json(single column) or insert statement}
@@ -3,18 +3,30 @@ module Fluent
3
3
  class Fluent::MysqlBulkOutput < Fluent::BufferedOutput
4
4
  Fluent::Plugin.register_output('mysql_bulk', self)
5
5
 
6
- config_param :host, :string, default: '127.0.0.1'
7
- config_param :port, :integer, default: 3306
8
- config_param :database, :string
9
- config_param :username, :string
10
- config_param :password, :string, default: '', secret: true
11
-
12
- config_param :column_names, :string
13
- config_param :key_names, :string, default: nil
14
- config_param :table, :string
15
-
16
- config_param :on_duplicate_key_update, :bool, default: false
17
- config_param :on_duplicate_update_keys, :string, default: nil
6
+ config_param :host, :string, default: '127.0.0.1',
7
+ :desc => "Database host."
8
+ config_param :port, :integer, default: 3306,
9
+ :desc => "Database port."
10
+ config_param :database, :string,
11
+ :desc => "Database name."
12
+ config_param :username, :string,
13
+ :desc => "Database user."
14
+ config_param :password, :string, default: '', secret: true,
15
+ :desc => "Database password."
16
+
17
+ config_param :column_names, :string,
18
+ :desc => "Bulk insert column."
19
+ config_param :key_names, :string, default: nil,
20
+ :desc => <<-DESC
21
+ Value key names, ${time} is placeholder Time.at(time).strftime("%Y-%m-%d %H:%M:%S").
22
+ DESC
23
+ config_param :table, :string,
24
+ :desc => "Bulk insert table."
25
+
26
+ config_param :on_duplicate_key_update, :bool, default: false,
27
+ :desc => "On duplicate key update enable."
28
+ config_param :on_duplicate_update_keys, :string, default: nil,
29
+ :desc => "On duplicate key update column, comma separator."
18
30
 
19
31
  attr_accessor :handler
20
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-08 00:00:00.000000000 Z
12
+ date: 2016-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.2
124
+ rubygems_version: 2.4.3
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: fluent plugin to insert mysql