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
_whitelogger has joined #amber
<FromGitter> <vifreefly> Hello! Is anybody knows how to define the correct way a serializible data attribute (store in DB as string but convert to JSON) for the Granite Model? Can't see the correct example here https://github.com/amberframework/granite/blob/master/docs/models.md#converters . ⏎ ⏎ Something like that: ⏎ ⏎ ```code paste, see link``` ... [https://gitter.im/amberframework/amber?at=5d85d34dc77f285fb1b7ac5a]
<FromGitter> <vifreefly> Okay, looks like I found the correct syntax here https://github.com/amberframework/granite/blob/master/spec/spec_models.cr#L535
<FromGitter> <vifreefly> i.e.
<FromGitter> <vifreefly> ``````
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
<FromGitter> <Blacksmoke16> @vifreefly what are you storing in the column? An array of objects?
<FromGitter> <vifreefly> Array of Strings
<FromGitter> <Blacksmoke16> using postgres?
<FromGitter> <Blacksmoke16> nvm sqlite
<FromGitter> <Blacksmoke16> was going to say PG supports array columns out of the box, but if you're using sqlite then yea, what you have is prob fine
feepbot has quit [Read error: No route to host]
feepbot has joined #amber
<FromGitter> <nsuchy> If anyone here wants to chime in https://github.com/amberframework/granite/issues/362 (CC: @Blacksmoke16 )