From 683251e856b4ff1ece6832eb58e6cc78d8087b33 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Wed, 27 Nov 2024 09:38:54 +0100 Subject: [PATCH] doc(orm): add doc on orm Signed-off-by: Mathieu --- docs/source/Project/benchmark.rst | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/source/Project/benchmark.rst b/docs/source/Project/benchmark.rst index d82cbf9..1ad7176 100644 --- a/docs/source/Project/benchmark.rst +++ b/docs/source/Project/benchmark.rst @@ -154,6 +154,46 @@ Server: Go **Conclusion**: Go’s high performance and concurrency handling make it a better choice for a scalable automation service backend. +ORM Server: Gorm +----------------- +**Justification**: + +.. list-table:: + +- **User-friendly**: Easy to learn and use +- **Flexibility**: Supports auto migration and complex queries +- **Large Community**: Extensive resources and support + +**Comparison with Alternatives**: + +.. list-table:: + :header-rows: 1 + + * - **Pros/Cons** + - **Pros** + - **Cons** + * - GORM + - User-friendly + + Flexible + + Large community + + - A bit less performant than some alternatives + + * - EntGo + - Strongly typed + + Can handle complex type + + - Long compile times + + Hard learning curve + + * - SQLx + - Strongly typed + - Raw SQL + Database: MariaDB ----------------- **Justification**: