class PgConn::SessionMethods

def disable(database)

Ensure connections to the given database are disabled
def disable(database)
  !database.nil? or raise ArgumentError
  conn.execute "alter database #{database} allow_connections = false"
end