-
Notifications
You must be signed in to change notification settings - Fork 163
Conversation
d59e82d
to
4e68513
Compare
4e68513
to
a89eebe
Compare
Co-authored-by: Alexander Ljungberg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want a note to remind the dev to reload the schema cache after adding new domains or casts?
Domain Representations | ||
###################### | ||
|
||
Domain Representations separates "how the data is presented" from "how the data is stored". It works by creating `domains <https://www.postgresql.org/docs/current/sql-createdomain.html>`_ and `casts <https://www.postgresql.org/docs/current/sql-createcast.html>`_, the latter act on the former to present and receive the data in different formats. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! I struggled with coming up with a concise way to describe the feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Actually I stole some phrases from your opening issue 😃
I wanted to remove the "latter/former" words but I found it hard. Although it seems ok leaving it this way.
I've just addressed your latest reviews. LMK if you approve and I'll merge 🚀.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also clarified the advantages (focusing on views) and "why not create a type?".
Co-authored-by: Alexander Ljungberg <[email protected]>
Co-authored-by: Alexander Ljungberg <[email protected]>
Co-authored-by: Alexander Ljungberg <[email protected]>
Co-authored-by: Alexander Ljungberg <[email protected]>
Co-authored-by: Alexander Ljungberg <[email protected]>
this way it can be seen at the beggining there are advantages over views and computed fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
For PostgREST/postgrest#2839
Rendered doc.