- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for columnNames (0.06 sec)
-
tests/query_test.go
t.Errorf("errors happened when query first: %v", err) } else { for _, name := range []string{"Name", "Age", "Birthday"} { t.Run(name, func(t *testing.T) { dbName := DB.NamingStrategy.ColumnName("", name) switch name { case "Name": if _, ok := first[dbName].(string); !ok { t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName]) } case "Age":
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 50.4K bytes - Viewed (0) -
tests/migrate_test.go
AssertEqual(t, false, ok) } func findColumnType(dest interface{}, columnName string) ( foundColumn gorm.ColumnType, err error, ) { columnTypes, err := DB.Migrator().ColumnTypes(dest) if err != nil { err = fmt.Errorf("ColumnTypes err:%v", err) return } for _, c := range columnTypes { if c.Name() == columnName { foundColumn = c break } } return }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0)