Using Postgres with Eventmachine?

Uhm, how else are you going to connect to Postgres if not via. Sockets?! To my knowledge, Postgres always uses sockets, the only choice is whether to use TCP or Unix sockets, or SSL over TCP.

Uhm, sorry but im kinda new to this. Could you give me an example on how I can connect and query postgres in eventmachine? – Micke Jun 21 at 20:34 From your question I'd assumed that EventMachine has already implemented the Postgres protocol?

Isn't there something in the E.M. Docs? – Robin Jun 21 at 21:13 Yes it has but as the documentation says it is PROVISIONAL IMPLEMENTATION of an evented Postgres client.. And the last commit to it was in 2009, and it uses the old postgres-pr gem. I would like to use the "new" ruby-pg gem which has support for async connection but I am new to postgres and eventmachien so maybe you could mix together some kind of example if you are experienced with the gem?

– Micke Jun 21 at 22:35 1 Maybe you can - give it a try! ;-) – Robin 1 May1 at 20:24.

Does anyone know of a good way to connect to postgres inside eventmachine. I know there is an implementation bundled with eventmachine but I don't like the use of sockets. I just want a normal connection which I can send queries to.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions