/seaorm-by-example

Rust's SeaORM by example

Primary LanguageRust

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
  2. 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:

sea-orm-cli migration up

Use the following command to update the entity crate:

sea generate entity -o entity/src --lib