{"id":19974008,"url":"https://github.com/objectbox/objectbox-generator","last_synced_at":"2025-05-07T09:44:45.368Z","repository":{"id":44938632,"uuid":"271745567","full_name":"objectbox/objectbox-generator","owner":"objectbox","description":"ObjectBox Generator based on FlatBuffers schema files (fbs) for C and C++ (more languages in the future)","archived":false,"fork":false,"pushed_at":"2024-11-04T14:16:29.000Z","size":3412,"stargazers_count":38,"open_issues_count":21,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T08:44:12.195Z","etag":null,"topics":["c","code-generator","cpp","cross-platform","database","embedded","go","golang","nosql","objectbox"],"latest_commit_sha":null,"homepage":"https://objectbox.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.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":"2020-06-12T08:14:45.000Z","updated_at":"2025-03-23T07:03:33.000Z","dependencies_parsed_at":"2024-11-04T13:25:51.894Z","dependency_job_id":"66277e35-870f-4de9-9842-2698d748f784","html_url":"https://github.com/objectbox/objectbox-generator","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectbox%2Fobjectbox-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectbox","download_url":"https://codeload.github.com/objectbox/objectbox-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252853443,"owners_count":21814531,"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":["c","code-generator","cpp","cross-platform","database","embedded","go","golang","nosql","objectbox"],"created_at":"2024-11-13T03:13:35.393Z","updated_at":"2025-05-07T09:44:45.349Z","avatar_url":"https://github.com/objectbox.png","language":"Go","readme":"\u003cimg width=\"466\" src=\"https://raw.githubusercontent.com/objectbox/objectbox-java/master/logo.png\" alt=\"ObjectBox Logo\"\u003e\n\u003cbr/\u003e\n\n[![Follow ObjectBox on Twitter](https://img.shields.io/twitter/follow/ObjectBox_io.svg?style=flat-square\u0026logo=twitter\u0026color=fff)](https://twitter.com/ObjectBox_io)\n\n# ObjectBox Generator\n\nCurrent version: 4.0.0-beta\n\nObjectBox is a superfast cross-platform object-oriented database.\nObjectBox Generator produces code for ObjectBox C, C++ and Go APIs (more languages to be supported in the future).\nThis greatly simplifies using ObjectBox in your favourite language.\n\n## Download\n\nInstall the objectbox-generator by downloading the latest binary for your OS from [releases](https://github.com/objectbox/objectbox-generator/releases/latest).\nIf you want, add it to `$PATH` for convenience.\n\nAlternatively, CMake users can fetch ObjectBox and the Generator for C++ using FetchContent\n([link](https://cpp.objectbox.io/installation)).\n\n## Build \n\nIf you prefer to build the generator yourself (vs. downloading), clone this repo and simply run `make`.\nThis will produce an \"objectbox-generator\" binary in the main project directory.\n\nBuild notes:\n\n* To build yourself, you need Go, Make, CMake and a C++11 tool chain.\n* To run test suite, run `make test-depend test`.\n* `test-depend` needs to run only once to download objectbox core library and to build flatcc.\n* A full test cycle can be triggered by `make clean all test-depend test`.\n\n## Getting started\n\nTo get started, have a look at the specific language bindings (the approaches differ):\n\n* C and C++ [repository](https://github.com/objectbox/objectbox-c) and [docs](https://cpp.objectbox.io/).\n  In summary, you define a FlatBuffers schema file, and the ObjectBox Generator will create plain C++ data classes\n  and helper classes that \"glue\" the data classes to the ObjectBox runtime library.\n  CMake users can also use the convenient add_obx_schema() task instead of using the generator executable directly.\n* Go [repository](https://github.com/objectbox/objectbox-go) and [docs](https://golang.objectbox.io/).\n  Here, you start with Go data structs, for which the Generator generates the glue code directly.\n\n## Development Notes\n\n* Clean test cache: `go clean -testcache`\n* Run test suite `test/comparison` with flag `-update` to update expected files.\n* Run test suite `test/integration` with flag `-insource` to generate code in source may be helpful (e.g. `cd test/integration \u0026\u0026 go test ./... -insource`)\n\n# License\n\n```\nObjectBox Generator - a build time tool for ObjectBox\nCopyright (C) 2018-2024 ObjectBox Ltd. All rights reserved.\nhttps://objectbox.io\nThis file is part of ObjectBox Generator.\n\nObjectBox Generator is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\nObjectBox Generator is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\nYou should have received a copy of the GNU Affero General Public License\nalong with ObjectBox Generator.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n\nNote: AGPL only applies to the Generator itself and not to generated code.\nYou can regard generated code as \"your code\", and we impose no limitation on distributing it.\nAnd, just to clarify: as the Generator does not include any warranty, there can be no warranty for the code it generates.       \n\n# Do you ♥️ using ObjectBox?\n\nWe want to [hear about your project](https://docs.google.com/forms/d/e/1FAIpQLScIYiOIThcq-AnDVoCvnZOMgxO4S-fBtDSFPQfWldJnhi2c7Q/viewform)!\nIt will - literally - take just a minute, but help us a lot. Thank you!​ 🙏​\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectbox%2Fobjectbox-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectbox%2Fobjectbox-generator/lists"}