Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 605 for find (0.15 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)
    }
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  2. tests/query_test.go

    	if (len(users1) != len(users4)) || (len(users1)-len(users2) != 3) || (len(users1)-len(users3) != 5) {
    		t.Errorf("Offset should work")
    	}
    
    	DB.Where("name like ?", "OffsetUser%").Order("age desc").Find(&users1).Offset(3).Find(&users2).Offset(5).Find(&users3).Offset(-1).Find(&users4)
    
    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)
  3. internal/config/identity/ldap/ldap.go

    	if err != nil {
    		errRet := fmt.Errorf("Unable to find user DN: %w", err)
    		return "", nil, errRet
    	}
    
    	// Authenticate the user credentials.
    	err = conn.Bind(bindDN, password)
    	if err != nil {
    		errRet := fmt.Errorf("LDAP auth failed for DN %s: %w", bindDN, err)
    		return "", nil, errRet
    	}
    
    	// Bind to the lookup user account again to perform group search.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        val plan1 = routePlanner.addPlan()
        plan1.connectState = TLS_CONNECTED
    
        taskRunner.newQueue().execute("connect") {
          val result0 = finder.find()
          assertThat(result0).isEqualTo(plan0.connection)
          val result1 = finder.find()
          assertThat(result1).isEqualTo(plan1.connection)
        }
    
        taskFaker.runTasks()
        assertEvents(
          "take plan 0",
          "take plan 1",
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  5. chainable_api.go

    // [docs] for more depth.
    //
    //	// add a simple limit clause
    //	db.Clauses(clause.Limit{Limit: 1}).Find(&User{})
    //	// tell the optimizer to use the `idx_user_name` index
    //	db.Clauses(hints.UseIndex("idx_user_name")).Find(&User{})
    //	// specify the lock strength to UPDATE
    //	db.Clauses(clause.Locking{Strength: "UPDATE"}).Find(&users)
    //
    // [docs]: https://gorm.io/docs/sql_builder.html#Clauses
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  6. .cm/plugins/filters/readField/index.js

     * @param {String} objectName - The name of the particular object to find
     * @param {String} fieldName - The name of the field for the group to return
     * @returns String - The specified value
     * @example {{ files | byPlatform | categorize(branch.diff.files_metadata) | readField('jvm', 'name') }}
     */
    
    function readField(objects, objectName, fieldName) {
        let group = Object.values(objects).find(s => s.name === objectName);
        if (group) {
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/api/services/model/RootLocator.java

     * The default implementation will look for a {@code .mvn} child directory
     * or a {@code pom.xml} containing the {@code root="true"} attribute.
     */
    public interface RootLocator {
    
        String UNABLE_TO_FIND_ROOT_PROJECT_MESSAGE = "Unable to find the root directory. "
                + "Create a .mvn directory in the root directory or add the root=\"true\""
                + " attribute on the root project's model to identify it.";
    
        @Nonnull
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers-pools.go

    		if byID {
    			var err error
    			idx, err = strconv.Atoi(pool)
    			if err != nil {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    				return
    			}
    		} else {
    			idx = globalEndpoints.GetPoolIdx(pool)
    			if idx == -1 {
    				// We didn't find any matching pools, invalid input
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, errInvalidArgument), r.URL)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  9. cmd/storage-errors.go

    // errDiskAccessDenied - we don't have write permissions on disk.
    var errDiskAccessDenied = StorageErr("drive access denied")
    
    // errFileNotFound - cannot find the file.
    var errFileNotFound = StorageErr("file not found")
    
    // errFileNotFound - cannot find requested file version.
    var errFileVersionNotFound = StorageErr("file version not found")
    
    // errTooManyOpenFiles - too many open files.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
            repository.get('class') == value
        }
    
        def findReturnsNullForUnknownClass() {
            expect:
            repository.find('unknown') == null
        }
    
        def getFailsForUnknownClass() {
            given:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top