func (d DbResource) GetGormDb() *gorm.DB {
	gdb, err := gorm.Open(postgres.New(postgres.Config{Conn: d.db}), &gorm.Config{})
	if err != nil {
		log.Fatalf("Failed to create gorm db session: %s", err)
	}

	return gdb
}
// GetGormDb creates a gorm db session
GetGormDb creates a gorm db session
// GetGormDb creates a gorm db session
func (d DbResource) GetGormDb() *gorm.DB {
	gdb, err := gorm.Open(postgres.New(postgres.Config{Conn: d.db}), &gorm.Config{})
	if err != nil {
		log.Fatalf("Failed to create gorm db session: %s", err)
	}
	return gdb
}
func ( d DbResource ) GetGormDb ( ) * gorm . DB { gdb , err := gorm . Open ( postgres . New ( postgres . Config { Conn : d . db } ) , & gorm . Config { } ) if err != nil { log . Fatalf ( " " , err ) } return gdb }
GetGormDb creates a gorm db session
GetGormDb creates a gorm db session