jonataslaw / jonataslaw/get_server

ORM for Get Server

Open
#36 6 comments 6 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
484
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Let me confess the fact that the GetX ecosystem is the most amazing thing that ever happened to Dart. With **Fuchsia** is on the horizon, it just feels right to have a unified full-stack Dart ecosystem. Get Server is the right step towards the backend of this unified full-stack ecosystem.
However, despite it's too early, but I think the GetX ecosystem as whole needs to have a formal roadmap.

One important part of the modern backend is **ORM**. Which is currently lacking in Get Server or probably in any other server-side Dart framework. Yes, I know that @jonataslaw already planning to have one. But the purpose of creating this issue is specific to give some opinion on the implementation of the upcoming ORM which I am expecting to be available sooner than later.

Here's my thought:
I have surfed enough of the backend frameworks from **Laravel** to **Spring** to **Django** to .**NET** for a while now. What I have found is that the ORMs on Django and .NET (Entity Framework) are two of the best there is. But in my observation, the Django ORM is tightly coupled to the Django framework. For example, you have to extend your model classes from models.Model class to ensure the ORM can detect changes. On the other hand, the .NET Entity Framework has something called **Database Context**. Which specifies all of the models that should be tracked. Models are simple classes without any extension.
Therefore, in my opinion, I think it would be nice to have an ORM like Entity Framework in Get Server (Or maybe in the Flutter front-end GetX too to be able to communicate with in-app databases like SQLite). We already have the amazing **get_cli** tool which can be used to generate the database migration classes/files without **build_runner** and also to sync/update the database (much like `manage.py` and `dotnet-ef` tool).

Also, can we have a GitHub organization now? As GetX is growing rapidly?

Thanks for the amazing work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.