Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Cable (0.2 sec)

  1. migrator/migrator.go

    	stmt := &gorm.Statement{DB: m.DB}
    	if m.DB.Statement != nil {
    		stmt.Table = m.DB.Statement.Table
    		stmt.TableExpr = m.DB.Statement.TableExpr
    	}
    
    	if table, ok := value.(string); ok {
    		stmt.Table = table
    	} else if err := stmt.ParseWithSpecialTableName(value, stmt.Table); err != nil {
    		return err
    	}
    
    	return fc(stmt)
    }
    
    // DataTypeOf return field's db data type
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  2. chainable_api.go

    	}
    	return
    }
    
    var tableRegexp = regexp.MustCompile(`(?i)(?:.+? AS (\w+)\s*(?:$|,)|^\w+\s+(\w+)$)`)
    
    // Table specify the table you would like to run db operations
    //
    //	// Get a user
    //	db.Table("users").Take(&result)
    func (db *DB) Table(name string, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	if strings.Contains(name, " ") || strings.Contains(name, "`") || len(args) > 0 {
    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)
  3. cmd/metrics-v3-handler.go

    			w.Header().Set("Content-Type", "application/json")
    			jsonEncoder := json.NewEncoder(w)
    			jsonEncoder.Encode(metrics)
    			return
    		}
    
    		// If not JSON, return plain text. We format it as a markdown table for
    		// readability.
    		w.Header().Set("Content-Type", "text/plain")
    		var b strings.Builder
    		b.WriteString("| Name | Type | Help | Labels |\n")
    		b.WriteString("| ---- | ---- | ---- | ------ |\n")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  4. cmd/metacache-entries.go

    			objsAgree++
    			continue
    		}
    	}
    
    	// Return dir entries, if enough...
    	if selected != nil && selected.isDir() && dirExists >= r.dirQuorum {
    		return selected, true
    	}
    
    	// If we would never be able to reach read quorum.
    	if objsValid < r.objQuorum {
    		return nil, false
    	}
    
    	// If all objects agree.
    	if selected != nil && objsAgree == objsValid {
    		return selected, true
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    			h.PutResponse(resp)
    		}
    		if err != nil {
    			PutByteBuffer(payload)
    			r := RemoteErr(err.Error())
    			return nil, &r
    		}
    		return payload, nil
    	}, subroute...)
    }
    
    // Requester is able to send requests to a remote.
    type Requester interface {
    	Request(ctx context.Context, h HandlerID, req []byte) ([]byte, error)
    }
    
    // Call the remote with the request and return the response.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  6. cmd/bucket-replication.go

    	}
    }
    
    const (
    	minLargeObjSize = 128 * humanize.MiByte // 128MiB
    )
    
    // getWorkerCh gets a worker channel deterministically based on bucket and object names.
    // Must be able to grab read lock from p.
    
    func (p *ReplicationPool) getWorkerCh(bucket, object string, sz int64) chan<- ReplicationWorkerOperation {
    	h := xxh3.HashString(bucket + object)
    	p.mu.RLock()
    	defer p.mu.RUnlock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  7. internal/event/target/postgresql.go

    }
    
    // Validate PostgreSQLArgs fields
    func (p PostgreSQLArgs) Validate() error {
    	if !p.Enable {
    		return nil
    	}
    	if p.Table == "" {
    		return fmt.Errorf("empty table name")
    	}
    	if err := validatePsqlTableName(p.Table); err != nil {
    		return err
    	}
    
    	if p.Format != "" {
    		f := strings.ToLower(p.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. schema/relationship_test.go

    		JoinTable: JoinTable{Name: "user_profiles", Table: "user_profiles"},
    		References: []Reference{
    			{"Refer", "User", "UserReferID", "user_profiles", "", true},
    			{"UserRefer", "Profile", "ProfileRefer", "user_profiles", "", false},
    		},
    	}, Relation{
    		Name: "Profiles2", Type: schema.Many2Many, Schema: "User", FieldSchema: "Profile",
    		JoinTable: JoinTable{Name: "user_profiles2", Table: "user_profiles2"},
    		References: []Reference{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  9. cni/pkg/iptables/iptables.go

    	// Insert jumps to our custom chains
    	// This is mostly just for visual tidiness and cleanup, as we can delete the secondary chains and jumps
    	// without polluting the main table too much.
    
    	// -t mangle -A PREROUTING -j ISTIO_PRERT
    	iptablesBuilder.AppendRule(
    		iptableslog.UndefinedCommand, iptablesconstants.PREROUTING, iptablesconstants.MANGLE,
    		"-j", ChainInpodPrerouting,
    	)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  10. istioctl/pkg/dashboard/dashboard.go

    			var podName, ns string
    			if labelSelector != "" {
    				pl, err := kubeClient.PodsForSelector(context.TODO(), ctx.NamespaceOrDefault(ctx.Namespace()), labelSelector)
    				if err != nil {
    					return fmt.Errorf("not able to locate pod with selector %s: %v", labelSelector, err)
    				}
    
    				if len(pl.Items) < 1 {
    					return errors.New("no pods found")
    				}
    
    				if len(pl.Items) > 1 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
Back to top