babelfishpg_unit
从SQL调用Babelfish单元测试的C测试运行器
babelfishpg_unit · 从SQL调用Babelfish单元测试的C测试运行器
概览
| ID | 扩展 | 软件包 | 版本 | 类别 | 许可证 | 编程语言 |
|---|---|---|---|---|---|---|
| 101288 | babelfishpg_unit | babelfishpg_unit | 1.0.0 | FEAT | Apache-2.0 | C |
用法
来源:
babelfishpg_unit — Babelfish 引入了一个名为 babelfishpg_unit 的新扩展,使我们能够运行单元测试。请遵循构建说明来构建并安装 babelfishpg_unit 扩展。当应用程序需要此特定数据库功能时,请使用它。在目标 PostgreSQL 构建上使用链接的上游版本作为 API 边界,并进行测试。
核心工作流
在目标数据库中安装扩展,当可用时运行上游示例中的最小示例,并在将其集成到应用程序 SQL 中之前验证安装版本和返回值。
重要对象
babelfishpg_unit.babelfishpg_unit_run_tests()是一个扩展函数,返回TABLE。babelfishpg_unit.babelfishpg_unit_run_tests(VARIADIC name text[])是一个扩展函数,返回TABLE。
要求与注意事项
- 审查后的控制文件声明默认版本为
1.0.0。 - 在生产使用前,请确认权限、支持的 PostgreSQL 版本、升级行为以及失败情况。