Sam Johnson
Sam Johnson
This is the current monkey patch I am using. Note I had to change the base `Value(Model, Scalar)` class to accept `nil` as a default value. ```crystal module Granite::Query::Executor class...
note that this could be extended to work with group by, and that I'm using `PG::Numeric` when I should be using something more generic
Yeah on that note I've been thinking of taking my ideas and making an ORM
@drujensen I noticed this when I went looking around for how to do this. For my purposes this would be super impractical as there are literally hundreds of places I...
@drujensen side note: is it possible to apply a `.scalar` like what @Blacksmoke16 used above but to a where chain? Because if so my life becomes a bit easier
The biggest difficulty is if you have a complex scope/query chain, and you need to grab a max or an avg off of that.
So here's a real scenario where not having these makes things extremely difficult: Let's say I have a `User` model with an `Int32` field called `upvotes`, a `country` field, a...
as per my [comment on HN](https://news.ycombinator.com/item?id=17955373), a good way to do this might be using headless chrome via puppeteer from within a Google Cloud Function or using AWS Lambda. IP...
Yet another option might be to use Google's networking module to purchase a large pool of IPs and proxy through them via a cloud function as described above. I'm pretty...
Would love to use this if it is ready