Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 209 for selects (0.51 sec)

  1. callbacks/delete.go

    					tx = tx.Unscoped()
    				}
    
    				if len(db.Statement.Selects) > 0 {
    					selects := make([]string, 0, len(db.Statement.Selects))
    					for _, s := range db.Statement.Selects {
    						if s == clause.Associations {
    							selects = append(selects, s)
    						} else if columnPrefix := column + "."; strings.HasPrefix(s, columnPrefix) {
    							selects = append(selects, strings.TrimPrefix(s, columnPrefix))
    						}
    					}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Feb 25 02:48:23 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  2. finisher_api.go

    			tx.Statement.Model = nil
    		}()
    	}
    
    	if selectClause, ok := db.Statement.Clauses["SELECT"]; ok {
    		defer func() {
    			tx.Statement.Clauses["SELECT"] = selectClause
    		}()
    	} else {
    		defer delete(tx.Statement.Clauses, "SELECT")
    	}
    
    	if len(tx.Statement.Selects) == 0 {
    		tx.Statement.AddClause(clause.Select{Expression: clause.Expr{SQL: "count(*)"}})
    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)
  3. chainable_api.go

    //
    // Use Select when you only want a subset of the fields. By default, GORM will select all fields.
    // Select accepts both string arguments and arrays.
    //
    //	// Select name and age of user using multiple arguments
    //	db.Select("name", "age").Find(&users)
    //	// Select name and age of user using an array
    //	db.Select([]string{"name", "age"}).Find(&users)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  4. callbacks/query.go

    				}
    			}
    
    			if len(conds) > 0 {
    				db.Statement.AddClause(clause.Where{Exprs: conds})
    			}
    		}
    
    		if len(db.Statement.Selects) > 0 {
    			clauseSelect.Columns = make([]clause.Column, len(db.Statement.Selects))
    			for idx, name := range db.Statement.Selects {
    				if db.Statement.Schema == nil {
    					clauseSelect.Columns[idx] = clause.Column{Name: name, Raw: true}
    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)
  5. callbacks/associations.go

    		tx.Statement.Settings.Store(k, v)
    		return true
    	})
    
    	if tx.Statement.FullSaveAssociations {
    		tx = tx.Set("gorm:update_track_time", true)
    	}
    
    	if len(selects) > 0 {
    		tx = tx.Select(selects)
    	} else if restricted && len(omits) == 0 {
    		tx = tx.Omit(clause.Associations)
    	}
    
    	if len(omits) > 0 {
    		tx = tx.Omit(omits...)
    	}
    
    	return db.AddError(tx.Create(values).Error)
    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)
  6. statement.go

    				switch reflectValue.Kind() {
    				case reflect.Struct:
    					for _, field := range s.Fields {
    						selected := selectedColumns[field.DBName] || selectedColumns[field.Name]
    						if selected || (!restricted && field.Readable) {
    							if v, isZero := field.ValueOf(stmt.Context, reflectValue); !isZero || selected {
    								if field.DBName != "" {
    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. operator/cmd/mesh/test-util_test.go

    }
    
    func mustSelect(t test.Failer, selector map[string]string, labels map[string]string) {
    	t.Helper()
    	kselector := labels2.Set(selector).AsSelectorPreValidated()
    	if !kselector.Matches(labels2.Set(labels)) {
    		t.Fatalf("%v does not select %v", selector, labels)
    	}
    }
    
    func mustNotSelect(t test.Failer, selector map[string]string, labels map[string]string) {
    	t.Helper()
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  8. istioctl/pkg/multicluster/remote_secret.go

    	// to be created.
    	ManifestsPath string
    
    	// ServerOverride overrides the server IP/hostname field from the Kubeconfig
    	ServerOverride string
    
    	// SecretName selects a specific secret from the remote service account, if there are multiple
    	SecretName string
    }
    
    func (o *RemoteSecretOptions) addFlags(flagset *pflag.FlagSet) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  9. istioctl/pkg/util/handlers/handlers.go

    	}
    	pod, _, err := getFirstPodFunc(client, namespace, selector, timeout, sortBy)
    	if err != nil {
    		return "", "", fmt.Errorf("no pods match %q", resname)
    	}
    	return pod.Name, namespace, nil
    }
    
    // SelectorsForObject is a fork of upstream function to add additional Istio type support
    func SelectorsForObject(object runtime.Object) (namespace string, selector labels.Selector, err error) {
    	switch t := object.(type) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  10. internal/s3select/select.go

    	s2Type     CompressionType = "S2"
    	snappyType CompressionType = "SNAPPY"
    )
    
    const (
    	maxRecordSize = 1 << 20 // 1 MiB
    )
    
    var parquetSupport bool
    
    func init() {
    	parquetSupport = env.Get("MINIO_API_SELECT_PARQUET", config.EnableOff) == config.EnableOn
    }
    
    var bufPool = sync.Pool{
    	New: func() interface{} {
    		// make a buffer with a reasonable capacity.
    		return bytes.NewBuffer(make([]byte, 0, maxRecordSize))
    	},
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
Back to top