All Projects → tcncloud → protoc-gen-persist

tcncloud / protoc-gen-persist

Licence: BSD-3-Clause license
GRPC SQL and Spanner persistence layer

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to protoc-gen-persist

protocell
Conjures up convenient OCaml types and serialization functions based on protobuf definition files
Stars: ✭ 18 (-70%)
Mutual labels:  protobuf, protoc-plugin
protoc-plugin
A protoc compiler plugin for Clojure applications
Stars: ✭ 28 (-53.33%)
Mutual labels:  protobuf, protoc-plugin
goprotoc
Library for writing protoc plugins in Go; also includes a pure-Go protoc replacement
Stars: ✭ 73 (+21.67%)
Mutual labels:  protobuf, protoc-plugin
protokit
A starter kit for building protoc plugins. Rather than write your own, you can just use an existing one.
Stars: ✭ 69 (+15%)
Mutual labels:  protobuf, protoc-plugin
raster
A micro server framework, support coroutine, and parallel-computing, used for building flatbuffers/thrift/protobuf/http protocol service.
Stars: ✭ 19 (-68.33%)
Mutual labels:  protobuf
Gordon cnn
A small convolution neural network deep learning framework implemented in c++.
Stars: ✭ 241 (+301.67%)
Mutual labels:  protobuf
Protobuf Jetbrains Plugin
Protobuf Support for JetBrains IDEs
Stars: ✭ 226 (+276.67%)
Mutual labels:  protobuf
Protoc Gen Lint
A plug-in for Google's Protocol Buffers (protobufs) compiler to lint .proto files for style violations.
Stars: ✭ 221 (+268.33%)
Mutual labels:  protobuf
Meshtastic-protobufs
Protobuf definitions for the Meshtastic project
Stars: ✭ 32 (-46.67%)
Mutual labels:  protobuf
sisyphus-js
Sisyphus customized protobuf and gRPC runtime and code generator for JavaScript/TypeScript
Stars: ✭ 19 (-68.33%)
Mutual labels:  protobuf
flyteidl
Specification of the IR for Flyte workflows and tasks. Also Interfaces for all backend services. https://docs.flyte.org/projects/flyteidl/en/stable/
Stars: ✭ 27 (-55%)
Mutual labels:  protobuf
Protoman
Postman for protobuf APIs
Stars: ✭ 241 (+301.67%)
Mutual labels:  protobuf
go-chat
go-chat.使用Go基于WebSocket开发的web聊天应用。单聊,群聊。文字,图片,语音,视频消息,屏幕共享,剪切板图片,基于WebRTC的P2P语音通话,视频聊天。
Stars: ✭ 516 (+760%)
Mutual labels:  protobuf
Go Space Chat
【孤单Lonely】基于Golang/WebSocket/Canvas/Protobuf 的聊天室
Stars: ✭ 228 (+280%)
Mutual labels:  protobuf
molch
An implementation of the axolotl ratchet based on libsodium.
Stars: ✭ 24 (-60%)
Mutual labels:  protobuf
Jackson Dataformats Binary
Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Stars: ✭ 221 (+268.33%)
Mutual labels:  protobuf
JavaSteam
Java library that provides an interface to directly interact with Valve's Steam servers.
Stars: ✭ 70 (+16.67%)
Mutual labels:  protobuf
GameTracking-HalfLifeAlyx
📥 Game Tracker: Half-Life: Alyx
Stars: ✭ 24 (-60%)
Mutual labels:  protobuf
Play Store Api
Google Play Store protobuf API wrapper in java
Stars: ✭ 249 (+315%)
Mutual labels:  protobuf
golang-example-app
Example application
Stars: ✭ 138 (+130%)
Mutual labels:  protobuf

protoc-gen-persist

Protobuf plugin that generate a persistence layer backed by SQL or Spanner database

Rationale

An 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. The 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.

Installation

This project requires protoc and protoc-gen-go be installed

Then install with go get github.com/tcncloud/protoc-gen-persist

Documentation

documentation for the project can be found Here The documentation goes over the persist options, how to structure your proto file, custom type mapping to/from the database, and spanner query parsing

Version 4.0.0

Starting with this version we changed the command line parameters. On 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. The 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.

Version 3.0.0

  • Complete rework of the plugin (check the docs, and examples directory for more info)

Version 2.0.0

  • new method for generating before and after hooks. See #82 (@iamneal)

Version 1.0.0

  • new persist_lib generated package for custom handlers
  • generated service handlers and custom handlers can be on different types, in different packages
  • expanded default type mapping
  • lots of bug fixes

Authors

License

Copyright 2017, TCN Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of TCN Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].