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