Method: PgHero::Methods::Connections#total_connections

Defined in:
lib/pghero/methods/connections.rb

#total_connectionsObject



39
40
41
# File 'lib/pghero/methods/connections.rb', line 39

def total_connections
  select_one("SELECT COUNT(*) FROM pg_stat_activity")
end