资 源 简 介
This is a sql plugin for protobuf to generate sql statement from .proto file with some user defined options. And I define the options in the file named "MyOptions.proto" which including message option and field options. Now it can only generate create table sql statement.
usage: protoc.exe --proto_path="." --plugin=protoc-gen-sql="sql_plugin.exe" --sql_out="." Table.Role.proto (Table.Role.proto is your proto file that defines the database table)