- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,867 for CREATE (0.1 sec)
-
tests/hooks_test.go
t.Fatalf("An error from before create callbacks happened when create with invalid value") } if DB.Where("code = ?", "Invalid").First(&Product{}).Error == nil { t.Fatalf("Should not save record that have errors") } if DB.Save(&Product{Code: "dont_save", Price: 100}).Error == nil { t.Fatalf("An error from after create callbacks happened when create with invalid value") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java
public static class ImmutableListOfGenerator extends TestStringListGenerator { @Override protected List<String> create(String[] elements) { return ImmutableList.copyOf(elements); } } public static class BuilderAddListGenerator extends TestStringListGenerator { @Override protected List<String> create(String[] elements) { ImmutableList.Builder<String> builder = ImmutableList.<String>builder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TransposedTableTest.java
protected Table<String, Integer, Character> create(@Nullable Object... data) { Table<Integer, String, Character> original = HashBasedTable.create(); Table<String, Integer, Character> table = transpose(original); table.clear(); populate(table, data); return table; } public void testTransposeTransposed() { Table<Integer, String, Character> original = HashBasedTable.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.8K bytes - Viewed (0) -
tests/associations_test.go
orders := []Order{{Num: "order1", Coupon: coupon}, {Num: "order2", Coupon: coupon}} if err := DB.Create(&orders).Error; err != nil { t.Errorf("failed to create orders, got %v", err) } coupon2 := Coupon{ AppliesToProduct: []*CouponProduct{{Desc: "coupon-description"}}, } DB.Session(&gorm.Session{FullSaveAssociations: true}).Create(&coupon2) var result Coupon
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 08 08:29:09 UTC 2023 - 10.9K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt
private val moshiConverterFactory = MoshiConverterFactory.create(moshi) private val retrofit = Retrofit.Builder() .baseUrl(SslLabsApi.BASE_URL) .addConverterFactory(moshiConverterFactory) .callFactory(callFactory) .build() private val sslLabsApi = retrofit.create(SslLabsApi::class.java) suspend fun clients(): List<Client> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Apr 02 01:44:15 UTC 2024 - 1.7K bytes - Viewed (0) -
tests/prepared_stmt_test.go
t.Fatalf("no error should happen but got %v", err) } user2 := *GetUser("prepared_stmt2", Config{}) if err := txCtx.Create(&user2).Error; err == nil { t.Fatalf("should failed to create with timeout context") } if err := tx.Create(&user2).Error; err != nil { t.Fatalf("failed to create, got error %v", err) } var result3 User if err := tx.Find(&result3, user2.ID).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Aug 22 11:02:05 UTC 2024 - 8.5K bytes - Viewed (0) -
tests/preload_test.go
Account: true, Pets: 2, Toys: 3, Company: true, Manager: true, Team: 4, Languages: 3, Friends: 1, }) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } CheckUser(t, user, user) var user2 User DB.Preload(clause.Associations).Find(&user2, "id = ?", user.ID) CheckUser(t, user2, user)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactCoordinatesFactory.java
@Nonnull default ArtifactCoordinates create(@Nonnull Session session, @Nonnull String coordinatesString) { return create(ArtifactCoordinatesFactoryRequest.build(session, coordinatesString)); } @Nonnull default ArtifactCoordinates create( @Nonnull Session session, String groupId, String artifactId, String version, String extension) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Aug 27 21:13:34 UTC 2024 - 3.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactFactory.java
*/ @Nonnull Artifact create(@Nonnull ArtifactFactoryRequest request); @Nonnull default Artifact create( @Nonnull Session session, String groupId, String artifactId, String version, String extension) { return create(ArtifactFactoryRequest.build(session, groupId, artifactId, version, extension)); } @Nonnull default Artifact create( @Nonnull Session session,
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Aug 27 21:13:34 UTC 2024 - 3.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java
return emptySet(); } public Test testsForEmptyList() { return ListTestSuiteBuilder.using( new TestStringListGenerator() { @Override public List<String> create(String[] elements) { return emptyList(); } }) .named("emptyList") .withFeatures(CollectionFeature.SERIALIZABLE, CollectionSize.ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.1K bytes - Viewed (0)