Overview of GORM features
masterGORM is a full-featured ORM for Golang designed to be developer-friendly. Key capabilities include:
- Associations: Supports Has One, Has Many, Belongs To, Many To Many, Polymorphism, and Single-table inheritance.
- Hooks: Lifecycle callbacks including
Before/After Create,Before/After Save,Before/After Update,Before/After Delete, andBefore/After Find. - Eager Loading: Use
PreloadandJoinsto load associated data. - Transactions: Supports standard transactions, nested transactions, Save Points, and
RollbackTofunctionality. - Advanced Querying: Includes a SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, and
NamedArg. You can perform Search, Update, and Create operations usingSQL Expr. - Data Management: Supports Batch Insert,
FindInBatches,Find To Map, and Auto Migrations. - Extensibility: A flexible plugin API allows for features like a Database Resolver (for Multiple Databases or Read/Write Splitting) and Prometheus integration.