Skip to content

Commit

Permalink
Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanKenney committed Jul 15, 2024
1 parent aae49a1 commit 00a08fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
// import _ "goyave.dev/goyave/v5/database/dialect/postgres"
// import _ "goyave.dev/goyave/v5/database/dialect/sqlite"
// import _ "goyave.dev/goyave/v5/database/dialect/mssql"
// import _ "goyave.dev/goyave/v5/database/dialect/clickhouse"
// import _ "goyave.dev/goyave/v5/database/dialect/clickhouse"
func New(cfg *config.Config, logger func() *slog.Logger) (*gorm.DB, error) {
driver := cfg.GetString("database.connection")

Expand Down
6 changes: 3 additions & 3 deletions database/dialect/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package clickhouse

import (
"gorm.io/driver/clickhouse"
"goyave.dev/goyave/v5/database"
"gorm.io/driver/clickhouse"
"goyave.dev/goyave/v5/database"
)

func init() {
database.RegisterDialect("clickhouse", "clickhouse://{username}:{password}@{host}:{port}/{name}?{options}", clickhouse.Open)
database.RegisterDialect("clickhouse", "clickhouse://{username}:{password}@{host}:{port}/{name}?{options}", clickhouse.Open)
}

0 comments on commit 00a08fe

Please sign in to comment.