Documentation
¶
Index ¶
Constants ¶
View Source
const ( DB_DRIVER = "driver" DB_USER = "username" DB_PASSWORD = "password" DB_HOST = "host" DB_PORT = "port" DB_DATABASE = "database" // 模型迁移选项,service指model.json,app指默认app:defaultApp.json // 取值范围: // sync 强制同步 // install 未安装时安装 MIGRATION = "migration" )
View Source
const ( MIGRATION_SYNC = "sync" MIGRATION_INSTALL = "install" )
View Source
const ( TRUE = "true" FALSE = "false" )
View Source
const ( PATH = "." CONFIG_TYPE = "yaml" CONFIG_NAME = "config" )
View Source
const TABLE_NAME_MAX_LENGTH = 64
Variables ¶
This section is empty.
Functions ¶
func GetDbConfig ¶
Types ¶
type FileConfig ¶
type FileConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.