From f53ff1cc7f36e69e037bae96e6974240209bc40e Mon Sep 17 00:00:00 2001 From: timerzz Date: Mon, 26 Aug 2024 16:54:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/database/options.go | 2 ++ 1 file changed, 2 insertions(+) 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) {