migrating-oracle-to-postgres-stored-procedures by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill migrating-oracle-to-postgres-stored-procedures将 Oracle PL/SQL 存储过程和函数翻译为 PostgreSQL PL/pgSQL 等价形式。
进度:
- [ ] 步骤 1: 读取 Oracle 源过程
- [ ] 步骤 2: 翻译为 PostgreSQL PL/pgSQL
- [ ] 步骤 3: 将迁移后的过程写入 Postgres 输出目录
步骤 1: 读取 Oracle 源过程
从 .github/oracle-to-postgres-migration/DDL/Oracle/Procedures and Functions/ 读取 Oracle 存储过程。请参考 .github/oracle-to-postgres-migration/DDL/Oracle/Tables and Views/ 下的 Oracle 表/视图定义以进行类型解析。
步骤 2: 翻译为 PostgreSQL PL/pgSQL
应用以下翻译规则:
PARAM_NAME IN table_name.column_name%TYPE)。NUMERIC、VARCHAR、)——不要对这些参数进行类型锚定。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
INTEGERCOMMENT 或 GRANT 语句。COLLATE "C"。orafce 扩展能提高清晰度或保真度时,利用它。请参考 .github/oracle-to-postgres-migration/DDL/Postgres/Tables and Views/ 下的 PostgreSQL 表/视图定义以获取目标模式的详细信息。
步骤 3: 将迁移后的过程写入 Postgres 输出目录
将每个迁移后的过程放在其自己的文件中,位于 .github/oracle-to-postgres-migration/DDL/Postgres/Procedures and Functions/{PACKAGE_NAME_IF_APPLICABLE}/ 目录下。每个文件一个过程。
每周安装次数
450
代码仓库
GitHub 星标数
26.7K
首次出现
13 天前
安全审计
安装于
gemini-cli398
codex397
opencode387
cursor384
github-copilot381
kimi-cli380
Translate Oracle PL/SQL stored procedures and functions to PostgreSQL PL/pgSQL equivalents.
Progress:
- [ ] Step 1: Read the Oracle source procedure
- [ ] Step 2: Translate to PostgreSQL PL/pgSQL
- [ ] Step 3: Write the migrated procedure to Postgres output directory
Step 1: Read the Oracle source procedure
Read the Oracle stored procedure from .github/oracle-to-postgres-migration/DDL/Oracle/Procedures and Functions/. Consult the Oracle table/view definitions at .github/oracle-to-postgres-migration/DDL/Oracle/Tables and Views/ for type resolution.
Step 2: Translate to PostgreSQL PL/pgSQL
Apply these translation rules:
PARAM_NAME IN table_name.column_name%TYPE).NUMERIC, VARCHAR, INTEGER) for output parameters passed to other procedures — do not type-anchor these.COMMENT or GRANT statements.COLLATE "C" when ordering by text fields for Oracle-compatible sorting.orafce extension when it improves clarity or fidelity.Consult the PostgreSQL table/view definitions at .github/oracle-to-postgres-migration/DDL/Postgres/Tables and Views/ for target schema details.
Step 3: Write the migrated procedure to Postgres output directory
Place each migrated procedure in its own file under .github/oracle-to-postgres-migration/DDL/Postgres/Procedures and Functions/{PACKAGE_NAME_IF_APPLICABLE}/. One procedure per file.
Weekly Installs
450
Repository
GitHub Stars
26.7K
First Seen
13 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli398
codex397
opencode387
cursor384
github-copilot381
kimi-cli380
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装