Protoc plugin for generating Go ORM code from Protocol Buffers (.proto files).
This tool is designed to simplify the process of creating database interaction layers in Go applications
by automatically generating ORM-like structures based on your protobuf definitions.
Features
Go Struct Generation: Automatically generates Go structs with embedded ORM functionality tailored to specific databases.
Filter and Pagination: Supports generating code for filtering and pagination to enhance database operations.
Multiple Database Support: Includes options for generating ORM code for multiple databases:
Postgres: Generates code for interacting with a PostgreSQL database.
MongoDB: Generates code for interacting with a MongoDB database.
RAM: Generates code for in-memory operations.
skip: Skips generating ORM code.
Whitelist Types: Allows specifying which types to generate ORM code for, enabling selective generation of ORM code.
Common Options: Supports common options like common and common_path to specify common code generation options.
Installation
go install github.com/shortlink-org/shortlink/pkg/protoc/protoc-gen-go-orm