- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestPostgres (0.08 seconds)
-
tests/postgres_test.go
} if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu1" { t.Errorf("No error should happen, but got %v", err) } } func TestPostgres(t *testing.T) { if DB.Dialector.Name() != "postgres" { t.Skip() } type Harumph struct { gorm.Model Name string `gorm:"check:name_checker,name <> ''"`
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Oct 08 09:16:32 GMT 2022 - 6.4K bytes - Click Count (0)