The main purpose of this PR is to add support for markdown in the raw value of comment APIs (#981). But instead of adding a separate commentRenderMarkdown, I changed .comment returned value to an object (similar to how .displayname works). This allows us also to remove .commentDisplay and have it as part of the object.
Other changes are,
Contextualized comment are now supported.
Fix the inheritance of comment_display from the parent catalog, schema, or table.
comment, comment_display, and comment_render_markdown can come from different levels and don't affect each other. Before, we used to only get the comment_display from where the comment was defined. But now comment_display can come from the column directive while the comment is derived from the table (or vice versa).
Moved the comment-related APIs of ForeignkeyRef and Key to getDisplay, similar to how we've done it on Table and Column.
Since I completely changed how the .comment API works in here, we have to merge this at the same time as the chaise one.
The main purpose of this PR is to add support for markdown in the raw value of
comment
APIs (#981). But instead of adding a separatecommentRenderMarkdown
, I changed.comment
returned value to an object (similar to how.displayname
works). This allows us also to remove.commentDisplay
and have it as part of the object.Other changes are,
Contextualized
comment
are now supported.Fix the inheritance of
comment_display
from the parent catalog, schema, or table.comment
,comment_display
, andcomment_render_markdown
can come from different levels and don't affect each other. Before, we used to only get thecomment_display
from where thecomment
was defined. But nowcomment_display
can come from the column directive while thecomment
is derived from the table (or vice versa).Moved the comment-related APIs of
ForeignkeyRef
andKey
togetDisplay
, similar to how we've done it onTable
andColumn
.Since I completely changed how the
.comment
API works in here, we have to merge this at the same time as the chaise one.