I wrote a (first version of a) simple encoder that takes a Codable struct, and produces (part of) a Postgres query. Writing a custom encoder feels complicated, but I think the simplicity at point of use really pays off.https://gist.github.com/chriseidhof/3cafaaa8c339828ae7e5bff462f92fbf#file-usage-swift …
-
Show this thread
-
my goal is to automate conversion between swift structs and sql query parts (parameters/output), I really do *not* want to write an ORM (to me ORMs feels like the wrong abstraction).
3 replies 0 retweets 17 likesShow this thread -
Replying to @chriseidhof
Maybe something like
@dieselframework but written in Swift?1 reply 0 retweets 1 like -
Replying to @guidomb @chriseidhof
"ORM" is such a fuzzy/meaningless term these days
1 reply 0 retweets 0 likes
I should probably not reply from the team twitter with my personal opinions OMG TWITTER WILL NOT LET ME NOT RESPOND TO @DIESELFRAMEWORK PLEASE UNTAG IT
4:39 PM - 9 Aug 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.