gorm-generic-interface

Community

Access underlying DB and tune its connection pool

Authorliurida
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It simplifies obtaining the underlying database connection from a GORM instance and allows fine‑tuned pool configuration, enabling integration with other Go tools and performance monitoring.

Core Features & Use Cases

  • Access underlying DB: Retrieve the generic sql.DB object from a GORM gorm.DB for low‑level operations.
  • Connection pool tuning: Adjust maximum idle connections, maximum open connections, and connection lifetime.
  • Monitoring: Query pool statistics such as open, idle, and in‑use connections.
  • Use case: When you need to share the database handle with a library that expects sql.DB or when you want to optimize connection resources in a high‑throughput Go service.

Quick Start

Ask the skill to get the sql.DB from your GORM DB and set the desired pool limits.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: gorm-generic-interface
Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-generic-interface

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 471,000+ vetted skills library on demand.