- 授权协议: 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)
}
}
Python编程
[美]埃里克·马瑟斯 / 袁国忠 / 人民邮电出版社 / 2016-7-1 / CNY 89.00
本书是一本针对所有层次的Python 读者而作的Python 入门书。全书分两部分:第一部分介绍用Python 编程所必须了解的基本概念,包括matplotlib、NumPy 和Pygal 等强大的Python 库和工具介绍,以及列表、字典、if 语句、类、文件与异常、代码测试等内容;第二部分将理论付诸实践,讲解如何开发三个项目,包括简单的Python 2D 游戏开发如何利用数据生成交互式的信息图......一起来看看 《Python编程》 这本书的介绍吧!
