Sha256: cb866b443442fbbd93b4b97a344db4ef200322e8a141bb490c391f9c52f63a57

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

# 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;
# }

def psql(opts, stream)
  IO.popen("psql #{opts}", 'w') do |io| 
    io.puts stream
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
og-0.40.0 lib/og/adapter/postgresql/script.rb