{"id":22845473,"url":"https://github.com/tcncloud/protoc-gen-persist","last_synced_at":"2025-04-28T16:44:03.492Z","repository":{"id":47532967,"uuid":"82338860","full_name":"tcncloud/protoc-gen-persist","owner":"tcncloud","description":"GRPC SQL and  Spanner persistence layer","archived":false,"fork":false,"pushed_at":"2023-04-29T20:30:42.000Z","size":28034,"stargazers_count":66,"open_issues_count":1,"forks_count":11,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-26T07:56:08.847Z","etag":null,"topics":["grpc","persistence-layer","protobuf","protoc-plugin","spanner","sql"],"latest_commit_sha":null,"homepage":"https://tcncloud.github.io/protoc-gen-persist/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcncloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2017-02-17T21:19:24.000Z","updated_at":"2024-11-14T12:04:20.000Z","dependencies_parsed_at":"2024-06-18T22:52:40.003Z","dependency_job_id":"e1f8d5fa-3b05-498f-b377-fb53aae53922","html_url":"https://github.com/tcncloud/protoc-gen-persist","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcncloud%2Fprotoc-gen-persist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcncloud%2Fprotoc-gen-persist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcncloud%2Fprotoc-gen-persist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcncloud%2Fprotoc-gen-persist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcncloud","download_url":"https://codeload.github.com/tcncloud/protoc-gen-persist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251347859,"owners_count":21575167,"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":["grpc","persistence-layer","protobuf","protoc-plugin","spanner","sql"],"created_at":"2024-12-13T03:17:22.985Z","updated_at":"2025-04-28T16:44:03.464Z","avatar_url":"https://github.com/tcncloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protoc-gen-persist\n\nProtobuf plugin that generate a persistence layer backed by SQL or Spanner database\n\n\n## Rationale\nAn opinionated protoc plugin that will help generate boiler plate go code for GRPC micro services projects that need to interact with a SQL or Spanner database.\nThe code generation is accomplished by providing a protobuf file with proper annotations, and then running the protoc cli tool with the `--go_out` option, and the `--persist_out` options set to the same directory.\n\n## Installation\nThis project requires [protoc](https://github.com/google/protobuf) and [protoc-gen-go](https://developers.google.com/protocol-buffers/docs/gotutorial) be installed\n\nThen install with ```go get github.com/tcncloud/protoc-gen-persist```\n## Documentation\ndocumentation for the project can be found [Here](docs/index.md)\nThe documentation goes over the persist options, how to structure your proto file,\ncustom type mapping to/from the database, and spanner query parsing\n\n## Version 4.0.0\nStarting with this version we changed the command line parameters.\nOn the `--plugin_out` option you can add `path=source_relative` to make sure that all the generated files will be created on the current directory.\nThe default behaviour (don't specify the `path=source_relative`) will generate the files in the same directory with the source files or in a directory computed from the  (persist.pkg) or go_package option.\n\n\n## Version 3.0.0\n- Complete rework of the plugin (check the [docs](docs/index.md), and [examples](https://github.com/tcncloud/protoc-gen-persist/tree/master/examples) directory for more info)\n\n## Version 2.0.0\n- new method for generating before and after hooks. See #82 (@iamneal)\n\n## Version 1.0.0\n- new persist_lib generated package for custom handlers\n- generated service handlers and custom handlers can be on different types,\nin different packages\n- expanded default type mapping\n- lots of bug fixes\n\n\n## Authors\n * [Florin Stan](https://github.com/namtzigla)\n * [Neal Cooper](https://github.com/iamneal)\n * [Jamie Whahlin](https://github.com/jwahlin)\n * [Michael Sorenson](https://github.com/michael-the-grey)\n * [Colton Morris](https://github.com/coltonmorris)\n * Spencer Beard\n\n\n## License\nCopyright 2017, TCN Inc.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\ncopyright notice, this list of conditions and the following disclaimer\nin the documentation and/or other materials provided with the\ndistribution.\n * Neither the name of TCN Inc. nor the names of its\ncontributors may be used to endorse or promote products derived from\nthis software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcncloud%2Fprotoc-gen-persist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcncloud%2Fprotoc-gen-persist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcncloud%2Fprotoc-gen-persist/lists"}