Skip to content

Plans to Revamp SeaORM TutorialΒ #8

Open
@billy1624

Description

@billy1624

We would like to rewrite SeaORM tutorial and align with SeaORM 0.8.0 and beyond.

We're going to have two types of tutorial:

  1. The Basics of SeaORM: covers all essentials of SeaORM, including db setup and connection, db migration, generating entity files, CRUD operations, relational selects and mock testing
  2. Integrating with SeaORM: showcase how to integrate SeaORM with other framework, including but not limited to Rocket, Actix, Async GraphQL

To make the tutorial more realistic and interesting, we could have theme across our tutorial.

  • For example, a chain bakery shop?

The Basics of SeaORM

Table of Content

  • Setting up the database: one of MySQL, PostgreSQL, SQLite
  • Creating a Cargo workspace for the SeaORM project
  • Writing database migration and applying it
  • Generating entity files with sea-orm-cli
  • Performing CRUD operations
  • Selecting related models
  • Writing tests with mock interface

Integrating with SeaORM

This would be split into multiple tutorials that depend on prior knowledge of "The Basics of SeaORM".

Frameworks to be included

  • Rocket, Actix, Axum...etc (common Web API frameworks): The application could have interfaces for updating the product catalog of bakery shop, or even a point of sales system.
  • gRPC, GraphQL (API endpoint): A API for accessing product catalog or sales data via a specific API.

Your comments, suggestions and feedbacks are appreciated!
Please leave a comment below and let us know your thoughts :)

CC @tyt2y3

Metadata

Metadata

Labels

Type

No type

Projects

Status

Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions