Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyk/seaorm-by-example
Rust's SeaORM by example
https://github.com/pyk/seaorm-by-example
orm postgresql rust seaorm
Last synced: 19 days ago
JSON representation
Rust's SeaORM by example
- Host: GitHub
- URL: https://github.com/pyk/seaorm-by-example
- Owner: pyk
- Created: 2024-01-06T08:15:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-09T10:14:42.000Z (10 months ago)
- Last Synced: 2024-04-11T18:19:59.199Z (7 months ago)
- Topics: orm, postgresql, rust, seaorm
- Language: Rust
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SeaORM by example
I'm kicking off a blog series about Rust's SeaORM, all from a beginner's angle.
Check out the posts:
1. [Creating PostgreSQL Tables](https://pyk.sh/creating-postgresql-tables-with-rusts-seaorm)
2. [Insert, Select, Update, and Delete Rows in PostgreSQL Tables](https://pyk.sh/rust-seaorm-insert-select-update-and-delete-rows-in-postgresql-tables)## Getting started
Copy `.env.example` to `.env` and update the values.
Use the following command to run the migration:
```sh
sea-orm-cli migration up
```Use the following command to update the `entity` crate:
```sh
sea generate entity -o entity/src --lib
```