Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestQueryRaw (0.06 sec)

  1. tests/sql_builder_test.go

    			t.Errorf("Should have one user having name %v", users[0].Name)
    		} else if name == users[1].Name && total != 1 {
    			t.Errorf("Should have two users having name %v", users[1].Name)
    		}
    	}
    }
    
    func TestQueryRaw(t *testing.T) {
    	users := []*User{
    		GetUser("row_query_user", Config{}),
    		GetUser("row_query_user", Config{}),
    		GetUser("row_query_user", Config{}),
    	}
    	DB.Create(&users)
    
    	var user User
    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