faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <rmarronnier> @elorest Wow, that's great to hear :-)
<FromGitter> <damianham> @elorest I agree it isn't that hard to deal with and it may not be worth adding the 'Model' suffix at this stage but a heads up on a possible future name clash might be useful. For example any name that is a built in object or standard library object of the main popular languages (and thus may become a builtin object of crystal in a future version), e.g. Generator (Javascript).
<FromGitter> <jgaskins> Is there a way to get Granite to accept a full-text-search query? This doesn't seem to be a thing ⏎ ⏎ ```Model.where("to_tsvector('english', body) @@ to_tsquery('english', ?)", value)``` [https://gitter.im/amberframework/amber?at=5cc3f93a3d78aa6c03a17699]
<FromGitter> <jgaskins> I guess I'm more wondering if there's a way around `where` requiring you to pass a field, comparator, and value.
<FromGitter> <jgaskins> Like, I need to pass an expression rather than a value.
<FromGitter> <damianham> Model.all("where body = ?", [value])
<FromGitter> <jgaskins> @damianham That doesn't seem to work with other `WHERE` conditions, unfortunately.
<FromGitter> <jgaskins> It does seem that it would work if the FTS was the only part of the `WHERE` clause, but the FTS is only part of the query :-\
<FromGitter> <elorest> @alex-lairan We're really close to getting amber to work with 0.28.0.
_whitelogger has joined #amber
waheedi has joined #amber
waheedi has quit [Client Quit]
<FromGitter> <alex-lairan> @elorest ok, I will use the docker image until it release :)
_whitelogger has joined #amber
<FromGitter> <Blacksmoke16> @jgaskins you could try like `Model.all("to_tsvector('english', body) @@ to_tsquery('english', ?)", value)`
<FromGitter> <Blacksmoke16> or even `Model.exec SQL` which would directly run the sql
<FromGitter> <42s_video_twitter> @elorest thx, but long polling != sse ( https://www.geeksforgeeks.org/what-are-long-polling-websockets-server-sent-events-sse-and-comet/ ) . Never mind I was able to make it working with a pure Http::Server crystal object, so I should be able to obtain that object from the Amber overhead object.
waheedi has joined #amber
waheedi has quit [Ping timeout: 246 seconds]
waheedi has joined #amber
<FromGitter> <rmarronnier> @elorest Thank you and to all involved for the update :-D
waheedi has quit [Quit: waheedi]
<FromGitter> <elorest> @42s_video_twitter could you share your working example and I'll look into possibly making it work in amber.
<FromGitter> <elorest> Or possibly accept a PR from you.
waheedi has joined #amber
waheedi has quit [Quit: waheedi]
<FromGitter> <42s_video_twitter> @elorest , it is describe inside an original issue that I posted, thent that finally I solved https://github.com/crystal-lang/crystal/issues/7722