mirror of
https://github.com/beego/bee.git
synced 2024-11-21 13:40:53 +00:00
Update apiapp.go
db连接信息使用双引号包含
This commit is contained in:
parent
e3e401cadd
commit
5ba90258a4
@ -35,7 +35,7 @@ var CmdApiapp = &commands.Command{
|
||||
The command 'api' creates a Beego API application.
|
||||
|
||||
{{"Example:"|bold}}
|
||||
$ 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"]
|
||||
|
||||
If 'conn' argument is empty, the command will generate an example API application. Otherwise the command
|
||||
will connect to your database and generate models based on the existing tables.
|
||||
|
Loading…
Reference in New Issue
Block a user