Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MongoDB = ""
)
View Source
var ( // Singleton instance of the GORM database connection. Postgres = func() *gorm.DB { psql_props := config.PostgresProperties dsn := psql_props.DSN db, err := gorm.Open(postgres.Open(dsn)) if err != nil { log.Fatalf("failed to connect to database - %v", err) } AutoMigrate(db) return db }() )
Functions ¶
func AutoMigrate ¶
AutoMigrate handles the automatic migration of the database schema.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.