mirror of
https://github.com/beego/bee.git
synced 2024-11-25 20:10:55 +00:00
help msg
This commit is contained in:
parent
67cd084295
commit
8e1a1f5860
@ -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]
|
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
|
-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 ''
|
-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.
|
if conn is empty will create a example api application. otherwise generate api application based on an existing database.
|
||||||
|
2
g.go
2
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]
|
bee generate appcode [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] [-level=3]
|
||||||
generate appcode based on an existing database
|
generate appcode based on an existing database
|
||||||
-tables: a list of table names separated by ',', default is empty, indicating all tables
|
-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.
|
-conn: the connection string used by the driver.
|
||||||
default for mysql: root:@tcp(127.0.0.1:3306)/test
|
default for mysql: root:@tcp(127.0.0.1:3306)/test
|
||||||
default for postgres: postgres://postgres:postgres@127.0.0.1:5432/postgres
|
default for postgres: postgres://postgres:postgres@127.0.0.1:5432/postgres
|
||||||
|
Loading…
Reference in New Issue
Block a user