diff --git a/apiapp.go b/apiapp.go index 8307489..ecf61ef 100644 --- a/apiapp.go +++ b/apiapp.go @@ -30,7 +30,7 @@ create an api application base on beego framework bee api [appname] [-tables=""] [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/test] -tables: a list of table names separated by ',', default is empty, indicating all tables - -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 '' if conn is empty will create a example api application. otherwise generate api application based on an existing database. diff --git a/g.go b/g.go index 13e4a9c..2d7e80e 100644 --- a/g.go +++ b/g.go @@ -50,7 +50,7 @@ bee generate test [routerfile] bee generate appcode [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] [-level=3] generate appcode based on an existing database -tables: a list of table names separated by ',', default is empty, indicating all tables - -driver: [mysql | postgresql | sqlite], the default is mysql + -driver: [mysql | postgres | sqlite], the default is mysql -conn: the connection string used by the driver. default for mysql: root:@tcp(127.0.0.1:3306)/test default for postgres: postgres://postgres:postgres@127.0.0.1:5432/postgres