{"id":49844095,"url":"https://github.com/ydb-platform/gorm-driver","last_synced_at":"2026-05-14T08:45:30.099Z","repository":{"id":65661895,"uuid":"580790885","full_name":"ydb-platform/gorm-driver","owner":"ydb-platform","description":"GORM YDB driver","archived":false,"fork":false,"pushed_at":"2025-04-29T10:50:47.000Z","size":378,"stargazers_count":5,"open_issues_count":9,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-29T11:43:21.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ydb-platform.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2022-12-21T13:08:59.000Z","updated_at":"2025-04-29T10:50:52.000Z","dependencies_parsed_at":"2023-12-05T06:22:57.566Z","dependency_job_id":"2cb3976f-9d54-4c14-95ba-2553b7b87f32","html_url":"https://github.com/ydb-platform/gorm-driver","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ydb-platform/gorm-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fgorm-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fgorm-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fgorm-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fgorm-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydb-platform","download_url":"https://codeload.github.com/ydb-platform/gorm-driver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fgorm-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33017712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":[],"created_at":"2026-05-14T08:45:28.712Z","updated_at":"2026-05-14T08:45:30.093Z","avatar_url":"https://github.com/ydb-platform.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GORM YDB Driver\n\nYDB support for GORM\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ydb-platform/ydb/blob/main/LICENSE)\n[![Release](https://img.shields.io/github/v/release/ydb-platform/gorm-driver.svg)](https://github.com/ydb-platform/gorm-driver/releases)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/ydb-platform/gorm-driver)](https://pkg.go.dev/github.com/ydb-platform/gorm-driver)\n![tests](https://github.com/ydb-platform/gorm-driver/workflows/tests/badge.svg?branch=main)\n![lint](https://github.com/ydb-platform/gorm-driver/workflows/lint/badge.svg?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ydb-platform/gorm-driver)](https://goreportcard.com/report/github.com/ydb-platform/gorm-driver)\n[![codecov](https://codecov.io/gh/ydb-platform/gorm-driver/branch/main/graph/badge.svg?precision=2)](https://app.codecov.io/gh/ydb-platform/gorm-driver)\n![Code lines](https://sloc.xyz/github/ydb-platform/gorm-driver/?category=code)\n[![View examples](https://img.shields.io/badge/learn-examples-brightgreen.svg)](https://github.com/ydb-platform/ydb-go-sdk/tree/master/examples/basic/gorm)\n[![Telegram](https://img.shields.io/badge/chat-on%20Telegram-2ba2d9.svg)](https://t.me/ydb_en)\n[![WebSite](https://img.shields.io/badge/website-ydb.tech-blue.svg)](https://ydb.tech)\n\n## Quick Start\n\nYou can simply test your connection to your database with the following:\n\n```go\npackage main\n\nimport (\n\tydb \"github.com/ydb-platform/gorm-driver\"\n\t\"gorm.io/gorm\"\n)\n\ntype User struct {\n\tName string `gorm:\"primarykey\"`\n\tAge  int\n}\n\nfunc main() {\n\tdb, err := gorm.Open(ydb.Open(\"grpc://localhost:2136/local\"))\n\tif err != nil {\n\t\tpanic(\"failed to connect database\")\n\t}\n\n\t// Auto Migrate\n\tdb.AutoMigrate(\u0026User{})\n\n\t// Insert\n\tdb.Create(\u0026User{Name: \"Angeliz\", Age: 18})\n\n\t// Select\n\tdb.Find(\u0026User{}, \"name = ?\", \"Angeliz\")\n\n\t// Batch Insert\n\tuser1 := User{Name: \"Charles\", Age: 12}\n\tuser2 := User{Name: \"Feynman\", Age: 13}\n\tuser3 := User{Name: \"Michael\", Age: 14}\n\tusers := []User{user1, user2, user3}\n\tdb.Create(\u0026users)\n\n\t// ...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fgorm-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydb-platform%2Fgorm-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fgorm-driver/lists"}