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 aea3624
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import (
// In order to use a specific driver / dialect ("mysql", "sqlite3", ...), you must not
// forget to blank-import it in your main file.
//
// import _ "goyave.dev/goyave/v5/database/dialect/mysql"
// 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/mysql"
// 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"
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 aea3624

Please sign in to comment.