Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for pfxload (0.14 sec)

  1. callbacks/preload.go

    		identityMap, foreignValues = schema.GetIdentityFieldValuesMap(tx.Statement.Context, reflectValue, foreignFields)
    		if len(foreignValues) == 0 {
    			return nil
    		}
    	}
    
    	// nested preload
    	for p, pvs := range preloads {
    		tx = tx.Preload(p, pvs...)
    	}
    
    	reflectResults := rel.FieldSchema.MakeSlice().Elem()
    	column, values := schema.ToQueryValues(clause.CurrentTable, relForeignKeys, foreignValues)
    
    	if len(values) != 0 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. tests/preload_test.go

    		t.Fatalf("Expected first query to preload manager tools, got: %s", query[0])
    	}
    }
    
    func TestNestedPreloadWithPointerJoin(t *testing.T) {
    	type (
    		Preload struct {
    			ID     uint
    			Value  string
    			JoinID uint
    		}
    		Join struct {
    			ID       uint
    			Value    string
    			Preload  Preload
    			NestedID uint
    		}
    		Nested struct {
    			ID      uint
    			Join    Join
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. internal/grid/handlers.go

    	return m.RegisterSingleHandler(h.id, func(payload []byte) ([]byte, *RemoteErr) {
    		req := h.NewRequest()
    		_, err := req.UnmarshalMsg(payload)
    		if err != nil {
    			PutByteBuffer(payload)
    			r := RemoteErr(err.Error())
    			return nil, &r
    		}
    		resp, rerr := handle(req)
    		h.recycleReq(req)
    
    		if rerr != nil {
    			PutByteBuffer(payload)
    			return nil, rerr
    		}
    		payload, err = resp.MarshalMsg(payload[:0])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. cmd/signature-v4-utils.go

    )
    
    // http Header "x-amz-content-sha256" == "UNSIGNED-PAYLOAD" indicates that the
    // client did not calculate sha256 of the payload.
    const unsignedPayload = "UNSIGNED-PAYLOAD"
    
    // http Header "x-amz-content-sha256" == "STREAMING-UNSIGNED-PAYLOAD-TRAILER" indicates that the
    // client did not calculate sha256 of the payload and there is a trailer.
    const unsignedPayloadTrailer = "STREAMING-UNSIGNED-PAYLOAD-TRAILER"
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. callbacks/query.go

    		}
    
    		db.Statement.AddClauseIfNotExists(clauseSelect)
    
    		db.Statement.Build(db.Statement.BuildClauses...)
    	}
    }
    
    func Preload(db *gorm.DB) {
    	if db.Error == nil && len(db.Statement.Preloads) > 0 {
    		if db.Statement.Schema == nil {
    			db.AddError(fmt.Errorf("%w when using preload", gorm.ErrModelValueRequired))
    			return
    		}
    
    		joins := make([]string, 0, len(db.Statement.Joins))
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:51:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. chainable_api.go

    	db.Statement.scopes = nil
    	for _, scope := range scopes {
    		db = scope(db)
    	}
    	return db
    }
    
    // Preload preload associations with given conditions
    //
    //	// get all users, and preload all non-cancelled orders
    //	db.Preload("Orders", "state NOT IN (?)", "cancelled").Find(&users)
    func (db *DB) Preload(query string, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	if tx.Statement.Preloads == nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. tests/joins_test.go

    		DB.Create(user)
    		userIDs = append(userIDs, user.ID)
    	}
    
    	var entries []User
    	assert.NotPanics(t, func() {
    		assert.NoError(t,
    			DB.Debug().Preload("Manager.Team").
    				Joins("Manager.Company").
    				Find(&entries).Error)
    	})
    }
    
    func TestJoinsPreload_Issue7013_RelationEmpty(t *testing.T) {
    	type (
    		Furniture struct {
    			gorm.Model
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/stream_executor/stream_executor.cc

      device_memory_base.size = mem->size();
      device_memory_base.payload = mem->payload();
      return device_memory_base;
    }
    
    DeviceMemoryBase DeviceMemoryBaseFromC(const SP_DeviceMemoryBase& mem) {
      DeviceMemoryBase base(mem.opaque, mem.size);
      base.SetPayload(mem.payload);
      return base;
    }
    
    // Wrapper that allows passing std::function across C API.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. internal/grid/manager.go

    				ID:             m.ID,
    				Accepted:       false,
    				RejectedReason: err.Error(),
    			}
    			if b, err := resp.MarshalMsg(nil); err == nil {
    				msg := message{
    					Op:      OpConnectResponse,
    					Payload: b,
    				}
    				if b, err := msg.MarshalMsg(nil); err == nil {
    					wsutil.WriteMessage(conn, ws.StateServerSide, ws.OpBinary, b)
    				}
    			}
    		}
    		defer conn.Close()
    		if debugPrint {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:40:33 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. cmd/test-utils_test.go

    func signStreamingRequest(req *http.Request, accessKey, secretKey string, currTime time.Time) (string, error) {
    	// Get hashed payload.
    	hashedPayload := req.Header.Get("x-amz-content-sha256")
    	if hashedPayload == "" {
    		return "", fmt.Errorf("Invalid hashed payload")
    	}
    
    	// Set x-amz-date.
    	req.Header.Set("x-amz-date", currTime.Format(iso8601Format))
    
    	// Get header map.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
Back to top