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:
require 'pg'
conn = PG.connect( dbname: 'sales' ) conn.exec( "SELECT * FROM pg_stat_activity" ) do |result| puts " PID | User | Query" result.each do |row| puts " %7d | | %s " % row.values_at('procpid', 'usename', 'current_query') end end.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.2.3-bp156.3.4 info | GA Release | 2023-12-07 | 15 SP6 |
|
|
1.2.3-bp155.2.13 info | GA Release | 2023-05-22 | 15 SP5 |
|
|
1.2.3-bp154.1.25 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.2.3-bp153.1.20 info | GA Release | 2021-05-10 | 15 SP3 |
|
|
1.2.3-bp152.1.1 info | GA Release | 2020-05-18 | 15 SP2 |
|
|
0.20.0-bp151.3.1 info | GA Release | 2019-07-17 | 15 SP1 |
|
|
0.20.0-bp151.2.14 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
0.20.0-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|