gorm-session

Community

Fine-grained control of GORM DB sessions

Authorliurida
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provide precise, session-scoped control over GORM database operations to avoid accidental global updates, enable safe bulk imports, improve performance with prepared statements, and aid debugging by generating SQL without execution.

Core Features & Use Cases

  • Enables DryRun mode to generate SQL for inspection and debugging without executing it.
  • Supports prepared statement caching, session isolation (NewDB), and context-aware timeouts for robust performance and safety.
  • Useful for bulk imports, migrations, performance tuning, and controlled maintenance scripts where skipping hooks or allowing global updates must be done deliberately.

Quick Start

Create a GORM session that enables prepared statement caching, sets a timeout context, and runs a dry-run query to inspect generated SQL.

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

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.