Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
DBType string
DBName string
DBUser string
DBPassword string
DBPort string
DBHost string
}
Database database instance modelling
func (*Database) DBConfig ¶
DBConfig initialises the required database based on the selected DB from the .env file
func (*Database) MySQLDBConfig ¶
MySQLDBConfig initialises a MySQL/MariaDB database instance. Return gorm instance and error
Click to show internal directories.
Click to hide internal directories.