What problem does it solve?
This Skill provides a comprehensive set of standards and examples for using the GORM ORM in Go, simplifying database operations, model definitions, and query patterns.
Core Features & Use Cases
- Database Connection: Establish and configure database connections.
- Model Definitions: Define Go structs with GORM tags for schema mapping and constraints.
- CRUD Operations: Perform Create, Read, Update, and Delete operations efficiently.
- Querying: Build complex queries with conditions, joins, and preloading.
- Associations: Manage one-to-many, many-to-many, and other relationships.
- Transactions & Hooks: Ensure data consistency and implement custom logic.
- Migrations: Guidance on database schema evolution.
Quick Start
Use the GORM ORM skill to define a User model with basic fields and then perform a create operation.