{"id":13413675,"url":"https://github.com/go-gorm/gorm","last_synced_at":"2026-10-18T21:04:27.978Z","repository":{"id":11407086,"uuid":"13855476","full_name":"go-gorm/gorm","owner":"go-gorm","description":"The fantastic ORM library for Golang, aims to be developer friendly","archived":false,"fork":false,"pushed_at":"2026-09-14T16:21:15.000Z","size":4826,"stargazers_count":39980,"open_issues_count":551,"forks_count":4198,"subscribers_count":490,"default_branch":"master","last_synced_at":"2026-10-13T15:49:10.474Z","etag":null,"topics":["go","golang","gorm","orm","web"],"latest_commit_sha":null,"homepage":"https://gorm.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-gorm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null},"funding":{"github":["jinzhu"],"patreon":"jinzhu","open_collective":"gorm"}},"created_at":"2013-10-25T08:31:38.000Z","updated_at":"2026-10-13T11:46:11.000Z","dependencies_parsed_at":"2026-09-29T08:26:17.136Z","dependency_job_id":null,"html_url":"https://github.com/go-gorm/gorm","commit_stats":{"total_commits":2474,"total_committers":438,"mean_commits":5.648401826484018,"dds":0.3217461600646726,"last_synced_commit":"deceebfab8c460cfee229233aded2821ac6b08eb"},"previous_names":[],"tags_count":118,"template":false,"template_full_name":null,"purl":"pkg:github/go-gorm/gorm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-gorm%2Fgorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-gorm%2Fgorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-gorm%2Fgorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-gorm%2Fgorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-gorm","download_url":"https://codeload.github.com/go-gorm/gorm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-gorm%2Fgorm/sbom","scorecard":{"id":431896,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-gorm/gorm","commit":"6cc2c01268c24fdf7b30cfe4b1a8fb5a10922c65"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.6,"checks":[{"name":"Code-Review","score":7,"reason":"Found 21/30 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"24 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/create-release.yml:9","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/create-release.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/golangci-lint.yml:10","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/golangci-lint.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/invalid_question.yml:7","Warn: no topLevel permission defined: .github/workflows/labeler.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/missing_playground.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/stale.yml:7","Info: topLevel 'contents' permission set to 'read': .github/workflows/tests.yml:12","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/create-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/create-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/golangci-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/golangci-lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/golangci-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/invalid_question.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/invalid_question.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/labeler.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/labeler.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/labeler.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/labeler.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/missing_playground.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/missing_playground.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/stale.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:116: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:119: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:154: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:159: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:162: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:195: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:200: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:203: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:221: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:227: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:232: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:236: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:264: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:269: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:304: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/go-gorm/gorm/tests.yml/master?enable=pin","Warn: goCommand not pinned by hash: tests/tests_all.sh:23","Info:   0 out of  28 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   1 out of   2 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T03:34:08.176Z","repository_id":11407086,"created_at":"2025-08-19T03:34:08.177Z","updated_at":"2025-08-19T03:34:08.177Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":343843146,"owners_count":38280151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-13T02:00:04.984Z","response_time":52,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","gorm","orm","web"],"created_at":"2024-07-30T20:01:46.144Z","updated_at":"2026-10-18T21:04:27.973Z","avatar_url":"https://github.com/go-gorm.png","language":"Go","funding_links":["https://github.com/sponsors/jinzhu","https://patreon.com/jinzhu","https://opencollective.com/gorm"],"categories":["Popular","HarmonyOS","Go","开源类库","Database","ORM","Backend Go","Uncategorized","Open source library","Go Tools and Frameworks","ORMs \u0026 Query Builders","Go Tools","测试开发","语言资源库","Tools","数据库工具","开发工具\u0026框架","Relational Databases","\u003ca name=\"Go\"\u003e\u003c/a\u003eGo","武器库","网络相关库","Data and Storage"],"sub_categories":["Windows Manager","数据库","HTTP Clients","HTTP客户端","ORM","Uncategorized","Database","Go","Mock","Interfaces","Golang","go","E-Books","Mesh networks","JavaScript Libraries for Machine Learning","后端","OpenGL","Database Clients and ORMs"],"readme":"# GORM\n\nThe fantastic ORM library for Golang, aims to be developer friendly.\n\n[![go report card](https://goreportcard.com/badge/github.com/go-gorm/gorm \"go report card\")](https://goreportcard.com/report/github.com/go-gorm/gorm)\n[![test status](https://github.com/go-gorm/gorm/actions/workflows/tests.yml/badge.svg)](https://github.com/go-gorm/gorm/actions)\n[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go\u0026logoColor=white)](https://pkg.go.dev/gorm.io/gorm?tab=doc)\n\n## Overview\n\n* Full-Featured ORM\n* Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)\n* Hooks (Before/After Create/Save/Update/Delete/Find)\n* Eager loading with `Preload`, `Joins`\n* Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point\n* Context, Prepared Statement Mode, DryRun Mode\n* Batch Insert, FindInBatches, Find To Map\n* SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg, Search/Update/Create with SQL Expr\n* Composite Primary Key\n* Auto Migrations\n* Logger\n* Extendable, flexible plugin API: Database Resolver (Multiple Databases, Read/Write Splitting) / Prometheus…\n* Every feature comes with tests\n* Developer Friendly\n\n## Getting Started\n\n* GORM Guides [https://gorm.io](https://gorm.io)\n* Gen Guides [https://gorm.io/gen/index.html](https://gorm.io/gen/index.html)\n\n## Contributing\n\n[You can help to deliver a better GORM, check out things you can do](https://gorm.io/contribute.html)\n\n## Contributors\n\n[Thank you](https://github.com/go-gorm/gorm/graphs/contributors) for contributing to the GORM framework!\n\n## License\n\n© Jinzhu, 2013~time.Now\n\nReleased under the [MIT License](https://github.com/go-gorm/gorm/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-gorm%2Fgorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-gorm%2Fgorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-gorm%2Fgorm/lists"}