Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for HasColumn (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 29.8K bytes
    - Click Count (0)
Back to Top