将 Postgres 与 Eventmachine 结合使用

发布于 2024-11-16 15:53:47 字数 123 浏览 2 评论 0原文

有谁知道在 eventmachine 中连接到 postgres 的好方法吗?

我知道有一个与 eventmachine 捆绑在一起的实现,但我不喜欢使用套接字。

我只想要一个可以发送查询的正常连接。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以畏孤独 2024-11-23 15:53:47

嗯,如果不通过,你还要如何连接到 Postgres。插座?!据我所知,Postgres总是使用套接字,唯一的选择是使用 TCP 或 Unix 套接字,还是使用 TCP 上的 SSL。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文