Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,709 for find (0.02 sec)

  1. tests/preload_test.go

    	if err != nil {
    		t.Errorf("failed to find value, got err: %v", err)
    	}
    	AssertEqual(t, find2, value2)
    
    	var finds []Value
    	err = DB.Joins("Nested.Join").Joins("Nested").Preload("Nested.Preloads").Find(&finds).Error
    	if err != nil {
    		t.Errorf("failed to find value, got err: %v", err)
    	}
    	AssertEqual(t, len(finds), 2)
    	AssertEqual(t, finds[0], value1)
    	AssertEqual(t, finds[1], value2)
    }
    Registered: 2025-09-07 09:35
    - Last Modified: 2024-06-12 10:00
    - 15.9K bytes
    - Viewed (0)
  2. src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js

            this.container.find('.applyBtn, .cancelBtn').addClass(this.buttonClasses);
            if (this.applyButtonClasses.length)
                this.container.find('.applyBtn').addClass(this.applyButtonClasses);
            if (this.cancelButtonClasses.length)
                this.container.find('.cancelBtn').addClass(this.cancelButtonClasses);
            this.container.find('.applyBtn').html(this.locale.applyLabel);
    Registered: 2025-09-04 12:52
    - Last Modified: 2024-10-26 01:49
    - 64.8K bytes
    - Viewed (0)
  3. tests/generics_test.go

    	if len(found) != len(batch) {
    		t.Errorf("expected %d from Raw Find, got %d", len(batch), len(found))
    	}
    
    	found, err = gorm.G[User](DB).Where("name like ?", "GenericsCreateInBatches%").Limit(2).Find(ctx)
    	if len(found) != 2 {
    		t.Errorf("expected %d from Raw Find, got %d", 2, len(found))
    	}
    
    Registered: 2025-09-07 09:35
    - Last Modified: 2025-09-04 13:13
    - 28K bytes
    - Viewed (0)
  4. tests/associations_test.go

    		t.Fatalf("invalid %v count %v, expects: %v got %v", name, reason, result, count)
    	}
    
    	var newUser User
    	if user, ok := data.(User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	} else if user, ok := data.(*User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	}
    
    	if newUser.ID != 0 {
    		if count := DB.Model(&newUser).Association(name).Count(); count != result {
    Registered: 2025-09-07 09:35
    - Last Modified: 2023-02-08 08:29
    - 10.9K bytes
    - Viewed (0)
  5. tests/joins_test.go

    	if len(users1) != 3 {
    		t.Errorf("should find two users using left join, but got %v", len(users1))
    	}
    
    	var users2 []User
    	DB.Joins("inner join pets on pets.user_id = users.id AND pets.name = ?", user.Pets[0].Name).Where("users.name = ?", user.Name).First(&users2)
    	if len(users2) != 1 {
    		t.Errorf("should find one users using left join with conditions, but got %v", len(users2))
    Registered: 2025-09-07 09:35
    - Last Modified: 2025-05-25 07:40
    - 15K bytes
    - Viewed (0)
  6. tests/upsert_test.go

    	}
    
    	DB.Where(&User{Name: "find or init"}).Assign("age", 44).FirstOrInit(&user4)
    	if user4.Name != "find or init" || user4.ID != 0 || user4.Age != 44 {
    		t.Errorf("user should be initialized with search value and assign attrs")
    	}
    
    	DB.Save(&User{Name: "find or init", Age: 33})
    	DB.Where(&User{Name: "find or init"}).Attrs("age", 44).FirstOrInit(&user5)
    	if user5.Name != "find or init" || user5.ID == 0 || user5.Age != 33 {
    Registered: 2025-09-07 09:35
    - Last Modified: 2025-07-29 11:06
    - 13.1K bytes
    - Viewed (0)
  7. tests/update_belongs_to_test.go

    	}
    
    	var user2 User
    	DB.Preload("Company").Preload("Manager").Find(&user2, "id = ?", user.ID)
    	CheckUser(t, user2, user)
    
    	user.Company.Name += "new"
    	user.Manager.Name += "new"
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user3 User
    	DB.Preload("Company").Preload("Manager").Find(&user3, "id = ?", user.ID)
    	CheckUser(t, user2, user3)
    
    Registered: 2025-09-07 09:35
    - Last Modified: 2022-07-14 06:55
    - 1.6K bytes
    - Viewed (0)
  8. docs/en/docs/environment-variables.md

    ```
    
    This way, when you type `python` in the terminal, the system will find the Python program in `C:\opt\custompython\bin` (the last directory) and use that one.
    
    ////
    
    So, if you type:
    
    <div class="termy">
    
    ```console
    $ python
    ```
    
    </div>
    
    //// tab | Linux, macOS
    
    The system will **find** the `python` program in `/opt/custompython/bin` and run it.
    
    Registered: 2025-09-07 07:19
    - Last Modified: 2025-08-31 09:15
    - 8.1K bytes
    - Viewed (0)
  9. src/main/webapp/js/login.js

            docId = button.data("docid"),
            title = button.data("title"),
            url = button.data("url");
    
        $(this)
          .find(".modal-body #delete-doc-title")
          .text(title);
        $(this)
          .find(".modal-body #delete-doc-url")
          .text(url);
        $(this)
          .find(".modal-footer input#docId")
          .val(docId);
      });
    Registered: 2025-09-04 12:52
    - Last Modified: 2018-09-12 06:47
    - 1.3K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/adminlte.min.js

    moveClass("menu-is-opening menu-open"),e.stop().slideUp(this._config.animationSpeed,(function(){n.default(a._element).trigger(i),e.find(".menu-open > .nav-treeview").slideUp(),e.find(Ot).removeClass("menu-is-opening menu-open")}))},t.toggle=function(e){var t=n.default(e.currentTarget),a=t.parent(),i=a.find("> .nav-treeview");if(i.is(qt)||(a.is(Mt)||(i=a.parent().find("> .nav-treeview")),i.is(qt))){e.preventDefault();var o=t.parents(Mt).first();o.hasClass(Pt)?this.collapse(n.default(i),o):this.ex...
    Registered: 2025-09-04 12:52
    - Last Modified: 2024-10-26 01:49
    - 45.3K bytes
    - Viewed (0)
Back to top