diff --git a/pkg/database/options.go b/pkg/database/options.go index 7541a40..27d0793 100644 --- a/pkg/database/options.go +++ b/pkg/database/options.go @@ -17,6 +17,8 @@ type DBOption struct { const ( // 默认的数据库配置文件路径 DefaultConfigPath = "/cfg/db.yaml" + // 数据库配置文件路径环境变量 + ConfigPathEnvKey = "DB_CONFIG_PATH" ) func LoadDBConfig(path string) (*DBOption, error) {