<FromGitter>
<Blacksmoke16> doesnt handle saving, but for that i found it easy enough to just write something that destructs an object into a prepared statement, like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=61ba2969440178658b9845ae]
<FromGitter>
<Blacksmoke16> er updated for the insert case
<FromGitter>
<mehmethankut_twitter> I actually handled savings thanks to macro, I am saving attributes to an hash, using them later when I need to save
<FromGitter>
<mehmethankut_twitter> I guess I will also create a query builder and combine it with that std stuff you've sent
<FromGitter>
<Blacksmoke16> there are ORMs if you still want to go that route, Granite, Jennifer, Clear are all options
<FromGitter>
<mehmethankut_twitter> I only checked Clear, it looks really cool except hash input for select part
<FromGitter>
<mehmethankut_twitter> I will check out the others as well
<FromGitter>
<mehmethankut_twitter> thanks a lot
<hightower2>
Avram?
<FromGitter>
<Blacksmoke16> afaik that ones tightly coupled to Lucky
<hightower2>
I was checking its docs a couple times and didn't notice any particular assumptions of the rest of Lucky being used. Would someone know in more detail which case is the case? :)
<FromGitter>
<Blacksmoke16> https://gist.github.com/Blacksmoke16/ee7e6d2b6414e3029481aa4d494ace5f is how i handled things. Is a bit coupled to Athena, but could use a singleton const of `EntityManager` and would work just as good. could also keep it an ivar with a default value of that singleton, just to make testing easier. As mentioned in the comments, it deff could be cleanedup/improved a bit more but :shrug: was a quick
<FromGitter>
... implementation just to get something working
<FromGitter>
<mehmethankut_twitter> Athena is your framework right?
<FromGitter>
<Blacksmoke16> yea
walez has joined #crystal-lang
Starfoxxes has quit [Ping timeout: 252 seconds]
notzmv has quit [Read error: Connection reset by peer]