Add PostgreSQL as a supported database

This commit is contained in:
2024-04-28 21:52:33 +07:00
parent b4f303463d
commit 5ca6cdd129
12 changed files with 183 additions and 14 deletions

View File

@ -22,7 +22,7 @@ var database db.Database
func init() {
log = logger.Logger()
//TESTING
database = db.NewMYSQLdb(utils.Getenv("DB_USERNAME"), utils.Getenv("DB_PASSWORD"), utils.Getenv("DB_HOST"), utils.Getenv("DB_PORT"), utils.Getenv("DB_NAME"))
database = db.NewPostgresDB(utils.Getenv("DB_USERNAME"), utils.Getenv("DB_PASSWORD"), utils.Getenv("DB_HOST"), utils.Getenv("DB_PORT"), utils.Getenv("DB_NAME"))
}