Sha256: 807b1ecc300e9f24d1d35e5ab49c21a70f7f05847fa88e01d52aafabce1cd212
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
[![Build Status](https://secure.travis-ci.org/toyama0919/fluent-plugin-mysql-prepared-statement.png?branch=master)](http://travis-ci.org/toyama0919/fluent-plugin-mysql-prepared-statement) # fluent-plugin-mysql-prepared-statement fluent plugin mysql prepared statement query ## Installation ### td-agent(Linux) /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-mysql-prepared-statement ### td-agent(Mac) sudo /usr/local/Cellar/td-agent/1.1.XX/bin/fluent-gem install fluent-plugin-mysql-prepared-statement ### fluentd only gem install fluent-plugin-mysql-prepared-statement ## Parameters param|value --------|------ output_tag|output tag(require) host|database host(default: 127.0.0.1) port|database port(default: 3306) database|database name(require) username|user(require) password|password(default: blank) key_names|prepared statement value(require) sql|running sql , prepared statement query(require) ## Configuration Example ``` <match mysql.input> type mysql_prepared_statement output_tag mysql.output host localhost database test_app_development username root password hogehoge key_names id,user_name sql select * from users where id = ? and user_name = ? flush_interval 10s </match> ``` Assume following input is coming: ```js mysql.input {"id":"1", "user_name":"toyama"} ``` then output becomes as below (indented): ```js mysql.output {"id":122,"user_name":"toyama","created_at":"2014-01-01 19:10:27 +0900","updated_at":"2014-01-01 19:10:27 +0900"} ``` running query =>[select * from users where id = 1 and user_name = 'toyama'] ## spec ``` rake test ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new [Pull Request](../../pull/new/master) ## Copyright Copyright (c) 2013 Hiroshi Toyama. See [LICENSE](LICENSE) for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-mysql-prepared-statement-0.0.1 | README.md |