{"id":13411946,"url":"https://github.com/objectbox/objectbox-go","last_synced_at":"2025-05-14T14:07:43.330Z","repository":{"id":33559243,"uuid":"159507010","full_name":"objectbox/objectbox-go","owner":"objectbox","description":"Embedded Go Database, the fast alternative to SQLite, gorm, etc.","archived":false,"fork":false,"pushed_at":"2025-03-12T13:34:35.000Z","size":2430,"stargazers_count":1209,"open_issues_count":16,"forks_count":50,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-04-15T08:45:23.830Z","etag":null,"topics":["database","edge","embedded","go","golang","iot","nosql","offline-first","storage"],"latest_commit_sha":null,"homepage":"https://golang.objectbox.io/","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/objectbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2018-11-28T13:32:47.000Z","updated_at":"2025-04-13T01:24:23.000Z","dependencies_parsed_at":"2024-01-30T04:06:58.544Z","dependency_job_id":"43dd64dc-b96a-455c-a91c-87c5b91f6ed4","html_url":"https://github.com/objectbox/objectbox-go","commit_stats":{"total_commits":751,"total_committers":15,"mean_commits":50.06666666666667,"dds":"0.21038615179760323","last_synced_commit":"fb4848df90642394c0800a7d8e9bc0e0743ce903"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectbox","download_url":"https://codeload.github.com/objectbox/objectbox-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159194,"owners_count":22024558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","edge","embedded","go","golang","iot","nosql","offline-first","storage"],"created_at":"2024-07-30T20:01:19.038Z","updated_at":"2025-05-14T14:07:43.275Z","avatar_url":"https://github.com/objectbox.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"466\" src=https://user-images.githubusercontent.com/91467067/190631181-ac090b78-f917-49f2-9293-0f1efa82db18.png\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://golang.objectbox.io/install\"\u003eGetting Started\u003c/a\u003e •\n  \u003ca href=\"https://golang.objectbox.io\"\u003eDocumentation\u003c/a\u003e •\n  \u003ca href=\"https://github.com/objectbox/objectbox-go/tree/main/examples\"\u003eExample Apps\u003c/a\u003e •\n  \u003ca href=\"https://github.com/objectbox/objectbox-go/issues\"\u003eIssues\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/objectbox/objectbox-go\"\u003e\n    \u003cimg src=\"https://goreportcard.com/badge/github.com/objectbox/objectbox-go?style=flat-square\" alt=\"Go Report\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/objectbox/objectbox-go/objectbox\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/godoc-objectbox-00b0d7?style=flat-square\u0026logo=go\" alt=\"Godocs\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://golang.objectbox.io/#changelog\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/objectbox/objectbox-go?color=17A6A6\u0026style=flat-square\" alt=\"Latest Release\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/ObjectBox_io\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/objectbox_io?color=%20%2300aced\u0026logo=twitter\u0026style=flat-square\" alt=\"Follow @ObjectBox_io\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nObjectBox Go Database - simple but powerful; frugal but fast\n=========================\nThe Golang database is easy to use via an intuitive native Golang API and persists objects superfast and sustainably.\\\nGo and check out [the performance benchmarks vs SQLite (GORM) \u0026 Storm](https://objectbox.io/go-1-0-release-and-performance-benchmarks/).\n\nObjectBox persists your native Go structs using a simple CRUD API:\n\n```go\nid, err := box.Put(\u0026Person{ FirstName: \"Joe\", LastName:  \"Green\" })\n```\n\nWant details? **[Read the docs](https://golang.objectbox.io/)** or\n**[check out the API reference](https://godoc.org/github.com/objectbox/objectbox-go/objectbox)**.\n\nLatest release: [v1.9.0 (2025-03-12)](https://golang.objectbox.io/)\n\n## Table of Contents:\n- [High-performance Golang database](#high-performance-golang-database)\n- [Getting started](#getting-started)\n- [Already using ObjectBox?](#already-using-objectbox)\n- [Upgrading to a newer version](#upgrading-to-a-newer-version)\n- [Other languages/bindings](#other-languagesbindings)\n- [License](#license)\n\nHigh-performance Go database\n--------------------------------\n🏁 **High performance** on restricted devices, like IoT gateways, micro controllers, ECUs etc.\\\n💚 **Resourceful** with minimal CPU, power and Memory usage for maximum flexibility and sustainability\\\n🔗 **Relations:** object links / relationships are built-in\\\n💻 **Multiplatform:** Linux, Windows, Android, iOS, macOS\n\n🌱 **Scalable:** handling millions of objects resource-efficiently with ease\\\n💐 **Queries:** filter data as needed, even across relations\\\n🦮 **Statically typed:** compile time checks \u0026 optimizations\\\n📃 **Automatic schema migrations:** no update scripts needed\n\n**And much more than just data persistence**\\\n👥 **[ObjectBox Sync](https://objectbox.io/sync/):** keeps data in sync between devices and servers\\\n🕒 **[ObjectBox TS](https://objectbox.io/time-series-database/):** time series extension for time based data\n\n\nGetting started: Go!\n---------------\nTo install ObjectBox, execute the following command in your project directory. \nYou can have a look at [installation docs](https://golang.objectbox.io/install) for more details and further instructions. \n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/objectbox/objectbox-go/main/install.sh)\n```\n\nTo install [ObjectBox Sync](https://objectbox.io/sync/) variant of the library, pass `--sync` argument to the command above:\n\n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/objectbox/objectbox-go/main/install.sh) --sync\n```\n\nYou can run tests to validate your installation\n```bash\ngo test github.com/objectbox/objectbox-go/...\n```\n\nWith the dependencies installed, you can start adding entities to your project:\n```go\n//go:generate go run github.com/objectbox/objectbox-go/cmd/objectbox-gogen\n​\ntype Task struct {\n\tId   uint64\n\tText string\n}\n```\nAnd run code generation in your project dir\n```bash\ngo generate ./...\n```\nThis generates a few files in the same folder as the entity - remember to add those to version control (e. g. git).\n\nOnce code generation finished successfully, you can start using ObjectBox:\n```go\nobx := objectbox.NewBuilder().Model(ObjectBoxModel()).Build()\nbox := BoxForTask(obx) // Generated function to provide a Box for Task objects\nid, _ := box.Put(\u0026Task{ Text: \"Buy milk\" })\n```\n\nSee the [Getting started](https://golang.objectbox.io/getting-started) section of our docs for a more thorough intro. \n\nAlso, please have a look at the [examples](examples) directory and for the API reference see \n[ObjectBox GoDocs](https://godoc.org/github.com/objectbox/objectbox-go/objectbox) - and the sources in this repo. \n\nAlready using ObjectBox Database?\n---------------------------\n\n**Your opinion matters to us!** Please fill in this 2-minute [Anonymous Feedback Form](https://forms.gle/LvVjN6jfFHuivxZX6).\n\nWe believe, ObjectBox is super easy to use. We are on a mission to make developers’ lives better, by building developer tools that are intuitive and fun to code with.\nTo do that, we want your feedback: what do you love? What's amiss? Where do you struggle in everyday app development?\n\n**We're looking forward to receiving your comments and requests:**\n\n- Add [GitHub issues](https://github.com/ObjectBox/objectbox-go/issues) \n- Upvote issues you find important by hitting the 👍/+1 reaction button\n- Drop us a line via [@ObjectBox_io](https://twitter.com/ObjectBox_io/)\n- ⭐ us, if you like what you see \n\nThank you! 🙏\n\nKeep in touch: For general news on ObjectBox, [check our blog](https://objectbox.io/blog)!\n\n\nUpgrading to a newer version\n----------------------------\nWhen you want to update, please re-run the entire installation process to ensure all components are updated:\n\n* ObjectBox itself (objectbox/objectbox-go)\n* Dependencies (flatbuffers)\n* ObjectBox library (libobjectbox.so|dylib; objectbox.dll)\n* ObjectBox code generator\n\nThis is important as diverging versions of any component might result in errors.\n  \nThe `install.sh` script can also be used for upgrading:\n ```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/objectbox/objectbox-go/main/install.sh)\n ```\n \nAfterwards, don't forget to re-run the code generation on your project\n```bash\ngo generate ./...\n```\n\nOther languages/bindings\n------------------------\nObjectBox supports multiple platforms and languages:\n\n* [Java/Kotlin Database](https://github.com/objectbox/objectbox-java): runs on Android, desktop, and servers\n* [Swift Database](https://github.com/objectbox/objectbox-swift): build fast mobile apps for iOS (and macOS) \n* [Dart/Flutter Database](https://github.com/objectbox/objectbox-dart): cross-platform for mobile and desktop apps \n* [C and C++ Database](https://github.com/objectbox/objectbox-c): native speed with zero copy access to FlatBuffer objects\n\n\nLicense\n-------\n    Copyright 2018-2024 ObjectBox Ltd. All rights reserved.\n    \n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n        http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n","funding_links":[],"categories":["Database","数据库","Data Integration Frameworks","Repositories"],"sub_categories":["Databases Implemented in Go","Go中实现的数据库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectbox%2Fobjectbox-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-go/lists"}