Replies: 1 comment 1 reply
-
Hey @Sytten, this is interesting. Actually, @tqwewe got a working PR SeaQL/sea-orm#241 that could generate entity files at compile-time |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was looking back at a startup I worked on for a while that was coded in golang.
I used this very good query builder called go-jet (https://github.com/go-jet/jet).
What I liked about it now is that is kinda fits in between where sea-query is at right now and where sea-orm is.
A typical select query would look like:
As you can see it is not far from what sea-query offers but has a few benefits like not having to specify the table name and
AllColumns
It also has the benefit of doing result to model mapping automatically and generated the models based on database schema (similar to sea-orm).
I feel this could be a third way for people that might never want the full ORM but want to have a better DX with the query builder.
Beta Was this translation helpful? Give feedback.
All reactions