Sha256: ecdc3f0bafb10f8127722b484da0ac5da26ad342ae13043432775f93a557b3a1
Contents?: true
Size: 325 Bytes
Versions: 1
Compression:
Stored size: 325 Bytes
Contents
# 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; # } 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.41.0 | lib/og/adapter/postgresql/script.rb |