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
_whitelogger has joined #amber
<FromGitter> <VanyaNeytrino> why this error occurs? ERROR: PG::ResultSet#read returned a Int32. A (Int64 | Nil) was expected. (Exception)
<FromGitter> <VanyaNeytrino> field in my model: field admin_id : Int32
<FromGitter> <Blacksmoke16> is that also your PK?
<FromGitter> <VanyaNeytrino> Yes. Mac OS X
<FromGitter> <Blacksmoke16> using Granite?
<FromGitter> <Blacksmoke16> granite assumes your PK is Int64, so if `admin_id` is your PK it should be `primary admin_id : Int32`
<FromGitter> <VanyaNeytrino> Yes, I’m using granite) Thanks
<FromGitter> <Blacksmoke16> that fix it? np
_whitelogger has joined #amber
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/62lq @drujensen
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/62mi more complete example
<robacarp> slick
<FromGitter> <Blacksmoke16> yea, can make querying like building with legos
<FromGitter> <Blacksmoke16> just new up the filters you need
<FromGitter> <Blacksmoke16> then can also test/document each filter
<FromGitter> <VanyaNeytrino> @Blacksmoke16 helped me replace INT to BIGINT in the migration
<FromGitter> <Blacksmoke16> still some work to do on it, but see how it turns out
<FromGitter> <VanyaNeytrino> I have a question: how to make all posts public? PUBLIC_PATHS = ["/posts/: id"]?? What is the syntax?
<FromGitter> <Blacksmoke16> hmm im not sure, are out of my realm of familiarity
<FromGitter> <VanyaNeytrino> this Authenticate class which creates a default generator Amber auth
<FromGitter> <VanyaNeytrino> my decision: private def public_path?(path) ⏎ ⏎ ```PUBLIC_PATHS.includes?(path) || path =~ /\/posts\/[\d]+/``` [https://gitter.im/amberframework/amber?at=5c48c60b9bfa375aab4b9855]
<FromGitter> <eliasjpr> > https://play.crystal-lang.org/#/r/62mm more complete example ⏎ ⏎ Nice! Type safe queries!
<FromGitter> <eliasjpr> ❤️
<FromGitter> <eliasjpr> Feel that we should get together to discuss roadmap. I have been hit with at deadline at work reason why I am not more active on here
<FromGitter> <Blacksmoke16> @eliasjpr yea, basic turns querying into legos. Build blocks you need that can be tested, documented, and reused. Then just plop in the ones you need
<FromGitter> <Blacksmoke16> ideally planning on making it so it doesnt matter what orm you use. long as that orm supports a few things