Skip to content

Commit

Permalink
[BUG] Fix Postgres connection (#1464)
Browse files Browse the repository at this point in the history
## 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)?*
  • Loading branch information
Ishiihara authored Dec 5, 2023
1 parent 661d555 commit 945f720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/coordinator/internal/metastore/db/dbcore/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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,
})
Expand Down

0 comments on commit 945f720

Please sign in to comment.