A cool little ORM! :) #3666
Replies: 3 comments 9 replies
-
While not an ORM for the dynamic query building part usually offered by ORM's you can look at https://hex.pm/packages/cake I guess. I planned to build more ontop of it but so far have not found the time. I am curious to check out what you did :) |
Beta Was this translation helpful? Give feedback.
-
Its on GitHub! Check out https://github.com/ashercn97/funsies |
Beta Was this translation helpful? Give feedback.
-
If you want to check it out there's also squirrel, it goes the other way around by generating gleam code from the sql queries. I think it's really cool (but I'm biased as I'm the author 😆) |
Beta Was this translation helpful? Give feedback.
-
Hey guys!
I am new to Gleam, but I adore the language. I think it is super well-made and delightful to work with.
I love Gleam's ability to compile to JS and Erlang, and I think it has a lot of potential for being a real language of the web.
I've been doing web development for a while, and usually, I worked with lightweight backend "frameworks" (express in JS and flask in Python). Recently though, I discovered Phoenix in Elixir, and I was kind of hooked. It felt so much easier, and I could get much more done in a shorter amount of time.
Okay, so after all that, I noticed there was not really this kind of framework in Gleam. And there was not even a good ORM in Gleam!! So, I decided to make one.
Right now, it has a nice DSL for defining schemas, it has pretty decent code generation so you are writing less code, it has a query builder, more standard ORM things, and it all decodes into pretty little values so it is easy to use (i.e. you define a schema, generate types and decoders automatically, and then the queries to postgres decode into these types).
Is this of interest to anyone? Is it worth putting on GitHub?
Beta Was this translation helpful? Give feedback.
All reactions