Search Options

Results per page
Sort
Preferred Languages
Advance

Results 641 - 650 of 1,029 for Base (0.13 sec)

  1. tests/count_test.go

    		t.Errorf("count with join, got error: %v, count %v", err, count)
    	}
    
    	var count6 int64
    	if err := DB.Model(&User{}).Where("name in ?", []string{user1.Name, user2.Name, user3.Name}).Select(
    		"(CASE WHEN name=? THEN ? ELSE ? END) as name", "count-1", "main", "other",
    	).Count(&count6).Find(&users).Error; err != nil || count6 != 3 {
    		t.Fatalf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. cmd/lock-rest-client.go

    	r, err := h.Call(ctx, c.connection, args)
    	if err != nil {
    		return false, err
    	}
    	defer h.PutResponse(r)
    	ok = r.Code == dsync.RespOK
    	switch r.Code {
    	case dsync.RespLockConflict, dsync.RespLockNotFound, dsync.RespOK:
    	// no error
    	case dsync.RespLockNotInitialized:
    		err = errLockNotInitialized
    	default:
    		err = errors.New(r.Err)
    	}
    	return ok, err
    }
    
    // RLock calls read lock REST API.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    			expectedOutput:    "Error: expecting a workload namespace\n",
    		},
    		{
    			description:       "valid case - minimal flags, infer defaults",
    			args:              strings.Split("group create --name foo --namespace bar", " "),
    			expectedException: false,
    			expectedOutput:    defaultYAML,
    		},
    		{
    			description: "valid case - create full workload group",
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 20:04:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. internal/grid/grid_test.go

    			}
    			for {
    				select {
    				case <-nowBlocking:
    					return
    				case <-st.Done():
    				case st.Requests <- []byte{1}:
    					time.Sleep(10 * time.Millisecond)
    				}
    			}
    		}()
    	}
    	// Check that local returned.
    	err = st.Results(func(b []byte) error {
    		<-st.Done()
    		return ctx.Err()
    	})
    	mu.Lock()
    	select {
    	case <-nowBlocking:
    	default:
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/debugging.md

    ```
    
    will run.
    
    ---
    
    This won't happen if you import that module (file).
    
    So, if you have another file `importer.py` with:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    in that case, the automatically created variable inside of `myapp.py` will not have the variable `__name__` with a value of `"__main__"`.
    
    So, the line:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. clause/delete_test.go

    		},
    		{
    			[]clause.Interface{clause.Delete{Modifier: "LOW_PRIORITY"}, clause.From{}},
    			"DELETE LOW_PRIORITY FROM `users`", nil,
    		},
    	}
    
    	for idx, result := range results {
    		t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) {
    			checkBuildClauses(t, result.Clauses, result.Result, result.Vars)
    		})
    	}
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Tue Jun 02 01:18:01 UTC 2020
    - 608 bytes
    - Viewed (0)
  7. docs/en/docs/reference/openapi/index.md

    # OpenAPI
    
    There are several utilities to handle OpenAPI.
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 158 bytes
    - Viewed (0)
  8. cmd/speedtest.go

    			result.Servers = len(globalNotificationSys.peerClients) + 1
    			result.Version = Version
    			result.Concurrent = concurrency
    
    			select {
    			case ch <- result:
    			case <-ctx.Done():
    				return
    			}
    		}
    
    		for {
    			select {
    			case <-ctx.Done():
    				// If the client got disconnected stop the speedtest.
    				return
    			default:
    			}
    
    			sopts := speedTestOpts{
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon May 06 09:45:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. internal/bucket/replication/filter.go

    func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    
    	switch {
    	case !f.And.isEmpty():
    		if err := e.EncodeElement(f.And, xml.StartElement{Name: xml.Name{Local: "And"}}); err != nil {
    			return err
    		}
    	case !f.Tag.IsEmpty():
    		if err := e.EncodeElement(f.Tag, xml.StartElement{Name: xml.Name{Local: "Tag"}}); err != nil {
    			return err
    		}
    	default:
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. cmd/tier_gen.go

    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "Tiers":
    			var zb0002 uint32
    			zb0002, err = dc.ReadMapHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Tiers")
    				return
    			}
    			if z.Tiers == nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top