·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