LogoopenSUSE Build Service > Projects
Sign Up | Log In

Pg is the Ruby interface to the {PostgreSQL

Pg is the Ruby interface to the {PostgreSQL
It works with {PostgreSQL 9.1 and
A small example usage:
#!/usr/bin/env ruby
require 'pg'
# Output a table of current connections to the DB
conn = PG.connect( dbname: 'sales' )
conn.exec( "SELECT * FROM pg_stat_activity" ) do |result|
puts "     PID | User             | Query"
result.each do |row|
puts " %7d | %-16s | %s " %
row.values_at('procpid', 'usename', 'current_query')

Source Files

Filename Size Changed Actions
gem2rpm.yml 1.75 KB Download File
pg-1.1.4.gem 229 KB Download File
rubygem-pg-rpmlintrc 45 Bytes Download File
rubygem-pg.changes 2.25 KB Download File
rubygem-pg.spec 2.45 KB Download File
series 21 Bytes Download File
use-pkg-config.patch 1.93 KB Download File

Comments for home:darix:apps (0)

Login required, please login or signup in order to comment