You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// One is used to retrieve one result. It returns gorm.ErrRecordNotFound
// if nothing was fetched
func (qs PaymentQuerySet) One(ret *Payment) error {
return qs.db.First(ret).Error
}
If would be awesome if it was this like:
// One is used to retrieve one result. It returns gorm.ErrRecordNotFound
// if nothing was fetched
func (qs PaymentQuerySet) One(ret *Payment, fields ...paymentDBSchemaField) error {
if (len(fields) != 0) {
qs = qs.w(qs.db.Select(fields...))
}
return qs.db.First(ret).Error
}
The text was updated successfully, but these errors were encountered:
Now it generates:
If would be awesome if it was this like:
The text was updated successfully, but these errors were encountered: