Go Data Persistence

•
64
•

Implements robust database access layers in Go using raw SQL, ORMs, and secure transaction management patterns.

The go-data-persistence skill provides comprehensive architectural guidance for managing database interactions in Go applications. It assists developers in choosing the optimal approach between raw SQL drivers like pgx/sqlx and type-safe ORMs like Ent or GORM, while enforcing production-grade standards for connection pooling and repository design. By providing structured patterns for service-layer transactions and schema migrations with golang-migrate, the skill ensures that data layers remain scalable, testable, and protected against common vulnerabilities like SQL injection.

Características Principales

01Automated safety gates for SQL injection and context propagation
02Standardized migration workflows using golang-migrate
0364 GitHub stars
04Expert guidance for pgx, sqlx, Ent, and GORM implementations
05Production-ready connection pool configuration and sizing logic
06Service-layer transaction management with automated rollback helpers

Casos de Uso

01Implementing type-safe schema-as-code migrations using Ent
02Optimizing database performance through native PostgreSQL pgx features
03Designing a scalable repository layer for Go-based microservices