feature/postgresql-registry
main
实现 issue #1 的 PostgreSQL registry adapter。registry 只保存所有权、安装身份和 Retain tombstone,不保存 controller phase。
pgx/v5 v5.11.0
Claim
MarkRetained
Delete
make test-integration
make lint
git diff --check
Refs #1
@@ -0,0 +80,4 @@
ClaimOwned ClaimResult = "Owned"
)
// Bootstrap creates the private schema and the current registry table idempotently.
要么用bootstrap脚本在init容器里跑,要么用migrate,不要用土办法
@@ -0,0 +126,4 @@
}
defer func() { _ = tx.Rollback(ctx) }()
commandTag, err := tx.Exec(ctx, claimStatement,
pg sql有RETURN的
@@ -0,0 +16,4 @@
package registry
var bootstrapStatements = []string{
索引怎么说,两个ID复合够吗(应该够了吧
No dependencies set.
The note is not visible to the blocked user.
概要
实现 issue #1 的 PostgreSQL registry adapter。registry 只保存所有权、安装身份和 Retain tombstone,不保存 controller phase。
pgx/v5 v5.11.0Claim支持首次创建、同 owner 幂等重试及唯一资源冲突MarkRetained写入不可重新认领的 unmanaged tombstoneDelete要求完整 Ownership 匹配,拒绝 retained/mismatched record,重复删除安全make test-integration,未提供 DSN 的普通 test 会安全 skip 实际数据库测试验证
make lint:通过git diff --check:通过Refs #1
@@ -0,0 +80,4 @@ClaimOwned ClaimResult = "Owned")// Bootstrap creates the private schema and the current registry table idempotently.要么用bootstrap脚本在init容器里跑,要么用migrate,不要用土办法
@@ -0,0 +126,4 @@}defer func() { _ = tx.Rollback(ctx) }()commandTag, err := tx.Exec(ctx, claimStatement,pg sql有RETURN的
@@ -0,0 +16,4 @@package registryvar bootstrapStatements = []string{索引怎么说,两个ID复合够吗(应该够了吧