feat: drop sqlite support
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m27s

This commit is contained in:
juancwu 2026-05-04 00:29:45 +00:00
commit da718427bd
27 changed files with 1296 additions and 115 deletions

View file

@ -26,12 +26,12 @@ type App struct {
}
func New(cfg *config.Config) (*App, error) {
database, err := db.Init(cfg.DBDriver, cfg.DBConnection)
database, err := db.Init(cfg.DBConnection)
if err != nil {
return nil, fmt.Errorf("failed to initialize database: %w", err)
}
err = db.RunMigrations(database.DB, cfg.DBDriver)
err = db.RunMigrations(database.DB)
if err != nil {
return nil, fmt.Errorf("failed to run migrations: %w", err)
}