- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for user1s (0.5 sec)
-
clause/select_test.go
Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}}, "SELECT * FROM `users`", nil, }, { []clause.Interface{clause.Select{ Columns: []clause.Column{clause.PrimaryColumn}, }, clause.From{}}, "SELECT `users`.`id` FROM `users`", nil, }, { []clause.Interface{clause.Select{ Columns: []clause.Column{clause.PrimaryColumn}, }, clause.Select{
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Feb 18 01:06:43 GMT 2023 - 1.7K bytes - Viewed (0) -
clause/limit_test.go
Offset: 20, }}, "SELECT * FROM `users` LIMIT ? OFFSET ?", []interface{}{limit10, 20}, }, { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit0}}, "SELECT * FROM `users` LIMIT ?", []interface{}{limit0}, }, { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit0}, clause.Limit{Offset: 0}}, "SELECT * FROM `users` LIMIT ?", []interface{}{limit0}, },
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Feb 06 02:54:40 GMT 2024 - 2.3K bytes - Viewed (0) -
logger/sql_test.go
Result string }{ { SQL: "create table users (name, age, height, actived, bytes, create_at, update_at, deleted_at, email, role, pass) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", NumericRegexp: nil, Vars: []interface{}{"jinzhu", 1, 999.99, true, []byte("12345"), tt, &tt, nil, "w@g.\"com", myrole, pwd},
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 8.4K bytes - Viewed (0) -
clause/joins_test.go
}, sql: "INNER JOIN `user` ON `user_info`.`user_id` = `users`.`id`", }, { name: "CROSS JOIN", join: clause.Join{ Type: clause.CrossJoin, Table: clause.Table{Name: "user"}, ON: clause.Where{ Exprs: []clause.Expression{clause.Eq{clause.Column{Table: "user_info", Name: "user_id"}, clause.PrimaryColumn}}, }, }, sql: "CROSS JOIN `user` ON `user_info`.`user_id` = `users`.`id`", }, {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Nov 03 13:03:13 GMT 2022 - 2.6K bytes - Viewed (0) -
clause/insert_test.go
Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Insert{}}, "INSERT INTO `users`", nil, }, { []clause.Interface{clause.Insert{Modifier: "LOW_PRIORITY"}}, "INSERT LOW_PRIORITY INTO `users`", nil, }, { []clause.Interface{clause.Insert{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}},
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Jun 02 01:18:01 GMT 2020 - 737 bytes - Viewed (0) -
clause/update_test.go
results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Update{}}, "UPDATE `users`", nil, }, { []clause.Interface{clause.Update{Modifier: "LOW_PRIORITY"}}, "UPDATE LOW_PRIORITY `users`", nil, }, { []clause.Interface{clause.Update{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}}, "UPDATE LOW_PRIORITY `products`", nil,
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Jun 02 01:18:01 GMT 2020 - 722 bytes - Viewed (0) -
utils/utils_unix_test.go
// +build unix package utils import ( "testing" ) func TestSourceDir(t *testing.T) { cases := []struct { file string want string }{ { file: "/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go", want: "/Users/name/go/pkg/mod/gorm.io/", }, { file: "/go/work/proj/gorm/utils/utils.go", want: "/go/work/proj/gorm/", }, { file: "/go/work/proj/gorm_alias/utils/utils.go",
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Nov 21 02:48:13 GMT 2022 - 731 bytes - Viewed (0) -
utils/utils_windows_test.go
package utils import ( "testing" ) func TestSourceDir(t *testing.T) { cases := []struct { file string want string }{ { file: `C:/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go`, want: `C:/Users/name/go/pkg/mod/gorm.io/`, }, { file: `C:/go/work/proj/gorm/utils/utils.go`, want: `C:/go/work/proj/gorm/`, }, { file: `C:/go/work/proj/gorm_alias/utils/utils.go`,
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Nov 21 02:48:13 GMT 2022 - 715 bytes - Viewed (0) -
tests/group_by_test.go
} if err := DB.Model(&User{}).Select("name, sum(age)").Where("name = ?", "groupby").Group("users.name").Row().Scan(&name, &total); err != nil { t.Errorf("no error should happen, but got %v", err) } if name != "groupby" || total != 60 { t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total) }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 3.3K bytes - Viewed (0) -
tests/main_test.go
} if DB.Where("name = ?", "jinzhu; delete * from users").First(&User{}).Error == nil { t.Errorf("Should got error with invalid SQL") } DB.Model(&User{}).Count(&count2) if count1 != count2 { t.Errorf("No user should not be deleted by invalid SQL") } } func TestSetAndGet(t *testing.T) { if value, ok := DB.Set("hello", "world").Get("hello"); !ok { t.Errorf("Should be able to get setting after set")
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Mar 24 01:31:58 GMT 2022 - 1.4K bytes - Viewed (0)