mysqlplus/test/async_query_with_block_test.rb
2008-10-08 17:09:47 +01:00

7 lines
183 B
Ruby

require File.dirname(__FILE__) + '/test_helper'
m = Mysql.real_connect('localhost','root','','mysql')
m.c_async_query( 'SELECT * FROM user' ) do |result|
puts result.inspect
end