Categories: Database Drivers [Edit]
pg
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].
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')
end
end
Total
Ranking: 101 of 165,954
Downloads: 139,075,873
Daily
Ranking: 125 of 165,938
Downloads: 98,549
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
322 | 43,895,100 | carrierwave |
504 | 34,347,766 | paper_trail |
971 | 12,340,372 | marginalia |
1,005 | 11,750,313 | seed-fu |
1,076 | 10,584,459 | strong_migrations |
1,234 | 7,746,092 | audited |
1,298 | 6,999,870 | scenic |
1,435 | 5,793,791 | authlogic |
1,440 | 5,748,495 | rspec_profiling |
1,518 | 5,075,733 | activerecord-explain-analyze |
1,527 | 5,015,226 | ar-octopus |
1,543 | 4,892,177 | active_record_union |
1,567 | 4,698,016 | gitlab-mail_room |
1,624 | 4,392,723 | paper_trail-association_tracking |
1,628 | 4,364,942 | activerecord_sane_schema_dumper |
1,719 | 3,910,720 | distribute_reads |
1,766 | 3,738,163 | database_cleaner-active_record |
1,845 | 3,607,710 | geokit-rails |
1,900 | 3,419,970 | redmine_crm |
1,921 | 3,316,272 | postgres_ext |
Depends on
Rank | Downloads | Name |
---|---|---|
7 | 534,062,786 | rspec |
142 | 97,094,237 | rdoc |
1,288 | 7,112,266 | hoe |
1,380 | 6,225,646 | rake-compiler |
3,395 | 904,143 | rake-compiler-dock |
8,625 | 126,102 | hoe-bundler |
16,394 | 44,609 | hoe-deveiate |
16,508 | 44,148 | hoe-mercurial |
21,104 | 31,093 | hoe-highline |