This repository was archived by the owner on May 8, 2026. It is now read-only.
[guide] add a section for JSON serialization with Dry::Types::Constructor#283
Open
JulienAmoros wants to merge 1 commit intorom-rb:mainfrom
Open
[guide] add a section for JSON serialization with Dry::Types::Constructor#283JulienAmoros wants to merge 1 commit intorom-rb:mainfrom
JulienAmoros wants to merge 1 commit intorom-rb:mainfrom
Conversation
ianks
suggested changes
Aug 23, 2019
| @@ -0,0 +1,51 @@ | |||
| --- | |||
| chapter: SQL How To | |||
| title: Store data as JSON Strings | |||
Contributor
There was a problem hiding this comment.
I like the general concept of this guide, but it may beess confusing if we used an example other than JSON so Postgres users can benefit. What about using an XML snippet, or CSV?
| in such case you can use [built-in PG types](https://rom-rb.org/4.0/learn/sql/schemas/#postgresql-types)). | ||
|
|
||
| You can use `Dry::Types:Constructor` in order to make your own way to process data, and give it to your ROM::Relation | ||
| in order that ROM uses this to store and read this data. |
Contributor
There was a problem hiding this comment.
Could you also explain the concept of "read" types here?
Member
|
It would be really great to have this on the website. Would you be able to port it to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this PR, we add a section that explain a little bit more what can be found here: https://discourse.rom-rb.org/t/methods-of-storing-arrays-in-mysql/305
Any feedback will be really appreciated 😄