Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for jquery (0.2 sec)

  1. tests/query_test.go

    			t.Errorf("errors happened when query first: %v", err)
    		} else {
    			CheckUser(t, first, users[0])
    		}
    	})
    
    	t.Run("Last", func(t *testing.T) {
    		var last User
    		if err := DB.Where("name = ?", "find").Last(&last).Error; err != nil {
    			t.Errorf("errors happened when query last: %v", err)
    		} else {
    			CheckUser(t, last, users[2])
    		}
    	})
    
    	var all []User
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. cmd/signature-v4.go

    		xhttp.AmzSignature,
    	)
    
    	// Add missing query parameters if any provided in the request URL
    	for k, v := range req.Form {
    		if !defaultSigParams.Contains(k) {
    			query[k] = v
    		}
    	}
    
    	// Get the encoded query.
    	encodedQuery := query.Encode()
    
    	// Verify if date query is same.
    	if req.Form.Get(xhttp.AmzDate) != query.Get(xhttp.AmzDate) {
    		return ErrSignatureDoesNotMatch
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    		ki.Error = err.Error()
    	}
    	return ki
    }
    
    func fetchHealthInfo(healthCtx context.Context, objectAPI ObjectLayer, query *url.Values, healthInfoCh chan madmin.HealthInfo, healthInfo madmin.HealthInfo) {
    	hostAnonymizer := createHostAnonymizer()
    
    	anonParam := query.Get(anonymizeParam)
    	// anonAddr - Anonymizes hosts in given input string
    	// (only if the anonymize param is set to srict).
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  4. cmd/metrics-router.go

    	metricsRouter.Handle(prometheusMetricsV2ResourcePath, auth(metricsResourceHandler()))
    
    	// Metrics v3!
    	metricsV3Server := newMetricsV3Server(authType)
    
    	// Register metrics v3 handler. It also accepts an optional query
    	// parameter `?list` - see handler for details.
    	metricsRouter.Methods(http.MethodGet).Path(metricsV3Path + "{pathComps:.*}").Handler(metricsV3Server)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. gorm.go

    	// Logger
    	Logger logger.Interface
    	// NowFunc the function to be used when creating a new timestamp
    	NowFunc func() time.Time
    	// DryRun generate sql without execute
    	DryRun bool
    	// PrepareStmt executes the given query in cached statement
    	PrepareStmt bool
    	// DisableAutomaticPing
    	DisableAutomaticPing bool
    	// DisableForeignKeyConstraintWhenMigrating
    	DisableForeignKeyConstraintWhenMigrating bool
    	// IgnoreRelationshipsWhenMigrating
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  6. tests/associations_test.go

    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    		t.Errorf("Failed to query saved coupon")
    	}
    
    	if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil {
    		t.Errorf("Failed to query saved association")
    	}
    
    	orders := []Order{{Num: "order1", Coupon: coupon}, {Num: "order2", Coupon: coupon}}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  7. clause/where.go

    func (where Where) Build(builder Builder) {
    	if len(where.Exprs) == 1 {
    		if andCondition, ok := where.Exprs[0].(AndConditions); ok {
    			where.Exprs = andCondition.Exprs
    		}
    	}
    
    	// Switch position if the first query expression is a single Or condition
    	for idx, expr := range where.Exprs {
    		if v, ok := expr.(OrConditions); !ok || len(v.Exprs) > 1 {
    			if idx != 0 {
    				where.Exprs[0], where.Exprs[idx] = where.Exprs[idx], where.Exprs[0]
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  8. tests/sql_builder_test.go

    			t.Errorf("Should have two users having name %v", users[1].Name)
    		}
    	}
    }
    
    func TestQueryRaw(t *testing.T) {
    	users := []*User{
    		GetUser("row_query_user", Config{}),
    		GetUser("row_query_user", Config{}),
    		GetUser("row_query_user", Config{}),
    	}
    	DB.Create(&users)
    
    	var user User
    	DB.Raw("select * from users WHERE id = ?", users[1].ID).First(&user)
    	CheckUser(t, user, *users[1])
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. internal/s3select/sql/evaluate.go

    	errLikeInvalidEscape = errors.New("LIKE clause has invalid ESCAPE character")
    	errNotImplemented    = errors.New("not implemented")
    )
    
    // AST Node Evaluation functions
    //
    // During evaluation, the query is known to be valid, as analysis is
    // complete. The only errors possible are due to value type
    // mismatches, etc.
    //
    // If an aggregation node is present as a descendant (when
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  10. cmd/utils_test.go

    		t.Fatal(err)
    	}
    
    	// Look for expected method.
    	if res.Method != http.MethodGet {
    		t.Fatalf("Unexpected method %s, expected 'GET'", res.Method)
    	}
    
    	// Look for expected query values
    	expectedQuery := url.Values{}
    	expectedQuery.Set("prefix", "Hello*World*")
    	expectedQuery.Set("X-Amz-Algorithm", "AWS4-HMAC-SHA256")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top