Goran Marić 0b5712f2da
Update migrator.go
Refactored Large Functions: Broke down large functions into smaller, more manageable ones for better readability and maintainability.

Enhanced Error Handling: Added more descriptive error messages and ensured all potential errors are properly checked and handled.

Simplified Complex Logic: Streamlined complex conditional statements and loops to make the code easier to understand.

Go Best Practices: Ensured the code follows Go conventions, such as proper naming, commenting, and structuring.

Removed Redundancies: Eliminated any redundant code or unnecessary variables to optimize performance.

Consistent Formatting: Applied consistent code formatting for better readability.
2024-09-20 11:58:17 +02:00
2024-09-20 11:58:17 +02:00
2023-05-21 21:24:00 +08:00
2023-11-07 10:20:06 +08:00
2024-06-24 17:42:59 +08:00

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

go report card test status MIT license Go.Dev reference

Overview

  • Full-Featured ORM
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
  • Hooks (Before/After Create/Save/Update/Delete/Find)
  • Eager loading with Preload, Joins
  • Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
  • Context, Prepared Statement Mode, DryRun Mode
  • Batch Insert, FindInBatches, Find To Map
  • SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg, Search/Update/Create with SQL Expr
  • Composite Primary Key
  • Auto Migrations
  • Logger
  • Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…
  • Every feature comes with tests
  • Developer Friendly

Getting Started

Contributing

You can help to deliver a better GORM, check out things you can do

Contributors

Thank you for contributing to the GORM framework!

License

© Jinzhu, 2013~time.Now

Released under the MIT License

Description
The fantastic ORM library for Golang, aims to be developer friendly
Readme
Languages
Go 99.9%
Shell 0.1%