Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for mapvalues (0.25 sec)

  1. tests/create_test.go

    	}
    
    	// case 1: one record, create from map[string]interface{}
    	mapValue1 := map[string]interface{}{"name": "create_from_map_with_schema1", "age": 1}
    	if err := DB.Model(&User{}).Create(mapValue1).Error; err != nil {
    		t.Fatalf("failed to create data from map, got error: %v", err)
    	}
    
    	if _, ok := mapValue1["id"]; !ok {
    		t.Fatal("failed to create data from map with table, returning map has no primary key")
    	}
    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)
  2. scan.go

    		}
    	}
    }
    
    func scanIntoMap(mapValue map[string]interface{}, values []interface{}, columns []string) {
    	for idx, column := range columns {
    		if reflectValue := reflect.Indirect(reflect.Indirect(reflect.ValueOf(values[idx]))); reflectValue.IsValid() {
    			mapValue[column] = reflectValue.Interface()
    			if valuer, ok := mapValue[column].(driver.Valuer); ok {
    				mapValue[column], _ = valuer.Value()
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsTesting.java

                values[4] = fifth;
                builder.add(new ManyValues(values));
              }
            }
          }
          return builder.build();
        }
      }
    
      static final ImmutableList<ManyValues> ALL_MANY_VALUES = ManyValues.createAll();
    
      static final ImmutableList<Double> MANY_VALUES =
          ImmutableList.of(1.1, -44.44, 33.33, 555.555, -2.2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/DiscreteDomain.java

     * instances. A discrete domain is one that supports the three basic operations: {@link #next},
     * {@link #previous} and {@link #distance}, according to their specifications. The methods {@link
     * #minValue} and {@link #maxValue} should also be overridden for bounded types.
     *
     * <p>A discrete domain always represents the <i>entire</i> set of values of its type; it cannot
     * represent partial domains such as "prime integers" or "strings of length 5."
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/DiscreteDomainTest.java

          return DELEGATE.distance(start, end);
        }
    
        @Override
        public Integer minValue() {
          return DELEGATE.minValue();
        }
    
        @Override
        public Integer maxValue() {
          return DELEGATE.maxValue();
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/DiscreteDomain.java

     * instances. A discrete domain is one that supports the three basic operations: {@link #next},
     * {@link #previous} and {@link #distance}, according to their specifications. The methods {@link
     * #minValue} and {@link #maxValue} should also be overridden for bounded types.
     *
     * <p>A discrete domain always represents the <i>entire</i> set of values of its type; it cannot
     * represent partial domains such as "prime integers" or "strings of length 5."
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. association.go

    			_, pvs := schema.GetIdentityFieldValuesMap(association.DB.Statement.Context, reflectValue, rel.Schema.PrimaryFields)
    			if pcolumn, pvalues := schema.ToQueryValues(rel.Schema.Table, rel.Schema.PrimaryFieldDBNames, pvs); len(pvalues) > 0 {
    				conds = append(conds, clause.IN{Column: pcolumn, Values: pvalues})
    			} else {
    				return ErrPrimaryKeyRequired
    			}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/PairedStatsTest.java

    import static com.google.common.truth.Truth.assertWithMessage;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.math.StatsTesting.ManyValues;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.SerializableTester;
    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

    import static com.google.common.truth.Truth.assertWithMessage;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.math.StatsTesting.ManyValues;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.SerializableTester;
    import java.nio.ByteBuffer;
    import java.nio.ByteOrder;
    import junit.framework.TestCase;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.math.StatsTesting.ManyValues;
    import java.util.Collections;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link PairedStatsAccumulator}. This tests the stats methods for instances built with
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
Back to top