什么是 go-data-persistence?
Go 中的数据持久化模式涵盖使用 sqlx/pgx 的原始 SQL、Ent 和 GORM 等 ORM、连接池、使用 golang-migrate 进行迁移以及事务管理。在实现数据库访问、设计存储库或管理架构迁移时使用。 来源:existential-birds/beagle。
Go 中的数据持久化模式涵盖使用 sqlx/pgx 的原始 SQL、Ent 和 GORM 等 ORM、连接池、使用 golang-migrate 进行迁移以及事务管理。在实现数据库访问、设计存储库或管理架构迁移时使用。
通过命令行快速安装 go-data-persistence AI 技能到你的开发环境
来源:existential-birds/beagle。
| 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-persistenceGo 中的数据持久化模式涵盖使用 sqlx/pgx 的原始 SQL、Ent 和 GORM 等 ORM、连接池、使用 golang-migrate 进行迁移以及事务管理。在实现数据库访问、设计存储库或管理架构迁移时使用。 来源:existential-birds/beagle。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/existential-birds/beagle --skill go-data-persistence 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/existential-birds/beagle