Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 567 for Join (0.21 sec)

  1. clause/joins_test.go

    			name: "RIGHT JOIN",
    			join: clause.Join{
    				Type:  clause.RightJoin,
    				Table: clause.Table{Name: "user"},
    				ON: clause.Where{
    					Exprs: []clause.Expression{clause.Eq{clause.Column{Table: "user_info", Name: "user_id"}, clause.PrimaryColumn}},
    				},
    			},
    			sql: "RIGHT JOIN `user` ON `user_info`.`user_id` = `users`.`id`",
    		},
    		{
    			name: "INNER JOIN",
    			join: clause.Join{
    				Type:  clause.InnerJoin,
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Nov 03 13:03:13 GMT 2022
    - 2.6K bytes
    - Viewed (0)
  2. clause/joins.go

    	RightJoin JoinType = "RIGHT"
    )
    
    // Join clause for from
    type Join struct {
    	Type       JoinType
    	Table      Table
    	ON         Where
    	Using      []string
    	Expression Expression
    }
    
    func (join Join) Build(builder Builder) {
    	if join.Expression != nil {
    		join.Expression.Build(builder)
    	} else {
    		if join.Type != "" {
    			builder.WriteString(string(join.Type))
    			builder.WriteByte(' ')
    		}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Nov 03 13:03:13 GMT 2022
    - 901 bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/JoinerTest.java

        try {
          J.join(ITERABLE_NULL);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          J.join(ITERABLE_1_NULL_2);
          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
          J.join(ITERABLE_NULL.iterator());
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          J.join(ITERABLE_1_NULL_2.iterator());
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  4. clause/from_test.go

    					Tables: []clause.Table{{Name: "users"}},
    					Joins: []clause.Join{
    						{
    							Type:  clause.InnerJoin,
    							Table: clause.Table{Name: "articles"},
    							ON: clause.Where{
    								[]clause.Expression{clause.Eq{clause.Column{Table: "articles", Name: "id"}, clause.PrimaryColumn}},
    							},
    						},
    					},
    				},
    			},
    			"SELECT * FROM `users` INNER JOIN `articles` ON `articles`.`id` = `users`.`id`", nil,
    		},
    		{
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Jul 15 02:25:10 GMT 2020
    - 1.9K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    		return 0, err
    	}
    	var deviceCwd string
    	if isStd {
    		// Note that we use path.Join here instead of filepath.Join:
    		// The device paths should be slash-separated even if the go_android_exec
    		// wrapper itself is compiled for Windows.
    		deviceCwd = path.Join(deviceGoroot, "src", importPath)
    	} else {
    		deviceCwd = path.Join(deviceGopath, "src", importPath)
    		if modDir != "" {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  6. tests/joins_test.go

    	}
    
    	var users3 []User
    	DB.Joins("inner join pets on pets.user_id = users.id AND pets.name = ?", user.Pets[0].Name).Joins("join accounts on accounts.user_id = users.id AND accounts.number = ?", user.Account.Number).Where("users.name = ?", user.Name).First(&users3)
    	if len(users3) != 1 {
    		t.Errorf("should find one users using multiple left join conditions, but got %v", len(users3))
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  7. cmd/config-dir.go

    func getDefaultConfigDir() string {
    	homeDir, err := homedir.Dir()
    	if err != nil {
    		return ""
    	}
    
    	return filepath.Join(homeDir, defaultMinioConfigDir)
    }
    
    func getDefaultCertsDir() string {
    	return filepath.Join(getDefaultConfigDir(), certsDir)
    }
    
    func getDefaultCertsCADir() string {
    	return filepath.Join(getDefaultCertsDir(), certsCADir)
    }
    
    var (
    	// Default config, certs and CA directories.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 3K bytes
    - Viewed (0)
  8. cni/pkg/plugin/plugin_dryrun_test.go

    			proxyEnv: []corev1.EnvVar{},
    			golden:   filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/include-exclude-ports.txt.golden"),
    		},
    		{
    			name: "tproxy",
    			annotations: map[string]string{
    				annotation.SidecarStatus.Name:           "true",
    				annotation.SidecarInterceptionMode.Name: redirectModeTPROXY,
    			},
    			proxyEnv: []corev1.EnvVar{},
    			golden:   filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/tproxy.txt.golden"),
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. callbacks/query.go

    							}
    						}
    					} else {
    						fromClause.Joins = append(fromClause.Joins, clause.Join{
    							Expression: clause.NamedExpr{SQL: join.Name, Vars: join.Conds},
    						})
    					}
    				} else {
    					fromClause.Joins = append(fromClause.Joins, clause.Join{
    						Expression: clause.NamedExpr{SQL: join.Name, Vars: join.Conds},
    					})
    				}
    			}
    
    			db.Statement.AddClause(fromClause)
    		} else {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Jan 29 03:34:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/JoinerTest.java

        try {
          J.join(ITERABLE_NULL);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          J.join(ITERABLE_1_NULL_2);
          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
          J.join(ITERABLE_NULL.iterator());
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          J.join(ITERABLE_1_NULL_2.iterator());
          fail();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top