diff --git a/diesel/README.md b/diesel/README.md index a0143c38..13d45f08 100644 --- a/diesel/README.md +++ b/diesel/README.md @@ -7,6 +7,7 @@ Diesel's `Getting Started` guide using SQLite for Actix web ### init database sqlite ```bash +# if opensuse: sudo zypper install sqlite3-devel cargo install diesel_cli --no-default-features --features sqlite cd examples/diesel echo "DATABASE_URL=test.db" > .env @@ -18,6 +19,7 @@ diesel migration run ```bash # if ubuntu : sudo apt-get install libsqlite3-dev # if fedora : sudo dnf install libsqlite3x-devel +# if opensuse: sudo zypper install libsqlite3-0 cd examples/diesel cargo run (or ``cargo watch -x run``) # Started http server: 127.0.0.1:8080 @@ -32,6 +34,7 @@ cargo run (or ``cargo watch -x run``) ```bash # if ubuntu : sudo apt-get install sqlite3 # if fedora : sudo dnf install sqlite3x +# if opensuse: sudo zypper install sqlite3 sqlite3 test.db sqlite> .tables sqlite> select * from users;