Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for Updated (0.15 sec)

  1. .github/workflows/missing_playground.yml

            stale-issue-label: "status:stale"
            days-before-stale: 0
            days-before-close: 30
            remove-stale-when-updated: true
    Others
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 02:27:05 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. tests/serializer_test.go

    		t.Fatalf("failed to query data, got error %v", err)
    	}
    
    	AssertEqual(t, result, data)
    
    	if err := DB.Model(&result).Update("roles", "").Error; err != nil {
    		t.Fatalf("failed to update data's roles, got error %v", err)
    	}
    
    	if err := DB.First(&result, data.ID).Error; err != nil {
    		t.Fatalf("failed to query data, got error %v", err)
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 21 14:09:38 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. README.md

    * Hooks (Before/After Create/Save/Update/Delete/Find)
    * Eager loading with `Preload`, `Joins`
    * Transactions, Nested Transactions, Save Point, RollbackTo to Saved Point
    * Context, Prepared Statement Mode, DryRun Mode
    * Batch Insert, FindInBatches, Find To Map
    * SQL Builder, Upsert, Locking, Optimizer/Index/Comment Hints, NamedArg, Search/Update/Create with SQL Expr
    * Composite Primary Key
    * Auto Migrations
    Plain Text
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Nov 07 02:20:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. utils/tests/dummy_dialecter.go

    func (DummyDialector) Initialize(db *gorm.DB) error {
    	callbacks.RegisterDefaultCallbacks(db, &callbacks.Config{
    		CreateClauses:        []string{"INSERT", "VALUES", "ON CONFLICT", "RETURNING"},
    		UpdateClauses:        []string{"UPDATE", "SET", "WHERE", "RETURNING"},
    		DeleteClauses:        []string{"DELETE", "FROM", "WHERE", "RETURNING"},
    		LastInsertIDReversed: true,
    	})
    
    	return nil
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 06 06:03:31 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  5. tests/delete_test.go

    	}
    
    	if err := DB.Session(&gorm.Session{AllowGlobalUpdate: true}).Delete(&User{}).Error; err != nil {
    		t.Errorf("should returns no error while enable global update, but got err %v", err)
    	}
    }
    
    func TestDeleteWithAssociations(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 07:03:34 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  6. tests/query_test.go

    	}
    }
    
    func TestScanNullValue(t *testing.T) {
    	user := GetUser("scan_null_value", Config{})
    	DB.Create(&user)
    
    	if err := DB.Model(&user).Update("age", nil).Error; err != nil {
    		t.Fatalf("failed to update column age for struct, got error %v", err)
    	}
    
    	var result User
    	if err := DB.First(&result, "id = ?", user.ID).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  7. tests/associations_test.go

    	parent.FavChild = &child
    	DB.Save(&parent)
    
    	var parent1 Parent
    	DB.First(&parent1, parent.ID)
    	AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
    
    	// Save and Updates is the same
    	DB.Updates(&parent)
    	DB.First(&parent1, parent.ID)
    	AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
    }
    
    func TestSaveHasManyCircularReference(t *testing.T) {
    	parent := Parent{}
    	DB.Create(&parent)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. clause/locking_test.go

    			"SELECT * FROM `users` FOR UPDATE NOWAIT", nil,
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate, Options: clause.LockingOptionsSkipLocked}},
    			"SELECT * FROM `users` FOR UPDATE SKIP LOCKED", nil,
    		},
    	}
    
    	for idx, result := range results {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. gorm.go

    	"gorm.io/gorm/schema"
    )
    
    // for Config.cacheStore store PreparedStmtDB key
    const preparedStmtDBKey = "preparedStmt"
    
    // Config GORM config
    type Config struct {
    	// GORM perform single create, update, delete operations in transactions by default to ensure database data integrity
    	// You can disable it by setting `SkipDefaultTransaction` to true
    	SkipDefaultTransaction bool
    	// NamingStrategy tables, columns naming strategy
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  10. clause/on_conflict.go

    			builder.WriteString(" WHERE ")
    			onConflict.TargetWhere.Build(builder)
    			builder.WriteByte(' ')
    		}
    	}
    
    	if onConflict.DoNothing {
    		builder.WriteString("DO NOTHING")
    	} else {
    		builder.WriteString("DO UPDATE SET ")
    		onConflict.DoUpdates.Build(builder)
    	}
    
    	if len(onConflict.Where.Exprs) > 0 {
    		builder.WriteString(" WHERE ")
    		onConflict.Where.Build(builder)
    		builder.WriteByte(' ')
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Oct 07 05:46:20 GMT 2022
    - 1.3K bytes
    - Viewed (0)
Back to top