Need help with ruby-mysql?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

tmtm
136 Stars 32 Forks MIT License 181 Commits 14 Opened issues

Description

MySQL connector for Ruby. pure Ruby version.

Services available

!
?

Need anything else?

Contributors list

# 293,477
Shell
Python
HTML
padrino
167 commits
# 417,014
shardin...
Rails
activer...
Python
1 commit
# 39,021
sed
object-...
Ruby
Shell
1 commit

ruby-mysql

Description

MySQL connector for Ruby.

Installation

gem install ruby-mysql

Synopsis

my = Mysql.connect('mysql://username:[email protected]:port/dbname?charset=utf8mb4')
my.query("select col1, col2 from tblname").each do |col1, col2|
  p col1, col2
end
stmt = my.prepare('insert into tblname (col1,col2) values (?,?)')
stmt.execute 123, 'abc'

Copyright

  • Author: TOMITA Masahiro [email protected]
  • Copyright: Copyright 2008 TOMITA Masahiro
  • License: MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.