- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for bufname (0.26 sec)
-
tests/table_test.go
t.Errorf("failed to find unique constraint, got %v", constraints) } } }) t.Run("namer", func(t *testing.T) { uname := "custom_unique_name" db, _ := gorm.Open(postgres.Open(postgresDSN), &gorm.Config{ NamingStrategy: mockUniqueNamingStrategy{ UName: uname, }, }) user, err := schema.Parse(&LongString{}, &sync.Map{}, db.Config.NamingStrategy) if err != nil {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Mar 09 09:31:28 GMT 2024 - 10.6K bytes - Viewed (0) -
tests/migrate_test.go
} func TestMigrateWithUniqueIndex(t *testing.T) { type UserWithUniqueIndex struct { ID int Name string `gorm:"size:20;index:idx_name,unique"` Date time.Time `gorm:"index:idx_name,unique"` UName string `gorm:"uniqueIndex;size:255"` } DB.Migrator().DropTable(&UserWithUniqueIndex{}) if err := DB.AutoMigrate(&UserWithUniqueIndex{}); err != nil { t.Fatalf("failed to migrate, got %v", err) }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Mar 18 11:24:16 GMT 2024 - 56.2K bytes - Viewed (0) -
schema/index.go
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sun Feb 04 07:49:19 GMT 2024 - 3.7K bytes - Viewed (0)