我是Rust的新手,想尝试使用Postgres和Diesel。我按照这里描述的步骤进行了操作:
https://diesel.rs/guides/getting-started
但不幸的是,当涉及到diesel setup
时,什么也没有发生。我没有收到任何输出、错误信息或其他内容。我已经使用命令 install diesel_cli --no-default-features --features postgres
安装了 diesel_cli,在 Windows 10 上安装了 Postgres 13。这是我在 .env 文件中的设置:
DATABASE_URL=postgres://postgres:pwd@localhost:5432/diesel
(其中 pwd 是我的密码)。我创建了一个名为 "diesel" 的数据库,并在 Postgres 服务器上运行,默认设置。它目前是空的,没有表格。我从
diesel setup
或 diesel migrate generate create_posts
中没有收到任何输出。甚至没有错误消息。是否有其他人遇到过这个问题?有什么想法可以解决吗?