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> <nsuchy> Unfortunately no
<FromGitter> <nsuchy> I removed the is_Deleted and added it back
<FromGitter> <nsuchy> without issue
<FromGitter> <Blacksmoke16> so works now?
<FromGitter> <Blacksmoke16> :shrug:
<FromGitter> <Blacksmoke16> ight
<FromGitter> <nsuchy> for now
<FromGitter> <nsuchy> probably a bad bug
<FromGitter> <nsuchy> /shrug
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <anamba> whipped this up today to compute SRI hashes https://github.com/anamba/sri_hash.cr
_whitelogger has joined #amber
<FromGitter> <silmanduin66> @Blacksmoke16 hi, could you explain me how to insert into the granite database with foreign key constraints ?
<FromGitter> <silmanduin66> nevermind i found :-P
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <silmanduin66> but do you know how i can view my postgresql database? is there s a way with amber or do i need somethign external ?
<FromGitter> <Blacksmoke16> like all the tables and stuff?
<FromGitter> <Blacksmoke16> yea that would have to be something external, either via the pg cli, or some db gui program
<FromGitter> <silmanduin66> yes view the data
<FromGitter> <silmanduin66> ok
_whitelogger_ has joined #amber
_whitelogger has quit [Ping timeout: 240 seconds]
<FromGitter> <wontruefree> does granite have postgres json support?
<FromGitter> <Blacksmoke16> yes/no/kinda?
<FromGitter> <wontruefree> haha
<FromGitter> <wontruefree> ok
<FromGitter> <Blacksmoke16> iirc would have to set type of model to be `String`, then either consume that string in a `from_json`/`JSON.parse`
<FromGitter> <wontruefree> got it
<FromGitter> <wontruefree> that seems like it could be error prone
<FromGitter> <Blacksmoke16> how so?
<FromGitter> <wontruefree> and you do not get any of the benefits in postgres
<FromGitter> <Blacksmoke16> PRs are welcomed ;)
<FromGitter> <wontruefree> Well I dont know how things like errors hashes and stuff are handled
<FromGitter> <wontruefree> I dont know how the ORM is written and how the edge cases are handled
<FromGitter> <Blacksmoke16> what are you storing in the JSON? just random data, or like a serialized object?
<FromGitter> <wontruefree> random data
<FromGitter> <wontruefree> there would be an account specific template or a template per configuration
<FromGitter> <Blacksmoke16> ideally you would prob do like
<FromGitter> <wontruefree> and it would store the params that are being sent to that config
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5cb757693d78aa6c034c326d]
<FromGitter> <Blacksmoke16> would be typed and can handle validation as well
<FromGitter> <wontruefree> will that handle random key value data types?
<FromGitter> <wontruefree> I think I want postges support though
<FromGitter> <Blacksmoke16> if the data can be anything you would have to use `JSON.parse` then
<FromGitter> <Blacksmoke16> to handle the dynamic data
<FromGitter> <wontruefree> that seems about right
<FromGitter> <wontruefree> hmmmm
<FromGitter> <wontruefree> has anyone tried integrating clear in amber framework
<FromGitter> <wontruefree> I wrote a 2 endpoint kemal server in it a while ago
<FromGitter> <wontruefree> they seems to have good support for postgres
<FromGitter> <wontruefree> including json
<FromGitter> <Blacksmoke16> *only* support for PG
<FromGitter> <Blacksmoke16> which if that is what you are using might not be a bad idea
<FromGitter> <wontruefree> clear only supports pg
<FromGitter> <Blacksmoke16> correct
<FromGitter> <wontruefree> the application I am building is only on postgres
<FromGitter> <Blacksmoke16> what json specific features does it offer?
<FromGitter> <Blacksmoke16> like actually querying the json structure?
<FromGitter> <wontruefree> you can query the json structure
<FromGitter> <wontruefree> which is a feature I want to add later on
<FromGitter> <wontruefree> but not one for now
<FromGitter> <wontruefree> I am curious how clear stacks up too
<FromGitter> <Blacksmoke16> i used it for a bit a while back
<FromGitter> <wontruefree> looks like granite has UUID support which I didnt think they had
<FromGitter> <Blacksmoke16> ye
<FromGitter> <Blacksmoke16> main thing i missed in clear was the like `Model.from_json` feature, i think he added JSON support but not sure how its implemented
<FromGitter> <wontruefree> interesting
<FromGitter> <Blacksmoke16> my use case was working with a/being a JSON API
<FromGitter> <Blacksmoke16> so being able to cleanly serialize the response from the api into models was super nice
<FromGitter> <wontruefree> that makes sense
<FromGitter> <wontruefree> I am using rendered pages and will have a json API
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5cb75c4b5b3f941aa5490eae]
<FromGitter> <Blacksmoke16> made the client take a generic that tells it what type to deserialize
<FromGitter> <Blacksmoke16> 💯
<FromGitter> <wontruefree> interesting
<FromGitter> <Blacksmoke16> it also worked with clear, but had to define the `from_json` yourself iirc
<FromGitter> <Blacksmoke16> they arent super difference, maybe just install it and give it a try?
<FromGitter> <Blacksmoke16> syntax/usage wise i mean
<FromGitter> <wontruefree> ok
<FromGitter> <wontruefree> thanks :)
<FromGitter> <Blacksmoke16> np
Jenz has joined #amber
<Jenz> Did you guys see this?: https://github.com/jgaskins/live_view
<Jenz> I think it's super cool, and I just thought I'd suggest you take a look at it
<Jenz> It'd be nice seeing my two favorite crystal web shards coming together :D
Jenz has quit [Quit: leaving]
Jenz has joined #amber
Jenz has quit [Quit: leaving]
<FromGitter> <wontruefree> I thought is was pretty cool
<FromGitter> <mixflame> I'd like to see how Amber and Crystal play out for Pro Audio development (DSP, etc)
<FromGitter> <mixflame> I expect big changes to Web Audio in the next 5 years
<FromGitter> <mixflame> WebAssembly could mean that Javascript based DJing could become a thing