- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for t_ (0.11 sec)
-
tests/table_test.go
db, _ := gorm.Open(tests.DummyDialector{}, &gorm.Config{ NamingStrategy: schema.NamingStrategy{ TablePrefix: "t_", }, }) sql := db.ToSQL(func(tx *gorm.DB) *gorm.DB { return tx.Model(&UserWithTableNamer{}).Find(&UserWithTableNamer{}) }) if !regexp.MustCompile("SELECT \\* FROM `t_users`").MatchString(sql) { t.Errorf("Table with namer, got %v", sql) } }
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)