Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for trim (0.17 sec)

  1. internal/s3select/sql/funceval.go

    	sqlFnLower           FuncName = "LOWER"
    	sqlFnSubstring       FuncName = "SUBSTRING"
    	sqlFnTrim            FuncName = "TRIM"
    	sqlFnUpper           FuncName = "UPPER"
    )
    
    var (
    	errUnimplementedCast = errors.New("This cast not yet implemented")
    	errNonStringTrimArg  = errors.New("TRIM() received a non-string argument")
    	errNonTimestampArg   = errors.New("Expected a timestamp argument")
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  2. cmd/metacache-walk.go

    			sb.Reset()
    			bytebufferpool.Put(sb)
    		}()
    
    		forward := ""
    		if len(opts.ForwardTo) > 0 && strings.HasPrefix(opts.ForwardTo, current) {
    			forward = strings.TrimPrefix(opts.ForwardTo, current)
    			// Trim further directories and trailing slash.
    			if idx := strings.IndexByte(forward, '/'); idx > 0 {
    				forward = forward[:idx]
    			}
    		}
    		if contextCanceled(ctx) {
    			return ctx.Err()
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. internal/s3select/sql/parser.go

    	From     *PrimaryTerm `parser:" \"FROM\" @@ \")\" "`
    }
    
    // TrimFunc represents TRIM sql function
    type TrimFunc struct {
    	TrimWhere *string      `parser:" \"TRIM\" \"(\" ( @( \"LEADING\" | \"TRAILING\" | \"BOTH\" ) "`
    	TrimChars *PrimaryTerm `parser:"             @@?  "`
    	TrimFrom  *PrimaryTerm `parser:"             \"FROM\" )? @@ \")\" "`
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  4. cmd/object-lambda-handlers.go

    	if code, ok := statusTextToCode[text]; ok {
    		return code
    	}
    	return -1
    }
    
    func fwdHeadersToS3(h http.Header, w http.ResponseWriter) {
    	const trim = "x-amz-fwd-header-"
    	for k, v := range h {
    		if stringsHasPrefixFold(k, trim) {
    			w.Header()[k[len(trim):]] = v
    		}
    	}
    }
    
    func fwdStatusToAPIError(resp *http.Response) *APIError {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  5. internal/s3select/sql/analysis.go

    		}
    		for _, arg := range e.SFunc.ArgsList {
    			result.combine(arg.analyze(s))
    		}
    		return result
    
    	case sqlFnTrim:
    		if e.Trim.TrimChars != nil {
    			result.combine(e.Trim.TrimChars.analyze(s))
    		}
    		if e.Trim.TrimFrom != nil {
    			result.combine(e.Trim.TrimFrom.analyze(s))
    		}
    		return result
    
    	case sqlFnSubstring:
    		errVal := fmt.Errorf("Invalid argument(s) to %s", string(funcName))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  6. cmd/metacache-marker.go

    	s := o.Marker
    	if !strings.Contains(s, "[minio_cache:"+markerTagVersion) {
    		return
    	}
    	start := strings.LastIndex(s, "[")
    	o.Marker = s[:start]
    	end := strings.LastIndex(s, "]")
    	tag := strings.Trim(s[start:end], "[]")
    	tags := strings.Split(tag, ",")
    	for _, tag := range tags {
    		kv := strings.Split(tag, ":")
    		if len(kv) < 2 {
    			continue
    		}
    		switch kv[0] {
    		case "minio_cache":
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. cmd/httprange.go

    	if !strings.HasPrefix(rangeString, byteRangePrefix) {
    		return nil, fmt.Errorf("'%s' does not start with '%s'", rangeString, byteRangePrefix)
    	}
    
    	// Trim byte range prefix.
    	byteRangeString := strings.TrimPrefix(rangeString, byteRangePrefix)
    
    	// Check if range string contains delimiter '-', else return error. eg. "bytes=8"
    	sepIndex := strings.Index(byteRangeString, "-")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 24 14:56:28 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  8. internal/config/dns/etcd_dns.go

    	}
    	if len(srvRecords) == 0 {
    		return nil, ErrNoEntriesFound
    	}
    	return srvRecords, nil
    }
    
    // msgUnPath converts a etcd path to domainname.
    func msgUnPath(s string) string {
    	ks := strings.Split(strings.Trim(s, etcdPathSeparator), etcdPathSeparator)
    	for i, j := 0, len(ks)-1; i < j; i, j = i+1, j-1 {
    		ks[i], ks[j] = ks[j], ks[i]
    	}
    	return strings.Join(ks, ".")
    }
    
    // Retrieves list of entries under the key passed.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    		if err != nil {
    			return err
    		}
    		defer dec.Close()
    		return d.DecodeMsg(msgp.NewReader(dec))
    	default:
    		return fmt.Errorf("dataUsageCache: unknown version: %d", ver)
    	}
    }
    
    // Trim this from start+end of hashes.
    var hashPathCutSet = dataUsageRoot
    
    func init() {
    	if dataUsageRoot != string(filepath.Separator) {
    		hashPathCutSet = dataUsageRoot + string(filepath.Separator)
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. cmd/metacache-set.go

    	case o.Prefix == o.BaseDir:
    		// No additional prefix
    		return
    	}
    	// Remove basedir.
    	o.FilterPrefix = strings.TrimPrefix(o.Prefix, o.BaseDir)
    	// Remove leading and trailing slashes.
    	o.FilterPrefix = strings.Trim(o.FilterPrefix, slashSeparator)
    
    	if strings.Contains(o.FilterPrefix, slashSeparator) {
    		// Sanity check, should not happen.
    		o.FilterPrefix = ""
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top