Sha256: b85b1b3fd8b4afbc84985ffe7528072cabacceb2aaf1f114cd519925d658da83

Contents?: true

Size: 421 Bytes

Versions: 79

Compression:

Stored size: 421 Bytes

Contents

require("cipherstash-pg")
$stderr.puts("Opening database connection ...")
conn = CipherStashPG.connect(:dbname => "test")
conn.transaction do
  conn.exec("DECLARE myportal CURSOR FOR select * from pg_database")
  res = conn.exec("FETCH ALL IN myportal")
  puts(res.fields.collect { |fname| ("%-15s" % [fname]) }.join(""))
  res.values.collect do |row|
    puts(row.collect { |col| ("%-15s" % [col]) }.join(""))
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

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