Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 147 for rslave (0.03 sec)

  1. tests/associations_test.go

    	child := Child{ParentID: &parent.ID, Parent: &parent}
    	DB.Create(&child)
    
    	parent.FavChildID = child.ID
    	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")
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. docs/es/llm-prompt.md

    * bug: bug
    * docs: documentación (do not translate to "documentos")
    * cheat sheet: cheat sheet (do not translate to "chuleta")
    * key (as in key-value pair, dictionary key): clave
    * array (as in JSON array): array
    * API key: API key (do not translate to "clave API")
    * 100% test coverage: cobertura de tests del 100%
    * back and forth: de un lado a otro
    * I/O (as in "input and output"): I/O (do not translate to "E/S")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Jul 26 18:57:50 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. tests/embedded_struct_test.go

    		if !DB.Migrator().HasColumn(&HNPost{}, name) {
    			t.Errorf("should has prefixed column %v", name)
    		}
    	}
    
    	// save embedded struct
    	DB.Save(&HNPost{BasePost: BasePost{Title: "news"}})
    	DB.Save(&HNPost{BasePost: BasePost{Title: "hn_news"}})
    	var news HNPost
    	if err := DB.First(&news, "title = ?", "hn_news").Error; err != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. tests/sql_builder_test.go

    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestRow(t *testing.T) {
    	user1 := User{Name: "RowUser1", Age: 1}
    	user2 := User{Name: "RowUser2", Age: 10}
    	user3 := User{Name: "RowUser3", Age: 20}
    	DB.Save(&user1).Save(&user2).Save(&user3)
    
    	row := DB.Table("users").Where("name = ?", user2.Name).Select("age").Row()
    
    	var age int64
    	if err := row.Scan(&age); err != nil {
    		t.Fatalf("Failed to scan age, got %v", err)
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. callbacks/associations.go

    func SaveBeforeAssociations(create bool) func(db *gorm.DB) {
    	return func(db *gorm.DB) {
    		if db.Error == nil && db.Statement.Schema != nil {
    			selectColumns, restricted := db.Statement.SelectAndOmitColumns(create, !create)
    
    			// Save Belongs To associations
    			for _, rel := range db.Statement.Schema.Relationships.BelongsTo {
    				if v, ok := selectColumns[rel.Name]; (ok && !v) || (!ok && restricted) {
    					continue
    				}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Feb 13 06:16:26 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. docs/es/docs/how-to/configure-swagger-ui.md

    ...y entonces Swagger UI ya no mostrará el resaltado de sintaxis:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Cambiar el tema
    
    De la misma manera, podrías configurar el tema del resaltado de sintaxis con la clave `"syntaxHighlight.theme"` (ten en cuenta que tiene un punto en el medio):
    
    {* ../../docs_src/configure_swagger_ui/tutorial002.py hl[3] *}
    
    Esa configuración cambiaría el tema de color del resaltado de sintaxis:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. README.md

    ## Overview
    
    * Full-Featured ORM
    * Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism, Single-table inheritance)
    * 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
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Nov 07 02:20:06 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. src/main/resources/fess_label_es.properties

    labels.key_match_configuration=Coincidencia de clave
    labels.key_match_list_term=Término de búsqueda
    labels.key_match_list_query=Consulta
    labels.key_match_term=Término de búsqueda
    labels.key_match_query=Consulta
    labels.key_match_size=Tamaño
    labels.key_match_boost=Valor de impulso
    labels.key_match_urls=URL
    labels.key_match_title_details=Coincidencia de clave
    labels.design_configuration=Diseño de página
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 04:56:21 UTC 2025
    - 45.4K bytes
    - Viewed (0)
  9. tests/gorm_test.go

    			t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    		} else if got.ID != u1.ID {
    			t.Fatalf("select expects: %v, got %v", u1, got)
    		}
    
    		u1.Name = "jinzhu"
    		if results := DB.Save(&u1); results.Error != nil {
    			t.Fatalf("errors happened on update: %v", results.Error)
    		} else if results.RowsAffected != 1 {
    			t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    		}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Jun 01 07:22:21 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. tests/joins_test.go

    	})
    
    	for idx, user := range users {
    		CheckUser(t, user, users2[idx])
    	}
    }
    
    func TestJoinConds(t *testing.T) {
    	user := *GetUser("joins-conds", Config{Account: true, Pets: 3})
    	DB.Save(&user)
    
    	var users1 []User
    	DB.Joins("inner join pets on pets.user_id = users.id").Where("users.name = ?", user.Name).Find(&users1)
    	if len(users1) != 3 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top