Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultHost = "0.0.0.0" DefaultPort = 5432 DefaultDbName = "postgres" DefaultUser = "postgres" DefaultPassword = "password" DefaultSSLMode = "allow" DefaultLogLevel = gorm_logger.Error DefaultAutoMigrate = false )
Variables ¶
This section is empty.
Functions ¶
func InitiateModule ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) AutoMigrate ¶
func (d *Database) AutoMigrate(models []interface{})
Click to show internal directories.
Click to hide internal directories.