pg logo
C1249F0E-8D06-4407-9877-A93914C30612
/ rubygems package

pg

Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
386
1
+ 1
0

What is 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.
pg is a tool in the RubyGems Packages category of a tech stack.
pg is an open source tool with 726 GitHub stars and 170 GitHub forks. Here’s a link to pg's open source repository on GitHub

Who uses pg?

Companies
22 companies reportedly use pg in their tech stacks, including Ruby Gems, ElonSucks.org, and Freecouches.

Developers
57 developers on StackShare have stated that they use pg.

Built For

pg Comparisons

Related Comparisons
No related comparisons found

pg's Followers
1 developers follow pg to keep up with related blogs and decisions.