Helper for mysql scripts.
Example
mysql ’-u root -p’, %{
drop database if exists weblog_development;
create database weblog_development;
grant all on weblog_development.* to #{`id -un`.strip}@localhost;
}
Methods
Public Instance methods
Helper for mysql scripts.
Example
mysql ’-u root -p’, %{
drop database if exists weblog_development;
create database weblog_development;
grant all on weblog_development.* to #{`id -un`.strip}@localhost;
}
[ show source ]
# File lib/og/adapter/mysql/script.rb, line 11
11: def mysql(opts, stream)
12: IO.popen("mysql #{opts}", 'w') do |io|
13: io.puts stream
14: end
15: end