omni_schema
Omnigres 高级模式管理组件
omnigres · Omnigres 高级模式管理组件
概览
| ID | 扩展 | 软件包 | 版本 | 类别 | 许可证 | 编程语言 |
|---|---|---|---|---|---|---|
| 2963 | omni_schema | omnigres | 0.3.0 | FEAT | Apache-2.0 | C |
| 属性 | 可执行文件 | 动态库 | 需要预加载 | 需要建扩展 | 可迁移 | 可信 |
|---|---|---|---|---|---|---|
| ----d-- | 否 | 否 | 否 | 是 | 否 | 否 |
软件包
| 类型 | 仓库 | 版本 | 兼容的 PostgreSQL 大版本 | 包名模式 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.3.0 | 19 18 17 16 15 | omnigres | omni_sql, omni_vfs, omni_polyfill, omni_yaml, dblink, postgres_fdw, omni_types, omni_cloudevents |
| RPM | PIGSTY | 20260212 | 19 18 17 16 15 | omnigres_$v | postgresql$v-contrib, postgresql$v-plpython3, python3-pip |
| DEB | PIGSTY | 20260212 | 19 18 17 16 15 | postgresql-$v-omnigres | postgresql-plpython3-$v, python3-pip |
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el8.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el9.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el9.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el10.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| el10.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d12.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d12.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d13.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| d13.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u22.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u22.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u24.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u24.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u26.x86_64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
| u26.aarch64 | N/A | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 | PIGSTY 20260212 |
源码
docs.omnigres.org/omni_schema/reference/
omnigres-20260212.tar.gz
wheel-0.45.1-py3-none-any.whl
安装
在数据库中创建扩展。
用法
omni_schema 扩展通过迁移和从文件系统重新加载对象来管理应用模式。
运行迁移
递归查找 .sql 文件,按路径名顺序应用,跳过已应用的迁移。执行记录保存在 omni_schema.migrations 表中。
重新加载模式对象
从文件系统重新加载函数、策略和视图。要忽略某个文件,在其中放置 omni_schema[[ignore]](通常在注释中)。
迁移表
| 列 | 类型 | 描述 |
|---|---|---|
id | int | 唯一标识符 |
name | text | 迁移文件名 |
migration | text | 源代码 |
applied_at | timestamp | 应用时间 |
多语言支持
支持 SQL、PL/pgSQL(.sql)、Python(.py)、Perl(.pl)、Tcl(.tcl)和 Rust(.rs)。使用 SQL[[...]] 指令指定函数签名: