mirror of
https://github.com/actix/examples
synced 2025-02-02 09:39:03 +01:00
Add openSUSE instructions for diesel example (#149)
This commit is contained in:
parent
58675a683b
commit
ed24f61cca
@ -7,6 +7,7 @@ Diesel's `Getting Started` guide using SQLite for Actix web
|
|||||||
### init database sqlite
|
### init database sqlite
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# if opensuse: sudo zypper install sqlite3-devel
|
||||||
cargo install diesel_cli --no-default-features --features sqlite
|
cargo install diesel_cli --no-default-features --features sqlite
|
||||||
cd examples/diesel
|
cd examples/diesel
|
||||||
echo "DATABASE_URL=test.db" > .env
|
echo "DATABASE_URL=test.db" > .env
|
||||||
@ -18,6 +19,7 @@ diesel migration run
|
|||||||
```bash
|
```bash
|
||||||
# if ubuntu : sudo apt-get install libsqlite3-dev
|
# if ubuntu : sudo apt-get install libsqlite3-dev
|
||||||
# if fedora : sudo dnf install libsqlite3x-devel
|
# if fedora : sudo dnf install libsqlite3x-devel
|
||||||
|
# if opensuse: sudo zypper install libsqlite3-0
|
||||||
cd examples/diesel
|
cd examples/diesel
|
||||||
cargo run (or ``cargo watch -x run``)
|
cargo run (or ``cargo watch -x run``)
|
||||||
# Started http server: 127.0.0.1:8080
|
# Started http server: 127.0.0.1:8080
|
||||||
@ -32,6 +34,7 @@ cargo run (or ``cargo watch -x run``)
|
|||||||
```bash
|
```bash
|
||||||
# if ubuntu : sudo apt-get install sqlite3
|
# if ubuntu : sudo apt-get install sqlite3
|
||||||
# if fedora : sudo dnf install sqlite3x
|
# if fedora : sudo dnf install sqlite3x
|
||||||
|
# if opensuse: sudo zypper install sqlite3
|
||||||
sqlite3 test.db
|
sqlite3 test.db
|
||||||
sqlite> .tables
|
sqlite> .tables
|
||||||
sqlite> select * from users;
|
sqlite> select * from users;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user