Skip to content

Commit

Permalink
feat: add sqlite3 to error message (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 authored Aug 19, 2024
1 parent 0560ffa commit 3d3a3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func openDBConnection(driverName, dataSourceName string) (*gorm.DB, error) {
} else if driverName == "sqlite3" {
db, err = gorm.Open(sqlite.Open(dataSourceName), &gorm.Config{})
} else {
return nil, errors.New("Database dialect '" + driverName + "' is not supported. Supported databases are postgres, mysql and sqlserver")
return nil, errors.New("Database dialect '" + driverName + "' is not supported. Supported databases are postgres, mysql, sqlserver and sqlite3")
}
if err != nil {
return nil, err
Expand Down

0 comments on commit 3d3a3c7

Please sign in to comment.