Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for bread (2.02 sec)

  1. scan.go

    					// same nested structure
    					if _, ok := joinedNestedSchemaMap[fullRelsName]; !ok {
    						if value := reflect.ValueOf(values[idx]).Elem(); value.Kind() == reflect.Ptr && value.IsNil() {
    							isNilPtrValue = true
    							break
    						}
    
    						relValue.Set(reflect.New(relValue.Type().Elem()))
    						joinedNestedSchemaMap[fullRelsName] = nil
    					}
    				}
    				currentReflectValue = relValue
    			}
    
    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)
  2. callbacks/query.go

    									gussNestedRelations = append(gussNestedRelations, relation)
    									currentRelations = relation.FieldSchema.Relationships.Relations
    								} else {
    									isNestedJoin = false
    									break
    								}
    							}
    
    							if isNestedJoin {
    								isRelations = true
    								relations = gussNestedRelations
    							}
    						}
    					}
    
    					if isRelations {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Jan 29 03:34:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  3. migrator/migrator.go

    				for _, dbName := range stmt.Schema.DBNames {
    					var foundColumn gorm.ColumnType
    
    					for _, columnType := range columnTypes {
    						if columnType.Name() == dbName {
    							foundColumn = columnType
    							break
    						}
    					}
    
    					if foundColumn == nil {
    						// not found, add column
    						if err = execTx.Migrator().AddColumn(value, dbName); err != nil {
    							return err
    						}
    					} else {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  4. callbacks/associations.go

    					identityMap := map[string]bool{}
    					for i := 0; i < rValLen; i++ {
    						obj := db.Statement.ReflectValue.Index(i)
    						if reflect.Indirect(obj).Kind() != reflect.Struct {
    							break
    						}
    						if _, zero := rel.Field.ValueOf(db.Statement.Context, obj); !zero { // check belongs to relation value
    							rv := rel.Field.ReflectValueOf(db.Statement.Context, obj) // relation reflect value
    							if !isPtr {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 03:06:13 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  5. finisher_api.go

    			tx.AddError(result.Error)
    		}
    
    		if tx.Error != nil || int(result.RowsAffected) < batchSize {
    			break
    		}
    
    		if totalSize > 0 {
    			if totalSize <= int(rowsAffected) {
    				break
    			}
    			if totalSize/batchSize == batch {
    				batchSize = totalSize % batchSize
    			}
    		}
    
    		// Optimize for-break
    		resultsValue := reflect.Indirect(reflect.ValueOf(dest))
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. callbacks/create.go

    				if config.LastInsertIDReversed {
    					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
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  7. statement.go

    										conds = append(conds, clause.Eq{Column: clause.Column{Table: clause.CurrentTable, Name: field.Name}, Value: v})
    									}
    								}
    							}
    						}
    					}
    				}
    
    				if restricted {
    					break
    				}
    			} else if !reflectValue.IsValid() {
    				stmt.AddError(ErrInvalidData)
    			} else if len(conds) == 0 {
    				if len(args) == 1 {
    					switch reflectValue.Kind() {
    					case reflect.Slice, reflect.Array:
    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)
  8. association.go

    									association.Error = err
    									break
    								}
    							}
    						}
    					}
    				}
    				break
    			}
    
    			association.Error = ErrInvalidValueOfLength
    			return
    		}
    
    		for i := 0; i < reflectValue.Len(); i++ {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  9. schema/schema.go

    			// If there are multiple primary keys, the AUTOINCREMENT field is prioritized
    			for _, field := range schema.PrimaryFields {
    				if field.AutoIncrement {
    					schema.PrioritizedPrimaryField = field
    					break
    				}
    			}
    		}
    	}
    
    	for _, field := range schema.PrimaryFields {
    		schema.PrimaryFieldDBNames = append(schema.PrimaryFieldDBNames, field.DBName)
    	}
    
    	for _, field := range schema.Fields {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:50:29 GMT 2023
    - 13.7K bytes
    - Viewed (0)
Back to top