Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for newPage (0.22 sec)

  1. tests/update_test.go

    	// Update a single field of the user and verify that the changed address is not stored.
    	newAge := uint(100)
    	user.Account.Number = "new_account_number"
    	db := DB.Model(&user).UpdateColumns(User{Age: newAge})
    
    	if db.RowsAffected != 1 {
    		t.Errorf("Expected RowsAffected=1 but instead RowsAffected=%v", db.RowsAffected)
    	}
    
    	// Verify that Age now=`newAge`.
    	result := &User{}
    	result.ID = user.ID
    	DB.Preload("Account").First(result)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

        static class NewSuper {}
    
        static class NewBase extends NewSuper {}
    
        @Incubating
        static class NewIncubatingBase extends NewSuper {}
    
        @Incubating
        interface IncubatingInterface {}
    
        interface InternalInterface {}
    
        interface StablePublicInterface {}
    
        CtClass oldBase
        CtClass newBase
        CtClass newSuper
        CtClass newIncubatingBase
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 4K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy

            }
            [OldBase, OldSub, NewBase, NewSub].each {
                classes[it.simpleName] = instanceScopedPool.get(it.name)
            }
    
            classes['OldBase'].superclass = classes['OldSuperInternal']
            classes['NewBase'].superclass = classes['NewSuperInternal']
            classes['OldSub'].superclass = classes['OldBase']
            classes['NewSub'].superclass = classes['NewBase']
    
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.9K bytes
    - Viewed (0)
  6. migrator/migrator.go

    func (m Migrator) RenameColumn(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		if stmt.Schema != nil {
    			if field := stmt.Schema.LookUpField(oldName); field != nil {
    				oldName = field.DBName
    			}
    
    			if field := stmt.Schema.LookUpField(newName); field != nil {
    				newName = field.DBName
    			}
    		}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  7. migrator.go

    	GetTypeAliases(databaseTypeName string) []string
    
    	// Tables
    	CreateTable(dst ...interface{}) error
    	DropTable(dst ...interface{}) error
    	HasTable(dst interface{}) bool
    	RenameTable(oldName, newName interface{}) error
    	GetTables() (tableList []string, err error)
    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    	DropColumn(dst interface{}, field string) error
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/artifact/resolver/WarningResolutionListener.java

        public void manageArtifact(Artifact artifact, Artifact replacement) {}
    
        public void selectVersionFromRange(Artifact artifact) {}
    
        public void restrictRange(Artifact artifact, Artifact replacement, VersionRange newRange) {}
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DebugResolutionListener.java

        }
    
        public void restrictRange(Artifact artifact, Artifact replacement, VersionRange newRange) {
            logger.debug(indent + artifact + " (range restricted from: " + artifact.getVersionRange() + " and: "
                    + replacement.getVersionRange() + " to: " + newRange + " )");
        }
    
        /**
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  10. tests/migrate_test.go

    		}
    	}
    
    	type NewColumnStruct struct {
    		gorm.Model
    		Name    string
    		NewName string
    	}
    
    	if err := DB.Table("column_structs").Migrator().AddColumn(&NewColumnStruct{}, "NewName"); err != nil {
    		t.Fatalf("Failed to add column, got %v", err)
    	}
    
    	if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
    		t.Fatalf("Failed to find added column")
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top