Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for rv (0.02 sec)

  1. callbacks/create.go

    					for i := db.Statement.ReflectValue.Len() - 1; i >= 0; i-- {
    						rv := db.Statement.ReflectValue.Index(i)
    						if reflect.Indirect(rv).Kind() != reflect.Struct {
    							break
    						}
    
    						_, isZero := pkField.ValueOf(db.Statement.Context, rv)
    						if isZero {
    							db.AddError(pkField.Set(db.Statement.Context, rv, insertID))
    							insertID -= pkField.AutoIncrementIncrement
    						}
    					}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 08 03:29:55 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. callbacks/associations.go

    						if rv.Kind() != reflect.Ptr {
    							rv = rv.Addr()
    						}
    
    						if saveAssociations(db, rel, rv, selectColumns, restricted, nil) == nil {
    							setupReferences(db.Statement.ReflectValue, rv)
    						}
    					}
    				}
    			}
    		}
    	}
    }
    
    func SaveAfterAssociations(create bool) func(db *gorm.DB) {
    	return func(db *gorm.DB) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. association.go

    				}
    			}
    
    			switch rv.Kind() {
    			case reflect.Slice, reflect.Array:
    				for i := 0; i < rv.Len(); i++ {
    					appendToFieldValues(reflect.Indirect(rv.Index(i)).Addr())
    				}
    			case reflect.Struct:
    				if !rv.CanAddr() {
    					association.Error = ErrInvalidValue
    					return
    				}
    				appendToFieldValues(rv.Addr())
    			}
    
    			if association.Error == nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. callbacks/preload.go

    			if joined, nestedJoins := isJoined(name); joined {
    				switch rv := db.Statement.ReflectValue; rv.Kind() {
    				case reflect.Slice, reflect.Array:
    					if rv.Len() > 0 {
    						reflectValue := rel.FieldSchema.MakeSlice().Elem()
    						for i := 0; i < rv.Len(); i++ {
    							frv := rel.Field.ReflectValueOf(db.Statement.Context, rv.Index(i))
    							if frv.Kind() != reflect.Ptr {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. statement.go

    		default:
    			switch rv := reflect.ValueOf(v); rv.Kind() {
    			case reflect.Slice, reflect.Array:
    				if rv.Len() == 0 {
    					writer.WriteString("(NULL)")
    				} else if rv.Type().Elem() == reflect.TypeOf(uint8(0)) {
    					stmt.Vars = append(stmt.Vars, v)
    					stmt.DB.Dialector.BindVarTo(writer, stmt, v)
    				} else {
    					writer.WriteByte('(')
    					for i := 0; i < rv.Len(); i++ {
    						if i > 0 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. schema/field.go

    			var getRealFieldValue func(reflect.Value)
    			getRealFieldValue = func(v reflect.Value) {
    				var (
    					rv     = reflect.Indirect(v)
    					rvType = rv.Type()
    				)
    
    				if rv.Kind() == reflect.Struct && !rvType.ConvertibleTo(TimeReflectType) {
    					for i := 0; i < rvType.NumField(); i++ {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  7. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    roros.no rost.no rotorcraft.aero router.management rovigo.it rovno.ua royal-commission.uk royken.no royrvik.no rr.gov.br rr.leg.br rs rs.ba rs.gov.br rs.leg.br rsc.cdn77.org rsvp ru ru.com ru.eu.org ru.net rugby ruhr run run.app ruovat.no russia.museum rv.ua rw rwe rybnik.pl ryd.wafaicloud.com rygge.no ryokami.saitama.jp ryugasaki.ibaraki.jp ryukyu ryuoh.shiga.jp rzeszow.pl rzgw.gov.pl ráhkkerávju.no ráisa.no råde.no råholt.no rælingen.no rødøy.no rømskog.no røros.no røst.no røyken.no røyrvik.no...
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 40.4K bytes
    - Viewed (0)
Back to top