「golang」xorm工具生成postgres的model

golang中的orm框架,一般使用xorm的xorm工具根据数据库表自动生成struct文件

xorm reverse postgres "dbname=queimsi sslmode=disable user=postgres password=123456 host=10.0.2.206 port=5432" /data/workspace/go/src/github.com/go-xorm/cmd/xorm/templates/goxorm

然后就会自动在当前目录下生成表的struct文件

posted on 2018-05-04 13:55  trako  阅读(451)  评论(0编辑  收藏  举报

导航