Manage database transactions for data consistency. Use when implementing ACID compliance, handling concurrency, or managing transaction isolation levels.
Implement robust transaction management with ACID compliance, concurrency control, and error handling. Covers isolation levels, locking strategies, and deadlock resolution.
Simple Transaction:
-- Start transaction
BEGIN;
-- Multiple statements
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
UPDATE accounts SET balance = balance + 100 WHERE id = 2;
-- Commit changes
COMMIT;
-- Or rollback
ROLLBACK;
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | PostgreSQL Transactions | PostgreSQL Transactions | | MySQL Transactions | MySQL Transactions | | PostgreSQL Isolation Levels | PostgreSQL Isolation Levels | | MySQL Isolation Levels | MySQL Isolation Levels | | PostgreSQL Explicit Locking | PostgreSQL Explicit Locking | | MySQL Locking | MySQL Locking | | Deadlock Prevention | PostgreSQL - Deadlock Detection: |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/transaction-management · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/transaction-management"
cp -r "skills/transaction-management" ".claude/skills/transaction-management"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.