·go-data-persistence
{}

go-data-persistence

Go 中的数据持久化模式涵盖使用 sqlx/pgx 的原始 SQL、Ent 和 GORM 等 ORM、连接池、使用 golang-migrate 进行迁移以及事务管理。在实现数据库访问、设计存储库或管理架构迁移时使用。

17安装·1热度·@existential-birds

安装

$npx skills add https://github.com/existential-birds/beagle --skill go-data-persistence

如何安装 go-data-persistence

通过命令行快速安装 go-data-persistence AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/existential-birds/beagle --skill go-data-persistence
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:existential-birds/beagle。

SKILL.md

查看原文

| Connection pool internals, sizing, pgx pools, monitoring | references/connection-pooling.md | | golang-migrate setup, file conventions, CI/CD integration | references/migrations.md | | Transaction helpers, service-layer transactions, isolation levels | references/transactions.md |

| Factor | Raw SQL (sqlx/pgx) | ORM (Ent/GORM) |

| Complex queries | Preferred | Awkward | | Type safety | Manual | Auto-generated | | Performance control | Full | Limited | | Rapid prototyping | Slower | Faster | | Schema migrations | golang-migrate | Built-in (Ent) | | Learning curve | SQL knowledge | ORM API |

Go 中的数据持久化模式涵盖使用 sqlx/pgx 的原始 SQL、Ent 和 GORM 等 ORM、连接池、使用 golang-migrate 进行迁移以及事务管理。在实现数据库访问、设计存储库或管理架构迁移时使用。 来源:existential-birds/beagle。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/existential-birds/beagle --skill go-data-persistence
分类
{}数据分析
认证
收录时间
2026-02-26
更新时间
2026-03-10

Browse more skills from existential-birds/beagle

快速解答

什么是 go-data-persistence?

Go 中的数据持久化模式涵盖使用 sqlx/pgx 的原始 SQL、Ent 和 GORM 等 ORM、连接池、使用 golang-migrate 进行迁移以及事务管理。在实现数据库访问、设计存储库或管理架构迁移时使用。 来源:existential-birds/beagle。

如何安装 go-data-persistence?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/existential-birds/beagle --skill go-data-persistence 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/existential-birds/beagle