Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for inner (0.13 sec)

  1. tests/joins_test.go

    	DB.Save(&user)
    
    	var users1 []User
    	DB.Joins("inner join pets on pets.user_id = users.id").Where("users.name = ?", user.Name).Find(&users1)
    	if len(users1) != 3 {
    		t.Errorf("should find two users using left join, but got %v", len(users1))
    	}
    
    	var users2 []User
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  2. internal/jwt/parser.go

    	n, err := base64DecodeBytes(token[:i], buf)
    	if err != nil {
    		return nil, &jwtgo.ValidationError{Inner: err, Errors: jwtgo.ValidationErrorMalformed}
    	}
    	headerDec := buf[:n]
    	buf = buf[n:]
    
    	alg, _, _, err := jsonparser.Get(headerDec, "alg")
    	if err != nil {
    		return nil, &jwtgo.ValidationError{Inner: err, Errors: jwtgo.ValidationErrorMalformed}
    	}
    
    	n, err = base64DecodeBytes(token[i+1:j], buf)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  3. chainable_api.go

    func (db *DB) Joins(query string, args ...interface{}) (tx *DB) {
    	return joins(db, clause.LeftJoin, query, args...)
    }
    
    // InnerJoins specify inner joins conditions
    // db.InnerJoins("Account").Find(&user)
    func (db *DB) InnerJoins(query string, args ...interface{}) (tx *DB) {
    	return joins(db, clause.InnerJoin, query, 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)
  4. istioctl/pkg/workload/workload_test.go

    			args:              strings.Split("group create --name foo", " "),
    			expectedException: true,
    			expectedOutput:    "Error: expecting a workload namespace\n",
    		},
    		{
    			description:       "valid case - minimal flags, infer defaults",
    			args:              strings.Split("group create --name foo --namespace bar", " "),
    			expectedException: false,
    			expectedOutput:    defaultYAML,
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. tests/sql_builder_test.go

    								},
    								Value: clause.Column{
    									Table: "companies",
    									Name:  "id",
    								},
    							},
    						},
    					},
    				},
    			},
    		},
    	)
    
    	newDB.Joins("inner join rgs on rgs.id = user.id")
    
    	stmt := newDB.First(&result).Statement
    	str := stmt.SQL.String()
    
    	if !strings.Contains(str, "rgs.id = user.id") {
    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)
  6. internal/s3select/sql/value.go

    const (
    	opLt    = "<"
    	opLte   = "<="
    	opGt    = ">"
    	opGte   = ">="
    	opEq    = "="
    	opIneq  = "!="
    	opIs    = "IS"
    	opIsNot = "ISNOT"
    )
    
    // InferBytesType will attempt to infer the data type of bytes.
    // Will fail if value type is not bytes or it would result in invalid utf8.
    // ORDER: int, float, bool, JSON (object or array), timestamp, string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload.go

    }
    
    // Retrieves the external IP of the ingress-gateway for the hosts file additions
    func createHosts(kubeClient kube.CLIClient, istioNamespace, ingressIP, dir string, revision string) error {
    	// try to infer the ingress IP if the provided one is invalid
    	if agent.ValidateIPAddress(ingressIP) != nil {
    		p := strings.Split(ingressSvc, ".")
    		ingressNs := istioNamespace
    		if len(p) == 2 {
    			ingressSvc = p[0]
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  8. cmd/storage-rest_test.go

    	"reflect"
    	"runtime"
    	"testing"
    	"time"
    
    	"github.com/minio/minio/internal/grid"
    	xnet "github.com/minio/pkg/v2/net"
    )
    
    // Storage REST server, storageRESTReceiver and StorageRESTClient are
    // inter-dependent, below test functions are sufficient to test all of them.
    func testStorageAPIDiskInfo(t *testing.T, storage StorageAPI) {
    	testCases := []struct {
    		expectErr bool
    	}{
    		{true},
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. internal/s3select/sql/evaluate.go

    	if !ok {
    		err := errLikeNonStrArg
    		return nil, errLikeInvalidInputs(err)
    	}
    
    	pattern, err1 := e.Pattern.evalNode(r, tableAlias)
    	if err1 != nil {
    		return nil, err1
    	}
    
    	// Infer pattern as string (in case it is untyped)
    	inferTypeAsString(pattern)
    
    	patternStr, ok := pattern.ToString()
    	if !ok {
    		err := errLikeNonStrArg
    		return nil, errLikeInvalidInputs(err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  10. src/cmd/cgo/doc.go

    unless the memory it points to is pinned with [runtime.Pinner] and the
    Pinner is not unpinned while the Go pointer is stored in C memory.
    This implies that C code may not keep a copy of a string, slice,
    channel, and so forth, because they cannot be pinned with
    [runtime.Pinner].
    
    The _GoString_ type also may not be pinned with [runtime.Pinner].
    Because it includes a Go pointer, the memory it points to is only pinned
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
Back to top