- 授权协议: MIT
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/mcos/schemabuf
软件介绍
schemabuf 可以根据 MySQL 的表结构来生成 ProtocolBuffers 对应的模型。
使用方法:
$ schemabuf -h Usage of schemabuf: -db string the database type (default "mysql") -host string the database host (default "localhost") -password string the database password (default "root") -port int the database port (default 3306) -schema string the database schema (default "db_name") -user string the database user (default "root")
Go 语言调用:
import "github.com/mcos/schemabuf"
func main() {
connStr := config.get("dbConnStr")
db, err := sql.Open(*dbType, connStr)
if err != nil {
log.Fatal(err)
}
defer db.Close()
s, err := schemabuf.GenerateSchema(db)
if nil != err {
log.Fatal(err)
}
if nil != s {
fmt.Println(s)
}
}
Ordering Disorder
Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99
The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!
XML、JSON 在线转换
在线XML、JSON转换工具
Markdown 在线编辑器
Markdown 在线编辑器
