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 +4 -4
- data/README.md +1 -0
- data/fluent-plugin-mysql.gemspec +1 -1
- data/lib/fluent/plugin/out_mysql_bulk.rb +24 -12
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 341f3104d55640ff44ceb5440885ec8528a1ce70
|
4
|
+
data.tar.gz: 4f66da8fa968e4aa78d302e9c2039a2294c966e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 227fda4952a521d0529035eed4039d3bb85d1af41b8245d9cf5c5e065d11e982411b56bfacdbc01abd9471f88d9c21e71be70ef9157a820ef847a5088d4008ba
|
7
|
+
data.tar.gz: 553d05fcd64ffaf61959abe09e45e9f4d4e567ebc69120219c8ead56115281d73dd37121652d5ea3a51aff17e462dc562662fa522177f98ffae35340c63fe28a
|
data/README.md
CHANGED
data/fluent-plugin-mysql.gemspec
CHANGED
@@ -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
|
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
|
-
|
8
|
-
config_param :
|
9
|
-
|
10
|
-
config_param :
|
11
|
-
|
12
|
-
config_param :
|
13
|
-
|
14
|
-
config_param :
|
15
|
-
|
16
|
-
|
17
|
-
config_param :
|
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
|
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-
|
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.
|
124
|
+
rubygems_version: 2.4.3
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: fluent plugin to insert mysql
|