ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

ORM Swap #55

Closed juancarlospaco closed 10 months ago

juancarlospaco commented 5 years ago

Today a new ORM was born: https://github.com/moigagoo/norm#norm-a-nim-orm https://nimble.directory/pkg/norm

Its better than Gatabase: https://github.com/juancarlospaco/nim-gatabase

Tentative plans:

Norm criticism:

Gatabase criticism:

Sorry about the all the noise but having no ORM from the start was a hard time, but I feel is something we MUST have.

ThomasTJdev commented 4 years ago

Hi @juancarlospaco

I'm in for staying and using pure SQL. Otherwise we could use https://github.com/ThomasTJdev/nim_sqlbuilder to ease the writing of SQL queries.

juancarlospaco commented 4 years ago

I like nim_sqlbuilder very much. :+1:

I was wondering if we can make like a mix between gatabase and nim_sqlbuilder, like Gatabase providing the UX for the end user and nim_sqlbuilder actually doing the job in the back. Gatabase uses pure SQL, just adds a comfortable DSL, the benefit is that DSL is almost valid SQL, then you can use any SQL WYSIWYG editor and copy over the SQL into the DSL, or write SQL.

Like I confirm we can add nim_sqlbuilder, just let me see how gatabase+sqlbuilder combined feels like. :thinking:

Basket looks awesome BTW.