metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
RbMysql#initialize_orig
:call-seq:
new(conninfo, opt={})
new(conninfo, opt={}) {|my| ...}
Connect to mysqld.
If block is specified then the connection is closed when exiting the block.
=== Argument
conninfo ::
[String / URI / Hash] Connection information.
If conninfo is String then it's format must be "mysql://user:password@hostname:port/dbname".
If conninfo is URI then it's scheme must be "mysql".
If conninfo is Hash then valid keys are :host, :user, :password, :db, :port, :socket and :flag.
opt :: [Hash] options.
=== Options
:connect_timeout :: [Numeric] The number of seconds before connection timeout.
:init_command :: [String] Statement to execute when connecting to the MySQL server.
:charset :: [String / Mysql::Charset] The character set to use as the default character set.
:read_timeout :: [The timeout in seconds for attempts to read from the server.
:write_timeout :: [Numeric] The timeout in seconds for attempts to write to the server.
:found_rows :: [Boolean] Return the number of found (matched) rows, not the number of changed rows.
:ignore_space :: [Boolean] Allow spaces after function names.
:interactive :: [Boolean] Allow `interactive_timeout' seconds (instead of `wait_timeout' seconds) of inactivity before closing the connection.
:local_files :: [Boolean] Enable `LOAD DATA LOCAL' handling.
:no_schema :: [Boolean] Don't allow the DB_NAME.TBL_NAME.COL_NAME syntax.
=== Block parameter
my :: [ Mysql ]Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/rbmysql/compat.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RbMysql-initialize_orig-for-pr
# Commit to gitgit add lib/rbmysql/compat.rbgit commit -m "better docs for RbMysql#initialize_orig"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RbMysql-initialize_orig-for-pr
hub pull-request
# Celebrate!