Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCreateFromMapWithTable (0.37 sec)

  1. tests/create_test.go

    			t.Fatalf("failed to create from map, got error %v", err)
    		}
    		if int64(result.ID) != v.(int64) {
    			t.Fatal("failed to create data from map with table, @id != id")
    		}
    	}
    }
    
    func TestCreateFromMapWithTable(t *testing.T) {
    	tableDB := DB.Table("users")
    	supportLastInsertID := isMysql() || isSqlite()
    
    	// case 1: create from map[string]interface{}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top