weixin_39805255
weixin_39805255
2020-12-08 18:14

postgres vs tokio_postgres

I've previously depended on postgres = "0.15" on my Cargo.toml, but when I change it to point to the git repo, it seems like everything breaks. For example, types seem to now be in tokio_postgres::types, and Connection no longer exist (I see Client).

Should I still be using postgres, or should I rather move to tokio_postgres? I perform simple tasks that read and write data to Postgres, so I was fine with doing that synchronously.

该提问来源于开源项目:sfackler/rust-postgres

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐

换一换