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

Version Path
cipherstash-pg-1.0.0.beta.22-x86_64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.22-x86_64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.22-arm64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.22-aarch64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.21-x86_64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.21-aarch64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.21-arm64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.21-x86_64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.19-x86_64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.19-x86_64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.19-arm64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.19-aarch64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.18-x86_64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.18-x86_64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.18-arm64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.18-aarch64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.17-aarch64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.17-x86_64-darwin ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.17-x86_64-linux ./sample/copyto.rb
cipherstash-pg-1.0.0.beta.17-arm64-darwin ./sample/copyto.rb