Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEmbeddedTagSetting (4.96 sec)

  1. tests/embedded_struct_test.go

    	if err := DB.AutoMigrate(&AdvancedUser{}); err != nil {
    		if DB.Dialector.Name() != "sqlite" {
    			t.Errorf("Failed to auto migrate advanced user, got error %v", err)
    		}
    	}
    }
    
    func TestEmbeddedTagSetting(t *testing.T) {
    	type Tag1 struct {
    		Id int64 `gorm:"autoIncrement"`
    	}
    	type Tag2 struct {
    		Id int64
    	}
    
    	type EmbeddedTag struct {
    		Tag1 Tag1 `gorm:"Embedded;"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Oct 26 03:58:13 GMT 2023
    - 7.3K bytes
    - Viewed (0)
Back to top