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
psql(opts, stream)

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;

}

    # 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