Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for userAges (0.27 sec)

  1. tests/query_test.go

    	}
    
    	DB.Create(&users)
    
    	var userAges []int
    	err := DB.Model(&User{}).Where("name like ?", "pluck_with_select%").Select("age + 1 as user_age").Pluck("user_age", &userAges).Error
    	if err != nil {
    		t.Fatalf("got error when pluck user_age: %v", err)
    	}
    
    	sort.Ints(userAges)
    
    	AssertEqual(t, userAges, []int{26, 27})
    }
    
    func TestSelectWithVariables(t *testing.T) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. api/go1.14.txt

    pkg syscall (freebsd-arm64), type BpfZbufHeader struct, Kernel_gen uint32
    pkg syscall (freebsd-arm64), type BpfZbufHeader struct, Kernel_len uint32
    pkg syscall (freebsd-arm64), type BpfZbufHeader struct, User_gen uint32
    pkg syscall (freebsd-arm64), type BpfZbufHeader struct, X_bzh_pad [5]uint32
    pkg syscall (freebsd-arm64), type Cmsghdr struct
    pkg syscall (freebsd-arm64), type Cmsghdr struct, Len uint32
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  3. api/go1.20.txt

    pkg syscall (freebsd-riscv64), type BpfZbufHeader struct, Kernel_gen uint32 #53466
    pkg syscall (freebsd-riscv64), type BpfZbufHeader struct, Kernel_len uint32 #53466
    pkg syscall (freebsd-riscv64), type BpfZbufHeader struct, User_gen uint32 #53466
    pkg syscall (freebsd-riscv64), type BpfZbufHeader struct, X_bzh_pad [5]uint32 #53466
    pkg syscall (freebsd-riscv64), type Cmsghdr struct #53466
    pkg syscall (freebsd-riscv64), type Cmsghdr struct, Len uint32 #53466
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
Back to top