Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,101 for cocreate (0.18 sec)

  1. callbacks/create.go

    				if i, ok := value.(BeforeCreateInterface); ok {
    					called = true
    					db.AddError(i.BeforeCreate(tx))
    				}
    			}
    			return called
    		})
    	}
    }
    
    // Create create hook
    func Create(config *Config) func(db *gorm.DB) {
    	supportReturning := utils.Contains(config.CreateClauses, "RETURNING")
    
    	return func(db *gorm.DB) {
    		if db.Error != nil {
    			return
    		}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. tests/create_test.go

    func TestCreateFromMap(t *testing.T) {
    	if err := DB.Model(&User{}).Create(map[string]interface{}{"Name": "create_from_map", "Age": 18}).Error; err != nil {
    		t.Fatalf("failed to create data from map, got error: %v", err)
    	}
    
    	var result User
    	if err := DB.Where("name = ?", "create_from_map").First(&result).Error; err != nil || result.Age != 18 {
    		t.Fatalf("failed to create from map, got error %v", err)
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  3. callbacks/create_test.go

    Jinghao Lu <******@****.***> 1710740922 +0800
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 05:48:42 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. helm/minio/templates/_helper_create_svcacct.txt

      if [[ $(cat $MINIO_ACCESSKEY_SECRETKEY_TMP|wc -l) -ne 2 ]];then
        echo "credentials file is invalid"
        rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP
        return 1
      fi
      SVCACCT=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP)
      # Create the svcacct if it does not exist
      if ! checkSvcacctExists ; then
        echo "Creating svcacct '$SVCACCT'"
        # Check if policy file is define
        if [ -z $FILENAME ]; then
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 23:20:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. cmd/xl-storage_test.go

    	// create xlStorage test setup
    	xlStorage, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to cfgreate xlStorage test setup, %s", err)
    	}
    
    	// Create files for the test cases.
    	if err = xlStorage.MakeVol(context.Background(), "exists-legacy"); err != nil {
    		t.Fatalf("Unable to create a volume \"exists-legacy\", %s", err)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  6. cmd/peer-s3-server.go

    		}, index)
    	}
    
    	var recreate bool
    	errs := g.Wait()
    	for index, err := range errs {
    		if errors.Is(err, errVolumeNotEmpty) {
    			recreate = true
    		}
    		if err == nil && recreate {
    			// ignore any errors
    			localDrives[index].MakeVol(ctx, bucket)
    		}
    	}
    
    	// Since we recreated buckets and error was `not-empty`, return not-empty.
    	if recreate {
    		return errVolumeNotEmpty
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * <p>
         * Shortcut for {@code getService(ArtifactFactory.class).create(...)}.
         *
         * @param coordString the string having "standard" coordinate.
         * @return coordinate used to point to the artifact
         *
         * @see org.apache.maven.api.services.ArtifactCoordinateFactory#create(Session, String)
         */
        @Nonnull
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 30K bytes
    - Viewed (0)
  8. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

        OkHttpClient client = new OkHttpClient();
    
        // Create request for remote resource.
        Request request = new Request.Builder()
            .url(ENDPOINT)
            .build();
    
        // Execute the request and retrieve the response.
        try (Response response = client.newCall(request).execute()) {
          // Deserialize HTTP response to concrete type.
          ResponseBody body = response.body();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      static <K, V, E extends InternalEntry<K, V, E>>
          WeakValueReference<K, V, E> unsetWeakValueReference() {
        return (WeakValueReference<K, V, E>) UNSET_WEAK_VALUE_REFERENCE;
      }
    
      /** Concrete implementation of {@link InternalEntry} for strong keys and strong values. */
      static class StrongKeyStrongValueEntry<K, V>
          extends AbstractStrongKeyEntry<K, V, StrongKeyStrongValueEntry<K, V>>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        }
    
        assertThat(future.isDone()).isFalse();
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      /** Concrete subclass for testing. */
      private static class TestedFuture<V> extends AbstractFuture<V> {
        private static <V> TestedFuture<V> create() {
          return new TestedFuture<V>();
        }
      }
    
      private static final class CountingRunnable implements Runnable {
        int count;
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top