metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
RbMysql#query
Execute query string.
If params is specified, then the query is executed as prepared-statement automatically.
=== Argument
str :: [String] Query.
params :: Parameters corresponding to place holder (`?') in str.
block :: If it is given then it is evaluated with Result object as argument.
=== Return
Mysql::Result :: If result set exist.
nil :: If the query does not return result set.
self :: If block is specified.
=== Block parameter
[ Mysql::Result ]
=== Example
my.query("select 1,NULL,'abc'").fetch # => [1, nil, "abc"]Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/rbmysql.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RbMysql-query-for-pr
# Commit to gitgit add lib/rbmysql.rbgit commit -m "better docs for RbMysql#query"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RbMysql-query-for-pr
hub pull-request
# Celebrate!