- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for 30 (0.28 sec)
-
.github/workflows/invalid_question.yml
stale-issue-label: "status:stale" days-before-stale: 0 days-before-close: 30 remove-stale-when-updated: true
Others - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Apr 11 02:27:05 GMT 2023 - 1.2K bytes - Viewed (0) -
clause/limit_test.go
"SELECT * FROM `users` OFFSET ?", []interface{}{30}, }, { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{Limit: &limit10, Offset: 20}, clause.Limit{Offset: 30}, clause.Limit{Limit: &limit50}}, "SELECT * FROM `users` LIMIT ? OFFSET ?", []interface{}{limit50, 30}, }, } for idx, result := range results {
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) -
tests/scan_test.go
t.Errorf("Should find expected results") } var ages int if err := DB.Table("users").Where("name = ? or name = ?", user2.Name, user3.Name).Select("SUM(age)").Scan(&ages).Error; err != nil || ages != 30 { t.Fatalf("failed to scan ages, got error %v, ages: %v", err, ages) } var name string if err := DB.Table("users").Where("name = ?", user2.Name).Select("name").Scan(&name).Error; err != nil || name != user2.Name {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat May 28 14:18:07 GMT 2022 - 8.2K bytes - Viewed (0) -
tests/group_by_test.go
users := []User{{ Name: "groupby", Age: 10, Birthday: Now(), Active: true, }, { Name: "groupby", Age: 20, Birthday: Now(), }, { Name: "groupby", Age: 30, Birthday: Now(), Active: true, }, { Name: "groupby1", Age: 110, Birthday: Now(), }, { Name: "groupby1", Age: 220, Birthday: Now(), Active: true, }, {
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) -
.github/workflows/tests.yml
MSSQL_USER: gorm MSSQL_PASSWORD: LoremIpsum86 ports: - 9930:1433 options: >- --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P LoremIpsum86 -l 30 -Q \"SELECT 1\" || exit 1" --health-start-period 10s --health-interval 10s --health-timeout 5s --health-retries 10 steps: - name: Set up Go 1.x
Others - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Jan 29 02:34:20 GMT 2024 - 6.6K bytes - Viewed (0) -
tests/upsert_test.go
user.Age = 20 if err := DB.Create(&user).Error; err != nil { t.Errorf("failed to create user, got error %v", err) } var user2 User DB.First(&user2, user.ID) user2.Age = 30 time.Sleep(time.Second) if err := DB.Clauses(clause.OnConflict{UpdateAll: true}).Create(&user2).Error; err != nil { t.Fatalf("failed to onconflict create user, got error %v", err) } else { var user3 User
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Sep 05 07:39:19 GMT 2022 - 11.4K bytes - Viewed (0) -
tests/hooks_test.go
if tx.Statement.Changed() { tx.Statement.SetColumn("Price", s.Price+10) } if tx.Statement.Changed("Code") { s.Price += 20 tx.Statement.SetColumn("Price", s.Price+30) } return nil } func TestSetColumn(t *testing.T) { DB.Migrator().DropTable(&Product3{}) DB.AutoMigrate(&Product3{}) product := Product3{Name: "Product", Price: 0} DB.Create(&product)
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Feb 18 01:20:29 GMT 2023 - 15.9K bytes - Viewed (0) -
tests/migrate_test.go
} ) checkField(&UniqueStruct1{}, "name", false, "") checkField(&UniqueStruct2{}, "name", false, "") type ( // unique UniqueStruct3 struct { Name string `gorm:"size:30;unique"` } UniqueStruct4 struct { Name string `gorm:"size:40;unique"` } ) checkField(&UniqueStruct3{}, "name", true, "") checkField(&UniqueStruct4{}, "name", true, "")
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) -
.github/workflows/missing_playground.yml
which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout [https://github.com/go-gorm/playground](https://github.com/go-gorm/playground) for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the `Question` template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ [Search Before Aski...
Others - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Apr 11 02:27:05 GMT 2023 - 1.3K bytes - Viewed (0) -
tests/sql_builder_test.go
if age != ((1+10+20)*2 + 30) { t.Errorf("Invalid age, got %v", age) } } func TestRowsWithGroup(t *testing.T) { users := []User{ {Name: "having_user_1", Age: 1}, {Name: "having_user_2", Age: 10}, {Name: "having_user_1", Age: 20}, {Name: "having_user_1", Age: 30}, } DB.Create(&users)
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Jan 12 08:42:21 GMT 2024 - 16.7K bytes - Viewed (0)