Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```