- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 906 for clause (0.81 sec)
-
clause/with.go
package clause
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 35 bytes - Viewed (0) -
tests/create_test.go
CheckUser(t, result, user) user2 := *GetUser("omit_create", Config{Account: true, Pets: 3, Toys: 3, Company: true, Manager: true, Team: 3, Languages: 3, Friends: 4}) DB.Omit(clause.Associations).Create(&user2) var result2 User DB.Preload(clause.Associations).First(&result2, user2.ID) user2.Account = Account{} user2.Toys = nil user2.Manager = nil user2.Company = Company{} user2.Pets = nil user2.Team = nil
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 09:55:20 UTC 2025 - 26.8K bytes - Viewed (0) -
tests/postgres_test.go
OtherID: "1234", Data: "something", } DB.Create(&thing) thing2 := Thing{ SomeID: "1234", OtherID: "1234", Data: "something else", } result := DB.Clauses(clause.OnConflict{ OnConstraint: "some_id_other_id_unique", UpdateAll: true, }).Create(&thing2) if result.Error != nil { t.Errorf("creating second thing: %v", result.Error) } var things []Thing
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Oct 08 09:16:32 UTC 2022 - 6.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exception/ServletRuntimeException.java
* * This exception is used to wrap checked ServletExceptions and convert them * into unchecked RuntimeExceptions, allowing them to be thrown from methods * that don't declare ServletException in their throws clause. */ public class ServletRuntimeException extends RuntimeException { /** Serial version UID for serialization compatibility. */ private static final long serialVersionUID = 1L; /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1.4K bytes - Viewed (0) -
tests/gaussdb_test.go
OtherID: "1234", Data: "something", } DB.Create(&thing) thing2 := Thing{ SomeID: "1234", OtherID: "1234", Data: "something else", } result := DB.Clauses(clause.OnConflict{ OnConstraint: "some_id_other_id_unique", UpdateAll: true, }).Create(&thing2) if result.Error != nil { t.Errorf("creating second thing: %v", result.Error) } var things []Thing
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 6.6K bytes - Viewed (0) -
guava/src/com/google/common/hash/ChecksumHashFunction.java
} catch (Throwable e) { // `update` has no `throws` clause. sneakyThrow(e); } return true; } else { return false; } } private static @Nullable MethodHandle updateByteBuffer() { try { Class<?> clazz = Class.forName("java.util.zip.Checksum"); return MethodHandles.lookup()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.4K bytes - Viewed (0) -
errors.go
ErrInvalidTransaction = errors.New("invalid transaction") // ErrNotImplemented not implemented ErrNotImplemented = errors.New("not implemented") // ErrMissingWhereClause missing where clause ErrMissingWhereClause = errors.New("WHERE conditions required") // ErrUnsupportedRelation unsupported relations ErrUnsupportedRelation = errors.New("unsupported relations") // ErrPrimaryKeyRequired primary keys required
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Fri Apr 26 02:53:17 UTC 2024 - 2.5K bytes - Viewed (0) -
tests/gorm_test.go
t.Fatalf("should returns error but got nil") } } func TestReturningWithNullToZeroValues(t *testing.T) { dialect := DB.Dialector.Name() switch dialect { case "mysql", "sqlserver": // these dialects do not support the "returning" clause return default: // This user struct will leverage the existing users table, but override // the Name field to default to null. type user struct { gorm.Model
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
tests/associations_many2many_test.go
package tests_test import ( "fmt" "sync" "testing" "gorm.io/gorm" "gorm.io/gorm/clause" . "gorm.io/gorm/utils/tests" ) func TestMany2ManyAssociation(t *testing.T) { user := *GetUser("many2many", Config{Languages: 2}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) // Find var user2 User
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sat Jun 10 13:05:19 UTC 2023 - 13.2K bytes - Viewed (0) -
clause/expression.go
switch value := v.(type) { case sql.NamedArg: namedMap[value.Name] = value.Value case map[string]interface{}: for k, v := range value { namedMap[k] = v } default: var appendFieldsToMap func(reflect.Value) appendFieldsToMap = func(reflectValue reflect.Value) { reflectValue = reflect.Indirect(reflectValue) switch reflectValue.Kind() { case reflect.Struct:
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Oct 10 06:45:48 UTC 2023 - 8.3K bytes - Viewed (0)