The fantastic ORM library for Golang, aims to be developer friendly
Go to file
Hasan f3e2da5ba3 Added offset when scanning the result back to struct, close #5143
commit 9a2058164d44c98d7b586b87bed1757f89d6fad7
Author: Jinzhu <wosmvp@gmail.com>
Date:   Thu Mar 17 22:34:19 2022 +0800

    Refactor #5143

commit c259de2176
Author: Hasan <mr.k779@outlook.com>
Date:   Mon Mar 14 20:04:01 2022 +0545

    Update scan_test.go

commit 09f127b491
Author: Hasan <mr.k779@outlook.com>
Date:   Mon Mar 14 19:23:47 2022 +0545

    Added test for scanning embedded data into structs

commit aeaca493cf
Author: Hasan <mr.k779@outlook.com>
Date:   Tue Mar 8 04:08:16 2022 +0600

    Added offset when scanning the result back to struct
2022-03-17 22:52:40 +08:00
.github chore(deps): bump actions/checkout from 2 to 3 (#5133) 2022-03-12 22:28:18 +08:00
callbacks Refactor preload error check 2022-03-17 11:22:25 +08:00
clause Fixed the use of "or" to be " OR ", to account for words that contain "or" or "and" (e.g., 'score', 'band') in a sql statement as the name of a field. 2022-02-20 08:22:21 +08:00
logger strings.replace -> strings.replaceAll (#5095) 2022-02-20 19:55:04 +08:00
migrator Improve support for AutoMigrate 2022-02-19 23:42:20 +08:00
schema Support default tag for time.Time 2022-03-17 11:34:27 +08:00
tests Added offset when scanning the result back to struct, close #5143 2022-03-17 22:52:40 +08:00
utils fix typo in TxCommitter interface comment & improve CheckTruth, chek val empty first (#5094) 2022-02-20 21:19:15 +08:00
.gitignore Add TxConnPoolBeginner and Tx interface 2022-03-01 16:59:50 +08:00
.golangci.yml Use Golangci configuration file (#4896) 2021-12-10 17:44:11 +08:00
License Add MIT License file 2015-01-05 08:59:18 +08:00
README.md Fix typo in README (#4012) 2021-01-28 10:21:58 +08:00
association.go Add serializer support (#5078) 2022-02-19 17:02:53 +08:00
callbacks.go Don't query with primary key when using Save 2021-11-08 18:49:59 +08:00
chainable_api.go Fix Join condition with DB 2021-09-28 22:37:15 +08:00
errors.go preoload not allowd before count (#5023) 2022-01-30 18:17:06 +08:00
finisher_api.go Refactor preload error check 2022-03-17 11:22:25 +08:00
go.mod Upgrade go.mod 2021-12-10 17:50:19 +08:00
go.sum Upgrade go.mod 2021-12-10 17:50:19 +08:00
gorm.go ToSQL should enable SkipDefaultTransaction by default 2022-03-03 09:18:01 +07:00
interfaces.go Refactor Tx interface 2022-03-01 16:59:50 +08:00
migrator.go Enhance migrator Columntype interface (#5088) 2022-02-19 17:02:53 +08:00
model.go Fix typo 2020-06-09 12:00:43 +08:00
prepare_stmt.go Refactor Tx interface 2022-03-01 16:59:50 +08:00
scan.go Added offset when scanning the result back to struct, close #5143 2022-03-17 22:52:40 +08:00
soft_delete.go Refactor check missing where condition 2022-02-25 10:48:23 +08:00
statement.go Add serializer support (#5078) 2022-02-19 17:02:53 +08:00
statement_test.go Support specify select/omit columns with table 2021-10-08 17:51:27 +08:00

README.md

GORM

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

go report card test status Join the chat at https://gitter.im/jinzhu/gorm Open Collective Backer Open Collective Sponsor 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

License

© Jinzhu, 2013~time.Now

Released under the MIT License