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: 99 of 164,258
Downloads: 129,458,017
Daily
Ranking: 123 of 164,228
Downloads: 98,425
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
154 | 80,078,727 | database_cleaner |
324 | 40,079,434 | carrierwave |
515 | 30,941,796 | paper_trail |
1,018 | 10,192,899 | seed-fu |
1,086 | 9,143,779 | marginalia |
1,119 | 8,777,147 | strong_migrations |
1,141 | 8,441,744 | groupdate |
1,216 | 7,077,702 | audited |
1,302 | 6,220,012 | scenic |
1,377 | 5,517,709 | authlogic |
1,474 | 4,740,780 | ar-octopus |
1,505 | 4,534,467 | rspec_profiling |
1,531 | 4,371,039 | active_record_union |
1,550 | 4,268,978 | activerecord_sane_schema_dumper |
1,591 | 4,037,677 | paper_trail-association_tracking |
1,643 | 3,785,714 | activerecord-explain-analyze |
1,699 | 3,498,367 | lockbox |
1,753 | 3,306,767 | gitlab-mail_room |
1,758 | 3,273,041 | postgres_ext |
1,760 | 3,269,438 | geokit-rails |
Depends on
Rank | Downloads | Name |
---|---|---|
7 | 519,095,896 | rspec |
135 | 93,170,653 | rdoc |
1,219 | 7,014,788 | hoe |
1,331 | 5,962,481 | rake-compiler |
3,365 | 848,267 | rake-compiler-dock |
8,437 | 122,093 | hoe-bundler |
16,258 | 43,012 | hoe-deveiate |
16,351 | 42,704 | hoe-mercurial |
21,042 | 29,851 | hoe-highline |