Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestCreateFromMapWithTable (0.14 seconds)

  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{}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 09:55:20 GMT 2025
    - 26.8K bytes
    - Click Count (0)
Back to Top