Helper for sqlite scripts.
Example
sqlite ‘filename’, %{
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 sqlite scripts.
Example
sqlite ‘filename’, %{
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/sqlite/script.rb, line 11
11: def sqlite(opts, stream)
12: IO.popen("mysql #{opts}", 'w') do |io|
13: io.puts stream
14: end
15: end