
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
fluent-plugin-mysql-prepared-statement
Advanced tools
fluent plugin mysql prepared statement query
/usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-mysql-prepared-statement
sudo /usr/local/Cellar/td-agent/1.1.XX/bin/fluent-gem install fluent-plugin-mysql-prepared-statement
gem install fluent-plugin-mysql-prepared-statement
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) |
<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:
mysql.input {"id":"1", "user_name":"toyama"}
then output becomes as below (indented):
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']
<match mysql.input>
type mysql_prepared_statement
output_tag mysql.output
host localhost
database test_app_development
username root
password hogehoge
key_names user_name
sql INSERT INTO users ( user_name,created_at,updated_at) VALUES (?,now(),now())
flush_interval 10s
</match>
Assume following input is coming:
mysql.input {"id":"1", "user_name":"toyama"}
no output by insert or update
running query =>[INSERT INTO users ( user_name,created_at,updated_at) VALUES ('toyama',now(),now())]
bundle install
rake test
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Copyright (c) 2013 Hiroshi Toyama. See LICENSE for details.
FAQs
Unknown package
We found that fluent-plugin-mysql-prepared-statement demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.