sunnysab/blog

(Rust) 记一次操作 PostgresSQL 的经历 | Coding的痕迹

Opened this issue · 0 comments

https://sunnysab.cn/2020/03/01/Use-Of-Timestamp-With-Postgres-In-Rust/#more

本来标题是“惨痛的经历”,想想去掉了。 ——题记   在项目中打算使用 PostgresSQL 做主力数据库,发现 Rust 下有个叫 postgres 的库,正好直接拿来用。 Rust 版本为 1.41,postgres 库版本 0.17。库官方给了 example,照着改了下,写了一小段业务代码做测试,然后一晚上就没了: