encore-go-database

Official

Type-safe Go database queries and migrations.

Authorencoredev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Encore Go projects often struggle with unsafe, ad-hoc database access and unmanaged migrations. This Skill provides type-safe query patterns, structured migrations, and robust error handling to reduce runtime errors and drift between code and database.

Core Features & Use Cases

  • Type-safe queries with generics using sqldb.Query, sqldb.QueryRow, and sqldb.Exec.
  • Migrations structure with automatic application on startup and clear versioning.
  • Safe struct mapping and SQL injection protection for common Go data access patterns.

Use cases include building data access layers for users, accounts, and transactions, executing multi-step operations within transactions, and maintaining consistent schema evolution across services.

Quick Start

Set up a Go service, configure the Encore database with your migrations, and implement a sample user query using sqldb.Query.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: encore-go-database
Download link: https://github.com/encoredev/skills/archive/main.zip#encore-go-database

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.