Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. migrator/migrator.go

    				).Error
    
    			}
    		}
    		return fmt.Errorf("failed to look up field with name: %s", field)
    	})
    }
    
    // HasColumn check has column `field` for value or not
    func (m Migrator) HasColumn(value interface{}, field string) bool {
    	var count int64
    	m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		currentDatabase := m.DB.Migrator().CurrentDatabase()
    		name := field
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
Back to top