pyk / seaorm-by-example

Rust's SeaORM by example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Rust's SeaORM by example


Languages

Language:Rust 100.0%