Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for manid (0.47 sec)

  1. tests/scopes_test.go

    	if result.RowsAffected != 2 {
    		t.Errorf("Should found two users's name in 1, 2, but got %v", result.RowsAffected)
    	}
    
    	var maxId int64
    	userTable := func(db *gorm.DB) *gorm.DB {
    		return db.WithContext(context.Background()).Table("users")
    	}
    	if err := DB.Scopes(userTable).Select("max(id)").Scan(&maxId).Error; err != nil {
    		t.Errorf("select max(id)")
    	}
    }
    
    func TestComplexScopes(t *testing.T) {
    	tests := []struct {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  2. cmd/local-locker.go

    						for idx := 0; idx < maxDeleteList; idx++ {
    							mapID := formatUUID(uid, idx)
    							if _, ok := l.lockUID[mapID]; !ok {
    								break
    							}
    							delete(l.lockUID, mapID)
    						}
    						continue
    					}
    					l.removeEntry(resource, dsync.LockArgs{UID: uid}, &lris)
    				}
    			}
    			return true, nil
    		}
    
    		idx := 0
    		for {
    			mapID := formatUUID(args.UID, idx)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top