From 945f72055e42ac2534f1e758d5fcafb348560db3 Mon Sep 17 00:00:00 2001 From: Liquan Pei Date: Mon, 4 Dec 2023 19:47:24 -0800 Subject: [PATCH] [BUG] Fix Postgres connection (#1464) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - ... - New functionality - ... ## Test plan *How are these changes tested?* - [ ] Manual testing with local postgres ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?* --- go/coordinator/internal/metastore/db/dbcore/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/coordinator/internal/metastore/db/dbcore/core.go b/go/coordinator/internal/metastore/db/dbcore/core.go index 253a63224c0..7af75fa434e 100644 --- a/go/coordinator/internal/metastore/db/dbcore/core.go +++ b/go/coordinator/internal/metastore/db/dbcore/core.go @@ -10,7 +10,7 @@ import ( "github.com/chroma/chroma-coordinator/internal/types" "github.com/pingcap/log" "go.uber.org/zap" - "gorm.io/driver/mysql" + "gorm.io/driver/postgres" "gorm.io/driver/sqlite" "gorm.io/gorm" "gorm.io/gorm/logger" @@ -36,7 +36,7 @@ func Connect(cfg DBConfig) (*gorm.DB, error) { ormLogger := logger.Default ormLogger.LogMode(logger.Info) - db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{ + db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{ Logger: ormLogger, CreateBatchSize: 100, })