Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for valberg (7.59 sec)

  1. tests/scanner_valuer_test.go

    	}
    
    	if err := DB.Create(&data).Error; err != nil {
    		t.Fatalf("No error should happened when create scanner valuer struct, but got %v", err)
    	}
    
    	var result ScannerValuerStruct
    
    	if err := DB.Find(&result, "id = ?", data.ID).Error; err != nil {
    		t.Fatalf("no error should happen when query scanner, valuer struct, but got %v", err)
    	}
    
    	if result.ExampleStructPtr.Val != "value2" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  2. cni/pkg/plugin/sidecar_redirect.go

    			"excludeIPCidrs", isFound, valErr)
    	}
    	isFound, redir.excludeInboundPorts, valErr = getAnnotationOrDefault("excludeInboundPorts", pi.Annotations)
    	if valErr != nil {
    		return nil, fmt.Errorf("annotation value error for value %s; annotationFound = %t: %v",
    			"excludeInboundPorts", isFound, valErr)
    	}
    	isFound, redir.includeInboundPorts, valErr = getAnnotationOrDefault("includeInboundPorts", pi.Annotations)
    	if valErr != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. scan.go

    		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()
    			} else if b, ok := mapValue[column].(sql.RawBytes); ok {
    				mapValue[column] = string(b)
    			}
    		} else {
    			mapValue[column] = nil
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  4. schema/field_test.go

    				CreatedAt: time.Now(),
    				UpdatedAt: time.Now(),
    				DeletedAt: gorm.DeletedAt{Time: time.Now(), Valid: true},
    			},
    			Name:     "valuer_and_setter",
    			Age:      18,
    			Birthday: tests.Now(),
    			Active:   true,
    		}
    		reflectValue = reflect.ValueOf(&user)
    	)
    
    	// test valuer
    	values := map[string]interface{}{
    		"name":       user.Name,
    		"id":         user.ID,
    		"created_at": user.CreatedAt,
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 19 09:02:53 GMT 2022
    - 12.7K bytes
    - Viewed (0)
  5. schema/field.go

    	}
    
    	fieldValue := reflect.New(field.IndirectFieldType)
    	// if field is valuer, used its value or first field as data type
    	valuer, isValuer := fieldValue.Interface().(driver.Valuer)
    	if isValuer {
    		if _, ok := fieldValue.Interface().(GormDataTypeInterface); !ok {
    			if v, err := valuer.Value(); reflect.ValueOf(v).IsValid() && err == nil {
    				fieldValue = reflect.ValueOf(v)
    			}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  6. statement.go

    		}
    	}
    
    	conds := make([]clause.Expression, 0, 4)
    	args = append([]interface{}{query}, args...)
    	for idx, arg := range args {
    		if arg == nil {
    			continue
    		}
    		if valuer, ok := arg.(driver.Valuer); ok {
    			arg, _ = valuer.Value()
    		}
    
    		switch v := arg.(type) {
    		case clause.Expression:
    			conds = append(conds, v)
    		case *DB:
    			v.executeScopes()
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            val valueArgument = unwrapQualified<KtValueArgument> { valueArg, expr ->
                // If `valueArg` is [KtLambdaArgument], its [getArgumentExpression] could be labeled expression (e.g., l@{ ... }).
                // That is not exactly `expr`, which would be [KtLambdaExpression]. So, we need [unwrap] here.
                valueArg.getArgumentExpression()?.unwrap() == expr
            } ?: return null
            val callExpression =
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 18:13:17 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  8. schema/relationship.go

    			schema.guessRelation(relation, field, guessEmbeddedHas)
    		// case guessEmbeddedHas:
    		default:
    			schema.err = fmt.Errorf("invalid field found for struct %v's field %s: define a valid foreign key for relations or implement the Valuer/Scanner interface",
    				schema, field.Name)
    		}
    	}
    
    	switch gl {
    	case guessBelongs:
    		primarySchema, foreignSchema = relation.FieldSchema, schema
    	case guessEmbeddedBelongs:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/security/oauth2-scopes.md

    Und wir geben die Scopes als Teil des JWT-Tokens zurück.
    
    !!! danger "Gefahr"
        Der Einfachheit halber fügen wir hier die empfangenen Scopes direkt zum Token hinzu.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:08 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  10. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    uwajima.ehime.jp uwu.ai uy uy.com uz uz.ua uzhgorod.ua uzs.gov.pl v-info.info v.bg v.ua va va.it va.no va.us vaapste.no vacations vadso.no vadsø.no vaga.no vagan.no vagsoy.no vaksdal.no val-d-aosta.it val-daosta.it vald-aosta.it valdaosta.it valer.hedmark.no valer.ostfold.no valle-aosta.it valle-d-aosta.it valle-daosta.it valle.no valleaosta.it valled-aosta.it valledaosta.it vallee-aoste.it vallee-d-aoste.it valleeaoste.it valleedaoste.it valley.museum vallée-aoste.it vallée-d-aoste.it valléeaoste.it...
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 40.4K bytes
    - Viewed (0)
Back to top