- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for jinzhu1 (0.06 sec)
-
tests/gaussdb_test.go
t.Errorf("No error should happen, but got %v", err) } yasuo.Name = "jinzhu1" if err := DB.Save(&yasuo).Error; err != nil { t.Errorf("Failed to update date, got error %v", err) } if err := DB.First(&result, "id = ?", yasuo.ID).Error; err != nil || yasuo.Name != "jinzhu1" { t.Errorf("No error should happen, but got %v", err) } }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 6.6K bytes - Viewed (0) -
tests/query_test.go
} result = dryDB.Where("name = ?", "jinzhu").Or(User{Name: "jinzhu 2", Age: 18}).Find(&User{}) if !regexp.MustCompile("SELECT \\* FROM .*users.* WHERE .*name.* = .+ OR \\(.*name.* AND .*age.*\\)").MatchString(result.Statement.SQL.String()) { t.Fatalf("Build OR condition, but got %v", result.Statement.SQL.String()) } result = dryDB.Where("name = ?", "jinzhu").Or(map[string]interface{}{"name": "jinzhu 2", "age": 18}).Find(&User{})
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Jul 22 06:21:04 UTC 2025 - 51K bytes - Viewed (0) -
clause/expression_test.go
Result: "@@test AND name1 = ? AND name2 = ? AND name3 = ? @notexist", ExpectedVars: []interface{}{"jinzhu", "jinzhu2", "jinzhu"}, }, { SQL: "name in (@names)", Vars: []interface{}{map[string]interface{}{"names": []interface{}{"jinzhu", "jinzhu2"}}}, Result: "name in (?,?)", ExpectedVars: []interface{}{"jinzhu", "jinzhu2"}, }, {Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Nov 04 07:04:52 UTC 2025 - 8.9K bytes - Viewed (0) -
go.sum
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Sep 12 04:33:27 UTC 2025 - 829 bytes - Viewed (0) -
chainable_api.go
// // // Find the first user with name jinzhu // db.Where("name = ?", "jinzhu").First(&user) // // Find the first user with name jinzhu and age 20 // db.Where(&User{Name: "jinzhu", Age: 20}).First(&user) // // Find the first user with name jinzhu and age not equal to 20 // db.Where("name = ?", "jinzhu").Where("age <> ?", "20").First(&user) //
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Sep 19 01:49:06 UTC 2025 - 14.8K bytes - Viewed (0) -
clause/set_test.go
}, { []clause.Interface{ clause.Update{}, clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}), clause.Set([]clause.Assignment{{clause.Column{Name: "name"}, "jinzhu"}}), }, "UPDATE `users` SET `name`=?", []interface{}{"jinzhu"}, }, } for idx, result := range results { t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) { checkBuildClauses(t, result.Clauses, result.Result, result.Vars)Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 11:18:54 UTC 2025 - 1.5K bytes - Viewed (0) -
go.mod
module gorm.io/gorm go 1.18 require ( github.com/jinzhu/inflection v1.0.0 github.com/jinzhu/now v1.1.5 golang.org/x/text v0.20.0 ) require ( github.com/mattn/go-sqlite3 v1.14.22 // indirect gorm.io/driver/sqlite v1.6.0 // indirect
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Sep 12 04:33:27 UTC 2025 - 241 bytes - Viewed (0) -
tests/go.mod
module gorm.io/gorm/tests go 1.24.0 require ( github.com/google/uuid v1.6.0 github.com/jinzhu/now v1.1.5 github.com/lib/pq v1.10.9 github.com/stretchr/testify v1.11.1 gorm.io/driver/gaussdb v0.1.0 gorm.io/driver/mysql v1.6.0 gorm.io/driver/postgres v1.6.0 gorm.io/driver/sqlite v1.6.0 gorm.io/driver/sqlserver v1.6.1 gorm.io/gorm v1.31.0 ) require ( filippo.io/edwards25519 v1.1.0 // indirect
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 02 14:09:18 UTC 2025 - 1.3K bytes - Viewed (0) -
tests/serializer_test.go
} createdAt := time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC) updatedAt := createdAt.Unix() data := SerializerStruct{ Name: []byte("jinzhu"), Roles: []string{"r1", "r2"}, Contracts: map[string]interface{}{"name": "jinzhu", "age": 10}, EncryptedString: EncryptedString("pass"), CreatedTime: createdAt.Unix(), UpdatedTime: &updatedAt, JobInfo: Job{
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sat Nov 22 03:14:36 UTC 2025 - 9.3K bytes - Viewed (0) -
README.md
## Contributors [Thank you](https://github.com/go-gorm/gorm/graphs/contributors) for contributing to the GORM framework! ## License © Jinzhu, 2013~time.Now
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Oct 30 09:30:20 UTC 2025 - 1.8K bytes - Viewed (0)