mikaelemmmm / sql2pb Goto Github PK
View Code? Open in Web Editor NEWGenerates a protobuf file from your mysql database
License: MIT License
Generates a protobuf file from your mysql database
License: MIT License
是否可以加一个参数,用来过虑某些字段,如created_at,updated_at,deleted_at......谢谢
2022/04/06 15:01:37 no compatible protobuf type found for bit
no compatible protobuf type found for json
rpc AddAddres(AddAddresReq) returns (AddAddresResp);
rpc UpdateAddres(UpdateAddresReq) returns (UpdateAddresResp);```
表名Address ,生成的方法里面少了个s
sql2pb -go_package ./pb -host 127.0.0.1 -package pb -password -port 3306 -schema appoint -service_name ordercenter -user root -table orders > ./ordercenter.proto
报错信息是 - please input the database schema
//--------------------------------鑺傜偣琛?-------------------------------
message SysAuthRule {
int64 id = 1; //id
SysAuthRuleType type = 2; //menu涓鸿彍鍗?file涓烘潈闄愯妭鐐? int64 pid = 3; //鐖禝D
string name = 4; //瑙勫垯鍚嶇О
string title = 5; //瑙勫垯鍚嶇О
string icon = 6; //鍥炬爣
string url = 7; //瑙勫垯URL
string condition = 8; //鏉′欢
string remark = 9; //澶囨敞
int64 ismenu = 10; //鏄惁涓鸿彍鍗? SysAuthRuleMenutype menutype = 11; //鑿滃崟绫诲瀷
string extend = 12; //鎵╁睍灞炴€? string py = 13; //鎷奸煶棣栧瓧姣? string pinyin = 14; //鎷奸煶
int64 weigh = 15; //鏉冮噸
string status = 16; //鐘舵€?}
文件格式编码是utf16???
message SearchWaxAccountGroupReq {
int64 page = 1; //page
int64 pageSize = 2; //pageSize
int64 id = 3; //id
int64 pid = 4; //娓告垙ID
string name = 5; //缁勫悕
string rules = 6; //璐﹀彿缁?}
message SearchWaxAccountGroupResp {
repeated WaxAccountGroup waxAccountGroup = 1; //waxAccountGroup
}
生成后文件没有SearchWaxAccountGroupReq “}”
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.