apache / apache/datafusion-sqlparser-rs

PostgreSQL: Support more `COMMENT ON` variants

未关闭
#2,133 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
3.5k
派生
772
平均合并
4 天 9 小时
30 天内合并 PR
17

描述

https://www.postgresql.org/docs/current/sql-comment.html specifies many different things that can receive database comments, but `sqlparser` currently only supports column, table, extension, schema, database, user and role. It would be great to add for example constraints, views and functions to the list too.

贡献指南

这个仓库没有索引到贡献指南

调研方向

该 issue 未指定源文件或测试。首先定位现有 COMMENT ON 目标对应的 parser 代码和测试,然后将其与 PostgreSQL 的 COMMENT ON 文档进行比较。完成的标准是 constraints、views、functions 及其他选定变体都能成功解析,同时不会导致当前支持的目标出现回归。

由索引模型根据 Issue 内容生成。

评估

技术栈
postgresql, rust
领域
databases
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。