1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00

help/error message correction and import lib/pq

This commit is contained in:
ZhengYang
2014-08-21 10:19:44 +08:00
parent 6d56c04147
commit 9bf23ea88a
2 changed files with 3 additions and 2 deletions

2
g.go
View File

@ -23,7 +23,7 @@ var cmdGenerate = &Command{
bee generate scaffold [scaffoldname] [-fields=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"]
The generate scaffold command will do a number of things for you.
-fields: a list of table fields. Format: field:type, ...
-driver: [mysql | postgresql | sqlite], the default is mysql
-driver: [mysql | postgres | sqlite], the default is mysql
-conn: the connection string used by the driver, the default is root:@tcp(127.0.0.1:3306)/test
example: bee generate scaffold post -fields="title:string,body:text"