
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
MYSQLSafe abstracts some common MYSQL connection and query actions Specifically it
this
.that
)Add this line to your application's Gemfile:
gem 'MYSQLSafe'
And then execute:
$ bundle
Or install it yourself as:
$ gem install MYSQLSafe
MYSQLSafe allows you to optionally set
host
database
user
password
encoding
safe_sql_connect = MYSQLSafe::Base.new()
safe_sql_connect.user = 'username'
safe_sql_connect.host = 'myhost'
safe_sql_connect.password = ENV['MYSQLPASSWORD']
safe_sql_connect.database = 'databasename'
safe_sql_connect.encoding = 'iso-8859-1' # otherwise defaults to 'utf-8'
MYSQLSafe has one other public function which allows you to pass a MYSQL query
safe_sql_connect.connect_safe("SELECT * FROM tablename LIMIT 1;")
And it returns an Array
#=> [["1", "Sam", "Areas Of My Expertise"], ["2", "Caz", "1Q84"], ["3", "Kyle", "How I Became A Famous Novelist"]]
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Shoot me an email with any questions or ideas.
FAQs
Unknown package
We found that MYSQLSafe 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.