Skip to content

Commit

Permalink
chore: update dsn params for clickhouse (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
qloog authored Jul 10, 2024
1 parent dc82346 commit 9407b40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

## v1.9.0
- feat: support clickhouse
- chore: upgrade go to v1.21

## v1.8.2
- feat: support PostgreSQL
- feat: support config multiple databases
Expand Down
3 changes: 2 additions & 1 deletion pkg/storage/orm/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"gorm.io/driver/clickhouse"
"gorm.io/driver/mysql"
"gorm.io/driver/postgres"

// GORM MySQL
"gorm.io/gorm"
"gorm.io/gorm/logger"
Expand Down Expand Up @@ -226,8 +227,8 @@ func getDSN(c *Config) string {
c.Password,
c.Addr,
c.Name,
c.Timeout,
c.ReadTimeout,
c.WriteTimeout,
)
}

Expand Down

0 comments on commit 9407b40

Please sign in to comment.