Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for upvars (0.14 sec)

  1. logger/sql.go

    func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string {
    	var (
    		convertParams func(interface{}, int)
    		vars          = make([]string, len(avars))
    	)
    
    	convertParams = func(v interface{}, idx int) {
    		switch v := v.(type) {
    		case bool:
    			vars[idx] = strconv.FormatBool(v)
    		case time.Time:
    			if v.IsZero() {
    				vars[idx] = escaper + tmFmtZero + escaper
    			} else {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. clause/expression.go

    						builder.AddVar(builder, expr.Vars[idx])
    					}
    				}
    			} else {
    				builder.AddVar(builder, expr.Vars[idx])
    			}
    
    			idx++
    		} else {
    			if v == '(' {
    				afterParenthesis = true
    			} else {
    				afterParenthesis = false
    			}
    			builder.WriteByte(v)
    		}
    	}
    
    	if idx < len(expr.Vars) {
    		for _, v := range expr.Vars[idx:] {
    			builder.AddVar(builder, sql.NamedArg{Value: v})
    		}
    	}
    }
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Oct 10 06:45:48 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  3. callbacks/query.go

    											vars := onStmt.Vars
    											for idx, v := range vars {
    												bindvar := strings.Builder{}
    												onStmt.Vars = vars[0 : idx+1]
    												db.Dialector.BindVarTo(&bindvar, &onStmt, v)
    												onSQL = strings.Replace(onSQL, bindvar.String(), "?", 1)
    											}
    
    											exprs = append(exprs, clause.Expr{SQL: onSQL, Vars: vars})
    										}
    									}
    								}
    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)
  4. cmd/bucket-versioning-handler.go

    func (api objectAPIHandlers) PutBucketVersioningHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "PutBucketVersioning")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    
    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. cmd/peer-rest-server.go

    func (s *peerRESTServer) StartProfilingHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("Invalid request"))
    		return
    	}
    
    	vars := mux.Vars(r)
    	profiles := strings.Split(vars[peerRESTProfiler], ",")
    	if len(profiles) == 0 {
    		s.writeErrorResponse(w, errors.New("profiler name is missing"))
    		return
    	}
    	globalProfilerMu.Lock()
    	defer globalProfilerMu.Unlock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  6. chainable_api.go

    			tx.Statement.AddClause(clause.Select{
    				Distinct:   db.Statement.Distinct,
    				Expression: clause.Expr{SQL: v, Vars: args},
    			})
    		} else if strings.Count(v, "@") > 0 && len(args) > 0 {
    			tx.Statement.AddClause(clause.Select{
    				Distinct:   db.Statement.Distinct,
    				Expression: clause.NamedExpr{SQL: v, Vars: args},
    			})
    		} else {
    			tx.Statement.Selects = []string{v}
    
    			for _, arg := range args {
    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)
  7. migrator/migrator.go

    		constraint, table := m.GuessConstraintInterfaceAndTable(stmt, name)
    		if constraint != nil {
    			vars := []interface{}{clause.Table{Name: table}}
    			if stmt.TableExpr != nil {
    				vars[0] = stmt.TableExpr
    			}
    			sql, values := constraint.Build()
    			return m.DB.Exec("ALTER TABLE ? ADD "+sql, append(vars, values...)...).Error
    		}
    		return nil
    	})
    }
    
    // DropConstraint drop constraint
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  8. cmd/metrics-v3-handler.go

    // parameter is provided, no bucket metrics are returned.
    func (h *metricsV3Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    	pathComponents := mux.Vars(r)["pathComps"]
    	isListingRequest := r.Form.Has("list")
    
    	buckets := []string{}
    	if strings.HasPrefix(pathComponents, "/bucket/") {
    		// bucket specific metrics, extract the bucket name from the path.
    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)
  9. internal/config/storageclass/storage-class.go

    		}
    	}
    	return nil
    }
    
    // GetParityForSC - Returns the data and parity drive count based on storage class
    // If storage class is set using the env vars MINIO_STORAGE_CLASS_RRS and
    // MINIO_STORAGE_CLASS_STANDARD or server config fields corresponding values are
    // returned.
    //
    // -- if input storage class is empty then standard is assumed
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. cmd/bucket-encryption-handlers.go

    	objAPI := api.ObjectAPI()
    	if objAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketEncryptionAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top