mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
17 lines
351 B
Go
17 lines
351 B
Go
package app
|
|
|
|
import (
|
|
"github.com/phishingclub/phishingclub/config"
|
|
"github.com/phishingclub/phishingclub/database"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// SetupDatabase sets up the database
|
|
// this includes creating the database connection
|
|
func SetupDatabase(
|
|
conf *config.Config,
|
|
) (*gorm.DB, error) {
|
|
// create db connection
|
|
return database.FromConfig(*conf)
|
|
}
|