How to close a DB connection in postgres-pr?

  • Thread starter Alexey Verkhovsky
  • Start date
A

Alexey Verkhovsky

Probably I am asking a silly question here... but maybe not too silly.

How do I close a connection created by postgres-pr? There seems to be no
"close" method anywhere in sight.

Shouldn't there be something like

class Connection
def close()
@conn.shutdown
end
end

class PGConn
def close()
@conn.close
end
end

???

Best regards,
Alexey Verkhovsky
 
M

Michael Neumann

Alexey said:
Probably I am asking a silly question here... but maybe not too silly.

How do I close a connection created by postgres-pr? There seems to be no
"close" method anywhere in sight.

Good question. Thanks! It's implemented in 0.3.3.

Regards,

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top