Fix gorm.Open dialect
Fix gorm.Open dialect from 'sqlite' to 'sqlite3'
This commit is contained in:
parent
50f619c8fe
commit
74d5ac58e2
@ -48,7 +48,7 @@ type Product struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
db, err := gorm.Open("sqlite", "test.db")
|
db, err := gorm.Open("sqlite3", "test.db")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic("failed to connect database")
|
panic("failed to connect database")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user