feat: initial commit

This commit is contained in:
2025-06-16 00:07:03 +02:00
parent d93ed20869
commit a6d5cb50f2
26 changed files with 10870 additions and 156 deletions

View File

@ -60,7 +60,7 @@ func createGetDatabase(db *gorm.DB) func(ctx context.Context) (*gorm.DB, error)
return
}
if err := db.Exec("PRAGMA journal_mode=WAL; PRAGMA encoding='UTF-8';").Error; err != nil {
if err := db.Exec("PRAGMA journal_mode=WAL; PRAGMA busy_timeout=500; PRAGMA txlock=deferred; PRAGMA synchronous=normal; PRAGMA encoding='UTF-8';").Error; err != nil {
migrateErr = errors.WithStack(err)
return
}