go-data-persistenceData persistence patterns in Go covering raw SQL with sqlx/pgx, ORMs like Ent and GORM, connection pooling, migrations with golang-migrate, and transaction m...
Install via ClawdBot CLI:
clawdbot install anderskev/go-data-persistenceGrade Limited — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Accesses sensitive credential files or environment variables
$DATABASE_URLPotentially destructive shell commands in tool definitions
Exec(Audited Apr 22, 2026 · audit v1.0
Generated May 23, 2026
A high-traffic e-commerce platform uses Go with sqlx/pgx for raw SQL to handle complex joins on orders, products, and inventory. Connection pooling configured with 25 max open connections ensures stable performance under peak load. Transaction management is critical for atomic updates to inventory and order status.
A SaaS application uses Ent ORM for rapid development of a multi-tenant analytics dashboard with type-safe query builders. Schema migrations via Ent's built-in tooling allow quick iteration on tenant-specific features. The repository pattern decouples business logic from database access, enabling easy unit testing with mock stores.
A fintech startup implements a financial reporting system using Go with pgx for advanced PostgreSQL features like CTEs and window functions. Connection pooling with 30 max open connections and 5-minute lifetime handles daily batch processing without overwhelming the database. Transaction isolation levels ensure consistent reads during report generation.
A healthcare platform uses golang-migrate for schema management across multiple database environments. Raw SQL with sqlx handles complex queries joining patient records and lab results. The store interface pattern allows switching between PostgreSQL and MySQL for different deployments, while transaction helpers ensure data integrity during record updates.
A media company builds a real-time analytics pipeline using Go with pgx for fast data ingestion via COPY and LISTEN/NOTIFY. Connection pool sizing at 20 max open connections balances throughput with database capacity. Migrations are integrated into CI/CD using golang-migrate, ensuring schema changes are version-controlled and automatically applied.
Offer a cloud-based product with tiered pricing. Use Ent or GORM for rapid feature development and schema migrations to iterate quickly based on customer feedback. Connection pooling ensures reliable performance across tenants.
Operate a platform connecting buyers and sellers with complex transaction logic. Use raw SQL with sqlx/pgx for fine-grained control over performance and complex queries. Transaction management handles atomic order fulfillment and payment processing.
Provide a data management solution for large enterprises requiring high performance and advanced features. Use pgx for PostgreSQL-specific capabilities like advisory locks and COPY for bulk data loads. The repository pattern enables custom integrations and legacy system support.
💬 Integration Tip
Start by defining your store interface at the application boundary and choose between raw SQL and ORM based on your team's SQL proficiency and project complexity.
Scored May 23, 2026
Meta-skill for AI agent self-improvement. Analyzes runtime logs to detect error patterns, regressions, and inefficiencies, then generates structured improvem...
Stop waiting for prompts. Keep working.
Turn OpenClaw into a learning-loop agent with seeded workspace rules, skill promotion, reflective memory, and proactive maintenance.
Meta-agent skill for orchestrating complex tasks through autonomous sub-agents. Decomposes macro tasks into subtasks, spawns specialized sub-agents with dynamically generated SKILL.md files, coordinates file-based communication, consolidates results, and dissolves agents upon completion. MANDATORY TRIGGERS: orchestrate, multi-agent, decompose task, spawn agents, sub-agents, parallel agents, agent coordination, task breakdown, meta-agent, agent factory, delegate tasks
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Complete toolkit for creating autonomous AI agents and managing Discord channels for OpenClaw. Use when setting up multi-agent systems, creating new agents, or managing Discord channel organization.