Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Oct 24, 2024
1 parent 0430007 commit 15eb2e0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@ This repository leverages PostgreSQL as a caching layer to reduce DevHub's RPC c
cargo watch -q -c -w src/ -x 'run '
```

### SQLx Postgres
---
[More information](https://github.com/launchbadge/sqlx/tree/main/sqlx-cli)

### Create and run migrations

```bash
sqlx migrate add <name>
```

Creates a new file in `migrations/<timestamp>-<name>.sql`. Add your database schema changes to
this new file.

---

```bash
sqlx migrate run
```

Compares the migration history of the running database against the `migrations/` folder and runs
any scripts that are still pending.

---

## Rust + Rocket + Fly.io

```sh
Expand Down

0 comments on commit 15eb2e0

Please sign in to comment.