Encourage not to use serial in newer PostgreSQL versions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, postgresql
- 领域
- databases
调研方向
从 packages/dbml-core/src/parse/postgresql/Commands/Create_table/Create_table_normal.pegjs 约第 140 行开始,这里 issue 指出了 parser 的修改位置。阅读周围的 PostgreSQL CREATE TABLE grammar 和现有的 parser 测试,然后验证 GENERATED BY DEFAULT AS IDENTITY 是否被接受为 serial 的预期替代方案。
由索引模型根据 Issue 内容生成。
描述
Hello,
Since PostgreSQL 10, usage of serial is not recommended. So, I guess it's better to suggest the usage of GENERATED BY DEFAULT AS IDENTITY. First reason PostgreSQL's approach is not how things are done in SQL standard. With this change, things are done similarly to DB2 and Oracle. The following snippet is where this support can be implemented.
- 主要语言
- JavaScript
- 星标
- 3.7k
- 派生
- 233
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 23
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
holistics/dbml 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
@dbml/core 12.0.0 Postgres importer: timestamptz becomes timestamp, schema-qualified type doubled, Ref with ?<? rejected by parser可能已有人在做 @zzoraemon043 于 2 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 38/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 48/100
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
holistics/dbml#868 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
mailcow/mailcow-dockerized#7677 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
gcivil-nyu-org/team5-mon-fall26#145 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
needs discussion
难度 2/5 1-3 小时 新手友好度 78/100
openfga/openfga.dev#1436 · 1 条评论 ·
维护者通常 2 天内回复