mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Merge pull request #58 from ZhengYang/master
remove debug code & api usage message
This commit is contained in:
commit
31975e5e1e
@ -32,6 +32,8 @@ bee api [appname] [-tables=""] [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/
|
|||||||
-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 | postgres | 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 ''
|
||||||
|
e.g. for mysql: root:@tcp(127.0.0.1:3306)/test
|
||||||
|
e.g. for postgres: postgres://postgres:postgres@127.0.0.1:5432/postgres
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
@ -680,11 +680,7 @@ func (*PostgresDB) GetGoDataType(sqlType string) (goType string) {
|
|||||||
// deleteAndRecreatePaths removes several directories completely
|
// deleteAndRecreatePaths removes several directories completely
|
||||||
func createPaths(mode byte, paths *MvcPath) {
|
func createPaths(mode byte, paths *MvcPath) {
|
||||||
if (mode & O_MODEL) == O_MODEL {
|
if (mode & O_MODEL) == O_MODEL {
|
||||||
err := os.Mkdir(paths.ModelPath, 0777)
|
os.Mkdir(paths.ModelPath, 0777)
|
||||||
if err != nil {
|
|
||||||
ColorLog("[ERRO]", err)
|
|
||||||
os.Exit(2)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (mode & O_CONTROLLER) == O_CONTROLLER {
|
if (mode & O_CONTROLLER) == O_CONTROLLER {
|
||||||
os.Mkdir(paths.ControllerPath, 0777)
|
os.Mkdir(paths.ControllerPath, 0777)
|
||||||
|
Loading…
Reference in New Issue
Block a user