added comments
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// Init initializes the database connection, auto-migrates models, and seeds a default post.
|
||||
func Init() *gorm.DB {
|
||||
db, err := gorm.Open(sqlite.Open("./blog.db"))
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user