From 9c65a97215d5825f45ada8ab21435c19905561a5 Mon Sep 17 00:00:00 2001 From: dashangcun <907225865@qq.com> Date: Mon, 13 Jan 2025 18:07:37 +0800 Subject: [PATCH] chore: fix function name and comment Signed-off-by: dashangcun <907225865@qq.com> --- flytestdlib/database/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytestdlib/database/postgres.go b/flytestdlib/database/postgres.go index 7e73226465..5f1c30f7f2 100644 --- a/flytestdlib/database/postgres.go +++ b/flytestdlib/database/postgres.go @@ -106,7 +106,7 @@ func CreatePostgresDbIfNotExists(ctx context.Context, gormConfig *gorm.Config, p return gorm.Open(dialector, gormConfig) } -// CreatePostgresDbConnection creates DB connection and returns the gorm.DB object and error +// CreatePostgresReadOnlyDbConnection creates readonly DB connection and returns the gorm.DB object and error func CreatePostgresReadOnlyDbConnection(ctx context.Context, gormConfig *gorm.Config, pgConfig PostgresConfig) (*gorm.DB, error) { dialector := postgres.Open(getPostgresReadDsn(ctx, pgConfig)) return gorm.Open(dialector, gormConfig)