func NewSqliteRepository() repository.UrlRepository {
	db, err := gorm.Open("sqlite3", "test.db")
	if err != nil {
		panic("failed to connect database")
	}

	err1 := db.AutoMigrate(&entity.URL{}).Error
	if err1 != nil {
		panic("failded to migrate")
	}
	return &repo{db}
}
// NewSqliteRepository creates a new firebase repo
NewSqliteRepository creates a new firebase repo
// NewSqliteRepository creates a new firebase repo
func NewSqliteRepository() repository.UrlRepository {
	db, err := gorm.Open("sqlite3", "test.db")
	if err != nil {
		panic("failed to connect database")
	}
	err1 := db.AutoMigrate(&entity.URL{}).Error
	if err1 != nil {
		panic("failded to migrate")
	}
	return &repo{db}
}
func NewSqliteRepository ( ) repository . UrlRepository { db , err := gorm . Open ( " " , " " ) if err != nil { panic ( " " ) } err1 := db . AutoMigrate ( & entity . URL { } ) . Error if err1 != nil { panic ( " " ) } return & repo { db } }
NewSqliteRepository creates a new firebase repo
NewSqliteRepository creates a new firebase repo