Sha256: e304199cb9d5140f0a8b4b19c797ee7e13f37e64427473afccfa2949042397ce
Contents?: true
Size: 336 Bytes
Versions: 79
Compression:
Stored size: 336 Bytes
Contents
require("cipherstash-pg") require("stringio") $stderr.puts("Opening database connection ...") conn = CipherStashPG.connect(:dbname => "test") $stderr.puts("Running COPY command ...") buf = "" conn.transaction do conn.exec("COPY logs TO STDOUT WITH csv") while buf = conn.get_copy_data do $stdout.puts(buf) end end conn.finish
Version data entries
79 entries across 79 versions & 1 rubygems