gorm-transactions

Community

Execute atomic database operations safely

Authorliurida
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill ensures a group of GORM database actions are executed as a single atomic unit, so either all changes are persisted or none, preventing partial updates and data inconsistency.

Core Features & Use Cases

  • Atomic Transactions: Wrap multiple create, update, or delete operations in a transaction that commits only if all succeed.
  • Nested Transactions: Support for savepoints and rollback of inner transaction scopes.
  • Manual Control: Ability to begin, commit, or rollback transactions explicitly for complex workflows.
  • Use Cases: Safely performing multi-step data migrations, enforcing business rules across several tables, or ensuring consistency when inserting related records.

Quick Start

Create a GORM transaction that inserts a Giraffe and a Lion record atomically.

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

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.