Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RowsUser1 (0.09 sec)

  1. tests/sql_builder_test.go

    		t.Fatalf("Failed to scan age, got %v", err)
    	}
    
    	if age != 20 {
    		t.Errorf("Scan with Row, age expects: %v, got %v", user2.Age, age)
    	}
    }
    
    func TestRows(t *testing.T) {
    	user1 := User{Name: "RowsUser1", Age: 1}
    	user2 := User{Name: "RowsUser2", Age: 10}
    	user3 := User{Name: "RowsUser3", Age: 20}
    	DB.Save(&user1).Save(&user2).Save(&user3)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top