The fantastic ORM library for Golang, aims to be developer friendly
Go to file
givemeafish 956f7ce843
fix: 'type XXXX int' will print wrong sql to terminal (#6917)
Co-authored-by: 王泽平 <zeping.wang@yo-star.com>
2024-03-21 16:00:02 +08:00
.github chore(deps): bump actions/cache from 3 to 4 (#6802) 2024-01-29 10:34:20 +08:00
callbacks Fix insert id into map results, fix #6812 2024-03-19 11:50:28 +08:00
clause Fix regression in db.Not introduced in v1.25.6. (#6844) 2024-03-05 10:23:51 +08:00
logger fix: 'type XXXX int' will print wrong sql to terminal (#6917) 2024-03-21 16:00:02 +08:00
migrator Fix AutoMigrate for bool fields with default value 2024-03-18 19:24:16 +08:00
schema Fix tests in local 2024-03-18 16:28:46 +08:00
tests Don't close prepared stmt for normal db error 2024-03-21 15:55:43 +08:00
utils Fixed: panic on nullable value with multiple foreign key usage (#6839) 2024-02-19 11:42:25 +08:00
.gitignore Adjust ToStringKey use unpack params, fix pass []any as any in variadic function (#5500) 2022-07-14 20:05:22 +08:00
.golangci.yml feat: golangci add goimports and whitespace (#5835) 2022-11-05 08:37:37 +08:00
LICENSE renamed License to LICENSE (#6336) 2023-05-21 21:24:00 +08:00
README.md docs: fix broken link (#6673) 2023-11-07 10:20:06 +08:00
association.go feat: unscoped association (#5899) (#6246) 2023-05-04 19:30:45 +08:00
callbacks.go debug: use slice Stale sort (#6263) 2023-04-26 22:19:46 +08:00
chainable_api.go Fix tests doesn't follow https://gorm.io/docs/method_chaining.html convention 2024-01-12 16:42:21 +08:00
errors.go Added support of "Violates Foreign Key Constraint" (#6329) 2023-05-21 21:27:22 +08:00
finisher_api.go Fix tests doesn't follow https://gorm.io/docs/method_chaining.html convention 2024-01-12 16:42:21 +08:00
go.mod Update go.mod 2023-08-27 15:40:54 +08:00
go.sum feat: rm GetDBConnWithContext method (#6535) 2023-08-19 21:33:31 +08:00
gorm.go Fixed error message when dialector fails to initialize (#6509) 2023-08-20 19:46:56 +08:00
interfaces.go feat: rm GetDBConnWithContext method (#6535) 2023-08-19 21:33:31 +08:00
migrator.go feat: add MigrateColumnUnique (#6640) 2023-10-30 17:15:49 +08:00
model.go Issue 6054: Unscoped not working with PreLoad on Joins (#6058) 2023-02-18 09:06:43 +08:00
prepare_stmt.go Only close bad conn prepared stmt 2024-03-20 19:47:20 +08:00
scan.go fix(scan): array element is set to a zero value (#6890) 2024-03-15 14:14:48 +08:00
soft_delete.go fix: support zeroValue tag on DeletedAt (#6011) 2023-02-01 14:40:55 +08:00
statement.go Fix tests doesn't follow https://gorm.io/docs/method_chaining.html convention 2024-01-12 16:42:21 +08:00
statement_test.go fix: join and select mytable.* not working (#6761) 2023-12-23 21:19:41 +08:00

README.md

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