Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 119 for Vars (0.13 sec)

  1. clause/locking_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestLocking(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Locking{Strength: clause.LockingStrengthUpdate}},
    			"SELECT * FROM `users` FOR UPDATE", nil,
    		},
    		{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:32:56 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. tests/sql_builder_test.go

    	stmt := dryRunDB.Create(&user).Statement
    	if stmt.SQL.String() == "" || len(stmt.Vars) != 9 {
    		t.Errorf("Failed to generate sql, got %v", stmt.SQL.String())
    	}
    
    	stmt2 := dryRunDB.Find(&user, "id = ?", user.ID).Statement
    	if stmt2.SQL.String() == "" || len(stmt2.Vars) != 1 {
    		t.Errorf("Failed to generate sql, got %v", stmt2.SQL.String())
    	}
    }
    
    type ageInt int8
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  3. cmd/object-lambda-handlers.go

    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    	object, err := unescapePath(vars["object"])
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Check for auth type to return S3 compatible error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  4. schema/interfaces.go

    package schema
    
    import (
    	"gorm.io/gorm/clause"
    )
    
    // ConstraintInterface database constraint interface
    type ConstraintInterface interface {
    	GetName() string
    	Build() (sql string, vars []interface{})
    }
    
    // GormDataTypeInterface gorm data type interface
    type GormDataTypeInterface interface {
    	GormDataType() string
    }
    
    // FieldNewValuePool field new scan value pool
    type FieldNewValuePool interface {
    	Get() interface{}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 980 bytes
    - Viewed (0)
  5. src/main/resources/fess_indices/fess/sv/stopwords.txt

    några
    deras
    blir
    mina
    samma
    vilken
    er
    sådan
    vår
    blivit
    dess
    inom
    mellan
    sådant
    varför
    varje
    vilka
    ditt
    vem
    vilket
    sitta
    sådana
    vart
    dina
    vars
    vårt
    våra
    ert
    era
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Nov 27 12:59:36 GMT 2023
    - 700 bytes
    - Viewed (0)
  6. callbacks/create.go

    				db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...,
    			)
    			if db.AddError(err) == nil {
    				defer func() {
    					db.AddError(rows.Close())
    				}()
    				gorm.Scan(rows, db, mode)
    			}
    
    			return
    		}
    
    		result, err := db.Statement.ConnPool.ExecContext(
    			db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...,
    		)
    		if err != nil {
    			db.AddError(err)
    			return
    		}
    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. common/scripts/setup_env.sh

    # For non container build, we need to write env to file
    if [[ "${1}" == "envfile" ]]; then
      # ! does a variable-variable https://stackoverflow.com/a/10757531/374797
      for var in "${VARS[@]}"; do
        echo "${var}"="${!var}"
      done
    else
      for var in "${VARS[@]}"; do
        # shellcheck disable=SC2163
        export "${var}"
      done
    Shell Script
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 16:31:40 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    		return
    	}
    
    	if globalInplaceUpdateDisabled || currentReleaseTime.IsZero() {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	updateURL := vars["updateURL"]
    	dryRun := r.Form.Get("dry-run") == "true"
    
    	mode := getMinioMode()
    	if updateURL == "" {
    		updateURL = minioReleaseInfoURL
    		if runtime.GOOS == globalWindowsOSName {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  9. istioctl/pkg/proxyconfig/clusters.go

    	"github.com/spf13/cobra"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/pkg/cluster"
    )
    
    // TODO move to multicluster package; requires exposing some private funcs/vars in this package
    func ClustersCommand(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    	cmd := &cobra.Command{
    		Use:   "remote-clusters",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. gorm.go

    			// clone with new statement
    			tx.Statement = &Statement{
    				DB:        tx,
    				ConnPool:  db.Statement.ConnPool,
    				Context:   db.Statement.Context,
    				Clauses:   map[string]clause.Clause{},
    				Vars:      make([]interface{}, 0, 8),
    				SkipHooks: db.Statement.SkipHooks,
    			}
    		} else {
    			// with clone statement
    			tx.Statement = db.Statement.clone()
    			tx.Statement.DB = tx
    		}
    
    		return tx
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sun Aug 20 11:46:56 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top